tguikit 0.2.0 → 0.4.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/dist/index.d.ts +396 -3
- package/dist/index.js +2269 -486
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, Ref, ReactNode, AllHTMLAttributes, ElementType, InputHTMLAttributes,
|
|
2
|
+
import { HTMLAttributes, Ref, ReactNode, BlockquoteHTMLAttributes, AllHTMLAttributes, ElementType, InputHTMLAttributes, ImgHTMLAttributes, ButtonHTMLAttributes, AnchorHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
5
|
+
ref?: Ref<HTMLDivElement>;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
value?: string | string[];
|
|
8
|
+
defaultValue?: string | string[];
|
|
9
|
+
onChange?: (value: string[]) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function Accordion({ ref, multiple, value: valueProp, defaultValue, onChange, className, children, ...rest }: AccordionProps): react.JSX.Element;
|
|
12
|
+
declare namespace Accordion {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
ref?: Ref<HTMLDivElement>;
|
|
18
|
+
value: string;
|
|
19
|
+
header: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare function AccordionItem({ ref, value, header, className, children, ...rest }: AccordionItemProps): react.JSX.Element;
|
|
22
|
+
declare namespace AccordionItem {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
3
25
|
|
|
4
26
|
type AvatarSize = 20 | 24 | 28 | 40 | 48 | 96;
|
|
5
27
|
|
|
@@ -16,6 +38,15 @@ declare namespace Avatar {
|
|
|
16
38
|
var displayName: string;
|
|
17
39
|
}
|
|
18
40
|
|
|
41
|
+
interface AvatarStackProps extends HTMLAttributes<HTMLDivElement> {
|
|
42
|
+
ref?: Ref<HTMLDivElement>;
|
|
43
|
+
overlap?: number;
|
|
44
|
+
}
|
|
45
|
+
declare function AvatarStack({ ref, overlap, className, style, ...rest }: AvatarStackProps): react.JSX.Element;
|
|
46
|
+
declare namespace AvatarStack {
|
|
47
|
+
var displayName: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
19
50
|
type BadgeType = 'number' | 'dot';
|
|
20
51
|
type BadgeMode = 'primary' | 'critical' | 'secondary' | 'gray' | 'white';
|
|
21
52
|
|
|
@@ -31,6 +62,50 @@ declare namespace Badge {
|
|
|
31
62
|
var displayName: string;
|
|
32
63
|
}
|
|
33
64
|
|
|
65
|
+
type BannerType = 'section' | 'image';
|
|
66
|
+
|
|
67
|
+
interface BannerProps extends HTMLAttributes<HTMLElement> {
|
|
68
|
+
ref?: Ref<HTMLElement>;
|
|
69
|
+
type?: BannerType;
|
|
70
|
+
before?: ReactNode;
|
|
71
|
+
callout?: ReactNode;
|
|
72
|
+
header?: ReactNode;
|
|
73
|
+
subheader?: ReactNode;
|
|
74
|
+
description?: ReactNode;
|
|
75
|
+
actions?: ReactNode;
|
|
76
|
+
background?: ReactNode;
|
|
77
|
+
onClose?: () => void;
|
|
78
|
+
closeLabel?: string;
|
|
79
|
+
}
|
|
80
|
+
declare function Banner({ ref, type, before, callout, header, subheader, description, actions, background, onClose, closeLabel, className, children, ...rest }: BannerProps): react.JSX.Element;
|
|
81
|
+
declare namespace Banner {
|
|
82
|
+
var displayName: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface BlockquoteProps extends BlockquoteHTMLAttributes<HTMLQuoteElement> {
|
|
86
|
+
ref?: Ref<HTMLQuoteElement>;
|
|
87
|
+
author?: ReactNode;
|
|
88
|
+
}
|
|
89
|
+
declare function Blockquote({ ref, author, className, children, ...rest }: BlockquoteProps): react.JSX.Element;
|
|
90
|
+
declare namespace Blockquote {
|
|
91
|
+
var displayName: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface BreadcrumbItem {
|
|
95
|
+
label: ReactNode;
|
|
96
|
+
href?: string;
|
|
97
|
+
onClick?: () => void;
|
|
98
|
+
}
|
|
99
|
+
interface BreadcrumbsProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
100
|
+
ref?: Ref<HTMLElement>;
|
|
101
|
+
items: BreadcrumbItem[];
|
|
102
|
+
maxItems?: number;
|
|
103
|
+
}
|
|
104
|
+
declare function Breadcrumbs({ ref, items, maxItems, className, ...rest }: BreadcrumbsProps): react.JSX.Element;
|
|
105
|
+
declare namespace Breadcrumbs {
|
|
106
|
+
var displayName: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
34
109
|
type TguiPlatform = 'ios' | 'base';
|
|
35
110
|
type Appearance = 'light' | 'dark';
|
|
36
111
|
interface TguiContextValue {
|
|
@@ -136,6 +211,23 @@ declare namespace Checkbox {
|
|
|
136
211
|
var displayName: string;
|
|
137
212
|
}
|
|
138
213
|
|
|
214
|
+
type ChipMode = 'elevated' | 'outline';
|
|
215
|
+
|
|
216
|
+
interface ChipProps extends Omit<AllHTMLAttributes<HTMLElement>, 'onClick'> {
|
|
217
|
+
ref?: Ref<HTMLElement>;
|
|
218
|
+
Component?: ElementType;
|
|
219
|
+
mode?: ChipMode;
|
|
220
|
+
before?: ReactNode;
|
|
221
|
+
after?: ReactNode;
|
|
222
|
+
onClick?: () => void;
|
|
223
|
+
onRemove?: () => void;
|
|
224
|
+
removeLabel?: string;
|
|
225
|
+
}
|
|
226
|
+
declare function Chip({ ref, Component, mode, before, after, onClick, onRemove, removeLabel, className, children, ...rest }: ChipProps): react.JSX.Element;
|
|
227
|
+
declare namespace Chip {
|
|
228
|
+
var displayName: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
139
231
|
type CircularProgressSize = 's' | 'm' | 'l';
|
|
140
232
|
|
|
141
233
|
interface CircularProgressProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'size'> {
|
|
@@ -156,6 +248,15 @@ declare namespace Divider {
|
|
|
156
248
|
var displayName: string;
|
|
157
249
|
}
|
|
158
250
|
|
|
251
|
+
interface FixedLayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
252
|
+
ref?: Ref<HTMLDivElement>;
|
|
253
|
+
vertical?: 'top' | 'bottom';
|
|
254
|
+
}
|
|
255
|
+
declare function FixedLayout({ ref, vertical, className, ...rest }: FixedLayoutProps): react.JSX.Element;
|
|
256
|
+
declare namespace FixedLayout {
|
|
257
|
+
var displayName: string;
|
|
258
|
+
}
|
|
259
|
+
|
|
159
260
|
interface HeadlineProps extends TypographyProps {
|
|
160
261
|
ref?: Ref<HTMLElement>;
|
|
161
262
|
}
|
|
@@ -164,6 +265,16 @@ declare namespace Headline {
|
|
|
164
265
|
var displayName: string;
|
|
165
266
|
}
|
|
166
267
|
|
|
268
|
+
interface HorizontalScrollProps extends HTMLAttributes<HTMLDivElement> {
|
|
269
|
+
ref?: Ref<HTMLDivElement>;
|
|
270
|
+
snap?: boolean;
|
|
271
|
+
fade?: boolean;
|
|
272
|
+
}
|
|
273
|
+
declare function HorizontalScroll({ ref, snap, fade, className, children, ...rest }: HorizontalScrollProps): react.JSX.Element;
|
|
274
|
+
declare namespace HorizontalScroll {
|
|
275
|
+
var displayName: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
167
278
|
type IconButtonMode = 'bezeled' | 'plain' | 'gray' | 'outline';
|
|
168
279
|
type IconButtonSize = 's' | 'm' | 'l';
|
|
169
280
|
|
|
@@ -179,6 +290,45 @@ declare namespace IconButton {
|
|
|
179
290
|
var displayName: string;
|
|
180
291
|
}
|
|
181
292
|
|
|
293
|
+
type Fit = 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
294
|
+
interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'width' | 'height'> {
|
|
295
|
+
ref?: Ref<HTMLImageElement>;
|
|
296
|
+
size?: number;
|
|
297
|
+
width?: number | string;
|
|
298
|
+
height?: number | string;
|
|
299
|
+
aspectRatio?: number | string;
|
|
300
|
+
fit?: Fit;
|
|
301
|
+
radius?: number | 'full';
|
|
302
|
+
bordered?: boolean;
|
|
303
|
+
fallback?: ReactNode;
|
|
304
|
+
}
|
|
305
|
+
declare function Image({ ref, size, width, height, aspectRatio, fit, radius, bordered, fallback, src, alt, className, style, onLoad, onError, ...rest }: ImageProps): react.JSX.Element;
|
|
306
|
+
declare namespace Image {
|
|
307
|
+
var displayName: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
type InlineButtonsMode = 'bezeled' | 'plain' | 'gray';
|
|
311
|
+
|
|
312
|
+
interface InlineButtonsItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
313
|
+
ref?: Ref<HTMLButtonElement>;
|
|
314
|
+
icon: ReactNode;
|
|
315
|
+
children: ReactNode;
|
|
316
|
+
}
|
|
317
|
+
declare function InlineButtonsItem({ ref, icon, children, className, ...rest }: InlineButtonsItemProps): react.JSX.Element;
|
|
318
|
+
declare namespace InlineButtonsItem {
|
|
319
|
+
var displayName: string;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
interface InlineButtonsProps extends HTMLAttributes<HTMLDivElement> {
|
|
323
|
+
ref?: Ref<HTMLDivElement>;
|
|
324
|
+
mode?: InlineButtonsMode;
|
|
325
|
+
}
|
|
326
|
+
declare function InlineButtons({ ref, mode, className, children, ...rest }: InlineButtonsProps): react.JSX.Element;
|
|
327
|
+
declare namespace InlineButtons {
|
|
328
|
+
var displayName: string;
|
|
329
|
+
var Item: typeof InlineButtonsItem;
|
|
330
|
+
}
|
|
331
|
+
|
|
182
332
|
type InputStatus = 'default' | 'error' | 'focused';
|
|
183
333
|
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
184
334
|
ref?: Ref<HTMLInputElement>;
|
|
@@ -200,6 +350,14 @@ declare namespace LargeTitle {
|
|
|
200
350
|
var displayName: string;
|
|
201
351
|
}
|
|
202
352
|
|
|
353
|
+
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
354
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
355
|
+
}
|
|
356
|
+
declare function Link({ ref, target, rel, className, children, ...rest }: LinkProps): react.JSX.Element;
|
|
357
|
+
declare namespace Link {
|
|
358
|
+
var displayName: string;
|
|
359
|
+
}
|
|
360
|
+
|
|
203
361
|
interface ListProps extends HTMLAttributes<HTMLElement> {
|
|
204
362
|
ref?: Ref<HTMLElement>;
|
|
205
363
|
Component?: ElementType;
|
|
@@ -209,6 +367,50 @@ declare namespace List {
|
|
|
209
367
|
var displayName: string;
|
|
210
368
|
}
|
|
211
369
|
|
|
370
|
+
interface CompactPaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
371
|
+
ref?: Ref<HTMLElement>;
|
|
372
|
+
page: number;
|
|
373
|
+
count: number;
|
|
374
|
+
onChange: (page: number) => void;
|
|
375
|
+
siblingCount?: number;
|
|
376
|
+
}
|
|
377
|
+
declare function CompactPagination({ ref, page, count, onChange, siblingCount, className, ...rest }: CompactPaginationProps): react.JSX.Element;
|
|
378
|
+
declare namespace CompactPagination {
|
|
379
|
+
var displayName: string;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
383
|
+
ref?: Ref<HTMLElement>;
|
|
384
|
+
page: number;
|
|
385
|
+
count: number;
|
|
386
|
+
onChange: (page: number) => void;
|
|
387
|
+
siblingCount?: number;
|
|
388
|
+
}
|
|
389
|
+
declare function Pagination({ ref, page, count, onChange, siblingCount, className, ...rest }: PaginationProps): react.JSX.Element;
|
|
390
|
+
declare namespace Pagination {
|
|
391
|
+
var displayName: string;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
interface PinInputProps {
|
|
395
|
+
ref?: Ref<HTMLDivElement>;
|
|
396
|
+
length?: number;
|
|
397
|
+
value?: string;
|
|
398
|
+
defaultValue?: string;
|
|
399
|
+
onChange?: (value: string) => void;
|
|
400
|
+
onComplete?: (value: string) => void;
|
|
401
|
+
type?: 'numeric' | 'alphanumeric';
|
|
402
|
+
mask?: boolean;
|
|
403
|
+
disabled?: boolean;
|
|
404
|
+
invalid?: boolean;
|
|
405
|
+
name?: string;
|
|
406
|
+
'aria-label'?: string;
|
|
407
|
+
className?: string;
|
|
408
|
+
}
|
|
409
|
+
declare function PinInput({ ref, length, value: valueProp, defaultValue, onChange, onComplete, type, mask, disabled, invalid, name, 'aria-label': ariaLabel, className, }: PinInputProps): react.JSX.Element;
|
|
410
|
+
declare namespace PinInput {
|
|
411
|
+
var displayName: string;
|
|
412
|
+
}
|
|
413
|
+
|
|
212
414
|
interface PlaceholderProps extends HTMLAttributes<HTMLElement> {
|
|
213
415
|
ref?: Ref<HTMLElement>;
|
|
214
416
|
children?: ReactNode;
|
|
@@ -221,6 +423,15 @@ declare namespace Placeholder {
|
|
|
221
423
|
var displayName: string;
|
|
222
424
|
}
|
|
223
425
|
|
|
426
|
+
interface PortalProps {
|
|
427
|
+
children?: ReactNode;
|
|
428
|
+
container?: Element | DocumentFragment | null;
|
|
429
|
+
}
|
|
430
|
+
declare function Portal({ children, container }: PortalProps): react.ReactPortal | null;
|
|
431
|
+
declare namespace Portal {
|
|
432
|
+
var displayName: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
224
435
|
interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
225
436
|
ref?: Ref<HTMLDivElement>;
|
|
226
437
|
value?: number;
|
|
@@ -238,6 +449,37 @@ declare namespace Radio {
|
|
|
238
449
|
var displayName: string;
|
|
239
450
|
}
|
|
240
451
|
|
|
452
|
+
interface RatingProps {
|
|
453
|
+
ref?: Ref<HTMLDivElement>;
|
|
454
|
+
value?: number;
|
|
455
|
+
defaultValue?: number;
|
|
456
|
+
onChange?: (value: number) => void;
|
|
457
|
+
count?: number;
|
|
458
|
+
readOnly?: boolean;
|
|
459
|
+
disabled?: boolean;
|
|
460
|
+
icon?: ReactNode;
|
|
461
|
+
name?: string;
|
|
462
|
+
'aria-label'?: string;
|
|
463
|
+
className?: string;
|
|
464
|
+
}
|
|
465
|
+
declare function Rating({ ref, value: valueProp, defaultValue, onChange, count, readOnly, disabled, icon, name, 'aria-label': ariaLabel, className, }: RatingProps): react.JSX.Element;
|
|
466
|
+
declare namespace Rating {
|
|
467
|
+
var displayName: string;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
interface SearchBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
471
|
+
ref?: Ref<HTMLDivElement>;
|
|
472
|
+
value: string;
|
|
473
|
+
onChange: (value: string) => void;
|
|
474
|
+
placeholder?: string;
|
|
475
|
+
onCancel?: () => void;
|
|
476
|
+
label?: string;
|
|
477
|
+
}
|
|
478
|
+
declare function SearchBar({ ref, value, onChange, placeholder, onCancel, label, className, ...rest }: SearchBarProps): react.JSX.Element;
|
|
479
|
+
declare namespace SearchBar {
|
|
480
|
+
var displayName: string;
|
|
481
|
+
}
|
|
482
|
+
|
|
241
483
|
interface SectionFooterProps extends HTMLAttributes<HTMLElement> {
|
|
242
484
|
ref?: Ref<HTMLElement>;
|
|
243
485
|
centered?: boolean;
|
|
@@ -268,6 +510,23 @@ declare namespace Section {
|
|
|
268
510
|
var Footer: typeof SectionFooter;
|
|
269
511
|
}
|
|
270
512
|
|
|
513
|
+
interface SegmentedControlProps extends HTMLAttributes<HTMLDivElement> {
|
|
514
|
+
ref?: Ref<HTMLDivElement>;
|
|
515
|
+
}
|
|
516
|
+
declare function SegmentedControl({ ref, className, children, onKeyDown, ...rest }: SegmentedControlProps): react.JSX.Element;
|
|
517
|
+
declare namespace SegmentedControl {
|
|
518
|
+
var displayName: string;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
interface SegmentedControlItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
522
|
+
ref?: Ref<HTMLButtonElement>;
|
|
523
|
+
selected?: boolean;
|
|
524
|
+
}
|
|
525
|
+
declare function SegmentedControlItem({ ref, selected, className, ...rest }: SegmentedControlItemProps): react.JSX.Element;
|
|
526
|
+
declare namespace SegmentedControlItem {
|
|
527
|
+
var displayName: string;
|
|
528
|
+
}
|
|
529
|
+
|
|
271
530
|
interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
272
531
|
ref?: Ref<HTMLSelectElement>;
|
|
273
532
|
header?: ReactNode;
|
|
@@ -278,6 +537,22 @@ declare namespace Select {
|
|
|
278
537
|
var displayName: string;
|
|
279
538
|
}
|
|
280
539
|
|
|
540
|
+
interface SheetProps {
|
|
541
|
+
ref?: Ref<HTMLDivElement>;
|
|
542
|
+
open: boolean;
|
|
543
|
+
onClose: () => void;
|
|
544
|
+
header?: ReactNode;
|
|
545
|
+
children?: ReactNode;
|
|
546
|
+
dismissable?: boolean;
|
|
547
|
+
closeLabel?: string;
|
|
548
|
+
className?: string;
|
|
549
|
+
container?: Element | DocumentFragment | null;
|
|
550
|
+
}
|
|
551
|
+
declare function Sheet({ ref, open, onClose, header, children, dismissable, closeLabel, className, container, }: SheetProps): react.JSX.Element | null;
|
|
552
|
+
declare namespace Sheet {
|
|
553
|
+
var displayName: string;
|
|
554
|
+
}
|
|
555
|
+
|
|
281
556
|
interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
282
557
|
ref?: Ref<HTMLDivElement>;
|
|
283
558
|
visible?: boolean;
|
|
@@ -288,6 +563,49 @@ declare namespace Skeleton {
|
|
|
288
563
|
var displayName: string;
|
|
289
564
|
}
|
|
290
565
|
|
|
566
|
+
interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange'> {
|
|
567
|
+
ref?: Ref<HTMLInputElement>;
|
|
568
|
+
value?: number;
|
|
569
|
+
defaultValue?: number;
|
|
570
|
+
onChange?: (value: number) => void;
|
|
571
|
+
min?: number;
|
|
572
|
+
max?: number;
|
|
573
|
+
step?: number;
|
|
574
|
+
before?: ReactNode;
|
|
575
|
+
after?: ReactNode;
|
|
576
|
+
}
|
|
577
|
+
declare function Slider({ ref, value: valueProp, defaultValue, onChange, min, max, step, before, after, disabled, className, ...rest }: SliderProps): react.JSX.Element;
|
|
578
|
+
declare namespace Slider {
|
|
579
|
+
var displayName: string;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
interface SnackbarOptions {
|
|
583
|
+
message: ReactNode;
|
|
584
|
+
description?: ReactNode;
|
|
585
|
+
before?: ReactNode;
|
|
586
|
+
action?: {
|
|
587
|
+
label: string;
|
|
588
|
+
onClick: () => void;
|
|
589
|
+
};
|
|
590
|
+
duration?: number;
|
|
591
|
+
}
|
|
592
|
+
interface SnackbarApi {
|
|
593
|
+
show: (options: SnackbarOptions) => string;
|
|
594
|
+
dismiss: (id: string) => void;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
interface SnackbarProviderProps {
|
|
598
|
+
children: ReactNode;
|
|
599
|
+
duration?: number;
|
|
600
|
+
max?: number;
|
|
601
|
+
}
|
|
602
|
+
declare function SnackbarProvider({ children, duration, max }: SnackbarProviderProps): react.JSX.Element;
|
|
603
|
+
declare namespace SnackbarProvider {
|
|
604
|
+
var displayName: string;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare function useSnackbar(): SnackbarApi;
|
|
608
|
+
|
|
291
609
|
type SpinnerSize = 's' | 'm' | 'l';
|
|
292
610
|
|
|
293
611
|
interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -299,6 +617,46 @@ declare namespace Spinner {
|
|
|
299
617
|
var displayName: string;
|
|
300
618
|
}
|
|
301
619
|
|
|
620
|
+
interface SpoilerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
621
|
+
ref?: Ref<HTMLSpanElement>;
|
|
622
|
+
revealed?: boolean;
|
|
623
|
+
defaultRevealed?: boolean;
|
|
624
|
+
onRevealedChange?: (revealed: boolean) => void;
|
|
625
|
+
revealOn?: 'click' | 'hover';
|
|
626
|
+
accentColor?: string;
|
|
627
|
+
density?: number;
|
|
628
|
+
fps?: number;
|
|
629
|
+
revealLabel?: string;
|
|
630
|
+
}
|
|
631
|
+
declare function Spoiler({ ref, revealed: revealedProp, defaultRevealed, onRevealedChange, revealOn, accentColor, density, fps, revealLabel, className, style, children, onClick, onKeyDown, onMouseEnter, onMouseLeave, ...rest }: SpoilerProps): react.JSX.Element;
|
|
632
|
+
declare namespace Spoiler {
|
|
633
|
+
var displayName: string;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
637
|
+
ref?: Ref<HTMLDivElement>;
|
|
638
|
+
value: number;
|
|
639
|
+
onChange: (value: number) => void;
|
|
640
|
+
min?: number;
|
|
641
|
+
max?: number;
|
|
642
|
+
step?: number;
|
|
643
|
+
disabled?: boolean;
|
|
644
|
+
}
|
|
645
|
+
declare function Stepper({ ref, value, onChange, min, max, step, disabled, className, ...rest }: StepperProps): react.JSX.Element;
|
|
646
|
+
declare namespace Stepper {
|
|
647
|
+
var displayName: string;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
interface StepsProps extends HTMLAttributes<HTMLDivElement> {
|
|
651
|
+
ref?: Ref<HTMLDivElement>;
|
|
652
|
+
count: number;
|
|
653
|
+
progress: number;
|
|
654
|
+
}
|
|
655
|
+
declare function Steps({ ref, count, progress, className, ...rest }: StepsProps): react.JSX.Element;
|
|
656
|
+
declare namespace Steps {
|
|
657
|
+
var displayName: string;
|
|
658
|
+
}
|
|
659
|
+
|
|
302
660
|
type SubheadlineLevel = '1' | '2';
|
|
303
661
|
|
|
304
662
|
interface SubheadlineProps extends TypographyProps {
|
|
@@ -372,6 +730,26 @@ declare namespace TguiProvider {
|
|
|
372
730
|
|
|
373
731
|
declare function useTgui(): TguiContextValue;
|
|
374
732
|
|
|
733
|
+
interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
|
|
734
|
+
ref?: Ref<HTMLOListElement>;
|
|
735
|
+
}
|
|
736
|
+
declare function Timeline({ ref, className, children, ...rest }: TimelineProps): react.JSX.Element;
|
|
737
|
+
declare namespace Timeline {
|
|
738
|
+
var displayName: string;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
interface TimelineItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'title'> {
|
|
742
|
+
ref?: Ref<HTMLLIElement>;
|
|
743
|
+
title: ReactNode;
|
|
744
|
+
description?: ReactNode;
|
|
745
|
+
time?: ReactNode;
|
|
746
|
+
active?: boolean;
|
|
747
|
+
}
|
|
748
|
+
declare function TimelineItem({ ref, title, description, time, active, className, ...rest }: TimelineItemProps): react.JSX.Element;
|
|
749
|
+
declare namespace TimelineItem {
|
|
750
|
+
var displayName: string;
|
|
751
|
+
}
|
|
752
|
+
|
|
375
753
|
type TitleLevel = '1' | '2' | '3';
|
|
376
754
|
|
|
377
755
|
interface TitleProps extends TypographyProps {
|
|
@@ -383,5 +761,20 @@ declare namespace Title {
|
|
|
383
761
|
var displayName: string;
|
|
384
762
|
}
|
|
385
763
|
|
|
386
|
-
|
|
387
|
-
|
|
764
|
+
type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
765
|
+
interface TooltipProps {
|
|
766
|
+
ref?: Ref<HTMLSpanElement>;
|
|
767
|
+
children: ReactNode;
|
|
768
|
+
content: ReactNode;
|
|
769
|
+
placement?: TooltipPlacement;
|
|
770
|
+
open?: boolean;
|
|
771
|
+
onOpenChange?: (open: boolean) => void;
|
|
772
|
+
className?: string;
|
|
773
|
+
}
|
|
774
|
+
declare function Tooltip({ ref, children, content, placement, open: openProp, onOpenChange, className, }: TooltipProps): react.JSX.Element;
|
|
775
|
+
declare namespace Tooltip {
|
|
776
|
+
var displayName: string;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export { Accordion, AccordionItem, Avatar, AvatarStack, Badge, Banner, Blockquote, Breadcrumbs, Button, Caption, Card, CardCell, Cell, Checkbox, Chip, CircularProgress, CompactPagination, Divider, FixedLayout, Headline, HorizontalScroll, IconButton, Image, InlineButtons, InlineButtonsItem, Input, LargeTitle, Link, List, Pagination, PinInput, Placeholder, Portal, Progress, Radio, Rating, SearchBar, Section, SectionFooter, SectionHeader, SegmentedControl, SegmentedControlItem, Select, Sheet, Skeleton, Slider, SnackbarProvider, Spinner, Spoiler, Stepper, Steps, Subheadline, Switch, TabBar, TabBarItem, Tappable, Text, Textarea, TguiProvider, Timeline, TimelineItem, Title, Tooltip, Typography, useSnackbar, useTgui };
|
|
780
|
+
export type { AccordionItemProps, AccordionProps, AvatarProps, AvatarSize, AvatarStackProps, BadgeMode, BadgeProps, BadgeType, BannerProps, BannerType, BlockquoteProps, BreadcrumbItem, BreadcrumbsProps, ButtonMode, ButtonProps, ButtonSize, CaptionProps, CardCellProps, CardProps, CardType, CellProps, CheckboxProps, ChipMode, ChipProps, CircularProgressProps, CircularProgressSize, CompactPaginationProps, DividerProps, FixedLayoutProps, HeadlineProps, HorizontalScrollProps, IconButtonMode, IconButtonProps, IconButtonSize, ImageProps, InlineButtonsItemProps, InlineButtonsMode, InlineButtonsProps, InputProps, InputStatus, LargeTitleProps, LinkProps, ListProps, PaginationProps, PinInputProps, PlaceholderProps, PortalProps, ProgressProps, RadioProps, RatingProps, SearchBarProps, SectionFooterProps, SectionHeaderProps, SectionProps, SegmentedControlItemProps, SegmentedControlProps, SelectProps, SheetProps, SkeletonProps, SliderProps, SnackbarApi, SnackbarOptions, SnackbarProviderProps, SpinnerProps, SpinnerSize, SpoilerProps, StepperProps, StepsProps, SubheadlineProps, SwitchProps, TabBarItemProps, TabBarProps, TappableProps, TextProps, TextareaProps, TextareaStatus, TguiProviderProps, TimelineItemProps, TimelineProps, TitleProps, TooltipPlacement, TooltipProps, TypographyProps };
|