@boxcustodia/library 2.0.0-alpha.12 → 2.0.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -138
- package/dist/index.d.ts +1087 -720
- package/dist/index.es.js +7011 -56097
- package/dist/theme.css +1 -1
- package/package.json +34 -26
- package/src/__doc__/Examples.tsx +1 -1
- package/src/__doc__/Intro.mdx +3 -3
- package/src/__doc__/Tabs.mdx +112 -0
- package/src/__doc__/V2.mdx +1246 -0
- package/src/components/accordion/accordion.stories.tsx +143 -0
- package/src/components/accordion/accordion.tsx +135 -0
- package/src/components/accordion/index.ts +1 -0
- package/src/components/alert/alert.stories.tsx +24 -4
- package/src/components/alert/alert.tsx +17 -9
- package/src/components/alert-dialog/alert-dialog.stories.tsx +24 -0
- package/src/components/alert-dialog/alert-dialog.test.tsx +1 -1
- package/src/components/alert-dialog/alert-dialog.tsx +58 -10
- package/src/components/auto-complete/auto-complete.stories.tsx +616 -200
- package/src/components/auto-complete/auto-complete.tsx +420 -68
- package/src/components/auto-complete/index.ts +0 -1
- package/src/components/avatar/avatar.stories.tsx +162 -21
- package/src/components/avatar/avatar.tsx +79 -20
- package/src/components/button/button.stories.tsx +219 -294
- package/src/components/button/button.test.tsx +10 -17
- package/src/components/button/button.tsx +78 -19
- package/src/components/button/components/base-button.tsx +30 -53
- package/src/components/button/index.ts +0 -1
- package/src/components/calendar/calendar.stories.tsx +1 -1
- package/src/components/calendar/calendar.tsx +4 -4
- package/src/components/card/card.stories.tsx +141 -69
- package/src/components/card/card.tsx +155 -54
- package/src/components/center/center.stories.tsx +22 -39
- package/src/components/checkbox/checkbox.stories.tsx +25 -5
- package/src/components/checkbox/checkbox.tsx +76 -15
- package/src/components/checkbox-group/checkbox-group.stories.tsx +116 -28
- package/src/components/checkbox-group/checkbox-group.tsx +84 -3
- package/src/components/combobox/combobox.stories.tsx +33 -23
- package/src/components/combobox/combobox.tsx +99 -77
- package/src/components/date-picker/date-input.stories.tsx +14 -6
- package/src/components/date-picker/date-input.tsx +2 -2
- package/src/components/date-picker/date-picker.model.ts +13 -4
- package/src/components/date-picker/date-picker.stories.tsx +38 -12
- package/src/components/date-picker/date-picker.tsx +28 -14
- package/src/components/dialog/dialog.stories.tsx +18 -0
- package/src/components/dialog/dialog.test.tsx +1 -1
- package/src/components/dialog/dialog.tsx +51 -20
- package/src/components/divider/divider.stories.tsx +126 -51
- package/src/components/divider/divider.tsx +16 -16
- package/src/components/dropzone/dropzone.stories.tsx +71 -90
- package/src/components/dropzone/dropzone.tsx +383 -105
- package/src/components/dropzone/index.ts +0 -1
- package/src/components/empty/empty.stories.tsx +165 -0
- package/src/components/empty/empty.tsx +156 -0
- package/src/components/empty/index.ts +1 -0
- package/src/components/field/field.stories.tsx +227 -4
- package/src/components/field/field.tsx +77 -42
- package/src/components/form/form.stories.tsx +320 -197
- package/src/components/form/form.tsx +3 -23
- package/src/components/index.ts +2 -6
- package/src/components/input/input.stories.tsx +5 -5
- package/src/components/input/input.tsx +4 -4
- package/src/components/kbd/kbd.stories.tsx +1 -0
- package/src/components/label/label.stories.tsx +16 -0
- package/src/components/label/label.tsx +13 -2
- package/src/components/loader/loader.stories.tsx +7 -5
- package/src/components/loader/loader.tsx +8 -3
- package/src/components/menu/menu-primitives.tsx +207 -196
- package/src/components/menu/menu.stories.tsx +276 -146
- package/src/components/menu/menu.tsx +146 -54
- package/src/components/number-input/number-input.stories.tsx +27 -4
- package/src/components/number-input/number-input.test.tsx +2 -2
- package/src/components/number-input/number-input.tsx +31 -33
- package/src/components/otp/index.ts +1 -0
- package/src/components/otp/otp.stories.tsx +209 -0
- package/src/components/otp/otp.tsx +100 -0
- package/src/components/pagination/index.ts +1 -0
- package/src/components/pagination/pagination.model.ts +2 -0
- package/src/components/pagination/pagination.stories.tsx +154 -59
- package/src/components/pagination/pagination.test.tsx +122 -57
- package/src/components/pagination/pagination.tsx +575 -77
- package/src/components/password/password.stories.tsx +18 -3
- package/src/components/password/password.tsx +29 -9
- package/src/components/popover/popover.stories.tsx +26 -5
- package/src/components/popover/popover.tsx +15 -23
- package/src/components/progress/progress.stories.tsx +1 -0
- package/src/components/radio-group/index.ts +1 -0
- package/src/components/radio-group/radio-group.stories.tsx +251 -0
- package/src/components/radio-group/radio-group.tsx +212 -0
- package/src/components/scroll-area/scroll-area.stories.tsx +1 -0
- package/src/components/select/select.stories.tsx +118 -19
- package/src/components/select/select.tsx +67 -62
- package/src/components/skeleton/skeleton.stories.tsx +1 -0
- package/src/components/stack/stack.stories.tsx +179 -89
- package/src/components/stack/stack.tsx +2 -2
- package/src/components/stepper/index.ts +1 -1
- package/src/components/stepper/stepper.stories.tsx +767 -83
- package/src/components/stepper/stepper.test.tsx +18 -18
- package/src/components/stepper/stepper.tsx +554 -0
- package/src/components/switch/switch.stories.tsx +15 -1
- package/src/components/switch/switch.tsx +17 -4
- package/src/components/table/index.ts +0 -2
- package/src/components/table/table.stories.tsx +131 -18
- package/src/components/table/table.test.tsx +1 -1
- package/src/components/table/table.tsx +183 -77
- package/src/components/tabs/tabs.stories.tsx +373 -155
- package/src/components/tabs/tabs.test.tsx +12 -12
- package/src/components/tabs/tabs.tsx +72 -149
- package/src/components/tag/index.ts +0 -1
- package/src/components/tag/tag.stories.tsx +155 -120
- package/src/components/tag/tag.tsx +47 -95
- package/src/components/textarea/textarea.stories.tsx +8 -22
- package/src/components/textarea/textarea.tsx +17 -79
- package/src/components/timeline/timeline.stories.tsx +323 -42
- package/src/components/timeline/timeline.tsx +359 -132
- package/src/components/toast/toast.stories.tsx +1 -0
- package/src/components/tooltip/tooltip.tsx +11 -9
- package/src/components/tree/index.ts +0 -1
- package/src/components/tree/tree.stories.tsx +365 -408
- package/src/components/tree/tree.test.tsx +163 -0
- package/src/components/tree/tree.tsx +212 -36
- package/src/hooks/useAsync/__doc__/useAsync.stories.tsx +5 -5
- package/src/hooks/useClipboard/__doc__/useClipboard.stories.tsx +1 -3
- package/src/hooks/useDebounceCallback/__doc__/useDebouncedCallback.stories.tsx +6 -6
- package/src/hooks/useDocumentTitle/__doc__/useDocumentTitle.stories.tsx +1 -1
- package/src/hooks/useEventListener/__test__/useEventListener.test.tsx +1 -1
- package/src/hooks/useLocalStorage/__doc__/useLocalStorage.stories.tsx +1 -1
- package/src/hooks/usePagination/usePagination.tsx +36 -24
- package/src/styles/theme.css +1 -1
- package/src/utils/form.tsx +67 -37
- package/src/utils/index.ts +1 -1
- package/src/__doc__/Migration.mdx +0 -475
- package/src/components/auto-complete/auto-complete-primitives.tsx +0 -155
- package/src/components/background-image/background-image.stories.tsx +0 -21
- package/src/components/background-image/background-image.test.tsx +0 -29
- package/src/components/background-image/background-image.tsx +0 -23
- package/src/components/background-image/index.ts +0 -1
- package/src/components/button/button.variants.ts +0 -44
- package/src/components/button/components/loader-overlay.tsx +0 -21
- package/src/components/button/components/loading-icon.tsx +0 -47
- package/src/components/dropzone/upload-primitives.tsx +0 -310
- package/src/components/dropzone/use-dropzone.ts +0 -122
- package/src/components/empty-state/empty-state.stories.tsx +0 -56
- package/src/components/empty-state/empty-state.tsx +0 -39
- package/src/components/empty-state/index.ts +0 -1
- package/src/components/heading/heading.stories.tsx +0 -74
- package/src/components/heading/heading.tsx +0 -28
- package/src/components/heading/heading.variants.ts +0 -27
- package/src/components/heading/index.ts +0 -1
- package/src/components/kbd/kbd.variants.ts +0 -26
- package/src/components/menu/util/render-menu-item.tsx +0 -54
- package/src/components/multi-select/hooks/use-multi-select.ts +0 -66
- package/src/components/multi-select/index.ts +0 -1
- package/src/components/multi-select/multi-select.stories.tsx +0 -294
- package/src/components/multi-select/multi-select.tsx +0 -300
- package/src/components/multi-select/multi-select.variants.ts +0 -22
- package/src/components/pagination/components/pagination-option.tsx +0 -27
- package/src/components/show/index.ts +0 -1
- package/src/components/show/show.stories.tsx +0 -197
- package/src/components/show/show.test.tsx +0 -41
- package/src/components/show/show.tsx +0 -16
- package/src/components/stepper/Stepper.tsx +0 -190
- package/src/components/stepper/context/stepper-context.tsx +0 -11
- package/src/components/table/table-primitives.tsx +0 -122
- package/src/components/table/table.model.ts +0 -20
- package/src/components/table-pagination/index.ts +0 -2
- package/src/components/table-pagination/table-pagination.model.ts +0 -2
- package/src/components/table-pagination/table-pagination.stories.tsx +0 -23
- package/src/components/table-pagination/table-pagination.test.tsx +0 -32
- package/src/components/table-pagination/table-pagination.tsx +0 -108
- package/src/components/tabs/context/tabs-context.tsx +0 -14
- package/src/components/tag/tag.variants.ts +0 -31
- package/src/components/timeline/timeline-status.ts +0 -5
- package/src/components/tree/hooks/use-controllable-tree-state.ts +0 -80
- package/src/components/tree/tree-primitives.tsx +0 -126
package/dist/index.d.ts
CHANGED
|
@@ -1,51 +1,59 @@
|
|
|
1
|
+
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
1
2
|
import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
3
|
+
import { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
|
|
2
4
|
import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
3
|
-
import {
|
|
5
|
+
import { Button as Button_2 } from '@base-ui/react/button';
|
|
4
6
|
import { ChangeEvent } from 'react';
|
|
5
7
|
import { CheckboxGroup as CheckboxGroup_3 } from '@base-ui/react/checkbox-group';
|
|
6
8
|
import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
|
|
7
9
|
import { ClassNameValue } from 'tailwind-merge';
|
|
8
10
|
import { ClassProp } from 'class-variance-authority/types';
|
|
9
11
|
import { ClassValue } from 'clsx';
|
|
10
|
-
import { Collection } from 'react-aria-components';
|
|
11
12
|
import { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';
|
|
12
|
-
import { Command } from 'cmdk';
|
|
13
13
|
import { ComponentProps } from 'react';
|
|
14
14
|
import { ComponentPropsWithoutRef } from 'react';
|
|
15
|
+
import { ComponentType } from 'react';
|
|
16
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
15
17
|
import { CSSProperties } from 'react';
|
|
16
18
|
import { DayPicker } from 'react-day-picker';
|
|
17
19
|
import { default as default_2 } from 'react';
|
|
18
20
|
import { DependencyList } from 'react';
|
|
19
21
|
import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
|
|
20
|
-
import { DialogProps as DialogProps_2 } from '@radix-ui/react-dialog';
|
|
21
22
|
import { Dispatch } from 'react';
|
|
22
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
23
23
|
import { ElementType } from 'react';
|
|
24
|
+
import { FieldPath } from 'react-hook-form';
|
|
24
25
|
import { Field as FieldPrimitive } from '@base-ui/react/field';
|
|
26
|
+
import { Fieldset as FieldsetPrimitive } from '@base-ui/react/fieldset';
|
|
27
|
+
import { FieldValues } from 'react-hook-form';
|
|
25
28
|
import { FormEvent } from 'react';
|
|
26
29
|
import { Form as FormPrimitive } from '@base-ui/react/form';
|
|
27
30
|
import { HTMLAttributes } from 'react';
|
|
28
31
|
import { HTMLProps } from 'react';
|
|
29
32
|
import { Input as InputPrimitive } from '@base-ui/react/input';
|
|
33
|
+
import { ItemInstance } from '@headless-tree/core';
|
|
30
34
|
import { JSX } from 'react/jsx-runtime';
|
|
35
|
+
import { JSXElementConstructor } from 'react';
|
|
31
36
|
import { ListIterateeCustom } from 'lodash';
|
|
32
37
|
import { LucideIcon } from 'lucide-react';
|
|
33
38
|
import { LucideProps } from 'lucide-react';
|
|
39
|
+
import { Menu as Menu_2 } from '@base-ui/react/menu';
|
|
34
40
|
import { MutableRefObject } from 'react';
|
|
35
41
|
import { NumberField as NumberInputPrimitive } from '@base-ui/react/number-field';
|
|
36
42
|
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
37
|
-
import { Presence } from '@radix-ui/react-presence';
|
|
38
43
|
import { Progress as Progress_2 } from '@base-ui/react/progress';
|
|
39
44
|
import * as React_2 from 'react';
|
|
40
45
|
import { ReactElement } from 'react';
|
|
41
46
|
import { ReactNode } from 'react';
|
|
42
47
|
import { ReactPortal } from 'react';
|
|
43
48
|
import { RefObject } from 'react';
|
|
49
|
+
import { RegisterOptions } from 'react-hook-form';
|
|
44
50
|
import { ScrollArea as ScrollAreaPrimitive } from '@base-ui/react/scroll-area';
|
|
45
51
|
import { Select as SelectPrimitive } from '@base-ui/react/select';
|
|
52
|
+
import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
46
53
|
import { SetStateAction } from 'react';
|
|
47
|
-
import {
|
|
54
|
+
import { SubmitHandler } from 'react-hook-form';
|
|
48
55
|
import { Switch as Switch_2 } from '@base-ui/react/switch';
|
|
56
|
+
import { Tabs as TabsPrimitive } from '@base-ui/react/tabs';
|
|
49
57
|
import { ToastManager } from '@base-ui/react';
|
|
50
58
|
import { ToastManagerAddOptions as ToastManagerAddOptions_2 } from '@base-ui/react/toast';
|
|
51
59
|
import { ToastManagerPromiseOptions } from '@base-ui/react';
|
|
@@ -53,12 +61,49 @@ import { ToastManagerUpdateOptions } from '@base-ui/react';
|
|
|
53
61
|
import { ToastObject } from '@base-ui/react/toast';
|
|
54
62
|
import { Toast as ToastPrimitive } from '@base-ui/react/toast';
|
|
55
63
|
import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
56
|
-
import {
|
|
57
|
-
import { TreeItemProps } from 'react-aria-components';
|
|
58
|
-
import { TreeProps } from 'react-aria-components';
|
|
64
|
+
import { TreeInstance } from '@headless-tree/core';
|
|
59
65
|
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
66
|
+
import { UseFormProps } from 'react-hook-form';
|
|
67
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
60
68
|
import { useRender } from '@base-ui/react/use-render';
|
|
61
69
|
import { VariantProps } from 'class-variance-authority';
|
|
70
|
+
import { z } from 'zod';
|
|
71
|
+
|
|
72
|
+
export declare function Accordion({ items, className, classNames, ...props }: AccordionProps): JSX.Element;
|
|
73
|
+
|
|
74
|
+
export declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.Panel.Props): JSX.Element;
|
|
75
|
+
|
|
76
|
+
export declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): JSX.Element;
|
|
77
|
+
|
|
78
|
+
declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare interface AccordionItem_2 {
|
|
81
|
+
value: string;
|
|
82
|
+
trigger: ReactNode;
|
|
83
|
+
content: ReactNode;
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { AccordionPrimitive }
|
|
88
|
+
|
|
89
|
+
declare interface AccordionProps extends Omit<AccordionPrimitive.Root.Props, "children" | "className"> {
|
|
90
|
+
items: AccordionItem_2[];
|
|
91
|
+
/** Styles the accordion root container. */
|
|
92
|
+
className?: string;
|
|
93
|
+
/** Styles applied to each internal slot. */
|
|
94
|
+
classNames?: {
|
|
95
|
+
/** Each collapsible item wrapper. */
|
|
96
|
+
item?: string;
|
|
97
|
+
/** Trigger button that toggles the item. */
|
|
98
|
+
trigger?: string;
|
|
99
|
+
/** Panel that contains the item content. */
|
|
100
|
+
content?: string;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export declare function AccordionRoot({ className, ...props }: AccordionPrimitive.Root.Props): JSX.Element;
|
|
105
|
+
|
|
106
|
+
export declare function AccordionTrigger({ className, children, ...props }: AccordionPrimitive.Trigger.Props): JSX.Element;
|
|
62
107
|
|
|
63
108
|
/**
|
|
64
109
|
* Accessible confirmation dialog with cancel and action buttons.
|
|
@@ -67,6 +112,10 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
67
112
|
* making it composable with `<Tooltip>` at the primitive level.
|
|
68
113
|
* For full structural control, use the exported primitives directly.
|
|
69
114
|
*
|
|
115
|
+
* `className` styles the popup panel. `classNames` exposes the `backdrop`,
|
|
116
|
+
* `header`, `title`, `description`, `footer`, `closeButton`, and `actionButton`
|
|
117
|
+
* slots for fine-grained tweaks without dropping to primitives.
|
|
118
|
+
*
|
|
70
119
|
* @example
|
|
71
120
|
* ```tsx
|
|
72
121
|
* <AlertDialog
|
|
@@ -79,7 +128,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
79
128
|
* />
|
|
80
129
|
* ```
|
|
81
130
|
*/
|
|
82
|
-
export declare function AlertDialog({ trigger, title, description, children, onClose, onAction, variant, closeText, actionText, className, ...props }: AlertDialogProps): JSX.Element;
|
|
131
|
+
export declare function AlertDialog({ trigger, title, description, children, onClose, onAction, variant, closeText, actionText, className, classNames, ...props }: AlertDialogProps): JSX.Element;
|
|
83
132
|
|
|
84
133
|
/** Semi-transparent overlay rendered behind the popup. */
|
|
85
134
|
export declare function AlertDialogBackdrop({ className, ...props }: AlertDialogPrimitive.Backdrop.Props): JSX.Element;
|
|
@@ -99,9 +148,16 @@ export declare function AlertDialogHeader({ className, ...props }: HTMLAttribute
|
|
|
99
148
|
/**
|
|
100
149
|
* Dialog content container. Includes Portal, Backdrop and Viewport internally.
|
|
101
150
|
* Pass `portalProps` to configure the portal (e.g. a custom `container`).
|
|
151
|
+
* `classNames` styles the internal `backdrop` and `viewport` slots.
|
|
102
152
|
*/
|
|
103
|
-
export declare function AlertDialogPopup({ className, portalProps, ...props }: AlertDialogPrimitive.Popup.Props & {
|
|
153
|
+
export declare function AlertDialogPopup({ className, classNames, portalProps, ...props }: AlertDialogPrimitive.Popup.Props & {
|
|
104
154
|
portalProps?: AlertDialogPrimitive.Portal.Props;
|
|
155
|
+
classNames?: {
|
|
156
|
+
/** Overlay rendered behind the dialog. */
|
|
157
|
+
backdrop?: string;
|
|
158
|
+
/** Full-screen container that centers the popup. */
|
|
159
|
+
viewport?: string;
|
|
160
|
+
};
|
|
105
161
|
}): JSX.Element;
|
|
106
162
|
|
|
107
163
|
export { AlertDialogPrimitive }
|
|
@@ -125,8 +181,25 @@ export declare type AlertDialogProps = Omit<AlertDialogPrimitive.Root.Props, "ch
|
|
|
125
181
|
closeText?: ReactNode;
|
|
126
182
|
/** Label for the action button. @default "Confirm" */
|
|
127
183
|
actionText?: ReactNode;
|
|
128
|
-
/**
|
|
184
|
+
/** Styles the dialog popup panel. */
|
|
129
185
|
className?: string;
|
|
186
|
+
/** Styles applied to each internal slot. */
|
|
187
|
+
classNames?: {
|
|
188
|
+
/** Overlay rendered behind the dialog. */
|
|
189
|
+
backdrop?: string;
|
|
190
|
+
/** Layout wrapper for title and description. */
|
|
191
|
+
header?: string;
|
|
192
|
+
/** Dialog heading. */
|
|
193
|
+
title?: string;
|
|
194
|
+
/** Supporting text below the title. */
|
|
195
|
+
description?: string;
|
|
196
|
+
/** Layout wrapper for action buttons. */
|
|
197
|
+
footer?: string;
|
|
198
|
+
/** Cancel button. */
|
|
199
|
+
closeButton?: string;
|
|
200
|
+
/** Action button. */
|
|
201
|
+
actionButton?: string;
|
|
202
|
+
};
|
|
130
203
|
};
|
|
131
204
|
|
|
132
205
|
/** Context root. Holds open state and wraps all dialog parts. */
|
|
@@ -158,33 +231,127 @@ declare interface AsyncState<T> {
|
|
|
158
231
|
|
|
159
232
|
export declare type AtLeastOne<T> = [T, ...T[]];
|
|
160
233
|
|
|
161
|
-
export declare
|
|
234
|
+
export declare function Autocomplete<TOption extends AutocompleteOption = AutocompleteOption>({ items, value, defaultValue, onValueChange, disabled, readOnly, isLoading, filter, autoHighlight, placeholder, emptyMessage, loadingMessage, renderOption, adornment, startAddon, className, classNames, }: AutocompleteProps<TOption>): default_2.ReactElement;
|
|
235
|
+
|
|
236
|
+
export declare function AutocompleteClear({ className, children, ...props }: AutocompletePrimitive.Clear.Props): default_2.ReactElement;
|
|
237
|
+
|
|
238
|
+
export declare function AutocompleteCollection({ ...props }: AutocompletePrimitive.Collection.Props): default_2.ReactElement;
|
|
239
|
+
|
|
240
|
+
export declare function AutocompleteEmpty({ className, ...props }: AutocompletePrimitive.Empty.Props): default_2.ReactElement;
|
|
241
|
+
|
|
242
|
+
export declare function AutocompleteGroup({ className, ...props }: AutocompletePrimitive.Group.Props): default_2.ReactElement;
|
|
243
|
+
|
|
244
|
+
export declare function AutocompleteGroupLabel({ className, ...props }: AutocompletePrimitive.GroupLabel.Props): default_2.ReactElement;
|
|
162
245
|
|
|
163
|
-
export declare
|
|
246
|
+
export declare function AutocompleteInput({ className, adornment, startAddon, triggerProps, clearProps, ...props }: AutocompletePrimitive.Input.Props & {
|
|
247
|
+
adornment?: "trigger" | "clear";
|
|
248
|
+
startAddon?: default_2.ReactNode;
|
|
249
|
+
ref?: default_2.Ref<HTMLInputElement>;
|
|
250
|
+
triggerProps?: AutocompletePrimitive.Trigger.Props;
|
|
251
|
+
clearProps?: AutocompletePrimitive.Clear.Props;
|
|
252
|
+
}): default_2.ReactElement;
|
|
253
|
+
|
|
254
|
+
export declare function AutocompleteItem({ className, children, ...props }: AutocompletePrimitive.Item.Props): default_2.ReactElement;
|
|
164
255
|
|
|
165
|
-
declare
|
|
256
|
+
export declare function AutocompleteList({ className, ...props }: AutocompletePrimitive.List.Props): default_2.ReactElement;
|
|
257
|
+
|
|
258
|
+
export declare interface AutocompleteOption {
|
|
259
|
+
value: string;
|
|
260
|
+
label: string;
|
|
166
261
|
}
|
|
167
262
|
|
|
168
|
-
export declare
|
|
263
|
+
export declare function AutocompletePopup({ className, children, side, sideOffset, alignOffset, align, anchor, portalProps, ...props }: AutocompletePrimitive.Popup.Props & {
|
|
264
|
+
align?: AutocompletePrimitive.Positioner.Props["align"];
|
|
265
|
+
sideOffset?: AutocompletePrimitive.Positioner.Props["sideOffset"];
|
|
266
|
+
alignOffset?: AutocompletePrimitive.Positioner.Props["alignOffset"];
|
|
267
|
+
side?: AutocompletePrimitive.Positioner.Props["side"];
|
|
268
|
+
anchor?: AutocompletePrimitive.Positioner.Props["anchor"];
|
|
269
|
+
portalProps?: AutocompletePrimitive.Portal.Props;
|
|
270
|
+
}): default_2.ReactElement;
|
|
271
|
+
|
|
272
|
+
export { AutocompletePrimitive }
|
|
273
|
+
|
|
274
|
+
declare interface AutocompleteProps<TOption extends AutocompleteOption = AutocompleteOption> {
|
|
275
|
+
items: TOption[];
|
|
276
|
+
value?: TOption | null;
|
|
277
|
+
defaultValue?: TOption | null;
|
|
278
|
+
onValueChange?: (value: TOption | null) => void;
|
|
279
|
+
disabled?: boolean;
|
|
280
|
+
readOnly?: boolean;
|
|
281
|
+
isLoading?: boolean;
|
|
282
|
+
filter?: AutocompletePrimitive.Root.Props<TOption>["filter"];
|
|
283
|
+
autoHighlight?: boolean | "always";
|
|
284
|
+
placeholder?: string;
|
|
285
|
+
emptyMessage?: string;
|
|
286
|
+
loadingMessage?: string;
|
|
287
|
+
renderOption?: (option: TOption) => default_2.ReactNode;
|
|
288
|
+
adornment?: "trigger" | "clear";
|
|
289
|
+
startAddon?: default_2.ReactNode;
|
|
290
|
+
/** Styles the input field. */
|
|
291
|
+
className?: string;
|
|
292
|
+
/** Styles applied to each internal slot. */
|
|
293
|
+
classNames?: {
|
|
294
|
+
/** Dropdown popup container. */
|
|
295
|
+
popup?: string;
|
|
296
|
+
/** Scrollable list inside the popup. */
|
|
297
|
+
list?: string;
|
|
298
|
+
/** Each option item. */
|
|
299
|
+
item?: string;
|
|
300
|
+
/** Empty state message. */
|
|
301
|
+
empty?: string;
|
|
302
|
+
/** Status row (e.g. loading message). */
|
|
303
|
+
status?: string;
|
|
304
|
+
};
|
|
305
|
+
}
|
|
169
306
|
|
|
170
|
-
export declare const
|
|
307
|
+
export declare const AutocompleteRoot: typeof AutocompletePrimitive.Root;
|
|
171
308
|
|
|
172
|
-
|
|
309
|
+
/**
|
|
310
|
+
* Groups items into a horizontal row within the list.
|
|
311
|
+
* Use to create multi-column grid layouts (color swatches, icon grids, emoji pickers).
|
|
312
|
+
* Each `AutocompleteItem` inside the row remains fully keyboard-navigable.
|
|
313
|
+
*
|
|
314
|
+
* ```tsx
|
|
315
|
+
* <AutocompleteList>
|
|
316
|
+
* {(row) => (
|
|
317
|
+
* <AutocompleteRow key={row.id}>
|
|
318
|
+
* {row.items.map((item) => (
|
|
319
|
+
* <AutocompleteItem key={item.value} value={item}>
|
|
320
|
+
* {item.label}
|
|
321
|
+
* </AutocompleteItem>
|
|
322
|
+
* ))}
|
|
323
|
+
* </AutocompleteRow>
|
|
324
|
+
* )}
|
|
325
|
+
* </AutocompleteList>
|
|
326
|
+
* ```
|
|
327
|
+
*/
|
|
328
|
+
export declare function AutocompleteRow({ className, ...props }: AutocompletePrimitive.Row.Props): default_2.ReactElement;
|
|
173
329
|
|
|
174
|
-
export declare
|
|
330
|
+
export declare function AutocompleteSeparator({ className, ...props }: AutocompletePrimitive.Separator.Props): default_2.ReactElement;
|
|
175
331
|
|
|
176
|
-
export declare
|
|
332
|
+
export declare function AutocompleteStatus({ className, ...props }: AutocompletePrimitive.Status.Props): default_2.ReactElement;
|
|
177
333
|
|
|
178
|
-
export declare
|
|
334
|
+
export declare function AutocompleteTrigger({ className, children, ...props }: AutocompletePrimitive.Trigger.Props): default_2.ReactElement;
|
|
179
335
|
|
|
180
|
-
|
|
336
|
+
/**
|
|
337
|
+
* Renders the selected value's label outside the input element.
|
|
338
|
+
* Useful when building custom trigger-style layouts where the selected item
|
|
339
|
+
* must be displayed independently — e.g., inside a badge, a button, or a custom
|
|
340
|
+
* trigger that replaces the input entirely.
|
|
341
|
+
* Renders nothing when no item is selected.
|
|
342
|
+
*/
|
|
343
|
+
export declare function AutocompleteValue({ ...props }: AutocompletePrimitive.Value.Props): default_2.ReactElement;
|
|
181
344
|
|
|
182
|
-
export declare
|
|
345
|
+
export declare function Avatar({ src, alt, fallback, badge, delay, size, className, classNames, ...props }: AvatarProps): JSX.Element;
|
|
183
346
|
|
|
184
|
-
export declare function
|
|
347
|
+
export declare function AvatarBadge({ className, ...props }: ComponentProps<"span">): JSX.Element;
|
|
185
348
|
|
|
186
349
|
export declare function AvatarFallback({ className, ...props }: AvatarPrimitive.Fallback.Props): JSX.Element;
|
|
187
350
|
|
|
351
|
+
export declare function AvatarGroup({ className, ...props }: ComponentProps<"div">): JSX.Element;
|
|
352
|
+
|
|
353
|
+
export declare function AvatarGroupCount({ className, size, ...props }: ComponentProps<"div"> & VariantProps<typeof avatarVariants>): JSX.Element;
|
|
354
|
+
|
|
188
355
|
export declare function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props): JSX.Element;
|
|
189
356
|
|
|
190
357
|
export { AvatarPrimitive }
|
|
@@ -193,23 +360,27 @@ declare interface AvatarProps extends Omit<AvatarPrimitive.Root.Props, "children
|
|
|
193
360
|
src?: string;
|
|
194
361
|
alt: string;
|
|
195
362
|
fallback?: ReactNode;
|
|
363
|
+
badge?: ReactNode;
|
|
196
364
|
delay?: AvatarPrimitive.Fallback.Props["delay"];
|
|
197
|
-
shape?: VariantProps<typeof avatarVariants>["shape"];
|
|
198
365
|
size?: VariantProps<typeof avatarVariants>["size"];
|
|
199
|
-
|
|
200
|
-
|
|
366
|
+
/** Styles applied to each internal slot. */
|
|
367
|
+
classNames?: {
|
|
368
|
+
/** Image element rendered when `src` loads successfully. */
|
|
369
|
+
image?: string;
|
|
370
|
+
/** Fallback rendered when no image is available. */
|
|
371
|
+
fallback?: string;
|
|
372
|
+
/** Status/notification badge rendered over the avatar. */
|
|
373
|
+
badge?: string;
|
|
374
|
+
};
|
|
201
375
|
}
|
|
202
376
|
|
|
203
|
-
export declare function AvatarRoot({ className,
|
|
377
|
+
export declare function AvatarRoot({ className, size, ...props }: AvatarPrimitive.Root.Props & VariantProps<typeof avatarVariants>): JSX.Element;
|
|
204
378
|
|
|
205
379
|
declare const avatarVariants: (props?: ({
|
|
206
|
-
|
|
207
|
-
size?: "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
|
|
380
|
+
size?: "xs" | "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
208
381
|
} & ClassProp) | undefined) => string;
|
|
209
382
|
|
|
210
|
-
export declare const
|
|
211
|
-
|
|
212
|
-
export declare const BaseButton: ({ asChild, onClick, loading: prop, showLoader, icon, iconPosition, loaderReplace, style, ...props }: Props_4) => JSX.Element;
|
|
383
|
+
export declare const BaseButton: ({ onClick, loading: prop, style, children, ...props }: Props_2) => JSX.Element;
|
|
213
384
|
|
|
214
385
|
declare type BaseButtonProps = ComponentProps<typeof BaseButton>;
|
|
215
386
|
|
|
@@ -218,36 +389,60 @@ export declare type BaseEntity = {
|
|
|
218
389
|
createdAt: Date;
|
|
219
390
|
};
|
|
220
391
|
|
|
221
|
-
declare
|
|
222
|
-
|
|
223
|
-
declare type BaseProps_2 = {
|
|
224
|
-
icon?: React.ReactNode;
|
|
225
|
-
rounded?: TagVariant["rounded"];
|
|
226
|
-
} & StyleProps & React.HTMLAttributes<HTMLDivElement>;
|
|
392
|
+
export declare const Button: ({ variant, size, className, icon, children, ...rest }: Props) => JSX.Element;
|
|
227
393
|
|
|
228
|
-
|
|
394
|
+
declare type ButtonOverrides = Omit<ComponentProps<typeof Button>, "onClick" | "disabled" | "render" | "children" | "nativeButton">;
|
|
229
395
|
|
|
230
396
|
declare type ButtonProps = ComponentProps<typeof Button>;
|
|
231
397
|
|
|
232
398
|
export declare const buttonVariants: (props?: ({
|
|
233
|
-
variant?: "default" | "link" | "
|
|
234
|
-
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
235
|
-
shape?: "rounded" | "circle" | "square" | null | undefined;
|
|
399
|
+
variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "error" | "success" | "warning" | null | undefined;
|
|
400
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
236
401
|
} & ClassProp) | undefined) => string;
|
|
237
402
|
|
|
238
403
|
export declare function Calendar({ className, classNames, showOutsideDays, components: userComponents, mode, captionLayout, startMonth, endMonth, ...props }: React_2.ComponentProps<typeof DayPicker>): React_2.ReactElement;
|
|
239
404
|
|
|
240
|
-
export declare
|
|
241
|
-
|
|
242
|
-
export declare
|
|
243
|
-
|
|
244
|
-
export declare
|
|
245
|
-
|
|
246
|
-
export declare
|
|
405
|
+
export declare function Card({ title, description, action, footer, children, size, className, classNames, ...props }: CardProps): JSX.Element;
|
|
406
|
+
|
|
407
|
+
export declare function CardAction({ className, ...props }: default_2.ComponentProps<"div">): JSX.Element;
|
|
408
|
+
|
|
409
|
+
export declare function CardContent({ className, ...props }: default_2.ComponentProps<"div">): JSX.Element;
|
|
410
|
+
|
|
411
|
+
export declare function CardDescription({ className, ...props }: default_2.ComponentProps<"div">): JSX.Element;
|
|
412
|
+
|
|
413
|
+
export declare function CardFooter({ className, ...props }: default_2.ComponentProps<"div">): JSX.Element;
|
|
414
|
+
|
|
415
|
+
export declare function CardHeader({ className, ...props }: default_2.ComponentProps<"div">): JSX.Element;
|
|
416
|
+
|
|
417
|
+
declare interface CardProps extends Omit<default_2.ComponentProps<"div">, "children" | "title"> {
|
|
418
|
+
title?: default_2.ReactNode;
|
|
419
|
+
description?: default_2.ReactNode;
|
|
420
|
+
action?: default_2.ReactNode;
|
|
421
|
+
footer?: default_2.ReactNode;
|
|
422
|
+
children?: default_2.ReactNode;
|
|
423
|
+
size?: "default" | "sm";
|
|
424
|
+
/** Styles applied to each internal slot. */
|
|
425
|
+
classNames?: {
|
|
426
|
+
/** Header wrapper holding title, description, and action. */
|
|
427
|
+
header?: string;
|
|
428
|
+
/** Card title text. */
|
|
429
|
+
title?: string;
|
|
430
|
+
/** Supporting description below the title. */
|
|
431
|
+
description?: string;
|
|
432
|
+
/** Action area on the right of the header. */
|
|
433
|
+
action?: string;
|
|
434
|
+
/** Body content rendered between the header and the footer. */
|
|
435
|
+
content?: string;
|
|
436
|
+
/** Footer area below the content. */
|
|
437
|
+
footer?: string;
|
|
438
|
+
};
|
|
439
|
+
}
|
|
247
440
|
|
|
248
|
-
export declare
|
|
441
|
+
export declare function CardRoot({ className, size, ...props }: default_2.ComponentProps<"div"> & {
|
|
442
|
+
size?: "default" | "sm";
|
|
443
|
+
}): JSX.Element;
|
|
249
444
|
|
|
250
|
-
export declare
|
|
445
|
+
export declare function CardTitle({ className, ...props }: default_2.ComponentProps<"div">): JSX.Element;
|
|
251
446
|
|
|
252
447
|
export declare const Center: ({ as: Tag, inline, className, ...props }: CenterProps) => JSX.Element;
|
|
253
448
|
|
|
@@ -262,30 +457,70 @@ export declare const Checkbox: typeof CheckboxSingle & {
|
|
|
262
457
|
Legend: typeof CheckboxLegend;
|
|
263
458
|
};
|
|
264
459
|
|
|
265
|
-
export declare function CheckboxGroup({ className,
|
|
460
|
+
export declare function CheckboxGroup({ legend, children, items, defaultValue, value, onValueChange, allValues, disabled, controlFirst, className, }: CheckboxGroupProps): JSX.Element;
|
|
266
461
|
|
|
267
|
-
declare function CheckboxGroup_2({ legend, children, error, description, defaultValue, value,
|
|
462
|
+
declare function CheckboxGroup_2({ legend, children, error, description, defaultValue, value, onValueChange, allValues, disabled, controlFirst, className, classNames, }: CheckboxGroupProps_2): React_2.ReactElement;
|
|
463
|
+
|
|
464
|
+
export declare const CheckboxGroupContext: React_2.Context<{
|
|
465
|
+
controlFirst: boolean;
|
|
466
|
+
invalid: boolean;
|
|
467
|
+
}>;
|
|
268
468
|
|
|
269
469
|
export declare interface CheckboxGroupProps {
|
|
470
|
+
legend?: ReactNode;
|
|
471
|
+
children?: ReactNode;
|
|
472
|
+
items?: CheckboxOption[];
|
|
473
|
+
defaultValue?: string[];
|
|
474
|
+
value?: string[];
|
|
475
|
+
onValueChange?: (value: string[]) => void;
|
|
476
|
+
allValues?: string[];
|
|
477
|
+
disabled?: boolean;
|
|
478
|
+
controlFirst?: boolean;
|
|
479
|
+
className?: string;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
declare interface CheckboxGroupProps_2 {
|
|
270
483
|
legend?: ReactNode;
|
|
271
484
|
children: ReactNode;
|
|
272
485
|
error?: string;
|
|
273
486
|
description?: ReactNode;
|
|
274
487
|
defaultValue?: string[];
|
|
275
488
|
value?: string[];
|
|
276
|
-
|
|
489
|
+
onValueChange?: (value: string[]) => void;
|
|
277
490
|
allValues?: string[];
|
|
278
491
|
disabled?: boolean;
|
|
279
492
|
controlFirst?: boolean;
|
|
280
493
|
className?: string;
|
|
494
|
+
/** Styles applied to each internal slot. */
|
|
495
|
+
classNames?: {
|
|
496
|
+
/** Legend element above the items. */
|
|
497
|
+
legend?: string;
|
|
498
|
+
/** Wrapper around the rendered children (items). */
|
|
499
|
+
items?: string;
|
|
500
|
+
/** Description shown below the items when there is no error. */
|
|
501
|
+
description?: string;
|
|
502
|
+
/** Error message shown below the items. */
|
|
503
|
+
error?: string;
|
|
504
|
+
};
|
|
281
505
|
}
|
|
282
506
|
|
|
507
|
+
export declare function CheckboxGroupRoot({ className, ...props }: CheckboxGroup_3.Props): JSX.Element;
|
|
508
|
+
|
|
283
509
|
export declare function CheckboxIndicator({ className, ...props }: CheckboxPrimitive.Indicator.Props): React_2.ReactElement;
|
|
284
510
|
|
|
285
|
-
declare function CheckboxItem({ className, label, id, ...props }: CheckboxItemProps): React_2.ReactElement;
|
|
511
|
+
declare function CheckboxItem({ className, classNames, label, id, ...props }: CheckboxItemProps): React_2.ReactElement;
|
|
286
512
|
|
|
287
513
|
export declare interface CheckboxItemProps extends Omit<CheckboxPrimitive.Root.Props, "children"> {
|
|
288
514
|
label: ReactNode;
|
|
515
|
+
/** Styles applied to each internal slot. */
|
|
516
|
+
classNames?: {
|
|
517
|
+
/** Flex wrapper around checkbox and label. */
|
|
518
|
+
wrapper?: string;
|
|
519
|
+
/** Checkmark indicator inside the checkbox. */
|
|
520
|
+
indicator?: string;
|
|
521
|
+
/** Label element next to the checkbox. */
|
|
522
|
+
label?: string;
|
|
523
|
+
};
|
|
289
524
|
}
|
|
290
525
|
|
|
291
526
|
declare function CheckboxLegend({ children, className, }: CheckboxLegendProps): React_2.ReactElement;
|
|
@@ -295,64 +530,52 @@ export declare interface CheckboxLegendProps {
|
|
|
295
530
|
className?: string;
|
|
296
531
|
}
|
|
297
532
|
|
|
533
|
+
export declare interface CheckboxOption {
|
|
534
|
+
value: string;
|
|
535
|
+
label: ReactNode;
|
|
536
|
+
disabled?: boolean;
|
|
537
|
+
}
|
|
538
|
+
|
|
298
539
|
export { CheckboxPrimitive }
|
|
299
540
|
|
|
300
541
|
declare interface CheckboxProps extends Omit<CheckboxPrimitive.Root.Props, "children"> {
|
|
301
542
|
children?: ReactNode;
|
|
302
543
|
label?: ReactNode;
|
|
303
544
|
tooltip?: ReactNode;
|
|
304
|
-
indicatorProps?: CheckboxPrimitive.Indicator.Props;
|
|
305
545
|
controlFirst?: boolean;
|
|
546
|
+
/** Styles applied to each internal slot. */
|
|
547
|
+
classNames?: {
|
|
548
|
+
/** Flex wrapper around checkbox and label (only rendered when a label is provided). */
|
|
549
|
+
wrapper?: string;
|
|
550
|
+
/** Checkmark indicator inside the checkbox. */
|
|
551
|
+
indicator?: string;
|
|
552
|
+
/** Label element next to the checkbox. */
|
|
553
|
+
label?: string;
|
|
554
|
+
};
|
|
306
555
|
}
|
|
307
556
|
|
|
308
557
|
export declare function CheckboxRoot({ className, ...props }: CheckboxPrimitive.Root.Props): React_2.ReactElement;
|
|
309
558
|
|
|
310
|
-
declare function CheckboxSingle({ className,
|
|
559
|
+
declare function CheckboxSingle({ className, classNames, label, children, tooltip, controlFirst, required, id, ...props }: CheckboxProps): React_2.ReactElement;
|
|
311
560
|
|
|
312
561
|
export declare type ClassName = string | undefined;
|
|
313
562
|
|
|
314
|
-
export declare const click: (element: HTMLElement) => void;
|
|
315
|
-
|
|
316
563
|
export declare type ClickEvent = React.MouseEvent<HTMLButtonElement, MouseEvent>;
|
|
317
564
|
|
|
318
|
-
declare type ClosableProps = BaseProps_2 & {
|
|
319
|
-
closable: true;
|
|
320
|
-
onClose: () => void;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
565
|
export declare function cn(...args: ClassValue[]): string;
|
|
324
566
|
|
|
325
|
-
export { Collection }
|
|
326
|
-
|
|
327
|
-
declare type ColorProps = {
|
|
328
|
-
color: string;
|
|
329
|
-
variant?: "outline" | "borderless";
|
|
330
|
-
};
|
|
331
|
-
|
|
332
567
|
export declare type ColumnDef<T> = {
|
|
333
|
-
/**
|
|
334
|
-
* Header de la columna
|
|
335
|
-
*/
|
|
336
568
|
header: string | (() => ReactNode);
|
|
337
|
-
/**
|
|
338
|
-
* Clave que identifica la columna
|
|
339
|
-
*/
|
|
340
569
|
key: keyof T;
|
|
341
|
-
/**
|
|
342
|
-
* Elemento que se renderiza en la celda
|
|
343
|
-
*/
|
|
344
570
|
cell?: (row: T, index: number) => ReactNode;
|
|
345
|
-
/**
|
|
346
|
-
* Ancho de la columna
|
|
347
|
-
*/
|
|
348
571
|
width?: string | number;
|
|
349
572
|
};
|
|
350
573
|
|
|
351
574
|
/**
|
|
352
575
|
* Composite combobox for single and multiple selection.
|
|
353
576
|
*
|
|
354
|
-
* Items shaped as `{ label, value }
|
|
355
|
-
* extra props. For other shapes, provide `getLabel` and/or `
|
|
577
|
+
* Items shaped as `{ id, name }`, `{ label, value }`, or plain strings/numbers
|
|
578
|
+
* work with no extra props. For other shapes, provide `getLabel` and/or `getId`.
|
|
356
579
|
*
|
|
357
580
|
* In multiple mode, chips are fit dynamically based on the container width —
|
|
358
581
|
* overflowing items show as "+N más". The popup anchors to the chips container automatically.
|
|
@@ -365,20 +588,35 @@ export declare type ColumnDef<T> = {
|
|
|
365
588
|
*/
|
|
366
589
|
export declare function Combobox<TItem = unknown>(allProps: ComboboxProps<TItem>): React_2.ReactElement;
|
|
367
590
|
|
|
368
|
-
declare type ComboboxBaseProps<TItem = unknown> = Omit<
|
|
591
|
+
declare type ComboboxBaseProps<TItem = unknown> = Omit<ComboboxPrimitive.Root.Props<TItem, boolean>, "items" | "itemToStringLabel" | "itemToStringValue" | "children" | "multiple" | "onValueChange" | "value" | "defaultValue"> & {
|
|
369
592
|
items: readonly TItem[];
|
|
593
|
+
/** Returns the display text for an item. Used for filter matching, ARIA, and the trigger input. Defaults to `item.label`, `item.name`, `item.title`, or the stringified primitive. */
|
|
370
594
|
getLabel?: (item: TItem) => string;
|
|
371
|
-
|
|
595
|
+
/** Returns a stable string identifier for an item. Used as the React key and as the hidden form value when `name` is set. Defaults to `item.id`, `item.value`, or the stringified primitive. */
|
|
596
|
+
getId?: (item: TItem) => string;
|
|
372
597
|
renderItem?: (item: TItem) => React_2.ReactNode;
|
|
373
598
|
placeholder?: string;
|
|
374
599
|
emptyText?: string;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
chipsInputProps?: React_2.ComponentProps<typeof ComboboxChipsInput>;
|
|
378
|
-
popupProps?: React_2.ComponentProps<typeof ComboboxPopup>;
|
|
379
|
-
itemProps?: ComboboxPrimitive.Item.Props;
|
|
380
|
-
listProps?: Omit<ComboboxPrimitive.List.Props, "children">;
|
|
600
|
+
/** Icon or element displayed before the input text (single mode) or chips (multiple mode). */
|
|
601
|
+
startAddon?: React_2.ReactNode;
|
|
381
602
|
showClear?: boolean;
|
|
603
|
+
/** Styles applied to each internal slot. */
|
|
604
|
+
classNames?: {
|
|
605
|
+
/** Text input field in single-select mode. */
|
|
606
|
+
input?: string;
|
|
607
|
+
/** Chips container in multiple-select mode. */
|
|
608
|
+
chips?: string;
|
|
609
|
+
/** Search input inside the popup in multiple-select mode. */
|
|
610
|
+
chipsInput?: string;
|
|
611
|
+
/** Popup panel containing the item list. */
|
|
612
|
+
popup?: string;
|
|
613
|
+
/** Scrollable item list inside the popup. */
|
|
614
|
+
list?: string;
|
|
615
|
+
/** Individual item row. */
|
|
616
|
+
item?: string;
|
|
617
|
+
/** Rendered when no items match the search. */
|
|
618
|
+
empty?: string;
|
|
619
|
+
};
|
|
382
620
|
};
|
|
383
621
|
|
|
384
622
|
export declare function ComboboxChip({ children, removeProps, ...props }: ComboboxPrimitive.Chip.Props & {
|
|
@@ -438,21 +676,15 @@ export declare type ComboboxProps<TItem = unknown> = (ComboboxBaseProps<TItem> &
|
|
|
438
676
|
multiple?: false;
|
|
439
677
|
value?: TItem | null;
|
|
440
678
|
defaultValue?: TItem | null;
|
|
441
|
-
|
|
679
|
+
onValueChange?: (value: TItem | null) => void;
|
|
442
680
|
}) | (ComboboxBaseProps<TItem> & {
|
|
443
681
|
multiple: true;
|
|
444
682
|
value?: TItem[];
|
|
445
683
|
defaultValue?: TItem[];
|
|
446
|
-
|
|
684
|
+
onValueChange?: (value: TItem[]) => void;
|
|
447
685
|
});
|
|
448
686
|
|
|
449
|
-
export declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false>({
|
|
450
|
-
onChange?: ComboboxPrimitive.Root.Props<Value, Multiple>["onValueChange"];
|
|
451
|
-
}): React_2.ReactElement;
|
|
452
|
-
|
|
453
|
-
declare type ComboboxRootPropsAlias<V, M extends boolean | undefined = false> = Omit<ComboboxPrimitive.Root.Props<V, M>, "onValueChange"> & {
|
|
454
|
-
onChange?: ComboboxPrimitive.Root.Props<V, M>["onValueChange"];
|
|
455
|
-
};
|
|
687
|
+
export declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false>({ ...props }: ComboboxPrimitive.Root.Props<Value, Multiple>): React_2.ReactElement;
|
|
456
688
|
|
|
457
689
|
export declare function ComboboxRow({ className, ...props }: ComboboxPrimitive.Row.Props): React_2.ReactElement;
|
|
458
690
|
|
|
@@ -474,8 +706,6 @@ export declare function ComboboxTrigger({ className, children, ...props }: Combo
|
|
|
474
706
|
|
|
475
707
|
export declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): React_2.ReactElement;
|
|
476
708
|
|
|
477
|
-
declare type ContainerProps = React_2.ComponentProps<"div">;
|
|
478
|
-
|
|
479
709
|
export declare type Controllable<C, T extends NonNullable<unknown>> = OverrideProps<HTMLProps<C>, ControllableState<T>>;
|
|
480
710
|
|
|
481
711
|
export declare type ControllableState<T> = {
|
|
@@ -513,12 +743,16 @@ export declare type DateInputFooterProps = {
|
|
|
513
743
|
export declare type DateInputProps = Omit<ComponentProps<"input">, "value" | "onChange" | "defaultValue"> & {
|
|
514
744
|
value?: Date | null;
|
|
515
745
|
defaultValue?: Date | null;
|
|
516
|
-
|
|
746
|
+
onValueChange?: (value: Date | null) => void;
|
|
517
747
|
disabledDate?: (date: Date) => boolean;
|
|
518
748
|
renderFooter?: (props: DateInputFooterProps) => ReactNode;
|
|
519
749
|
};
|
|
520
750
|
|
|
521
|
-
export declare
|
|
751
|
+
export declare function DatePicker(props: SingleDatePickerProps): ReactElement;
|
|
752
|
+
|
|
753
|
+
export declare function DatePicker(props: RangeDatePickerProps): ReactElement;
|
|
754
|
+
|
|
755
|
+
export declare function DatePicker(props: MultipleDatePickerProps): ReactElement;
|
|
522
756
|
|
|
523
757
|
declare type DatePickerBaseProps = {
|
|
524
758
|
disabled?: boolean;
|
|
@@ -526,6 +760,15 @@ declare type DatePickerBaseProps = {
|
|
|
526
760
|
renderFooter?: (props: DatePickerFooterProps) => ReactNode;
|
|
527
761
|
className?: string;
|
|
528
762
|
required?: boolean;
|
|
763
|
+
/** Styles applied to each internal slot. */
|
|
764
|
+
classNames?: {
|
|
765
|
+
/** Popup panel that opens below the trigger. */
|
|
766
|
+
popup?: string;
|
|
767
|
+
/** Calendar grid inside the popup. */
|
|
768
|
+
calendar?: string;
|
|
769
|
+
/** Footer wrapper rendered below the calendar when `renderFooter` is provided. */
|
|
770
|
+
footer?: string;
|
|
771
|
+
};
|
|
529
772
|
};
|
|
530
773
|
|
|
531
774
|
export declare type DatePickerFooterProps = SingleFooterProps | RangeFooterProps | MultipleFooterProps;
|
|
@@ -546,6 +789,10 @@ export declare type DateRange = {
|
|
|
546
789
|
* making it composable with `<Tooltip>` at the primitive level.
|
|
547
790
|
* For full structural control, use the exported primitives directly.
|
|
548
791
|
*
|
|
792
|
+
* `className` styles the popup panel. `classNames` exposes the `backdrop`,
|
|
793
|
+
* `viewport`, `header`, `title`, `description`, `footer`, and `closeButton`
|
|
794
|
+
* slots for fine-grained tweaks without dropping to primitives.
|
|
795
|
+
*
|
|
549
796
|
* @example
|
|
550
797
|
* ```tsx
|
|
551
798
|
* <Dialog
|
|
@@ -558,7 +805,7 @@ export declare type DateRange = {
|
|
|
558
805
|
* </Dialog>
|
|
559
806
|
* ```
|
|
560
807
|
*/
|
|
561
|
-
export declare function Dialog({ trigger, title, description, children, footer, onClose, hideClose,
|
|
808
|
+
export declare function Dialog({ trigger, title, description, children, footer, onClose, hideClose, className, classNames, onOpenChange, ...props }: DialogProps): JSX.Element;
|
|
562
809
|
|
|
563
810
|
/** Semi-transparent overlay rendered behind the popup. */
|
|
564
811
|
export declare function DialogBackdrop({ className, ...props }: DialogPrimitive.Backdrop.Props): JSX.Element;
|
|
@@ -578,12 +825,19 @@ export declare function DialogHeader({ className, ...props }: HTMLAttributes<HTM
|
|
|
578
825
|
/**
|
|
579
826
|
* Dialog content container. Includes Portal, Backdrop and Viewport internally.
|
|
580
827
|
* Pass `portalProps` to configure the portal (e.g. a custom `container`).
|
|
581
|
-
*
|
|
828
|
+
* `classNames` styles the internal `backdrop`, `viewport` and `closeButton` slots.
|
|
582
829
|
*/
|
|
583
|
-
export declare function DialogPopup({ className, children, hideClose,
|
|
830
|
+
export declare function DialogPopup({ className, classNames, children, hideClose, portalProps, ...props }: DialogPrimitive.Popup.Props & {
|
|
584
831
|
hideClose?: boolean;
|
|
585
|
-
closeProps?: DialogPrimitive.Close.Props;
|
|
586
832
|
portalProps?: DialogPrimitive.Portal.Props;
|
|
833
|
+
classNames?: {
|
|
834
|
+
/** Overlay rendered behind the dialog. */
|
|
835
|
+
backdrop?: string;
|
|
836
|
+
/** Full-screen container that centers the popup. */
|
|
837
|
+
viewport?: string;
|
|
838
|
+
/** Close (×) button rendered inside the popup. */
|
|
839
|
+
closeButton?: string;
|
|
840
|
+
};
|
|
587
841
|
}): JSX.Element;
|
|
588
842
|
|
|
589
843
|
export { DialogPrimitive }
|
|
@@ -603,12 +857,25 @@ export declare type DialogProps = Omit<DialogPrimitive.Root.Props, "children"> &
|
|
|
603
857
|
onClose?: () => void;
|
|
604
858
|
/** Hides the close (×) button inside the popup. */
|
|
605
859
|
hideClose?: boolean;
|
|
606
|
-
/**
|
|
607
|
-
closeProps?: DialogPrimitive.Close.Props;
|
|
608
|
-
/** Props forwarded to the portal. */
|
|
609
|
-
portalProps?: DialogPrimitive.Portal.Props;
|
|
610
|
-
/** Additional className forwarded to the popup panel. */
|
|
860
|
+
/** Styles the dialog popup panel. */
|
|
611
861
|
className?: string;
|
|
862
|
+
/** Styles applied to each internal slot. */
|
|
863
|
+
classNames?: {
|
|
864
|
+
/** Overlay rendered behind the dialog. */
|
|
865
|
+
backdrop?: string;
|
|
866
|
+
/** Full-screen container that centers the popup. */
|
|
867
|
+
viewport?: string;
|
|
868
|
+
/** Layout wrapper for title and description. */
|
|
869
|
+
header?: string;
|
|
870
|
+
/** Dialog heading. */
|
|
871
|
+
title?: string;
|
|
872
|
+
/** Supporting text below the title. */
|
|
873
|
+
description?: string;
|
|
874
|
+
/** Layout wrapper for footer content. */
|
|
875
|
+
footer?: string;
|
|
876
|
+
/** Close (×) button rendered inside the popup. */
|
|
877
|
+
closeButton?: string;
|
|
878
|
+
};
|
|
612
879
|
};
|
|
613
880
|
|
|
614
881
|
/** Context root. Holds open state and wraps all dialog parts. */
|
|
@@ -626,84 +893,117 @@ export declare function DialogTrigger({ className, ...props }: DialogPrimitive.T
|
|
|
626
893
|
/** Full-screen container that centers the popup. */
|
|
627
894
|
export declare function DialogViewport({ className, ...props }: DialogPrimitive.Viewport.Props): JSX.Element;
|
|
628
895
|
|
|
629
|
-
export declare
|
|
896
|
+
export declare function Divider({ className, orientation, ...props }: SeparatorPrimitive.Props): default_2.ReactElement;
|
|
630
897
|
|
|
631
898
|
export declare const DOTS = "...";
|
|
632
899
|
|
|
633
|
-
export declare
|
|
900
|
+
export declare function Dropzone({ onFileAdd, onFileRemove, onFilesChange, files, maxFiles, allowedExtensions, maxFileSize, multiple, renderAcceptedFile, renderRejectedFile, showRejected, className, classNames, icon: Icon, iconSize, onError, label, ...props }: DropzoneProps): JSX.Element;
|
|
901
|
+
|
|
902
|
+
export declare function DropzoneAcceptedFiles(props: DropzoneFilesProps): JSX.Element;
|
|
903
|
+
|
|
904
|
+
export declare function DropzoneContent({ className, ...props }: ComponentPropsWithoutRef<"div">): JSX.Element;
|
|
905
|
+
|
|
906
|
+
export declare type DropzoneFilesProps = {
|
|
907
|
+
renderFile?: (file: File, remove: () => void) => ReactNode;
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
export declare function DropzoneItem({ file, onRemove, className, renderIcon, ...props }: DropzoneItemProps): JSX.Element;
|
|
911
|
+
|
|
912
|
+
export declare type DropzoneItemProps = ComponentPropsWithoutRef<"div"> & {
|
|
913
|
+
file: File;
|
|
914
|
+
onRemove: () => void;
|
|
915
|
+
renderIcon?: (file: File) => ReactNode;
|
|
916
|
+
};
|
|
634
917
|
|
|
635
918
|
export declare type DropzoneProps = {
|
|
636
|
-
/**
|
|
637
|
-
* Función que se ejecuta cuando se agregan archivos
|
|
638
|
-
*/
|
|
639
919
|
onFileAdd?: (files: File[]) => void;
|
|
640
|
-
/**
|
|
641
|
-
* Función que se ejecuta cuando se elimina un archivo
|
|
642
|
-
*/
|
|
643
920
|
onFileRemove?: (index: number, type: "accepted" | "rejected") => void;
|
|
644
|
-
|
|
645
|
-
* Evento que captura cambios en lista de archivos
|
|
646
|
-
* @default () => {}
|
|
647
|
-
*/
|
|
648
|
-
onChangeFiles?: (files: File[]) => void;
|
|
649
|
-
/**
|
|
650
|
-
* Lista de archivos
|
|
651
|
-
* @default []
|
|
652
|
-
*/
|
|
921
|
+
onFilesChange?: (files: File[]) => void;
|
|
653
922
|
files?: File[];
|
|
654
|
-
/**
|
|
655
|
-
* Número máximo de archivos permitidos
|
|
656
|
-
* @default 1
|
|
657
|
-
*/
|
|
658
923
|
maxFiles?: number;
|
|
659
|
-
/**
|
|
660
|
-
* Lista de extensiones permitidas (e.j. ["image/jpeg", "image/png"])
|
|
661
|
-
* @default []
|
|
662
|
-
*/
|
|
663
924
|
allowedExtensions?: FileTypeValue[];
|
|
664
|
-
/**
|
|
665
|
-
* Tamaño máximo de archivo en bytes
|
|
666
|
-
* @default 5MB
|
|
667
|
-
*/
|
|
668
925
|
maxFileSize?: number;
|
|
669
|
-
/**
|
|
670
|
-
* Permite seleccionar múltiples archivos
|
|
671
|
-
*/
|
|
672
926
|
multiple?: boolean;
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
*/
|
|
676
|
-
renderAcceptedFile?: (file: File, removeItem: () => void) => React.ReactNode;
|
|
677
|
-
/**
|
|
678
|
-
* Función para renderizar cada archivo rechazado
|
|
679
|
-
*/
|
|
680
|
-
renderRejectedFile?: (file: File, removeItem: () => void) => React.ReactNode;
|
|
681
|
-
/**
|
|
682
|
-
* Mostrar archivos rechazados
|
|
683
|
-
* @default false
|
|
684
|
-
*/
|
|
927
|
+
renderAcceptedFile?: (file: File, removeItem: () => void) => ReactNode;
|
|
928
|
+
renderRejectedFile?: (file: File, removeItem: () => void) => ReactNode;
|
|
685
929
|
showRejected?: boolean;
|
|
686
|
-
/**
|
|
687
|
-
* Clase CSS para el contenedor
|
|
688
|
-
*/
|
|
689
930
|
className?: string;
|
|
690
|
-
/**
|
|
691
|
-
* Icono personalizado para el dropzone
|
|
692
|
-
* @default UploadCloud
|
|
693
|
-
*/
|
|
694
931
|
icon?: LucideIcon;
|
|
695
|
-
/**
|
|
696
|
-
* Tamaño del icono
|
|
697
|
-
* @default 40
|
|
698
|
-
*/
|
|
699
932
|
iconSize?: number;
|
|
700
|
-
/**
|
|
701
|
-
* Función que se ejecuta cuando se rechazan archivos
|
|
702
|
-
*/
|
|
703
933
|
onError?: (fileErrors: FileError[]) => void;
|
|
934
|
+
label?: string;
|
|
935
|
+
/** Styles applied to each internal slot. */
|
|
936
|
+
classNames?: {
|
|
937
|
+
/** Dashed drop area that contains the icon and label. */
|
|
938
|
+
trigger?: string;
|
|
939
|
+
/** Upload icon rendered inside the trigger. */
|
|
940
|
+
icon?: string;
|
|
941
|
+
/** Text container below the icon (label + meta lines). */
|
|
942
|
+
label?: string;
|
|
943
|
+
/** Wrapper around the accepted/rejected file lists. */
|
|
944
|
+
content?: string;
|
|
945
|
+
};
|
|
946
|
+
} & Omit<ComponentPropsWithoutRef<"div">, "onDrop" | "onError">;
|
|
947
|
+
|
|
948
|
+
export declare function DropzoneRejectedFiles(props: DropzoneFilesProps): JSX.Element;
|
|
949
|
+
|
|
950
|
+
export declare function DropzoneRoot({ onFileAdd, onFileRemove, onFilesChange, files: controlledFiles, maxFiles, allowedExtensions, maxFileSize, multiple, onError, children, className, ...props }: DropzoneRootProps): JSX.Element;
|
|
951
|
+
|
|
952
|
+
export declare type DropzoneRootProps = {
|
|
953
|
+
onFileAdd?: (files: File[]) => void;
|
|
954
|
+
onFileRemove?: (index: number, type: "accepted" | "rejected") => void;
|
|
955
|
+
onFilesChange?: (files: File[]) => void;
|
|
956
|
+
files?: File[];
|
|
957
|
+
maxFiles?: number;
|
|
958
|
+
allowedExtensions?: FileTypeValue[];
|
|
959
|
+
maxFileSize?: number;
|
|
960
|
+
multiple?: boolean;
|
|
961
|
+
onError?: (errors: FileError[]) => void;
|
|
962
|
+
children?: ReactNode;
|
|
704
963
|
} & Omit<ComponentPropsWithoutRef<"div">, "onDrop" | "onError">;
|
|
705
964
|
|
|
706
|
-
export declare
|
|
965
|
+
export declare function DropzoneTrigger({ render, className, onClick, children, ...props }: DropzoneTriggerProps): JSX.Element;
|
|
966
|
+
|
|
967
|
+
export declare type DropzoneTriggerProps = useRender.ComponentProps<"div">;
|
|
968
|
+
|
|
969
|
+
export declare function Empty({ icon, iconVariant, title, description, action, children, classNames, ...props }: EmptyProps): JSX.Element;
|
|
970
|
+
|
|
971
|
+
export declare function EmptyContent({ className, ...props }: ComponentProps<"div">): JSX.Element;
|
|
972
|
+
|
|
973
|
+
export declare function EmptyDescription({ className, ...props }: ComponentProps<"div">): JSX.Element;
|
|
974
|
+
|
|
975
|
+
export declare function EmptyHeader({ className, ...props }: ComponentProps<"div">): JSX.Element;
|
|
976
|
+
|
|
977
|
+
export declare function EmptyMedia({ className, variant, ...props }: ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): JSX.Element;
|
|
978
|
+
|
|
979
|
+
declare const emptyMediaVariants: (props?: ({
|
|
980
|
+
variant?: "default" | "icon" | null | undefined;
|
|
981
|
+
} & ClassProp) | undefined) => string;
|
|
982
|
+
|
|
983
|
+
declare interface EmptyProps extends Omit<ComponentProps<typeof EmptyRoot>, "title"> {
|
|
984
|
+
icon?: ReactNode;
|
|
985
|
+
iconVariant?: VariantProps<typeof emptyMediaVariants>["variant"];
|
|
986
|
+
title?: ReactNode;
|
|
987
|
+
description?: ReactNode;
|
|
988
|
+
action?: ReactNode;
|
|
989
|
+
/** Styles applied to each internal slot. */
|
|
990
|
+
classNames?: {
|
|
991
|
+
/** Wrapper around media, title and description. */
|
|
992
|
+
header?: string;
|
|
993
|
+
/** Box that frames the icon (chip when `iconVariant="icon"`). */
|
|
994
|
+
media?: string;
|
|
995
|
+
/** Title text. */
|
|
996
|
+
title?: string;
|
|
997
|
+
/** Description text below the title. */
|
|
998
|
+
description?: string;
|
|
999
|
+
/** Wrapper around the `action` slot. */
|
|
1000
|
+
content?: string;
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
export declare function EmptyRoot({ className, ...props }: ComponentProps<"div">): JSX.Element;
|
|
1005
|
+
|
|
1006
|
+
export declare function EmptyTitle({ className, ...props }: ComponentProps<"div">): JSX.Element;
|
|
707
1007
|
|
|
708
1008
|
export declare const ensureReactElement: <P>({ children, as: Wrapper, props, }: EnsureReactElementProps<P>) => ReactElement;
|
|
709
1009
|
|
|
@@ -717,32 +1017,6 @@ export declare type Entity<T> = {
|
|
|
717
1017
|
[K in keyof T]: T[K];
|
|
718
1018
|
} & BaseEntity;
|
|
719
1019
|
|
|
720
|
-
declare interface ExtendedProps {
|
|
721
|
-
containerClassName: ClassName;
|
|
722
|
-
inputClassName: ClassName;
|
|
723
|
-
listClassName: ClassName;
|
|
724
|
-
itemClassName: ClassName;
|
|
725
|
-
emptyClassName: ClassName;
|
|
726
|
-
containerProps: ComponentProps<typeof AutoCompleteRoot>;
|
|
727
|
-
inputProps: ComponentProps<typeof AutoCompleteInput>;
|
|
728
|
-
listProps: ComponentProps<typeof AutoCompleteList>;
|
|
729
|
-
itemProps: ComponentProps<typeof AutoCompleteItem>;
|
|
730
|
-
emptyProps: ComponentProps<typeof AutoCompleteEmpty>;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
declare interface ExtendedProps_2 {
|
|
734
|
-
theadClassName?: ClassName;
|
|
735
|
-
theadProps?: HTMLProps<HTMLTableSectionElement>;
|
|
736
|
-
tbodyClassName?: ClassName;
|
|
737
|
-
tbodyProps?: HTMLProps<HTMLTableSectionElement>;
|
|
738
|
-
trClassName?: ClassName;
|
|
739
|
-
trProps?: HTMLProps<HTMLTableRowElement>;
|
|
740
|
-
thClassName?: ClassName;
|
|
741
|
-
thProps?: HTMLProps<HTMLTableCellElement>;
|
|
742
|
-
tdClassName?: ClassName;
|
|
743
|
-
tdProps?: Omit<HTMLProps<HTMLTableCellElement>, "onDoubleClick">;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
1020
|
/**
|
|
747
1021
|
* Extracts the initials from a string.
|
|
748
1022
|
* @param {string} string - The input string.
|
|
@@ -750,7 +1024,7 @@ declare interface ExtendedProps_2 {
|
|
|
750
1024
|
*/
|
|
751
1025
|
export declare const extractInitials: (string: string) => string;
|
|
752
1026
|
|
|
753
|
-
export declare function Field({ label, description, error, required, tooltip, inline, children, className,
|
|
1027
|
+
export declare function Field({ label, description, error, required, tooltip, inline, children, className, classNames, invalid, ...rootProps }: FieldProps): JSX.Element;
|
|
754
1028
|
|
|
755
1029
|
export declare const FieldControl: typeof FieldPrimitive.Control;
|
|
756
1030
|
|
|
@@ -771,6 +1045,8 @@ export declare function FieldItem({ className, ...props }: FieldPrimitive.Item.P
|
|
|
771
1045
|
|
|
772
1046
|
export declare function FieldLabel({ className, ...props }: FieldPrimitive.Label.Props): JSX.Element;
|
|
773
1047
|
|
|
1048
|
+
export declare function FieldLegend({ className, ...props }: FieldsetPrimitive.Legend.Props): JSX.Element;
|
|
1049
|
+
|
|
774
1050
|
export { FieldPrimitive }
|
|
775
1051
|
|
|
776
1052
|
export declare interface FieldProps extends Omit<FieldPrimitive.Root.Props, "children"> {
|
|
@@ -795,27 +1071,34 @@ export declare interface FieldProps extends Omit<FieldPrimitive.Root.Props, "chi
|
|
|
795
1071
|
*/
|
|
796
1072
|
inline?: boolean;
|
|
797
1073
|
children?: ReactNode;
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
1074
|
+
/** Styles applied to each internal slot. */
|
|
1075
|
+
classNames?: {
|
|
1076
|
+
/** Label rendered above (or beside, when `inline`) the control. */
|
|
1077
|
+
label?: string;
|
|
1078
|
+
/** Helper text below the control. */
|
|
1079
|
+
description?: string;
|
|
1080
|
+
/** Error message rendered when the field is invalid. */
|
|
1081
|
+
error?: string;
|
|
1082
|
+
};
|
|
804
1083
|
}
|
|
805
1084
|
|
|
806
|
-
export declare function FieldRoot({ className, required, ...props }: FieldPrimitive.Root.Props & {
|
|
1085
|
+
export declare function FieldRoot({ className, required, name, ...props }: FieldPrimitive.Root.Props & {
|
|
807
1086
|
required?: boolean;
|
|
808
1087
|
}): JSX.Element;
|
|
809
1088
|
|
|
1089
|
+
export declare function FieldSet({ className, ...props }: FieldsetPrimitive.Root.Props): JSX.Element;
|
|
1090
|
+
|
|
1091
|
+
export { FieldsetPrimitive }
|
|
1092
|
+
|
|
810
1093
|
export declare const FieldValidity: typeof FieldPrimitive.Validity;
|
|
811
1094
|
|
|
812
|
-
declare type FileError = {
|
|
1095
|
+
export declare type FileError = {
|
|
813
1096
|
file: File;
|
|
814
1097
|
errorMessage: string;
|
|
815
1098
|
errorCode: FileErrorCode;
|
|
816
1099
|
};
|
|
817
1100
|
|
|
818
|
-
declare type FileErrorCode = "INVALID_EXTENSION" | "FILE_TOO_LARGE" | "MAX_FILES_EXCEEDED";
|
|
1101
|
+
export declare type FileErrorCode = "INVALID_EXTENSION" | "FILE_TOO_LARGE" | "MAX_FILES_EXCEEDED";
|
|
819
1102
|
|
|
820
1103
|
export declare const FileType: {
|
|
821
1104
|
readonly JPEG: "image/jpeg";
|
|
@@ -847,22 +1130,11 @@ export declare const FileTypeGroups: Record<string, FileTypeValue[]>;
|
|
|
847
1130
|
|
|
848
1131
|
export declare type FileTypeValue = (typeof FileType)[keyof typeof FileType];
|
|
849
1132
|
|
|
850
|
-
export declare function Form(
|
|
1133
|
+
export declare function Form(props: FormProps): default_2.ReactElement;
|
|
851
1134
|
|
|
852
1135
|
export { FormPrimitive }
|
|
853
1136
|
|
|
854
|
-
export declare
|
|
855
|
-
onSubmit?: BaseProps["onFormSubmit"];
|
|
856
|
-
onFormSubmit?: BaseProps["onFormSubmit"];
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
export declare interface GenericMenuProps {
|
|
860
|
-
trigger: default_2.ReactNode;
|
|
861
|
-
items: MenuItemType[];
|
|
862
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
863
|
-
offset?: ComponentPropsWithoutRef<typeof MenuContent>["sideOffset"];
|
|
864
|
-
contentProps?: ComponentPropsWithoutRef<typeof MenuContent>;
|
|
865
|
-
}
|
|
1137
|
+
export declare type FormProps = FormPrimitive.Props;
|
|
866
1138
|
|
|
867
1139
|
export declare type GenericObject<T = any> = {
|
|
868
1140
|
[key: string]: T;
|
|
@@ -872,12 +1144,30 @@ declare type GenericObject_2 = Record<string, any>;
|
|
|
872
1144
|
|
|
873
1145
|
export declare const getFormData: (event: FormEvent<HTMLFormElement>) => Record<string, string>;
|
|
874
1146
|
|
|
875
|
-
export declare
|
|
1147
|
+
export declare type GetPageHref = (state: {
|
|
1148
|
+
page: number;
|
|
1149
|
+
pageSize: number;
|
|
1150
|
+
}) => string;
|
|
1151
|
+
|
|
1152
|
+
export declare function HookField<T extends FieldValues = FieldValues, TName extends FieldPath<T> = FieldPath<T>>({ name, rules, render, ...fieldProps }: HookFieldProps<T, TName>): JSX.Element;
|
|
876
1153
|
|
|
877
|
-
declare
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
1154
|
+
declare type HookFieldProps<T extends FieldValues = FieldValues, TName extends FieldPath<T> = FieldPath<T>> = Omit<FieldProps, "children" | "error" | "render" | "name"> & {
|
|
1155
|
+
name: TName;
|
|
1156
|
+
rules?: RegisterOptions<T, TName>;
|
|
1157
|
+
render: (field: HookFieldRenderProps<T, TName>) => ReactNode;
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
export declare type HookFieldRenderProps<T extends FieldValues = FieldValues, TName extends FieldPath<T> = FieldPath<T>> = ControllerRenderProps<T, TName> & {
|
|
1161
|
+
invalid: boolean;
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
export declare function HookForm<T extends FieldValues>({ form, onFormSubmit, children, ...props }: HookFormProps<T>): JSX.Element;
|
|
1165
|
+
|
|
1166
|
+
declare type HookFormProps<T extends FieldValues> = Omit<ComponentProps<typeof Form>, "onSubmit" | "onFormSubmit" | "children"> & {
|
|
1167
|
+
form: UseFormReturn<T>;
|
|
1168
|
+
onFormSubmit: SubmitHandler<T>;
|
|
1169
|
+
children: ReactNode;
|
|
1170
|
+
};
|
|
881
1171
|
|
|
882
1172
|
declare type HotkeyEventName = "keydown" | "keypress" | "keyup";
|
|
883
1173
|
|
|
@@ -890,35 +1180,33 @@ declare type HotkeyOptions = {
|
|
|
890
1180
|
|
|
891
1181
|
export declare type ID = string | number;
|
|
892
1182
|
|
|
893
|
-
export declare function Input({ className, nativeInput,
|
|
1183
|
+
export declare function Input({ className, nativeInput, onValueChange, ...props }: InputProps): JSX.Element;
|
|
894
1184
|
|
|
895
1185
|
export declare const inputBaseClasses = "h-10 w-full px-3 py-2 rounded-md border border-input bg-background text-sm outline-none transition-shadow placeholder:text-muted-foreground";
|
|
896
1186
|
|
|
897
1187
|
export { InputPrimitive }
|
|
898
1188
|
|
|
899
1189
|
export declare type InputProps = Omit<InputPrimitive.Props, "size" | "onChange"> & {
|
|
900
|
-
|
|
1190
|
+
onValueChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
|
901
1191
|
nativeInput?: boolean;
|
|
902
1192
|
};
|
|
903
1193
|
|
|
904
|
-
declare interface ItemTimeline {
|
|
905
|
-
content?: ReactNode;
|
|
906
|
-
icon?: ReactNode;
|
|
907
|
-
status?: "done" | "pending" | "error";
|
|
908
|
-
color?: string;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
1194
|
export declare function Kbd({ className, ...props }: React_2.ComponentProps<"kbd">): React_2.ReactElement;
|
|
912
1195
|
|
|
913
1196
|
export declare function KbdGroup({ className, ...props }: React_2.ComponentProps<"kbd">): React_2.ReactElement;
|
|
914
1197
|
|
|
915
|
-
declare
|
|
916
|
-
|
|
917
|
-
export declare function Label({ className, render, required, tooltip, children, ...props }: LabelProps): default_2.ReactElement;
|
|
1198
|
+
export declare function Label({ className, render, required, tooltip, classNames, children, ...props }: LabelProps): default_2.ReactElement;
|
|
918
1199
|
|
|
919
1200
|
declare interface LabelProps extends useRender.ComponentProps<"label"> {
|
|
920
1201
|
required?: boolean;
|
|
921
1202
|
tooltip?: ReactNode;
|
|
1203
|
+
/** Styles applied to each internal slot. */
|
|
1204
|
+
classNames?: {
|
|
1205
|
+
/** Red asterisk rendered when `required` is true. */
|
|
1206
|
+
asterisk?: string;
|
|
1207
|
+
/** Info-icon button rendered when `tooltip` is set. */
|
|
1208
|
+
tooltip?: string;
|
|
1209
|
+
};
|
|
922
1210
|
}
|
|
923
1211
|
|
|
924
1212
|
/**
|
|
@@ -948,13 +1236,22 @@ export declare type LibraryProviderProps = {
|
|
|
948
1236
|
tooltipDelay?: ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>["delay"];
|
|
949
1237
|
} & Omit<ToastProviderProps, "children">;
|
|
950
1238
|
|
|
951
|
-
export declare
|
|
1239
|
+
export declare type LinkComponent = ElementType<LinkRenderProps> | ComponentType<LinkRenderProps>;
|
|
1240
|
+
|
|
1241
|
+
export declare type LinkRenderProps = {
|
|
1242
|
+
href: string;
|
|
1243
|
+
children?: ReactNode;
|
|
1244
|
+
className?: string;
|
|
1245
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
export declare const Loader: ({ center, classNames, variant, size, ...props }: Props_3) => JSX.Element;
|
|
952
1249
|
|
|
953
1250
|
declare type LoaderVariants = VariantProps<typeof loaderVariants>;
|
|
954
1251
|
|
|
955
1252
|
declare const loaderVariants: (props?: ({
|
|
956
|
-
variant?: "
|
|
957
|
-
size?: "default" | "
|
|
1253
|
+
variant?: "secondary" | "ghost" | "error" | "success" | "warning" | "primary" | "info" | null | undefined;
|
|
1254
|
+
size?: "default" | "xs" | "sm" | "lg" | "xl" | null | undefined;
|
|
958
1255
|
} & ClassProp) | undefined) => string;
|
|
959
1256
|
|
|
960
1257
|
export declare type Loose<T> = T | (string & {});
|
|
@@ -965,99 +1262,111 @@ export declare type MaybeRef<T> = T | MutableRefObject<T>;
|
|
|
965
1262
|
|
|
966
1263
|
declare type MaybeReturn<TState> = Return<TState | undefined, ((state: TState | undefined) => Partial<TState>) | Partial<TState>>;
|
|
967
1264
|
|
|
968
|
-
export declare const Menu: ({ trigger, items,
|
|
969
|
-
|
|
970
|
-
export declare const MenuCheckboxItem: ({ className, children, checked, ...props }: MenuCheckboxItemProps) => JSX.Element;
|
|
971
|
-
|
|
972
|
-
declare type MenuCheckboxItemProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>;
|
|
1265
|
+
export declare const Menu: ({ trigger, items, className, side, align, offset, alignOffset, classNames, }: MenuProps) => JSX.Element;
|
|
973
1266
|
|
|
974
|
-
export declare
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
export declare const MenuGroup: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.Group>) => JSX.Element;
|
|
1267
|
+
export declare function MenuCheckboxItem({ className, children, checked, inset, ...props }: Menu_2.CheckboxItem.Props & {
|
|
1268
|
+
inset?: boolean;
|
|
1269
|
+
}): JSX.Element;
|
|
979
1270
|
|
|
980
|
-
export declare
|
|
1271
|
+
export declare function MenuGroup({ ...props }: Menu_2.Group.Props): JSX.Element;
|
|
981
1272
|
|
|
982
|
-
declare
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}
|
|
1273
|
+
export declare function MenuItem({ className, inset, variant, ...props }: Menu_2.Item.Props & {
|
|
1274
|
+
inset?: boolean;
|
|
1275
|
+
variant?: "default" | "error";
|
|
1276
|
+
}): JSX.Element;
|
|
986
1277
|
|
|
987
|
-
declare type MenuItemCheckbox =
|
|
1278
|
+
declare type MenuItemCheckbox = {
|
|
988
1279
|
type: "checkbox";
|
|
1280
|
+
label: React_2.ReactNode;
|
|
1281
|
+
shortcut?: string;
|
|
1282
|
+
} & Omit<React_2.ComponentProps<typeof MenuCheckboxItem>, "children">;
|
|
1283
|
+
|
|
1284
|
+
declare type MenuItemGroup = {
|
|
1285
|
+
type: "group";
|
|
1286
|
+
label?: React_2.ReactNode;
|
|
1287
|
+
items: MenuItemType[];
|
|
989
1288
|
};
|
|
990
1289
|
|
|
991
|
-
declare type MenuItemItem =
|
|
1290
|
+
declare type MenuItemItem = {
|
|
992
1291
|
type: "item";
|
|
993
|
-
|
|
1292
|
+
label: React_2.ReactNode;
|
|
1293
|
+
shortcut?: string;
|
|
1294
|
+
} & Omit<React_2.ComponentProps<typeof MenuItem>, "children">;
|
|
994
1295
|
|
|
995
|
-
declare type MenuItemLabel =
|
|
1296
|
+
declare type MenuItemLabel = {
|
|
996
1297
|
type: "label";
|
|
997
|
-
|
|
1298
|
+
label: React_2.ReactNode;
|
|
1299
|
+
} & Omit<React_2.ComponentProps<typeof MenuLabel>, "children">;
|
|
998
1300
|
|
|
999
|
-
declare type
|
|
1000
|
-
inset?: boolean;
|
|
1001
|
-
};
|
|
1002
|
-
|
|
1003
|
-
declare type MenuItemRadio = MenuItemBase<typeof MenuRadioItem> & {
|
|
1301
|
+
declare type MenuItemRadio = {
|
|
1004
1302
|
type: "radio";
|
|
1303
|
+
label: React_2.ReactNode;
|
|
1304
|
+
shortcut?: string;
|
|
1305
|
+
} & Omit<React_2.ComponentProps<typeof MenuRadioItem>, "children">;
|
|
1306
|
+
|
|
1307
|
+
declare type MenuItemRadioGroup = {
|
|
1308
|
+
type: "radio-group";
|
|
1309
|
+
value?: string;
|
|
1310
|
+
onValueChange?: (value: string) => void;
|
|
1311
|
+
items: MenuItemRadio[];
|
|
1005
1312
|
};
|
|
1006
1313
|
|
|
1007
|
-
declare type MenuItemSeparator =
|
|
1314
|
+
declare type MenuItemSeparator = {
|
|
1008
1315
|
type: "separator";
|
|
1009
|
-
}
|
|
1316
|
+
} & React_2.ComponentProps<typeof MenuSeparator>;
|
|
1010
1317
|
|
|
1011
|
-
declare type MenuItemSubmenu =
|
|
1318
|
+
declare type MenuItemSubmenu = {
|
|
1012
1319
|
type: "submenu";
|
|
1320
|
+
label: React_2.ReactNode;
|
|
1013
1321
|
items: MenuItemType[];
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
export declare type MenuItemType = MenuItemItem | MenuItemCheckbox | MenuItemRadio | MenuItemLabel | MenuItemSeparator | MenuItemSubmenu;
|
|
1322
|
+
} & Omit<React_2.ComponentProps<typeof MenuSubTrigger>, "children">;
|
|
1017
1323
|
|
|
1018
|
-
export declare
|
|
1324
|
+
export declare type MenuItemType = MenuItemItem | MenuItemCheckbox | MenuItemRadio | MenuItemRadioGroup | MenuItemLabel | MenuItemSeparator | MenuItemGroup | MenuItemSubmenu;
|
|
1019
1325
|
|
|
1020
|
-
declare
|
|
1326
|
+
export declare function MenuLabel({ className, inset, ...props }: Menu_2.GroupLabel.Props & {
|
|
1021
1327
|
inset?: boolean;
|
|
1022
|
-
};
|
|
1023
|
-
|
|
1024
|
-
export declare const MenuPortal: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.Portal>) => JSX.Element;
|
|
1025
|
-
|
|
1026
|
-
export declare const MenuRadioGroup: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) => JSX.Element;
|
|
1027
|
-
|
|
1028
|
-
export declare const MenuRadioItem: ({ className, children, ...props }: MenuRadioItemProps) => JSX.Element;
|
|
1029
|
-
|
|
1030
|
-
declare type MenuRadioItemProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>;
|
|
1328
|
+
}): JSX.Element;
|
|
1031
1329
|
|
|
1032
|
-
export declare
|
|
1330
|
+
export declare function MenuPopup({ align, alignOffset, side, sideOffset, className, ...props }: Menu_2.Popup.Props & Pick<Menu_2.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): JSX.Element;
|
|
1033
1331
|
|
|
1034
|
-
export declare
|
|
1332
|
+
export declare function MenuPortal({ ...props }: Menu_2.Portal.Props): JSX.Element;
|
|
1035
1333
|
|
|
1036
|
-
declare
|
|
1334
|
+
export declare interface MenuProps {
|
|
1335
|
+
trigger: React_2.ReactElement;
|
|
1336
|
+
items: MenuItemType[];
|
|
1337
|
+
className?: string;
|
|
1338
|
+
side?: React_2.ComponentProps<typeof MenuPopup>["side"];
|
|
1339
|
+
align?: React_2.ComponentProps<typeof MenuPopup>["align"];
|
|
1340
|
+
offset?: React_2.ComponentProps<typeof MenuPopup>["sideOffset"];
|
|
1341
|
+
alignOffset?: React_2.ComponentProps<typeof MenuPopup>["alignOffset"];
|
|
1342
|
+
/** Styles applied to each internal slot. */
|
|
1343
|
+
classNames?: {
|
|
1344
|
+
/** Popup panel that opens below the trigger. */
|
|
1345
|
+
popup?: string;
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1037
1348
|
|
|
1038
|
-
export declare
|
|
1349
|
+
export declare function MenuRadioGroup({ ...props }: Menu_2.RadioGroup.Props): JSX.Element;
|
|
1039
1350
|
|
|
1040
|
-
declare
|
|
1351
|
+
export declare function MenuRadioItem({ className, children, inset, ...props }: Menu_2.RadioItem.Props & {
|
|
1352
|
+
inset?: boolean;
|
|
1353
|
+
}): JSX.Element;
|
|
1041
1354
|
|
|
1042
|
-
declare
|
|
1043
|
-
keys: Keys;
|
|
1044
|
-
handler: (event: KeyboardEvent) => any;
|
|
1045
|
-
options?: HotkeyOptions;
|
|
1046
|
-
};
|
|
1355
|
+
export declare function MenuRoot({ ...props }: Menu_2.Root.Props): JSX.Element;
|
|
1047
1356
|
|
|
1048
|
-
export declare
|
|
1357
|
+
export declare function MenuSeparator({ className, ...props }: Menu_2.Separator.Props): JSX.Element;
|
|
1049
1358
|
|
|
1050
|
-
export declare
|
|
1359
|
+
export declare function MenuShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
|
|
1051
1360
|
|
|
1052
|
-
declare
|
|
1361
|
+
export declare function MenuSub({ ...props }: Menu_2.SubmenuRoot.Props): JSX.Element;
|
|
1053
1362
|
|
|
1054
|
-
export declare
|
|
1363
|
+
export declare function MenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React_2.ComponentProps<typeof MenuPopup>): JSX.Element;
|
|
1055
1364
|
|
|
1056
|
-
declare
|
|
1365
|
+
export declare function MenuSubTrigger({ className, inset, children, ...props }: Menu_2.SubmenuTrigger.Props & {
|
|
1057
1366
|
inset?: boolean;
|
|
1058
|
-
};
|
|
1367
|
+
}): JSX.Element;
|
|
1059
1368
|
|
|
1060
|
-
export declare
|
|
1369
|
+
export declare function MenuTrigger({ ...props }: Menu_2.Trigger.Props): JSX.Element;
|
|
1061
1370
|
|
|
1062
1371
|
export declare function mergeRefs<T = any>(refs: Array<React_2.MutableRefObject<T> | React_2.LegacyRef<T> | undefined | null>): React_2.RefCallback<T>;
|
|
1063
1372
|
|
|
@@ -1065,7 +1374,7 @@ export declare type MultipleDatePickerProps = DatePickerBaseProps & {
|
|
|
1065
1374
|
mode: "multiple";
|
|
1066
1375
|
value?: Date[];
|
|
1067
1376
|
defaultValue?: Date[];
|
|
1068
|
-
|
|
1377
|
+
onValueChange?: (value: Date[]) => void;
|
|
1069
1378
|
placeholder?: string;
|
|
1070
1379
|
};
|
|
1071
1380
|
|
|
@@ -1076,64 +1385,15 @@ declare type MultipleFooterProps = {
|
|
|
1076
1385
|
setValue: (value: Date[]) => void;
|
|
1077
1386
|
};
|
|
1078
1387
|
|
|
1079
|
-
export declare const MultiSelect: <TItem extends Record<string, any> = Option_2>({ items, value, valueKey, labelKey, onChange, variant, defaultValue, placeholder, maxCount, className, renderOption, withCheckbox, showSearch, showSelectAll, rootProps, ...props }: MultiSelectProps<TItem>) => JSX.Element;
|
|
1080
|
-
|
|
1081
|
-
declare type MultiSelectProps<TItem extends Record<string, any>> = OverrideProps<React_2.ButtonHTMLAttributes<HTMLButtonElement> & OpenProps & VariantProps<typeof multiSelectVariants>, {
|
|
1082
|
-
items: TItem[];
|
|
1083
|
-
/**
|
|
1084
|
-
* Identificador del valor del elemento
|
|
1085
|
-
* @default "value"
|
|
1086
|
-
*/
|
|
1087
|
-
valueKey?: keyof TItem;
|
|
1088
|
-
/**
|
|
1089
|
-
* Identificador del label del elemento
|
|
1090
|
-
* @default "label"
|
|
1091
|
-
*/
|
|
1092
|
-
value?: string[];
|
|
1093
|
-
onChange?: (value: string[]) => void;
|
|
1094
|
-
defaultValue?: string[];
|
|
1095
|
-
labelKey?: keyof TItem;
|
|
1096
|
-
placeholder?: string;
|
|
1097
|
-
/**
|
|
1098
|
-
* Cantidad máxima de elementos que se van a visualizar
|
|
1099
|
-
* @default 3
|
|
1100
|
-
*/
|
|
1101
|
-
maxCount?: number;
|
|
1102
|
-
className?: string;
|
|
1103
|
-
renderOption?: (item: TItem) => React_2.ReactNode;
|
|
1104
|
-
withCheckbox?: boolean;
|
|
1105
|
-
/**
|
|
1106
|
-
* Para mostrar o no la barra de búsqueda
|
|
1107
|
-
* @default true
|
|
1108
|
-
*/
|
|
1109
|
-
showSearch?: boolean;
|
|
1110
|
-
/**
|
|
1111
|
-
* Para mostrar o no el "Seleccionar todos"
|
|
1112
|
-
* @default true
|
|
1113
|
-
*/
|
|
1114
|
-
showSelectAll?: boolean;
|
|
1115
|
-
/**
|
|
1116
|
-
* Props del PopoverRoot
|
|
1117
|
-
*/
|
|
1118
|
-
rootProps?: React_2.ComponentPropsWithoutRef<typeof PopoverRoot>;
|
|
1119
|
-
}>;
|
|
1120
|
-
|
|
1121
|
-
declare const multiSelectVariants: (props?: ({
|
|
1122
|
-
variant?: "default" | "error" | "secondary" | "primary" | null | undefined;
|
|
1123
|
-
} & ClassProp) | undefined) => string;
|
|
1124
|
-
|
|
1125
1388
|
declare type Mutation<TArgs extends any[], TReturn> = (...args: TArgs) => Promise<TReturn>;
|
|
1126
1389
|
|
|
1127
|
-
declare type NonClosableProps = BaseProps_2 & {
|
|
1128
|
-
closable?: false;
|
|
1129
|
-
onClose?: never;
|
|
1130
|
-
};
|
|
1131
|
-
|
|
1132
1390
|
declare type noop = (this: any, ...args: any[]) => any;
|
|
1133
1391
|
|
|
1392
|
+
export declare function normalizeError(error: FieldErrorProp | undefined): FieldErrorItem[];
|
|
1393
|
+
|
|
1134
1394
|
export declare type Nullable<T> = T | null;
|
|
1135
1395
|
|
|
1136
|
-
export declare function NumberInput({ className, hideControls,
|
|
1396
|
+
export declare function NumberInput({ className, hideControls, onValueChange, invalid, placeholder, classNames, ...props }: NumberInputProps): JSX.Element;
|
|
1137
1397
|
|
|
1138
1398
|
export declare function NumberInputCursorIcon(props: ComponentProps<"svg">): JSX.Element;
|
|
1139
1399
|
|
|
@@ -1150,16 +1410,21 @@ export { NumberInputPrimitive }
|
|
|
1150
1410
|
export declare interface NumberInputProps extends NumberInputPrimitive.Root.Props {
|
|
1151
1411
|
/** Hides the increment/decrement buttons. */
|
|
1152
1412
|
hideControls?: boolean;
|
|
1153
|
-
/** Shorthand for `onValueChange` — receives only the value, without event details. */
|
|
1154
|
-
onChange?: (value: number | null) => void;
|
|
1155
1413
|
/** Marks the field as invalid, adding the error border to the group. */
|
|
1156
1414
|
invalid?: boolean;
|
|
1157
1415
|
/** Forwarded to the underlying input element. */
|
|
1158
1416
|
placeholder?: string;
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1417
|
+
/** Styles applied to each internal slot. */
|
|
1418
|
+
classNames?: {
|
|
1419
|
+
/** Native `<input>` element. */
|
|
1420
|
+
input?: string;
|
|
1421
|
+
/** Column wrapper around the increment/decrement buttons. */
|
|
1422
|
+
controls?: string;
|
|
1423
|
+
/** Increment button (Chevron up). */
|
|
1424
|
+
increment?: string;
|
|
1425
|
+
/** Decrement button (Chevron down). */
|
|
1426
|
+
decrement?: string;
|
|
1427
|
+
};
|
|
1163
1428
|
}
|
|
1164
1429
|
|
|
1165
1430
|
export declare function NumberInputRoot({ className, ...props }: NumberInputPrimitive.Root.Props): JSX.Element;
|
|
@@ -1168,12 +1433,6 @@ export declare function NumberInputScrubArea({ className, ...props }: NumberInpu
|
|
|
1168
1433
|
|
|
1169
1434
|
export declare function NumberInputScrubAreaCursor({ className, ...props }: NumberInputPrimitive.ScrubAreaCursor.Props): JSX.Element;
|
|
1170
1435
|
|
|
1171
|
-
declare type OpenProps = {
|
|
1172
|
-
open?: boolean;
|
|
1173
|
-
onOpenChange?: (open: boolean) => void;
|
|
1174
|
-
defaultOpen?: boolean;
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
1436
|
declare interface Option_2<TValue = string> {
|
|
1178
1437
|
label: string;
|
|
1179
1438
|
value: TValue;
|
|
@@ -1183,15 +1442,164 @@ export { Option_2 as Option }
|
|
|
1183
1442
|
|
|
1184
1443
|
export declare type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> & TOverridden;
|
|
1185
1444
|
|
|
1186
|
-
export declare type PageSize = (typeof
|
|
1445
|
+
export declare type PageSize = (typeof PAGINATION_SIZES)[number] | number;
|
|
1446
|
+
|
|
1447
|
+
export declare function Pagination({ sizes, selectClassName, rangeClassName, previousClassName, nextClassName, className, ...rootProps }: PaginationProps): JSX.Element;
|
|
1448
|
+
|
|
1449
|
+
export declare const PAGINATION_SIZES: readonly [10, 25, 50];
|
|
1450
|
+
|
|
1451
|
+
export declare interface PaginationContextValue {
|
|
1452
|
+
currentPage: number;
|
|
1453
|
+
maxPage: number;
|
|
1454
|
+
pageSize: PageSize;
|
|
1455
|
+
totalItems: number;
|
|
1456
|
+
paginationRange: (string | number)[];
|
|
1457
|
+
range: {
|
|
1458
|
+
start: number;
|
|
1459
|
+
end: number;
|
|
1460
|
+
};
|
|
1461
|
+
isFirstPage: boolean;
|
|
1462
|
+
isLastPage: boolean;
|
|
1463
|
+
goTo: (page: number) => void;
|
|
1464
|
+
next: () => void;
|
|
1465
|
+
prev: () => void;
|
|
1466
|
+
setPageSize: (size: PageSize) => void;
|
|
1467
|
+
getPageHref?: GetPageHref;
|
|
1468
|
+
linkComponent: LinkComponent;
|
|
1469
|
+
texts: PaginationTexts;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
export declare function PaginationEllipsis({ className, ...props }: ComponentProps<"span">): JSX.Element;
|
|
1187
1473
|
|
|
1188
|
-
export declare
|
|
1474
|
+
export declare function PaginationFirst({ className, buttonProps, children, }: PaginationNavProps): JSX.Element;
|
|
1189
1475
|
|
|
1190
|
-
declare
|
|
1476
|
+
export declare function PaginationLast({ className, buttonProps, children, }: PaginationNavProps): JSX.Element;
|
|
1477
|
+
|
|
1478
|
+
export declare function PaginationLink({ page, isActive: isActiveProp, className, children, buttonProps, }: PaginationLinkProps): JSX.Element;
|
|
1479
|
+
|
|
1480
|
+
declare interface PaginationLinkProps {
|
|
1481
|
+
page: number;
|
|
1191
1482
|
isActive?: boolean;
|
|
1483
|
+
className?: string;
|
|
1484
|
+
children?: ReactNode;
|
|
1485
|
+
buttonProps?: ButtonOverrides;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
declare interface PaginationNavProps {
|
|
1489
|
+
className?: string;
|
|
1490
|
+
buttonProps?: ButtonOverrides;
|
|
1491
|
+
children?: ReactNode;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
export declare function PaginationNext({ className, buttonProps, children, }: PaginationNavProps): JSX.Element;
|
|
1495
|
+
|
|
1496
|
+
export declare function PaginationPageInfo({ children, className, ...props }: PaginationPageInfoProps): JSX.Element;
|
|
1497
|
+
|
|
1498
|
+
declare interface PaginationPageInfoProps {
|
|
1499
|
+
className?: string;
|
|
1500
|
+
/**
|
|
1501
|
+
* Custom content. Receives `{ page, max }`, or pass a static ReactNode.
|
|
1502
|
+
* @default `Página ${page} de ${max}`
|
|
1503
|
+
*/
|
|
1504
|
+
children?: ReactNode | ((state: {
|
|
1505
|
+
page: number;
|
|
1506
|
+
max: number;
|
|
1507
|
+
}) => ReactNode);
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
export declare function PaginationPages({ className, linkClassName, ellipsisClassName, }: PaginationPagesProps): JSX.Element;
|
|
1511
|
+
|
|
1512
|
+
declare interface PaginationPagesProps {
|
|
1513
|
+
className?: string;
|
|
1514
|
+
linkClassName?: string;
|
|
1515
|
+
ellipsisClassName?: string;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
export declare function PaginationPrevious({ className, buttonProps, children, }: PaginationNavProps): JSX.Element;
|
|
1519
|
+
|
|
1520
|
+
export declare interface PaginationProps extends Omit<PaginationRootProps, "children"> {
|
|
1521
|
+
sizes?: readonly PageSize[] | PageSize[] | false;
|
|
1522
|
+
selectClassName?: string;
|
|
1523
|
+
rangeClassName?: string;
|
|
1524
|
+
previousClassName?: string;
|
|
1525
|
+
nextClassName?: string;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
export declare function PaginationRange({ children, className, ...props }: PaginationRangeProps): JSX.Element;
|
|
1529
|
+
|
|
1530
|
+
declare interface PaginationRangeProps {
|
|
1531
|
+
className?: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* Custom content. Receives `{ start, end, total }`, or pass a static ReactNode.
|
|
1534
|
+
* @default `${start} - ${end} de ${total}`
|
|
1535
|
+
*/
|
|
1536
|
+
children?: ReactNode | ((state: {
|
|
1537
|
+
start: number;
|
|
1538
|
+
end: number;
|
|
1539
|
+
total: number;
|
|
1540
|
+
}) => ReactNode);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
export declare function PaginationRoot({ totalItems, pageSize: pageSizeProp, defaultPageSize, onPageSizeChange, currentPage, defaultCurrentPage, onCurrentPageChange, siblingCount, getPageHref, linkComponent, texts: textsProp, className, children, ...props }: PaginationRootProps): JSX.Element;
|
|
1544
|
+
|
|
1545
|
+
export declare interface PaginationRootProps extends Omit<ComponentProps<"nav">, "onChange"> {
|
|
1546
|
+
totalItems: number;
|
|
1547
|
+
pageSize?: PageSize;
|
|
1548
|
+
defaultPageSize?: PageSize;
|
|
1549
|
+
onPageSizeChange?: (size: PageSize) => void;
|
|
1550
|
+
currentPage?: number;
|
|
1551
|
+
defaultCurrentPage?: number;
|
|
1552
|
+
onCurrentPageChange?: (page: number) => void;
|
|
1553
|
+
siblingCount?: number;
|
|
1554
|
+
getPageHref?: GetPageHref;
|
|
1555
|
+
linkComponent?: LinkComponent;
|
|
1556
|
+
texts?: Partial<PaginationTexts>;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
export declare function PaginationSizeSelect({ sizes, className, ...props }: PaginationSizeSelectProps): JSX.Element;
|
|
1560
|
+
|
|
1561
|
+
declare interface PaginationSizeSelectProps extends Omit<ComponentProps<"select">, "value" | "onChange"> {
|
|
1562
|
+
sizes?: readonly PageSize[] | PageSize[];
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
export declare interface PaginationTexts {
|
|
1566
|
+
goToFirst: string;
|
|
1567
|
+
goToPrevious: string;
|
|
1568
|
+
goToNext: string;
|
|
1569
|
+
goToLast: string;
|
|
1570
|
+
goToPage: (page: number) => string;
|
|
1571
|
+
total: (n: number) => string;
|
|
1572
|
+
pageInfo: (page: number, max: number) => string;
|
|
1573
|
+
range: (start: number, end: number, total: number) => string;
|
|
1574
|
+
morePages: string;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
export declare function PaginationTotal({ children, className, ...props }: PaginationTotalProps): JSX.Element;
|
|
1578
|
+
|
|
1579
|
+
declare interface PaginationTotalProps {
|
|
1580
|
+
className?: string;
|
|
1581
|
+
/**
|
|
1582
|
+
* Custom content. Receives the total number of items, or pass a static ReactNode.
|
|
1583
|
+
* @default `${total} resultados`
|
|
1584
|
+
*/
|
|
1585
|
+
children?: ReactNode | ((total: number) => ReactNode);
|
|
1192
1586
|
}
|
|
1193
1587
|
|
|
1194
|
-
declare
|
|
1588
|
+
declare type ParentIcon = ReactNode | ((isExpanded: boolean) => ReactNode);
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* Validates `formValues` from `Form.onFormSubmit` against a Zod schema and
|
|
1592
|
+
* returns `{ data, errors }` ready to wire back into `Form`'s `errors` prop.
|
|
1593
|
+
*
|
|
1594
|
+
* - `data` is the typed, parsed value, or `null` when validation fails.
|
|
1595
|
+
* - `errors` is the flattened `fieldErrors` object (empty on success).
|
|
1596
|
+
*/
|
|
1597
|
+
export declare function parseFormValues<T extends z.ZodType>(schema: T, values: Record<string, unknown>): {
|
|
1598
|
+
data: z.infer<T> | null;
|
|
1599
|
+
errors: Record<string, string[]>;
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
declare function Password({ className, showIcon, hideIcon, onShow, onHide, toggleable, onValueChange, classNames, ...rest }: PasswordProps): JSX.Element;
|
|
1195
1603
|
export { Password }
|
|
1196
1604
|
export { Password as PasswordRoot }
|
|
1197
1605
|
|
|
@@ -1201,11 +1609,18 @@ declare type PasswordProps = Omit<InputProps, "unstyled" | "nativeInput"> & {
|
|
|
1201
1609
|
onShow?: () => void;
|
|
1202
1610
|
onHide?: () => void;
|
|
1203
1611
|
toggleable?: boolean;
|
|
1612
|
+
/** Styles applied to each internal slot. */
|
|
1613
|
+
classNames?: {
|
|
1614
|
+
/** Native `<input>` element (transparent inside the wrapper). */
|
|
1615
|
+
input?: string;
|
|
1616
|
+
/** Show/hide toggle button on the right. */
|
|
1617
|
+
toggle?: string;
|
|
1618
|
+
};
|
|
1204
1619
|
};
|
|
1205
1620
|
export { PasswordProps }
|
|
1206
1621
|
export { PasswordProps as PasswordRootProps }
|
|
1207
1622
|
|
|
1208
|
-
export declare function Popover({ trigger, children, title, description, side, align, sideOffset, alignOffset, tooltipStyle, matchTriggerWidth, anchor,
|
|
1623
|
+
export declare function Popover({ trigger, children, title, description, side, align, sideOffset, alignOffset, tooltipStyle, matchTriggerWidth, anchor, className, classNames, ...rootProps }: PopoverProps): default_2.ReactElement;
|
|
1209
1624
|
|
|
1210
1625
|
export declare function PopoverClose({ ...props }: PopoverPrimitive.Close.Props): default_2.ReactElement;
|
|
1211
1626
|
|
|
@@ -1213,8 +1628,9 @@ export declare const PopoverCreateHandle: typeof PopoverPrimitive.createHandle;
|
|
|
1213
1628
|
|
|
1214
1629
|
export declare function PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props): default_2.ReactElement;
|
|
1215
1630
|
|
|
1216
|
-
declare function PopoverPopup({ children, className, side, align, sideOffset, alignOffset, tooltipStyle, matchTriggerWidth, anchor, portalProps, ...props }: PopoverPrimitive.Popup.Props & {
|
|
1631
|
+
declare function PopoverPopup({ children, className, side, align, sideOffset, alignOffset, tooltipStyle, matchTriggerWidth, anchor, portalProps, viewportClassName, ...props }: PopoverPrimitive.Popup.Props & {
|
|
1217
1632
|
portalProps?: PopoverPrimitive.Portal.Props;
|
|
1633
|
+
viewportClassName?: string;
|
|
1218
1634
|
side?: PopoverPrimitive.Positioner.Props["side"];
|
|
1219
1635
|
align?: PopoverPrimitive.Positioner.Props["align"];
|
|
1220
1636
|
sideOffset?: PopoverPrimitive.Positioner.Props["sideOffset"];
|
|
@@ -1226,8 +1642,6 @@ declare function PopoverPopup({ children, className, side, align, sideOffset, al
|
|
|
1226
1642
|
export { PopoverPopup as PopoverContent }
|
|
1227
1643
|
export { PopoverPopup }
|
|
1228
1644
|
|
|
1229
|
-
declare type PopoverPopupOverrideProps = Omit<default_2.ComponentPropsWithoutRef<typeof PopoverPopup>, "children" | "side" | "align" | "sideOffset" | "alignOffset" | "tooltipStyle" | "matchTriggerWidth" | "anchor">;
|
|
1230
|
-
|
|
1231
1645
|
export { PopoverPrimitive }
|
|
1232
1646
|
|
|
1233
1647
|
declare interface PopoverProps extends Omit<PopoverPrimitive.Root.Props, "children"> {
|
|
@@ -1242,9 +1656,13 @@ declare interface PopoverProps extends Omit<PopoverPrimitive.Root.Props, "childr
|
|
|
1242
1656
|
tooltipStyle?: boolean;
|
|
1243
1657
|
matchTriggerWidth?: boolean;
|
|
1244
1658
|
anchor?: PopoverPrimitive.Positioner.Props["anchor"];
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1659
|
+
/** Styles the popup (visual root). */
|
|
1660
|
+
className?: string;
|
|
1661
|
+
/** Styles applied to each internal slot. */
|
|
1662
|
+
classNames?: {
|
|
1663
|
+
/** Inner viewport that holds the popup content (padding, overflow). */
|
|
1664
|
+
viewport?: string;
|
|
1665
|
+
};
|
|
1248
1666
|
}
|
|
1249
1667
|
|
|
1250
1668
|
export declare const PopoverRoot: typeof PopoverPrimitive.Root;
|
|
@@ -1282,83 +1700,27 @@ declare const progressTrackVariants: (props?: ({
|
|
|
1282
1700
|
|
|
1283
1701
|
export declare function ProgressValue({ className, ...props }: Progress_2.Value.Props): React_2.ReactElement;
|
|
1284
1702
|
|
|
1285
|
-
declare
|
|
1286
|
-
|
|
1287
|
-
placeholder?: string;
|
|
1288
|
-
emptyMessage?: string;
|
|
1289
|
-
onSelect?: (value: AutoCompleteItem["value"], item: AutoCompleteItem) => any;
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
declare interface Props_10 extends ComponentPropsWithoutRef<typeof Slot> {
|
|
1293
|
-
/** Si el componente está presente o no */
|
|
1294
|
-
when: ComponentProps<typeof Presence>["present"];
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
declare type Props_11<T> = {
|
|
1298
|
-
data: T[];
|
|
1299
|
-
columns: ColumnDef<T>[];
|
|
1300
|
-
onRowClick?: (row: T) => void;
|
|
1301
|
-
onDoubleClick?: (row: T) => void;
|
|
1302
|
-
selected?: (row: T) => boolean;
|
|
1303
|
-
} & ExtendedProps_2 & Omit<ComponentPropsWithoutRef<typeof TableRoot>, "data" | "selected" | "onDoubleClick">;
|
|
1304
|
-
|
|
1305
|
-
declare type Props_12 = {
|
|
1306
|
-
setPageSize?: (value: PageSize) => void;
|
|
1307
|
-
pageSize?: PageSize;
|
|
1308
|
-
} & Omit<usePaginationProps, "pageSize"> & TablePaginationExtendedProps;
|
|
1309
|
-
|
|
1310
|
-
declare type Props_13 = ClosableProps | NonClosableProps;
|
|
1311
|
-
|
|
1312
|
-
declare type Props_14<T extends TreeNode> = TreeRootProps & {
|
|
1313
|
-
items: T[];
|
|
1703
|
+
declare type Props = BaseButtonProps & VariantProps<typeof buttonVariants> & {
|
|
1704
|
+
icon?: ReactElement;
|
|
1314
1705
|
};
|
|
1315
1706
|
|
|
1316
|
-
declare interface
|
|
1317
|
-
fn: () => Promise<T>;
|
|
1318
|
-
dependencies?: DependencyList;
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
declare interface Props_2 extends HTMLProps<HTMLDivElement> {
|
|
1322
|
-
/**
|
|
1323
|
-
* La URL de la imagen
|
|
1324
|
-
*/
|
|
1325
|
-
src: string;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
declare type Props_3 = BaseButtonProps & VariantProps<typeof buttonVariants>;
|
|
1329
|
-
|
|
1330
|
-
declare interface Props_4 extends ComponentProps<"button"> {
|
|
1331
|
-
asChild?: boolean;
|
|
1707
|
+
declare interface Props_2 extends ComponentProps<typeof Button_2> {
|
|
1332
1708
|
loading?: boolean;
|
|
1333
|
-
showLoader?: boolean;
|
|
1334
|
-
icon?: ReactNode;
|
|
1335
|
-
iconPosition?: "start" | "end";
|
|
1336
|
-
loaderReplace?: true;
|
|
1337
1709
|
}
|
|
1338
1710
|
|
|
1339
|
-
declare type
|
|
1340
|
-
|
|
1341
|
-
} & HTMLProps<HTMLHRElement>;
|
|
1342
|
-
|
|
1343
|
-
declare type Props_6 = ComponentPropsWithoutRef<"div"> & {
|
|
1344
|
-
icon?: ReactNode;
|
|
1345
|
-
title?: ReactNode;
|
|
1346
|
-
description?: ReactNode;
|
|
1347
|
-
};
|
|
1348
|
-
|
|
1349
|
-
declare type Props_7<C extends React.ElementType> = VariantProps<typeof HeadingVariants> & {
|
|
1350
|
-
as?: C;
|
|
1351
|
-
} & Omit<React.ComponentPropsWithoutRef<C>, "as">;
|
|
1352
|
-
|
|
1353
|
-
declare type Props_8 = LucideProps & LoaderVariants & {
|
|
1711
|
+
declare type Props_3 = LucideProps & LoaderVariants & {
|
|
1712
|
+
/** Renders the loader fixed at the viewport center via `fixed inset-0`. */
|
|
1354
1713
|
center?: boolean;
|
|
1355
|
-
|
|
1714
|
+
/** Styles applied to each internal slot. */
|
|
1715
|
+
classNames?: {
|
|
1716
|
+
/** Wrapper around the spinner (used for `center` overlay). */
|
|
1717
|
+
container?: string;
|
|
1718
|
+
};
|
|
1356
1719
|
};
|
|
1357
1720
|
|
|
1358
|
-
declare interface
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
containerProps?: HTMLProps<HTMLDivElement>;
|
|
1721
|
+
declare interface Props_4<T> extends UseAsyncOptions<T> {
|
|
1722
|
+
fn: () => Promise<T>;
|
|
1723
|
+
dependencies?: DependencyList;
|
|
1362
1724
|
}
|
|
1363
1725
|
|
|
1364
1726
|
declare type PropsWithoutValue<T> = Omit<T, "value" | "onChange" | "defaultValue">;
|
|
@@ -1369,7 +1731,7 @@ export declare type RangeDatePickerProps = DatePickerBaseProps & {
|
|
|
1369
1731
|
mode: "range";
|
|
1370
1732
|
value?: DateRange;
|
|
1371
1733
|
defaultValue?: DateRange;
|
|
1372
|
-
|
|
1734
|
+
onValueChange?: (value: DateRange) => void;
|
|
1373
1735
|
placeholder?: string;
|
|
1374
1736
|
};
|
|
1375
1737
|
|
|
@@ -1465,30 +1827,37 @@ export { ScrollAreaPrimitive }
|
|
|
1465
1827
|
export declare function ScrollBar({ className, orientation, ...props }: ScrollAreaPrimitive.Scrollbar.Props): default_2.ReactElement;
|
|
1466
1828
|
|
|
1467
1829
|
/**
|
|
1468
|
-
* Composite select for single and multiple selection.
|
|
1469
|
-
*
|
|
1470
|
-
*
|
|
1830
|
+
* Composite select for single and multiple selection.
|
|
1831
|
+
*
|
|
1832
|
+
* Items shaped as `{ id, name }`, `{ label, value }`, or plain strings/numbers
|
|
1833
|
+
* work with no extra props. For other shapes, provide `getLabel` and/or `getId`.
|
|
1471
1834
|
*
|
|
1472
1835
|
* `renderItem` customizes the content **inside** each `SelectItem` (the
|
|
1473
1836
|
* checkmark indicator is always rendered by the item wrapper).
|
|
1474
1837
|
*
|
|
1475
1838
|
* Use `SelectRoot` + primitives directly when you need full structural
|
|
1476
|
-
* control beyond what
|
|
1839
|
+
* control beyond what `className` + `classNames` slots offer.
|
|
1477
1840
|
*/
|
|
1478
1841
|
export declare function Select<TItem = unknown>(allProps: SelectProps<TItem>): React_2.ReactElement;
|
|
1479
1842
|
|
|
1480
|
-
declare type SelectBaseProps<TItem = unknown> = Omit<
|
|
1843
|
+
declare type SelectBaseProps<TItem = unknown> = Omit<SelectPrimitive.Root.Props<string, false>, "children" | "onValueChange" | "value" | "defaultValue" | "items" | "multiple"> & {
|
|
1481
1844
|
items: readonly TItem[];
|
|
1845
|
+
/** Returns the display text for an item. Used for the trigger value and ARIA. Defaults to `item.label`, `item.name`, `item.title`, or the stringified primitive. */
|
|
1482
1846
|
getLabel?: (item: TItem) => string;
|
|
1483
|
-
|
|
1847
|
+
/** Returns a stable string identifier for an item. Used as the React key and the underlying option value. Defaults to `item.id`, `item.value`, or the stringified primitive. */
|
|
1848
|
+
getId?: (item: TItem) => string;
|
|
1849
|
+
/** Returns whether an item should be disabled. Defaults to `item.disabled === true`. */
|
|
1850
|
+
getDisabled?: (item: TItem) => boolean;
|
|
1484
1851
|
renderItem?: (item: TItem) => React_2.ReactNode;
|
|
1485
1852
|
placeholder?: string;
|
|
1486
|
-
triggerProps?: React_2.ComponentProps<typeof SelectTrigger>;
|
|
1487
|
-
popupProps?: React_2.ComponentProps<typeof SelectPopup>;
|
|
1488
|
-
popupClassName?: string;
|
|
1489
|
-
itemProps?: SelectPrimitive.Item.Props;
|
|
1490
|
-
itemClassName?: string;
|
|
1491
1853
|
className?: string;
|
|
1854
|
+
/** Styles applied to each internal slot. */
|
|
1855
|
+
classNames?: {
|
|
1856
|
+
/** Popup panel containing the item list. */
|
|
1857
|
+
popup?: string;
|
|
1858
|
+
/** Individual item row. */
|
|
1859
|
+
item?: string;
|
|
1860
|
+
};
|
|
1492
1861
|
};
|
|
1493
1862
|
|
|
1494
1863
|
export declare function SelectButton({ className, render, children, ...props }: SelectButtonProps): React_2.ReactElement;
|
|
@@ -1523,21 +1892,15 @@ export declare type SelectProps<TItem = unknown> = (SelectBaseProps<TItem> & {
|
|
|
1523
1892
|
multiple?: false;
|
|
1524
1893
|
value?: TItem | null;
|
|
1525
1894
|
defaultValue?: TItem | null;
|
|
1526
|
-
|
|
1895
|
+
onValueChange?: (value: TItem | null) => void;
|
|
1527
1896
|
}) | (SelectBaseProps<TItem> & {
|
|
1528
1897
|
multiple: true;
|
|
1529
1898
|
value?: TItem[];
|
|
1530
1899
|
defaultValue?: TItem[];
|
|
1531
|
-
|
|
1900
|
+
onValueChange?: (value: TItem[]) => void;
|
|
1532
1901
|
});
|
|
1533
1902
|
|
|
1534
|
-
export declare function SelectRoot<Value = string, Multiple extends boolean | undefined = false>({
|
|
1535
|
-
onChange?: SelectPrimitive.Root.Props<Value, Multiple>["onValueChange"];
|
|
1536
|
-
}): React_2.ReactElement;
|
|
1537
|
-
|
|
1538
|
-
declare type SelectRootPropsAlias<V = string> = Omit<SelectPrimitive.Root.Props<V, false>, "onValueChange"> & {
|
|
1539
|
-
onChange?: SelectPrimitive.Root.Props<V, false>["onValueChange"];
|
|
1540
|
-
};
|
|
1903
|
+
export declare function SelectRoot<Value = string, Multiple extends boolean | undefined = false>({ ...props }: SelectPrimitive.Root.Props<Value, Multiple>): React_2.ReactElement;
|
|
1541
1904
|
|
|
1542
1905
|
export declare function SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props): React_2.ReactElement;
|
|
1543
1906
|
|
|
@@ -1549,21 +1912,15 @@ export declare const selectTriggerIconClassName = "-me-1 size-4.5 opacity-80 sm:
|
|
|
1549
1912
|
|
|
1550
1913
|
export declare function SelectValue({ className, ...props }: SelectPrimitive.Value.Props): React_2.ReactElement;
|
|
1551
1914
|
|
|
1552
|
-
export
|
|
1553
|
-
|
|
1554
|
-
declare type Shortcut = Partial<{
|
|
1555
|
-
shortcut: MenuShortcutProps["keys"];
|
|
1556
|
-
onShortcut: MenuShortcutProps["handler"];
|
|
1557
|
-
shortcutOptions: MenuShortcutProps["options"];
|
|
1558
|
-
}>;
|
|
1915
|
+
export { SeparatorPrimitive }
|
|
1559
1916
|
|
|
1560
|
-
export declare
|
|
1917
|
+
export declare type SetState<T> = Dispatch<SetStateAction<T>>;
|
|
1561
1918
|
|
|
1562
1919
|
export declare type SingleDatePickerProps = DatePickerBaseProps & {
|
|
1563
1920
|
mode: "single";
|
|
1564
1921
|
value?: Date | null;
|
|
1565
1922
|
defaultValue?: Date | null;
|
|
1566
|
-
|
|
1923
|
+
onValueChange?: (value: Date | null) => void;
|
|
1567
1924
|
placeholder?: string;
|
|
1568
1925
|
};
|
|
1569
1926
|
|
|
@@ -1587,193 +1944,216 @@ declare interface StackProps extends ComponentProps<"div"> {
|
|
|
1587
1944
|
justify?: CSSProperties["justifyContent"];
|
|
1588
1945
|
align?: CSSProperties["alignItems"];
|
|
1589
1946
|
gap?: CSSProperties["gap"];
|
|
1590
|
-
wrap?: CSSProperties["flexWrap"];
|
|
1947
|
+
wrap?: CSSProperties["flexWrap"] | boolean;
|
|
1591
1948
|
grow?: boolean;
|
|
1592
1949
|
}
|
|
1593
1950
|
|
|
1594
1951
|
export declare type State<T> = [T, SetState<T>];
|
|
1595
1952
|
|
|
1596
|
-
export declare
|
|
1953
|
+
export declare type StepIndicators = Partial<Record<StepState, ReactNode>>;
|
|
1597
1954
|
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
className?: ClassName;
|
|
1955
|
+
declare interface StepItemContextValue {
|
|
1956
|
+
step: number;
|
|
1957
|
+
state: StepState;
|
|
1958
|
+
isDisabled: boolean;
|
|
1959
|
+
isLoading: boolean;
|
|
1604
1960
|
}
|
|
1605
1961
|
|
|
1606
|
-
export declare function
|
|
1962
|
+
export declare function Stepper({ items, classNames, ...props }: StepperProps): JSX.Element;
|
|
1963
|
+
|
|
1964
|
+
export declare function StepperContent({ value, forceMount, className, render, children, ...props }: StepperContentProps): ReactElement<unknown, string | JSXElementConstructor<any>> | null;
|
|
1607
1965
|
|
|
1608
|
-
declare interface StepperContentProps extends
|
|
1966
|
+
export declare interface StepperContentProps extends useRender.ComponentProps<"div"> {
|
|
1609
1967
|
value: number;
|
|
1968
|
+
forceMount?: boolean;
|
|
1610
1969
|
}
|
|
1611
1970
|
|
|
1612
|
-
declare interface
|
|
1971
|
+
declare interface StepperContextValue {
|
|
1972
|
+
activeStep: number;
|
|
1973
|
+
setActiveStep: (step: number) => void;
|
|
1974
|
+
orientation: StepperOrientation;
|
|
1975
|
+
indicators: StepIndicators;
|
|
1976
|
+
triggerMode: StepperTriggerMode;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
export declare function StepperDescription({ className, render, children, ...props }: useRender.ComponentProps<"p">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
1980
|
+
|
|
1981
|
+
export declare function StepperIndicator({ className, render, children, ...props }: useRender.ComponentProps<"div">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
1982
|
+
|
|
1983
|
+
export declare function StepperItem({ step, disabled, loading, className, render, children, ...props }: StepperItemProps): JSX.Element;
|
|
1984
|
+
|
|
1985
|
+
export declare interface StepperItemData {
|
|
1986
|
+
title?: ReactNode;
|
|
1987
|
+
description?: ReactNode;
|
|
1613
1988
|
indicator?: ReactNode;
|
|
1614
|
-
title: ReactNode;
|
|
1615
1989
|
content?: ReactNode;
|
|
1616
1990
|
disabled?: boolean;
|
|
1991
|
+
loading?: boolean;
|
|
1617
1992
|
}
|
|
1618
1993
|
|
|
1619
|
-
export declare
|
|
1620
|
-
|
|
1621
|
-
|
|
1994
|
+
export declare interface StepperItemProps extends useRender.ComponentProps<"div"> {
|
|
1995
|
+
step: number;
|
|
1996
|
+
disabled?: boolean;
|
|
1997
|
+
loading?: boolean;
|
|
1622
1998
|
}
|
|
1623
1999
|
|
|
1624
|
-
declare
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
2000
|
+
export declare function StepperNav({ className, render, children, ...props }: useRender.ComponentProps<"nav">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2001
|
+
|
|
2002
|
+
export declare type StepperOrientation = "horizontal" | "vertical";
|
|
2003
|
+
|
|
2004
|
+
export declare function StepperPanel({ className, render, children, ...props }: useRender.ComponentProps<"div">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2005
|
+
|
|
2006
|
+
export declare interface StepperProps extends Omit<StepperRootProps, "children"> {
|
|
2007
|
+
items: StepperItemData[];
|
|
2008
|
+
/** Styles applied to each internal slot. */
|
|
2009
|
+
classNames?: {
|
|
2010
|
+
/** Navigation list that holds every step. */
|
|
2011
|
+
nav?: string;
|
|
2012
|
+
/** Single step container (indicator + label + separator). */
|
|
2013
|
+
item?: string;
|
|
2014
|
+
/** Clickable step button. */
|
|
2015
|
+
trigger?: string;
|
|
2016
|
+
/** Round indicator (number, icon, or check). */
|
|
2017
|
+
indicator?: string;
|
|
2018
|
+
/** Step title above the description. */
|
|
2019
|
+
title?: string;
|
|
2020
|
+
/** Step description below the title. */
|
|
2021
|
+
description?: string;
|
|
2022
|
+
/** Line between steps. */
|
|
2023
|
+
separator?: string;
|
|
2024
|
+
/** Panel below the nav that holds the active step's content. */
|
|
2025
|
+
panel?: string;
|
|
2026
|
+
/** Single step content rendered when the step is active. */
|
|
2027
|
+
content?: string;
|
|
2028
|
+
};
|
|
1634
2029
|
}
|
|
1635
2030
|
|
|
1636
|
-
export declare function
|
|
2031
|
+
export declare function StepperRoot({ defaultValue, value, onValueChange, orientation, indicators, triggerMode, className, render, children, ...props }: StepperRootProps): JSX.Element;
|
|
1637
2032
|
|
|
1638
|
-
declare interface
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
value: number;
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
classNameIndicator?: ClassNameValue;
|
|
2033
|
+
export declare interface StepperRootProps extends useRender.ComponentProps<"div"> {
|
|
2034
|
+
defaultValue?: number;
|
|
2035
|
+
value?: number;
|
|
2036
|
+
onValueChange?: (value: number) => void;
|
|
2037
|
+
orientation?: StepperOrientation;
|
|
2038
|
+
indicators?: StepIndicators;
|
|
2039
|
+
triggerMode?: StepperTriggerMode;
|
|
1646
2040
|
}
|
|
1647
2041
|
|
|
1648
|
-
declare
|
|
2042
|
+
export declare function StepperSeparator({ className, render, children, ...props }: useRender.ComponentProps<"div">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2043
|
+
|
|
2044
|
+
export declare function StepperTitle({ className, render, children, ...props }: useRender.ComponentProps<"h3">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
1649
2045
|
|
|
1650
|
-
export declare function
|
|
2046
|
+
export declare function StepperTrigger({ className, render, children, ...props }: useRender.ComponentProps<"button">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2047
|
+
|
|
2048
|
+
export declare type StepperTriggerMode = "both" | "forward-only" | "backward-only" | "none";
|
|
2049
|
+
|
|
2050
|
+
export declare type StepState = "active" | "completed" | "inactive" | "loading";
|
|
2051
|
+
|
|
2052
|
+
export declare function Switch({ children, label, className, id, controlFirst, tooltip, classNames, ...props }: SwitchProps): React_2.ReactElement;
|
|
1651
2053
|
|
|
1652
2054
|
declare interface SwitchProps extends Omit<Switch_2.Root.Props, "children"> {
|
|
1653
2055
|
children?: React_2.ReactNode;
|
|
1654
2056
|
label?: React_2.ReactNode;
|
|
1655
2057
|
tooltip?: string;
|
|
1656
|
-
thumbProps?: Switch_2.Thumb.Props;
|
|
1657
2058
|
controlFirst?: boolean;
|
|
2059
|
+
/** Styles applied to each internal slot. */
|
|
2060
|
+
classNames?: {
|
|
2061
|
+
/** Outer flex wrapper that holds the switch and label. */
|
|
2062
|
+
wrapper?: string;
|
|
2063
|
+
/** Sliding thumb (knob) inside the switch. */
|
|
2064
|
+
thumb?: string;
|
|
2065
|
+
/** Label rendered next to the switch. */
|
|
2066
|
+
label?: string;
|
|
2067
|
+
};
|
|
1658
2068
|
}
|
|
1659
2069
|
|
|
1660
2070
|
export declare function SwitchRoot({ className, ...props }: Switch_2.Root.Props): React_2.ReactElement;
|
|
1661
2071
|
|
|
1662
2072
|
export declare function SwitchThumb({ className, ...props }: Switch_2.Thumb.Props): React_2.ReactElement;
|
|
1663
2073
|
|
|
1664
|
-
export declare
|
|
1665
|
-
|
|
1666
|
-
export declare interface TabContentProps extends HTMLProps<HTMLDivElement> {
|
|
1667
|
-
value: string;
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
export declare const Table: <T>({ data, columns, onRowClick, onDoubleClick, selected, theadClassName, theadProps, tbodyClassName, tbodyProps, trClassName, trProps, thClassName, thProps, tdClassName, tdProps, ...tableProps }: Props_11<T>) => JSX.Element;
|
|
2074
|
+
export declare function Table<T>({ data, columns, getRowKey, onRowClick, onRowDoubleClick, selected, classNames, ...tableProps }: TableProps<T>): JSX.Element;
|
|
1671
2075
|
|
|
1672
|
-
export declare
|
|
2076
|
+
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
1673
2077
|
|
|
1674
|
-
export declare
|
|
2078
|
+
export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
|
|
1675
2079
|
|
|
1676
|
-
declare
|
|
2080
|
+
export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
|
|
1677
2081
|
|
|
1678
|
-
export declare
|
|
2082
|
+
export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
|
|
1679
2083
|
|
|
1680
|
-
declare
|
|
2084
|
+
export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
|
|
1681
2085
|
|
|
1682
|
-
export declare
|
|
2086
|
+
export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
|
|
1683
2087
|
|
|
1684
|
-
declare type
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
2088
|
+
declare type TableProps<T> = {
|
|
2089
|
+
data: T[];
|
|
2090
|
+
columns: ColumnDef<T>[];
|
|
2091
|
+
getRowKey?: (row: T, index: number) => string | number;
|
|
2092
|
+
onRowClick?: (row: T) => void;
|
|
2093
|
+
onRowDoubleClick?: (row: T) => void;
|
|
2094
|
+
selected?: (row: T) => boolean;
|
|
2095
|
+
/** Styles applied to each internal slot. */
|
|
2096
|
+
classNames?: {
|
|
2097
|
+
/** Outer wrapper div with overflow handling. */
|
|
2098
|
+
container?: string;
|
|
2099
|
+
/** `<thead>` element. */
|
|
2100
|
+
thead?: string;
|
|
2101
|
+
/** `<tbody>` element. */
|
|
2102
|
+
tbody?: string;
|
|
2103
|
+
/** `<tr>` inside `<thead>` (the single header row). */
|
|
2104
|
+
headerRow?: string;
|
|
2105
|
+
/** Each `<tr>` inside `<tbody>` (the repeating body rows). */
|
|
2106
|
+
tr?: string;
|
|
2107
|
+
/** Header cell `<th>`. */
|
|
2108
|
+
th?: string;
|
|
2109
|
+
/** Body cell `<td>`. */
|
|
2110
|
+
td?: string;
|
|
2111
|
+
};
|
|
2112
|
+
} & Omit<React_2.ComponentProps<"table">, "onDoubleClick">;
|
|
1709
2113
|
|
|
1710
|
-
export declare
|
|
2114
|
+
export declare function TableRoot({ className, classNames, ...props }: TableRootProps): JSX.Element;
|
|
1711
2115
|
|
|
1712
|
-
declare type TableRootProps =
|
|
1713
|
-
|
|
1714
|
-
|
|
2116
|
+
declare type TableRootProps = React_2.ComponentProps<"table"> & {
|
|
2117
|
+
/** Styles applied to each internal slot. */
|
|
2118
|
+
classNames?: {
|
|
2119
|
+
/** Outer wrapper div with overflow handling. */
|
|
2120
|
+
container?: string;
|
|
2121
|
+
};
|
|
1715
2122
|
};
|
|
1716
2123
|
|
|
1717
|
-
export declare
|
|
2124
|
+
export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
|
|
1718
2125
|
|
|
1719
|
-
declare
|
|
2126
|
+
export declare function Tabs({ className, ...props }: TabsPrimitive.Root.Props): default_2.ReactElement;
|
|
1720
2127
|
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
export declare const Tabs: ({ children, value: prop, onChange, defaultValue, variant, ...props }: TabsProps) => JSX.Element;
|
|
1730
|
-
|
|
1731
|
-
export declare interface TabsExtendedProps extends TabsProps {
|
|
1732
|
-
listClassName: TabListProps["className"];
|
|
1733
|
-
listProps: TabListProps;
|
|
1734
|
-
triggerClassName: TabTriggerProps["className"];
|
|
1735
|
-
triggerProps: TabTriggerProps;
|
|
1736
|
-
contentClassName: TabContentProps["className"];
|
|
1737
|
-
contentProps: TabContentProps;
|
|
1738
|
-
}
|
|
2128
|
+
declare function TabsList({ variant, centered, className, children, ...props }: TabsPrimitive.List.Props & {
|
|
2129
|
+
variant?: TabsVariant;
|
|
2130
|
+
centered?: boolean;
|
|
2131
|
+
}): default_2.ReactElement;
|
|
2132
|
+
export { TabsList as TabList }
|
|
2133
|
+
export { TabsList }
|
|
1739
2134
|
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
defaultValue?: string;
|
|
1744
|
-
variant?: "default" | "background";
|
|
1745
|
-
}
|
|
2135
|
+
declare function TabsPanel({ className, ...props }: TabsPrimitive.Panel.Props): default_2.ReactElement;
|
|
2136
|
+
export { TabsPanel as TabsContent }
|
|
2137
|
+
export { TabsPanel }
|
|
1746
2138
|
|
|
1747
|
-
export
|
|
2139
|
+
export { TabsPrimitive }
|
|
1748
2140
|
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
}
|
|
2141
|
+
declare function TabsTab({ className, ...props }: TabsPrimitive.Tab.Props): default_2.ReactElement;
|
|
2142
|
+
export { TabsTab }
|
|
2143
|
+
export { TabsTab as TabsTrigger }
|
|
1752
2144
|
|
|
1753
|
-
export declare
|
|
2145
|
+
export declare type TabsVariant = "underline" | "background";
|
|
1754
2146
|
|
|
1755
|
-
export declare
|
|
2147
|
+
export declare function Tag({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof tagVariants>): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
1756
2148
|
|
|
1757
2149
|
export declare const tagVariants: (props?: ({
|
|
1758
|
-
|
|
1759
|
-
variant?: "error" | "success" | "outline" | "secondary" | "primary" | "borderless" | null | undefined;
|
|
2150
|
+
variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "error" | null | undefined;
|
|
1760
2151
|
} & ClassProp) | undefined) => string;
|
|
1761
2152
|
|
|
1762
|
-
export declare function Textarea({ className,
|
|
1763
|
-
|
|
1764
|
-
export declare function TextareaControl({ className, unstyled, children, ...props }: ComponentProps<"span"> & {
|
|
1765
|
-
unstyled?: boolean;
|
|
1766
|
-
}): ReactElement;
|
|
1767
|
-
|
|
1768
|
-
export declare function TextareaField({ className, ref, onChange, ...props }: TextareaFieldProps): ReactElement;
|
|
1769
|
-
|
|
1770
|
-
export declare type TextareaFieldProps = Omit<ComponentProps<"textarea">, "onChange"> & {
|
|
1771
|
-
onChange?: (value: string, event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
1772
|
-
};
|
|
2153
|
+
export declare function Textarea({ className, onValueChange, ...props }: TextareaProps): ReactElement;
|
|
1773
2154
|
|
|
1774
|
-
export declare type TextareaProps =
|
|
1775
|
-
|
|
1776
|
-
controlProps?: ComponentProps<typeof TextareaControl>;
|
|
2155
|
+
export declare type TextareaProps = Omit<ComponentProps<"textarea">, "onChange"> & {
|
|
2156
|
+
onValueChange?: (value: string, event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
1777
2157
|
};
|
|
1778
2158
|
|
|
1779
2159
|
export declare type Theme = {
|
|
@@ -1790,45 +2170,67 @@ declare type ThemeProviderProps = {
|
|
|
1790
2170
|
theme?: Theme;
|
|
1791
2171
|
};
|
|
1792
2172
|
|
|
1793
|
-
export declare
|
|
2173
|
+
export declare function Timeline({ items, variant, classNames, ...props }: TimelineProps): JSX.Element;
|
|
1794
2174
|
|
|
1795
|
-
export declare
|
|
2175
|
+
export declare function TimelineContent({ className, render, children, ...props }: useRender.ComponentProps<"div">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
1796
2176
|
|
|
1797
|
-
export declare
|
|
2177
|
+
export declare function TimelineDate({ className, render, children, ...props }: useRender.ComponentProps<"time">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
1798
2178
|
|
|
1799
|
-
declare
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
2179
|
+
export declare function TimelineHeader({ className, render, children, ...props }: useRender.ComponentProps<"div">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2180
|
+
|
|
2181
|
+
export declare function TimelineIndicator({ className, render, children, ...props }: useRender.ComponentProps<"div">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2182
|
+
|
|
2183
|
+
export declare function TimelineItem({ step, className, render, children, ...props }: TimelineItemProps): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2184
|
+
|
|
2185
|
+
declare interface TimelineItemData {
|
|
2186
|
+
title?: ReactNode;
|
|
2187
|
+
content?: ReactNode;
|
|
2188
|
+
date?: ReactNode;
|
|
2189
|
+
indicator?: ReactNode;
|
|
1805
2190
|
}
|
|
1806
2191
|
|
|
1807
|
-
|
|
2192
|
+
declare interface TimelineItemProps extends useRender.ComponentProps<"div"> {
|
|
2193
|
+
step: number;
|
|
2194
|
+
}
|
|
1808
2195
|
|
|
1809
|
-
declare
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
2196
|
+
declare type TimelineOrientation = "horizontal" | "vertical";
|
|
2197
|
+
|
|
2198
|
+
declare interface TimelineProps extends Omit<TimelineRootProps, "children"> {
|
|
2199
|
+
items: TimelineItemData[];
|
|
2200
|
+
variant?: TimelineVariant;
|
|
2201
|
+
/** Styles applied to each internal slot. */
|
|
2202
|
+
classNames?: {
|
|
2203
|
+
/** Single timeline entry wrapper. */
|
|
2204
|
+
item?: string;
|
|
2205
|
+
/** Row that holds the indicator, date, and title. */
|
|
2206
|
+
header?: string;
|
|
2207
|
+
/** Title text inside the header. */
|
|
2208
|
+
title?: string;
|
|
2209
|
+
/** Date label inside the header. */
|
|
2210
|
+
date?: string;
|
|
2211
|
+
/** Body text below the header. */
|
|
2212
|
+
content?: string;
|
|
2213
|
+
/** Round dot marking the step. */
|
|
2214
|
+
indicator?: string;
|
|
2215
|
+
/** Line connecting consecutive items. */
|
|
2216
|
+
separator?: string;
|
|
2217
|
+
};
|
|
1818
2218
|
}
|
|
1819
2219
|
|
|
1820
|
-
declare
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
classNameItemContainerDot?: string;
|
|
1828
|
-
classNameItemContent?: string;
|
|
2220
|
+
export declare function TimelineRoot({ defaultValue, value, onValueChange, orientation, className, render, children, ...props }: TimelineRootProps): JSX.Element;
|
|
2221
|
+
|
|
2222
|
+
declare interface TimelineRootProps extends useRender.ComponentProps<"div"> {
|
|
2223
|
+
defaultValue?: number;
|
|
2224
|
+
value?: number;
|
|
2225
|
+
onValueChange?: (value: number) => void;
|
|
2226
|
+
orientation?: TimelineOrientation;
|
|
1829
2227
|
}
|
|
1830
2228
|
|
|
1831
|
-
export declare
|
|
2229
|
+
export declare function TimelineSeparator({ className, render, children, ...props }: useRender.ComponentProps<"div">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2230
|
+
|
|
2231
|
+
export declare function TimelineTitle({ className, render, children, ...props }: useRender.ComponentProps<"h3">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
2232
|
+
|
|
2233
|
+
declare type TimelineVariant = "default" | "alternate" | "date-left";
|
|
1832
2234
|
|
|
1833
2235
|
/**
|
|
1834
2236
|
* Imperative toast API. Works anywhere — no hook needed.
|
|
@@ -1927,7 +2329,7 @@ export declare function toastVariants({ variant, }?: {
|
|
|
1927
2329
|
* </Tooltip>
|
|
1928
2330
|
* ```
|
|
1929
2331
|
*/
|
|
1930
|
-
export declare function Tooltip({ content, children, open, defaultOpen, onOpenChange, side, align, offset, delay, closeDelay, className,
|
|
2332
|
+
export declare function Tooltip({ content, children, open, defaultOpen, onOpenChange, side, align, offset, delay, closeDelay, className, classNames, ...triggerProps }: TooltipProps): JSX.Element;
|
|
1931
2333
|
|
|
1932
2334
|
export declare function TooltipArrow({ className, ...props }: ArrowProps): JSX.Element;
|
|
1933
2335
|
|
|
@@ -1950,14 +2352,16 @@ export declare type TooltipProps = Omit<RootProps, "children"> & Omit<TriggerPro
|
|
|
1950
2352
|
delay?: TriggerProps["delay"];
|
|
1951
2353
|
/** Delay in ms before the tooltip closes. @default 0 */
|
|
1952
2354
|
closeDelay?: TriggerProps["closeDelay"];
|
|
1953
|
-
/** Additional classes applied to the tooltip popup. */
|
|
2355
|
+
/** Additional classes applied to the tooltip popup (visual root). */
|
|
1954
2356
|
className?: string;
|
|
1955
|
-
/**
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
2357
|
+
/** Styles applied to each internal slot. */
|
|
2358
|
+
classNames?: {
|
|
2359
|
+
/**
|
|
2360
|
+
* Arrow that points at the trigger. Pass a `text-*` class to change the
|
|
2361
|
+
* arrow color when overriding the popup background.
|
|
2362
|
+
*/
|
|
2363
|
+
arrow?: string;
|
|
2364
|
+
};
|
|
1961
2365
|
};
|
|
1962
2366
|
|
|
1963
2367
|
/** Enables shared hover intent and delay grouping across multiple tooltips. */
|
|
@@ -1967,84 +2371,29 @@ export declare function TooltipRoot(props: RootProps): JSX.Element;
|
|
|
1967
2371
|
|
|
1968
2372
|
export declare function TooltipTrigger({ className, ...props }: TriggerProps): JSX.Element;
|
|
1969
2373
|
|
|
1970
|
-
export declare function
|
|
2374
|
+
export declare function TreeDragLine({ className, render, style, ...props }: useRender.ComponentProps<"div">): ReactElement<unknown, string | JSXElementConstructor<any>> | null;
|
|
1971
2375
|
|
|
1972
|
-
export declare
|
|
1973
|
-
id: string | number;
|
|
1974
|
-
}>) => JSX.Element;
|
|
2376
|
+
export declare function TreeItem<T>({ item, leafIcon, parentIcon, className, render, children, style, ...props }: TreeItemProps<T>): JSX.Element;
|
|
1975
2377
|
|
|
1976
|
-
export declare
|
|
2378
|
+
export declare function TreeItemLabel({ className, render, children, ...props }: useRender.ComponentProps<"span">): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
1977
2379
|
|
|
1978
|
-
export declare
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
export declare interface TreeNode {
|
|
1983
|
-
id: string | number;
|
|
1984
|
-
title: string;
|
|
1985
|
-
children: TreeNode[];
|
|
2380
|
+
export declare interface TreeItemProps<T> extends useRender.ComponentProps<"button"> {
|
|
2381
|
+
item: ItemInstance<T>;
|
|
2382
|
+
leafIcon?: ReactNode;
|
|
2383
|
+
parentIcon?: ParentIcon;
|
|
1986
2384
|
}
|
|
1987
2385
|
|
|
1988
|
-
export declare
|
|
2386
|
+
export declare function TreeRoot<T>({ tree, indent, className, render, style, ...props }: TreeRootProps<T>): JSX.Element;
|
|
1989
2387
|
|
|
1990
|
-
declare
|
|
2388
|
+
export declare interface TreeRootProps<T> extends useRender.ComponentProps<"div"> {
|
|
2389
|
+
tree: TreeInstance<T>;
|
|
2390
|
+
indent?: number;
|
|
2391
|
+
}
|
|
1991
2392
|
|
|
1992
2393
|
declare type TriggerProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>;
|
|
1993
2394
|
|
|
1994
2395
|
export declare const twMerge: (...classLists: ClassNameValue[]) => string;
|
|
1995
2396
|
|
|
1996
|
-
export declare const type: (element: HTMLElement, value: string) => void;
|
|
1997
|
-
|
|
1998
|
-
export declare const UploadAcceptedFiles: (props: UploadFilesProps) => JSX.Element;
|
|
1999
|
-
|
|
2000
|
-
export declare const UploadContent: ({ className, ...props }: UploadContentProps) => JSX.Element;
|
|
2001
|
-
|
|
2002
|
-
declare type UploadContentProps = ComponentPropsWithoutRef<"div"> & {
|
|
2003
|
-
renderRejectedFile?: (file: File) => ReactNode;
|
|
2004
|
-
};
|
|
2005
|
-
|
|
2006
|
-
declare type UploadFilesListProps = {
|
|
2007
|
-
files: File[];
|
|
2008
|
-
handleFileRemove: (index: number, type: "accepted" | "rejected") => void;
|
|
2009
|
-
fileType: "accepted" | "rejected";
|
|
2010
|
-
children?: ReactNode;
|
|
2011
|
-
renderFile?: (file: File, removeItem: () => void) => ReactNode;
|
|
2012
|
-
};
|
|
2013
|
-
|
|
2014
|
-
declare type UploadFilesProps = Omit<UploadFilesListProps, "fileType" | "handleFileRemove" | "files">;
|
|
2015
|
-
|
|
2016
|
-
export declare const UploadItem: ({ file, onRemove, className, renderIcon, ...props }: UploadItemProps) => JSX.Element;
|
|
2017
|
-
|
|
2018
|
-
declare type UploadItemProps = ComponentPropsWithoutRef<"div"> & {
|
|
2019
|
-
file: File;
|
|
2020
|
-
onRemove: () => void;
|
|
2021
|
-
renderIcon?: (file: File) => ReactNode;
|
|
2022
|
-
};
|
|
2023
|
-
|
|
2024
|
-
export declare const UploadRejectedFiles: (props: UploadFilesProps) => JSX.Element;
|
|
2025
|
-
|
|
2026
|
-
export declare const UploadRoot: ({ onFileAdd, onFileRemove, onChangeFiles, files: prop, maxFiles, allowedExtensions, maxFileSize, multiple, children, onError, ...props }: UploadRootProps) => JSX.Element;
|
|
2027
|
-
|
|
2028
|
-
declare type UploadRootProps = {
|
|
2029
|
-
onFileAdd?: (files: File[]) => void;
|
|
2030
|
-
onFileRemove?: (index: number, type: "accepted" | "rejected") => void;
|
|
2031
|
-
onChangeFiles?: (files: File[]) => void;
|
|
2032
|
-
files?: File[];
|
|
2033
|
-
maxFiles?: number;
|
|
2034
|
-
allowedExtensions?: string[];
|
|
2035
|
-
maxFileSize?: number;
|
|
2036
|
-
multiple?: true;
|
|
2037
|
-
className?: string;
|
|
2038
|
-
children?: ReactNode;
|
|
2039
|
-
onError?: (fileErrors: FileError[]) => void;
|
|
2040
|
-
};
|
|
2041
|
-
|
|
2042
|
-
export declare const UploadTrigger: ({ asChild, ...props }: UploadTriggerProps) => JSX.Element;
|
|
2043
|
-
|
|
2044
|
-
declare type UploadTriggerProps = {
|
|
2045
|
-
asChild?: boolean;
|
|
2046
|
-
} & ComponentPropsWithoutRef<"button">;
|
|
2047
|
-
|
|
2048
2397
|
export declare function useArray<T>(defaultProp: T[]): readonly [T[], {
|
|
2049
2398
|
readonly insertAt: (index: number, item: T) => void;
|
|
2050
2399
|
readonly removeAt: (index: number) => void;
|
|
@@ -2057,7 +2406,7 @@ export declare function useArray<T>(defaultProp: T[]): readonly [T[], {
|
|
|
2057
2406
|
readonly update: (predicate: ListIterateeCustom<T, boolean>, newItem: T | ((item: T) => T)) => void;
|
|
2058
2407
|
}];
|
|
2059
2408
|
|
|
2060
|
-
export declare function useAsync<T>({ fn, dependencies, onError, onSuccess, onFinish, }:
|
|
2409
|
+
export declare function useAsync<T>({ fn, dependencies, onError, onSuccess, onFinish, }: Props_4<T>): AsyncState<T>;
|
|
2061
2410
|
|
|
2062
2411
|
declare interface UseAsyncOptions<T> {
|
|
2063
2412
|
onError?: (error: Error) => void;
|
|
@@ -2065,6 +2414,8 @@ declare interface UseAsyncOptions<T> {
|
|
|
2065
2414
|
onFinish?: () => void;
|
|
2066
2415
|
}
|
|
2067
2416
|
|
|
2417
|
+
export declare const useAutocompleteFilter: typeof AutocompletePrimitive.useFilter;
|
|
2418
|
+
|
|
2068
2419
|
export declare const useClickOutside: <T extends HTMLElement = HTMLElement>(callback: () => void, watch?: boolean) => RefObject<T | null>;
|
|
2069
2420
|
|
|
2070
2421
|
export declare function useClipboard(): [CopiedValue, CopyFunction];
|
|
@@ -2090,8 +2441,12 @@ export declare function useDocumentTitle(title: string): void;
|
|
|
2090
2441
|
|
|
2091
2442
|
export declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = any>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): RefObject<T | null>;
|
|
2092
2443
|
|
|
2444
|
+
export declare function useFieldName(): string | undefined;
|
|
2445
|
+
|
|
2093
2446
|
export declare function useFocusTrap(active?: boolean): (instance: HTMLElement | null) => void;
|
|
2094
2447
|
|
|
2448
|
+
export declare function useHookForm<T extends FieldValues = FieldValues>(schema: z.ZodType<T>, options?: Partial<UseFormProps<T>>): UseFormReturn<T>;
|
|
2449
|
+
|
|
2095
2450
|
export declare function useHotkey(keys: string | string[], handler: (event: KeyboardEvent) => void, options?: HotkeyOptions): RefObject<any>;
|
|
2096
2451
|
|
|
2097
2452
|
export declare function useHover<T extends HTMLElement>(options?: UseHoverOptions): {
|
|
@@ -2104,6 +2459,8 @@ declare type UseHoverOptions = {
|
|
|
2104
2459
|
onHoverEnd?: (event: MouseEvent) => void;
|
|
2105
2460
|
};
|
|
2106
2461
|
|
|
2462
|
+
export declare function useIsInsideFieldRoot(): boolean;
|
|
2463
|
+
|
|
2107
2464
|
export declare function useIsVisible<T extends HTMLElement>({ onVisible, root, rootMargin, threshold, }?: UseIsVisibleProps): UseIsVisibleReturn<T>;
|
|
2108
2465
|
|
|
2109
2466
|
declare interface UseIsVisibleProps extends IntersectionObserverInit {
|
|
@@ -2143,7 +2500,7 @@ export declare function useObject<T extends GenericObject_2>(): MaybeReturn<T>;
|
|
|
2143
2500
|
|
|
2144
2501
|
export declare function useObject<T extends GenericObject_2>(initialValue: T): Return<T>;
|
|
2145
2502
|
|
|
2146
|
-
export declare function usePagination({ totalItems, pageSize, initialCurrentPage, onChange, }: usePaginationProps): {
|
|
2503
|
+
export declare function usePagination({ totalItems, pageSize, currentPage: currentPageProp, defaultCurrentPage, onCurrentPageChange, initialCurrentPage, onChange, }: usePaginationProps): {
|
|
2147
2504
|
next: () => void;
|
|
2148
2505
|
prev: () => void;
|
|
2149
2506
|
goTo: (page: number) => void;
|
|
@@ -2167,17 +2524,28 @@ export declare type usePaginationProps = {
|
|
|
2167
2524
|
*/
|
|
2168
2525
|
pageSize: number;
|
|
2169
2526
|
/**
|
|
2170
|
-
*
|
|
2527
|
+
* Página controlada
|
|
2528
|
+
*/
|
|
2529
|
+
currentPage?: number;
|
|
2530
|
+
/**
|
|
2531
|
+
* Página inicial (uncontrolled)
|
|
2532
|
+
*/
|
|
2533
|
+
defaultCurrentPage?: number;
|
|
2534
|
+
/**
|
|
2535
|
+
* Callback cuando cambia la página
|
|
2536
|
+
*/
|
|
2537
|
+
onCurrentPageChange?: (page: number) => void;
|
|
2538
|
+
/**
|
|
2539
|
+
* @deprecated Usá `defaultCurrentPage`
|
|
2171
2540
|
*/
|
|
2172
2541
|
initialCurrentPage?: number;
|
|
2173
2542
|
/**
|
|
2174
|
-
*
|
|
2543
|
+
* @deprecated Usá `onCurrentPageChange`
|
|
2175
2544
|
*/
|
|
2176
2545
|
onChange?: (value: {
|
|
2177
2546
|
currentPage: number;
|
|
2178
2547
|
pageSize: number;
|
|
2179
2548
|
}) => void;
|
|
2180
|
-
siblingCount?: number;
|
|
2181
2549
|
};
|
|
2182
2550
|
|
|
2183
2551
|
export declare function usePortal(id: string): {
|
|
@@ -2224,6 +2592,10 @@ export declare function useSelection<T>(items: T[]): Return_2<T>;
|
|
|
2224
2592
|
|
|
2225
2593
|
export declare function useStep<T = ReactNode>(steps: T[], amountSteps?: number): Return_3<T>;
|
|
2226
2594
|
|
|
2595
|
+
export declare function useStepItem(): StepItemContextValue;
|
|
2596
|
+
|
|
2597
|
+
export declare function useStepper(): StepperContextValue;
|
|
2598
|
+
|
|
2227
2599
|
export declare const useTheme: () => {
|
|
2228
2600
|
theme: Theme;
|
|
2229
2601
|
};
|
|
@@ -2254,9 +2626,4 @@ export declare function useToggle(initialValue?: boolean): Return_4;
|
|
|
2254
2626
|
|
|
2255
2627
|
export declare type ValuesUnion<T extends Record<string, any>> = T[keyof T];
|
|
2256
2628
|
|
|
2257
|
-
declare type VariantProps_2 = {
|
|
2258
|
-
color?: never;
|
|
2259
|
-
variant?: TagVariant["variant"];
|
|
2260
|
-
};
|
|
2261
|
-
|
|
2262
2629
|
export { }
|