@arkcit/react-ui 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/dist/ApiDocLayout-6hYQvst0.d.ts +19 -0
- package/dist/ComponentGuidelines-h1MjGBuJ.d.ts +1293 -0
- package/dist/FileUploadField-DLwEPn_A.d.ts +32 -0
- package/dist/contracts.d.ts +10 -0
- package/dist/contracts.js +36 -0
- package/dist/form-fields-9C7CmVGn.d.ts +88 -0
- package/dist/form-fields.d.ts +5 -0
- package/dist/form-fields.js +2113 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +16112 -0
- package/dist/orchestrator-contracts.d.ts +1 -0
- package/dist/orchestrator-contracts.js +0 -0
- package/dist/orchestrator-registry.d.ts +25 -0
- package/dist/orchestrator-registry.js +9405 -0
- package/dist/orchestrator.d.ts +29 -0
- package/dist/orchestrator.js +9602 -0
- package/dist/registry.d.ts +30 -0
- package/dist/registry.js +15786 -0
- package/dist/ui-contracts.d.ts +123 -0
- package/dist/ui-contracts.js +36 -0
- package/dist/ui-registry.d.ts +127 -0
- package/dist/ui-registry.js +15611 -0
- package/dist/ui.d.ts +119 -0
- package/dist/ui.js +9618 -0
- package/package.json +121 -0
|
@@ -0,0 +1,1293 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { PropsWithChildren, Dispatch, SetStateAction, ReactNode } from 'react';
|
|
4
|
+
import { FieldConfig, FormState, Field } from '@arkcit/engine/form';
|
|
5
|
+
import { LucideIcon } from 'lucide-react';
|
|
6
|
+
|
|
7
|
+
type AlertIntent = "danger" | "warning" | "info" | "success";
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `intent` instead.
|
|
10
|
+
*/
|
|
11
|
+
type AlertType = "error" | "warning" | "info" | "success";
|
|
12
|
+
interface AlertBannerProps {
|
|
13
|
+
intent?: AlertIntent;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `intent`.
|
|
16
|
+
*/
|
|
17
|
+
type?: AlertType;
|
|
18
|
+
message: React__default.ReactNode | Record<string, unknown>;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
}
|
|
21
|
+
declare const AlertBanner: ({ intent, type, message, onClose }: AlertBannerProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare enum Currency {
|
|
24
|
+
EURO = "EUR",
|
|
25
|
+
DOLLAR = "USD"
|
|
26
|
+
}
|
|
27
|
+
declare enum CurrencySymbol {
|
|
28
|
+
EUR = "\u20AC",
|
|
29
|
+
USD = "$"
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface SubscriptionType {
|
|
33
|
+
id: string | null;
|
|
34
|
+
name: string;
|
|
35
|
+
image: string;
|
|
36
|
+
description?: string | null;
|
|
37
|
+
price?: number | null;
|
|
38
|
+
currency: Currency | null;
|
|
39
|
+
}
|
|
40
|
+
type Entity = SubscriptionType;
|
|
41
|
+
|
|
42
|
+
type CommonDictionary = Record<string, string>;
|
|
43
|
+
interface CarouselProps {
|
|
44
|
+
entities: Entity[];
|
|
45
|
+
autoPlay?: boolean;
|
|
46
|
+
interval?: number;
|
|
47
|
+
overlayText?: (entity: Entity) => React__default.ReactNode;
|
|
48
|
+
onAction?: (entity: Entity) => string | undefined;
|
|
49
|
+
dict: CommonDictionary;
|
|
50
|
+
}
|
|
51
|
+
declare const Carousel: ({ entities, autoPlay, interval, overlayText, onAction, dict, }: CarouselProps) => react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
type EmbeddedVideoProvider = "youtube" | "vimeo" | "html5" | "iframe";
|
|
54
|
+
type EmbeddedVideoPlayback = {
|
|
55
|
+
autoPlay?: boolean;
|
|
56
|
+
muted?: boolean;
|
|
57
|
+
controls?: boolean;
|
|
58
|
+
loop?: boolean;
|
|
59
|
+
start?: number;
|
|
60
|
+
end?: number;
|
|
61
|
+
allowFullScreen?: boolean;
|
|
62
|
+
};
|
|
63
|
+
type EmbeddedVideoYouTube = {
|
|
64
|
+
videoId?: string;
|
|
65
|
+
};
|
|
66
|
+
type EmbeddedVideoVimeo = {
|
|
67
|
+
videoId?: string;
|
|
68
|
+
};
|
|
69
|
+
type EmbeddedVideoHtml5 = {
|
|
70
|
+
src?: string;
|
|
71
|
+
sources?: Array<{
|
|
72
|
+
src: string;
|
|
73
|
+
type?: string;
|
|
74
|
+
}>;
|
|
75
|
+
poster?: string;
|
|
76
|
+
};
|
|
77
|
+
type EmbeddedVideoIframe = {
|
|
78
|
+
src?: string;
|
|
79
|
+
};
|
|
80
|
+
interface EmbeddedVideoProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
81
|
+
provider: EmbeddedVideoProvider;
|
|
82
|
+
title: string;
|
|
83
|
+
aspect?: "16/9" | "4/3" | "1/1" | "9/16";
|
|
84
|
+
playback?: EmbeddedVideoPlayback;
|
|
85
|
+
youtube?: EmbeddedVideoYouTube;
|
|
86
|
+
vimeo?: EmbeddedVideoVimeo;
|
|
87
|
+
html5?: EmbeddedVideoHtml5;
|
|
88
|
+
iframe?: EmbeddedVideoIframe;
|
|
89
|
+
}
|
|
90
|
+
declare const EmbeddedVideo: ({ provider, title, aspect, playback, youtube, vimeo, html5, iframe, className, ...props }: EmbeddedVideoProps) => react_jsx_runtime.JSX.Element;
|
|
91
|
+
|
|
92
|
+
interface GameAPI {
|
|
93
|
+
keysDown: Set<string>;
|
|
94
|
+
pointer: {
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
down: boolean;
|
|
98
|
+
};
|
|
99
|
+
size: {
|
|
100
|
+
width: number;
|
|
101
|
+
height: number;
|
|
102
|
+
pixelRatio: number;
|
|
103
|
+
};
|
|
104
|
+
requestStop: () => void;
|
|
105
|
+
requestStart: () => void;
|
|
106
|
+
clear: (color?: string) => void;
|
|
107
|
+
}
|
|
108
|
+
interface GameCanvas2DProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
109
|
+
width?: number;
|
|
110
|
+
height?: number;
|
|
111
|
+
pixelRatio?: number;
|
|
112
|
+
running?: boolean;
|
|
113
|
+
onInit?: (ctx: CanvasRenderingContext2D, api: GameAPI) => void;
|
|
114
|
+
onFrame?: (ctx: CanvasRenderingContext2D, dt: number, api: GameAPI) => void;
|
|
115
|
+
onResize?: (ctx: CanvasRenderingContext2D, api: GameAPI) => void;
|
|
116
|
+
onDispose?: (api: GameAPI) => void;
|
|
117
|
+
captureKeyboard?: boolean;
|
|
118
|
+
capturePointer?: boolean;
|
|
119
|
+
className?: string;
|
|
120
|
+
canvasClassName?: string;
|
|
121
|
+
}
|
|
122
|
+
declare const GameCanvas2D: ({ width, height, pixelRatio, running, onInit, onFrame, onResize, onDispose, captureKeyboard, capturePointer, className, canvasClassName, ...props }: GameCanvas2DProps) => react_jsx_runtime.JSX.Element;
|
|
123
|
+
|
|
124
|
+
type GraphBaseProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, "title">;
|
|
125
|
+
interface GraphProps extends GraphBaseProps {
|
|
126
|
+
title?: React__default.ReactNode;
|
|
127
|
+
description?: React__default.ReactNode;
|
|
128
|
+
ariaLabel?: string;
|
|
129
|
+
hasData?: boolean;
|
|
130
|
+
noDataText?: string;
|
|
131
|
+
}
|
|
132
|
+
declare const Graph: ({ title, description, ariaLabel, hasData, noDataText, className, children, ...props }: GraphProps) => react_jsx_runtime.JSX.Element;
|
|
133
|
+
|
|
134
|
+
type GraphXValue = number | string | Date;
|
|
135
|
+
type GraphIntent = "primary" | "success" | "warning" | "danger" | "info" | "secondary";
|
|
136
|
+
interface GraphDatum {
|
|
137
|
+
x: GraphXValue;
|
|
138
|
+
y: number;
|
|
139
|
+
}
|
|
140
|
+
interface GraphSeries {
|
|
141
|
+
id: string;
|
|
142
|
+
label?: string;
|
|
143
|
+
data: GraphDatum[];
|
|
144
|
+
intent?: GraphIntent;
|
|
145
|
+
}
|
|
146
|
+
interface GraphAxisConfig {
|
|
147
|
+
format?: (value: GraphXValue | number) => string;
|
|
148
|
+
ticks?: number;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface LineGraphProps extends Omit<GraphProps, "children" | "hasData" | "noDataText"> {
|
|
152
|
+
series: GraphSeries[];
|
|
153
|
+
width?: number;
|
|
154
|
+
height?: number;
|
|
155
|
+
xAxis?: GraphAxisConfig;
|
|
156
|
+
yAxis?: GraphAxisConfig;
|
|
157
|
+
grid?: boolean;
|
|
158
|
+
legend?: boolean;
|
|
159
|
+
tooltip?: "none" | "hover";
|
|
160
|
+
noDataText?: string;
|
|
161
|
+
}
|
|
162
|
+
declare const LineGraph: ({ series, width, height, xAxis, yAxis, grid, legend, tooltip, title, description, ariaLabel, className, noDataText, ...props }: LineGraphProps) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
interface BarGraphProps extends Omit<GraphProps, "children" | "hasData" | "noDataText"> {
|
|
165
|
+
series: GraphSeries[];
|
|
166
|
+
width?: number;
|
|
167
|
+
height?: number;
|
|
168
|
+
xAxis?: GraphAxisConfig;
|
|
169
|
+
yAxis?: GraphAxisConfig;
|
|
170
|
+
grid?: boolean;
|
|
171
|
+
legend?: boolean;
|
|
172
|
+
noDataText?: string;
|
|
173
|
+
}
|
|
174
|
+
declare const BarGraph: ({ series, width, height, xAxis, yAxis, grid, legend, title, description, ariaLabel, className, noDataText, ...props }: BarGraphProps) => react_jsx_runtime.JSX.Element;
|
|
175
|
+
|
|
176
|
+
type LatLng = {
|
|
177
|
+
lat: number;
|
|
178
|
+
lng: number;
|
|
179
|
+
};
|
|
180
|
+
type MapCardProvider = "openstreetmap" | "googlemaps" | "iframe";
|
|
181
|
+
interface Poi {
|
|
182
|
+
id: string;
|
|
183
|
+
title: string;
|
|
184
|
+
description?: string;
|
|
185
|
+
position: LatLng;
|
|
186
|
+
avatar?: {
|
|
187
|
+
src?: string;
|
|
188
|
+
fallback?: string;
|
|
189
|
+
};
|
|
190
|
+
tags?: string[];
|
|
191
|
+
href?: string;
|
|
192
|
+
}
|
|
193
|
+
interface MapCardProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
194
|
+
provider?: MapCardProvider;
|
|
195
|
+
initialCenter: LatLng;
|
|
196
|
+
initialZoom?: number;
|
|
197
|
+
height?: number;
|
|
198
|
+
iframeSrc?: string;
|
|
199
|
+
iframeTitle?: string;
|
|
200
|
+
googleMapsQuery?: string;
|
|
201
|
+
enableGeolocation?: boolean;
|
|
202
|
+
geolocationLabel?: string;
|
|
203
|
+
pois?: Poi[];
|
|
204
|
+
loadPois?: (center: LatLng, radiusMeters: number) => Promise<Poi[]>;
|
|
205
|
+
radiusMeters?: number;
|
|
206
|
+
title?: string;
|
|
207
|
+
emptyTitle?: string;
|
|
208
|
+
emptyDescription?: string;
|
|
209
|
+
onCenterChange?: (center: LatLng) => void;
|
|
210
|
+
}
|
|
211
|
+
declare const MapCard: ({ provider, initialCenter, initialZoom, height, iframeSrc, iframeTitle, googleMapsQuery, enableGeolocation, geolocationLabel, pois: staticPois, loadPois, radiusMeters, title, emptyTitle, emptyDescription, onCenterChange, className, ...props }: MapCardProps) => react_jsx_runtime.JSX.Element;
|
|
212
|
+
|
|
213
|
+
interface DrawerProps {
|
|
214
|
+
open: boolean;
|
|
215
|
+
onClose: () => void;
|
|
216
|
+
side?: "left" | "right";
|
|
217
|
+
closeOnOutsideClick?: boolean;
|
|
218
|
+
title?: React__default.ReactNode;
|
|
219
|
+
children: React__default.ReactNode;
|
|
220
|
+
className?: string;
|
|
221
|
+
overlayClassName?: string;
|
|
222
|
+
}
|
|
223
|
+
declare const Drawer: ({ open, onClose, side, closeOnOutsideClick, title, children, className, overlayClassName, }: DrawerProps) => react_jsx_runtime.JSX.Element | null;
|
|
224
|
+
|
|
225
|
+
type MenuIntent = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
226
|
+
type ContextMenuItem = {
|
|
227
|
+
type?: "item";
|
|
228
|
+
id: string;
|
|
229
|
+
label: string;
|
|
230
|
+
icon?: React__default.ReactNode;
|
|
231
|
+
shortcut?: string;
|
|
232
|
+
disabled?: boolean;
|
|
233
|
+
intent?: MenuIntent;
|
|
234
|
+
onSelect: () => void;
|
|
235
|
+
} | {
|
|
236
|
+
type: "separator";
|
|
237
|
+
id?: string;
|
|
238
|
+
} | {
|
|
239
|
+
type: "submenu";
|
|
240
|
+
id: string;
|
|
241
|
+
label: string;
|
|
242
|
+
items: ContextMenuItem[];
|
|
243
|
+
};
|
|
244
|
+
interface ContextMenuProps {
|
|
245
|
+
items: ContextMenuItem[];
|
|
246
|
+
children: React__default.ReactNode;
|
|
247
|
+
disabled?: boolean;
|
|
248
|
+
className?: string;
|
|
249
|
+
}
|
|
250
|
+
declare const ContextMenu: ({ items, children, disabled, className }: ContextMenuProps) => react_jsx_runtime.JSX.Element;
|
|
251
|
+
|
|
252
|
+
interface CommandItem {
|
|
253
|
+
id: string;
|
|
254
|
+
label: string;
|
|
255
|
+
keywords?: string[];
|
|
256
|
+
hint?: string;
|
|
257
|
+
icon?: React__default.ReactNode;
|
|
258
|
+
onSelect: () => void;
|
|
259
|
+
disabled?: boolean;
|
|
260
|
+
group?: string;
|
|
261
|
+
}
|
|
262
|
+
interface CommandPaletteProps {
|
|
263
|
+
open: boolean;
|
|
264
|
+
onOpenChange: (open: boolean) => void;
|
|
265
|
+
items: CommandItem[];
|
|
266
|
+
placeholder?: string;
|
|
267
|
+
emptyMessage?: string;
|
|
268
|
+
className?: string;
|
|
269
|
+
}
|
|
270
|
+
declare const CommandPalette: ({ open, onOpenChange, items, placeholder, emptyMessage, className, }: CommandPaletteProps) => react_jsx_runtime.JSX.Element | null;
|
|
271
|
+
|
|
272
|
+
interface DecodeTranslationProps {
|
|
273
|
+
translation: string;
|
|
274
|
+
htmlTag?: React.ElementType;
|
|
275
|
+
className?: string;
|
|
276
|
+
href?: string;
|
|
277
|
+
tagContent?: React.ReactNode;
|
|
278
|
+
}
|
|
279
|
+
declare const DecodeTranslation: ({ translation, htmlTag: Tag, className, href, tagContent, }: DecodeTranslationProps) => react_jsx_runtime.JSX.Element;
|
|
280
|
+
|
|
281
|
+
type BindableTextValue$1 = string | number | {
|
|
282
|
+
$t?: string;
|
|
283
|
+
$ref?: string;
|
|
284
|
+
values?: Record<string, unknown>;
|
|
285
|
+
};
|
|
286
|
+
interface BreadcrumbItem {
|
|
287
|
+
id?: string | BindableTextValue$1;
|
|
288
|
+
label: React__default.ReactNode | BindableTextValue$1;
|
|
289
|
+
href?: string | BindableTextValue$1;
|
|
290
|
+
onClick?: () => void;
|
|
291
|
+
current?: boolean;
|
|
292
|
+
}
|
|
293
|
+
interface BreadcrumbProps {
|
|
294
|
+
items: BreadcrumbItem[];
|
|
295
|
+
separator?: React__default.ReactNode;
|
|
296
|
+
maxItems?: number;
|
|
297
|
+
className?: string;
|
|
298
|
+
}
|
|
299
|
+
declare const Breadcrumb: ({ items, separator, maxItems, className }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
300
|
+
|
|
301
|
+
type ComboboxOption<T> = {
|
|
302
|
+
value: T;
|
|
303
|
+
label: string;
|
|
304
|
+
disabled?: boolean;
|
|
305
|
+
};
|
|
306
|
+
type FieldIntent$1 = "primary" | "secondary" | "success" | "warning" | "danger" | "info";
|
|
307
|
+
type FieldVariant = "solid" | "outline" | "ghost" | "soft" | "glass";
|
|
308
|
+
type FieldSize$1 = "sm" | "md" | "lg";
|
|
309
|
+
type ComboboxProps<T> = {
|
|
310
|
+
options: ComboboxOption<T>[];
|
|
311
|
+
value?: T | null;
|
|
312
|
+
onChange?: (value: T | null) => void;
|
|
313
|
+
values?: T[];
|
|
314
|
+
onChangeMany?: (values: T[]) => void;
|
|
315
|
+
multiple?: boolean;
|
|
316
|
+
placeholder?: string;
|
|
317
|
+
disabled?: boolean;
|
|
318
|
+
loading?: boolean;
|
|
319
|
+
search?: boolean;
|
|
320
|
+
query?: string;
|
|
321
|
+
onQueryChange?: (q: string) => void;
|
|
322
|
+
filterFn?: (opt: ComboboxOption<T>, query: string) => boolean;
|
|
323
|
+
closeOnSelect?: boolean;
|
|
324
|
+
maxSelected?: number;
|
|
325
|
+
size?: FieldSize$1;
|
|
326
|
+
intent?: FieldIntent$1;
|
|
327
|
+
variant?: FieldVariant;
|
|
328
|
+
label?: string;
|
|
329
|
+
hint?: string;
|
|
330
|
+
error?: string;
|
|
331
|
+
className?: string;
|
|
332
|
+
inputClassName?: string;
|
|
333
|
+
menuClassName?: string;
|
|
334
|
+
renderOption?: (opt: ComboboxOption<T>, state: {
|
|
335
|
+
selected: boolean;
|
|
336
|
+
active: boolean;
|
|
337
|
+
}) => React__default.ReactNode;
|
|
338
|
+
renderValue?: (value: T) => string;
|
|
339
|
+
"aria-label"?: string;
|
|
340
|
+
id?: string;
|
|
341
|
+
name?: string;
|
|
342
|
+
};
|
|
343
|
+
declare const Combobox: <T>({ options, value, onChange, values, onChangeMany, multiple, placeholder, disabled, loading, search, query, onQueryChange, filterFn, closeOnSelect, maxSelected, size, intent, variant, label, hint, error, className, inputClassName, menuClassName, renderOption, renderValue, "aria-label": ariaLabel, id, name, }: ComboboxProps<T>) => react_jsx_runtime.JSX.Element;
|
|
344
|
+
|
|
345
|
+
interface ExpandablePanelProps {
|
|
346
|
+
title: React__default.ReactNode;
|
|
347
|
+
children?: React__default.ReactNode;
|
|
348
|
+
defaultOpen?: boolean;
|
|
349
|
+
open?: boolean;
|
|
350
|
+
onOpenChange?: (open: boolean) => void;
|
|
351
|
+
onDelete?: () => void;
|
|
352
|
+
disableAnimation?: boolean;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Expandable panel:
|
|
356
|
+
* - solid primary header
|
|
357
|
+
* - optional delete button
|
|
358
|
+
* - animated height transition
|
|
359
|
+
*/
|
|
360
|
+
declare const ExpandablePanel: ({ title, children, defaultOpen, open, onOpenChange, onDelete, disableAnimation, }: ExpandablePanelProps) => react_jsx_runtime.JSX.Element;
|
|
361
|
+
|
|
362
|
+
interface EmptyStateProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
363
|
+
title: string;
|
|
364
|
+
description?: string;
|
|
365
|
+
icon?: React__default.ReactNode;
|
|
366
|
+
action?: React__default.ReactNode;
|
|
367
|
+
}
|
|
368
|
+
declare const EmptyState: ({ title, description, icon, action, className, ...props }: EmptyStateProps) => react_jsx_runtime.JSX.Element;
|
|
369
|
+
|
|
370
|
+
type SortDirection = "asc" | "desc";
|
|
371
|
+
type SortState = {
|
|
372
|
+
key: string;
|
|
373
|
+
direction: SortDirection;
|
|
374
|
+
} | null;
|
|
375
|
+
type DataGridColumn<T> = {
|
|
376
|
+
key: string;
|
|
377
|
+
header: React__default.ReactNode;
|
|
378
|
+
accessor?: (row: T) => unknown;
|
|
379
|
+
render?: (value: unknown, row: T) => React__default.ReactNode;
|
|
380
|
+
sortable?: boolean;
|
|
381
|
+
width?: string | number;
|
|
382
|
+
align?: "left" | "center" | "right";
|
|
383
|
+
};
|
|
384
|
+
type DataGridProps<T> = {
|
|
385
|
+
rows: T[];
|
|
386
|
+
columns: DataGridColumn<T>[];
|
|
387
|
+
getRowId?: (row: T, index: number) => string;
|
|
388
|
+
onRowClick?: (row: T) => void;
|
|
389
|
+
selectable?: boolean;
|
|
390
|
+
selectedRowIds?: string[];
|
|
391
|
+
defaultSelectedRowIds?: string[];
|
|
392
|
+
onSelectionChange?: (ids: string[]) => void;
|
|
393
|
+
sortable?: boolean;
|
|
394
|
+
sort?: SortState;
|
|
395
|
+
defaultSort?: SortState;
|
|
396
|
+
onSortChange?: (sort: SortState) => void;
|
|
397
|
+
loading?: boolean;
|
|
398
|
+
emptyState?: React__default.ReactNode;
|
|
399
|
+
pagination?: {
|
|
400
|
+
page: number;
|
|
401
|
+
pageSize: number;
|
|
402
|
+
total?: number;
|
|
403
|
+
onPageChange: (page: number) => void;
|
|
404
|
+
};
|
|
405
|
+
infiniteList?: {
|
|
406
|
+
hasNextPage: boolean;
|
|
407
|
+
isFetching: boolean;
|
|
408
|
+
onLoadMore: () => void;
|
|
409
|
+
loadMoreLabel?: string;
|
|
410
|
+
loadingLabel?: string;
|
|
411
|
+
endMessage?: React__default.ReactNode;
|
|
412
|
+
showLoadMoreButton?: boolean;
|
|
413
|
+
};
|
|
414
|
+
searchable?: boolean;
|
|
415
|
+
searchPlaceholder?: string;
|
|
416
|
+
className?: string;
|
|
417
|
+
};
|
|
418
|
+
declare const DataGrid: <T>({ rows, columns, getRowId, onRowClick, selectable, selectedRowIds, defaultSelectedRowIds, onSelectionChange, sortable, sort, defaultSort, onSortChange, loading, emptyState, pagination, infiniteList, searchable, searchPlaceholder, className, }: DataGridProps<T>) => react_jsx_runtime.JSX.Element;
|
|
419
|
+
|
|
420
|
+
interface FilterBarProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
421
|
+
title?: string;
|
|
422
|
+
description?: string;
|
|
423
|
+
left?: React__default.ReactNode;
|
|
424
|
+
filters?: React__default.ReactNode;
|
|
425
|
+
actions?: React__default.ReactNode;
|
|
426
|
+
sticky?: boolean;
|
|
427
|
+
}
|
|
428
|
+
declare const FilterBar: ({ title, description, left, filters, actions, sticky, className, ...props }: FilterBarProps) => react_jsx_runtime.JSX.Element;
|
|
429
|
+
|
|
430
|
+
type AccordionVariant = "primary" | "secondary" | "ghost";
|
|
431
|
+
interface AccordionItem {
|
|
432
|
+
id: string;
|
|
433
|
+
title: React__default.ReactNode;
|
|
434
|
+
content: React__default.ReactNode;
|
|
435
|
+
disabled?: boolean;
|
|
436
|
+
}
|
|
437
|
+
interface AccordionProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
438
|
+
items: AccordionItem[];
|
|
439
|
+
variant?: AccordionVariant;
|
|
440
|
+
allowMultiple?: boolean;
|
|
441
|
+
defaultOpenIds?: string[];
|
|
442
|
+
openIds?: string[];
|
|
443
|
+
onOpenIdsChange?: (openIds: string[]) => void;
|
|
444
|
+
children?: React__default.ReactNode;
|
|
445
|
+
}
|
|
446
|
+
declare const Accordion: ({ items, variant, allowMultiple, defaultOpenIds, openIds: controlledOpenIds, onOpenIdsChange, className, children, ...props }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
447
|
+
|
|
448
|
+
type ScrollFrom = "bottom" | "top" | "left" | "right";
|
|
449
|
+
interface ScrollRevealProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
450
|
+
from?: ScrollFrom;
|
|
451
|
+
distance?: number;
|
|
452
|
+
durationMs?: number;
|
|
453
|
+
delayMs?: number;
|
|
454
|
+
once?: boolean;
|
|
455
|
+
threshold?: number;
|
|
456
|
+
rootMargin?: string;
|
|
457
|
+
asChild?: boolean;
|
|
458
|
+
glassy?: boolean;
|
|
459
|
+
children: React__default.ReactNode;
|
|
460
|
+
}
|
|
461
|
+
declare const ScrollReveal: React__default.ForwardRefExoticComponent<ScrollRevealProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
462
|
+
|
|
463
|
+
type CoverVariant = "default" | "split" | "centered" | "stacked";
|
|
464
|
+
type CoverSize = "full" | "sm" | "md" | "lg";
|
|
465
|
+
type CoverSurface = "plain" | "card" | "glass";
|
|
466
|
+
type CoverAlign = "left" | "center";
|
|
467
|
+
type CoverAs = "section" | "header" | "div";
|
|
468
|
+
type CoverTextVariant = "primary" | "secondary" | "light" | "default";
|
|
469
|
+
type CoverBaseProps = Omit<React__default.HTMLAttributes<HTMLElement>, "title">;
|
|
470
|
+
interface CoverProps extends CoverBaseProps {
|
|
471
|
+
title?: React__default.ReactNode;
|
|
472
|
+
subtitle?: React__default.ReactNode;
|
|
473
|
+
eyebrow?: React__default.ReactNode;
|
|
474
|
+
description?: React__default.ReactNode;
|
|
475
|
+
actions?: React__default.ReactNode;
|
|
476
|
+
media?: React__default.ReactNode;
|
|
477
|
+
variant?: CoverVariant;
|
|
478
|
+
size?: CoverSize;
|
|
479
|
+
surface?: CoverSurface;
|
|
480
|
+
align?: CoverAlign;
|
|
481
|
+
as?: CoverAs;
|
|
482
|
+
textVariant?: CoverTextVariant;
|
|
483
|
+
reveal?: boolean;
|
|
484
|
+
revealProps?: Omit<ScrollRevealProps, "children" | "className">;
|
|
485
|
+
children?: React__default.ReactNode;
|
|
486
|
+
}
|
|
487
|
+
declare const Cover: React__default.ForwardRefExoticComponent<CoverProps & React__default.RefAttributes<HTMLElement>>;
|
|
488
|
+
|
|
489
|
+
declare enum LoaderType {
|
|
490
|
+
SPINNER = "spinner",
|
|
491
|
+
DOTS = "dots",
|
|
492
|
+
RING = "ring"
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
interface FormProps<T extends object = Record<string, unknown>> {
|
|
496
|
+
title: string;
|
|
497
|
+
fields: FieldConfig[];
|
|
498
|
+
values: T;
|
|
499
|
+
errors?: Partial<Record<keyof T, string>>;
|
|
500
|
+
loading?: boolean;
|
|
501
|
+
success?: string | null;
|
|
502
|
+
error?: string | null;
|
|
503
|
+
columns?: 1 | 2;
|
|
504
|
+
size?: "sm" | "md" | "lg" | "full";
|
|
505
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
506
|
+
onSubmit?: (e: React__default.FormEvent) => void;
|
|
507
|
+
onReset?: () => void;
|
|
508
|
+
loaderType?: LoaderType;
|
|
509
|
+
dict: Record<string, string>;
|
|
510
|
+
t?: (key: string, values?: Record<string, unknown>) => string;
|
|
511
|
+
onFormStateChange?: (state: FormState) => void;
|
|
512
|
+
studio?: {
|
|
513
|
+
onSubmitLabelDoubleClick?: () => void;
|
|
514
|
+
onResetLabelDoubleClick?: () => void;
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
declare const Form: <T extends object>({ title, fields, values, errors, loading, success, error, onChange, onSubmit, onReset, columns, size, loaderType, dict, t, onFormStateChange, studio, }: FormProps<T>) => react_jsx_runtime.JSX.Element;
|
|
518
|
+
|
|
519
|
+
interface FormFieldProps {
|
|
520
|
+
field: FieldConfig;
|
|
521
|
+
value: Field;
|
|
522
|
+
error?: string;
|
|
523
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
524
|
+
/** Optionnel si un formulaire veut overrider le loader */
|
|
525
|
+
loaderType?: LoaderType;
|
|
526
|
+
dict: Record<string, string>;
|
|
527
|
+
}
|
|
528
|
+
declare const FormField: ({ field, value, error, onChange, loaderType, dict, }: FormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
529
|
+
|
|
530
|
+
type DateRange = {
|
|
531
|
+
start?: Date;
|
|
532
|
+
end?: Date;
|
|
533
|
+
};
|
|
534
|
+
type DateRangePickerConstraints = {
|
|
535
|
+
minDate?: Date;
|
|
536
|
+
maxDate?: Date;
|
|
537
|
+
disabledDates?: Date[];
|
|
538
|
+
isDateDisabled?: (date: Date) => boolean;
|
|
539
|
+
minNights?: number;
|
|
540
|
+
};
|
|
541
|
+
type DateRangePickerCalendar = {
|
|
542
|
+
monthsToShow?: 1 | 2;
|
|
543
|
+
firstDayOfWeek?: 0 | 1;
|
|
544
|
+
locale?: string;
|
|
545
|
+
showWeekNumbers?: boolean;
|
|
546
|
+
};
|
|
547
|
+
type DateRangePickerOverlay = {
|
|
548
|
+
responsiveMode?: "auto" | "desktop" | "mobile";
|
|
549
|
+
mobileOverlay?: "drawer" | "popin";
|
|
550
|
+
mobileTitle?: React__default.ReactNode;
|
|
551
|
+
withTrigger?: boolean;
|
|
552
|
+
placeholder?: string;
|
|
553
|
+
formatValue?: (range: DateRange, locale: string, placeholder: string) => string;
|
|
554
|
+
};
|
|
555
|
+
type DateRangePickerProps = {
|
|
556
|
+
value?: DateRange;
|
|
557
|
+
defaultValue?: DateRange;
|
|
558
|
+
onChange?: (range: DateRange) => void;
|
|
559
|
+
constraints?: DateRangePickerConstraints;
|
|
560
|
+
calendar?: DateRangePickerCalendar;
|
|
561
|
+
overlay?: DateRangePickerOverlay;
|
|
562
|
+
className?: string;
|
|
563
|
+
};
|
|
564
|
+
declare const DateRangePicker: ({ value, defaultValue, onChange, constraints, calendar, overlay, className, }: DateRangePickerProps) => react_jsx_runtime.JSX.Element;
|
|
565
|
+
|
|
566
|
+
type DateRangeFieldUi = {
|
|
567
|
+
description?: React__default.ReactNode;
|
|
568
|
+
placeholder?: string;
|
|
569
|
+
format?: (range: DateRange) => string;
|
|
570
|
+
hideLabel?: boolean;
|
|
571
|
+
};
|
|
572
|
+
type DateRangeFieldProps = {
|
|
573
|
+
name: string;
|
|
574
|
+
label: React__default.ReactNode;
|
|
575
|
+
required?: boolean;
|
|
576
|
+
className?: string;
|
|
577
|
+
value?: DateRange;
|
|
578
|
+
defaultValue?: DateRange;
|
|
579
|
+
onChange?: (range: DateRange) => void;
|
|
580
|
+
ui?: DateRangeFieldUi;
|
|
581
|
+
picker?: Omit<DateRangePickerProps, "value" | "defaultValue" | "onChange" | "className">;
|
|
582
|
+
};
|
|
583
|
+
declare const DateRangeField: ({ name, label, required, className, value, defaultValue, onChange, ui, picker, }: DateRangeFieldProps) => react_jsx_runtime.JSX.Element;
|
|
584
|
+
|
|
585
|
+
interface InfiniteListProps {
|
|
586
|
+
children: React__default.ReactNode;
|
|
587
|
+
hasNextPage: boolean;
|
|
588
|
+
isFetching: boolean;
|
|
589
|
+
onLoadMore: () => void;
|
|
590
|
+
loadMoreLabel?: string;
|
|
591
|
+
loadingLabel?: string;
|
|
592
|
+
endMessage?: React__default.ReactNode;
|
|
593
|
+
ariaLive?: "polite" | "off";
|
|
594
|
+
roleFeed?: boolean;
|
|
595
|
+
skeleton?: React__default.ReactNode;
|
|
596
|
+
skeletonCount?: number;
|
|
597
|
+
rootMargin?: string;
|
|
598
|
+
threshold?: number;
|
|
599
|
+
disabled?: boolean;
|
|
600
|
+
className?: string;
|
|
601
|
+
sentinelClassName?: string;
|
|
602
|
+
showLoadMoreButton?: boolean;
|
|
603
|
+
}
|
|
604
|
+
declare const InfiniteList: ({ children, hasNextPage, isFetching, onLoadMore, loadMoreLabel, loadingLabel, endMessage, ariaLive, roleFeed, skeleton, skeletonCount, rootMargin, threshold, disabled, className, sentinelClassName, showLoadMoreButton, }: InfiniteListProps) => react_jsx_runtime.JSX.Element;
|
|
605
|
+
|
|
606
|
+
interface PaginationProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
607
|
+
page: number;
|
|
608
|
+
pageCount: number;
|
|
609
|
+
onPageChange: (page: number) => void;
|
|
610
|
+
siblingCount?: number;
|
|
611
|
+
disabled?: boolean;
|
|
612
|
+
previousLabel?: string;
|
|
613
|
+
lastLabel?: string;
|
|
614
|
+
}
|
|
615
|
+
declare const Pagination: ({ page, pageCount, onPageChange, siblingCount, disabled, previousLabel, lastLabel, className, ...props }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
616
|
+
|
|
617
|
+
type BindableTextValue = string | number | {
|
|
618
|
+
$t?: string;
|
|
619
|
+
$ref?: string;
|
|
620
|
+
values?: Record<string, unknown>;
|
|
621
|
+
};
|
|
622
|
+
interface Step {
|
|
623
|
+
id: string | BindableTextValue;
|
|
624
|
+
title: React__default.ReactNode | BindableTextValue;
|
|
625
|
+
description?: React__default.ReactNode | BindableTextValue;
|
|
626
|
+
state?: "complete" | "active" | "upcoming" | "blocked";
|
|
627
|
+
}
|
|
628
|
+
interface StepperProps {
|
|
629
|
+
steps: Step[];
|
|
630
|
+
activeStepId: string;
|
|
631
|
+
onStepChange?: (id: string) => void;
|
|
632
|
+
onStepTitleDoubleClick?: (id: string) => void;
|
|
633
|
+
onStepDescriptionDoubleClick?: (id: string) => void;
|
|
634
|
+
orientation?: "horizontal" | "vertical";
|
|
635
|
+
className?: string;
|
|
636
|
+
}
|
|
637
|
+
declare const Stepper: ({ steps, activeStepId, onStepChange, onStepTitleDoubleClick, onStepDescriptionDoubleClick, orientation, className, }: StepperProps) => react_jsx_runtime.JSX.Element;
|
|
638
|
+
|
|
639
|
+
type StepFormVariant = "plain" | "card" | "glass";
|
|
640
|
+
type StepFormAlign = "left" | "center";
|
|
641
|
+
type StepFormSize = "sm" | "md" | "lg";
|
|
642
|
+
type StepFormFormProps<T extends object = Record<string, unknown>> = {
|
|
643
|
+
fields: FieldConfig[];
|
|
644
|
+
values: T;
|
|
645
|
+
errors?: Partial<Record<keyof T, string>>;
|
|
646
|
+
loading?: boolean;
|
|
647
|
+
submitDisabled?: boolean;
|
|
648
|
+
success?: string | null;
|
|
649
|
+
error?: string | null;
|
|
650
|
+
columns?: 1 | 2;
|
|
651
|
+
onChange: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
652
|
+
onSubmit?: (e: React__default.FormEvent) => void;
|
|
653
|
+
onReset?: () => void;
|
|
654
|
+
loaderType?: LoaderType;
|
|
655
|
+
dict?: Record<string, string>;
|
|
656
|
+
};
|
|
657
|
+
type StepFormStudioProps = {
|
|
658
|
+
nodeId: string;
|
|
659
|
+
selected?: boolean;
|
|
660
|
+
sizing?: {
|
|
661
|
+
widthPct?: number | null;
|
|
662
|
+
heightPct?: number | null;
|
|
663
|
+
heightPx?: number | null;
|
|
664
|
+
};
|
|
665
|
+
onSelect?: (nodeId: string) => void;
|
|
666
|
+
onResize?: (nodeId: string, size: {
|
|
667
|
+
widthPct: number;
|
|
668
|
+
heightPct: number;
|
|
669
|
+
heightPx?: number;
|
|
670
|
+
}) => void;
|
|
671
|
+
onSubmitLabelDoubleClick?: () => void;
|
|
672
|
+
onResetLabelDoubleClick?: () => void;
|
|
673
|
+
};
|
|
674
|
+
type StepFormProps = {
|
|
675
|
+
title?: React__default.ReactNode;
|
|
676
|
+
description?: React__default.ReactNode;
|
|
677
|
+
children?: React__default.ReactNode;
|
|
678
|
+
actions?: React__default.ReactNode;
|
|
679
|
+
variant?: StepFormVariant;
|
|
680
|
+
align?: StepFormAlign;
|
|
681
|
+
size?: StepFormSize;
|
|
682
|
+
headerSlot?: React__default.ReactNode;
|
|
683
|
+
footerSlot?: React__default.ReactNode;
|
|
684
|
+
stickyActions?: boolean;
|
|
685
|
+
className?: string;
|
|
686
|
+
form?: StepFormFormProps;
|
|
687
|
+
studio?: StepFormStudioProps;
|
|
688
|
+
};
|
|
689
|
+
declare const StepForm: React__default.ForwardRefExoticComponent<StepFormProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
690
|
+
|
|
691
|
+
type WizardStepId = string;
|
|
692
|
+
type WizardStepBase = {
|
|
693
|
+
id: WizardStepId;
|
|
694
|
+
title: string;
|
|
695
|
+
description?: string;
|
|
696
|
+
titleNode?: React__default.ReactNode;
|
|
697
|
+
descriptionNode?: React__default.ReactNode;
|
|
698
|
+
content: React__default.ReactNode;
|
|
699
|
+
isValid?: boolean;
|
|
700
|
+
onNext?: () => boolean | Promise<boolean>;
|
|
701
|
+
};
|
|
702
|
+
type FormWizardLabels = {
|
|
703
|
+
next?: unknown;
|
|
704
|
+
back?: unknown;
|
|
705
|
+
finish?: unknown;
|
|
706
|
+
};
|
|
707
|
+
type FormWizardLayout = {
|
|
708
|
+
variant?: StepFormVariant;
|
|
709
|
+
orientation?: "horizontal" | "vertical";
|
|
710
|
+
size?: StepFormSize;
|
|
711
|
+
keepMounted?: boolean;
|
|
712
|
+
};
|
|
713
|
+
type FormWizardI18n = {
|
|
714
|
+
t?: (key: string, values?: Record<string, unknown>) => string;
|
|
715
|
+
ariaLabel?: string;
|
|
716
|
+
};
|
|
717
|
+
type FormWizardBehavior = {
|
|
718
|
+
validateOnNext?: "none" | "onNext";
|
|
719
|
+
};
|
|
720
|
+
type FormWizardStateConfig = {
|
|
721
|
+
isSubmitting?: boolean;
|
|
722
|
+
};
|
|
723
|
+
type FormWizardFormConfig = {
|
|
724
|
+
onValidateStep?: (stepId: WizardStepId) => boolean | Promise<boolean>;
|
|
725
|
+
fieldsByStep?: Record<WizardStepId, FieldConfig[]>;
|
|
726
|
+
values?: Record<string, Field>;
|
|
727
|
+
errors?: Record<string, string | undefined>;
|
|
728
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
729
|
+
dict?: Record<string, string>;
|
|
730
|
+
loaderType?: LoaderType;
|
|
731
|
+
};
|
|
732
|
+
type FormWizardStudioProps = {
|
|
733
|
+
onStepTitleDoubleClick?: (id: WizardStepId) => void;
|
|
734
|
+
onStepDescriptionDoubleClick?: (id: WizardStepId) => void;
|
|
735
|
+
onBackLabelDoubleClick?: () => void;
|
|
736
|
+
onNextLabelDoubleClick?: () => void;
|
|
737
|
+
onFinishLabelDoubleClick?: () => void;
|
|
738
|
+
};
|
|
739
|
+
type FormWizardProps = {
|
|
740
|
+
steps: WizardStepBase[];
|
|
741
|
+
initialStepId?: WizardStepId;
|
|
742
|
+
activeStepId?: WizardStepId;
|
|
743
|
+
onStepChange?: (id: WizardStepId) => void;
|
|
744
|
+
className?: string;
|
|
745
|
+
onFinish?: () => void | Promise<void>;
|
|
746
|
+
onFormStateChange?: (state: FormWizardState) => void;
|
|
747
|
+
labels?: FormWizardLabels;
|
|
748
|
+
layout?: FormWizardLayout;
|
|
749
|
+
i18n?: FormWizardI18n;
|
|
750
|
+
behavior?: FormWizardBehavior;
|
|
751
|
+
state?: FormWizardStateConfig;
|
|
752
|
+
form?: FormWizardFormConfig;
|
|
753
|
+
studio?: FormWizardStudioProps;
|
|
754
|
+
};
|
|
755
|
+
type FormWizardState = FormState & {
|
|
756
|
+
currentStep: WizardStepId;
|
|
757
|
+
totalSteps: number;
|
|
758
|
+
canGoNext: boolean;
|
|
759
|
+
canGoPrevious: boolean;
|
|
760
|
+
};
|
|
761
|
+
declare const FormWizard: ({ steps, initialStepId, activeStepId: controlledActiveStepId, onStepChange, className, onFinish, onFormStateChange, labels, layout, i18n, behavior, state, form, studio, }: FormWizardProps) => react_jsx_runtime.JSX.Element;
|
|
762
|
+
|
|
763
|
+
type TreeId = string;
|
|
764
|
+
type TreeItem = {
|
|
765
|
+
id: TreeId;
|
|
766
|
+
label: React__default.ReactNode;
|
|
767
|
+
children?: TreeItem[];
|
|
768
|
+
disabled?: boolean;
|
|
769
|
+
icon?: React__default.ReactNode;
|
|
770
|
+
meta?: React__default.ReactNode;
|
|
771
|
+
defaultExpanded?: boolean;
|
|
772
|
+
};
|
|
773
|
+
type TreeSelectionConfig = {
|
|
774
|
+
selectedId?: TreeId | null;
|
|
775
|
+
defaultSelectedId?: TreeId | null;
|
|
776
|
+
selectedIds?: TreeId[];
|
|
777
|
+
defaultSelectedIds?: TreeId[];
|
|
778
|
+
onSelectionChange?: (payload: {
|
|
779
|
+
selectedId?: TreeId | null;
|
|
780
|
+
selectedIds?: TreeId[];
|
|
781
|
+
}) => void;
|
|
782
|
+
};
|
|
783
|
+
type TreeExpandedConfig = {
|
|
784
|
+
expandedIds?: TreeId[];
|
|
785
|
+
defaultExpandedIds?: TreeId[];
|
|
786
|
+
onExpandedChange?: (ids: TreeId[]) => void;
|
|
787
|
+
};
|
|
788
|
+
type TreeCheckedConfig = {
|
|
789
|
+
checkable?: boolean;
|
|
790
|
+
checkedIds?: TreeId[];
|
|
791
|
+
defaultCheckedIds?: TreeId[];
|
|
792
|
+
onCheckedChange?: (ids: TreeId[]) => void;
|
|
793
|
+
};
|
|
794
|
+
type TreeBehaviorConfig = {
|
|
795
|
+
collapseOnSelect?: boolean;
|
|
796
|
+
expandOnSelect?: boolean;
|
|
797
|
+
toggleOnLabelClick?: boolean;
|
|
798
|
+
};
|
|
799
|
+
type TreeAppearanceConfig = {
|
|
800
|
+
intent?: "primary" | "secondary";
|
|
801
|
+
indentPx?: number;
|
|
802
|
+
showLines?: boolean;
|
|
803
|
+
itemClassName?: string;
|
|
804
|
+
};
|
|
805
|
+
type TreeProps = {
|
|
806
|
+
items: TreeItem[];
|
|
807
|
+
selectionMode?: "none" | "single" | "multiple";
|
|
808
|
+
selection?: TreeSelectionConfig;
|
|
809
|
+
expanded?: TreeExpandedConfig;
|
|
810
|
+
checked?: TreeCheckedConfig;
|
|
811
|
+
behavior?: TreeBehaviorConfig;
|
|
812
|
+
appearance?: TreeAppearanceConfig;
|
|
813
|
+
renderItem?: (item: TreeItem, state: {
|
|
814
|
+
level: number;
|
|
815
|
+
expanded: boolean;
|
|
816
|
+
selected: boolean;
|
|
817
|
+
disabled: boolean;
|
|
818
|
+
hasChildren: boolean;
|
|
819
|
+
checked?: boolean;
|
|
820
|
+
}) => React__default.ReactNode;
|
|
821
|
+
className?: string;
|
|
822
|
+
"aria-label"?: string;
|
|
823
|
+
};
|
|
824
|
+
declare const Tree: ({ items, selectionMode, selection, expanded, checked, behavior, appearance, renderItem, className, "aria-label": ariaLabel, }: TreeProps) => react_jsx_runtime.JSX.Element;
|
|
825
|
+
|
|
826
|
+
interface TableProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
827
|
+
dense?: boolean;
|
|
828
|
+
striped?: boolean;
|
|
829
|
+
hoverable?: boolean;
|
|
830
|
+
}
|
|
831
|
+
type TableHeaderProps = React__default.HTMLAttributes<HTMLTableSectionElement>;
|
|
832
|
+
type TableBodyProps = React__default.HTMLAttributes<HTMLTableSectionElement>;
|
|
833
|
+
type TableFooterProps = React__default.HTMLAttributes<HTMLTableSectionElement>;
|
|
834
|
+
type TableRowProps = React__default.HTMLAttributes<HTMLTableRowElement>;
|
|
835
|
+
type TableHeadProps = React__default.ThHTMLAttributes<HTMLTableCellElement>;
|
|
836
|
+
type TableCellProps = React__default.TdHTMLAttributes<HTMLTableCellElement>;
|
|
837
|
+
type TableCaptionProps = React__default.HTMLAttributes<HTMLTableCaptionElement>;
|
|
838
|
+
declare const Table: (({ dense, striped, hoverable, className, children, ...props }: TableProps) => react_jsx_runtime.JSX.Element) & {
|
|
839
|
+
Header: ({ className, ...props }: TableHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
840
|
+
Body: ({ className, ...props }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
841
|
+
Footer: ({ className, ...props }: TableFooterProps) => react_jsx_runtime.JSX.Element;
|
|
842
|
+
Row: ({ className, ...props }: TableRowProps) => react_jsx_runtime.JSX.Element;
|
|
843
|
+
Head: ({ className, ...props }: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
844
|
+
Cell: ({ className, ...props }: TableCellProps) => react_jsx_runtime.JSX.Element;
|
|
845
|
+
Caption: ({ className, ...props }: TableCaptionProps) => react_jsx_runtime.JSX.Element;
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
type PopinMaxSize = "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
849
|
+
interface PopinProps {
|
|
850
|
+
displayedPopin: boolean;
|
|
851
|
+
setDisplayedPopin: Dispatch<SetStateAction<boolean>>;
|
|
852
|
+
title: React.ReactNode;
|
|
853
|
+
closeText: React.ReactNode;
|
|
854
|
+
hasCloseAvailability?: boolean;
|
|
855
|
+
closeOnOutsideClick?: boolean;
|
|
856
|
+
maxSize?: PopinMaxSize;
|
|
857
|
+
/** optional CTA button */
|
|
858
|
+
actionText?: React.ReactNode;
|
|
859
|
+
onAction?: () => void;
|
|
860
|
+
/** require scroll to enable CTA */
|
|
861
|
+
requireScrollToEnableAction?: boolean;
|
|
862
|
+
}
|
|
863
|
+
declare const Popin: ({ displayedPopin, children, setDisplayedPopin, title, closeText, hasCloseAvailability, closeOnOutsideClick, maxSize, actionText, onAction, requireScrollToEnableAction, }: PropsWithChildren<PopinProps>) => react_jsx_runtime.JSX.Element | null;
|
|
864
|
+
|
|
865
|
+
interface ProductProps {
|
|
866
|
+
name: string;
|
|
867
|
+
description?: string | null;
|
|
868
|
+
price?: number | null;
|
|
869
|
+
currency: Currency | null;
|
|
870
|
+
image: string;
|
|
871
|
+
fallbackImage: string;
|
|
872
|
+
handleCancel: () => void;
|
|
873
|
+
handleAddToCart: () => void;
|
|
874
|
+
cancelText: string;
|
|
875
|
+
addToCartText: string;
|
|
876
|
+
isDisabled: boolean;
|
|
877
|
+
isNotCancelable: boolean;
|
|
878
|
+
}
|
|
879
|
+
declare const Product: ({ name, description, price, currency, image, fallbackImage, handleAddToCart, handleCancel, cancelText, addToCartText, isDisabled, isNotCancelable, }: ProductProps) => react_jsx_runtime.JSX.Element;
|
|
880
|
+
|
|
881
|
+
interface TabItem {
|
|
882
|
+
label?: ReactNode;
|
|
883
|
+
title?: ReactNode;
|
|
884
|
+
content?: ReactNode;
|
|
885
|
+
id: string | number;
|
|
886
|
+
}
|
|
887
|
+
type TabsNavigation = {
|
|
888
|
+
/** retourne le search actuel, ex: "?tab=foo&x=1" */
|
|
889
|
+
getSearch: () => string;
|
|
890
|
+
/** remplace le search sans recharger (ou navigation client) */
|
|
891
|
+
replaceSearch: (nextSearch: string) => void;
|
|
892
|
+
};
|
|
893
|
+
interface TabsProps {
|
|
894
|
+
tabs: TabItem[];
|
|
895
|
+
defaultActive?: string;
|
|
896
|
+
className?: string;
|
|
897
|
+
dict: Record<string, string>;
|
|
898
|
+
keepMounted?: boolean;
|
|
899
|
+
/** Active la synchro URL (ex: param tab=xxx). Optionnel. */
|
|
900
|
+
urlSync?: {
|
|
901
|
+
param?: string;
|
|
902
|
+
navigation: TabsNavigation;
|
|
903
|
+
};
|
|
904
|
+
/** Callback optionnel */
|
|
905
|
+
onChange?: (nextTabId: string) => void;
|
|
906
|
+
}
|
|
907
|
+
declare const _default: React__default.MemoExoticComponent<({ tabs, defaultActive, className, dict, keepMounted, urlSync, onChange, }: TabsProps) => react_jsx_runtime.JSX.Element>;
|
|
908
|
+
|
|
909
|
+
type ToastIntent = "success" | "danger" | "warning" | "info";
|
|
910
|
+
/**
|
|
911
|
+
* @deprecated Use `intent`.
|
|
912
|
+
*/
|
|
913
|
+
type ToastType = "success" | "error" | "warning" | "info";
|
|
914
|
+
interface ToastProps {
|
|
915
|
+
intent?: ToastIntent;
|
|
916
|
+
/**
|
|
917
|
+
* @deprecated Use `intent`.
|
|
918
|
+
*/
|
|
919
|
+
type?: ToastType;
|
|
920
|
+
message: string | React__default.ReactNode;
|
|
921
|
+
duration?: number;
|
|
922
|
+
onClose: () => void;
|
|
923
|
+
}
|
|
924
|
+
declare const Toast: ({ intent, type, message, duration, onClose, }: ToastProps) => react_jsx_runtime.JSX.Element;
|
|
925
|
+
|
|
926
|
+
interface ToastData {
|
|
927
|
+
id: number;
|
|
928
|
+
message: string | React__default.ReactNode;
|
|
929
|
+
intent: ToastIntent;
|
|
930
|
+
}
|
|
931
|
+
interface ToastContainerProps {
|
|
932
|
+
toasts: ToastData[];
|
|
933
|
+
setToasts: Dispatch<SetStateAction<ToastData[]>>;
|
|
934
|
+
}
|
|
935
|
+
declare const ToastContainer: ({ toasts, setToasts }: ToastContainerProps) => react_jsx_runtime.JSX.Element;
|
|
936
|
+
|
|
937
|
+
interface TooltipProps {
|
|
938
|
+
content: React__default.ReactNode;
|
|
939
|
+
children: React__default.ReactNode;
|
|
940
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
941
|
+
align?: "start" | "center" | "end";
|
|
942
|
+
delay?: number;
|
|
943
|
+
disabled?: boolean;
|
|
944
|
+
className?: string;
|
|
945
|
+
portal?: boolean;
|
|
946
|
+
triggerMode?: "hover" | "click" | "both";
|
|
947
|
+
containerClassName?: string;
|
|
948
|
+
}
|
|
949
|
+
declare const Tooltip: ({ content, children, side, align, delay, disabled, className, portal, triggerMode, containerClassName, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
950
|
+
|
|
951
|
+
type RadioOption = {
|
|
952
|
+
label: React__default.ReactNode;
|
|
953
|
+
value: string;
|
|
954
|
+
description?: React__default.ReactNode;
|
|
955
|
+
disabled?: boolean;
|
|
956
|
+
};
|
|
957
|
+
type RadioGroupProps = {
|
|
958
|
+
name?: string;
|
|
959
|
+
value?: string;
|
|
960
|
+
defaultValue?: string;
|
|
961
|
+
onValueChange?: (value: string) => void;
|
|
962
|
+
options?: RadioOption[];
|
|
963
|
+
children?: React__default.ReactNode;
|
|
964
|
+
orientation?: "vertical" | "horizontal";
|
|
965
|
+
disabled?: boolean;
|
|
966
|
+
intent?: "primary" | "secondary" | "ghost";
|
|
967
|
+
size?: "sm" | "md" | "lg";
|
|
968
|
+
className?: string;
|
|
969
|
+
};
|
|
970
|
+
declare const RadioGroup: ({ name, value, defaultValue, onValueChange, options, children, orientation, disabled, intent, size, className, }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
971
|
+
|
|
972
|
+
type RadioFieldProps = {
|
|
973
|
+
name: string;
|
|
974
|
+
label: React__default.ReactNode;
|
|
975
|
+
description?: React__default.ReactNode;
|
|
976
|
+
required?: boolean;
|
|
977
|
+
options: RadioOption[];
|
|
978
|
+
orientation?: "vertical" | "horizontal";
|
|
979
|
+
intent?: "primary" | "secondary" | "ghost";
|
|
980
|
+
size?: "sm" | "md" | "lg";
|
|
981
|
+
disabled?: boolean;
|
|
982
|
+
className?: string;
|
|
983
|
+
value?: string;
|
|
984
|
+
defaultValue?: string;
|
|
985
|
+
onValueChange?: (value: string) => void;
|
|
986
|
+
error?: string;
|
|
987
|
+
errorId?: string;
|
|
988
|
+
};
|
|
989
|
+
declare const RadioField: ({ name, label, description, required, options, orientation, intent, size, disabled, className, value, defaultValue, onValueChange, error, errorId, }: RadioFieldProps) => react_jsx_runtime.JSX.Element;
|
|
990
|
+
|
|
991
|
+
type ButtonIntent = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
992
|
+
type ButtonVariant = "solid" | "outline" | "ghost" | "soft" | "glass" | "reverse-primary" | "reverse-secondary";
|
|
993
|
+
type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
994
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
995
|
+
intent?: ButtonIntent;
|
|
996
|
+
variant?: ButtonVariant;
|
|
997
|
+
size?: ButtonSize;
|
|
998
|
+
loading?: boolean;
|
|
999
|
+
}
|
|
1000
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1001
|
+
|
|
1002
|
+
type BadgeIntent = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
1003
|
+
type BadgeVariant = "solid" | "outline" | "ghost" | "soft" | "glass";
|
|
1004
|
+
type BadgeSize = "xs" | "sm" | "md" | "lg";
|
|
1005
|
+
/**
|
|
1006
|
+
* @deprecated Use `intent` + `variant` instead.
|
|
1007
|
+
*/
|
|
1008
|
+
type LegacyBadgeVariant = "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "outline";
|
|
1009
|
+
interface BadgeProps extends React__default.HTMLAttributes<HTMLSpanElement> {
|
|
1010
|
+
children: React__default.ReactNode;
|
|
1011
|
+
intent?: BadgeIntent;
|
|
1012
|
+
variant?: BadgeVariant | LegacyBadgeVariant;
|
|
1013
|
+
size?: BadgeSize;
|
|
1014
|
+
}
|
|
1015
|
+
declare const Badge: ({ children, intent, variant, size, className, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1016
|
+
|
|
1017
|
+
interface AvatarProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1018
|
+
src?: string;
|
|
1019
|
+
alt?: string;
|
|
1020
|
+
fallback?: string;
|
|
1021
|
+
size?: "sm" | "md" | "lg";
|
|
1022
|
+
}
|
|
1023
|
+
declare const Avatar: ({ src, alt, fallback, size, className, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
1024
|
+
|
|
1025
|
+
type CheckboxProps = React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
1026
|
+
declare const Checkbox: React__default.ForwardRefExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
1027
|
+
|
|
1028
|
+
type RadioProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "size"> & {
|
|
1029
|
+
value: string;
|
|
1030
|
+
checked?: boolean;
|
|
1031
|
+
defaultChecked?: boolean;
|
|
1032
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1033
|
+
disabled?: boolean;
|
|
1034
|
+
intent?: "primary" | "secondary" | "ghost";
|
|
1035
|
+
size?: "sm" | "md" | "lg";
|
|
1036
|
+
label?: React__default.ReactNode;
|
|
1037
|
+
description?: React__default.ReactNode;
|
|
1038
|
+
};
|
|
1039
|
+
declare const Radio: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> & {
|
|
1040
|
+
value: string;
|
|
1041
|
+
checked?: boolean;
|
|
1042
|
+
defaultChecked?: boolean;
|
|
1043
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1044
|
+
disabled?: boolean;
|
|
1045
|
+
intent?: "primary" | "secondary" | "ghost";
|
|
1046
|
+
size?: "sm" | "md" | "lg";
|
|
1047
|
+
label?: React__default.ReactNode;
|
|
1048
|
+
description?: React__default.ReactNode;
|
|
1049
|
+
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
1050
|
+
|
|
1051
|
+
interface ContainerProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1052
|
+
size?: "sm" | "md" | "lg" | "xl" | "full" | "desktop-16-9" | "desktop-16-9-wide";
|
|
1053
|
+
}
|
|
1054
|
+
declare const Container: ({ size, className, children, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
1055
|
+
|
|
1056
|
+
interface DividerProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1057
|
+
orientation?: "horizontal" | "vertical";
|
|
1058
|
+
}
|
|
1059
|
+
declare const Divider: ({ orientation, className, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
1060
|
+
|
|
1061
|
+
type PortalProps = {
|
|
1062
|
+
children: ReactNode;
|
|
1063
|
+
container?: HTMLElement | null;
|
|
1064
|
+
containerSelector?: string;
|
|
1065
|
+
rootId?: string;
|
|
1066
|
+
};
|
|
1067
|
+
declare const Portal: ({ children, container, containerSelector, rootId }: PortalProps) => React$1.ReactPortal | null;
|
|
1068
|
+
|
|
1069
|
+
type FieldIntent = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
1070
|
+
type FieldSize = "xs" | "sm" | "md" | "lg";
|
|
1071
|
+
interface InputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
1072
|
+
intent?: FieldIntent;
|
|
1073
|
+
size?: FieldSize;
|
|
1074
|
+
rightIcon?: LucideIcon;
|
|
1075
|
+
rightIconClassName?: string;
|
|
1076
|
+
}
|
|
1077
|
+
declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
1078
|
+
|
|
1079
|
+
type Breakpoint = "base" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
1080
|
+
type Responsive<T> = Partial<Record<Breakpoint, T>>;
|
|
1081
|
+
type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
1082
|
+
type GridGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12;
|
|
1083
|
+
type GridAlign = "start" | "center" | "end" | "stretch";
|
|
1084
|
+
type GridJustify = "start" | "center" | "end" | "stretch";
|
|
1085
|
+
type GridAutoRows = "auto" | "min" | "fr";
|
|
1086
|
+
type GridProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
1087
|
+
cols?: Responsive<GridCols>;
|
|
1088
|
+
gap?: Responsive<GridGap>;
|
|
1089
|
+
align?: Responsive<GridAlign>;
|
|
1090
|
+
justify?: Responsive<GridJustify>;
|
|
1091
|
+
dense?: boolean;
|
|
1092
|
+
autoRows?: GridAutoRows;
|
|
1093
|
+
debug?: boolean;
|
|
1094
|
+
};
|
|
1095
|
+
declare const Grid: ({ cols, gap, align, justify, dense, autoRows, debug, className, style, ...props }: GridProps) => react_jsx_runtime.JSX.Element;
|
|
1096
|
+
|
|
1097
|
+
type GridItemProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
1098
|
+
colSpan?: Responsive<GridCols>;
|
|
1099
|
+
colStart?: Responsive<number>;
|
|
1100
|
+
rowSpan?: Responsive<number>;
|
|
1101
|
+
order?: Responsive<number>;
|
|
1102
|
+
selfAlign?: Responsive<GridAlign>;
|
|
1103
|
+
};
|
|
1104
|
+
declare const GridItem: ({ colSpan, colStart, rowSpan, order, selfAlign, className, style, ...props }: GridItemProps) => react_jsx_runtime.JSX.Element;
|
|
1105
|
+
|
|
1106
|
+
type LinkUnderline = "always" | "hover" | "none";
|
|
1107
|
+
type LinkTone = "default" | "muted" | "danger" | "info" | "inherit";
|
|
1108
|
+
type LinkSize = "sm" | "base" | "lg";
|
|
1109
|
+
type LinkIntent = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
1110
|
+
type LinkVariant = "text" | "solid" | "outline" | "ghost" | "soft" | "glass" | "reverse-primary" | "reverse-secondary";
|
|
1111
|
+
type LinkProps = React__default.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1112
|
+
href: string;
|
|
1113
|
+
external?: boolean;
|
|
1114
|
+
underline?: LinkUnderline;
|
|
1115
|
+
tone?: LinkTone;
|
|
1116
|
+
intent?: LinkIntent;
|
|
1117
|
+
variant?: LinkVariant;
|
|
1118
|
+
size?: LinkSize;
|
|
1119
|
+
};
|
|
1120
|
+
declare const Link: ({ href, external, underline, tone, intent, variant, size, className, rel, target, children, ...props }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
1121
|
+
|
|
1122
|
+
type KbdSize = "sm" | "md" | "lg";
|
|
1123
|
+
type KbdVariant = "default" | "subtle" | "solid";
|
|
1124
|
+
interface KbdProps extends Omit<React__default.ComponentPropsWithoutRef<"kbd">, "children"> {
|
|
1125
|
+
children: React__default.ReactNode;
|
|
1126
|
+
size?: KbdSize;
|
|
1127
|
+
variant?: KbdVariant;
|
|
1128
|
+
className?: string;
|
|
1129
|
+
}
|
|
1130
|
+
declare const Kbd: ({ children, size, variant, className, ...props }: KbdProps) => react_jsx_runtime.JSX.Element;
|
|
1131
|
+
|
|
1132
|
+
interface ProgressProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1133
|
+
value: number;
|
|
1134
|
+
max?: number;
|
|
1135
|
+
}
|
|
1136
|
+
declare const Progress: ({ value, max, className, ...props }: ProgressProps) => react_jsx_runtime.JSX.Element;
|
|
1137
|
+
|
|
1138
|
+
interface SelectProps extends Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, "size"> {
|
|
1139
|
+
intent?: FieldIntent;
|
|
1140
|
+
size?: FieldSize;
|
|
1141
|
+
}
|
|
1142
|
+
declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLSelectElement>>;
|
|
1143
|
+
|
|
1144
|
+
interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1145
|
+
rounded?: "none" | "sm" | "md" | "lg" | "full";
|
|
1146
|
+
}
|
|
1147
|
+
declare const Skeleton: ({ rounded, className, ...props }: SkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
1148
|
+
|
|
1149
|
+
type SliderIntent = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
1150
|
+
type SliderSize = "sm" | "md" | "lg";
|
|
1151
|
+
interface SliderProps {
|
|
1152
|
+
value: number;
|
|
1153
|
+
onChange: (v: number) => void;
|
|
1154
|
+
min?: number;
|
|
1155
|
+
max?: number;
|
|
1156
|
+
step?: number;
|
|
1157
|
+
disabled?: boolean;
|
|
1158
|
+
showValue?: boolean;
|
|
1159
|
+
formatValue?: (v: number) => string;
|
|
1160
|
+
intent?: SliderIntent;
|
|
1161
|
+
size?: SliderSize;
|
|
1162
|
+
className?: string;
|
|
1163
|
+
id?: string;
|
|
1164
|
+
name?: string;
|
|
1165
|
+
"aria-label"?: string;
|
|
1166
|
+
}
|
|
1167
|
+
declare const Slider: ({ value, onChange, min, max, step, disabled, showValue, formatValue, intent, size, className, ...props }: SliderProps) => react_jsx_runtime.JSX.Element;
|
|
1168
|
+
|
|
1169
|
+
interface SwitchProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> {
|
|
1170
|
+
checked: boolean;
|
|
1171
|
+
onChange: (checked: boolean) => void;
|
|
1172
|
+
disabled?: boolean;
|
|
1173
|
+
label?: string;
|
|
1174
|
+
}
|
|
1175
|
+
declare const Switch: ({ checked, onChange, disabled, label, className, onKeyDown, "aria-label": ariaLabel, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
1176
|
+
|
|
1177
|
+
type TagIntent = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
1178
|
+
type TagVariant = "solid" | "soft" | "outline" | "ghost" | "glass";
|
|
1179
|
+
type TagSize = "sm" | "md";
|
|
1180
|
+
interface TagProps extends React__default.HTMLAttributes<HTMLSpanElement> {
|
|
1181
|
+
children: React__default.ReactNode;
|
|
1182
|
+
onRemove?: () => void;
|
|
1183
|
+
intent?: TagIntent;
|
|
1184
|
+
variant?: TagVariant;
|
|
1185
|
+
size?: TagSize;
|
|
1186
|
+
disabled?: boolean;
|
|
1187
|
+
}
|
|
1188
|
+
declare const Tag: ({ children, onRemove, intent, variant, size, disabled, className, ...props }: TagProps) => react_jsx_runtime.JSX.Element;
|
|
1189
|
+
|
|
1190
|
+
interface TextareaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
1191
|
+
intent?: FieldIntent;
|
|
1192
|
+
size?: FieldSize;
|
|
1193
|
+
}
|
|
1194
|
+
declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
1195
|
+
|
|
1196
|
+
type UploadIntent = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
1197
|
+
type UploadVariant = "solid" | "outline" | "ghost" | "soft" | "glass";
|
|
1198
|
+
type FileUploadRejectReason = {
|
|
1199
|
+
type: "maxFiles" | "maxSize" | "accept";
|
|
1200
|
+
file?: File;
|
|
1201
|
+
};
|
|
1202
|
+
interface FileUploadProps {
|
|
1203
|
+
value?: File[];
|
|
1204
|
+
onChange: (files: File[]) => void;
|
|
1205
|
+
multiple?: boolean;
|
|
1206
|
+
accept?: string;
|
|
1207
|
+
maxFiles?: number;
|
|
1208
|
+
maxSizeBytes?: number;
|
|
1209
|
+
disabled?: boolean;
|
|
1210
|
+
renderFile?: (file: File) => React__default.ReactNode;
|
|
1211
|
+
onReject?: (reason: FileUploadRejectReason) => void;
|
|
1212
|
+
intent?: UploadIntent;
|
|
1213
|
+
variant?: UploadVariant;
|
|
1214
|
+
className?: string;
|
|
1215
|
+
}
|
|
1216
|
+
declare const FileUpload: ({ value, onChange, multiple, accept, maxFiles, maxSizeBytes, disabled, renderFile, onReject, intent, variant, className, }: FileUploadProps) => react_jsx_runtime.JSX.Element;
|
|
1217
|
+
|
|
1218
|
+
type TypographyTone = "default" | "muted" | "danger" | "success" | "warning" | "info" | "inherit";
|
|
1219
|
+
type TypographySize = "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl";
|
|
1220
|
+
type TypographyWeight = "normal" | "medium" | "semibold" | "bold";
|
|
1221
|
+
type TypographyTracking = "tight" | "normal";
|
|
1222
|
+
type TypographyLeading = "tight" | "normal" | "relaxed";
|
|
1223
|
+
/** @deprecated Use `tone` instead. */
|
|
1224
|
+
type TypographyVariant = "primary" | "secondary" | "custom";
|
|
1225
|
+
type VariantAliasProps = {
|
|
1226
|
+
/** @deprecated Use `tone` instead. */
|
|
1227
|
+
variant?: TypographyVariant;
|
|
1228
|
+
};
|
|
1229
|
+
type PolymorphicProps<C extends React__default.ElementType, Props> = Props & Omit<React__default.ComponentPropsWithoutRef<C>, keyof Props | "as"> & {
|
|
1230
|
+
as?: C;
|
|
1231
|
+
};
|
|
1232
|
+
type TypographyOwnProps = VariantAliasProps & {
|
|
1233
|
+
children: React__default.ReactNode;
|
|
1234
|
+
tone?: TypographyTone;
|
|
1235
|
+
size?: TypographySize;
|
|
1236
|
+
weight?: TypographyWeight;
|
|
1237
|
+
tracking?: TypographyTracking;
|
|
1238
|
+
leading?: TypographyLeading;
|
|
1239
|
+
className?: string;
|
|
1240
|
+
};
|
|
1241
|
+
type TypographyProps<C extends React__default.ElementType = "p"> = PolymorphicProps<C, TypographyOwnProps>;
|
|
1242
|
+
declare const Typography: <C extends React__default.ElementType = "p">({ as, children, tone, variant, size, weight, tracking, leading, className, ...props }: TypographyProps<C>) => react_jsx_runtime.JSX.Element;
|
|
1243
|
+
type H1Props = VariantAliasProps & Omit<React__default.HTMLAttributes<HTMLHeadingElement>, "children"> & {
|
|
1244
|
+
children: React__default.ReactNode;
|
|
1245
|
+
tone?: TypographyTone;
|
|
1246
|
+
};
|
|
1247
|
+
type H2Props = VariantAliasProps & Omit<React__default.HTMLAttributes<HTMLHeadingElement>, "children"> & {
|
|
1248
|
+
children: React__default.ReactNode;
|
|
1249
|
+
tone?: TypographyTone;
|
|
1250
|
+
};
|
|
1251
|
+
type H3Props = VariantAliasProps & Omit<React__default.HTMLAttributes<HTMLHeadingElement>, "children"> & {
|
|
1252
|
+
children: React__default.ReactNode;
|
|
1253
|
+
tone?: TypographyTone;
|
|
1254
|
+
};
|
|
1255
|
+
type WrapperSharedProps = VariantAliasProps & {
|
|
1256
|
+
children: React__default.ReactNode;
|
|
1257
|
+
tone?: TypographyTone;
|
|
1258
|
+
className?: string;
|
|
1259
|
+
};
|
|
1260
|
+
type TextProps = WrapperSharedProps & Omit<React__default.HTMLAttributes<HTMLElement>, "children" | "className"> & {
|
|
1261
|
+
as?: React__default.ElementType;
|
|
1262
|
+
};
|
|
1263
|
+
type MutedProps = WrapperSharedProps & Omit<React__default.HTMLAttributes<HTMLElement>, "children" | "className"> & {
|
|
1264
|
+
as?: React__default.ElementType;
|
|
1265
|
+
};
|
|
1266
|
+
type LeadProps = WrapperSharedProps & Omit<React__default.HTMLAttributes<HTMLElement>, "children" | "className"> & {
|
|
1267
|
+
as?: React__default.ElementType;
|
|
1268
|
+
};
|
|
1269
|
+
type CodeProps = WrapperSharedProps & Omit<React__default.HTMLAttributes<HTMLElement>, "children" | "className"> & {
|
|
1270
|
+
as?: React__default.ElementType;
|
|
1271
|
+
};
|
|
1272
|
+
declare const H1: ({ children, tone, variant, className, ...props }: H1Props) => react_jsx_runtime.JSX.Element;
|
|
1273
|
+
declare const H2: ({ children, tone, variant, className, ...props }: H2Props) => react_jsx_runtime.JSX.Element;
|
|
1274
|
+
declare const H3: ({ children, tone, variant, className, ...props }: H3Props) => react_jsx_runtime.JSX.Element;
|
|
1275
|
+
declare const Text: ({ as, children, tone, variant, className, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
1276
|
+
declare const Muted: ({ as, children, tone, variant, className, ...props }: MutedProps) => react_jsx_runtime.JSX.Element;
|
|
1277
|
+
declare const Lead: ({ as, children, tone, variant, className, ...props }: LeadProps) => react_jsx_runtime.JSX.Element;
|
|
1278
|
+
declare const Code: ({ as, children, tone, variant, className, ...props }: CodeProps) => react_jsx_runtime.JSX.Element;
|
|
1279
|
+
|
|
1280
|
+
interface CodeExampleProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1281
|
+
code: string;
|
|
1282
|
+
}
|
|
1283
|
+
declare const CodeExample: ({ code, className, ...props }: CodeExampleProps) => react_jsx_runtime.JSX.Element | null;
|
|
1284
|
+
|
|
1285
|
+
interface ComponentGuidelinesProps {
|
|
1286
|
+
whenToUse?: string[];
|
|
1287
|
+
whenNotToUse?: string[];
|
|
1288
|
+
bestPractices?: string[];
|
|
1289
|
+
accessibility?: string[];
|
|
1290
|
+
}
|
|
1291
|
+
declare const ComponentGuidelines: ({ whenToUse, whenNotToUse, bestPractices, accessibility, }: ComponentGuidelinesProps) => react_jsx_runtime.JSX.Element | null;
|
|
1292
|
+
|
|
1293
|
+
export { type DateRangePickerOverlay as $, Accordion as A, Badge as B, Carousel as C, type ContextMenuItem as D, type ContextMenuProps as E, Cover as F, type CoverAlign as G, type CoverAs as H, type CoverProps as I, type CoverSize as J, type CoverSurface as K, type CoverTextVariant as L, type CoverVariant as M, Currency as N, CurrencySymbol as O, DataGrid as P, type DataGridColumn as Q, type DataGridProps as R, type SortDirection as S, type SortState as T, type DateRange as U, DateRangeField as V, type DateRangeFieldProps as W, type DateRangeFieldUi as X, DateRangePicker as Y, type DateRangePickerCalendar as Z, type DateRangePickerConstraints as _, AlertBanner as a, type MapCardProps as a$, type DateRangePickerProps as a0, DecodeTranslation as a1, Divider as a2, Drawer as a3, type DrawerProps as a4, EmbeddedVideo as a5, type EmbeddedVideoProps as a6, EmptyState as a7, ExpandablePanel as a8, FileUpload as a9, type GridGap as aA, GridItem as aB, type GridItemProps as aC, type GridJustify as aD, type GridProps as aE, type Responsive as aF, H1 as aG, H2 as aH, H3 as aI, InfiniteList as aJ, type InfiniteListProps as aK, Input as aL, Kbd as aM, type KbdProps as aN, type KbdSize as aO, type KbdVariant as aP, Lead as aQ, LineGraph as aR, type LineGraphProps as aS, Link as aT, type LinkIntent as aU, type LinkProps as aV, type LinkSize as aW, type LinkTone as aX, type LinkUnderline as aY, type LinkVariant as aZ, MapCard as a_, type FileUploadProps as aa, type FileUploadRejectReason as ab, FilterBar as ac, Form as ad, FormField as ae, FormWizard as af, type FormWizardBehavior as ag, type FormWizardFormConfig as ah, type FormWizardI18n as ai, type FormWizardLabels as aj, type FormWizardLayout as ak, type FormWizardProps as al, type FormWizardState as am, type FormWizardStateConfig as an, type FormWizardStudioProps as ao, GameCanvas2D as ap, Graph as aq, type GraphAxisConfig as ar, type GraphDatum as as, type GraphIntent as at, type GraphProps as au, type GraphSeries as av, Grid as aw, type GridAlign as ax, type GridAutoRows as ay, type GridCols as az, Avatar as b, type TypographyVariant as b$, Muted as b0, Pagination as b1, Popin as b2, type PopinMaxSize as b3, type PopinProps as b4, Portal as b5, type PortalProps as b6, Product as b7, Progress as b8, Radio as b9, _default as bA, Tag as bB, type TagIntent as bC, type TagProps as bD, type TagSize as bE, type TagVariant as bF, Text as bG, Textarea as bH, Toast as bI, ToastContainer as bJ, Tooltip as bK, type TooltipProps as bL, Tree as bM, type TreeAppearanceConfig as bN, type TreeBehaviorConfig as bO, type TreeCheckedConfig as bP, type TreeExpandedConfig as bQ, type TreeId as bR, type TreeItem as bS, type TreeProps as bT, type TreeSelectionConfig as bU, Typography as bV, type TypographyLeading as bW, type TypographyProps as bX, type TypographySize as bY, type TypographyTone as bZ, type TypographyTracking as b_, RadioField as ba, type RadioFieldProps as bb, RadioGroup as bc, type RadioGroupProps as bd, type RadioOption as be, type RadioProps as bf, ScrollReveal as bg, type ScrollRevealProps as bh, Select as bi, Skeleton as bj, Slider as bk, type SliderIntent as bl, type SliderProps as bm, type SliderSize as bn, type Step as bo, StepForm as bp, type StepFormAlign as bq, type StepFormFormProps as br, type StepFormProps as bs, type StepFormSize as bt, type StepFormStudioProps as bu, type StepFormVariant as bv, Stepper as bw, type StepperProps as bx, Switch as by, Table as bz, BarGraph as c, type TypographyWeight as c0, type WizardStepBase as c1, type WizardStepId as c2, type GameAPI as c3, type AlertBannerProps as c4, type CarouselProps as c5, type GameCanvas2DProps as c6, type FormFieldProps as c7, type ToastContainerProps as c8, type DecodeTranslationProps as c9, type LeadProps as cA, type CodeProps as cB, type ExpandablePanelProps as ca, type EmptyStateProps as cb, type FilterBarProps as cc, type AccordionProps as cd, type FormProps as ce, type PaginationProps as cf, type ProductProps as cg, type TableProps as ch, type TabsProps as ci, type ToastProps as cj, type BadgeProps as ck, type AvatarProps as cl, type CheckboxProps as cm, type ContainerProps as cn, type DividerProps as co, type InputProps as cp, type ProgressProps as cq, type SelectProps as cr, type SkeletonProps as cs, type SwitchProps as ct, type TextareaProps as cu, type H1Props as cv, type H2Props as cw, type H3Props as cx, type TextProps as cy, type MutedProps as cz, type BarGraphProps as d, Breadcrumb as e, type BreadcrumbItem as f, type BreadcrumbProps as g, Button as h, type ButtonIntent as i, type ButtonProps as j, type ButtonSize as k, type ButtonVariant as l, Checkbox as m, Code as n, CodeExample as o, type CodeExampleProps as p, Combobox as q, type ComboboxOption as r, type ComboboxProps as s, type CommandItem as t, CommandPalette as u, type CommandPaletteProps as v, ComponentGuidelines as w, type ComponentGuidelinesProps as x, Container as y, ContextMenu as z };
|