@pushui/react 0.0.3
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.css +1 -0
- package/dist/index.d.mts +1271 -0
- package/dist/index.d.ts +1271 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +76 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1271 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ComponentPropsWithRef, ReactNode, ComponentProps, Ref, RefObject, CSSProperties, ElementType } from 'react';
|
|
4
|
+
import { EmblaOptionsType } from 'embla-carousel';
|
|
5
|
+
|
|
6
|
+
type AudioSource = {
|
|
7
|
+
src: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
type AudioTypes = Omit<ComponentPropsWithRef<'audio'>, 'src'> & {
|
|
11
|
+
/** Audio source URL (use sources for multiple formats) */
|
|
12
|
+
src?: string;
|
|
13
|
+
/** Multiple audio sources for browser compatibility */
|
|
14
|
+
sources?: AudioSource[];
|
|
15
|
+
/** Title displayed above the audio player */
|
|
16
|
+
title?: ReactNode;
|
|
17
|
+
/** Caption text displayed below the audio player */
|
|
18
|
+
caption?: ReactNode;
|
|
19
|
+
/** Link to transcript for accessibility */
|
|
20
|
+
transcriptUrl?: string;
|
|
21
|
+
/** Transcript link text */
|
|
22
|
+
transcriptLabel?: string;
|
|
23
|
+
/** Fallback content for unsupported browsers */
|
|
24
|
+
fallback?: ReactNode;
|
|
25
|
+
/** Fallback text for unsupported browsers */
|
|
26
|
+
fallbackText?: string;
|
|
27
|
+
/** Link text for audio fallback */
|
|
28
|
+
fallbackLinkText?: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
declare function Audio({ ref, src, sources, title, caption, transcriptUrl, transcriptLabel, fallback, fallbackText, fallbackLinkText, className, controls, ...rest }: AudioTypes): react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
33
|
+
type ColorVariant = 'default' | 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
|
|
34
|
+
type ActionAppearance = 'default' | 'underline' | 'outline' | 'button';
|
|
35
|
+
type HorizontalAlign = 'left' | 'center' | 'right';
|
|
36
|
+
type VerticalAlign = 'start' | 'center' | 'end';
|
|
37
|
+
type FontSizes = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
38
|
+
|
|
39
|
+
type AvatarTypes = Omit<ComponentPropsWithRef<'div'>, 'children'> & {
|
|
40
|
+
src?: string;
|
|
41
|
+
alt?: string;
|
|
42
|
+
name?: string;
|
|
43
|
+
width?: string;
|
|
44
|
+
fontSize?: FontSizes;
|
|
45
|
+
variant?: ColorVariant;
|
|
46
|
+
defaultLabel?: string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
declare function Avatar({ ref, src, alt, name, width, fontSize, variant, defaultLabel, className, style, ...rest }: AvatarTypes): react_jsx_runtime.JSX.Element;
|
|
50
|
+
|
|
51
|
+
type BadgeTypes = ComponentPropsWithRef<'div'> & {
|
|
52
|
+
variant?: ColorVariant;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
declare function Badge({ ref, children, className, variant, ...rest }: BadgeTypes): react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
type BreadcrumbItemData = {
|
|
58
|
+
label: string;
|
|
59
|
+
href?: string;
|
|
60
|
+
};
|
|
61
|
+
type BreadcrumbTypes = ComponentPropsWithRef<'nav'> & {
|
|
62
|
+
items: BreadcrumbItemData[];
|
|
63
|
+
separator?: ReactNode;
|
|
64
|
+
renderLink?: (item: BreadcrumbItemData, children: ReactNode) => ReactNode;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
declare function Breadcrumb({ ref, items, separator, renderLink, className, 'aria-label': ariaLabel, ...rest }: BreadcrumbTypes): react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
type DividerVariant = 'solid' | 'dashed' | 'dotted';
|
|
70
|
+
type DividerSpacing = 1 | 2 | 3 | 4 | 5;
|
|
71
|
+
type DividerTypes = ComponentPropsWithRef<'hr'> & {
|
|
72
|
+
/** Line style */
|
|
73
|
+
variant?: DividerVariant;
|
|
74
|
+
/** Vertical spacing */
|
|
75
|
+
spacing?: DividerSpacing;
|
|
76
|
+
/** Text to display in the middle of the divider */
|
|
77
|
+
children?: ReactNode;
|
|
78
|
+
/** weather a line is visible or not */
|
|
79
|
+
hidden?: boolean;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
declare function Divider({ ref, variant, spacing, className, children, hidden, ...rest }: DividerTypes): react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
84
|
+
type IframeTypes = Omit<ComponentPropsWithRef<'iframe'>, 'title'> & {
|
|
85
|
+
/** Source URL */
|
|
86
|
+
src: string;
|
|
87
|
+
/** Title is required for accessibility */
|
|
88
|
+
title: string;
|
|
89
|
+
/** Allow fullscreen */
|
|
90
|
+
allowFullScreen?: boolean;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
declare function Iframe({ ref, src, title, allowFullScreen, className, loading, ...rest }: IframeTypes): react_jsx_runtime.JSX.Element;
|
|
94
|
+
|
|
95
|
+
type ImageTypes = Omit<ComponentPropsWithRef<'img'>, 'alt'> & {
|
|
96
|
+
alt: string;
|
|
97
|
+
caption?: ReactNode;
|
|
98
|
+
asChild?: boolean;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
declare function Image({ ref, className, alt, caption, asChild, children, ...props }: ImageTypes): react_jsx_runtime.JSX.Element;
|
|
102
|
+
|
|
103
|
+
type LayoutTypes = ComponentPropsWithRef<'div'>;
|
|
104
|
+
|
|
105
|
+
declare function Layout({ ref, children, className, ...rest }: LayoutTypes): react_jsx_runtime.JSX.Element;
|
|
106
|
+
|
|
107
|
+
/** @deprecated Use ActionAppearance instead */
|
|
108
|
+
type LinkAppearance = ActionAppearance;
|
|
109
|
+
type LinkTypes = ComponentPropsWithRef<'a'> & {
|
|
110
|
+
disabled?: boolean;
|
|
111
|
+
variant?: ColorVariant;
|
|
112
|
+
appearance?: ActionAppearance;
|
|
113
|
+
contrast?: boolean;
|
|
114
|
+
asChild?: boolean;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
declare function Link({ ref, href, title, disabled, children, className, appearance, contrast, variant, asChild, ...rest }: LinkTypes): react_jsx_runtime.JSX.Element;
|
|
118
|
+
|
|
119
|
+
type LogoTypes = ComponentPropsWithRef<'a'> & {
|
|
120
|
+
children: ReactNode;
|
|
121
|
+
asChild?: boolean;
|
|
122
|
+
};
|
|
123
|
+
type LogoFallbackTypes = ComponentPropsWithRef<'div'>;
|
|
124
|
+
|
|
125
|
+
declare function Logo({ ref, children, className, asChild, ...rest }: LogoTypes): react_jsx_runtime.JSX.Element;
|
|
126
|
+
declare function LogoFallback({ className, children, ...rest }: LogoFallbackTypes): react_jsx_runtime.JSX.Element;
|
|
127
|
+
|
|
128
|
+
type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
129
|
+
type TitleTypes = ComponentPropsWithRef<'h1'> & {
|
|
130
|
+
level?: HeadingLevel;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
declare function Title({ ref, level, children, className, ...rest }: TitleTypes): react_jsx_runtime.JSX.Element;
|
|
134
|
+
|
|
135
|
+
type NoteTypes = ComponentPropsWithRef<'div'> & {
|
|
136
|
+
variant?: ColorVariant;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
declare function Note({ ref, variant, className, children, ...rest }: NoteTypes): react_jsx_runtime.JSX.Element | null;
|
|
140
|
+
declare function NoteTitle({ level, children, className, ...rest }: TitleTypes): react_jsx_runtime.JSX.Element | null;
|
|
141
|
+
|
|
142
|
+
type PaginationTypes = Omit<ComponentPropsWithRef<'nav'>, 'onChange'> & {
|
|
143
|
+
currentPage: number;
|
|
144
|
+
totalPages: number;
|
|
145
|
+
onPageChange?: (page: number) => void;
|
|
146
|
+
getPageHref?: (page: number) => string;
|
|
147
|
+
renderLink?: (page: number, children: ReactNode) => ReactNode;
|
|
148
|
+
siblingCount?: number;
|
|
149
|
+
boundaryCount?: number;
|
|
150
|
+
showFirstLast?: boolean;
|
|
151
|
+
showPrevNext?: boolean;
|
|
152
|
+
disabled?: boolean;
|
|
153
|
+
firstPageLabel?: string;
|
|
154
|
+
previousPageLabel?: string;
|
|
155
|
+
nextPageLabel?: string;
|
|
156
|
+
lastPageLabel?: string;
|
|
157
|
+
pageLabel?: (page: number) => string;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
declare function Pagination({ ref, currentPage, totalPages, onPageChange, getPageHref, renderLink, siblingCount, boundaryCount, showFirstLast, showPrevNext, disabled, className, 'aria-label': ariaLabel, firstPageLabel, previousPageLabel, nextPageLabel, lastPageLabel, pageLabel, ...rest }: PaginationTypes): react_jsx_runtime.JSX.Element | null;
|
|
161
|
+
|
|
162
|
+
type ProgressTypes = Omit<ComponentPropsWithRef<'div'>, 'children'> & {
|
|
163
|
+
value?: number;
|
|
164
|
+
max?: number;
|
|
165
|
+
variant?: ColorVariant;
|
|
166
|
+
height?: string;
|
|
167
|
+
showLabel?: boolean;
|
|
168
|
+
indeterminate?: boolean;
|
|
169
|
+
label?: string;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
declare function Progress({ ref, height, value, max, variant, showLabel, indeterminate, label, className, ...rest }: ProgressTypes): react_jsx_runtime.JSX.Element;
|
|
173
|
+
|
|
174
|
+
type RichTextTypes = ComponentPropsWithRef<'div'> & {
|
|
175
|
+
/** HTML content string (uses dangerouslySetInnerHTML) */
|
|
176
|
+
html?: string;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
declare function RichText({ ref, html, className, children, ...rest }: RichTextTypes): react_jsx_runtime.JSX.Element;
|
|
180
|
+
|
|
181
|
+
type SectionTypes = ComponentPropsWithRef<'div'>;
|
|
182
|
+
type SectionHeaderTypes = ComponentProps<'div'>;
|
|
183
|
+
|
|
184
|
+
declare function Section({ ref, className, children, ...rest }: SectionTypes): react_jsx_runtime.JSX.Element;
|
|
185
|
+
declare function SectionHeader({ children, className, ...rest }: SectionHeaderTypes): react_jsx_runtime.JSX.Element;
|
|
186
|
+
declare function SectionTitle({ children, level, className, ...rest }: TitleTypes): react_jsx_runtime.JSX.Element;
|
|
187
|
+
|
|
188
|
+
type SkeletonVariant = 'text' | 'circle' | 'rect';
|
|
189
|
+
type SkeletonTypes = ComponentPropsWithRef<'div'> & {
|
|
190
|
+
/** Shape variant */
|
|
191
|
+
variant?: SkeletonVariant;
|
|
192
|
+
/** Width (CSS value) */
|
|
193
|
+
width?: string | number;
|
|
194
|
+
/** Height (CSS value) */
|
|
195
|
+
height?: string | number;
|
|
196
|
+
/** Disable animation */
|
|
197
|
+
animation?: boolean;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
declare function Skeleton({ ref, variant, width, height, animation, className, style, ...rest }: SkeletonTypes): react_jsx_runtime.JSX.Element;
|
|
201
|
+
|
|
202
|
+
type SpinnerTypes = Omit<ComponentPropsWithRef<'div'>, 'children'> & {
|
|
203
|
+
width?: string;
|
|
204
|
+
borderWidth?: string;
|
|
205
|
+
label?: string;
|
|
206
|
+
/** When true, removes role="status" for use inside elements with aria-busy */
|
|
207
|
+
inline?: boolean;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
declare function Spinner({ ref, className, width, borderWidth, label, inline, style, ...rest }: SpinnerTypes): react_jsx_runtime.JSX.Element;
|
|
211
|
+
|
|
212
|
+
type ToastConfigTypes = {
|
|
213
|
+
id?: number;
|
|
214
|
+
children?: ReactNode;
|
|
215
|
+
duration?: number;
|
|
216
|
+
closeLabel?: string;
|
|
217
|
+
};
|
|
218
|
+
type ToastTypes = ToastConfigTypes & {
|
|
219
|
+
onRemove: (id: number) => void;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
declare function Toast({ id, children, duration, onRemove, closeLabel, }: ToastTypes): react_jsx_runtime.JSX.Element;
|
|
223
|
+
|
|
224
|
+
declare function Toasts({ children }: {
|
|
225
|
+
children: ReactNode;
|
|
226
|
+
}): react_jsx_runtime.JSX.Element;
|
|
227
|
+
|
|
228
|
+
type ToastContextTypes = {
|
|
229
|
+
toasts: ToastConfigTypes[];
|
|
230
|
+
addToast: (options: ToastConfigTypes) => void;
|
|
231
|
+
removeToast: (id: number) => void;
|
|
232
|
+
};
|
|
233
|
+
declare const ToastsContext: react.Context<ToastContextTypes | undefined>;
|
|
234
|
+
declare const useToasts: () => ToastContextTypes;
|
|
235
|
+
|
|
236
|
+
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
237
|
+
type TooltipTypes = Omit<ComponentPropsWithRef<'div'>, 'content'> & {
|
|
238
|
+
/** Tooltip content */
|
|
239
|
+
content: ReactNode;
|
|
240
|
+
/** Position relative to trigger */
|
|
241
|
+
position?: TooltipPosition;
|
|
242
|
+
/** Delay before showing (ms) */
|
|
243
|
+
delay?: number;
|
|
244
|
+
/** Children element that triggers the tooltip */
|
|
245
|
+
children: ReactNode;
|
|
246
|
+
/** Disable the tooltip */
|
|
247
|
+
disabled?: boolean;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
declare function Tooltip({ ref, content, position: preferredPosition, delay, children, disabled, className, ...rest }: TooltipTypes): react_jsx_runtime.JSX.Element;
|
|
251
|
+
|
|
252
|
+
type VideoSource = {
|
|
253
|
+
src: string;
|
|
254
|
+
type: string;
|
|
255
|
+
};
|
|
256
|
+
type VideoTrack = {
|
|
257
|
+
src: string;
|
|
258
|
+
kind: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
|
|
259
|
+
srclang: string;
|
|
260
|
+
label: string;
|
|
261
|
+
default?: boolean;
|
|
262
|
+
};
|
|
263
|
+
type VideoTypes = Omit<ComponentPropsWithRef<'video'>, 'src'> & {
|
|
264
|
+
/** Video source URL (use sources for multiple formats) */
|
|
265
|
+
src?: string;
|
|
266
|
+
/** Multiple video sources for browser compatibility */
|
|
267
|
+
sources?: VideoSource[];
|
|
268
|
+
/** Text tracks for captions, subtitles, descriptions */
|
|
269
|
+
tracks?: VideoTrack[];
|
|
270
|
+
/** Poster image URL */
|
|
271
|
+
poster?: string;
|
|
272
|
+
/** Caption text displayed below the video */
|
|
273
|
+
caption?: ReactNode;
|
|
274
|
+
/** Fallback content for unsupported browsers */
|
|
275
|
+
fallback?: ReactNode;
|
|
276
|
+
/** Fallback text for unsupported browsers (default: "Your browser doesn't support HTML video.") */
|
|
277
|
+
fallbackText?: string;
|
|
278
|
+
/** Link text for video fallback (default: "link to the video") */
|
|
279
|
+
fallbackLinkText?: string;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
declare function Video({ ref, src, sources, tracks, poster, caption, fallback, fallbackText, fallbackLinkText, className, controls, ...rest }: VideoTypes): react_jsx_runtime.JSX.Element;
|
|
283
|
+
|
|
284
|
+
/** @deprecated Use ActionAppearance instead */
|
|
285
|
+
type ButtonAppearance = ActionAppearance;
|
|
286
|
+
type ButtonTypes = ComponentPropsWithRef<'button'> & {
|
|
287
|
+
variant?: ColorVariant;
|
|
288
|
+
appearance?: ActionAppearance;
|
|
289
|
+
contrast?: boolean;
|
|
290
|
+
loading?: boolean;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
declare function Button({ ref, title, disabled, children, className, appearance, contrast, loading, type, variant, ...rest }: ButtonTypes): react_jsx_runtime.JSX.Element;
|
|
294
|
+
|
|
295
|
+
type CheckboxTypes = Omit<ComponentProps<'label'>, 'onChange' | 'ref'> & {
|
|
296
|
+
checked?: boolean;
|
|
297
|
+
defaultChecked?: boolean;
|
|
298
|
+
onChange?: (checked: boolean) => void;
|
|
299
|
+
ref?: Ref<HTMLInputElement>;
|
|
300
|
+
label?: string;
|
|
301
|
+
labelClassName?: string;
|
|
302
|
+
disabled?: boolean;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
declare function Checkbox({ label, checked, defaultChecked, onChange, ref, className, labelClassName, disabled, ...rest }: CheckboxTypes): react_jsx_runtime.JSX.Element;
|
|
306
|
+
|
|
307
|
+
type InputDateTypes = Omit<ComponentProps<'div'>, 'onChange' | 'ref'> & {
|
|
308
|
+
selected: Date | null;
|
|
309
|
+
onChange: (date: Date | null) => void;
|
|
310
|
+
onBlur?: () => void;
|
|
311
|
+
ref?: Ref<HTMLInputElement>;
|
|
312
|
+
placeholder?: string;
|
|
313
|
+
dateFormat?: string;
|
|
314
|
+
minDate?: Date;
|
|
315
|
+
maxDate?: Date;
|
|
316
|
+
disabled?: boolean;
|
|
317
|
+
label?: string;
|
|
318
|
+
months?: string[];
|
|
319
|
+
daysShort?: string[];
|
|
320
|
+
selectDateLabel?: string;
|
|
321
|
+
previousMonthLabel?: string;
|
|
322
|
+
nextMonthLabel?: string;
|
|
323
|
+
cancelLabel?: string;
|
|
324
|
+
applyLabel?: string;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
declare function InputDate({ selected, onChange, onBlur, ref, placeholder, dateFormat, minDate, maxDate, disabled, label, className, months, daysShort, selectDateLabel, previousMonthLabel, nextMonthLabel, cancelLabel, applyLabel, ...rest }: InputDateTypes): react_jsx_runtime.JSX.Element;
|
|
328
|
+
|
|
329
|
+
type InputFileTypes = Omit<ComponentPropsWithRef<'input'>, 'type' | 'onChange' | 'value'> & {
|
|
330
|
+
/** Label text */
|
|
331
|
+
label?: string;
|
|
332
|
+
/** Custom class for the label */
|
|
333
|
+
labelClassName?: string;
|
|
334
|
+
/** Custom class for the trigger button */
|
|
335
|
+
buttonClassName?: string;
|
|
336
|
+
/** Callback when files change */
|
|
337
|
+
onChange?: (files: FileList | null) => void;
|
|
338
|
+
/** Enable drag and drop zone */
|
|
339
|
+
dropzone?: boolean;
|
|
340
|
+
/** Text for the button */
|
|
341
|
+
buttonText?: string;
|
|
342
|
+
/** Show selected file names */
|
|
343
|
+
showFileNames?: boolean;
|
|
344
|
+
/** Accepted file types (e.g., ".jpg,.png", "image/*", "application/pdf") */
|
|
345
|
+
accept?: string;
|
|
346
|
+
/** Text for single file button (default: "Choose a file") */
|
|
347
|
+
chooseFileLabel?: string;
|
|
348
|
+
/** Text for multiple files button (default: "Choose files") */
|
|
349
|
+
chooseFilesLabel?: string;
|
|
350
|
+
/** Text when no file selected (default: "No file selected") */
|
|
351
|
+
noFileSelectedLabel?: string;
|
|
352
|
+
/** Text showing file count (default: "{count} files selected") */
|
|
353
|
+
filesSelectedLabel?: (count: number) => string;
|
|
354
|
+
/** Text for single file drop zone (default: "Drop file here") */
|
|
355
|
+
dropFileLabel?: string;
|
|
356
|
+
/** Text for multiple files drop zone (default: "Drop files here") */
|
|
357
|
+
dropFilesLabel?: string;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
declare function InputFile({ label, ref, className, labelClassName, buttonClassName, onChange, dropzone, buttonText, showFileNames, multiple, disabled, accept, chooseFileLabel, chooseFilesLabel, noFileSelectedLabel, filesSelectedLabel, dropFileLabel, dropFilesLabel, ...rest }: InputFileTypes): react_jsx_runtime.JSX.Element;
|
|
361
|
+
|
|
362
|
+
type InputNumberTypes = Omit<ComponentPropsWithRef<'input'>, 'onChange' | 'value' | 'step' | 'min' | 'max'> & {
|
|
363
|
+
value?: number;
|
|
364
|
+
step?: number;
|
|
365
|
+
min?: number;
|
|
366
|
+
max?: number;
|
|
367
|
+
onChange?: (value: number) => void;
|
|
368
|
+
label?: string;
|
|
369
|
+
inputClassName?: string;
|
|
370
|
+
labelClassName?: string;
|
|
371
|
+
incrementLabel?: string;
|
|
372
|
+
decrementLabel?: string;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
declare function InputNumber({ value, onChange, ref, min, max, step, disabled, className, inputClassName, labelClassName, label, incrementLabel, decrementLabel, ...rest }: InputNumberTypes): react_jsx_runtime.JSX.Element;
|
|
376
|
+
|
|
377
|
+
type InputPasswordTypes = Omit<ComponentPropsWithRef<'input'>, 'type'> & {
|
|
378
|
+
label?: string;
|
|
379
|
+
inputClassName?: string;
|
|
380
|
+
labelClassName?: string;
|
|
381
|
+
showLabel?: string;
|
|
382
|
+
hideLabel?: string;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
declare function InputPassword({ label, ref, disabled, className, inputClassName, labelClassName, showLabel, hideLabel, 'aria-label': ariaLabel, ...rest }: InputPasswordTypes): react_jsx_runtime.JSX.Element;
|
|
386
|
+
|
|
387
|
+
type RadioOptionTypes = {
|
|
388
|
+
value: string;
|
|
389
|
+
label: string;
|
|
390
|
+
disabled?: boolean;
|
|
391
|
+
};
|
|
392
|
+
type InputRadioTypes = Omit<ComponentProps<'input'>, 'onChange' | 'value' | 'ref'> & {
|
|
393
|
+
value?: string;
|
|
394
|
+
onChange?: (value: string) => void;
|
|
395
|
+
ref?: Ref<HTMLDivElement>;
|
|
396
|
+
options: RadioOptionTypes[];
|
|
397
|
+
name: string;
|
|
398
|
+
label?: string;
|
|
399
|
+
optionClassName?: string;
|
|
400
|
+
labelClassName?: string;
|
|
401
|
+
direction?: 'vertical' | 'horizontal';
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
declare function InputRadio({ value, onChange, options, name, label, ref, disabled, className, optionClassName, labelClassName, direction, ...rest }: InputRadioTypes): react_jsx_runtime.JSX.Element;
|
|
405
|
+
|
|
406
|
+
type SearchResultTypes = {
|
|
407
|
+
id: string | number;
|
|
408
|
+
label: string;
|
|
409
|
+
[key: string]: unknown;
|
|
410
|
+
};
|
|
411
|
+
type InputSearchTypes = Omit<ComponentPropsWithRef<'input'>, 'type' | 'onChange' | 'results' | 'onSelect'> & {
|
|
412
|
+
label?: string;
|
|
413
|
+
inputClassName?: string;
|
|
414
|
+
labelClassName?: string;
|
|
415
|
+
mode?: 'redirect' | 'dropdown';
|
|
416
|
+
action?: string;
|
|
417
|
+
method?: 'get' | 'post';
|
|
418
|
+
paramName?: string;
|
|
419
|
+
results?: SearchResultTypes[];
|
|
420
|
+
onSearch?: (query: string) => void;
|
|
421
|
+
onSelect?: (result: SearchResultTypes) => void;
|
|
422
|
+
onLoadMore?: () => void;
|
|
423
|
+
hasMore?: boolean;
|
|
424
|
+
loading?: boolean;
|
|
425
|
+
searchDebounce?: number;
|
|
426
|
+
minChars?: number;
|
|
427
|
+
renderResult?: (result: SearchResultTypes) => ReactNode;
|
|
428
|
+
noResultsText?: string;
|
|
429
|
+
flip?: boolean;
|
|
430
|
+
value?: string;
|
|
431
|
+
onChange?: (value: string) => void;
|
|
432
|
+
clearLabel?: string;
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
declare function InputSearch({ ref, label, className, inputClassName, labelClassName, mode, action, method, paramName, results, onSearch, onSelect, onLoadMore, hasMore, loading, searchDebounce, minChars, renderResult, noResultsText, flip, value: controlledValue, onChange, placeholder, disabled, clearLabel, 'aria-label': ariaLabel, ...rest }: InputSearchTypes): react_jsx_runtime.JSX.Element;
|
|
436
|
+
|
|
437
|
+
type OptionTypes = {
|
|
438
|
+
value: string;
|
|
439
|
+
label: string;
|
|
440
|
+
};
|
|
441
|
+
type OptionListTypes = ComponentProps<'ul'> & {
|
|
442
|
+
controlId: string;
|
|
443
|
+
};
|
|
444
|
+
type OptionListItemTypes = {
|
|
445
|
+
option: OptionTypes;
|
|
446
|
+
index: number;
|
|
447
|
+
disabled?: boolean;
|
|
448
|
+
className?: string;
|
|
449
|
+
};
|
|
450
|
+
type ChoiceListTypes = ComponentProps<'ul'> & {
|
|
451
|
+
selectedOptions: OptionTypes[];
|
|
452
|
+
};
|
|
453
|
+
type ChoiceListItemTypes = {
|
|
454
|
+
option: OptionTypes;
|
|
455
|
+
onRemove: (option: OptionTypes) => void;
|
|
456
|
+
disabled?: boolean;
|
|
457
|
+
};
|
|
458
|
+
type ChoiceClearTypes = ComponentProps<'button'>;
|
|
459
|
+
type SelectActionsTypes = ComponentProps<'div'>;
|
|
460
|
+
type SelectPlaceholderTypes = ComponentProps<'span'>;
|
|
461
|
+
type SelectModalTypes = ComponentProps<'div'>;
|
|
462
|
+
type SelectRootTypes = Omit<ComponentProps<'div'>, 'onChange'> & {
|
|
463
|
+
options: OptionTypes[];
|
|
464
|
+
value: OptionTypes[];
|
|
465
|
+
onChange: (values: OptionTypes[]) => void;
|
|
466
|
+
disabled?: boolean;
|
|
467
|
+
label?: string;
|
|
468
|
+
labelClassName?: string;
|
|
469
|
+
placeholder?: string;
|
|
470
|
+
flip?: boolean;
|
|
471
|
+
multiple?: boolean;
|
|
472
|
+
searchable?: boolean;
|
|
473
|
+
searchDebounce?: number;
|
|
474
|
+
onSearch?: (query: string) => void;
|
|
475
|
+
onLoadMore?: () => void;
|
|
476
|
+
hasMore?: boolean;
|
|
477
|
+
loading?: boolean;
|
|
478
|
+
children: ReactNode;
|
|
479
|
+
clearAllLabel?: string;
|
|
480
|
+
selectedOptionsLabel?: string;
|
|
481
|
+
removeLabel?: string;
|
|
482
|
+
searchLabel?: string;
|
|
483
|
+
};
|
|
484
|
+
type SelectContextTypes = {
|
|
485
|
+
isOpen: boolean;
|
|
486
|
+
setIsOpen: (open: boolean) => void;
|
|
487
|
+
toggleOption: (option: OptionTypes) => void;
|
|
488
|
+
updateMenuPosition: () => void;
|
|
489
|
+
clearAll: () => void;
|
|
490
|
+
menuPosition: {
|
|
491
|
+
top: number;
|
|
492
|
+
left: number;
|
|
493
|
+
width: number;
|
|
494
|
+
flip: boolean;
|
|
495
|
+
};
|
|
496
|
+
rootRef: RefObject<HTMLDivElement | null>;
|
|
497
|
+
menuRef: RefObject<HTMLDivElement | null>;
|
|
498
|
+
searchInputRef: RefObject<HTMLInputElement | null>;
|
|
499
|
+
choiceButtonRefs: RefObject<Map<string, HTMLButtonElement>>;
|
|
500
|
+
controlId: string;
|
|
501
|
+
value: OptionTypes[];
|
|
502
|
+
options: OptionTypes[];
|
|
503
|
+
filteredOptions: OptionTypes[];
|
|
504
|
+
focusedIndex: number;
|
|
505
|
+
setFocusedIndex: (index: number) => void;
|
|
506
|
+
disabled?: boolean;
|
|
507
|
+
placeholder: string;
|
|
508
|
+
multiple?: boolean;
|
|
509
|
+
searchable?: boolean;
|
|
510
|
+
searchQuery: string;
|
|
511
|
+
setSearchQuery: (query: string) => void;
|
|
512
|
+
onLoadMore?: () => void;
|
|
513
|
+
hasMore?: boolean;
|
|
514
|
+
loading?: boolean;
|
|
515
|
+
clearAllLabel: string;
|
|
516
|
+
selectedOptionsLabel: string;
|
|
517
|
+
removeLabel: string;
|
|
518
|
+
searchLabel: string;
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
declare const OptionListItem: react.MemoExoticComponent<(props: OptionListItemTypes) => react_jsx_runtime.JSX.Element>;
|
|
522
|
+
declare const OptionList: react.MemoExoticComponent<(props: OptionListTypes) => react_jsx_runtime.JSX.Element>;
|
|
523
|
+
declare const ChoiceClear: react.MemoExoticComponent<({ className, ...rest }: ChoiceClearTypes) => react_jsx_runtime.JSX.Element | null>;
|
|
524
|
+
declare const ChoiceList: react.MemoExoticComponent<(props: ChoiceListTypes) => react_jsx_runtime.JSX.Element | null>;
|
|
525
|
+
declare const ChoiceListItem: react.MemoExoticComponent<({ option, disabled, onRemove }: ChoiceListItemTypes) => react_jsx_runtime.JSX.Element>;
|
|
526
|
+
declare const SelectModal: react.MemoExoticComponent<({ children, className, ...rest }: SelectModalTypes) => react.ReactPortal | null>;
|
|
527
|
+
declare const SelectActions: react.MemoExoticComponent<({ children, className, ...rest }: SelectActionsTypes) => react_jsx_runtime.JSX.Element>;
|
|
528
|
+
declare const SelectTrigger: react.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
529
|
+
declare const SelectSearch: react.MemoExoticComponent<() => react_jsx_runtime.JSX.Element | null>;
|
|
530
|
+
declare const SelectPlaceholder: react.MemoExoticComponent<({ className, ...rest }: SelectPlaceholderTypes) => react_jsx_runtime.JSX.Element | null>;
|
|
531
|
+
declare const SelectRoot: (props: SelectRootTypes) => react_jsx_runtime.JSX.Element;
|
|
532
|
+
|
|
533
|
+
declare const SelectContextRoot: react.Provider<SelectContextTypes | undefined>;
|
|
534
|
+
declare const useSelectContext: () => SelectContextTypes;
|
|
535
|
+
|
|
536
|
+
type SliderMark = {
|
|
537
|
+
value: number;
|
|
538
|
+
label?: string;
|
|
539
|
+
};
|
|
540
|
+
type SliderOrientation = 'horizontal' | 'vertical';
|
|
541
|
+
type SliderSize = 'sm' | 'md';
|
|
542
|
+
type SliderTrack = 'normal' | 'inverted' | false;
|
|
543
|
+
type SliderValueLabelDisplay = 'auto' | 'on' | 'off';
|
|
544
|
+
type SliderBaseTypes = Omit<ComponentProps<'input'>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'step'> & {
|
|
545
|
+
/** Minimum value */
|
|
546
|
+
min?: number;
|
|
547
|
+
/** Maximum value */
|
|
548
|
+
max?: number;
|
|
549
|
+
/** Step increment. Set to null to only allow values from marks */
|
|
550
|
+
step?: number | null;
|
|
551
|
+
/** Whether the slider is disabled */
|
|
552
|
+
disabled?: boolean;
|
|
553
|
+
/** Orientation of the slider */
|
|
554
|
+
orientation?: SliderOrientation;
|
|
555
|
+
/** Size variant */
|
|
556
|
+
size?: SliderSize;
|
|
557
|
+
/** Track display mode */
|
|
558
|
+
track?: SliderTrack;
|
|
559
|
+
/** Show marks on the slider. True for automatic marks at each step, or array for custom marks */
|
|
560
|
+
marks?: boolean | SliderMark[];
|
|
561
|
+
/** Value label display mode */
|
|
562
|
+
valueLabelDisplay?: SliderValueLabelDisplay;
|
|
563
|
+
/** Format the value label */
|
|
564
|
+
valueLabelFormat?: (value: number) => string;
|
|
565
|
+
/** Get aria value text for accessibility */
|
|
566
|
+
getAriaValueText?: (value: number) => string;
|
|
567
|
+
/** Label for accessibility */
|
|
568
|
+
'aria-label'?: string;
|
|
569
|
+
/** ID of element that labels the slider */
|
|
570
|
+
'aria-labelledby'?: string;
|
|
571
|
+
/** Custom class name */
|
|
572
|
+
className?: string;
|
|
573
|
+
};
|
|
574
|
+
type SliderSingleTypes = SliderBaseTypes & {
|
|
575
|
+
/** Whether this is a range slider */
|
|
576
|
+
range?: false;
|
|
577
|
+
/** Current value (controlled) */
|
|
578
|
+
value?: number;
|
|
579
|
+
/** Default value (uncontrolled) */
|
|
580
|
+
defaultValue?: number;
|
|
581
|
+
/** Callback when value changes */
|
|
582
|
+
onChange?: (value: number) => void;
|
|
583
|
+
/** Callback when value change is committed (on mouse up / touch end) */
|
|
584
|
+
onChangeCommitted?: (value: number) => void;
|
|
585
|
+
};
|
|
586
|
+
type SliderRangeTypes = SliderBaseTypes & {
|
|
587
|
+
/** Whether this is a range slider */
|
|
588
|
+
range: true;
|
|
589
|
+
/** Current value (controlled) */
|
|
590
|
+
value?: [number, number];
|
|
591
|
+
/** Default value (uncontrolled) */
|
|
592
|
+
defaultValue?: [number, number];
|
|
593
|
+
/** Callback when value changes */
|
|
594
|
+
onChange?: (value: [number, number]) => void;
|
|
595
|
+
/** Callback when value change is committed (on mouse up / touch end) */
|
|
596
|
+
onChangeCommitted?: (value: [number, number]) => void;
|
|
597
|
+
/** Minimum distance between the two thumbs */
|
|
598
|
+
minDistance?: number;
|
|
599
|
+
/** Disable swapping thumbs when they meet */
|
|
600
|
+
disableSwap?: boolean;
|
|
601
|
+
};
|
|
602
|
+
type SliderTypes = SliderSingleTypes | SliderRangeTypes;
|
|
603
|
+
|
|
604
|
+
declare function Slider(props: SliderTypes): react_jsx_runtime.JSX.Element;
|
|
605
|
+
|
|
606
|
+
type SwitchTypes = Omit<ComponentProps<'label'>, 'onChange' | 'ref'> & {
|
|
607
|
+
checked?: boolean;
|
|
608
|
+
defaultChecked?: boolean;
|
|
609
|
+
onChange?: (checked: boolean) => void;
|
|
610
|
+
ref?: Ref<HTMLInputElement>;
|
|
611
|
+
label?: string;
|
|
612
|
+
labelClassName?: string;
|
|
613
|
+
disabled?: boolean;
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
declare function Switch({ label, checked, defaultChecked, onChange, ref, className, labelClassName, disabled, ...rest }: SwitchTypes): react_jsx_runtime.JSX.Element;
|
|
617
|
+
|
|
618
|
+
type InputTextTypes = Omit<ComponentPropsWithRef<'input'>, 'type'> & {
|
|
619
|
+
type?: 'text' | 'email' | 'url' | 'tel';
|
|
620
|
+
label?: string;
|
|
621
|
+
inputClassName?: string;
|
|
622
|
+
labelClassName?: string;
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
declare function InputText({ label, ref, className, inputClassName, labelClassName, type, 'aria-label': ariaLabel, ...rest }: InputTextTypes): react_jsx_runtime.JSX.Element;
|
|
626
|
+
|
|
627
|
+
type InputTextareaTypes = Omit<ComponentPropsWithRef<'textarea'>, 'onChange' | 'value'> & {
|
|
628
|
+
value?: string;
|
|
629
|
+
onChange?: (value: string) => void;
|
|
630
|
+
label?: string;
|
|
631
|
+
textareaClassName?: string;
|
|
632
|
+
labelClassName?: string;
|
|
633
|
+
showCount?: boolean;
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
declare function InputTextarea({ value, label, ref, onChange, disabled, maxLength, className, labelClassName, textareaClassName, showCount, ...rest }: InputTextareaTypes): react_jsx_runtime.JSX.Element;
|
|
637
|
+
|
|
638
|
+
type AccordionType = 'single' | 'multiple';
|
|
639
|
+
type AccordionContextValue = {
|
|
640
|
+
type: AccordionType;
|
|
641
|
+
expandedItems: string[];
|
|
642
|
+
toggleItem: (value: string) => void;
|
|
643
|
+
accordionId: string;
|
|
644
|
+
};
|
|
645
|
+
type AccordionTypes = ComponentPropsWithRef<'div'> & {
|
|
646
|
+
type?: AccordionType;
|
|
647
|
+
defaultValue?: string | string[];
|
|
648
|
+
value?: string | string[];
|
|
649
|
+
onValueChange?: (value: string | string[]) => void;
|
|
650
|
+
collapsible?: boolean;
|
|
651
|
+
};
|
|
652
|
+
type AccordionItemContextValue = {
|
|
653
|
+
value: string;
|
|
654
|
+
isExpanded: boolean;
|
|
655
|
+
triggerId: string;
|
|
656
|
+
contentId: string;
|
|
657
|
+
disabled: boolean;
|
|
658
|
+
};
|
|
659
|
+
type AccordionItemTypes = ComponentPropsWithRef<'div'> & {
|
|
660
|
+
value: string;
|
|
661
|
+
disabled?: boolean;
|
|
662
|
+
};
|
|
663
|
+
type AccordionTriggerTypes = ComponentPropsWithRef<'button'> & {
|
|
664
|
+
/** Heading level for proper document structure (default: 'h3') */
|
|
665
|
+
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
666
|
+
};
|
|
667
|
+
type AccordionContentTypes = ComponentPropsWithRef<'div'>;
|
|
668
|
+
|
|
669
|
+
declare function Accordion({ ref, type, defaultValue, value, onValueChange, collapsible, className, children, ...props }: AccordionTypes): react_jsx_runtime.JSX.Element;
|
|
670
|
+
declare function AccordionItem({ ref, value, children, className, disabled, ...props }: AccordionItemTypes): react_jsx_runtime.JSX.Element;
|
|
671
|
+
declare function AccordionTrigger({ ref, children, className, headingLevel: Heading, ...props }: AccordionTriggerTypes): react_jsx_runtime.JSX.Element;
|
|
672
|
+
declare function AccordionContent({ ref, className, children, ...props }: AccordionContentTypes): react_jsx_runtime.JSX.Element;
|
|
673
|
+
|
|
674
|
+
/** @deprecated Use HorizontalAlign instead */
|
|
675
|
+
type HorizontalAlignTypes = HorizontalAlign;
|
|
676
|
+
/** @deprecated Use VerticalAlign instead */
|
|
677
|
+
type VerticalAlignTypes = VerticalAlign;
|
|
678
|
+
/** @deprecated Use HorizontalAlign instead */
|
|
679
|
+
type BannerTextAlignTypes = HorizontalAlign;
|
|
680
|
+
type BannerOverlay = 'none' | 'light' | 'dark';
|
|
681
|
+
type BannerTextColor = 'light' | 'dark';
|
|
682
|
+
/** @deprecated Use BannerOverlay instead */
|
|
683
|
+
type BannerOverlayTypes = BannerOverlay;
|
|
684
|
+
/** @deprecated Use BannerTextColor instead */
|
|
685
|
+
type BannerTextColorTypes = BannerTextColor;
|
|
686
|
+
type BannerBackgroundVideo = {
|
|
687
|
+
src: string;
|
|
688
|
+
poster?: string;
|
|
689
|
+
};
|
|
690
|
+
type BannerTypes = ComponentPropsWithRef<'div'> & {
|
|
691
|
+
backgroundImage?: string;
|
|
692
|
+
backgroundVideo?: BannerBackgroundVideo;
|
|
693
|
+
backgroundColor?: string;
|
|
694
|
+
horizontalAlign?: HorizontalAlign;
|
|
695
|
+
verticalAlign?: VerticalAlign;
|
|
696
|
+
minHeight?: string;
|
|
697
|
+
overlay?: BannerOverlay;
|
|
698
|
+
};
|
|
699
|
+
type BannerContentTypes = ComponentPropsWithRef<'div'> & {
|
|
700
|
+
maxWidth?: string;
|
|
701
|
+
textAlign?: HorizontalAlign;
|
|
702
|
+
textColor?: BannerTextColor;
|
|
703
|
+
};
|
|
704
|
+
type BannerTitleTypes = TitleTypes;
|
|
705
|
+
type BannerSubtitleTypes = ComponentPropsWithRef<'p'>;
|
|
706
|
+
type BannerBodyTypes = ComponentPropsWithRef<'div'>;
|
|
707
|
+
type BannerActionsTypes = ComponentPropsWithRef<'div'>;
|
|
708
|
+
|
|
709
|
+
declare function Banner({ ref, backgroundImage, backgroundVideo, backgroundColor, overlay, minHeight, className, style, children, horizontalAlign, verticalAlign, ...props }: BannerTypes): react_jsx_runtime.JSX.Element;
|
|
710
|
+
declare function BannerContent({ ref, textAlign, textColor, maxWidth, className, style, children, ...props }: BannerContentTypes): react_jsx_runtime.JSX.Element;
|
|
711
|
+
declare function BannerTitle({ level, className, children, ...props }: BannerTitleTypes): react_jsx_runtime.JSX.Element;
|
|
712
|
+
declare function BannerSubtitle({ ref, className, children, ...props }: BannerSubtitleTypes): react_jsx_runtime.JSX.Element;
|
|
713
|
+
declare function BannerBody({ ref, className, children, ...props }: BannerBodyTypes): react_jsx_runtime.JSX.Element;
|
|
714
|
+
declare function BannerActions({ ref, className, children, ...props }: BannerActionsTypes): react_jsx_runtime.JSX.Element;
|
|
715
|
+
|
|
716
|
+
type CardTypes = ComponentPropsWithRef<'div'>;
|
|
717
|
+
type CardHeaderTypes = ComponentPropsWithRef<'div'>;
|
|
718
|
+
type CardBodyTypes = ComponentPropsWithRef<'div'>;
|
|
719
|
+
type CardFooterTypes = ComponentPropsWithRef<'div'>;
|
|
720
|
+
|
|
721
|
+
declare function Card({ ref, className, children, ...rest }: CardTypes): react_jsx_runtime.JSX.Element;
|
|
722
|
+
declare function CardHeader({ ref, className, children, ...rest }: CardHeaderTypes): react_jsx_runtime.JSX.Element;
|
|
723
|
+
declare function CardBody({ ref, className, children, ...rest }: CardBodyTypes): react_jsx_runtime.JSX.Element;
|
|
724
|
+
declare function CardFooter({ ref, className, children, ...rest }: CardFooterTypes): react_jsx_runtime.JSX.Element;
|
|
725
|
+
|
|
726
|
+
type CarouselContextValue = {
|
|
727
|
+
selectedIndex: number;
|
|
728
|
+
scrollSnaps: number[];
|
|
729
|
+
canScrollPrev: boolean;
|
|
730
|
+
canScrollNext: boolean;
|
|
731
|
+
scrollPrev: () => void;
|
|
732
|
+
scrollNext: () => void;
|
|
733
|
+
scrollTo: (index: number) => void;
|
|
734
|
+
};
|
|
735
|
+
type CarouselOptions = {
|
|
736
|
+
/** Enables active state (default: true) */
|
|
737
|
+
active?: EmblaOptionsType['active'];
|
|
738
|
+
/** Align slides within viewport: 'start' | 'center' | 'end' | number (default: 'center') */
|
|
739
|
+
align?: EmblaOptionsType['align'];
|
|
740
|
+
/** Scroll axis: 'x' | 'y' (default: 'x') */
|
|
741
|
+
axis?: EmblaOptionsType['axis'];
|
|
742
|
+
/** Responsive breakpoints with options */
|
|
743
|
+
breakpoints?: EmblaOptionsType['breakpoints'];
|
|
744
|
+
/** Contain scroll to prevent empty space: 'trimSnaps' | 'keepSnaps' | false (default: 'trimSnaps') */
|
|
745
|
+
containScroll?: EmblaOptionsType['containScroll'];
|
|
746
|
+
/** Custom container selector */
|
|
747
|
+
container?: EmblaOptionsType['container'];
|
|
748
|
+
/** Scroll direction: 'ltr' | 'rtl' (default: 'ltr') */
|
|
749
|
+
direction?: EmblaOptionsType['direction'];
|
|
750
|
+
/** Enable free scrolling without snapping (default: false) */
|
|
751
|
+
dragFree?: EmblaOptionsType['dragFree'];
|
|
752
|
+
/** Drag threshold in pixels before scrolling starts (default: 10) */
|
|
753
|
+
dragThreshold?: EmblaOptionsType['dragThreshold'];
|
|
754
|
+
/** Scroll animation duration in ms (default: 25) */
|
|
755
|
+
duration?: EmblaOptionsType['duration'];
|
|
756
|
+
/** Threshold for slide in-view detection: 0-1 (default: 0) */
|
|
757
|
+
inViewThreshold?: EmblaOptionsType['inViewThreshold'];
|
|
758
|
+
/** Enable infinite looping (default: false) */
|
|
759
|
+
loop?: EmblaOptionsType['loop'];
|
|
760
|
+
/** Skip snaps when dragging aggressively (default: false) */
|
|
761
|
+
skipSnaps?: EmblaOptionsType['skipSnaps'];
|
|
762
|
+
/** Custom slides selector */
|
|
763
|
+
slides?: EmblaOptionsType['slides'];
|
|
764
|
+
/** Number of slides to scroll per interaction: number | 'auto' (default: 1) */
|
|
765
|
+
slidesToScroll?: EmblaOptionsType['slidesToScroll'];
|
|
766
|
+
/** Starting slide index (default: 0) */
|
|
767
|
+
startIndex?: EmblaOptionsType['startIndex'];
|
|
768
|
+
/** Enable/disable drag interactions (default: true) */
|
|
769
|
+
watchDrag?: EmblaOptionsType['watchDrag'];
|
|
770
|
+
/** Reinitialize on container resize (default: true) */
|
|
771
|
+
watchResize?: EmblaOptionsType['watchResize'];
|
|
772
|
+
/** Reinitialize when slides change (default: true) */
|
|
773
|
+
watchSlides?: EmblaOptionsType['watchSlides'];
|
|
774
|
+
};
|
|
775
|
+
type CarouselTypes = ComponentPropsWithRef<'div'> & CarouselOptions & {
|
|
776
|
+
/** Number of slides visible at once (sets slide width via CSS) */
|
|
777
|
+
slidesPerView?: number;
|
|
778
|
+
/** Gap between slides in rem */
|
|
779
|
+
gap?: number;
|
|
780
|
+
};
|
|
781
|
+
interface CarouselCSSProperties extends CSSProperties {
|
|
782
|
+
'--carousel-slides-per-view'?: number;
|
|
783
|
+
'--carousel-gap'?: string;
|
|
784
|
+
}
|
|
785
|
+
type CarouselContainerTypes = ComponentPropsWithRef<'div'>;
|
|
786
|
+
type CarouselSlideTypes = ComponentPropsWithRef<'div'>;
|
|
787
|
+
type CarouselControlsTypes = ComponentPropsWithRef<'div'> & {
|
|
788
|
+
/** Position arrows overlaying the carousel left/right */
|
|
789
|
+
overlay?: boolean;
|
|
790
|
+
};
|
|
791
|
+
type CarouselPrevTypes = ComponentPropsWithRef<'button'> & {
|
|
792
|
+
label?: string;
|
|
793
|
+
};
|
|
794
|
+
type CarouselNextTypes = ComponentPropsWithRef<'button'> & {
|
|
795
|
+
label?: string;
|
|
796
|
+
};
|
|
797
|
+
type CarouselDotsTypes = ComponentPropsWithRef<'div'> & {
|
|
798
|
+
label?: string;
|
|
799
|
+
navigationLabel?: string;
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
declare function Carousel({ ref, active, align, axis, breakpoints, containScroll, container, direction, dragFree, dragThreshold, duration, inViewThreshold, loop, skipSnaps, slides, slidesToScroll, startIndex, watchDrag, watchResize, watchSlides, slidesPerView, gap, className, style, children, ...props }: CarouselTypes): react_jsx_runtime.JSX.Element;
|
|
803
|
+
declare function CarouselContainer({ ref, className, children, ...props }: CarouselContainerTypes): react_jsx_runtime.JSX.Element;
|
|
804
|
+
declare function CarouselSlide({ ref, className, children, ...props }: CarouselSlideTypes): react_jsx_runtime.JSX.Element;
|
|
805
|
+
declare function CarouselControls({ ref, overlay, className, children, ...props }: CarouselControlsTypes): react_jsx_runtime.JSX.Element;
|
|
806
|
+
declare function CarouselPrev({ ref, className, label, children, ...props }: CarouselPrevTypes): react_jsx_runtime.JSX.Element;
|
|
807
|
+
declare function CarouselNext({ ref, className, label, children, ...props }: CarouselNextTypes): react_jsx_runtime.JSX.Element;
|
|
808
|
+
declare function CarouselDots({ ref, className, label, navigationLabel, ...props }: CarouselDotsTypes): react_jsx_runtime.JSX.Element;
|
|
809
|
+
|
|
810
|
+
type GapSize = 0 | 1 | 2 | 3 | 4 | 5;
|
|
811
|
+
type GridTypes = ComponentPropsWithRef<'div'> & {
|
|
812
|
+
col?: number;
|
|
813
|
+
colXS?: number;
|
|
814
|
+
colSM?: number;
|
|
815
|
+
colMD?: number;
|
|
816
|
+
colLG?: number;
|
|
817
|
+
colXL?: number;
|
|
818
|
+
gap?: GapSize;
|
|
819
|
+
gapXS?: GapSize;
|
|
820
|
+
gapSM?: GapSize;
|
|
821
|
+
gapMD?: GapSize;
|
|
822
|
+
gapLG?: GapSize;
|
|
823
|
+
gapXL?: GapSize;
|
|
824
|
+
/** Enable masonry layout (items flow vertically then horizontally) */
|
|
825
|
+
masonry?: boolean;
|
|
826
|
+
};
|
|
827
|
+
type GridItemTypes = ComponentPropsWithRef<'div'> & {
|
|
828
|
+
col?: number;
|
|
829
|
+
colXS?: number;
|
|
830
|
+
colSM?: number;
|
|
831
|
+
colMD?: number;
|
|
832
|
+
colLG?: number;
|
|
833
|
+
colXL?: number;
|
|
834
|
+
row?: number;
|
|
835
|
+
rowXS?: number;
|
|
836
|
+
rowSM?: number;
|
|
837
|
+
rowMD?: number;
|
|
838
|
+
rowLG?: number;
|
|
839
|
+
rowXL?: number;
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
declare function Grid({ ref, children, gap, gapXS, gapSM, gapMD, gapLG, gapXL, col, colXS, colSM, colMD, colLG, colXL, masonry, className, ...rest }: GridTypes): react_jsx_runtime.JSX.Element;
|
|
843
|
+
|
|
844
|
+
declare function GridItem({ children, col, colXS, colSM, colMD, colLG, colXL, row, rowXS, rowSM, rowMD, rowLG, rowXL, className, ...rest }: GridItemTypes): react_jsx_runtime.JSX.Element;
|
|
845
|
+
|
|
846
|
+
type ModalConfigTypes = {
|
|
847
|
+
id?: number;
|
|
848
|
+
title?: ReactNode;
|
|
849
|
+
children: ReactNode;
|
|
850
|
+
width?: string;
|
|
851
|
+
closeOnBackdrop?: boolean;
|
|
852
|
+
duration?: number;
|
|
853
|
+
closeLabel?: string;
|
|
854
|
+
hideCloseButton?: boolean;
|
|
855
|
+
};
|
|
856
|
+
type ModalTypes = ModalConfigTypes & {
|
|
857
|
+
onRemove: (id: number) => void;
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
declare function Modal({ id, title, width, children, onRemove, duration, closeOnBackdrop, closeLabel, hideCloseButton, }: ModalTypes): react_jsx_runtime.JSX.Element;
|
|
861
|
+
|
|
862
|
+
declare function Modals({ children }: {
|
|
863
|
+
children: ReactNode;
|
|
864
|
+
}): react_jsx_runtime.JSX.Element;
|
|
865
|
+
|
|
866
|
+
type ModalsContextTypes = {
|
|
867
|
+
modals: ModalConfigTypes[];
|
|
868
|
+
addModal: (options: ModalConfigTypes) => void;
|
|
869
|
+
removeModal: (id: number) => void;
|
|
870
|
+
};
|
|
871
|
+
declare const ModalsContext: react.Context<ModalsContextTypes | undefined>;
|
|
872
|
+
declare const useModals: () => ModalsContextTypes;
|
|
873
|
+
|
|
874
|
+
type TabContextValue = {
|
|
875
|
+
activeTab: string;
|
|
876
|
+
setActiveTab: (value: string) => void;
|
|
877
|
+
tabId: string;
|
|
878
|
+
};
|
|
879
|
+
type TabTypes = ComponentPropsWithRef<'div'> & {
|
|
880
|
+
value?: string;
|
|
881
|
+
defaultValue: string;
|
|
882
|
+
onValueChange?: (value: string) => void;
|
|
883
|
+
};
|
|
884
|
+
type TabListTypes = ComponentPropsWithRef<'div'>;
|
|
885
|
+
type TabButtonTypes = Omit<ButtonTypes, 'value'> & {
|
|
886
|
+
value: string;
|
|
887
|
+
};
|
|
888
|
+
type TabPanelsTypes = ComponentPropsWithRef<'div'>;
|
|
889
|
+
type TabPanelTypes = ComponentPropsWithRef<'div'> & {
|
|
890
|
+
value: string;
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
declare function Tab({ ref, defaultValue, value, onValueChange, className, children, ...props }: TabTypes): react_jsx_runtime.JSX.Element;
|
|
894
|
+
declare function TabList({ ref, className, children, ...props }: TabListTypes): react_jsx_runtime.JSX.Element;
|
|
895
|
+
declare function TabButton({ value, children, className, appearance, variant, ...props }: TabButtonTypes): react_jsx_runtime.JSX.Element;
|
|
896
|
+
declare function TabPanels({ ref, className, children, ...props }: TabPanelsTypes): react_jsx_runtime.JSX.Element;
|
|
897
|
+
declare function TabPanel({ ref, value, className, children, ...props }: TabPanelTypes): react_jsx_runtime.JSX.Element | null;
|
|
898
|
+
|
|
899
|
+
type TableTypes = ComponentPropsWithRef<'table'> & {
|
|
900
|
+
/** Adds striped rows */
|
|
901
|
+
striped?: boolean;
|
|
902
|
+
/** Adds hover effect on rows */
|
|
903
|
+
hoverable?: boolean;
|
|
904
|
+
/** Makes the table more compact */
|
|
905
|
+
compact?: boolean;
|
|
906
|
+
/** Adds border to all cells */
|
|
907
|
+
bordered?: boolean;
|
|
908
|
+
};
|
|
909
|
+
type TableHeadTypes = ComponentPropsWithRef<'thead'>;
|
|
910
|
+
type TableBodyTypes = ComponentPropsWithRef<'tbody'>;
|
|
911
|
+
type TableFootTypes = ComponentPropsWithRef<'tfoot'>;
|
|
912
|
+
type TableRowTypes = ComponentPropsWithRef<'tr'>;
|
|
913
|
+
type TableHeaderCellTypes = ComponentPropsWithRef<'th'>;
|
|
914
|
+
type TableCellTypes = ComponentPropsWithRef<'td'>;
|
|
915
|
+
type TableCaptionTypes = ComponentPropsWithRef<'caption'> & {
|
|
916
|
+
/** Position of the caption */
|
|
917
|
+
position?: 'top' | 'bottom';
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
declare function Table({ striped, hoverable, compact, bordered, className, children, ref, ...props }: TableTypes): react_jsx_runtime.JSX.Element;
|
|
921
|
+
declare function TableHead({ className, children, ref, ...props }: TableHeadTypes): react_jsx_runtime.JSX.Element;
|
|
922
|
+
declare function TableBody({ className, children, ref, ...props }: TableBodyTypes): react_jsx_runtime.JSX.Element;
|
|
923
|
+
declare function TableFoot({ className, children, ref, ...props }: TableFootTypes): react_jsx_runtime.JSX.Element;
|
|
924
|
+
declare function TableRow({ className, children, ref, ...props }: TableRowTypes): react_jsx_runtime.JSX.Element;
|
|
925
|
+
declare function TableHeaderCell({ className, children, ref, ...props }: TableHeaderCellTypes): react_jsx_runtime.JSX.Element;
|
|
926
|
+
declare function TableCell({ className, children, ref, ...props }: TableCellTypes): react_jsx_runtime.JSX.Element;
|
|
927
|
+
declare function TableCaption({ position, className, children, ref, ...props }: TableCaptionTypes): react_jsx_runtime.JSX.Element;
|
|
928
|
+
|
|
929
|
+
type AccountSectionTypes = ComponentPropsWithRef<'div'> & {
|
|
930
|
+
children: ReactNode;
|
|
931
|
+
};
|
|
932
|
+
type AccountCardTypes = ComponentPropsWithRef<'div'> & {
|
|
933
|
+
children: ReactNode;
|
|
934
|
+
};
|
|
935
|
+
type AccountCardHeaderTypes = ComponentPropsWithRef<'div'> & {
|
|
936
|
+
children?: ReactNode;
|
|
937
|
+
};
|
|
938
|
+
type AccountCardBodyTypes = ComponentPropsWithRef<'div'> & {
|
|
939
|
+
children: ReactNode;
|
|
940
|
+
};
|
|
941
|
+
type AccountCardFooterTypes = ComponentPropsWithRef<'div'> & {
|
|
942
|
+
children: ReactNode;
|
|
943
|
+
};
|
|
944
|
+
type AccountFormTypes = ComponentPropsWithRef<'form'> & {
|
|
945
|
+
children: ReactNode;
|
|
946
|
+
};
|
|
947
|
+
type AccountTitleTypes = {
|
|
948
|
+
children: ReactNode;
|
|
949
|
+
className?: string;
|
|
950
|
+
level?: HeadingLevel;
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
declare function AccountCard({ ref, children, className, ...rest }: AccountCardTypes): react_jsx_runtime.JSX.Element;
|
|
954
|
+
declare function AccountCardHeader({ ref, children, className, ...rest }: AccountCardHeaderTypes): react_jsx_runtime.JSX.Element;
|
|
955
|
+
declare function AccountCardBody({ ref, children, className, ...rest }: AccountCardBodyTypes): react_jsx_runtime.JSX.Element;
|
|
956
|
+
declare function AccountCardFooter({ ref, children, className, ...rest }: AccountCardFooterTypes): react_jsx_runtime.JSX.Element;
|
|
957
|
+
|
|
958
|
+
declare function AccountForm({ ref, children, className, ...rest }: AccountFormTypes): react_jsx_runtime.JSX.Element;
|
|
959
|
+
|
|
960
|
+
declare function AccountSection({ ref, children, className, ...rest }: AccountSectionTypes): react_jsx_runtime.JSX.Element;
|
|
961
|
+
|
|
962
|
+
declare function AccountTitle({ children, className, level, }: AccountTitleTypes): react_jsx_runtime.JSX.Element;
|
|
963
|
+
|
|
964
|
+
type AuthSectionTypes = ComponentPropsWithRef<'section'> & {
|
|
965
|
+
children: ReactNode;
|
|
966
|
+
};
|
|
967
|
+
type AuthCardTypes = ComponentPropsWithRef<'div'> & {
|
|
968
|
+
children: ReactNode;
|
|
969
|
+
};
|
|
970
|
+
type AuthCardHeaderTypes = ComponentPropsWithRef<'div'> & {
|
|
971
|
+
children?: ReactNode;
|
|
972
|
+
};
|
|
973
|
+
type AuthCardBodyTypes = ComponentPropsWithRef<'div'> & {
|
|
974
|
+
children: ReactNode;
|
|
975
|
+
};
|
|
976
|
+
type AuthCardFooterTypes = ComponentPropsWithRef<'div'> & {
|
|
977
|
+
children: ReactNode;
|
|
978
|
+
};
|
|
979
|
+
type AuthFormTypes = ComponentPropsWithRef<'form'> & {
|
|
980
|
+
children: ReactNode;
|
|
981
|
+
};
|
|
982
|
+
type AuthLinkTypes = {
|
|
983
|
+
asChild?: boolean;
|
|
984
|
+
children: ReactNode;
|
|
985
|
+
className?: string;
|
|
986
|
+
href?: string;
|
|
987
|
+
};
|
|
988
|
+
type AuthTitleTypes = {
|
|
989
|
+
children: ReactNode;
|
|
990
|
+
className?: string;
|
|
991
|
+
level?: HeadingLevel;
|
|
992
|
+
};
|
|
993
|
+
type AuthMessageTypes = ComponentPropsWithRef<'div'> & {
|
|
994
|
+
children?: ReactNode;
|
|
995
|
+
title: string;
|
|
996
|
+
message: string;
|
|
997
|
+
status?: 'success' | 'error' | 'info';
|
|
998
|
+
footer?: ReactNode;
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
declare function AuthCard({ ref, children, className, ...rest }: AuthCardTypes): react_jsx_runtime.JSX.Element;
|
|
1002
|
+
declare function AuthCardHeader({ ref, children, className, ...rest }: AuthCardHeaderTypes): react_jsx_runtime.JSX.Element;
|
|
1003
|
+
declare function AuthCardBody({ ref, children, className, ...rest }: AuthCardBodyTypes): react_jsx_runtime.JSX.Element;
|
|
1004
|
+
declare function AuthCardFooter({ ref, children, className, ...rest }: AuthCardFooterTypes): react_jsx_runtime.JSX.Element;
|
|
1005
|
+
|
|
1006
|
+
declare function AuthForm({ ref, children, className, ...rest }: AuthFormTypes): react_jsx_runtime.JSX.Element;
|
|
1007
|
+
|
|
1008
|
+
declare function AuthLink({ asChild, children, className, ...rest }: AuthLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1009
|
+
|
|
1010
|
+
declare function AuthSection({ ref, children, className, ...rest }: AuthSectionTypes): react_jsx_runtime.JSX.Element;
|
|
1011
|
+
|
|
1012
|
+
declare function AuthTitle({ level, children, className, ...rest }: AuthTitleTypes): react_jsx_runtime.JSX.Element;
|
|
1013
|
+
|
|
1014
|
+
type DashboardLayoutTypes = ComponentPropsWithRef<'div'> & {
|
|
1015
|
+
children: ReactNode;
|
|
1016
|
+
};
|
|
1017
|
+
type DashboardSidebarTypes = ComponentPropsWithRef<'aside'> & {
|
|
1018
|
+
children: ReactNode;
|
|
1019
|
+
};
|
|
1020
|
+
type DashboardBrandTypes = ComponentPropsWithRef<'div'> & {
|
|
1021
|
+
children: ReactNode;
|
|
1022
|
+
};
|
|
1023
|
+
type DashboardMainTypes = ComponentPropsWithRef<'main'> & {
|
|
1024
|
+
children: ReactNode;
|
|
1025
|
+
};
|
|
1026
|
+
type DashboardHeaderTypes = ComponentPropsWithRef<'div'> & {
|
|
1027
|
+
children: ReactNode;
|
|
1028
|
+
};
|
|
1029
|
+
type DashboardTitleTypes = ComponentPropsWithRef<'h1'> & {
|
|
1030
|
+
children: ReactNode;
|
|
1031
|
+
};
|
|
1032
|
+
type DashboardNavTypes = ComponentPropsWithRef<'nav'> & {
|
|
1033
|
+
children: ReactNode;
|
|
1034
|
+
};
|
|
1035
|
+
type DashboardNavLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1036
|
+
children: ReactNode;
|
|
1037
|
+
asChild?: boolean;
|
|
1038
|
+
current?: boolean;
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
declare function DashboardBrand({ ref, children, className, ...rest }: DashboardBrandTypes): react_jsx_runtime.JSX.Element;
|
|
1042
|
+
|
|
1043
|
+
declare function DashboardLayout({ ref, children, className, ...rest }: DashboardLayoutTypes): react_jsx_runtime.JSX.Element;
|
|
1044
|
+
|
|
1045
|
+
declare function DashboardMain({ ref, children, className, ...rest }: DashboardMainTypes): react_jsx_runtime.JSX.Element;
|
|
1046
|
+
|
|
1047
|
+
declare function DashboardMainHeader({ ref, children, className, ...rest }: DashboardHeaderTypes): react_jsx_runtime.JSX.Element;
|
|
1048
|
+
|
|
1049
|
+
declare function DashboardMainTitle({ ref, children, className, ...rest }: DashboardTitleTypes): react_jsx_runtime.JSX.Element;
|
|
1050
|
+
|
|
1051
|
+
declare function DashboardNav({ ref, children, className, title, ...rest }: DashboardNavTypes): react_jsx_runtime.JSX.Element;
|
|
1052
|
+
|
|
1053
|
+
declare function DashboardNavLink({ ref, children, className, asChild, current, ...rest }: DashboardNavLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1054
|
+
|
|
1055
|
+
declare function DashboardNavTitle({ ref, level, children, className, ...rest }: TitleTypes): react_jsx_runtime.JSX.Element;
|
|
1056
|
+
|
|
1057
|
+
declare function DashboardSidebar({ ref, children, className, ...rest }: DashboardSidebarTypes): react_jsx_runtime.JSX.Element;
|
|
1058
|
+
|
|
1059
|
+
type FooterTypes = ComponentPropsWithRef<'footer'>;
|
|
1060
|
+
type FooterMainTypes = ComponentPropsWithRef<'div'> & {
|
|
1061
|
+
brand?: ReactNode;
|
|
1062
|
+
};
|
|
1063
|
+
type FooterMainLogoTypes = ComponentPropsWithRef<'div'>;
|
|
1064
|
+
type FooterMainMenuTypes = ComponentPropsWithRef<'div'>;
|
|
1065
|
+
type FooterMainNavTypes = ComponentPropsWithRef<'nav'> & {
|
|
1066
|
+
title?: string;
|
|
1067
|
+
'aria-label'?: string;
|
|
1068
|
+
};
|
|
1069
|
+
type FooterMainLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1070
|
+
asChild?: boolean;
|
|
1071
|
+
current?: boolean;
|
|
1072
|
+
};
|
|
1073
|
+
type FooterBottomTypes = ComponentPropsWithRef<'div'> & {
|
|
1074
|
+
copyright?: string;
|
|
1075
|
+
};
|
|
1076
|
+
type FooterBottomNavTypes = ComponentPropsWithRef<'nav'> & {
|
|
1077
|
+
'aria-label'?: string;
|
|
1078
|
+
};
|
|
1079
|
+
type FooterBottomLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1080
|
+
asChild?: boolean;
|
|
1081
|
+
current?: boolean;
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
declare function FooterBottom({ ref, children, className, copyright, ...rest }: FooterBottomTypes): react_jsx_runtime.JSX.Element;
|
|
1085
|
+
|
|
1086
|
+
declare function FooterBottomLink({ asChild, children, className, current, ...props }: FooterBottomLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1087
|
+
|
|
1088
|
+
declare function FooterBottomNav({ ref, children, className, 'aria-label': ariaLabel, ...rest }: FooterBottomNavTypes): react_jsx_runtime.JSX.Element;
|
|
1089
|
+
|
|
1090
|
+
declare function FooterRoot({ ref, children, className, ...rest }: FooterTypes): react_jsx_runtime.JSX.Element;
|
|
1091
|
+
|
|
1092
|
+
declare function FooterMain({ ref, children, className, ...rest }: FooterMainTypes): react_jsx_runtime.JSX.Element;
|
|
1093
|
+
|
|
1094
|
+
declare function FooterMainLink({ asChild, children, className, current, ...props }: FooterMainLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1095
|
+
|
|
1096
|
+
declare function FooterMainLogo({ ref, children, className, ...rest }: FooterMainLogoTypes): react_jsx_runtime.JSX.Element;
|
|
1097
|
+
|
|
1098
|
+
declare function FooterMainMenu({ ref, children, className, ...rest }: FooterMainMenuTypes): react_jsx_runtime.JSX.Element;
|
|
1099
|
+
|
|
1100
|
+
declare function FooterMainNav({ ref, children, className, title, 'aria-label': ariaLabel, ...rest }: FooterMainNavTypes): react_jsx_runtime.JSX.Element;
|
|
1101
|
+
|
|
1102
|
+
declare function FooterMainNavTitle({ children, className, level, }: TitleTypes): react_jsx_runtime.JSX.Element;
|
|
1103
|
+
|
|
1104
|
+
type HeaderTextColor = 'light' | 'dark';
|
|
1105
|
+
type HeaderTypes = ComponentPropsWithRef<'header'> & {
|
|
1106
|
+
children: ReactNode;
|
|
1107
|
+
baseId?: string;
|
|
1108
|
+
transparent?: boolean;
|
|
1109
|
+
textColor?: HeaderTextColor;
|
|
1110
|
+
};
|
|
1111
|
+
type HeaderTopTypes = ComponentPropsWithRef<'div'> & {
|
|
1112
|
+
children: ReactNode;
|
|
1113
|
+
containerClassName?: string;
|
|
1114
|
+
};
|
|
1115
|
+
type HeaderTopNavTypes = ComponentPropsWithRef<'nav'> & {
|
|
1116
|
+
children: ReactNode;
|
|
1117
|
+
'aria-label'?: string;
|
|
1118
|
+
};
|
|
1119
|
+
type HeaderTopDropdownTypes = ComponentPropsWithRef<'div'> & {
|
|
1120
|
+
children: ReactNode;
|
|
1121
|
+
label: ReactNode;
|
|
1122
|
+
href?: string;
|
|
1123
|
+
as?: ElementType;
|
|
1124
|
+
current?: boolean;
|
|
1125
|
+
};
|
|
1126
|
+
type HeaderMainTypes = ComponentPropsWithRef<'div'> & {
|
|
1127
|
+
children: ReactNode;
|
|
1128
|
+
containerClassName?: string;
|
|
1129
|
+
};
|
|
1130
|
+
type HeaderMainLogoTypes = ComponentPropsWithRef<'div'> & {
|
|
1131
|
+
children: ReactNode;
|
|
1132
|
+
};
|
|
1133
|
+
type HeaderMainNavTypes = ComponentPropsWithRef<'nav'> & {
|
|
1134
|
+
children: ReactNode;
|
|
1135
|
+
'aria-label'?: string;
|
|
1136
|
+
};
|
|
1137
|
+
type HeaderMainDropdownTypes = ComponentPropsWithRef<'div'> & {
|
|
1138
|
+
children: ReactNode;
|
|
1139
|
+
label: ReactNode;
|
|
1140
|
+
href?: string;
|
|
1141
|
+
as?: ElementType;
|
|
1142
|
+
mega?: boolean;
|
|
1143
|
+
current?: boolean;
|
|
1144
|
+
};
|
|
1145
|
+
type HeaderMobileTypes = ComponentPropsWithRef<'div'> & {
|
|
1146
|
+
children: ReactNode;
|
|
1147
|
+
};
|
|
1148
|
+
type HeaderMobileLogoTypes = ComponentPropsWithRef<'div'> & {
|
|
1149
|
+
children: ReactNode;
|
|
1150
|
+
};
|
|
1151
|
+
type HeaderMobileBarTypes = ComponentPropsWithRef<'div'> & {
|
|
1152
|
+
children: ReactNode;
|
|
1153
|
+
};
|
|
1154
|
+
type HeaderMobileToggleTypes = Omit<ComponentPropsWithRef<'button'>, 'children'> & {
|
|
1155
|
+
label?: string;
|
|
1156
|
+
closeLabel?: string;
|
|
1157
|
+
menuLabel?: string;
|
|
1158
|
+
};
|
|
1159
|
+
type HeaderMobileMenuTypes = ComponentPropsWithRef<'div'> & {
|
|
1160
|
+
children: ReactNode;
|
|
1161
|
+
'aria-label'?: string;
|
|
1162
|
+
};
|
|
1163
|
+
type HeaderMobileTopTypes = ComponentPropsWithRef<'div'> & {
|
|
1164
|
+
children: ReactNode;
|
|
1165
|
+
'aria-label'?: string;
|
|
1166
|
+
};
|
|
1167
|
+
type HeaderMobileNavTypes = ComponentPropsWithRef<'nav'> & {
|
|
1168
|
+
children: ReactNode;
|
|
1169
|
+
'aria-label'?: string;
|
|
1170
|
+
};
|
|
1171
|
+
type HeaderMobileDropdownTypes = ComponentPropsWithRef<'div'> & {
|
|
1172
|
+
children: ReactNode;
|
|
1173
|
+
label: ReactNode;
|
|
1174
|
+
baseId?: string;
|
|
1175
|
+
};
|
|
1176
|
+
type HeaderTopLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1177
|
+
asChild?: boolean;
|
|
1178
|
+
children: ReactNode;
|
|
1179
|
+
current?: boolean;
|
|
1180
|
+
};
|
|
1181
|
+
type HeaderTopDropdownLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1182
|
+
asChild?: boolean;
|
|
1183
|
+
children: ReactNode;
|
|
1184
|
+
current?: boolean;
|
|
1185
|
+
};
|
|
1186
|
+
type HeaderMainLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1187
|
+
asChild?: boolean;
|
|
1188
|
+
children: ReactNode;
|
|
1189
|
+
current?: boolean;
|
|
1190
|
+
};
|
|
1191
|
+
type HeaderMainDropdownLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1192
|
+
asChild?: boolean;
|
|
1193
|
+
children: ReactNode;
|
|
1194
|
+
current?: boolean;
|
|
1195
|
+
};
|
|
1196
|
+
type HeaderMobileLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1197
|
+
asChild?: boolean;
|
|
1198
|
+
children: ReactNode;
|
|
1199
|
+
current?: boolean;
|
|
1200
|
+
};
|
|
1201
|
+
type HeaderMobileDropdownLinkTypes = ComponentPropsWithRef<'a'> & {
|
|
1202
|
+
asChild?: boolean;
|
|
1203
|
+
children: ReactNode;
|
|
1204
|
+
current?: boolean;
|
|
1205
|
+
};
|
|
1206
|
+
type HeaderNavTypes = 'main' | 'top' | 'mobile';
|
|
1207
|
+
type HeaderContextTypes = {
|
|
1208
|
+
isOpen: boolean;
|
|
1209
|
+
toggle: () => void;
|
|
1210
|
+
mobileMenuId: string;
|
|
1211
|
+
mobileToggleId: string;
|
|
1212
|
+
registerNav: (type: HeaderNavTypes) => number;
|
|
1213
|
+
getNavCount: (type: HeaderNavTypes) => number;
|
|
1214
|
+
isTransparent: boolean;
|
|
1215
|
+
textColor: HeaderTextColor;
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
declare const HeaderContext: react.Context<HeaderContextTypes | null>;
|
|
1219
|
+
declare const useHeader: () => HeaderContextTypes;
|
|
1220
|
+
|
|
1221
|
+
declare function HeaderRoot({ ref, children, baseId, transparent, textColor, className, ...rest }: HeaderTypes): react_jsx_runtime.JSX.Element;
|
|
1222
|
+
|
|
1223
|
+
declare function HeaderMain({ ref, children, className, containerClassName, ...rest }: HeaderMainTypes): react_jsx_runtime.JSX.Element;
|
|
1224
|
+
|
|
1225
|
+
declare function HeaderMainDropdown({ children, label, href, as, mega, current, className, ...rest }: HeaderMainDropdownTypes): react_jsx_runtime.JSX.Element;
|
|
1226
|
+
|
|
1227
|
+
declare function HeaderMainDropdownLink({ asChild, children, className, current, ...props }: HeaderMainDropdownLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1228
|
+
|
|
1229
|
+
declare function HeaderMainLink({ asChild, children, className, current, ...props }: HeaderMainLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1230
|
+
|
|
1231
|
+
declare function HeaderMainLogo({ ref, children, className, ...rest }: HeaderMainLogoTypes): react_jsx_runtime.JSX.Element;
|
|
1232
|
+
|
|
1233
|
+
declare function HeaderMainNav({ ref, children, className, 'aria-label': ariaLabel, ...rest }: HeaderMainNavTypes): react_jsx_runtime.JSX.Element;
|
|
1234
|
+
|
|
1235
|
+
declare function HeaderMobile({ ref, children, className, ...rest }: HeaderMobileTypes): react_jsx_runtime.JSX.Element;
|
|
1236
|
+
|
|
1237
|
+
declare function HeaderMobileBar({ ref, children, className, ...rest }: HeaderMobileBarTypes): react_jsx_runtime.JSX.Element;
|
|
1238
|
+
|
|
1239
|
+
declare function HeaderMobileDropdown({ ref, children, label, baseId, className, ...rest }: HeaderMobileDropdownTypes): react_jsx_runtime.JSX.Element;
|
|
1240
|
+
|
|
1241
|
+
declare function HeaderMobileDropdownLink({ asChild, children, className, current, ...props }: HeaderMobileDropdownLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1242
|
+
|
|
1243
|
+
declare function HeaderMobileLink({ asChild, children, className, current, ...props }: HeaderMobileLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1244
|
+
|
|
1245
|
+
declare function HeaderMobileLogo({ ref, children, className, ...rest }: HeaderMobileLogoTypes): react_jsx_runtime.JSX.Element;
|
|
1246
|
+
|
|
1247
|
+
declare function HeaderMobileMenu({ ref, children, className, 'aria-label': ariaLabel, ...rest }: HeaderMobileMenuTypes): react_jsx_runtime.JSX.Element;
|
|
1248
|
+
|
|
1249
|
+
declare function HeaderMobileNav({ ref, children, className, 'aria-label': ariaLabel, ...rest }: HeaderMobileNavTypes): react_jsx_runtime.JSX.Element;
|
|
1250
|
+
|
|
1251
|
+
declare function HeaderMobileToggle({ ref, label, closeLabel, menuLabel, className, ...rest }: HeaderMobileToggleTypes): react_jsx_runtime.JSX.Element;
|
|
1252
|
+
|
|
1253
|
+
declare function HeaderMobileTop({ ref, className, children, ...rest }: HeaderMobileTopTypes): react_jsx_runtime.JSX.Element;
|
|
1254
|
+
|
|
1255
|
+
declare function HeaderTop({ ref, children, className, containerClassName, ...rest }: HeaderTopTypes): react_jsx_runtime.JSX.Element;
|
|
1256
|
+
|
|
1257
|
+
declare function HeaderTopDropdown({ children, label, href, as, current, className, ...rest }: HeaderTopDropdownTypes): react_jsx_runtime.JSX.Element;
|
|
1258
|
+
|
|
1259
|
+
declare function HeaderTopDropdownLink({ asChild, children, className, current, ...props }: HeaderTopDropdownLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1260
|
+
|
|
1261
|
+
declare function HeaderTopLink({ asChild, children, className, current, ...props }: HeaderTopLinkTypes): react_jsx_runtime.JSX.Element;
|
|
1262
|
+
|
|
1263
|
+
declare function HeaderTopNav({ ref, children, className, 'aria-label': ariaLabel, ...rest }: HeaderTopNavTypes): react_jsx_runtime.JSX.Element;
|
|
1264
|
+
|
|
1265
|
+
type PageRootTypes = ComponentPropsWithRef<'div'> & {
|
|
1266
|
+
children?: ReactNode;
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
declare function PageRoot({ ref, children, className, ...rest }: PageRootTypes): react_jsx_runtime.JSX.Element;
|
|
1270
|
+
|
|
1271
|
+
export { Accordion, AccordionContent, type AccordionContentTypes, type AccordionContextValue, AccordionItem, type AccordionItemContextValue, type AccordionItemTypes, AccordionTrigger, type AccordionTriggerTypes, type AccordionType, type AccordionTypes, AccountCard, AccountCardBody, type AccountCardBodyTypes, AccountCardFooter, type AccountCardFooterTypes, AccountCardHeader, type AccountCardHeaderTypes, type AccountCardTypes, AccountForm, type AccountFormTypes, AccountSection, type AccountSectionTypes, AccountTitle, type AccountTitleTypes, Audio, type AudioSource, type AudioTypes, AuthCard, AuthCardBody, type AuthCardBodyTypes, AuthCardFooter, type AuthCardFooterTypes, AuthCardHeader, type AuthCardHeaderTypes, type AuthCardTypes, AuthForm, type AuthFormTypes, AuthLink, type AuthLinkTypes, type AuthMessageTypes, AuthSection, type AuthSectionTypes, AuthTitle, type AuthTitleTypes, Avatar, type AvatarTypes, Badge, type BadgeTypes, Banner, BannerActions, type BannerActionsTypes, type BannerBackgroundVideo, BannerBody, type BannerBodyTypes, BannerContent, type BannerContentTypes, type BannerOverlay, type BannerOverlayTypes, BannerSubtitle, type BannerSubtitleTypes, type BannerTextAlignTypes, type BannerTextColor, type BannerTextColorTypes, BannerTitle, type BannerTitleTypes, type BannerTypes, Breadcrumb, type BreadcrumbItemData, type BreadcrumbTypes, Button, type ButtonAppearance, type ButtonTypes, Card, CardBody, type CardBodyTypes, CardFooter, type CardFooterTypes, CardHeader, type CardHeaderTypes, type CardTypes, Carousel, type CarouselCSSProperties, CarouselContainer, type CarouselContainerTypes, type CarouselContextValue, CarouselControls, type CarouselControlsTypes, CarouselDots, type CarouselDotsTypes, CarouselNext, type CarouselNextTypes, type CarouselOptions, CarouselPrev, type CarouselPrevTypes, CarouselSlide, type CarouselSlideTypes, type CarouselTypes, Checkbox, type CheckboxTypes, ChoiceClear, type ChoiceClearTypes, ChoiceList, ChoiceListItem, type ChoiceListItemTypes, type ChoiceListTypes, DashboardBrand, type DashboardBrandTypes, type DashboardHeaderTypes, DashboardLayout, type DashboardLayoutTypes, DashboardMain, DashboardMainHeader, DashboardMainTitle, type DashboardMainTypes, DashboardNav, DashboardNavLink, type DashboardNavLinkTypes, DashboardNavTitle, type DashboardNavTypes, DashboardSidebar, type DashboardSidebarTypes, type DashboardTitleTypes, Divider, type DividerSpacing, type DividerTypes, type DividerVariant, FooterBottom, FooterBottomLink, type FooterBottomLinkTypes, FooterBottomNav, type FooterBottomNavTypes, type FooterBottomTypes, FooterMain, FooterMainLink, type FooterMainLinkTypes, FooterMainLogo, type FooterMainLogoTypes, FooterMainMenu, type FooterMainMenuTypes, FooterMainNav, FooterMainNavTitle, type FooterMainNavTypes, type FooterMainTypes, FooterRoot, type FooterTypes, type GapSize, Grid, GridItem, type GridItemTypes, type GridTypes, HeaderContext, type HeaderContextTypes, HeaderMain, HeaderMainDropdown, HeaderMainDropdownLink, type HeaderMainDropdownLinkTypes, type HeaderMainDropdownTypes, HeaderMainLink, type HeaderMainLinkTypes, HeaderMainLogo, type HeaderMainLogoTypes, HeaderMainNav, type HeaderMainNavTypes, type HeaderMainTypes, HeaderMobile, HeaderMobileBar, type HeaderMobileBarTypes, HeaderMobileDropdown, HeaderMobileDropdownLink, type HeaderMobileDropdownLinkTypes, type HeaderMobileDropdownTypes, HeaderMobileLink, type HeaderMobileLinkTypes, HeaderMobileLogo, type HeaderMobileLogoTypes, HeaderMobileMenu, type HeaderMobileMenuTypes, HeaderMobileNav, type HeaderMobileNavTypes, HeaderMobileToggle, type HeaderMobileToggleTypes, HeaderMobileTop, type HeaderMobileTopTypes, type HeaderMobileTypes, type HeaderNavTypes, HeaderRoot, type HeaderTextColor, HeaderTop, HeaderTopDropdown, HeaderTopDropdownLink, type HeaderTopDropdownLinkTypes, type HeaderTopDropdownTypes, HeaderTopLink, type HeaderTopLinkTypes, HeaderTopNav, type HeaderTopNavTypes, type HeaderTopTypes, type HeaderTypes, type HeadingLevel, type HorizontalAlignTypes, Iframe, type IframeTypes, Image, type ImageTypes, InputDate, type InputDateTypes, InputFile, type InputFileTypes, InputNumber, type InputNumberTypes, InputPassword, type InputPasswordTypes, InputRadio, type InputRadioTypes, InputSearch, type InputSearchTypes, InputText, type InputTextTypes, InputTextarea, type InputTextareaTypes, Layout, type LayoutTypes, Link, type LinkAppearance, type LinkTypes, Logo, LogoFallback, type LogoFallbackTypes, type LogoTypes, Modal, type ModalConfigTypes, type ModalTypes, Modals, ModalsContext, type ModalsContextTypes, Note, NoteTitle, type NoteTypes, OptionList, OptionListItem, type OptionListItemTypes, type OptionListTypes, type OptionTypes, PageRoot, type PageRootTypes, Pagination, type PaginationTypes, Progress, type ProgressTypes, type RadioOptionTypes, RichText, type RichTextTypes, type SearchResultTypes, Section, SectionHeader, type SectionHeaderTypes, SectionTitle, type SectionTypes, SelectActions, type SelectActionsTypes, SelectContextRoot, type SelectContextTypes, SelectModal, type SelectModalTypes, SelectPlaceholder, type SelectPlaceholderTypes, SelectRoot, type SelectRootTypes, SelectSearch, SelectTrigger, Skeleton, type SkeletonTypes, type SkeletonVariant, Slider, type SliderBaseTypes, type SliderMark, type SliderOrientation, type SliderRangeTypes, type SliderSingleTypes, type SliderSize, type SliderTrack, type SliderTypes, type SliderValueLabelDisplay, Spinner, type SpinnerTypes, Switch, type SwitchTypes, Tab, TabButton, type TabButtonTypes, type TabContextValue, TabList, type TabListTypes, TabPanel, type TabPanelTypes, TabPanels, type TabPanelsTypes, type TabTypes, Table, TableBody, type TableBodyTypes, TableCaption, type TableCaptionTypes, TableCell, type TableCellTypes, TableFoot, type TableFootTypes, TableHead, type TableHeadTypes, TableHeaderCell, type TableHeaderCellTypes, TableRow, type TableRowTypes, type TableTypes, Title, type TitleTypes, Toast, type ToastConfigTypes, type ToastTypes, Toasts, ToastsContext, Tooltip, type TooltipPosition, type TooltipTypes, type VerticalAlignTypes, Video, type VideoSource, type VideoTrack, type VideoTypes, useHeader, useModals, useSelectContext, useToasts };
|