@constructive-io/ui 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +17 -22
- package/dist/components/alert-dialog.cjs +333 -0
- package/dist/components/alert-dialog.cjs.map +1 -0
- package/dist/components/alert-dialog.d.cts +32 -0
- package/dist/components/alert-dialog.d.ts +16 -15
- package/dist/components/alert-dialog.js +89 -102
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +119 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.d.cts +19 -0
- package/dist/components/alert.d.ts +10 -5
- package/dist/components/alert.js +62 -6
- package/dist/components/alert.js.map +1 -1
- package/dist/components/app-bar.cjs +367 -0
- package/dist/components/app-bar.cjs.map +1 -0
- package/dist/components/app-bar.d.cts +26 -0
- package/dist/components/app-bar.d.ts +26 -0
- package/dist/components/app-bar.js +344 -0
- package/dist/components/app-bar.js.map +1 -0
- package/dist/components/app-shell.cjs +1792 -0
- package/dist/components/app-shell.cjs.map +1 -0
- package/dist/components/app-shell.d.cts +106 -0
- package/dist/components/app-shell.d.ts +106 -0
- package/dist/components/app-shell.js +1771 -0
- package/dist/components/app-shell.js.map +1 -0
- package/dist/components/autocomplete.cjs +418 -0
- package/dist/components/autocomplete.cjs.map +1 -0
- package/dist/components/autocomplete.d.cts +28 -0
- package/dist/components/autocomplete.d.ts +15 -15
- package/dist/components/autocomplete.js +9 -30
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +51 -0
- package/dist/components/avatar.cjs.map +1 -0
- package/dist/components/avatar.d.cts +12 -0
- package/dist/components/avatar.d.ts +3 -4
- package/dist/components/avatar.js +11 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +66 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.d.cts +15 -0
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +118 -0
- package/dist/components/breadcrumb.cjs.map +1 -0
- package/dist/components/breadcrumb.d.cts +14 -0
- package/dist/components/breadcrumb.d.ts +9 -9
- package/dist/components/breadcrumb.js +19 -83
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.cjs +169 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.d.cts +20 -0
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +105 -21
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +85 -0
- package/dist/components/calendar-rac.cjs.map +1 -0
- package/dist/components/calendar-rac.d.cts +13 -0
- package/dist/components/calendar-rac.d.ts +3 -3
- package/dist/components/card.cjs +99 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.d.cts +18 -0
- package/dist/components/card.d.ts +7 -8
- package/dist/components/card.js +23 -8
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox-group.cjs +18 -0
- package/dist/components/checkbox-group.cjs.map +1 -0
- package/dist/components/checkbox-group.d.cts +7 -0
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox.cjs +121 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.d.cts +8 -0
- package/dist/components/checkbox.d.ts +3 -3
- package/dist/components/checkbox.js +73 -41
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +127 -0
- package/dist/components/collapsible.cjs.map +1 -0
- package/dist/components/collapsible.d.cts +44 -0
- package/dist/components/collapsible.d.ts +8 -18
- package/dist/components/collapsible.js +7 -27
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +551 -0
- package/dist/components/combobox.cjs.map +1 -0
- package/dist/components/combobox.d.cts +43 -0
- package/dist/components/combobox.d.ts +17 -18
- package/dist/components/combobox.js +37 -48
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +236 -0
- package/dist/components/command.cjs.map +1 -0
- package/dist/components/command.d.cts +23 -0
- package/dist/components/command.d.ts +14 -15
- package/dist/components/command.js +5 -38
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +431 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.d.cts +30 -0
- package/dist/components/dialog.d.ts +13 -18
- package/dist/components/dialog.js +75 -119
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +121 -0
- package/dist/components/dock.cjs.map +1 -0
- package/dist/components/dock.d.cts +30 -0
- package/dist/components/dock.d.ts +1 -2
- package/dist/components/dock.js +7 -5
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +149 -0
- package/dist/components/drawer.cjs.map +1 -0
- package/dist/components/drawer.d.cts +15 -0
- package/dist/components/drawer.d.ts +10 -11
- package/dist/components/drawer.js +11 -40
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +292 -0
- package/dist/components/dropdown-menu.cjs.map +1 -0
- package/dist/components/dropdown-menu.d.cts +52 -0
- package/dist/components/dropdown-menu.d.ts +23 -21
- package/dist/components/dropdown-menu.js +67 -191
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +106 -0
- package/dist/components/empty.cjs.map +1 -0
- package/dist/components/empty.d.cts +15 -0
- package/dist/components/empty.d.ts +15 -0
- package/dist/components/empty.js +99 -0
- package/dist/components/empty.js.map +1 -0
- package/dist/components/field.cjs +295 -0
- package/dist/components/field.cjs.map +1 -0
- package/dist/components/field.d.cts +46 -0
- package/dist/components/field.d.ts +34 -39
- package/dist/components/field.js +220 -72
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +176 -0
- package/dist/components/flickering-grid.cjs.map +1 -0
- package/dist/components/flickering-grid.d.cts +15 -0
- package/dist/components/flickering-grid.js +25 -2
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +194 -0
- package/dist/components/flow-zoom-panel.cjs.map +1 -0
- package/dist/components/flow-zoom-panel.d.cts +12 -0
- package/dist/components/flow-zoom-panel.d.ts +12 -0
- package/dist/components/flow-zoom-panel.js +173 -0
- package/dist/components/flow-zoom-panel.js.map +1 -0
- package/dist/components/form-control.cjs +193 -0
- package/dist/components/form-control.cjs.map +1 -0
- package/dist/components/form-control.d.cts +14 -0
- package/dist/components/form-control.d.ts +1 -2
- package/dist/components/form-control.js +2 -4
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +208 -0
- package/dist/components/form.cjs.map +1 -0
- package/dist/components/form.d.cts +36 -0
- package/dist/components/form.d.ts +7 -8
- package/dist/components/input-group.cjs +184 -0
- package/dist/components/input-group.cjs.map +1 -0
- package/dist/components/input-group.d.cts +17 -0
- package/dist/components/input-group.d.ts +6 -7
- package/dist/components/input-group.js +3 -2
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input.cjs +62 -0
- package/dist/components/input.cjs.map +1 -0
- package/dist/components/input.d.cts +10 -0
- package/dist/components/input.d.ts +1 -2
- package/dist/components/input.js +1 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/json-input.cjs +351 -0
- package/dist/components/json-input.cjs.map +1 -0
- package/dist/components/json-input.d.cts +25 -0
- package/dist/components/json-input.d.ts +3 -3
- package/dist/components/json-input.js +89 -112
- package/dist/components/json-input.js.map +1 -1
- package/dist/components/label.cjs +29 -0
- package/dist/components/label.cjs.map +1 -0
- package/dist/components/label.d.cts +10 -0
- package/dist/components/label.d.ts +1 -2
- package/dist/components/motion-grid.cjs +108 -0
- package/dist/components/motion-grid.cjs.map +1 -0
- package/dist/components/motion-grid.d.cts +19 -0
- package/dist/components/motion-grid.d.ts +1 -2
- package/dist/components/motion-grid.js +9 -4
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +796 -0
- package/dist/components/multi-select.cjs.map +1 -0
- package/dist/components/multi-select.d.cts +198 -0
- package/dist/components/multi-select.js +54 -162
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +19 -0
- package/dist/components/page-header.cjs.map +1 -0
- package/dist/components/page-header.d.cts +17 -0
- package/dist/components/page-header.d.ts +2 -2
- package/dist/components/pagination.cjs +295 -0
- package/dist/components/pagination.cjs.map +1 -0
- package/dist/components/pagination.d.cts +18 -0
- package/dist/components/pagination.d.ts +7 -8
- package/dist/components/pagination.js +152 -29
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/popover.cjs +140 -0
- package/dist/components/popover.cjs.map +1 -0
- package/dist/components/popover.d.cts +39 -0
- package/dist/components/popover.d.ts +13 -9
- package/dist/components/popover.js +56 -132
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal.cjs +109 -0
- package/dist/components/portal.cjs.map +1 -0
- package/dist/components/portal.d.cts +117 -0
- package/dist/components/portal.d.ts +16 -7
- package/dist/components/portal.js +13 -8
- package/dist/components/portal.js.map +1 -1
- package/dist/components/progress.cjs +31 -0
- package/dist/components/progress.cjs.map +1 -0
- package/dist/components/progress.d.cts +9 -0
- package/dist/components/progress.d.ts +1 -2
- package/dist/components/progress.js +1 -2
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +144 -0
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -0
- package/dist/components/progressive-blur-scroll-container.d.cts +25 -0
- package/dist/components/progressive-blur-scroll-container.d.ts +2 -2
- package/dist/components/progressive-blur.cjs +70 -0
- package/dist/components/progressive-blur.cjs.map +1 -0
- package/dist/components/progressive-blur.d.cts +16 -0
- package/dist/components/progressive-blur.d.ts +2 -2
- package/dist/components/radio-group.cjs +52 -0
- package/dist/components/radio-group.cjs.map +1 -0
- package/dist/components/radio-group.d.cts +10 -0
- package/dist/components/radio-group.d.ts +3 -3
- package/dist/components/radio-group.js +21 -10
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +420 -0
- package/dist/components/record-picker.cjs.map +1 -0
- package/dist/components/record-picker.d.cts +16 -0
- package/dist/components/record-picker.d.ts +2 -2
- package/dist/components/record-picker.js +76 -43
- package/dist/components/record-picker.js.map +1 -1
- package/dist/components/resizable.cjs +76 -0
- package/dist/components/resizable.cjs.map +1 -0
- package/dist/components/resizable.d.cts +10 -0
- package/dist/components/resizable.d.ts +3 -4
- package/dist/components/responsive-diagram.cjs +67 -0
- package/dist/components/responsive-diagram.cjs.map +1 -0
- package/dist/components/responsive-diagram.d.cts +10 -0
- package/dist/components/responsive-diagram.d.ts +2 -2
- package/dist/components/scroll-area.cjs +92 -0
- package/dist/components/scroll-area.cjs.map +1 -0
- package/dist/components/scroll-area.d.cts +11 -0
- package/dist/components/scroll-area.d.ts +5 -6
- package/dist/components/select.cjs +329 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.d.cts +46 -0
- package/dist/components/select.d.ts +13 -14
- package/dist/components/select.js +76 -67
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +26 -0
- package/dist/components/separator.cjs.map +1 -0
- package/dist/components/separator.d.cts +10 -0
- package/dist/components/separator.d.ts +1 -2
- package/dist/components/sheet.cjs +489 -0
- package/dist/components/sheet.cjs.map +1 -0
- package/dist/components/sheet.d.cts +107 -0
- package/dist/components/sheet.d.ts +14 -19
- package/dist/components/sheet.js +119 -264
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sidebar.cjs +1300 -0
- package/dist/components/sidebar.cjs.map +1 -0
- package/dist/components/sidebar.d.cts +70 -0
- package/dist/components/sidebar.d.ts +32 -39
- package/dist/components/sidebar.js +401 -362
- package/dist/components/sidebar.js.map +1 -1
- package/dist/components/skeleton.cjs +36 -0
- package/dist/components/skeleton.cjs.map +1 -0
- package/dist/components/skeleton.d.cts +10 -0
- package/dist/components/skeleton.d.ts +5 -2
- package/dist/components/skeleton.js +19 -1
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/sonner.cjs +25 -0
- package/dist/components/sonner.cjs.map +1 -0
- package/dist/components/sonner.d.cts +10 -0
- package/dist/components/sonner.d.ts +2 -2
- package/dist/components/stack/index.cjs +1516 -0
- package/dist/components/stack/index.cjs.map +1 -0
- package/dist/components/stack/index.d.cts +672 -0
- package/dist/components/stack/index.d.ts +36 -38
- package/dist/components/stack/index.js +42 -31
- package/dist/components/stack/index.js.map +1 -1
- package/dist/components/stepper.cjs +314 -0
- package/dist/components/stepper.cjs.map +1 -0
- package/dist/components/stepper.d.cts +31 -0
- package/dist/components/stepper.d.ts +9 -8
- package/dist/components/stepper.js +22 -15
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +46 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.d.cts +7 -0
- package/dist/components/switch.d.ts +1 -2
- package/dist/components/switch.js +9 -5
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +133 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.d.cts +22 -0
- package/dist/components/table.d.ts +19 -12
- package/dist/components/table.js +72 -13
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +53 -0
- package/dist/components/tabs.cjs.map +1 -0
- package/dist/components/tabs.d.cts +9 -0
- package/dist/components/tabs.d.ts +4 -5
- package/dist/components/tabs.js +2 -2
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +451 -0
- package/dist/components/tags.cjs.map +1 -0
- package/dist/components/tags.d.cts +40 -0
- package/dist/components/tags.d.ts +10 -10
- package/dist/components/tags.js +129 -154
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +56 -0
- package/dist/components/textarea.cjs.map +1 -0
- package/dist/components/textarea.d.cts +9 -0
- package/dist/components/textarea.d.ts +1 -2
- package/dist/components/toast/index.cjs +612 -0
- package/dist/components/toast/index.cjs.map +1 -0
- package/dist/components/toast/index.d.cts +52 -0
- package/dist/components/toast/index.js +90 -127
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/tooltip.cjs +92 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.d.cts +28 -0
- package/dist/components/tooltip.d.ts +5 -6
- package/dist/components/tooltip.js +23 -130
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +197 -0
- package/dist/components/unlink-button.cjs.map +1 -0
- package/dist/components/unlink-button.d.cts +14 -0
- package/dist/components/unlink-button.d.ts +2 -2
- package/dist/components/unlink-button.js +105 -21
- package/dist/components/unlink-button.js.map +1 -1
- package/dist/index.cjs +2074 -2723
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +492 -904
- package/dist/index.d.ts +492 -904
- package/dist/index.js +1897 -2569
- package/dist/index.js.map +1 -1
- package/package.json +286 -45
- package/src/styles/globals.css +155 -203
- package/dist/components/org-chart/index.d.ts +0 -54
- package/dist/components/org-chart/index.js +0 -861
- package/dist/components/org-chart/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import * as React$1 from 'react';
|
|
4
3
|
import React__default, { ReactNode, ComponentProps, PropsWithChildren, ComponentType } from 'react';
|
|
5
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
5
|
import { VariantProps } from 'class-variance-authority';
|
|
7
6
|
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
8
7
|
import { Input as Input$1 } from '@base-ui/react/input';
|
|
9
|
-
import * as
|
|
8
|
+
import * as _base_ui_react from '@base-ui/react';
|
|
10
9
|
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
11
10
|
import { CheckboxGroup as CheckboxGroup$1 } from '@base-ui/react/checkbox-group';
|
|
12
11
|
import { Radio as Radio$1 } from '@base-ui/react/radio';
|
|
13
12
|
import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
|
|
14
13
|
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
15
|
-
import * as _base_ui_react_select from '@base-ui/react/select';
|
|
16
14
|
import { Select as Select$1 } from '@base-ui/react/select';
|
|
17
15
|
import { Progress as Progress$1 } from '@base-ui/react/progress';
|
|
18
16
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -25,11 +23,10 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
25
23
|
import { HTMLMotionProps, Transition, MotionProps, MotionValue, Variants } from 'motion/react';
|
|
26
24
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
27
25
|
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
28
|
-
import * as _base_ui_react_collapsible from '@base-ui/react/collapsible';
|
|
29
26
|
import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
|
|
30
|
-
import * as _base_ui_react_scroll_area from '@base-ui/react/scroll-area';
|
|
31
27
|
import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
|
|
32
28
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
29
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
33
30
|
import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
|
|
34
31
|
import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
|
|
35
32
|
import { PanelPosition, FitViewOptions } from '@xyflow/react';
|
|
@@ -37,8 +34,7 @@ import { Command as Command$1 } from 'cmdk';
|
|
|
37
34
|
import { Combobox as Combobox$1 } from '@base-ui/react/combobox';
|
|
38
35
|
import { Calendar as Calendar$1, RangeCalendar as RangeCalendar$1 } from 'react-aria-components';
|
|
39
36
|
import { ToasterProps } from 'sonner';
|
|
40
|
-
|
|
41
|
-
import { useDrag } from '@use-gesture/react';
|
|
37
|
+
export { FloatingPortalStrategy, FloatingZIndex, ModalPortalScope, OverlayLayer, PORTAL_ROOT_ID, PortalRoot, useFloatingOverlayPortalProps, useInModalOverlay, usePortalContainer, usePortalContext, useRootPortalContainer } from '@constructive-io/ui/portal';
|
|
42
38
|
|
|
43
39
|
declare function cn(...inputs: ClassValue[]): string;
|
|
44
40
|
|
|
@@ -67,7 +63,7 @@ declare const Slot: React$1.ForwardRefExoticComponent<SlotProps & React$1.RefAtt
|
|
|
67
63
|
*/
|
|
68
64
|
declare function Slottable({ children }: {
|
|
69
65
|
children: React$1.ReactNode;
|
|
70
|
-
}):
|
|
66
|
+
}): React$1.JSX.Element;
|
|
71
67
|
|
|
72
68
|
type UseControllableStateParams<T> = {
|
|
73
69
|
prop?: T;
|
|
@@ -288,12 +284,15 @@ declare const variants: {
|
|
|
288
284
|
};
|
|
289
285
|
|
|
290
286
|
declare const buttonVariants: (props?: ({
|
|
287
|
+
static?: boolean | null | undefined;
|
|
291
288
|
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
|
|
292
289
|
variant?: "link" | "outline" | "default" | "destructive" | "destructive-outline" | "ghost" | "secondary" | null | undefined;
|
|
293
290
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
294
291
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
295
292
|
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
296
293
|
size?: VariantProps<typeof buttonVariants>['size'];
|
|
294
|
+
/** Disables tactile press scaling when motion would distract from the interaction. */
|
|
295
|
+
static?: boolean;
|
|
297
296
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
298
297
|
asChild?: boolean;
|
|
299
298
|
}
|
|
@@ -314,89 +313,98 @@ type LabelProps = React$1.ComponentProps<'label'>;
|
|
|
314
313
|
* Label component for form controls.
|
|
315
314
|
* Uses a standard HTML label element for maximum compatibility.
|
|
316
315
|
*/
|
|
317
|
-
declare function Label({ className, ...props }: LabelProps):
|
|
316
|
+
declare function Label({ className, ...props }: LabelProps): React$1.JSX.Element;
|
|
318
317
|
|
|
319
318
|
type SkeletonProps = React$1.ComponentProps<'div'>;
|
|
320
|
-
|
|
319
|
+
/**
|
|
320
|
+
* Loading placeholder with a soft left→right shimmer.
|
|
321
|
+
* Uses the package `shimmer` keyframe (background-position) — not opacity pulse.
|
|
322
|
+
*/
|
|
323
|
+
declare function Skeleton({ className, ...props }: SkeletonProps): React$1.JSX.Element;
|
|
321
324
|
|
|
322
325
|
declare const cardVariants: (props?: ({
|
|
323
326
|
variant?: "flat" | "default" | "ghost" | "elevated" | "interactive" | null | undefined;
|
|
324
327
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
325
328
|
interface CardProps extends React$1.ComponentProps<'div'>, VariantProps<typeof cardVariants> {
|
|
326
329
|
}
|
|
327
|
-
declare function Card({ className, variant, ...props }: CardProps):
|
|
328
|
-
declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
329
|
-
declare function CardTitle({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
330
|
-
declare function CardDescription({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
331
|
-
declare function CardAction({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
332
|
-
declare function CardContent({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
333
|
-
declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
330
|
+
declare function Card({ className, variant, ...props }: CardProps): React$1.JSX.Element;
|
|
331
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
332
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
333
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
334
|
+
declare function CardAction({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
335
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
336
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
334
337
|
|
|
335
338
|
type SeparatorProps = React$1.ComponentProps<typeof Separator$1> & {
|
|
336
339
|
/** @deprecated Base UI handles accessibility automatically */
|
|
337
340
|
decorative?: boolean;
|
|
338
341
|
};
|
|
339
|
-
declare function Separator({ className, orientation, decorative: _decorative, ...props }: SeparatorProps):
|
|
342
|
+
declare function Separator({ className, orientation, decorative: _decorative, ...props }: SeparatorProps): React$1.JSX.Element;
|
|
340
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Soft filled callout. Icon is a direct child SVG; content uses grid columns so
|
|
346
|
+
* title/description stay aligned without absolute positioning.
|
|
347
|
+
*/
|
|
341
348
|
declare const alertVariants: (props?: ({
|
|
342
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
349
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
343
350
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
344
351
|
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
345
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
352
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
346
353
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
347
|
-
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<
|
|
348
|
-
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<
|
|
354
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
355
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
349
356
|
|
|
350
357
|
type InputProps = Omit<Input$1.Props & React$1.RefAttributes<HTMLInputElement>, 'size'> & {
|
|
351
358
|
size?: 'sm' | 'default' | 'lg' | number;
|
|
352
359
|
unstyled?: boolean;
|
|
353
360
|
};
|
|
354
|
-
declare function Input({ className, size, unstyled, ...props }: InputProps):
|
|
361
|
+
declare function Input({ className, size, unstyled, ...props }: InputProps): React$1.JSX.Element;
|
|
355
362
|
|
|
356
363
|
type TextareaProps = React$1.ComponentProps<'textarea'> & {
|
|
357
364
|
size?: 'sm' | 'default' | 'lg' | number;
|
|
358
365
|
unstyled?: boolean;
|
|
359
366
|
};
|
|
360
|
-
declare function Textarea({ className, size, unstyled, ...props }: TextareaProps):
|
|
367
|
+
declare function Textarea({ className, size, unstyled, ...props }: TextareaProps): React$1.JSX.Element;
|
|
361
368
|
|
|
362
369
|
type CheckboxProps = Checkbox$1.Root.Props;
|
|
363
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<
|
|
370
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.CheckboxRootProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
364
371
|
|
|
365
372
|
type CheckboxGroupProps = CheckboxGroup$1.Props;
|
|
366
|
-
declare function CheckboxGroup({ className, ...props }: CheckboxGroupProps):
|
|
373
|
+
declare function CheckboxGroup({ className, ...props }: CheckboxGroupProps): React$1.JSX.Element;
|
|
367
374
|
|
|
368
375
|
type RadioGroupProps = RadioGroup$1.Props;
|
|
369
376
|
type RadioProps = Radio$1.Root.Props;
|
|
370
|
-
declare function RadioGroup({ className, ...props }: RadioGroupProps):
|
|
371
|
-
declare function Radio({ className, ...props }: RadioProps):
|
|
377
|
+
declare function RadioGroup({ className, ...props }: RadioGroupProps): React$1.JSX.Element;
|
|
378
|
+
declare function Radio({ className, ...props }: RadioProps): React$1.JSX.Element;
|
|
372
379
|
|
|
373
380
|
type SwitchProps = React$1.ComponentProps<typeof Switch$1.Root>;
|
|
374
|
-
declare function Switch({ className, ...props }: SwitchProps):
|
|
381
|
+
declare function Switch({ className, ...props }: SwitchProps): React$1.JSX.Element;
|
|
375
382
|
|
|
376
383
|
type SelectProps = Omit<Select$1.Root.Props<string>, "onValueChange"> & {
|
|
377
384
|
/** Callback when value changes */
|
|
378
385
|
onValueChange?: (value: string) => void;
|
|
379
386
|
};
|
|
380
|
-
declare function Select({ onValueChange, ...props }: SelectProps):
|
|
381
|
-
|
|
387
|
+
declare function Select({ onValueChange, ...props }: SelectProps): React$1.JSX.Element;
|
|
388
|
+
type SelectTriggerProps = Select$1.Trigger.Props & {
|
|
382
389
|
size?: "sm" | "default" | "lg";
|
|
383
|
-
}
|
|
390
|
+
};
|
|
391
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
384
392
|
type SelectValueProps = React$1.ComponentProps<typeof Select$1.Value> & {
|
|
385
393
|
/** Text to display when no value is selected */
|
|
386
394
|
placeholder?: string;
|
|
387
395
|
};
|
|
388
|
-
declare function SelectValue({ className, placeholder, children, ...props }: SelectValueProps):
|
|
396
|
+
declare function SelectValue({ className, placeholder, children, ...props }: SelectValueProps): React$1.JSX.Element;
|
|
389
397
|
type SelectPopupProps = Select$1.Popup.Props & {
|
|
390
398
|
sideOffset?: Select$1.Positioner.Props["sideOffset"];
|
|
391
399
|
alignItemWithTrigger?: Select$1.Positioner.Props["alignItemWithTrigger"];
|
|
392
400
|
/** @deprecated Not used in Base UI. Kept for backward compatibility. */
|
|
393
401
|
position?: "item-aligned" | "popper";
|
|
394
402
|
};
|
|
395
|
-
declare function SelectPopup({ className, children, sideOffset, alignItemWithTrigger, position: _position, ...props }: SelectPopupProps):
|
|
396
|
-
declare function SelectItem({ className, children, ...props }: Select$1.Item.Props):
|
|
397
|
-
declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props):
|
|
398
|
-
declare function SelectGroup({ ...props }: Select$1.Group.Props):
|
|
399
|
-
declare function SelectGroupLabel({ ...props }: Select$1.GroupLabel.Props):
|
|
403
|
+
declare function SelectPopup({ className, children, sideOffset, alignItemWithTrigger, position: _position, ...props }: SelectPopupProps): React$1.JSX.Element;
|
|
404
|
+
declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): React$1.JSX.Element;
|
|
405
|
+
declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): React$1.JSX.Element;
|
|
406
|
+
declare function SelectGroup({ ...props }: Select$1.Group.Props): React$1.JSX.Element;
|
|
407
|
+
declare function SelectGroupLabel({ ...props }: Select$1.GroupLabel.Props): React$1.JSX.Element;
|
|
400
408
|
type SelectRichItemProps = Select$1.Item.Props & {
|
|
401
409
|
/** Main label text */
|
|
402
410
|
label?: React$1.ReactNode;
|
|
@@ -405,22 +413,22 @@ type SelectRichItemProps = Select$1.Item.Props & {
|
|
|
405
413
|
/** Optional icon element */
|
|
406
414
|
icon?: React$1.ReactNode;
|
|
407
415
|
};
|
|
408
|
-
declare function SelectRichItem({ className, children, label, description, icon, ...props }: SelectRichItemProps):
|
|
416
|
+
declare function SelectRichItem({ className, children, label, description, icon, ...props }: SelectRichItemProps): React$1.JSX.Element;
|
|
409
417
|
type SelectFieldItemProps = Select$1.Item.Props & {
|
|
410
418
|
/** Field name to display */
|
|
411
419
|
name: string;
|
|
412
420
|
/** Field type to display as muted text */
|
|
413
421
|
type?: string;
|
|
414
422
|
};
|
|
415
|
-
declare function SelectFieldItem({ className, name, type, ...props }: SelectFieldItemProps):
|
|
423
|
+
declare function SelectFieldItem({ className, name, type, ...props }: SelectFieldItemProps): React$1.JSX.Element;
|
|
416
424
|
|
|
417
425
|
type ProgressProps = Omit<React$1.ComponentProps<typeof Progress$1.Root>, 'children'> & {
|
|
418
426
|
className?: string;
|
|
419
427
|
};
|
|
420
|
-
declare function Progress({ className, value, ...props }: ProgressProps):
|
|
428
|
+
declare function Progress({ className, value, ...props }: ProgressProps): React$1.JSX.Element;
|
|
421
429
|
|
|
422
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(
|
|
423
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) =>
|
|
430
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
431
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React$1.JSX.Element;
|
|
424
432
|
declare const useFormField: () => {
|
|
425
433
|
invalid: boolean;
|
|
426
434
|
isDirty: boolean;
|
|
@@ -433,11 +441,11 @@ declare const useFormField: () => {
|
|
|
433
441
|
formDescriptionId: string;
|
|
434
442
|
formMessageId: string;
|
|
435
443
|
};
|
|
436
|
-
declare function FormItem({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
437
|
-
declare function FormLabel({ className, ...props }: React$1.ComponentProps<typeof Label>):
|
|
438
|
-
declare function FormControl$1({ ...props }: React$1.ComponentProps<typeof Slot>):
|
|
439
|
-
declare function FormDescription({ className, ...props }: React$1.ComponentProps<'p'>):
|
|
440
|
-
declare function FormMessage({ className, ...props }: React$1.ComponentProps<'p'>):
|
|
444
|
+
declare function FormItem({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
445
|
+
declare function FormLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): React$1.JSX.Element;
|
|
446
|
+
declare function FormControl$1({ ...props }: React$1.ComponentProps<typeof Slot>): React$1.JSX.Element;
|
|
447
|
+
declare function FormDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
|
|
448
|
+
declare function FormMessage({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element | null;
|
|
441
449
|
|
|
442
450
|
type FormControlLayout = 'stacked' | 'floating';
|
|
443
451
|
interface FormControlProps {
|
|
@@ -448,97 +456,102 @@ interface FormControlProps {
|
|
|
448
456
|
error?: string;
|
|
449
457
|
className?: string;
|
|
450
458
|
}
|
|
451
|
-
declare function FormControl({ children, label, id, layout, error, className }: FormControlProps):
|
|
459
|
+
declare function FormControl({ children, label, id, layout, error, className }: FormControlProps): React$1.JSX.Element;
|
|
452
460
|
|
|
453
|
-
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">):
|
|
461
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
454
462
|
declare const inputGroupAddonVariants: (props?: ({
|
|
455
|
-
align?: "inline-
|
|
463
|
+
align?: "inline-start" | "block-end" | "block-start" | "inline-end" | null | undefined;
|
|
456
464
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
457
|
-
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>):
|
|
458
|
-
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">):
|
|
459
|
-
declare function InputGroupInput({ className, ...props }: InputProps):
|
|
460
|
-
declare function InputGroupTextarea({ className, ...props }: TextareaProps):
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
465
|
+
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
|
|
466
|
+
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
467
|
+
declare function InputGroupInput({ className, ...props }: InputProps): React$1.JSX.Element;
|
|
468
|
+
declare function InputGroupTextarea({ className, ...props }: TextareaProps): React$1.JSX.Element;
|
|
469
|
+
|
|
470
|
+
declare function FieldSet({ className, ...props }: React$1.ComponentProps<'fieldset'>): React$1.JSX.Element;
|
|
471
|
+
declare function FieldLegend({ className, variant, ...props }: React$1.ComponentProps<'legend'> & {
|
|
472
|
+
variant?: 'legend' | 'label';
|
|
473
|
+
}): React$1.JSX.Element;
|
|
474
|
+
declare function FieldGroup({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
475
|
+
declare const fieldVariants: (props?: ({
|
|
476
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
477
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
478
|
+
type StructuralFieldProps = React$1.ComponentProps<'div'> & VariantProps<typeof fieldVariants>;
|
|
479
|
+
interface LegacyFieldProps {
|
|
464
480
|
label: string;
|
|
465
|
-
/** Optional description text shown below the control */
|
|
466
481
|
description?: string;
|
|
467
|
-
|
|
482
|
+
descriptionId?: string;
|
|
468
483
|
error?: string;
|
|
469
|
-
|
|
484
|
+
errorId?: string;
|
|
470
485
|
required?: boolean;
|
|
471
|
-
/** HTML id for the form control - used for label's htmlFor */
|
|
472
486
|
htmlFor?: string;
|
|
473
|
-
/** Additional className for the wrapper */
|
|
474
487
|
className?: string;
|
|
475
|
-
|
|
476
|
-
children: React.ReactNode;
|
|
488
|
+
children: React$1.ReactNode;
|
|
477
489
|
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
* FieldRow is a horizontal layout variant for inline controls like checkboxes and switches.
|
|
495
|
-
* Places label beside the control instead of above.
|
|
496
|
-
*
|
|
497
|
-
* @example
|
|
498
|
-
* ```tsx
|
|
499
|
-
* <FieldRow label="Enable notifications" description="Receive email updates" htmlFor="notifications">
|
|
500
|
-
* <Switch id="notifications" />
|
|
501
|
-
* </FieldRow>
|
|
502
|
-
* ```
|
|
503
|
-
*/
|
|
504
|
-
interface FieldRowProps extends Omit<FieldProps, 'required'> {
|
|
505
|
-
/** Position of the label relative to the control */
|
|
490
|
+
type FieldProps = LegacyFieldProps | StructuralFieldProps;
|
|
491
|
+
declare function Field(props: LegacyFieldProps): React$1.ReactElement;
|
|
492
|
+
declare function Field(props: StructuralFieldProps): React$1.ReactElement;
|
|
493
|
+
declare function FieldContent({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
494
|
+
declare function FieldLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): React$1.JSX.Element;
|
|
495
|
+
declare function FieldTitle({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
496
|
+
declare function FieldDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
|
|
497
|
+
declare function FieldSeparator({ children, className, ...props }: React$1.ComponentProps<'div'> & {
|
|
498
|
+
children?: React$1.ReactNode;
|
|
499
|
+
}): React$1.JSX.Element;
|
|
500
|
+
declare function FieldError({ className, children, errors, ...props }: React$1.ComponentProps<'div'> & {
|
|
501
|
+
errors?: Array<{
|
|
502
|
+
message?: string;
|
|
503
|
+
} | undefined>;
|
|
504
|
+
}): React$1.JSX.Element | null;
|
|
505
|
+
interface FieldRowProps extends Omit<LegacyFieldProps, 'required'> {
|
|
506
506
|
labelPosition?: 'start' | 'end';
|
|
507
507
|
}
|
|
508
|
-
declare function FieldRow({ label, description, error, labelPosition, htmlFor, className, children, }: FieldRowProps):
|
|
508
|
+
declare function FieldRow({ label, description, error, labelPosition, htmlFor, className, children, }: FieldRowProps): React$1.JSX.Element;
|
|
509
|
+
|
|
510
|
+
declare function Empty({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
511
|
+
declare function EmptyHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
512
|
+
declare const emptyMediaVariants: (props?: ({
|
|
513
|
+
variant?: "default" | "icon" | null | undefined;
|
|
514
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
515
|
+
declare function EmptyMedia({ className, variant, ...props }: React$1.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): React$1.JSX.Element;
|
|
516
|
+
declare function EmptyTitle({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
517
|
+
declare function EmptyDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
|
|
518
|
+
declare function EmptyContent({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
509
519
|
|
|
510
520
|
type TooltipProviderProps = React$1.ComponentProps<typeof Tooltip$1.Provider> & {
|
|
511
521
|
/** @deprecated Use delay instead */
|
|
512
522
|
delayDuration?: number;
|
|
513
523
|
};
|
|
514
|
-
declare function TooltipProvider({ delay, delayDuration, ...props }: TooltipProviderProps):
|
|
524
|
+
declare function TooltipProvider({ delay, delayDuration, ...props }: TooltipProviderProps): React$1.JSX.Element;
|
|
515
525
|
type TooltipProps = React$1.ComponentProps<typeof Tooltip$1.Root> & {
|
|
516
526
|
/** @deprecated Use delay on Trigger instead */
|
|
517
527
|
delayDuration?: number;
|
|
518
528
|
};
|
|
519
|
-
declare function Tooltip({ delayDuration: _delayDuration, ...props }: TooltipProps):
|
|
520
|
-
type TooltipTriggerProps =
|
|
529
|
+
declare function Tooltip({ delayDuration: _delayDuration, ...props }: TooltipProps): React$1.JSX.Element;
|
|
530
|
+
type TooltipTriggerProps = React$1.ComponentProps<typeof Tooltip$1.Trigger> & {
|
|
521
531
|
delay?: number;
|
|
522
532
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
523
533
|
asChild?: boolean;
|
|
524
534
|
};
|
|
525
|
-
declare function TooltipTrigger({ delay, asChild, children, ...props }: TooltipTriggerProps):
|
|
535
|
+
declare function TooltipTrigger({ delay, asChild, children, render, ...props }: TooltipTriggerProps): React$1.JSX.Element;
|
|
526
536
|
type TooltipContentProps = React$1.ComponentProps<typeof Tooltip$1.Popup> & {
|
|
527
537
|
sideOffset?: number;
|
|
528
538
|
showArrow?: boolean;
|
|
529
539
|
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
530
540
|
align?: 'start' | 'center' | 'end';
|
|
531
541
|
};
|
|
532
|
-
declare function TooltipContent({ className, sideOffset, showArrow, side, align, children, ...props }: TooltipContentProps):
|
|
542
|
+
declare function TooltipContent({ className, sideOffset, showArrow, side, align, children, ...props }: TooltipContentProps): React$1.JSX.Element;
|
|
533
543
|
|
|
534
|
-
declare function Popover({ ...props }: React$1.ComponentProps<typeof Popover$1.Root>):
|
|
535
|
-
type PopoverTriggerProps =
|
|
544
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof Popover$1.Root>): React$1.JSX.Element;
|
|
545
|
+
type PopoverTriggerProps = React$1.ComponentProps<typeof Popover$1.Trigger> & {
|
|
546
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
547
|
+
asChild?: boolean;
|
|
548
|
+
};
|
|
549
|
+
declare function PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps): React$1.JSX.Element;
|
|
550
|
+
type PopoverCloseProps = React$1.ComponentProps<typeof Popover$1.Close> & {
|
|
536
551
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
537
552
|
asChild?: boolean;
|
|
538
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
539
|
-
nativeButton?: boolean;
|
|
540
553
|
};
|
|
541
|
-
declare function
|
|
554
|
+
declare function PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps): React$1.JSX.Element;
|
|
542
555
|
type PopoverContentProps = React$1.ComponentProps<typeof Popover$1.Popup> & {
|
|
543
556
|
align?: 'start' | 'center' | 'end';
|
|
544
557
|
sideOffset?: number;
|
|
@@ -553,76 +566,74 @@ type PopoverContentProps = React$1.ComponentProps<typeof Popover$1.Popup> & {
|
|
|
553
566
|
/** @deprecated Use onOpenChange on Root instead */
|
|
554
567
|
onEscapeKeyDown?: () => void;
|
|
555
568
|
};
|
|
556
|
-
declare function PopoverContent({ className, align, sideOffset, showArrow, side, children, onOpenAutoFocus: _onOpenAutoFocus, onCloseAutoFocus: _onCloseAutoFocus, onFocusOutside: _onFocusOutside, onEscapeKeyDown: _onEscapeKeyDown, ...props }: PopoverContentProps):
|
|
569
|
+
declare function PopoverContent({ className, align, sideOffset, showArrow, side, children, onOpenAutoFocus: _onOpenAutoFocus, onCloseAutoFocus: _onCloseAutoFocus, onFocusOutside: _onFocusOutside, onEscapeKeyDown: _onEscapeKeyDown, ...props }: PopoverContentProps): React$1.JSX.Element;
|
|
557
570
|
/**
|
|
558
571
|
* PopoverAnchor - placeholder for positioning anchor.
|
|
559
572
|
* @deprecated Base UI Popover positions relative to Trigger by default.
|
|
560
573
|
* For custom anchoring, use Popover.Positioner with anchor prop.
|
|
561
574
|
*/
|
|
562
|
-
declare function PopoverAnchor({ ...props }: React$1.HTMLAttributes<HTMLDivElement>):
|
|
575
|
+
declare function PopoverAnchor({ ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
576
|
+
declare function PopoverTitle({ className, ...props }: React$1.ComponentProps<typeof Popover$1.Title>): React$1.JSX.Element;
|
|
577
|
+
declare function PopoverDescription({ className, ...props }: React$1.ComponentProps<typeof Popover$1.Description>): React$1.JSX.Element;
|
|
563
578
|
|
|
564
579
|
declare const Dialog: typeof Dialog$1.Root;
|
|
565
|
-
declare function DialogPortal({
|
|
566
|
-
type DialogTriggerProps =
|
|
580
|
+
declare function DialogPortal({ container: containerProp, ...props }: Dialog$1.Portal.Props): React$1.JSX.Element;
|
|
581
|
+
type DialogTriggerProps = React$1.ComponentProps<typeof Dialog$1.Trigger> & {
|
|
567
582
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
568
583
|
asChild?: boolean;
|
|
569
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
570
|
-
nativeButton?: boolean;
|
|
571
584
|
};
|
|
572
|
-
declare function DialogTrigger({ asChild,
|
|
573
|
-
type DialogCloseProps =
|
|
585
|
+
declare function DialogTrigger({ asChild, children, render, nativeButton, ...props }: DialogTriggerProps): React$1.JSX.Element;
|
|
586
|
+
type DialogCloseProps = React$1.ComponentProps<typeof Dialog$1.Close> & {
|
|
574
587
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
575
588
|
asChild?: boolean;
|
|
576
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
577
|
-
nativeButton?: boolean;
|
|
578
589
|
};
|
|
579
|
-
declare function DialogClose({ asChild,
|
|
580
|
-
declare function DialogBackdrop({ className, ...props }: Dialog$1.Backdrop.Props):
|
|
590
|
+
declare function DialogClose({ asChild, children, render, nativeButton, ...props }: DialogCloseProps): React$1.JSX.Element;
|
|
591
|
+
declare function DialogBackdrop({ className, ...props }: Dialog$1.Backdrop.Props): React$1.JSX.Element;
|
|
581
592
|
declare function DialogPopup({ className, children, showCloseButton, bottomStickOnMobile, ...props }: Dialog$1.Popup.Props & {
|
|
582
593
|
showCloseButton?: boolean;
|
|
583
594
|
bottomStickOnMobile?: boolean;
|
|
584
|
-
}):
|
|
585
|
-
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">):
|
|
595
|
+
}): React$1.JSX.Element;
|
|
596
|
+
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
586
597
|
declare function DialogFooter({ className, variant, ...props }: React$1.ComponentProps<"div"> & {
|
|
587
598
|
variant?: "default" | "bare";
|
|
588
|
-
}):
|
|
589
|
-
declare function DialogTitle({ className, ...props }: Dialog$1.Title.Props):
|
|
590
|
-
declare function DialogDescription({ className, ...props }: Dialog$1.Description.Props):
|
|
599
|
+
}): React$1.JSX.Element;
|
|
600
|
+
declare function DialogTitle({ className, ...props }: Dialog$1.Title.Props): React$1.JSX.Element;
|
|
601
|
+
declare function DialogDescription({ className, ...props }: Dialog$1.Description.Props): React$1.JSX.Element;
|
|
591
602
|
|
|
592
|
-
declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Root>):
|
|
593
|
-
type AlertDialogTriggerProps =
|
|
603
|
+
declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Root>): React$1.JSX.Element;
|
|
604
|
+
type AlertDialogTriggerProps = React$1.ComponentProps<typeof AlertDialog$1.Trigger> & {
|
|
594
605
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
595
606
|
asChild?: boolean;
|
|
596
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
597
|
-
nativeButton?: boolean;
|
|
598
607
|
};
|
|
599
|
-
declare function AlertDialogTrigger({ asChild,
|
|
600
|
-
declare function AlertDialogPortal({
|
|
601
|
-
declare function AlertDialogContent({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Popup>):
|
|
602
|
-
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
603
|
-
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
604
|
-
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Title>):
|
|
605
|
-
declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Description>):
|
|
608
|
+
declare function AlertDialogTrigger({ asChild, children, render, nativeButton, ...props }: AlertDialogTriggerProps): React$1.JSX.Element;
|
|
609
|
+
declare function AlertDialogPortal({ container: containerProp, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Portal>): React$1.JSX.Element;
|
|
610
|
+
declare function AlertDialogContent({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Popup>): React$1.JSX.Element;
|
|
611
|
+
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
612
|
+
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
613
|
+
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Title>): React$1.JSX.Element;
|
|
614
|
+
declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Description>): React$1.JSX.Element;
|
|
606
615
|
/**
|
|
607
616
|
* AlertDialogAction - A button that performs the primary action and closes the dialog.
|
|
608
617
|
* Wraps AlertDialogPrimitive.Close with primary button styling.
|
|
609
618
|
*/
|
|
610
|
-
|
|
619
|
+
type AlertDialogCloseProps = React$1.ComponentProps<typeof AlertDialog$1.Close> & {
|
|
620
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
621
|
+
asChild?: boolean;
|
|
622
|
+
};
|
|
623
|
+
declare function AlertDialogAction({ asChild, children, render, nativeButton, className, ...props }: AlertDialogCloseProps): React$1.JSX.Element;
|
|
611
624
|
/**
|
|
612
625
|
* AlertDialogCancel - A button that cancels the action and closes the dialog.
|
|
613
626
|
* Wraps AlertDialogPrimitive.Close with outline button styling.
|
|
614
627
|
*/
|
|
615
|
-
declare function AlertDialogCancel({ className, ...props }: React$1.
|
|
628
|
+
declare function AlertDialogCancel({ asChild, children, render, nativeButton, className, ...props }: AlertDialogCloseProps): React$1.JSX.Element;
|
|
616
629
|
|
|
617
|
-
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof Menu.Root>):
|
|
618
|
-
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof Menu.Portal>):
|
|
619
|
-
type DropdownMenuTriggerProps =
|
|
630
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof Menu.Root>): React$1.JSX.Element;
|
|
631
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof Menu.Portal>): React$1.JSX.Element;
|
|
632
|
+
type DropdownMenuTriggerProps = React$1.ComponentProps<typeof Menu.Trigger> & {
|
|
620
633
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
621
634
|
asChild?: boolean;
|
|
622
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
623
|
-
nativeButton?: boolean;
|
|
624
635
|
};
|
|
625
|
-
declare function DropdownMenuTrigger({ asChild,
|
|
636
|
+
declare function DropdownMenuTrigger({ asChild, children, render, nativeButton, ...props }: DropdownMenuTriggerProps): React$1.JSX.Element;
|
|
626
637
|
type DropdownMenuContentProps = React$1.ComponentProps<typeof Menu.Popup> & {
|
|
627
638
|
sideOffset?: number;
|
|
628
639
|
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
@@ -636,28 +647,33 @@ type DropdownMenuContentProps = React$1.ComponentProps<typeof Menu.Popup> & {
|
|
|
636
647
|
/** @deprecated Base UI menus mount on open automatically */
|
|
637
648
|
forceMount?: boolean;
|
|
638
649
|
};
|
|
639
|
-
declare function DropdownMenuContent({ className, sideOffset, side, align, onPointerDown: _onPointerDown, onPointerDownOutside: _onPointerDownOutside, onCloseAutoFocus: _onCloseAutoFocus, forceMount: _forceMount, ...props }: DropdownMenuContentProps):
|
|
640
|
-
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof Menu.Group>):
|
|
641
|
-
type DropdownMenuItemProps =
|
|
650
|
+
declare function DropdownMenuContent({ className, sideOffset, side, align, onPointerDown: _onPointerDown, onPointerDownOutside: _onPointerDownOutside, onCloseAutoFocus: _onCloseAutoFocus, forceMount: _forceMount, ...props }: DropdownMenuContentProps): React$1.JSX.Element;
|
|
651
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof Menu.Group>): React$1.JSX.Element;
|
|
652
|
+
type DropdownMenuItemProps = React$1.ComponentProps<typeof Menu.Item> & {
|
|
642
653
|
inset?: boolean;
|
|
643
654
|
variant?: 'default' | 'destructive';
|
|
644
655
|
/** When true, merges props onto the child element instead of rendering a div */
|
|
645
656
|
asChild?: boolean;
|
|
646
657
|
};
|
|
647
|
-
declare function DropdownMenuItem({ className, inset, variant, asChild, children,
|
|
648
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof Menu.CheckboxItem>):
|
|
649
|
-
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof Menu.RadioGroup>):
|
|
650
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof Menu.RadioItem>):
|
|
651
|
-
|
|
658
|
+
declare function DropdownMenuItem({ className, inset, variant, asChild, children, render, ...props }: DropdownMenuItemProps): React$1.JSX.Element;
|
|
659
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof Menu.CheckboxItem>): React$1.JSX.Element;
|
|
660
|
+
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof Menu.RadioGroup>): React$1.JSX.Element;
|
|
661
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof Menu.RadioItem>): React$1.JSX.Element;
|
|
662
|
+
/**
|
|
663
|
+
* Uses Base UI's semantic GroupLabel inside DropdownMenuGroup. The standalone
|
|
664
|
+
* div fallback preserves compatibility with earlier Constructive menu markup,
|
|
665
|
+
* where labels were allowed directly inside DropdownMenuContent.
|
|
666
|
+
*/
|
|
667
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<'div'> & {
|
|
652
668
|
inset?: boolean;
|
|
653
|
-
}):
|
|
654
|
-
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof Menu.Separator>):
|
|
655
|
-
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<'span'>):
|
|
656
|
-
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof Menu.SubmenuRoot>):
|
|
669
|
+
}): React$1.JSX.Element;
|
|
670
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof Menu.Separator>): React$1.JSX.Element;
|
|
671
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<'span'>): React$1.JSX.Element;
|
|
672
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof Menu.SubmenuRoot>): React$1.JSX.Element;
|
|
657
673
|
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof Menu.SubmenuTrigger> & {
|
|
658
674
|
inset?: boolean;
|
|
659
|
-
}):
|
|
660
|
-
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof Menu.Popup>):
|
|
675
|
+
}): React$1.JSX.Element;
|
|
676
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof Menu.Popup>): React$1.JSX.Element;
|
|
661
677
|
|
|
662
678
|
type SheetProps = Omit<React$1.ComponentProps<typeof Dialog$1.Root>, 'onOpenChange'> & {
|
|
663
679
|
/** Unique identifier for this sheet in a stack. Auto-generated if not provided. */
|
|
@@ -665,21 +681,17 @@ type SheetProps = Omit<React$1.ComponentProps<typeof Dialog$1.Root>, 'onOpenChan
|
|
|
665
681
|
/** Callback when open state changes - simplified to just boolean for backwards compatibility */
|
|
666
682
|
onOpenChange?: (open: boolean) => void;
|
|
667
683
|
};
|
|
668
|
-
declare function Sheet({ children, sheetId: providedId, ...props }: SheetProps):
|
|
669
|
-
type SheetTriggerProps =
|
|
684
|
+
declare function Sheet({ children, sheetId: providedId, open: openProp, defaultOpen, onOpenChange, modal, ...props }: SheetProps): React$1.JSX.Element;
|
|
685
|
+
type SheetTriggerProps = React$1.ComponentProps<typeof Dialog$1.Trigger> & {
|
|
670
686
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
671
687
|
asChild?: boolean;
|
|
672
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
673
|
-
nativeButton?: boolean;
|
|
674
688
|
};
|
|
675
|
-
declare function SheetTrigger({ asChild,
|
|
676
|
-
type SheetCloseProps =
|
|
689
|
+
declare function SheetTrigger({ asChild, children, render, nativeButton, ...props }: SheetTriggerProps): React$1.JSX.Element;
|
|
690
|
+
type SheetCloseProps = React$1.ComponentProps<typeof Dialog$1.Close> & {
|
|
677
691
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
678
692
|
asChild?: boolean;
|
|
679
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
680
|
-
nativeButton?: boolean;
|
|
681
693
|
};
|
|
682
|
-
declare function SheetClose({ asChild,
|
|
694
|
+
declare function SheetClose({ asChild, children, render, nativeButton, ...props }: SheetCloseProps): React$1.JSX.Element;
|
|
683
695
|
declare const sheetVariants: (props?: ({
|
|
684
696
|
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
685
697
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -700,110 +712,127 @@ type SheetContentProps = Omit<React$1.ComponentProps<typeof Dialog$1.Popup>, 'ch
|
|
|
700
712
|
/** @deprecated Use onOpenChange on Root instead */
|
|
701
713
|
onFocusOutside?: (e: Event) => void;
|
|
702
714
|
};
|
|
703
|
-
declare function SheetContent({ side, className, transition, overlay, showClose, children, forceMount: _forceMount, onInteractOutside: _onInteractOutside, onPointerDownOutside: _onPointerDownOutside, onEscapeKeyDown: _onEscapeKeyDown, onFocusOutside: _onFocusOutside, ...props }: SheetContentProps):
|
|
715
|
+
declare function SheetContent({ side, className, transition, overlay, showClose, children, forceMount: _forceMount, onInteractOutside: _onInteractOutside, onPointerDownOutside: _onPointerDownOutside, onEscapeKeyDown: _onEscapeKeyDown, onFocusOutside: _onFocusOutside, ...props }: SheetContentProps): React$1.JSX.Element;
|
|
704
716
|
type SheetHeaderProps = React$1.ComponentProps<'div'>;
|
|
705
|
-
declare function SheetHeader({ className, ...props }: SheetHeaderProps):
|
|
717
|
+
declare function SheetHeader({ className, ...props }: SheetHeaderProps): React$1.JSX.Element;
|
|
706
718
|
type SheetFooterProps = React$1.ComponentProps<'div'>;
|
|
707
|
-
declare function SheetFooter({ className, ...props }: SheetFooterProps):
|
|
719
|
+
declare function SheetFooter({ className, ...props }: SheetFooterProps): React$1.JSX.Element;
|
|
708
720
|
type SheetTitleProps = React$1.ComponentProps<typeof Dialog$1.Title>;
|
|
709
|
-
declare function SheetTitle({ className, ...props }: SheetTitleProps):
|
|
721
|
+
declare function SheetTitle({ className, ...props }: SheetTitleProps): React$1.JSX.Element;
|
|
710
722
|
type SheetDescriptionProps = React$1.ComponentProps<typeof Dialog$1.Description>;
|
|
711
|
-
declare function SheetDescription({ className, ...props }: SheetDescriptionProps):
|
|
712
|
-
|
|
713
|
-
declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>):
|
|
714
|
-
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>):
|
|
715
|
-
declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>):
|
|
716
|
-
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>):
|
|
717
|
-
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>):
|
|
718
|
-
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>):
|
|
719
|
-
declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
720
|
-
declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
721
|
-
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>):
|
|
722
|
-
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>):
|
|
723
|
-
|
|
724
|
-
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Root>):
|
|
725
|
-
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.List>):
|
|
726
|
-
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Tab>):
|
|
727
|
-
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Panel>):
|
|
723
|
+
declare function SheetDescription({ className, ...props }: SheetDescriptionProps): React$1.JSX.Element;
|
|
724
|
+
|
|
725
|
+
declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): React$1.JSX.Element;
|
|
726
|
+
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): React$1.JSX.Element;
|
|
727
|
+
declare function DrawerPortal({ container: containerProp, ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): React$1.JSX.Element;
|
|
728
|
+
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): React$1.JSX.Element;
|
|
729
|
+
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): React$1.JSX.Element;
|
|
730
|
+
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): React$1.JSX.Element;
|
|
731
|
+
declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
732
|
+
declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
733
|
+
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): React$1.JSX.Element;
|
|
734
|
+
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): React$1.JSX.Element;
|
|
735
|
+
|
|
736
|
+
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Root>): React$1.JSX.Element;
|
|
737
|
+
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.List>): React$1.JSX.Element;
|
|
738
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Tab>): React$1.JSX.Element;
|
|
739
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Panel>): React$1.JSX.Element;
|
|
728
740
|
|
|
729
741
|
/**
|
|
730
742
|
* Collapsible Root
|
|
731
743
|
* Container for collapsible content with open/close state management.
|
|
732
744
|
*/
|
|
733
|
-
declare function Collapsible({ className, ...props }: Collapsible$1.Root.Props):
|
|
745
|
+
declare function Collapsible({ className, ...props }: Collapsible$1.Root.Props): React$1.JSX.Element;
|
|
734
746
|
/**
|
|
735
|
-
* CollapsibleTrigger
|
|
736
|
-
* Button that toggles the collapsible open/closed state.
|
|
737
|
-
* Supports asChild pattern for custom trigger elements.
|
|
747
|
+
* CollapsibleTrigger Props
|
|
738
748
|
*/
|
|
739
|
-
|
|
749
|
+
type CollapsibleTriggerProps = Collapsible$1.Trigger.Props & {
|
|
740
750
|
/** When true, merges props onto the child element instead of rendering a button */
|
|
741
751
|
asChild?: boolean;
|
|
742
752
|
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
743
753
|
nativeButton?: boolean;
|
|
744
|
-
}
|
|
754
|
+
};
|
|
745
755
|
/**
|
|
746
|
-
*
|
|
747
|
-
*
|
|
748
|
-
*
|
|
756
|
+
* CollapsibleTrigger
|
|
757
|
+
* Button that toggles the collapsible open/closed state.
|
|
758
|
+
* Supports asChild pattern for custom trigger elements.
|
|
759
|
+
*/
|
|
760
|
+
declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
761
|
+
/**
|
|
762
|
+
* CollapsiblePanel Props
|
|
749
763
|
*/
|
|
750
|
-
|
|
764
|
+
type CollapsiblePanelProps = Collapsible$1.Panel.Props & {
|
|
751
765
|
/** Additional className for the inner content wrapper */
|
|
752
766
|
innerClassName?: string;
|
|
753
|
-
}
|
|
767
|
+
};
|
|
768
|
+
/**
|
|
769
|
+
* CollapsiblePanel
|
|
770
|
+
* Compositor-animated reveal for collapsible content.
|
|
771
|
+
* Geometry snaps to its measured height while opacity/translation carry the state change.
|
|
772
|
+
*/
|
|
773
|
+
declare const CollapsiblePanel: React$1.ForwardRefExoticComponent<Omit<CollapsiblePanelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
754
774
|
|
|
755
|
-
|
|
775
|
+
type ScrollAreaProps = ScrollArea$1.Root.Props & {
|
|
756
776
|
scrollFade?: boolean;
|
|
757
777
|
scrollbarGutter?: boolean;
|
|
758
|
-
}
|
|
759
|
-
declare
|
|
778
|
+
};
|
|
779
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
780
|
+
declare function ScrollBar({ className, orientation, ...props }: ScrollArea$1.Scrollbar.Props): React$1.JSX.Element;
|
|
760
781
|
|
|
761
|
-
declare function ResizablePanelGroup({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>):
|
|
762
|
-
declare function ResizablePanel({ ...props }: React$1.ComponentProps<typeof ResizablePrimitive.Panel>):
|
|
782
|
+
declare function ResizablePanelGroup({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>): React$1.JSX.Element;
|
|
783
|
+
declare function ResizablePanel({ ...props }: React$1.ComponentProps<typeof ResizablePrimitive.Panel>): React$1.JSX.Element;
|
|
763
784
|
declare function ResizableHandle({ withHandle, className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
764
785
|
withHandle?: boolean;
|
|
765
|
-
}):
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
declare function
|
|
779
|
-
declare function
|
|
780
|
-
declare function
|
|
786
|
+
}): React$1.JSX.Element;
|
|
787
|
+
|
|
788
|
+
type TableProps = React$1.ComponentProps<'table'> & {
|
|
789
|
+
/** Classes for the horizontal scroll wrapper around the table */
|
|
790
|
+
containerClassName?: string;
|
|
791
|
+
/** Extra props for the scroll wrapper (e.g. ref, data attributes) */
|
|
792
|
+
containerProps?: Omit<React$1.ComponentProps<'div'>, 'className' | 'children'>;
|
|
793
|
+
};
|
|
794
|
+
/**
|
|
795
|
+
* Semantic table primitives. `Table` wraps the native element in an overflow
|
|
796
|
+
* container so wide content scrolls without breaking page layout.
|
|
797
|
+
*/
|
|
798
|
+
declare function Table({ className, containerClassName, containerProps, ...props }: TableProps): React$1.JSX.Element;
|
|
799
|
+
declare function TableHeader({ className, ...props }: React$1.ComponentProps<'thead'>): React$1.JSX.Element;
|
|
800
|
+
declare function TableBody({ className, ...props }: React$1.ComponentProps<'tbody'>): React$1.JSX.Element;
|
|
801
|
+
declare function TableFooter({ className, ...props }: React$1.ComponentProps<'tfoot'>): React$1.JSX.Element;
|
|
802
|
+
declare function TableRow({ className, ...props }: React$1.ComponentProps<'tr'>): React$1.JSX.Element;
|
|
803
|
+
declare function TableHead({ className, ...props }: React$1.ComponentProps<'th'>): React$1.JSX.Element;
|
|
804
|
+
declare function TableCell({ className, ...props }: React$1.ComponentProps<'td'>): React$1.JSX.Element;
|
|
805
|
+
declare function TableCaption({ className, ...props }: React$1.ComponentProps<'caption'>): React$1.JSX.Element;
|
|
806
|
+
|
|
807
|
+
declare function Pagination({ className, ...props }: React$1.ComponentProps<'nav'>): React$1.JSX.Element;
|
|
808
|
+
declare function PaginationContent({ className, ...props }: React$1.ComponentProps<'ul'>): React$1.JSX.Element;
|
|
809
|
+
declare function PaginationItem({ className, ...props }: React$1.ComponentProps<'li'>): React$1.JSX.Element;
|
|
781
810
|
type PaginationLinkProps = {
|
|
782
811
|
isActive?: boolean;
|
|
783
812
|
isDisabled?: boolean;
|
|
784
813
|
} & Pick<React$1.ComponentProps<typeof Button>, 'size'> & React$1.ComponentProps<'a'>;
|
|
785
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps):
|
|
786
|
-
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>):
|
|
787
|
-
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>):
|
|
788
|
-
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<'span'>):
|
|
789
|
-
|
|
790
|
-
declare function Breadcrumb({ ...props }: React$1.ComponentProps<'nav'>):
|
|
791
|
-
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<'ol'>):
|
|
792
|
-
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<'li'>):
|
|
793
|
-
declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<'a'> & {
|
|
814
|
+
declare function PaginationLink({ className, isActive, isDisabled, size, ...props }: PaginationLinkProps): React$1.JSX.Element;
|
|
815
|
+
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): React$1.JSX.Element;
|
|
816
|
+
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): React$1.JSX.Element;
|
|
817
|
+
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): React$1.JSX.Element;
|
|
818
|
+
|
|
819
|
+
declare function Breadcrumb({ ...props }: React$1.ComponentProps<'nav'>): React$1.JSX.Element;
|
|
820
|
+
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<'ol'>): React$1.JSX.Element;
|
|
821
|
+
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<'li'>): React$1.JSX.Element;
|
|
822
|
+
declare function BreadcrumbLink({ asChild, render, className, children, ...props }: useRender.ComponentProps<'a'> & React$1.ComponentProps<'a'> & {
|
|
794
823
|
asChild?: boolean;
|
|
795
|
-
}):
|
|
796
|
-
declare function BreadcrumbPage({ className, ...props }: React$1.ComponentProps<'span'>):
|
|
797
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<'li'>):
|
|
798
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<'span'>):
|
|
824
|
+
}): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
825
|
+
declare function BreadcrumbPage({ className, ...props }: React$1.ComponentProps<'span'>): React$1.JSX.Element;
|
|
826
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<'li'>): React$1.JSX.Element;
|
|
827
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): React$1.JSX.Element;
|
|
799
828
|
|
|
800
|
-
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>):
|
|
801
|
-
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>):
|
|
829
|
+
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): React$1.JSX.Element;
|
|
830
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): React$1.JSX.Element;
|
|
802
831
|
type AvatarFallbackProps = React$1.ComponentProps<typeof Avatar$1.Fallback> & {
|
|
803
832
|
/** @deprecated Use delay prop instead */
|
|
804
833
|
delayMs?: number;
|
|
805
834
|
};
|
|
806
|
-
declare function AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps):
|
|
835
|
+
declare function AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps): React$1.JSX.Element;
|
|
807
836
|
|
|
808
837
|
declare const Autocomplete: typeof Autocomplete$1.Root;
|
|
809
838
|
declare function AutocompleteInput({ className, showTrigger, showClear, startAddon, size, ...props }: Omit<Autocomplete$1.Input.Props, "size"> & {
|
|
@@ -812,13 +841,13 @@ declare function AutocompleteInput({ className, showTrigger, showClear, startAdd
|
|
|
812
841
|
startAddon?: React.ReactNode;
|
|
813
842
|
size?: "sm" | "default" | "lg";
|
|
814
843
|
ref?: React.Ref<HTMLInputElement>;
|
|
815
|
-
}):
|
|
844
|
+
}): React$1.JSX.Element;
|
|
816
845
|
declare function AutocompletePopup({ className, children, sideOffset, ...props }: Autocomplete$1.Popup.Props & {
|
|
817
846
|
sideOffset?: number;
|
|
818
|
-
}):
|
|
819
|
-
declare function AutocompleteItem({ className, children, ...props }: Autocomplete$1.Item.Props):
|
|
820
|
-
declare function AutocompleteSeparator({ className, ...props }: Autocomplete$1.Separator.Props):
|
|
821
|
-
declare function AutocompleteEmpty({ className, ...props }: Autocomplete$1.Empty.Props):
|
|
847
|
+
}): React$1.JSX.Element;
|
|
848
|
+
declare function AutocompleteItem({ className, children, ...props }: Autocomplete$1.Item.Props): React$1.JSX.Element;
|
|
849
|
+
declare function AutocompleteSeparator({ className, ...props }: Autocomplete$1.Separator.Props): React$1.JSX.Element;
|
|
850
|
+
declare function AutocompleteEmpty({ className, ...props }: Autocomplete$1.Empty.Props): React$1.JSX.Element;
|
|
822
851
|
|
|
823
852
|
interface FlowZoomPanelProps {
|
|
824
853
|
className?: string;
|
|
@@ -826,34 +855,34 @@ interface FlowZoomPanelProps {
|
|
|
826
855
|
fitViewIcon?: React.ReactNode;
|
|
827
856
|
fitViewOptions?: FitViewOptions;
|
|
828
857
|
}
|
|
829
|
-
declare function FlowZoomPanel({ className, position, fitViewIcon, fitViewOptions, }: FlowZoomPanelProps):
|
|
858
|
+
declare function FlowZoomPanel({ className, position, fitViewIcon, fitViewOptions, }: FlowZoomPanelProps): React$1.JSX.Element;
|
|
830
859
|
|
|
831
|
-
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>):
|
|
832
|
-
declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>):
|
|
833
|
-
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>):
|
|
834
|
-
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>):
|
|
860
|
+
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): React$1.JSX.Element;
|
|
861
|
+
declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>): React$1.JSX.Element;
|
|
862
|
+
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): React$1.JSX.Element;
|
|
863
|
+
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): React$1.JSX.Element;
|
|
835
864
|
declare function CommandGroup({ className, heading, children, ...props }: React$1.ComponentProps<typeof Command$1.Group> & {
|
|
836
865
|
heading?: React$1.ReactNode;
|
|
837
|
-
}):
|
|
838
|
-
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>):
|
|
866
|
+
}): React$1.JSX.Element;
|
|
867
|
+
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): React$1.JSX.Element;
|
|
839
868
|
|
|
840
|
-
declare function Combobox<ItemValue, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<ItemValue, Multiple>):
|
|
869
|
+
declare function Combobox<ItemValue, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<ItemValue, Multiple>): React$1.JSX.Element;
|
|
841
870
|
declare function ComboboxInput({ className, showTrigger, showClear, startAddon, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
|
|
842
871
|
showTrigger?: boolean;
|
|
843
872
|
showClear?: boolean;
|
|
844
873
|
startAddon?: React$1.ReactNode;
|
|
845
874
|
size?: "sm" | "default" | "lg" | number;
|
|
846
875
|
ref?: React$1.Ref<HTMLInputElement>;
|
|
847
|
-
}):
|
|
848
|
-
declare function ComboboxTrigger({ className, ...props }: Combobox$1.Trigger.Props):
|
|
876
|
+
}): React$1.JSX.Element;
|
|
877
|
+
declare function ComboboxTrigger({ className, ...props }: Combobox$1.Trigger.Props): React$1.JSX.Element;
|
|
849
878
|
declare function ComboboxPopup({ className, children, sideOffset, ...props }: Combobox$1.Popup.Props & {
|
|
850
879
|
sideOffset?: number;
|
|
851
|
-
}):
|
|
852
|
-
declare function ComboboxItem({ className, children, ...props }: Combobox$1.Item.Props):
|
|
853
|
-
declare function ComboboxSeparator({ className, ...props }: Combobox$1.Separator.Props):
|
|
854
|
-
declare function ComboboxGroup({ className, ...props }: Combobox$1.Group.Props):
|
|
855
|
-
declare function ComboboxEmpty({ className, ...props }: Combobox$1.Empty.Props):
|
|
856
|
-
declare function ComboboxList({ className, ...props }: Combobox$1.List.Props):
|
|
880
|
+
}): React$1.JSX.Element;
|
|
881
|
+
declare function ComboboxItem({ className, children, ...props }: Combobox$1.Item.Props): React$1.JSX.Element;
|
|
882
|
+
declare function ComboboxSeparator({ className, ...props }: Combobox$1.Separator.Props): React$1.JSX.Element;
|
|
883
|
+
declare function ComboboxGroup({ className, ...props }: Combobox$1.Group.Props): React$1.JSX.Element;
|
|
884
|
+
declare function ComboboxEmpty({ className, ...props }: Combobox$1.Empty.Props): React$1.JSX.Element;
|
|
885
|
+
declare function ComboboxList({ className, ...props }: Combobox$1.List.Props): React$1.JSX.Element;
|
|
857
886
|
declare const ComboboxContent: typeof ComboboxPopup;
|
|
858
887
|
type ComboboxProps<ItemValue = unknown, Multiple extends boolean | undefined = false> = Combobox$1.Root.Props<ItemValue, Multiple>;
|
|
859
888
|
type ComboboxTriggerProps = Combobox$1.Trigger.Props;
|
|
@@ -1066,25 +1095,25 @@ type TagsProps = {
|
|
|
1066
1095
|
children?: ReactNode;
|
|
1067
1096
|
className?: string;
|
|
1068
1097
|
};
|
|
1069
|
-
declare const Tags: ({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className, }: TagsProps) =>
|
|
1098
|
+
declare const Tags: ({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className, }: TagsProps) => React$1.JSX.Element;
|
|
1070
1099
|
type TagsTriggerProps = ComponentProps<typeof Button>;
|
|
1071
|
-
declare const TagsTrigger: ({ className, children, ...props }: TagsTriggerProps) =>
|
|
1100
|
+
declare const TagsTrigger: ({ className, children, ...props }: TagsTriggerProps) => React$1.JSX.Element;
|
|
1072
1101
|
type TagsValueProps = ComponentProps<typeof Badge>;
|
|
1073
1102
|
declare const TagsValue: ({ className, children, onRemove, ...props }: TagsValueProps & {
|
|
1074
1103
|
onRemove?: () => void;
|
|
1075
|
-
}) =>
|
|
1104
|
+
}) => React$1.JSX.Element;
|
|
1076
1105
|
type TagsContentProps = ComponentProps<typeof PopoverContent>;
|
|
1077
|
-
declare const TagsContent: ({ className, children, ...props }: TagsContentProps) =>
|
|
1106
|
+
declare const TagsContent: ({ className, children, ...props }: TagsContentProps) => React$1.JSX.Element;
|
|
1078
1107
|
type TagsInputProps = ComponentProps<typeof CommandInput>;
|
|
1079
|
-
declare const TagsInput: ({ className, ...props }: TagsInputProps) =>
|
|
1108
|
+
declare const TagsInput: ({ className, ...props }: TagsInputProps) => React$1.JSX.Element;
|
|
1080
1109
|
type TagsListProps = ComponentProps<typeof CommandList>;
|
|
1081
|
-
declare const TagsList: ({ className, ...props }: TagsListProps) =>
|
|
1110
|
+
declare const TagsList: ({ className, ...props }: TagsListProps) => React$1.JSX.Element;
|
|
1082
1111
|
type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
1083
|
-
declare const TagsEmpty: ({ children, className: _className, ...props }: TagsEmptyProps) =>
|
|
1112
|
+
declare const TagsEmpty: ({ children, className: _className, ...props }: TagsEmptyProps) => React$1.JSX.Element;
|
|
1084
1113
|
type TagsGroupProps = ComponentProps<typeof CommandGroup>;
|
|
1085
1114
|
declare const TagsGroup: typeof CommandGroup;
|
|
1086
1115
|
type TagsItemProps = ComponentProps<typeof CommandItem>;
|
|
1087
|
-
declare const TagsItem: ({ className, ...props }: TagsItemProps) =>
|
|
1116
|
+
declare const TagsItem: ({ className, ...props }: TagsItemProps) => React$1.JSX.Element;
|
|
1088
1117
|
|
|
1089
1118
|
interface RecordPickerProps {
|
|
1090
1119
|
records: any[];
|
|
@@ -1097,7 +1126,7 @@ interface RecordPickerProps {
|
|
|
1097
1126
|
placeholder?: string;
|
|
1098
1127
|
maxHeight?: string;
|
|
1099
1128
|
}
|
|
1100
|
-
declare function RecordPicker({ records, linkedRecordIds, onLink, isLinking, getRecordLabel, getRecordId, searchFields, placeholder, maxHeight, }: RecordPickerProps):
|
|
1129
|
+
declare function RecordPicker({ records, linkedRecordIds, onLink, isLinking, getRecordLabel, getRecordId, searchFields, placeholder, maxHeight, }: RecordPickerProps): React$1.JSX.Element;
|
|
1101
1130
|
|
|
1102
1131
|
interface StepperProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1103
1132
|
defaultValue?: number;
|
|
@@ -1105,97 +1134,205 @@ interface StepperProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1105
1134
|
onValueChange?: (value: number) => void;
|
|
1106
1135
|
orientation?: 'horizontal' | 'vertical';
|
|
1107
1136
|
}
|
|
1108
|
-
declare function Stepper({ defaultValue, value, onValueChange, orientation, className, ...props }: StepperProps):
|
|
1137
|
+
declare function Stepper({ defaultValue, value, onValueChange, orientation, className, ...props }: StepperProps): React$1.JSX.Element;
|
|
1109
1138
|
interface StepperItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1110
1139
|
step: number;
|
|
1111
1140
|
completed?: boolean;
|
|
1112
1141
|
disabled?: boolean;
|
|
1113
1142
|
loading?: boolean;
|
|
1114
1143
|
}
|
|
1115
|
-
declare function StepperItem({ step, completed, disabled, loading, className, children, ...props }: StepperItemProps):
|
|
1144
|
+
declare function StepperItem({ step, completed, disabled, loading, className, children, ...props }: StepperItemProps): React$1.JSX.Element;
|
|
1116
1145
|
interface StepperTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1117
1146
|
asChild?: boolean;
|
|
1147
|
+
/** Disables hover and press scaling when motion would distract. */
|
|
1148
|
+
static?: boolean;
|
|
1118
1149
|
}
|
|
1119
|
-
declare function StepperTrigger({ asChild, className, children, ...props }: StepperTriggerProps):
|
|
1150
|
+
declare function StepperTrigger({ asChild, static: isStatic, className, children, ...props }: StepperTriggerProps): React$1.JSX.Element;
|
|
1120
1151
|
interface StepperIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1121
1152
|
asChild?: boolean;
|
|
1122
1153
|
}
|
|
1123
|
-
declare function StepperIndicator({ asChild, className, children, ...props }: StepperIndicatorProps):
|
|
1124
|
-
declare function StepperTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>):
|
|
1125
|
-
declare function StepperDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>):
|
|
1126
|
-
declare function StepperSeparator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>):
|
|
1154
|
+
declare function StepperIndicator({ asChild, className, children, ...props }: StepperIndicatorProps): React$1.JSX.Element;
|
|
1155
|
+
declare function StepperTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): React$1.JSX.Element;
|
|
1156
|
+
declare function StepperDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): React$1.JSX.Element;
|
|
1157
|
+
declare function StepperSeparator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
1127
1158
|
|
|
1128
1159
|
type SidebarContextProps = {
|
|
1160
|
+
sidebarId: string;
|
|
1129
1161
|
state: 'expanded' | 'collapsed';
|
|
1130
1162
|
open: boolean;
|
|
1131
|
-
setOpen: (open: boolean) => void;
|
|
1163
|
+
setOpen: (open: boolean | ((open: boolean) => boolean)) => void;
|
|
1132
1164
|
openMobile: boolean;
|
|
1133
|
-
setOpenMobile:
|
|
1165
|
+
setOpenMobile: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
1134
1166
|
isMobile: boolean;
|
|
1135
1167
|
toggleSidebar: () => void;
|
|
1136
|
-
isHovered: boolean;
|
|
1137
|
-
setIsHovered: (hovered: boolean) => void;
|
|
1138
1168
|
};
|
|
1139
1169
|
declare function useSidebar(): SidebarContextProps;
|
|
1140
1170
|
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
1141
1171
|
defaultOpen?: boolean;
|
|
1142
1172
|
open?: boolean;
|
|
1143
1173
|
onOpenChange?: (open: boolean) => void;
|
|
1144
|
-
}):
|
|
1145
|
-
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
1174
|
+
}): React$1.JSX.Element;
|
|
1175
|
+
declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React$1.ComponentProps<'div'> & {
|
|
1146
1176
|
side?: 'left' | 'right';
|
|
1147
1177
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
1148
1178
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
1149
|
-
}):
|
|
1150
|
-
declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button>):
|
|
1151
|
-
declare function
|
|
1152
|
-
declare function
|
|
1153
|
-
declare function
|
|
1154
|
-
declare function
|
|
1155
|
-
declare function
|
|
1156
|
-
declare function
|
|
1157
|
-
declare function
|
|
1158
|
-
declare function
|
|
1159
|
-
|
|
1160
|
-
}):
|
|
1161
|
-
declare function
|
|
1162
|
-
|
|
1163
|
-
}):
|
|
1164
|
-
declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1165
|
-
declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
1166
|
-
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1179
|
+
}): React$1.JSX.Element;
|
|
1180
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
|
|
1181
|
+
declare function SidebarRail({ className, ...props }: React$1.ComponentProps<'button'>): React$1.JSX.Element;
|
|
1182
|
+
declare function SidebarInset({ className, ...props }: React$1.ComponentProps<'main'>): React$1.JSX.Element;
|
|
1183
|
+
declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input>): React$1.JSX.Element;
|
|
1184
|
+
declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
1185
|
+
declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
1186
|
+
declare function SidebarSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): React$1.JSX.Element;
|
|
1187
|
+
declare function SidebarContent({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
1188
|
+
declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
1189
|
+
declare function SidebarGroupLabel({ className, render, ...props }: useRender.ComponentProps<'div'> & React$1.ComponentProps<'div'>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
1190
|
+
declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
1191
|
+
declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
1192
|
+
declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<'ul'>): React$1.JSX.Element;
|
|
1193
|
+
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<'li'>): React$1.JSX.Element;
|
|
1167
1194
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1168
1195
|
variant?: "outline" | "default" | null | undefined;
|
|
1169
1196
|
size?: "default" | "lg" | "sm" | null | undefined;
|
|
1170
1197
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1171
|
-
declare function SidebarMenuButton({
|
|
1172
|
-
asChild?: boolean;
|
|
1198
|
+
declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'> & {
|
|
1173
1199
|
isActive?: boolean;
|
|
1174
1200
|
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
1175
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
1176
|
-
declare function SidebarMenuAction({ className,
|
|
1177
|
-
asChild?: boolean;
|
|
1201
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): React$1.JSX.Element;
|
|
1202
|
+
declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'> & {
|
|
1178
1203
|
showOnHover?: boolean;
|
|
1179
|
-
}):
|
|
1180
|
-
declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<'div'>):
|
|
1204
|
+
}): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
1205
|
+
declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
1181
1206
|
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<'div'> & {
|
|
1182
1207
|
showIcon?: boolean;
|
|
1183
|
-
}):
|
|
1184
|
-
declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<'ul'>):
|
|
1185
|
-
declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<'li'>):
|
|
1186
|
-
declare function SidebarMenuSubButton({
|
|
1187
|
-
asChild?: boolean;
|
|
1208
|
+
}): React$1.JSX.Element;
|
|
1209
|
+
declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<'ul'>): React$1.JSX.Element;
|
|
1210
|
+
declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<'li'>): React$1.JSX.Element;
|
|
1211
|
+
declare function SidebarMenuSubButton({ render, size, isActive, className, ...props }: useRender.ComponentProps<'a'> & React$1.ComponentProps<'a'> & {
|
|
1188
1212
|
size?: 'sm' | 'md';
|
|
1189
1213
|
isActive?: boolean;
|
|
1190
|
-
}):
|
|
1214
|
+
}): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
1215
|
+
|
|
1216
|
+
interface AppLinkRenderProps extends Omit<React$1.ComponentProps<'a'>, 'href'> {
|
|
1217
|
+
href: string;
|
|
1218
|
+
}
|
|
1219
|
+
type AppLinkRenderer = (props: AppLinkRenderProps) => React$1.ReactElement;
|
|
1220
|
+
interface AppBreadcrumbItem {
|
|
1221
|
+
id: string;
|
|
1222
|
+
label: React$1.ReactNode;
|
|
1223
|
+
href?: string;
|
|
1224
|
+
current?: boolean;
|
|
1225
|
+
}
|
|
1226
|
+
type AppBarRootProps = useRender.ComponentProps<'header'> & React$1.ComponentProps<'header'>;
|
|
1227
|
+
type AppBarProps = Omit<AppBarRootProps, 'children'> & {
|
|
1228
|
+
breadcrumbs?: readonly AppBreadcrumbItem[];
|
|
1229
|
+
renderLink?: AppLinkRenderer;
|
|
1230
|
+
leading?: React$1.ReactNode;
|
|
1231
|
+
search?: React$1.ReactNode;
|
|
1232
|
+
actions?: React$1.ReactNode;
|
|
1233
|
+
toggleLabel?: string;
|
|
1234
|
+
};
|
|
1235
|
+
declare function createAppLink(renderLink: AppLinkRenderer | undefined, props: AppLinkRenderProps): React$1.JSX.Element;
|
|
1236
|
+
declare function AppBar({ breadcrumbs, renderLink, leading, search, actions, toggleLabel, className, render, ...props }: AppBarProps): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
1237
|
+
|
|
1238
|
+
type AppIcon = React$1.ComponentType<{
|
|
1239
|
+
className?: string;
|
|
1240
|
+
'aria-hidden'?: boolean | 'true' | 'false';
|
|
1241
|
+
}>;
|
|
1242
|
+
interface AppNavigationChild {
|
|
1243
|
+
id: string;
|
|
1244
|
+
label: React$1.ReactNode;
|
|
1245
|
+
href: string;
|
|
1246
|
+
isActive?: boolean;
|
|
1247
|
+
disabled?: boolean;
|
|
1248
|
+
}
|
|
1249
|
+
interface AppNavigationItem extends AppNavigationChild {
|
|
1250
|
+
icon?: AppIcon;
|
|
1251
|
+
badge?: React$1.ReactNode;
|
|
1252
|
+
defaultOpen?: boolean;
|
|
1253
|
+
toggleLabel?: string;
|
|
1254
|
+
children?: readonly AppNavigationChild[];
|
|
1255
|
+
}
|
|
1256
|
+
interface AppNavigationGroup {
|
|
1257
|
+
id: string;
|
|
1258
|
+
label?: React$1.ReactNode;
|
|
1259
|
+
placement?: 'main' | 'footer';
|
|
1260
|
+
items: readonly AppNavigationItem[];
|
|
1261
|
+
}
|
|
1262
|
+
interface AppShellBrand {
|
|
1263
|
+
name: React$1.ReactNode;
|
|
1264
|
+
description?: React$1.ReactNode;
|
|
1265
|
+
href?: string;
|
|
1266
|
+
logo?: React$1.ReactNode;
|
|
1267
|
+
}
|
|
1268
|
+
interface AppAccountActionBase {
|
|
1269
|
+
id: string;
|
|
1270
|
+
label: React$1.ReactNode;
|
|
1271
|
+
icon?: AppIcon;
|
|
1272
|
+
disabled?: boolean;
|
|
1273
|
+
variant?: 'default' | 'destructive';
|
|
1274
|
+
}
|
|
1275
|
+
type AppAccountAction = AppAccountActionBase & ({
|
|
1276
|
+
href: string;
|
|
1277
|
+
onSelect?: never;
|
|
1278
|
+
} | {
|
|
1279
|
+
href?: never;
|
|
1280
|
+
onSelect: () => void;
|
|
1281
|
+
});
|
|
1282
|
+
interface AppAccountActionGroup {
|
|
1283
|
+
id: string;
|
|
1284
|
+
label?: React$1.ReactNode;
|
|
1285
|
+
actions: readonly AppAccountAction[];
|
|
1286
|
+
}
|
|
1287
|
+
interface AppAccount {
|
|
1288
|
+
name: string;
|
|
1289
|
+
secondaryLabel?: string;
|
|
1290
|
+
avatarUrl?: string;
|
|
1291
|
+
avatarAlt?: string;
|
|
1292
|
+
fallback?: string;
|
|
1293
|
+
actionGroups?: readonly AppAccountActionGroup[];
|
|
1294
|
+
}
|
|
1295
|
+
type SidebarProps = React$1.ComponentProps<typeof Sidebar>;
|
|
1296
|
+
type AppShellRootProps = useRender.ComponentProps<'div'> & React$1.ComponentProps<'div'>;
|
|
1297
|
+
type AppShellProps = Omit<AppShellRootProps, 'children'> & {
|
|
1298
|
+
children: React$1.ReactNode;
|
|
1299
|
+
navigation: readonly AppNavigationGroup[];
|
|
1300
|
+
brand?: AppShellBrand;
|
|
1301
|
+
account?: AppAccount;
|
|
1302
|
+
breadcrumbs?: readonly AppBreadcrumbItem[];
|
|
1303
|
+
renderLink?: AppLinkRenderer;
|
|
1304
|
+
barLeading?: React$1.ReactNode;
|
|
1305
|
+
barSearch?: React$1.ReactNode;
|
|
1306
|
+
barActions?: React$1.ReactNode;
|
|
1307
|
+
barProps?: Omit<AppBarProps, 'breadcrumbs' | 'renderLink' | 'leading' | 'search' | 'actions'>;
|
|
1308
|
+
/**
|
|
1309
|
+
* Where the app bar sits relative to the sidebar.
|
|
1310
|
+
* - `top` (default): full-width sticky bar above the sidebar + content row
|
|
1311
|
+
* - `content`: bar only over the main column (manager-panel composition)
|
|
1312
|
+
*/
|
|
1313
|
+
barPlacement?: 'top' | 'content';
|
|
1314
|
+
headerHeight?: string;
|
|
1315
|
+
/** CSS length for the expanded desktop sidebar (default upstream token). */
|
|
1316
|
+
sidebarWidth?: string;
|
|
1317
|
+
sidebarProps?: Omit<SidebarProps, 'children'>;
|
|
1318
|
+
sidebarFooter?: React$1.ReactNode;
|
|
1319
|
+
/** Optional sticky footer below main content (e.g. mobile feature tabs). */
|
|
1320
|
+
contentFooter?: React$1.ReactNode;
|
|
1321
|
+
defaultSidebarOpen?: boolean;
|
|
1322
|
+
sidebarOpen?: boolean;
|
|
1323
|
+
onSidebarOpenChange?: (open: boolean) => void;
|
|
1324
|
+
contentClassName?: string;
|
|
1325
|
+
contentProps?: Omit<React$1.ComponentProps<'main'>, 'children' | 'className'>;
|
|
1326
|
+
};
|
|
1327
|
+
declare function AppShell({ children, navigation, brand, account, breadcrumbs, renderLink, barLeading, barSearch, barActions, barProps, barPlacement, headerHeight, sidebarWidth, sidebarProps, sidebarFooter, contentFooter, defaultSidebarOpen, sidebarOpen, onSidebarOpenChange, contentClassName, contentProps, className, style, render, ...props }: AppShellProps): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
1191
1328
|
|
|
1192
1329
|
interface BaseCalendarProps {
|
|
1193
1330
|
className?: string;
|
|
1194
1331
|
}
|
|
1195
1332
|
type CalendarProps = ComponentProps<typeof Calendar$1> & BaseCalendarProps;
|
|
1196
1333
|
type RangeCalendarProps = ComponentProps<typeof RangeCalendar$1> & BaseCalendarProps;
|
|
1197
|
-
declare function Calendar({ className, ...props }: CalendarProps):
|
|
1198
|
-
declare function RangeCalendar({ className, ...props }: RangeCalendarProps):
|
|
1334
|
+
declare function Calendar({ className, ...props }: CalendarProps): React$1.JSX.Element;
|
|
1335
|
+
declare function RangeCalendar({ className, ...props }: RangeCalendarProps): React$1.JSX.Element;
|
|
1199
1336
|
|
|
1200
1337
|
type JsonInputProps = {
|
|
1201
1338
|
value: string;
|
|
@@ -1205,7 +1342,7 @@ type JsonInputProps = {
|
|
|
1205
1342
|
/** Theme for the editor: 'light' or 'dark'. Defaults to 'light'. */
|
|
1206
1343
|
theme?: 'light' | 'dark';
|
|
1207
1344
|
};
|
|
1208
|
-
declare const JsonInput: ({ value, setValue, minLines, className, theme }: JsonInputProps) =>
|
|
1345
|
+
declare const JsonInput: ({ value, setValue, minLines, className, theme }: JsonInputProps) => React$1.JSX.Element;
|
|
1209
1346
|
type JsonEditorProps = {
|
|
1210
1347
|
value: string;
|
|
1211
1348
|
lines: number;
|
|
@@ -1216,14 +1353,14 @@ type JsonEditorProps = {
|
|
|
1216
1353
|
/** Theme for the editor: 'light' or 'dark'. Defaults to 'light'. */
|
|
1217
1354
|
theme?: 'light' | 'dark';
|
|
1218
1355
|
};
|
|
1219
|
-
declare const JsonEditor: ({ value, setValue, lines, readOnly, isValid, enableFolding, theme, }: JsonEditorProps) =>
|
|
1356
|
+
declare const JsonEditor: ({ value, setValue, lines, readOnly, isValid, enableFolding, theme, }: JsonEditorProps) => React$1.JSX.Element;
|
|
1220
1357
|
declare const validateJson: (text: string) => string | null;
|
|
1221
1358
|
|
|
1222
1359
|
type ToasterComponentProps = ToasterProps & {
|
|
1223
1360
|
/** Theme for the toaster. Pass from your app's theme context. Defaults to 'system'. */
|
|
1224
1361
|
theme?: 'light' | 'dark' | 'system';
|
|
1225
1362
|
};
|
|
1226
|
-
declare const Toaster: ({ theme, ...props }: ToasterComponentProps) =>
|
|
1363
|
+
declare const Toaster: ({ theme, ...props }: ToasterComponentProps) => React$1.JSX.Element;
|
|
1227
1364
|
|
|
1228
1365
|
interface DockProps extends VariantProps<typeof dockVariants> {
|
|
1229
1366
|
className?: string;
|
|
@@ -1245,7 +1382,7 @@ interface DockIconProps extends Omit<MotionProps & React__default.HTMLAttributes
|
|
|
1245
1382
|
props?: PropsWithChildren;
|
|
1246
1383
|
}
|
|
1247
1384
|
declare const DockIcon: {
|
|
1248
|
-
({ size, magnification, distance, mouseX, className, children, ...props }: DockIconProps):
|
|
1385
|
+
({ size, magnification, distance, mouseX, className, children, ...props }: DockIconProps): React__default.JSX.Element;
|
|
1249
1386
|
displayName: string;
|
|
1250
1387
|
};
|
|
1251
1388
|
|
|
@@ -1260,7 +1397,7 @@ interface PageHeaderProps {
|
|
|
1260
1397
|
/**
|
|
1261
1398
|
* Consistent page header component
|
|
1262
1399
|
*/
|
|
1263
|
-
declare function PageHeader({ title, description, actions }: PageHeaderProps):
|
|
1400
|
+
declare function PageHeader({ title, description, actions }: PageHeaderProps): React$1.JSX.Element;
|
|
1264
1401
|
|
|
1265
1402
|
interface FlickeringGridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1266
1403
|
squareSize?: number;
|
|
@@ -1287,7 +1424,7 @@ type MotionGridProps = {
|
|
|
1287
1424
|
cellActiveClassName?: string;
|
|
1288
1425
|
cellInactiveClassName?: string;
|
|
1289
1426
|
} & React$1.ComponentProps<'div'>;
|
|
1290
|
-
declare const MotionGrid: ({ gridSize, duration, animate, cellClassName, cellProps, cellActiveClassName, cellInactiveClassName, className, style, ...props }: MotionGridProps) =>
|
|
1427
|
+
declare const MotionGrid: ({ gridSize, duration, animate, cellClassName, cellProps, cellActiveClassName, cellInactiveClassName, className, style, ...props }: MotionGridProps) => React$1.JSX.Element;
|
|
1291
1428
|
|
|
1292
1429
|
interface ProgressiveBlurProps {
|
|
1293
1430
|
className?: string;
|
|
@@ -1300,7 +1437,7 @@ interface ProgressiveBlurProps {
|
|
|
1300
1437
|
/** Optional horizontal inset to avoid edge bleeding (e.g. '0.5rem') */
|
|
1301
1438
|
insetX?: string;
|
|
1302
1439
|
}
|
|
1303
|
-
declare function ProgressiveBlur({ className, height, position, blurPx, surface, intensity, insetX, }: ProgressiveBlurProps):
|
|
1440
|
+
declare function ProgressiveBlur({ className, height, position, blurPx, surface, intensity, insetX, }: ProgressiveBlurProps): React__default.JSX.Element;
|
|
1304
1441
|
|
|
1305
1442
|
interface ProgressiveBlurScrollContainerProps {
|
|
1306
1443
|
children: ReactNode;
|
|
@@ -1320,118 +1457,14 @@ interface ProgressiveBlurScrollContainerProps {
|
|
|
1320
1457
|
* A scrollable container that shows progressive blur effects at the top and bottom
|
|
1321
1458
|
* when content overflows. Top blur appears when scrolled, bottom blur when more content below.
|
|
1322
1459
|
*/
|
|
1323
|
-
declare function ProgressiveBlurScrollContainer({ children, className, scrollClassName, minItemsForBlur, itemCount, blurProps, showBlur, }: ProgressiveBlurScrollContainerProps):
|
|
1460
|
+
declare function ProgressiveBlurScrollContainer({ children, className, scrollClassName, minItemsForBlur, itemCount, blurProps, showBlur, }: ProgressiveBlurScrollContainerProps): React$1.JSX.Element;
|
|
1324
1461
|
|
|
1325
1462
|
interface ResponsiveDiagramProps {
|
|
1326
1463
|
children: React.ReactNode;
|
|
1327
1464
|
targetRatio?: number;
|
|
1328
1465
|
className?: string;
|
|
1329
1466
|
}
|
|
1330
|
-
declare function ResponsiveDiagram({ children, targetRatio, className }: ResponsiveDiagramProps):
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* Overlay layer type:
|
|
1334
|
-
* - 'base': Root level (page content, base floating elements)
|
|
1335
|
-
* - 'modal': Inside a modal overlay (dialog, sheet, drawer)
|
|
1336
|
-
*/
|
|
1337
|
-
type OverlayLayer = 'base' | 'modal';
|
|
1338
|
-
/**
|
|
1339
|
-
* Where floating overlays should portal:
|
|
1340
|
-
* - 'root': always portal into #portal-root
|
|
1341
|
-
* - 'nested': let Base UI nest portals into the nearest Base UI portal node
|
|
1342
|
-
*/
|
|
1343
|
-
type FloatingPortalStrategy = 'root' | 'nested';
|
|
1344
|
-
/**
|
|
1345
|
-
* Z-index mode for floating overlays.
|
|
1346
|
-
* - 'default': --z-layer-floating
|
|
1347
|
-
* - 'elevated': --z-layer-floating-elevated
|
|
1348
|
-
*/
|
|
1349
|
-
type FloatingZIndex = 'default' | 'elevated';
|
|
1350
|
-
interface PortalContextValue {
|
|
1351
|
-
/** Current overlay layer */
|
|
1352
|
-
layer: OverlayLayer;
|
|
1353
|
-
/** Modal nesting depth (0 for first modal, 1 for nested, etc.) */
|
|
1354
|
-
depth: number;
|
|
1355
|
-
/** Strategy for where floating overlays should portal */
|
|
1356
|
-
floatingPortalStrategy: FloatingPortalStrategy;
|
|
1357
|
-
/** Z-index mode for floating overlays */
|
|
1358
|
-
floatingZIndex: FloatingZIndex;
|
|
1359
|
-
}
|
|
1360
|
-
declare const PORTAL_ROOT_ID = "portal-root";
|
|
1361
|
-
/**
|
|
1362
|
-
* Provider for modal overlays (Dialog, Sheet, Drawer, etc.)
|
|
1363
|
-
*
|
|
1364
|
-
* Wraps modal content to:
|
|
1365
|
-
* 1. Create a scoped portal container for nested floating elements
|
|
1366
|
-
* 2. Track the overlay layer (so floating elements know to use elevated z-index)
|
|
1367
|
-
* 3. Track nesting depth for stacked modals
|
|
1368
|
-
*
|
|
1369
|
-
* Usage:
|
|
1370
|
-
* ```tsx
|
|
1371
|
-
* <DialogPopup>
|
|
1372
|
-
* <ModalPortalScope>
|
|
1373
|
-
* {children} // Popovers inside here will render in the scoped container
|
|
1374
|
-
* </ModalPortalScope>
|
|
1375
|
-
* </DialogPopup>
|
|
1376
|
-
* ```
|
|
1377
|
-
*/
|
|
1378
|
-
declare function ModalPortalScope({ children, floatingPortalStrategy, floatingZIndex, }: {
|
|
1379
|
-
children: React$1.ReactNode;
|
|
1380
|
-
floatingPortalStrategy?: FloatingPortalStrategy;
|
|
1381
|
-
floatingZIndex?: FloatingZIndex;
|
|
1382
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1383
|
-
/**
|
|
1384
|
-
* Get the current portal context value.
|
|
1385
|
-
* Used internally by other hooks.
|
|
1386
|
-
*/
|
|
1387
|
-
declare function usePortalContext(): PortalContextValue;
|
|
1388
|
-
declare function useInModalOverlay(): boolean;
|
|
1389
|
-
/**
|
|
1390
|
-
* Get the root portal container element.
|
|
1391
|
-
* Used by modal components (Dialog, Sheet, etc.) to render their portals.
|
|
1392
|
-
*
|
|
1393
|
-
* @returns The root portal container, or null during SSR/before mount
|
|
1394
|
-
*/
|
|
1395
|
-
declare function useRootPortalContainer(): HTMLElement | null;
|
|
1396
|
-
/**
|
|
1397
|
-
* Centralized portal + z-index policy for floating overlays.
|
|
1398
|
-
*
|
|
1399
|
-
* - When `floatingPortalStrategy` is 'nested', Base UI will automatically portal
|
|
1400
|
-
* into the nearest Base UI portal node (so dialog "inert" behavior includes it).
|
|
1401
|
-
* - When it's 'root', we portal into #portal-root.
|
|
1402
|
-
*/
|
|
1403
|
-
declare function useFloatingOverlayPortalProps(): {
|
|
1404
|
-
container?: HTMLElement | null;
|
|
1405
|
-
zIndexClass: string;
|
|
1406
|
-
};
|
|
1407
|
-
/**
|
|
1408
|
-
* Portal root component to render in app layout.
|
|
1409
|
-
* All overlay components will render their portals inside this container.
|
|
1410
|
-
*
|
|
1411
|
-
* Usage in layout.tsx:
|
|
1412
|
-
* ```tsx
|
|
1413
|
-
* import { PortalRoot } from '@constructive-io/ui/portal';
|
|
1414
|
-
*
|
|
1415
|
-
* export default function RootLayout({ children }) {
|
|
1416
|
-
* return (
|
|
1417
|
-
* <html>
|
|
1418
|
-
* <body>
|
|
1419
|
-
* {children}
|
|
1420
|
-
* <PortalRoot />
|
|
1421
|
-
* </body>
|
|
1422
|
-
* </html>
|
|
1423
|
-
* );
|
|
1424
|
-
* }
|
|
1425
|
-
* ```
|
|
1426
|
-
*/
|
|
1427
|
-
declare function PortalRoot(): react_jsx_runtime.JSX.Element;
|
|
1428
|
-
/**
|
|
1429
|
-
* Hook to get the portal container element for rendering floating UI elements.
|
|
1430
|
-
* Returns the element with id="portal-root" if it exists in the DOM.
|
|
1431
|
-
*
|
|
1432
|
-
* @deprecated Use useRootPortalContainer or useFloatingOverlayPortalProps instead
|
|
1433
|
-
*/
|
|
1434
|
-
declare function usePortalContainer(): HTMLElement | undefined;
|
|
1467
|
+
declare function ResponsiveDiagram({ children, targetRatio, className }: ResponsiveDiagramProps): React$1.JSX.Element;
|
|
1435
1468
|
|
|
1436
1469
|
interface UnlinkButtonProps {
|
|
1437
1470
|
onUnlink: () => void;
|
|
@@ -1442,7 +1475,7 @@ interface UnlinkButtonProps {
|
|
|
1442
1475
|
className?: string;
|
|
1443
1476
|
'aria-label'?: string;
|
|
1444
1477
|
}
|
|
1445
|
-
declare function UnlinkButton({ onUnlink, isUnlinking, disabled, size, variant, className, 'aria-label': ariaLabel, }: UnlinkButtonProps):
|
|
1478
|
+
declare function UnlinkButton({ onUnlink, isUnlinking, disabled, size, variant, className, 'aria-label': ariaLabel, }: UnlinkButtonProps): React$1.JSX.Element;
|
|
1446
1479
|
|
|
1447
1480
|
type CardId = string;
|
|
1448
1481
|
type CardComponent<P = unknown> = ComponentType<P & CardInjectedProps>;
|
|
@@ -1747,7 +1780,7 @@ type StackContextValue = {
|
|
|
1747
1780
|
};
|
|
1748
1781
|
};
|
|
1749
1782
|
|
|
1750
|
-
declare function CardStackProvider({ children, routes, initial, onChange, zIndexBase, layoutMode, defaultPeekOffset, defaultWidth, }: CardStackProviderProps):
|
|
1783
|
+
declare function CardStackProvider({ children, routes, initial, onChange, zIndexBase, layoutMode, defaultPeekOffset, defaultWidth, }: CardStackProviderProps): React$1.JSX.Element;
|
|
1751
1784
|
declare function useCardStack(): CardStackApi;
|
|
1752
1785
|
declare function useStackContext(): StackContextValue;
|
|
1753
1786
|
/** Hook to get current layout mode */
|
|
@@ -1801,7 +1834,7 @@ declare function useCardReady(): {
|
|
|
1801
1834
|
isReady: boolean;
|
|
1802
1835
|
};
|
|
1803
1836
|
|
|
1804
|
-
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className, }: CardStackViewportProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> |
|
|
1837
|
+
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className, }: CardStackViewportProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | React$1.JSX.Element | null | undefined;
|
|
1805
1838
|
|
|
1806
1839
|
type StackBackdropProps = {
|
|
1807
1840
|
/** Additional class names */
|
|
@@ -1811,7 +1844,7 @@ type StackBackdropProps = {
|
|
|
1811
1844
|
/** Backdrop configuration (blur, custom className) */
|
|
1812
1845
|
config?: BackdropConfig;
|
|
1813
1846
|
};
|
|
1814
|
-
declare function StackBackdrop({ className, onClick, config: backdropConfig }: StackBackdropProps):
|
|
1847
|
+
declare function StackBackdrop({ className, onClick, config: backdropConfig }: StackBackdropProps): React$1.JSX.Element;
|
|
1815
1848
|
|
|
1816
1849
|
type StackHeaderProps = {
|
|
1817
1850
|
/** The card spec */
|
|
@@ -1823,14 +1856,42 @@ type StackHeaderProps = {
|
|
|
1823
1856
|
/** Custom title renderer */
|
|
1824
1857
|
renderTitle?: (card: CardSpec) => React$1.ReactNode;
|
|
1825
1858
|
};
|
|
1826
|
-
declare function StackHeader({ card, onClose, className, renderTitle }: StackHeaderProps):
|
|
1859
|
+
declare function StackHeader({ card, onClose, className, renderTitle }: StackHeaderProps): React$1.JSX.Element;
|
|
1827
1860
|
type StackHeaderSlotProps = {
|
|
1828
1861
|
/** Additional class names */
|
|
1829
1862
|
className?: string;
|
|
1830
1863
|
children: React$1.ReactNode;
|
|
1831
1864
|
};
|
|
1832
1865
|
/** Slot for custom header content */
|
|
1833
|
-
declare function StackHeaderSlot({ className, children }: StackHeaderSlotProps):
|
|
1866
|
+
declare function StackHeaderSlot({ className, children }: StackHeaderSlotProps): React$1.JSX.Element;
|
|
1867
|
+
|
|
1868
|
+
type UseStackGesturesOptions = GestureConfig & {
|
|
1869
|
+
/** Whether gestures are enabled */
|
|
1870
|
+
enabled?: boolean;
|
|
1871
|
+
/** Callback when swipe completes and should dismiss */
|
|
1872
|
+
onDismiss: () => void;
|
|
1873
|
+
};
|
|
1874
|
+
type StackGestureBind = () => object;
|
|
1875
|
+
type UseStackGesturesResult = {
|
|
1876
|
+
/** Current drag X offset */
|
|
1877
|
+
dragX: number;
|
|
1878
|
+
/** Whether currently dragging */
|
|
1879
|
+
isDragging: boolean;
|
|
1880
|
+
/** Bind function to attach to the draggable element */
|
|
1881
|
+
bind: StackGestureBind;
|
|
1882
|
+
};
|
|
1883
|
+
/**
|
|
1884
|
+
* Hook for swipe-to-dismiss gesture on stack cards using @use-gesture/react.
|
|
1885
|
+
*
|
|
1886
|
+
* Features:
|
|
1887
|
+
* - Only allows swiping to the right (positive X direction)
|
|
1888
|
+
* - Ignores touches near left edge (avoids iOS Safari back gesture conflict)
|
|
1889
|
+
* - Requires horizontal intent before activating (won't interfere with scroll)
|
|
1890
|
+
* - Dismisses on release after distance or velocity threshold
|
|
1891
|
+
* - Auto-dismisses near the end of the drag (configurable)
|
|
1892
|
+
* - 1:1 finger tracking for responsive feel
|
|
1893
|
+
*/
|
|
1894
|
+
declare function useStackGestures(options: UseStackGesturesOptions): UseStackGesturesResult;
|
|
1834
1895
|
|
|
1835
1896
|
type StackCardProps = {
|
|
1836
1897
|
/** The card specification */
|
|
@@ -1858,7 +1919,7 @@ type StackCardProps = {
|
|
|
1858
1919
|
/** Drag state from gesture hook (for top card swipe-to-dismiss) */
|
|
1859
1920
|
dragX?: number;
|
|
1860
1921
|
/** Gesture bind from @use-gesture/react */
|
|
1861
|
-
gestureBind?:
|
|
1922
|
+
gestureBind?: StackGestureBind;
|
|
1862
1923
|
/** Whether this card's peek zone is hovered (viewport-coordinated) */
|
|
1863
1924
|
isPeekHovered?: boolean;
|
|
1864
1925
|
/** Callback when peek hover starts */
|
|
@@ -1878,7 +1939,7 @@ type StackCardProps = {
|
|
|
1878
1939
|
/** Additional class name for the card */
|
|
1879
1940
|
className?: string;
|
|
1880
1941
|
};
|
|
1881
|
-
declare function StackCardInner({ card, index, totalCards, topCardWidth, animation, isMobile, renderHeader, peekGestureConfig, compressionRatio, adjustedPeekOffset, dragX, gestureBind, isPeekHovered, onPeekHoverStart, onPeekHoverEnd, peekDragOffset, onPeekDragStart, onPeekDrag, onPeekDragEnd, isLastCard, className, }: StackCardProps):
|
|
1942
|
+
declare function StackCardInner({ card, index, totalCards, topCardWidth, animation, isMobile, renderHeader, peekGestureConfig, compressionRatio, adjustedPeekOffset, dragX, gestureBind, isPeekHovered, onPeekHoverStart, onPeekHoverEnd, peekDragOffset, onPeekDragStart, onPeekDrag, onPeekDragEnd, isLastCard, className, }: StackCardProps): React$1.JSX.Element;
|
|
1882
1943
|
declare const StackCard: React$1.MemoExoticComponent<typeof StackCardInner>;
|
|
1883
1944
|
|
|
1884
1945
|
interface DeferredCardContentProps {
|
|
@@ -1917,7 +1978,7 @@ interface DeferredCardContentProps {
|
|
|
1917
1978
|
* </DeferredCardContent>
|
|
1918
1979
|
* ```
|
|
1919
1980
|
*/
|
|
1920
|
-
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady, }: DeferredCardContentProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> |
|
|
1981
|
+
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady, }: DeferredCardContentProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | React$1.JSX.Element;
|
|
1921
1982
|
|
|
1922
1983
|
type UseStackResponsiveOptions = MobileConfig;
|
|
1923
1984
|
type UseStackResponsiveResult = {
|
|
@@ -1937,33 +1998,6 @@ declare function useStackResponsive(options?: UseStackResponsiveOptions): UseSta
|
|
|
1937
1998
|
*/
|
|
1938
1999
|
declare function useIsMobile(breakpoint?: number): boolean;
|
|
1939
2000
|
|
|
1940
|
-
type UseStackGesturesOptions = GestureConfig & {
|
|
1941
|
-
/** Whether gestures are enabled */
|
|
1942
|
-
enabled?: boolean;
|
|
1943
|
-
/** Callback when swipe completes and should dismiss */
|
|
1944
|
-
onDismiss: () => void;
|
|
1945
|
-
};
|
|
1946
|
-
type UseStackGesturesResult = {
|
|
1947
|
-
/** Current drag X offset */
|
|
1948
|
-
dragX: number;
|
|
1949
|
-
/** Whether currently dragging */
|
|
1950
|
-
isDragging: boolean;
|
|
1951
|
-
/** Bind function to attach to the draggable element */
|
|
1952
|
-
bind: ReturnType<typeof useDrag>;
|
|
1953
|
-
};
|
|
1954
|
-
/**
|
|
1955
|
-
* Hook for swipe-to-dismiss gesture on stack cards using @use-gesture/react.
|
|
1956
|
-
*
|
|
1957
|
-
* Features:
|
|
1958
|
-
* - Only allows swiping to the right (positive X direction)
|
|
1959
|
-
* - Ignores touches near left edge (avoids iOS Safari back gesture conflict)
|
|
1960
|
-
* - Requires horizontal intent before activating (won't interfere with scroll)
|
|
1961
|
-
* - Dismisses on release after distance or velocity threshold
|
|
1962
|
-
* - Auto-dismisses near the end of the drag (configurable)
|
|
1963
|
-
* - 1:1 finger tracking for responsive feel
|
|
1964
|
-
*/
|
|
1965
|
-
declare function useStackGestures(options: UseStackGesturesOptions): UseStackGesturesResult;
|
|
1966
|
-
|
|
1967
2001
|
type UsePeekGesturesOptions = PeekGestureConfig & {
|
|
1968
2002
|
/** Card index in the stack */
|
|
1969
2003
|
cardIndex: number;
|
|
@@ -2161,450 +2195,4 @@ declare const toast: {
|
|
|
2161
2195
|
warning: typeof showWarningToast;
|
|
2162
2196
|
};
|
|
2163
2197
|
|
|
2164
|
-
|
|
2165
|
-
interface OrgChartEdge {
|
|
2166
|
-
/** Person ID (used as the React Flow node id) */
|
|
2167
|
-
id: string;
|
|
2168
|
-
/** ID of the person this edge reports to (null = root) */
|
|
2169
|
-
parentId: string | null;
|
|
2170
|
-
displayName: string | null;
|
|
2171
|
-
avatarUrl: string | null;
|
|
2172
|
-
positionTitle: string | null;
|
|
2173
|
-
}
|
|
2174
|
-
/** Data carried by each React Flow node */
|
|
2175
|
-
interface OrgChartNodeData extends OrgChartEdge {
|
|
2176
|
-
childCount: number;
|
|
2177
|
-
isRoot: boolean;
|
|
2178
|
-
[key: string]: unknown;
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
|
-
interface OrgChartPropsBase {
|
|
2182
|
-
/** Additional classes for the chart container (e.g. `"h-full"` to fill parent). Default height: 600px. */
|
|
2183
|
-
className?: string;
|
|
2184
|
-
/** Whether data is still loading */
|
|
2185
|
-
isLoading?: boolean;
|
|
2186
|
-
/** Whether the current user can manage the chart (drag, edit, remove) */
|
|
2187
|
-
editable?: boolean;
|
|
2188
|
-
/** Called when a node is dragged onto a new parent. In uncontrolled mode, the component updates visually first — if this throws, it reverts. */
|
|
2189
|
-
onReparent?: (childId: string, newParentId: string, preserve: {
|
|
2190
|
-
positionTitle?: string | null;
|
|
2191
|
-
}) => void | Promise<void>;
|
|
2192
|
-
/** Called when the "Add to Chart" button is clicked (empty state) */
|
|
2193
|
-
onAddToChart?: () => void;
|
|
2194
|
-
/** Called when "Edit Position" is selected from the node menu */
|
|
2195
|
-
onEditNode?: (nodeData: OrgChartNodeData) => void;
|
|
2196
|
-
/** Called when "Remove from Chart" is selected from the node menu */
|
|
2197
|
-
onRemoveNode?: (nodeData: OrgChartNodeData) => void;
|
|
2198
|
-
/** Toast handler for reparent success/error messages. If not provided, no toasts are shown. */
|
|
2199
|
-
onReparentSuccess?: (childName: string, parentName: string) => void;
|
|
2200
|
-
onReparentError?: (message: string) => void;
|
|
2201
|
-
}
|
|
2202
|
-
/** Controlled mode — consumer owns edge state */
|
|
2203
|
-
interface OrgChartControlledProps extends OrgChartPropsBase {
|
|
2204
|
-
edges: OrgChartEdge[];
|
|
2205
|
-
defaultEdges?: never;
|
|
2206
|
-
}
|
|
2207
|
-
/** Uncontrolled mode — component manages edge state internally with optimistic reparent */
|
|
2208
|
-
interface OrgChartUncontrolledProps extends OrgChartPropsBase {
|
|
2209
|
-
edges?: never;
|
|
2210
|
-
defaultEdges: OrgChartEdge[];
|
|
2211
|
-
}
|
|
2212
|
-
type OrgChartProps = OrgChartControlledProps | OrgChartUncontrolledProps;
|
|
2213
|
-
declare function OrgChart(props: OrgChartProps): react_jsx_runtime.JSX.Element;
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* Domain types for the Storage UI kit.
|
|
2217
|
-
*
|
|
2218
|
-
* These mirror the real Storage GraphQL schema so wiring a data layer
|
|
2219
|
-
* (Phase 2) is a matter of mapping query results onto these shapes — no
|
|
2220
|
-
* component prop changes required.
|
|
2221
|
-
*/
|
|
2222
|
-
type BucketVisibility = 'public' | 'private' | 'temp';
|
|
2223
|
-
interface StorageBucket {
|
|
2224
|
-
id: string;
|
|
2225
|
-
key: string;
|
|
2226
|
-
visibility: BucketVisibility;
|
|
2227
|
-
isPublic: boolean;
|
|
2228
|
-
allowCustomKeys: boolean;
|
|
2229
|
-
allowedMimeTypes?: string[];
|
|
2230
|
-
maxFileSize?: number | null;
|
|
2231
|
-
allowedOrigins?: string[];
|
|
2232
|
-
description?: string | null;
|
|
2233
|
-
provisioned?: boolean;
|
|
2234
|
-
objectCount?: number | null;
|
|
2235
|
-
createdAt?: string;
|
|
2236
|
-
}
|
|
2237
|
-
type StorageObjectStatus = 'requested' | 'uploaded' | 'processed';
|
|
2238
|
-
interface StorageObject {
|
|
2239
|
-
id: string;
|
|
2240
|
-
bucketId: string;
|
|
2241
|
-
key: string;
|
|
2242
|
-
filename: string | null;
|
|
2243
|
-
mimeType: string;
|
|
2244
|
-
size: number;
|
|
2245
|
-
isPublic: boolean;
|
|
2246
|
-
status?: StorageObjectStatus;
|
|
2247
|
-
createdAt: string;
|
|
2248
|
-
updatedAt?: string;
|
|
2249
|
-
downloadUrl?: string | null;
|
|
2250
|
-
}
|
|
2251
|
-
type UploadStatus = 'queued' | 'uploading' | 'done' | 'error';
|
|
2252
|
-
interface UploadItem {
|
|
2253
|
-
id: string;
|
|
2254
|
-
filename: string;
|
|
2255
|
-
size: number;
|
|
2256
|
-
progress: number;
|
|
2257
|
-
status: UploadStatus;
|
|
2258
|
-
error?: string;
|
|
2259
|
-
}
|
|
2260
|
-
type ObjectSortColumn = 'filename' | 'size' | 'createdAt' | 'mimeType';
|
|
2261
|
-
type ObjectSort = {
|
|
2262
|
-
column: ObjectSortColumn;
|
|
2263
|
-
direction: 'asc' | 'desc';
|
|
2264
|
-
};
|
|
2265
|
-
|
|
2266
|
-
/**
|
|
2267
|
-
* Pure presentational helpers for the Storage UI kit.
|
|
2268
|
-
*
|
|
2269
|
-
* No side effects, no I/O — safe to import anywhere (including non-'use client'
|
|
2270
|
-
* leaf components).
|
|
2271
|
-
*/
|
|
2272
|
-
|
|
2273
|
-
/** Humanize a byte count, e.g. 1536 -> "1.5 KB". */
|
|
2274
|
-
declare function humanizeBytes(bytes: number | null | undefined): string;
|
|
2275
|
-
/** Format an ISO timestamp as a compact, locale date — e.g. "Jun 24, 2026". */
|
|
2276
|
-
declare function formatDate(iso: string | null | undefined): string;
|
|
2277
|
-
/** Format an ISO timestamp with date + time — used in the detail sheet. */
|
|
2278
|
-
declare function formatDateTime(iso: string | null | undefined): string;
|
|
2279
|
-
/**
|
|
2280
|
-
* Short, human-friendly label for a MIME type — e.g.
|
|
2281
|
-
* "image/png" -> "PNG", "application/pdf" -> "PDF",
|
|
2282
|
-
* "application/vnd.openxmlformats-officedocument.wordprocessingml.document" -> "DOCX".
|
|
2283
|
-
*/
|
|
2284
|
-
declare function shortMimeLabel(mimeType: string | null | undefined): string;
|
|
2285
|
-
/** Best display name for an object: filename, falling back to its key. */
|
|
2286
|
-
declare function objectDisplayName(object: Pick<StorageObject, 'filename' | 'key'>): string;
|
|
2287
|
-
/** Best display name for a bucket: its key (buckets have no separate label). */
|
|
2288
|
-
declare function bucketDisplayName(bucket: Pick<StorageBucket, 'key'>): string;
|
|
2289
|
-
|
|
2290
|
-
interface FileTypeIconProps {
|
|
2291
|
-
/** The object's MIME type, e.g. "image/png". */
|
|
2292
|
-
mimeType: string | null | undefined;
|
|
2293
|
-
className?: string;
|
|
2294
|
-
/** Forwarded to the underlying svg as the accessible label, if any. */
|
|
2295
|
-
'aria-label'?: string;
|
|
2296
|
-
}
|
|
2297
|
-
/**
|
|
2298
|
-
* `FileTypeIcon` — a single lucide glyph chosen from a file's MIME type.
|
|
2299
|
-
* Defaults to a muted foreground tint; override via `className`.
|
|
2300
|
-
*/
|
|
2301
|
-
declare function FileTypeIcon({ mimeType, className, ...props }: FileTypeIconProps): react_jsx_runtime.JSX.Element;
|
|
2302
|
-
|
|
2303
|
-
interface VisibilityBadgeProps {
|
|
2304
|
-
visibility: BucketVisibility;
|
|
2305
|
-
size?: BadgeProps['size'];
|
|
2306
|
-
className?: string;
|
|
2307
|
-
/** Hide the leading icon (e.g. in very dense rows). */
|
|
2308
|
-
hideIcon?: boolean;
|
|
2309
|
-
}
|
|
2310
|
-
/**
|
|
2311
|
-
* `VisibilityBadge` — neutral-by-default badge for a bucket's visibility.
|
|
2312
|
-
* Pure render. Public/private stay neutral; `temp` opts into the warning tone
|
|
2313
|
-
* since it signals expiring content.
|
|
2314
|
-
*/
|
|
2315
|
-
declare function VisibilityBadge({ visibility, size, className, hideIcon }: VisibilityBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2316
|
-
interface ObjectStatusBadgeProps {
|
|
2317
|
-
status: StorageObjectStatus;
|
|
2318
|
-
size?: BadgeProps['size'];
|
|
2319
|
-
className?: string;
|
|
2320
|
-
}
|
|
2321
|
-
/**
|
|
2322
|
-
* `ObjectStatusBadge` — lifecycle status for a stored object. Neutral until
|
|
2323
|
-
* `processed`, which opts into the success tone.
|
|
2324
|
-
*/
|
|
2325
|
-
declare function ObjectStatusBadge({ status, size, className }: ObjectStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2326
|
-
|
|
2327
|
-
interface BucketRailProps {
|
|
2328
|
-
buckets: StorageBucket[];
|
|
2329
|
-
selectedBucketId?: string | null;
|
|
2330
|
-
onSelectBucket: (bucketId: string) => void;
|
|
2331
|
-
onNewBucket?: () => void;
|
|
2332
|
-
className?: string;
|
|
2333
|
-
}
|
|
2334
|
-
/**
|
|
2335
|
-
* `BucketRail` — a vertical, scrollable list of buckets with a pinned
|
|
2336
|
-
* "New bucket" action at the bottom. Stateless: selection is controlled via
|
|
2337
|
-
* `selectedBucketId` + `onSelectBucket`.
|
|
2338
|
-
*/
|
|
2339
|
-
declare function BucketRail({ buckets, selectedBucketId, onSelectBucket, onNewBucket, className }: BucketRailProps): react_jsx_runtime.JSX.Element;
|
|
2340
|
-
|
|
2341
|
-
/** A single path segment inside a bucket (folder-style). */
|
|
2342
|
-
interface StorageBreadcrumbSegment {
|
|
2343
|
-
/** Label rendered for the segment. */
|
|
2344
|
-
label: string;
|
|
2345
|
-
/** Full prefix path this segment navigates to (e.g. "images/avatars/"). */
|
|
2346
|
-
path: string;
|
|
2347
|
-
}
|
|
2348
|
-
interface StorageBreadcrumbProps {
|
|
2349
|
-
/** The bucket name shown as the root crumb. */
|
|
2350
|
-
bucketKey: string;
|
|
2351
|
-
/** Folder segments after the bucket root. Empty = just the bucket. */
|
|
2352
|
-
segments?: StorageBreadcrumbSegment[];
|
|
2353
|
-
/**
|
|
2354
|
-
* Navigate callback. `path` is the segment's prefix, or `null` for the
|
|
2355
|
-
* bucket root crumb.
|
|
2356
|
-
*/
|
|
2357
|
-
onNavigate?: (path: string | null) => void;
|
|
2358
|
-
className?: string;
|
|
2359
|
-
}
|
|
2360
|
-
/**
|
|
2361
|
-
* `StorageBreadcrumb` — bucket root plus optional folder segments. Pure render;
|
|
2362
|
-
* the final crumb is the current location and is not a link.
|
|
2363
|
-
*/
|
|
2364
|
-
declare function StorageBreadcrumb({ bucketKey, segments, onNavigate, className }: StorageBreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
2365
|
-
|
|
2366
|
-
interface ObjectToolbarProps {
|
|
2367
|
-
query: string;
|
|
2368
|
-
onQueryChange: (query: string) => void;
|
|
2369
|
-
sort: ObjectSort;
|
|
2370
|
-
onSortChange: (sort: ObjectSort) => void;
|
|
2371
|
-
onUpload?: () => void;
|
|
2372
|
-
/** Number of currently selected objects. >0 swaps to the selection bar. */
|
|
2373
|
-
selectedCount?: number;
|
|
2374
|
-
/** Signals intent to delete the selection; the parent binds the ids + confirms. */
|
|
2375
|
-
onBulkDelete?: () => void;
|
|
2376
|
-
/**
|
|
2377
|
-
* Progress for an in-flight bulk delete: while set, the Delete button shows a
|
|
2378
|
-
* "Deleting N/M" count and is disabled; any failed ids surface as a note.
|
|
2379
|
-
*/
|
|
2380
|
-
bulkDeleteProgress?: {
|
|
2381
|
-
done: number;
|
|
2382
|
-
total: number;
|
|
2383
|
-
failed: string[];
|
|
2384
|
-
};
|
|
2385
|
-
onClearSelection?: () => void;
|
|
2386
|
-
className?: string;
|
|
2387
|
-
}
|
|
2388
|
-
/**
|
|
2389
|
-
* `ObjectToolbar` — search + sort + upload. When `selectedCount > 0` it swaps to
|
|
2390
|
-
* a selection action bar (count, destructive Delete, Clear). Fully controlled.
|
|
2391
|
-
*
|
|
2392
|
-
* The destructive Delete here only signals intent via `onBulkDelete`; the parent
|
|
2393
|
-
* is expected to route it through an AlertDialog confirmation.
|
|
2394
|
-
*/
|
|
2395
|
-
declare function ObjectToolbar({ query, onQueryChange, sort, onSortChange, onUpload, selectedCount, onBulkDelete, bulkDeleteProgress, onClearSelection, className, }: ObjectToolbarProps): react_jsx_runtime.JSX.Element;
|
|
2396
|
-
|
|
2397
|
-
interface ObjectTableProps {
|
|
2398
|
-
objects: StorageObject[];
|
|
2399
|
-
/** Controlled selection — set of selected object ids. */
|
|
2400
|
-
selectedIds: string[];
|
|
2401
|
-
onSelectionChange: (selectedIds: string[]) => void;
|
|
2402
|
-
sort: ObjectSort;
|
|
2403
|
-
onSortChange: (sort: ObjectSort) => void;
|
|
2404
|
-
/** Row click (outside the checkbox/menu) opens the object. */
|
|
2405
|
-
onOpenObject?: (object: StorageObject) => void;
|
|
2406
|
-
onDownload?: (object: StorageObject) => void;
|
|
2407
|
-
onCopyLink?: (object: StorageObject) => void;
|
|
2408
|
-
onRename?: (object: StorageObject) => void;
|
|
2409
|
-
onDelete?: (object: StorageObject) => void;
|
|
2410
|
-
isLoading?: boolean;
|
|
2411
|
-
/** Message shown in the body when there are no objects (and not loading). */
|
|
2412
|
-
emptyLabel?: string;
|
|
2413
|
-
className?: string;
|
|
2414
|
-
}
|
|
2415
|
-
declare const COLUMN_COUNT = 6;
|
|
2416
|
-
/**
|
|
2417
|
-
* `ObjectTable` — the object browser table. Built on the `Table` primitive with
|
|
2418
|
-
* controlled sort + selection. Row rendering is intentionally flat (no internal
|
|
2419
|
-
* sorting/filtering/data-fetching) so a future data layer can wrap it with
|
|
2420
|
-
* virtualization without changing this API.
|
|
2421
|
-
*/
|
|
2422
|
-
declare function ObjectTable({ objects, selectedIds, onSelectionChange, sort, onSortChange, onOpenObject, onDownload, onCopyLink, onRename, onDelete, isLoading, emptyLabel, className, }: ObjectTableProps): react_jsx_runtime.JSX.Element;
|
|
2423
|
-
interface ObjectTableSkeletonProps {
|
|
2424
|
-
/** Number of skeleton rows to render. */
|
|
2425
|
-
rows?: number;
|
|
2426
|
-
className?: string;
|
|
2427
|
-
}
|
|
2428
|
-
/**
|
|
2429
|
-
* `ObjectTableSkeleton` — structural loading placeholder matching the object
|
|
2430
|
-
* table's column layout. Pure render.
|
|
2431
|
-
*/
|
|
2432
|
-
declare function ObjectTableSkeleton({ rows, className }: ObjectTableSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
2433
|
-
|
|
2434
|
-
interface ObjectDetailSheetProps {
|
|
2435
|
-
object: StorageObject | null;
|
|
2436
|
-
open: boolean;
|
|
2437
|
-
onOpenChange: (open: boolean) => void;
|
|
2438
|
-
onDownload?: (object: StorageObject) => void;
|
|
2439
|
-
onCopyLink?: (object: StorageObject) => void;
|
|
2440
|
-
/** Commit a rename. The sheet owns only the draft text field. */
|
|
2441
|
-
onRename?: (id: string, newName: string) => void;
|
|
2442
|
-
onDelete?: (id: string) => void;
|
|
2443
|
-
/**
|
|
2444
|
-
* `downloadUrl` is a per-row signed field that the host fetches lazily when the
|
|
2445
|
-
* sheet opens (it is omitted from list queries). Set this true while that fetch
|
|
2446
|
-
* is in flight so an image preview shows a Skeleton instead of a broken `<img>`.
|
|
2447
|
-
* The host should resolve `object.downloadUrl` before or at open.
|
|
2448
|
-
*/
|
|
2449
|
-
isPreviewLoading?: boolean;
|
|
2450
|
-
}
|
|
2451
|
-
/**
|
|
2452
|
-
* `ObjectDetailSheet` — right-side detail panel for a single object. Image
|
|
2453
|
-
* thumbnail (image MIME + download URL) or large file-type glyph, a metadata
|
|
2454
|
-
* list, and primary actions. Delete is confirmed through an AlertDialog. The
|
|
2455
|
-
* sheet is fully controlled (`open` / `onOpenChange`); rename keeps a local
|
|
2456
|
-
* draft for the text field only.
|
|
2457
|
-
*/
|
|
2458
|
-
declare function ObjectDetailSheet({ object, open, onOpenChange, onDownload, onCopyLink, onRename, onDelete, isPreviewLoading, }: ObjectDetailSheetProps): react_jsx_runtime.JSX.Element;
|
|
2459
|
-
|
|
2460
|
-
interface UploadDropzoneProps {
|
|
2461
|
-
/** Called with the chosen files (from drop or the browse input). */
|
|
2462
|
-
onFiles: (files: FileList) => void;
|
|
2463
|
-
/** Current uploads to display under the dropzone. */
|
|
2464
|
-
uploads?: UploadItem[];
|
|
2465
|
-
/** Cancel an in-flight or queued upload. */
|
|
2466
|
-
onCancel?: (id: string) => void;
|
|
2467
|
-
/** `accept` attribute forwarded to the file input. */
|
|
2468
|
-
accept?: string;
|
|
2469
|
-
/** Max file size in bytes — shown as a hint only (no enforcement here). */
|
|
2470
|
-
maxSize?: number | null;
|
|
2471
|
-
className?: string;
|
|
2472
|
-
}
|
|
2473
|
-
/**
|
|
2474
|
-
* `UploadDropzone` — a presentational drag-target plus a hidden file input
|
|
2475
|
-
* triggered by a "Browse" button. Drag-over highlight is the only local state;
|
|
2476
|
-
* all upload behavior is delegated to the parent via `onFiles`. Never blocks
|
|
2477
|
-
* paste. Renders `uploads` via `UploadProgressList`.
|
|
2478
|
-
*/
|
|
2479
|
-
declare function UploadDropzone({ onFiles, uploads, onCancel, accept, maxSize, className }: UploadDropzoneProps): react_jsx_runtime.JSX.Element;
|
|
2480
|
-
interface UploadProgressListProps {
|
|
2481
|
-
uploads: UploadItem[];
|
|
2482
|
-
onCancel?: (id: string) => void;
|
|
2483
|
-
className?: string;
|
|
2484
|
-
}
|
|
2485
|
-
/**
|
|
2486
|
-
* `UploadProgressList` — rows of in-flight/queued/finished uploads with a
|
|
2487
|
-
* progress bar, status, and a per-item cancel for active uploads. Pure render.
|
|
2488
|
-
*/
|
|
2489
|
-
declare function UploadProgressList({ uploads, onCancel, className }: UploadProgressListProps): react_jsx_runtime.JSX.Element;
|
|
2490
|
-
|
|
2491
|
-
type BucketConfigMode = 'create' | 'edit';
|
|
2492
|
-
/** The editable subset of a bucket, as a flat form value. */
|
|
2493
|
-
interface BucketConfigValue {
|
|
2494
|
-
key: string;
|
|
2495
|
-
visibility: BucketVisibility;
|
|
2496
|
-
allowCustomKeys: boolean;
|
|
2497
|
-
allowedMimeTypes: string[];
|
|
2498
|
-
maxFileSize: number | null;
|
|
2499
|
-
allowedOrigins: string[];
|
|
2500
|
-
description: string;
|
|
2501
|
-
}
|
|
2502
|
-
/**
|
|
2503
|
-
* Which optional bucket controls the host's schema actually supports. Core
|
|
2504
|
-
* fields (key/visibility) always render; each optional control renders only when
|
|
2505
|
-
* its flag is `true`. Omitted/undefined ⇒ render it (back-compat: a host that
|
|
2506
|
-
* doesn't pass this shows everything).
|
|
2507
|
-
*/
|
|
2508
|
-
interface BucketConfigSupportedFields {
|
|
2509
|
-
allowCustomKeys?: boolean;
|
|
2510
|
-
allowedMimeTypes?: boolean;
|
|
2511
|
-
maxFileSize?: boolean;
|
|
2512
|
-
allowedOrigins?: boolean;
|
|
2513
|
-
description?: boolean;
|
|
2514
|
-
}
|
|
2515
|
-
interface BucketConfigSheetProps {
|
|
2516
|
-
mode: BucketConfigMode;
|
|
2517
|
-
/** Seed values (e.g. the bucket being edited). */
|
|
2518
|
-
initial?: Partial<StorageBucket>;
|
|
2519
|
-
open: boolean;
|
|
2520
|
-
onOpenChange: (open: boolean) => void;
|
|
2521
|
-
onSubmit: (value: BucketConfigValue) => void;
|
|
2522
|
-
onCancel?: () => void;
|
|
2523
|
-
/**
|
|
2524
|
-
* Gate optional controls to the host schema's real columns. When omitted, all
|
|
2525
|
-
* controls render (back-compat). Core key/visibility always render.
|
|
2526
|
-
*/
|
|
2527
|
-
supportedFields?: BucketConfigSupportedFields;
|
|
2528
|
-
}
|
|
2529
|
-
/**
|
|
2530
|
-
* `BucketConfigSheet` — create/edit a bucket via a right-side Sheet form. All
|
|
2531
|
-
* inputs are local controlled draft state (no fetching); minimal validation
|
|
2532
|
-
* (key required on create). On submit, emits the flat `BucketConfigValue`.
|
|
2533
|
-
*/
|
|
2534
|
-
declare function BucketConfigSheet({ mode, initial, open, onOpenChange, onSubmit, onCancel, supportedFields, }: BucketConfigSheetProps): react_jsx_runtime.JSX.Element;
|
|
2535
|
-
|
|
2536
|
-
type StorageEmptyStateVariant = 'no-buckets' | 'not-provisioned' | 'empty-bucket' | 'no-access';
|
|
2537
|
-
interface StorageEmptyStateProps {
|
|
2538
|
-
variant: StorageEmptyStateVariant;
|
|
2539
|
-
/** Primary action handler (e.g. create bucket, upload, provision). */
|
|
2540
|
-
onAction?: () => void;
|
|
2541
|
-
/**
|
|
2542
|
-
* Secondary action handler. Only the `no-access` variant renders a
|
|
2543
|
-
* secondary action (refresh / learn more); ignored otherwise.
|
|
2544
|
-
*/
|
|
2545
|
-
onSecondaryAction?: () => void;
|
|
2546
|
-
className?: string;
|
|
2547
|
-
}
|
|
2548
|
-
/**
|
|
2549
|
-
* `StorageEmptyState` — a centered icon, balanced heading, body line, and a
|
|
2550
|
-
* single primary action (except `no-access`, which offers only a secondary
|
|
2551
|
-
* refresh). Pure render, mirrors the stateless `PageHeader` style.
|
|
2552
|
-
*/
|
|
2553
|
-
declare function StorageEmptyState({ variant, onAction, onSecondaryAction, className }: StorageEmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
2554
|
-
|
|
2555
|
-
interface StorageBrowserProps {
|
|
2556
|
-
buckets: StorageBucket[];
|
|
2557
|
-
selectedBucketId?: string | null;
|
|
2558
|
-
onSelectBucket: (bucketId: string) => void;
|
|
2559
|
-
onNewBucket?: () => void;
|
|
2560
|
-
objects: StorageObject[];
|
|
2561
|
-
selectedIds: string[];
|
|
2562
|
-
onSelectionChange: (selectedIds: string[]) => void;
|
|
2563
|
-
sort: ObjectSort;
|
|
2564
|
-
onSortChange: (sort: ObjectSort) => void;
|
|
2565
|
-
query: string;
|
|
2566
|
-
onQueryChange: (query: string) => void;
|
|
2567
|
-
segments?: StorageBreadcrumbSegment[];
|
|
2568
|
-
onNavigate?: (path: string | null) => void;
|
|
2569
|
-
onOpenObject?: (object: StorageObject) => void;
|
|
2570
|
-
onUpload?: () => void;
|
|
2571
|
-
/** Delete the currently selected objects. Receives the selected ids. */
|
|
2572
|
-
onBulkDelete?: (ids: string[]) => void;
|
|
2573
|
-
/**
|
|
2574
|
-
* Progress surface for an in-flight bulk delete: N-of-M + ids that failed.
|
|
2575
|
-
* When set, the toolbar shows a "Deleting N/M" indicator and a partial-failure
|
|
2576
|
-
* note.
|
|
2577
|
-
*/
|
|
2578
|
-
bulkDeleteProgress?: {
|
|
2579
|
-
done: number;
|
|
2580
|
-
total: number;
|
|
2581
|
-
failed: string[];
|
|
2582
|
-
};
|
|
2583
|
-
onClearSelection?: () => void;
|
|
2584
|
-
onDownload?: (object: StorageObject) => void;
|
|
2585
|
-
onCopyLink?: (object: StorageObject) => void;
|
|
2586
|
-
onRename?: (object: StorageObject) => void;
|
|
2587
|
-
onDelete?: (object: StorageObject) => void;
|
|
2588
|
-
isLoading?: boolean;
|
|
2589
|
-
/** Forwarded to the object table's empty body row (e.g. when a search filters all out). */
|
|
2590
|
-
emptyLabel?: string;
|
|
2591
|
-
/**
|
|
2592
|
-
* When set, the right pane shows an empty state instead of the table.
|
|
2593
|
-
* `'empty-bucket'` still renders the toolbar; `'no-access'`/`'not-provisioned'`
|
|
2594
|
-
* take over the whole pane.
|
|
2595
|
-
*/
|
|
2596
|
-
emptyState?: StorageEmptyStateVariant | null;
|
|
2597
|
-
onEmptyStateAction?: () => void;
|
|
2598
|
-
onEmptyStateSecondaryAction?: () => void;
|
|
2599
|
-
className?: string;
|
|
2600
|
-
}
|
|
2601
|
-
/**
|
|
2602
|
-
* `StorageBrowser` — master/detail page composition: a fixed-width `BucketRail`
|
|
2603
|
-
* on the left and an object browser on the right (header + toolbar +
|
|
2604
|
-
* breadcrumb + table / empty state). Owns no data logic; it arranges children
|
|
2605
|
-
* and forwards every callback. The detail sheet and config/upload sheets are
|
|
2606
|
-
* rendered by the host alongside this component.
|
|
2607
|
-
*/
|
|
2608
|
-
declare function StorageBrowser({ buckets, selectedBucketId, onSelectBucket, onNewBucket, objects, selectedIds, onSelectionChange, sort, onSortChange, query, onQueryChange, segments, onNavigate, onOpenObject, onUpload, onBulkDelete, bulkDeleteProgress, onClearSelection, onDownload, onCopyLink, onRename, onDelete, isLoading, emptyLabel, emptyState, onEmptyStateAction, onEmptyStateSecondaryAction, className, }: StorageBrowserProps): react_jsx_runtime.JSX.Element;
|
|
2609
|
-
|
|
2610
|
-
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BucketConfigMode, BucketConfigSheet, type BucketConfigSupportedFields, type BucketConfigValue, BucketRail, type BucketVisibility, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, type FieldProps, FieldRow, type FieldRowProps, FileTypeIcon, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, COLUMN_COUNT as OBJECT_TABLE_COLUMN_COUNT, ObjectDetailSheet, type ObjectSort, type ObjectSortColumn, ObjectStatusBadge, ObjectTable, ObjectTableSkeleton, ObjectToolbar, OrgChart, type OrgChartEdge, type OrgChartNodeData, type OrgChartProps, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, StorageBreadcrumb, type StorageBreadcrumbSegment, StorageBrowser, type StorageBucket, StorageEmptyState, type StorageEmptyStateVariant, type StorageObject, type StorageObjectStatus, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, UploadDropzone, type UploadItem, UploadProgressList, type UploadStatus, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, VisibilityBadge, alertVariants, backdropVariants, badgeVariants, bucketDisplayName, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, formatDate, formatDateTime, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, humanizeBytes, isCardVisible, mergeProps, normalizeWidth, objectDisplayName, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, shortMimeLabel, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
|
|
2198
|
+
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, type AppAccount, type AppAccountAction, type AppAccountActionGroup, AppBar, type AppBarProps, type AppBreadcrumbItem, type AppIcon, type AppLinkRenderProps, type AppLinkRenderer, type AppNavigationChild, type AppNavigationGroup, type AppNavigationItem, AppShell, type AppShellBrand, type AppShellProps, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldRow, type FieldRowProps, FieldSeparator, FieldSet, FieldTitle, FlickeringGrid, FlowZoomPanel, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type LegacyFieldProps, type MobileConfig, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, type StructuralFieldProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFormField, useIsMobile, useIsTopCard, usePeekGestures, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
|