@ark-ui/react 0.0.0-rc-20221106094212

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.
@@ -0,0 +1,612 @@
1
+ import * as _polymorphic_factory_react from '@polymorphic-factory/react';
2
+ import { HTMLPolymorphicProps } from '@polymorphic-factory/react';
3
+ import * as react from 'react';
4
+ import { ElementType, PropsWithChildren, ReactElement, ReactNode } from 'react';
5
+ import * as accordion from '@zag-js/accordion';
6
+ import * as checkbox from '@zag-js/checkbox';
7
+ import * as dialog from '@zag-js/dialog';
8
+ import { PortalProps } from '@reach/portal';
9
+ import * as editable from '@zag-js/editable';
10
+ import * as numberInput from '@zag-js/number-input';
11
+ import * as pagination from '@zag-js/pagination';
12
+ import * as pinInput from '@zag-js/pin-input';
13
+ import * as popover from '@zag-js/popover';
14
+ import * as pressable from '@zag-js/pressable';
15
+ import * as radio from '@zag-js/radio';
16
+ import { connect } from '@zag-js/radio';
17
+ import * as rating from '@zag-js/rating';
18
+ import { connect as connect$1 } from '@zag-js/rating';
19
+ import * as tabs from '@zag-js/tabs';
20
+ import { connect as connect$2 } from '@zag-js/tabs';
21
+ import * as tooltip from '@zag-js/tooltip';
22
+
23
+ declare type HTMLAtlasProps<T extends ElementType> = HTMLPolymorphicProps<T>;
24
+
25
+ /**
26
+ * Assign property types from right to left.
27
+ * Handy for overriding e.g. `onChange` from an HTMLElement with your own type
28
+ */
29
+ declare type Assign<Target, Source> = Omit<Target, keyof Source> & Source;
30
+
31
+ declare type UseAccordionProps = Omit<accordion.Context, 'id'> & {
32
+ defaultValue?: accordion.Context['value'];
33
+ };
34
+ declare type UseAccordionReturn = ReturnType<typeof useAccordion>;
35
+ declare const useAccordion: (props: UseAccordionProps) => {
36
+ value: string | string[] | null;
37
+ setValue(value: string | string[]): void;
38
+ rootProps: react.HTMLAttributes<HTMLElement>;
39
+ getItemState(props: {
40
+ value: string;
41
+ disabled?: boolean | undefined;
42
+ }): {
43
+ isOpen: boolean;
44
+ isFocused: boolean;
45
+ isDisabled: boolean;
46
+ };
47
+ getItemProps(props: {
48
+ value: string;
49
+ disabled?: boolean | undefined;
50
+ }): react.HTMLAttributes<HTMLElement>;
51
+ getContentProps(props: {
52
+ value: string;
53
+ disabled?: boolean | undefined;
54
+ }): react.HTMLAttributes<HTMLElement>;
55
+ getTriggerProps(props: {
56
+ value: string;
57
+ disabled?: boolean | undefined;
58
+ }): react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
59
+ };
60
+
61
+ declare type AccordionProps = Assign<HTMLAtlasProps<'div'>, UseAccordionProps>;
62
+ declare const Accordion: _polymorphic_factory_react.ComponentWithAs<"div", AccordionProps>;
63
+
64
+ declare type AccordionButtonProps = HTMLAtlasProps<'button'>;
65
+ declare const AccordionButton: _polymorphic_factory_react.ComponentWithAs<"button", AccordionButtonProps>;
66
+
67
+ declare type AccordionIconProps = HTMLAtlasProps<'div'>;
68
+ declare const AccordionIcon: _polymorphic_factory_react.ComponentWithAs<"div", AccordionIconProps>;
69
+
70
+ declare type AccordionContext = UseAccordionReturn;
71
+
72
+ declare type AccordionItemProps = HTMLAtlasProps<'div'> & {
73
+ value: string;
74
+ disabled?: boolean;
75
+ children?: React.ReactNode | ((props: ReturnType<AccordionContext['getItemState']>) => React.ReactNode);
76
+ };
77
+ declare const AccordionItem: _polymorphic_factory_react.ComponentWithAs<"div", AccordionItemProps>;
78
+
79
+ declare type AccordionItemContext = ReturnType<AccordionContext['getItemState']> & {
80
+ value: string;
81
+ disabled?: boolean;
82
+ };
83
+ declare const useAccordionItemContext: () => AccordionItemContext;
84
+
85
+ declare type AccordionPanelProps = HTMLAtlasProps<'div'>;
86
+ declare const AccordionPanel: _polymorphic_factory_react.ComponentWithAs<"div", AccordionPanelProps>;
87
+
88
+ declare type UseCheckboxProps = Omit<checkbox.Context, 'id'> & {
89
+ defaultValue?: checkbox.Context['value'];
90
+ };
91
+ declare type UseCheckboxReturn = ReturnType<typeof useCheckbox>;
92
+ declare const useCheckbox: (props: UseCheckboxProps) => {
93
+ isChecked: boolean;
94
+ isDisabled: boolean | undefined;
95
+ isIndeterminate: boolean | undefined;
96
+ isFocused: boolean;
97
+ isReadOnly: boolean | undefined;
98
+ view: string;
99
+ setChecked(checked: boolean): void;
100
+ setIndeterminate(indeterminate: boolean): void;
101
+ rootProps: react.HTMLAttributes<HTMLElement>;
102
+ labelProps: react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
103
+ controlProps: react.HTMLAttributes<HTMLElement>;
104
+ inputProps: react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
105
+ };
106
+
107
+ declare type CheckboxProps = Assign<HTMLAtlasProps<'label'>, UseCheckboxProps>;
108
+ declare const Checkbox: _polymorphic_factory_react.ComponentWithAs<"label", CheckboxProps>;
109
+
110
+ declare type CheckboxControlProps = HTMLAtlasProps<'div'>;
111
+ declare const CheckboxControl: _polymorphic_factory_react.ComponentWithAs<"div", CheckboxControlProps>;
112
+
113
+ declare type CheckboxInputProps = HTMLAtlasProps<'input'>;
114
+ declare const CheckboxInput: _polymorphic_factory_react.ComponentWithAs<"input", CheckboxInputProps>;
115
+
116
+ declare type CheckboxLabelProps = HTMLAtlasProps<'label'>;
117
+ declare const CheckboxLabel: _polymorphic_factory_react.ComponentWithAs<"label", CheckboxLabelProps>;
118
+
119
+ declare type UseDialogProps = Omit<dialog.Context, 'id'>;
120
+
121
+ declare type DialogProps = PropsWithChildren<UseDialogProps>;
122
+ declare const Dialog: (props: DialogProps) => JSX.Element;
123
+
124
+ declare type DialogBackdropProps = HTMLAtlasProps<'div'>;
125
+ declare const DialogBackdrop: _polymorphic_factory_react.ComponentWithAs<"div", DialogBackdropProps>;
126
+
127
+ declare type DialogCloseButtonProps = HTMLAtlasProps<'button'>;
128
+ declare const DialogCloseButton: _polymorphic_factory_react.ComponentWithAs<"button", DialogCloseButtonProps>;
129
+
130
+ declare type DialogContentProps = HTMLAtlasProps<'div'>;
131
+ declare const DialogContent: _polymorphic_factory_react.ComponentWithAs<"div", DialogContentProps>;
132
+
133
+ declare type DialogDescriptionProps = HTMLAtlasProps<'p'>;
134
+ declare const DialogDescription: _polymorphic_factory_react.ComponentWithAs<"p", DialogDescriptionProps>;
135
+
136
+ declare type DialogPortalProps = PortalProps;
137
+ declare const DialogPortal: (props: DialogPortalProps) => JSX.Element | null;
138
+
139
+ declare type DialogTitleProps = HTMLAtlasProps<'h2'>;
140
+ declare const DialogTitle: _polymorphic_factory_react.ComponentWithAs<"h2", DialogTitleProps>;
141
+
142
+ declare type DialogTriggerProps = {
143
+ children: ReactElement | string | number;
144
+ };
145
+ declare const DialogTrigger: (props: DialogTriggerProps) => JSX.Element;
146
+
147
+ declare type DialogUnderlayProps = HTMLAtlasProps<'div'>;
148
+ declare const DialogUnderlay: _polymorphic_factory_react.ComponentWithAs<"div", DialogUnderlayProps>;
149
+
150
+ declare type UseEditableProps = Omit<editable.Context, 'id'> & {
151
+ defaultValue?: editable.Context['value'];
152
+ };
153
+ declare type UseEditableReturn = ReturnType<typeof useEditable>;
154
+ declare const useEditable: (props: UseEditableProps) => {
155
+ isEditing: boolean;
156
+ isValueEmpty: boolean;
157
+ value: string;
158
+ setValue(value: string): void;
159
+ clearValue(): void;
160
+ edit(): void;
161
+ cancel(): void;
162
+ submit(): void;
163
+ rootProps: react.HTMLAttributes<HTMLElement>;
164
+ areaProps: react.HTMLAttributes<HTMLElement>;
165
+ labelProps: react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
166
+ inputProps: react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
167
+ previewProps: react.HTMLAttributes<HTMLElement>;
168
+ editButtonProps: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
169
+ controlGroupProps: react.HTMLAttributes<HTMLElement>;
170
+ submitButtonProps: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
171
+ cancelButtonProps: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
172
+ };
173
+
174
+ declare type EditableProps = Assign<HTMLAtlasProps<'div'>, UseEditableProps>;
175
+ declare const Editable: _polymorphic_factory_react.ComponentWithAs<"div", EditableProps>;
176
+
177
+ declare type EditableAreaProps = HTMLAtlasProps<'div'>;
178
+ declare const EditableArea: _polymorphic_factory_react.ComponentWithAs<"div", EditableAreaProps>;
179
+
180
+ declare type EditableCancelButtonProps = HTMLAtlasProps<'button'>;
181
+ declare const EditableCancelButton: _polymorphic_factory_react.ComponentWithAs<"button", EditableCancelButtonProps>;
182
+
183
+ declare type EditableContext = UseEditableReturn;
184
+
185
+ declare type EditableControlsProps = Omit<HTMLAtlasProps<'div'>, 'children'> & {
186
+ children: (context: EditableContext) => ReactNode;
187
+ };
188
+ declare const EditableControls: _polymorphic_factory_react.ComponentWithAs<"div", EditableControlsProps>;
189
+
190
+ declare type EditableEditButtonProps = HTMLAtlasProps<'button'>;
191
+ declare const EditableEditButton: _polymorphic_factory_react.ComponentWithAs<"button", EditableEditButtonProps>;
192
+
193
+ declare type EditableInputProps = HTMLAtlasProps<'input'>;
194
+ declare const EditableInput: _polymorphic_factory_react.ComponentWithAs<"input", EditableInputProps>;
195
+
196
+ declare type EditablePreviewProps = HTMLAtlasProps<'span'>;
197
+ declare const EditablePreview: _polymorphic_factory_react.ComponentWithAs<"span", EditablePreviewProps>;
198
+
199
+ declare type EditableSubmitButtonProps = HTMLAtlasProps<'button'>;
200
+ declare const EditableSubmitButton: _polymorphic_factory_react.ComponentWithAs<"button", EditableSubmitButtonProps>;
201
+
202
+ declare type UseNumberInputProps = Omit<numberInput.Context, 'id'> & {
203
+ defaultValue?: numberInput.Context['value'];
204
+ };
205
+
206
+ declare type NumberInputProps = Assign<HTMLAtlasProps<'div'>, UseNumberInputProps>;
207
+ declare const NumberInput: _polymorphic_factory_react.ComponentWithAs<"div", NumberInputProps>;
208
+
209
+ declare type NumberInputDecrementButtonProps = HTMLAtlasProps<'button'>;
210
+ declare const NumberInputDecrementButton: _polymorphic_factory_react.ComponentWithAs<"button", NumberInputDecrementButtonProps>;
211
+
212
+ declare type NumberInputFieldProps = HTMLAtlasProps<'input'>;
213
+ declare const NumberInputField: _polymorphic_factory_react.ComponentWithAs<"input", NumberInputFieldProps>;
214
+
215
+ declare type NumberInputIncrementButtonProps = HTMLAtlasProps<'button'>;
216
+ declare const NumberInputIncrementButton: _polymorphic_factory_react.ComponentWithAs<"button", NumberInputIncrementButtonProps>;
217
+
218
+ declare type UsePaginationProps = Omit<pagination.Context, 'id'>;
219
+ declare const usePagination: (props: UsePaginationProps) => {
220
+ page: number;
221
+ totalPages: number;
222
+ pages: ({
223
+ type: "ellipsis";
224
+ } | {
225
+ type: "page";
226
+ value: number;
227
+ })[];
228
+ previousPage: number | null;
229
+ nextPage: number | null;
230
+ pageRange: {
231
+ start: number;
232
+ end: number;
233
+ };
234
+ isFirstPage: boolean;
235
+ isLastPage: boolean;
236
+ setCount(count: number): void;
237
+ setPageSize(size: number): void;
238
+ setPage(page: number): void;
239
+ rootProps: react.HTMLAttributes<HTMLElement>;
240
+ getEllipsisProps(props: {
241
+ index: number;
242
+ }): react.HTMLAttributes<HTMLElement>;
243
+ getItemProps(page: {
244
+ type: "page";
245
+ value: number;
246
+ }): react.HTMLAttributes<HTMLElement>;
247
+ prevItemProps: react.HTMLAttributes<HTMLElement>;
248
+ nextItemProps: react.HTMLAttributes<HTMLElement>;
249
+ };
250
+ declare type UsePaginationReturn = ReturnType<typeof usePagination>;
251
+
252
+ declare type PaginationProps = Assign<Assign<HTMLAtlasProps<'nav'>, UsePaginationProps>, {
253
+ children: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
254
+ }>;
255
+ declare const Pagination: _polymorphic_factory_react.ComponentWithAs<"nav", PaginationProps>;
256
+
257
+ declare type PaginationContext = UsePaginationReturn;
258
+ declare const PaginationProvider: react.Provider<{
259
+ page: number;
260
+ totalPages: number;
261
+ pages: ({
262
+ type: "ellipsis";
263
+ } | {
264
+ type: "page";
265
+ value: number;
266
+ })[];
267
+ previousPage: number | null;
268
+ nextPage: number | null;
269
+ pageRange: {
270
+ start: number;
271
+ end: number;
272
+ };
273
+ isFirstPage: boolean;
274
+ isLastPage: boolean;
275
+ setCount(count: number): void;
276
+ setPageSize(size: number): void;
277
+ setPage(page: number): void;
278
+ rootProps: react.HTMLAttributes<HTMLElement>;
279
+ getEllipsisProps(props: {
280
+ index: number;
281
+ }): react.HTMLAttributes<HTMLElement>;
282
+ getItemProps(page: {
283
+ type: "page";
284
+ value: number;
285
+ }): react.HTMLAttributes<HTMLElement>;
286
+ prevItemProps: react.HTMLAttributes<HTMLElement>;
287
+ nextItemProps: react.HTMLAttributes<HTMLElement>;
288
+ }>;
289
+ declare const usePaginationContext: () => {
290
+ page: number;
291
+ totalPages: number;
292
+ pages: ({
293
+ type: "ellipsis";
294
+ } | {
295
+ type: "page";
296
+ value: number;
297
+ })[];
298
+ previousPage: number | null;
299
+ nextPage: number | null;
300
+ pageRange: {
301
+ start: number;
302
+ end: number;
303
+ };
304
+ isFirstPage: boolean;
305
+ isLastPage: boolean;
306
+ setCount(count: number): void;
307
+ setPageSize(size: number): void;
308
+ setPage(page: number): void;
309
+ rootProps: react.HTMLAttributes<HTMLElement>;
310
+ getEllipsisProps(props: {
311
+ index: number;
312
+ }): react.HTMLAttributes<HTMLElement>;
313
+ getItemProps(page: {
314
+ type: "page";
315
+ value: number;
316
+ }): react.HTMLAttributes<HTMLElement>;
317
+ prevItemProps: react.HTMLAttributes<HTMLElement>;
318
+ nextItemProps: react.HTMLAttributes<HTMLElement>;
319
+ };
320
+
321
+ declare type PaginationEllipsisProps = Assign<HTMLAtlasProps<'span'>, {
322
+ index: number;
323
+ }>;
324
+ declare const PaginationEllipsis: _polymorphic_factory_react.ComponentWithAs<"span", PaginationEllipsisProps>;
325
+
326
+ declare type PaginationItemProps = Assign<HTMLAtlasProps<'a'>, {
327
+ value: number;
328
+ }>;
329
+ declare const PaginationItem: _polymorphic_factory_react.ComponentWithAs<"a", PaginationItemProps>;
330
+
331
+ declare type PaginationNextItemProps = HTMLAtlasProps<'a'>;
332
+ declare const PaginationNextItem: _polymorphic_factory_react.ComponentWithAs<"a", PaginationNextItemProps>;
333
+
334
+ declare type PaginationPrevItemProps = HTMLAtlasProps<'a'>;
335
+ declare const PaginationPrevItem: _polymorphic_factory_react.ComponentWithAs<"a", PaginationPrevItemProps>;
336
+
337
+ declare type UsePinInputProps = Omit<pinInput.Context, 'id'> & {
338
+ defaultValue?: pinInput.Context['value'];
339
+ };
340
+ declare const usePinInput: (props: UsePinInputProps) => {
341
+ value: string[];
342
+ valueAsString: string;
343
+ isValueComplete: boolean;
344
+ setValue(value: string[]): void;
345
+ clearValue(): void;
346
+ setValueAtIndex(index: number, value: string): void;
347
+ focus: () => void;
348
+ rootProps: react.HTMLAttributes<HTMLElement>;
349
+ labelProps: react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
350
+ hiddenInputProps: react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
351
+ getInputProps({ index }: {
352
+ index: number;
353
+ }): react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
354
+ };
355
+ declare type UsePinInputReturn = ReturnType<typeof usePinInput>;
356
+
357
+ declare type PinInputProps = Assign<HTMLAtlasProps<'div'>, UsePinInputProps>;
358
+ declare const PinInput: _polymorphic_factory_react.ComponentWithAs<"div", PinInputProps>;
359
+
360
+ declare type PinInputFieldProps = {
361
+ index: number;
362
+ } & HTMLAtlasProps<'input'>;
363
+ declare const PinInputField: _polymorphic_factory_react.ComponentWithAs<"input", PinInputFieldProps>;
364
+
365
+ declare type UsePopoverProps = Omit<popover.Context, 'id'>;
366
+ declare const usePopover: (props: UsePopoverProps) => {
367
+ portalled: boolean;
368
+ isOpen: boolean;
369
+ open(): void;
370
+ close(): void;
371
+ arrowProps: react.HTMLAttributes<HTMLElement>;
372
+ innerArrowProps: react.HTMLAttributes<HTMLElement>;
373
+ anchorProps: react.HTMLAttributes<HTMLElement>;
374
+ triggerProps: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
375
+ positionerProps: react.HTMLAttributes<HTMLElement>;
376
+ contentProps: react.HTMLAttributes<HTMLElement>;
377
+ titleProps: react.HTMLAttributes<HTMLElement>;
378
+ descriptionProps: react.HTMLAttributes<HTMLElement>;
379
+ closeButtonProps: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
380
+ };
381
+ declare type UsePopoverReturn = ReturnType<typeof usePopover>;
382
+
383
+ declare type PopoverProps = PropsWithChildren<UsePopoverProps>;
384
+ declare const Popover: (props: PopoverProps) => JSX.Element;
385
+
386
+ declare type PopoverArrowProps = HTMLAtlasProps<'div'>;
387
+ declare const PopoverArrow: _polymorphic_factory_react.ComponentWithAs<"div", PopoverArrowProps>;
388
+
389
+ declare type PopoverCloseButtonProps = HTMLAtlasProps<'button'>;
390
+ declare const PopoverCloseButton: _polymorphic_factory_react.ComponentWithAs<"button", PopoverCloseButtonProps>;
391
+
392
+ declare type PopoverContentProps = HTMLAtlasProps<'div'>;
393
+ declare const PopoverContent: _polymorphic_factory_react.ComponentWithAs<"div", PopoverContentProps>;
394
+
395
+ declare type PopoverDescriptionProps = HTMLAtlasProps<'div'>;
396
+ declare const PopoverDescription: _polymorphic_factory_react.ComponentWithAs<"div", PopoverDescriptionProps>;
397
+
398
+ declare type PopoverInnerArrowProps = HTMLAtlasProps<'div'>;
399
+ declare const PopoverInnerArrow: _polymorphic_factory_react.ComponentWithAs<"div", PopoverInnerArrowProps>;
400
+
401
+ declare type PopoverPositionerProps = HTMLAtlasProps<'div'>;
402
+ declare const PopoverPositioner: _polymorphic_factory_react.ComponentWithAs<"div", PopoverPositionerProps>;
403
+
404
+ declare type PopoverTitleProps = HTMLAtlasProps<'div'>;
405
+ declare const PopoverTitle: _polymorphic_factory_react.ComponentWithAs<"div", PopoverTitleProps>;
406
+
407
+ declare type PopoverTriggerProps = {
408
+ children: ReactElement | string | number;
409
+ };
410
+ declare const PopoverTrigger: (props: PopoverTriggerProps) => JSX.Element;
411
+
412
+ declare type UsePressableProps = Omit<pressable.Context, 'id'>;
413
+ declare type UsePressableReturn = ReturnType<typeof usePressable>;
414
+ declare const usePressable: (props: UsePressableProps) => {
415
+ isPressed: boolean;
416
+ pressableProps: react.HTMLAttributes<HTMLElement>;
417
+ };
418
+
419
+ declare type PressableProps = Assign<HTMLAtlasProps<'button'>, UsePressableProps>;
420
+ declare const Pressable: _polymorphic_factory_react.ComponentWithAs<"button", PressableProps>;
421
+
422
+ declare type RadioContext = Parameters<ReturnType<typeof connect>['getItemProps']>[0];
423
+
424
+ declare type RadioProps = Omit<HTMLAtlasProps<'label'>, keyof RadioContext> & RadioContext;
425
+ declare const Radio: _polymorphic_factory_react.ComponentWithAs<"label", RadioProps>;
426
+
427
+ declare type RadioControlProps = HTMLAtlasProps<'div'>;
428
+ declare const RadioControl: _polymorphic_factory_react.ComponentWithAs<"div", RadioControlProps>;
429
+
430
+ declare type UseRadioGroupProps = Omit<radio.Context, 'id'> & {
431
+ defaultValue?: radio.Context['value'];
432
+ };
433
+ declare type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
434
+ declare const useRadioGroup: (props: UseRadioGroupProps) => {
435
+ value: string | null;
436
+ setValue(value: string): void;
437
+ focus: () => void;
438
+ blur(): void;
439
+ rootProps: react.HTMLAttributes<HTMLElement>;
440
+ labelProps: react.HTMLAttributes<HTMLElement>;
441
+ getItemProps(props: {
442
+ value: string;
443
+ disabled?: boolean | undefined;
444
+ readonly?: boolean | undefined;
445
+ invalid?: boolean | undefined;
446
+ }): react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
447
+ getItemLabelProps(props: {
448
+ value: string;
449
+ disabled?: boolean | undefined;
450
+ readonly?: boolean | undefined;
451
+ invalid?: boolean | undefined;
452
+ }): react.HTMLAttributes<HTMLElement>;
453
+ getItemControlProps(props: {
454
+ value: string;
455
+ disabled?: boolean | undefined;
456
+ readonly?: boolean | undefined;
457
+ invalid?: boolean | undefined;
458
+ }): react.HTMLAttributes<HTMLElement>;
459
+ getItemInputProps(props: {
460
+ value: string;
461
+ disabled?: boolean | undefined;
462
+ readonly?: boolean | undefined;
463
+ invalid?: boolean | undefined;
464
+ } & {
465
+ focusable?: boolean | undefined;
466
+ required?: boolean | undefined;
467
+ }): react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
468
+ };
469
+
470
+ declare type RadioGroupProps = Assign<HTMLAtlasProps<'div'>, UseRadioGroupProps>;
471
+ declare const RadioGroup: _polymorphic_factory_react.ComponentWithAs<"div", UseRadioGroupProps>;
472
+
473
+ declare type RadioGroupLabelProps = HTMLAtlasProps<'label'>;
474
+ declare const RadioGroupLabel: _polymorphic_factory_react.ComponentWithAs<"label", RadioGroupLabelProps>;
475
+
476
+ declare type RadioInputProps = HTMLAtlasProps<'input'>;
477
+ declare const RadioInput: _polymorphic_factory_react.ComponentWithAs<"input", RadioInputProps>;
478
+
479
+ declare type RadioLabelProps = HTMLAtlasProps<'span'>;
480
+ declare const RadioLabel: _polymorphic_factory_react.ComponentWithAs<"span", RadioLabelProps>;
481
+
482
+ declare type UseRatingProps = Omit<rating.Context, 'id'> & {
483
+ defaultValue?: rating.Context['value'];
484
+ };
485
+ declare type UseRatingReturn = ReturnType<typeof useRating>;
486
+ declare const useRating: (props: UseRatingProps) => {
487
+ isHovering: boolean;
488
+ value: number;
489
+ hoveredValue: number;
490
+ size: number;
491
+ sizeArray: number[];
492
+ getRatingState(index: number): {
493
+ isEqual: boolean;
494
+ isValueEmpty: boolean;
495
+ isHighlighted: boolean;
496
+ isHalf: boolean;
497
+ isChecked: boolean;
498
+ };
499
+ rootProps: react.HTMLAttributes<HTMLElement>;
500
+ inputProps: react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
501
+ labelProps: react.HTMLAttributes<HTMLElement>;
502
+ itemGroupProps: react.HTMLAttributes<HTMLElement>;
503
+ getItemProps({ index }: {
504
+ index: number;
505
+ }): react.HTMLAttributes<HTMLElement>;
506
+ };
507
+
508
+ declare type RatingProps = Assign<HTMLAtlasProps<'input'>, UseRatingProps>;
509
+ declare const Rating: _polymorphic_factory_react.ComponentWithAs<"input", RatingProps>;
510
+
511
+ declare type RatingContext = UseRatingReturn;
512
+
513
+ declare type RatingGroupProps = Omit<HTMLAtlasProps<'div'>, 'children'> & {
514
+ children: ReactNode | ((context: RatingContext) => ReactNode);
515
+ renderIcon?: never;
516
+ };
517
+ declare const RatingGroup: _polymorphic_factory_react.ComponentWithAs<"div", RatingGroupProps>;
518
+
519
+ declare type RatingItemContext = ReturnType<ReturnType<typeof connect$1>['getRatingState']>;
520
+
521
+ declare type RenderIconFn = (state: RatingItemContext) => ReactNode;
522
+ declare type RatingItemProps = Omit<HTMLAtlasProps<'span'>, 'children'> & {
523
+ index: number;
524
+ children: ReactNode | RenderIconFn;
525
+ };
526
+ declare const RatingItem: _polymorphic_factory_react.ComponentWithAs<"span", RatingItemProps>;
527
+
528
+ declare type RatingLabelProps = HTMLAtlasProps<'label'>;
529
+ declare const RatingLabel: _polymorphic_factory_react.ComponentWithAs<"label", RatingLabelProps>;
530
+
531
+ declare type TabProps = Assign<HTMLAtlasProps<'button'>, Parameters<ReturnType<typeof connect$2>['getTriggerProps']>[0]>;
532
+ declare const Tab: _polymorphic_factory_react.ComponentWithAs<"button", TabProps>;
533
+
534
+ declare type TabIndicatorProps = HTMLAtlasProps<'div'>;
535
+ declare const TabIndicator: _polymorphic_factory_react.ComponentWithAs<"div", TabIndicatorProps>;
536
+
537
+ declare type TabListProps = HTMLAtlasProps<'div'>;
538
+ declare const TabList: _polymorphic_factory_react.ComponentWithAs<"div", TabListProps>;
539
+
540
+ declare type TabPanelProps = Assign<HTMLAtlasProps<'div'>, Parameters<ReturnType<typeof connect$2>['getContentProps']>[0]>;
541
+ declare const TabPanel: _polymorphic_factory_react.ComponentWithAs<"div", TabPanelProps>;
542
+
543
+ declare type TabPanelsProps = HTMLAtlasProps<'div'>;
544
+ declare const TabPanels: _polymorphic_factory_react.ComponentWithAs<"div", TabPanelsProps>;
545
+
546
+ declare type UseTabsProps = Omit<tabs.Context, 'id'>;
547
+ declare type UseTabsReturn = ReturnType<typeof useTabs>;
548
+ declare const useTabs: (props: UseTabsProps) => {
549
+ value: string | null;
550
+ focusedValue: string | null;
551
+ previousValues: string[];
552
+ setValue(value: string): void;
553
+ rootProps: react.HTMLAttributes<HTMLElement>;
554
+ triggerGroupProps: react.HTMLAttributes<HTMLElement>;
555
+ getTriggerProps(props: {
556
+ value: string;
557
+ disabled?: boolean | undefined;
558
+ }): react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
559
+ contentGroupProps: react.HTMLAttributes<HTMLElement>;
560
+ getContentProps({ value }: {
561
+ value: string;
562
+ }): react.HTMLAttributes<HTMLElement>;
563
+ getDeleteButtonProps({ value, disabled }: {
564
+ value: string;
565
+ disabled?: boolean | undefined;
566
+ }): react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
567
+ indicatorProps: react.HTMLAttributes<HTMLElement>;
568
+ };
569
+
570
+ declare type TabsProps = Assign<HTMLAtlasProps<'div'>, UseTabsProps>;
571
+ declare const Tabs: _polymorphic_factory_react.ComponentWithAs<"div", TabsProps>;
572
+
573
+ declare type UseTooltipProps = Omit<tooltip.Context, 'id'>;
574
+ declare const useTooltip: (props: UseTooltipProps) => {
575
+ isOpen: boolean;
576
+ open(): void;
577
+ close(): void;
578
+ getAnimationState(): {
579
+ enter: boolean;
580
+ exit: boolean;
581
+ };
582
+ triggerProps: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
583
+ arrowProps: react.HTMLAttributes<HTMLElement>;
584
+ innerArrowProps: react.HTMLAttributes<HTMLElement>;
585
+ positionerProps: react.HTMLAttributes<HTMLElement>;
586
+ contentProps: react.HTMLAttributes<HTMLElement>;
587
+ labelProps: react.HTMLAttributes<HTMLElement>;
588
+ createPortal(): HTMLElement;
589
+ };
590
+ declare type UseTooltipReturn = ReturnType<typeof useTooltip>;
591
+
592
+ declare type TooltipProps = PropsWithChildren<UseTooltipProps>;
593
+ declare const Tooltip: (props: TooltipProps) => JSX.Element;
594
+
595
+ declare type TooltipArrowProps = HTMLAtlasProps<'div'>;
596
+ declare const TooltipArrow: _polymorphic_factory_react.ComponentWithAs<"div", TooltipArrowProps>;
597
+
598
+ declare type TooltipContentProps = HTMLAtlasProps<'div'>;
599
+ declare const TooltipContent: _polymorphic_factory_react.ComponentWithAs<"div", TooltipContentProps>;
600
+
601
+ declare type TooltipInnerArrowProps = HTMLAtlasProps<'div'>;
602
+ declare const TooltipInnerArrow: _polymorphic_factory_react.ComponentWithAs<"div", TooltipInnerArrowProps>;
603
+
604
+ declare type TooltipPositionerProps = HTMLAtlasProps<'div'>;
605
+ declare const TooltipPositioner: _polymorphic_factory_react.ComponentWithAs<"div", TooltipPositionerProps>;
606
+
607
+ declare type TooltipTriggerProps = {
608
+ children: ReactElement | string | number;
609
+ };
610
+ declare const TooltipTrigger: (props: TooltipTriggerProps) => JSX.Element;
611
+
612
+ export { Accordion, AccordionButton, AccordionButtonProps, AccordionIcon, AccordionIconProps, AccordionItem, AccordionItemContext, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, Checkbox, CheckboxControl, CheckboxControlProps, CheckboxInput, CheckboxInputProps, CheckboxLabel, CheckboxLabelProps, CheckboxProps, Dialog, DialogBackdrop, DialogBackdropProps, DialogCloseButton, DialogCloseButtonProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogPortal, DialogPortalProps, DialogProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps, DialogUnderlay, DialogUnderlayProps, Editable, EditableArea, EditableAreaProps, EditableCancelButton, EditableCancelButtonProps, EditableControls, EditableControlsProps, EditableEditButton, EditableEditButtonProps, EditableInput, EditableInputProps, EditablePreview, EditablePreviewProps, EditableProps, EditableSubmitButton, EditableSubmitButtonProps, NumberInput, NumberInputDecrementButton, NumberInputDecrementButtonProps, NumberInputField, NumberInputFieldProps, NumberInputIncrementButton, NumberInputIncrementButtonProps, NumberInputProps, Pagination, PaginationContext, PaginationEllipsis, PaginationEllipsisProps, PaginationItem, PaginationItemProps, PaginationNextItem, PaginationNextItemProps, PaginationPrevItem, PaginationPrevItemProps, PaginationProps, PaginationProvider, PinInput, PinInputField, PinInputFieldProps, PinInputProps, Popover, PopoverArrow, PopoverArrowProps, PopoverCloseButton, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverDescription, PopoverDescriptionProps, PopoverInnerArrow, PopoverInnerArrowProps, PopoverPositioner, PopoverPositionerProps, PopoverProps, PopoverTitle, PopoverTitleProps, PopoverTrigger, PopoverTriggerProps, Pressable, PressableProps, Radio, RadioControl, RadioControlProps, RadioGroup, RadioGroupLabel, RadioGroupLabelProps, RadioGroupProps, RadioInput, RadioInputProps, RadioLabel, RadioLabelProps, RadioProps, Rating, RatingGroup, RatingGroupProps, RatingItem, RatingItemProps, RatingLabel, RatingLabelProps, RatingProps, RenderIconFn, Tab, TabIndicator, TabIndicatorProps, TabList, TabListProps, TabPanel, TabPanelProps, TabPanels, TabPanelsProps, TabProps, Tabs, TabsProps, Tooltip, TooltipArrow, TooltipArrowProps, TooltipContent, TooltipContentProps, TooltipInnerArrow, TooltipInnerArrowProps, TooltipPositioner, TooltipPositionerProps, TooltipProps, TooltipTrigger, TooltipTriggerProps, UseAccordionProps, UseAccordionReturn, UseCheckboxProps, UseCheckboxReturn, UseEditableProps, UseEditableReturn, UsePaginationProps, UsePinInputProps, UsePinInputReturn, UsePopoverProps, UsePopoverReturn, UsePressableProps, UsePressableReturn, UseRadioGroupProps, UseRadioGroupReturn, UseRatingProps, UseRatingReturn, UseTabsProps, UseTabsReturn, UseTooltipProps, UseTooltipReturn, useAccordion, useAccordionItemContext, useCheckbox, useEditable, usePagination, usePaginationContext, usePinInput, usePopover, usePressable, useRadioGroup, useRating, useTabs, useTooltip };