@minidev.fun/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +36 -0
- package/dist/alert-dialog.d.ts +114 -0
- package/dist/alert.d.ts +41 -0
- package/dist/aspect-ratio.d.ts +14 -0
- package/dist/avatar.d.ts +55 -0
- package/dist/{components/ui/badge.d.ts → badge.d.ts} +22 -16
- package/dist/breadcrumb.d.ts +54 -0
- package/dist/button-group.d.ts +45 -0
- package/dist/{components/ui/button.d.ts → button.d.ts} +46 -41
- package/dist/calendar.d.ts +68 -0
- package/dist/card.d.ts +45 -0
- package/dist/carousel.d.ts +116 -0
- package/dist/{components/ui/chart.d.ts → chart.d.ts} +85 -73
- package/dist/checkbox.d.ts +14 -0
- package/dist/collapsible.d.ts +28 -0
- package/dist/combobox.d.ts +113 -0
- package/dist/command.d.ts +90 -0
- package/dist/components/minidev.fun/undefined/index.d.ts +2 -0
- package/dist/components/ui/src/components/ui/accordion.d.ts +2 -0
- package/dist/components/ui/src/components/ui/alert-dialog.d.ts +2 -0
- package/dist/components/ui/src/components/ui/alert.d.ts +2 -0
- package/dist/components/ui/src/components/ui/aspect-ratio.d.ts +2 -0
- package/dist/components/ui/src/components/ui/avatar.d.ts +2 -0
- package/dist/components/ui/src/components/ui/badge.d.ts +2 -0
- package/dist/components/ui/src/components/ui/breadcrumb.d.ts +2 -0
- package/dist/components/ui/src/components/ui/button-group.d.ts +2 -0
- package/dist/components/ui/src/components/ui/button.d.ts +2 -0
- package/dist/components/ui/src/components/ui/calendar.d.ts +2 -0
- package/dist/components/ui/src/components/ui/card.d.ts +2 -0
- package/dist/components/ui/src/components/ui/carousel.d.ts +2 -0
- package/dist/components/ui/src/components/ui/chart.d.ts +2 -0
- package/dist/components/ui/src/components/ui/checkbox.d.ts +2 -0
- package/dist/components/ui/src/components/ui/collapsible.d.ts +2 -0
- package/dist/components/ui/src/components/ui/combobox.d.ts +2 -0
- package/dist/components/ui/src/components/ui/command.d.ts +2 -0
- package/dist/components/ui/src/components/ui/context-menu.d.ts +2 -0
- package/dist/components/ui/src/components/ui/dialog.d.ts +2 -0
- package/dist/components/ui/src/components/ui/drawer.d.ts +2 -0
- package/dist/components/ui/src/components/ui/dropdown-menu.d.ts +2 -0
- package/dist/components/ui/src/components/ui/empty.d.ts +2 -0
- package/dist/components/ui/src/components/ui/field.d.ts +2 -0
- package/dist/components/ui/src/components/ui/hover-card.d.ts +2 -0
- package/dist/components/ui/src/components/ui/input-group.d.ts +2 -0
- package/dist/components/ui/src/components/ui/input-otp.d.ts +2 -0
- package/dist/components/ui/src/components/ui/input.d.ts +2 -0
- package/dist/components/ui/src/components/ui/item.d.ts +2 -0
- package/dist/components/ui/src/components/ui/kbd.d.ts +2 -0
- package/dist/components/ui/src/components/ui/label.d.ts +2 -0
- package/dist/components/ui/src/components/ui/menubar.d.ts +2 -0
- package/dist/components/ui/src/components/ui/modal.d.ts +2 -0
- package/dist/components/ui/src/components/ui/navigation-menu.d.ts +2 -0
- package/dist/components/ui/src/components/ui/pagination.d.ts +2 -0
- package/dist/components/ui/src/components/ui/popover.d.ts +2 -0
- package/dist/components/ui/src/components/ui/progress.d.ts +2 -0
- package/dist/components/ui/src/components/ui/radio-group.d.ts +2 -0
- package/dist/components/ui/src/components/ui/resizable.d.ts +2 -0
- package/dist/components/ui/src/components/ui/scroll-area.d.ts +2 -0
- package/dist/components/ui/src/components/ui/select.d.ts +2 -0
- package/dist/components/ui/src/components/ui/separator.d.ts +2 -0
- package/dist/components/ui/src/components/ui/sheet.d.ts +2 -0
- package/dist/components/ui/src/components/ui/sidebar.d.ts +2 -0
- package/dist/components/ui/src/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/src/components/ui/slider.d.ts +2 -0
- package/dist/components/ui/src/components/ui/sonner.d.ts +2 -0
- package/dist/components/ui/src/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/src/components/ui/switch.d.ts +2 -0
- package/dist/components/ui/src/components/ui/table.d.ts +2 -0
- package/dist/components/ui/src/components/ui/tabs.d.ts +2 -0
- package/dist/components/ui/src/components/ui/textarea.d.ts +2 -0
- package/dist/components/ui/src/components/ui/toast.d.ts +2 -0
- package/dist/components/ui/src/components/ui/toggle-group.d.ts +2 -0
- package/dist/components/ui/src/components/ui/toggle.d.ts +2 -0
- package/dist/components/ui/src/components/ui/tooltip.d.ts +2 -0
- package/dist/context-menu.d.ts +97 -0
- package/dist/dialog.d.ts +90 -0
- package/dist/drawer.d.ts +61 -0
- package/dist/dropdown-menu.d.ts +121 -0
- package/dist/empty.d.ts +56 -0
- package/dist/field.d.ts +109 -0
- package/dist/hooks/src/hooks/use-mobile.d.ts +2 -0
- package/dist/hover-card.d.ts +28 -0
- package/dist/index.d.ts +290 -0
- package/dist/input-group.d.ts +106 -0
- package/dist/input-otp.d.ts +43 -0
- package/dist/input.d.ts +14 -0
- package/dist/item.d.ts +101 -0
- package/dist/kbd.d.ts +19 -0
- package/dist/label.d.ts +12 -0
- package/dist/lib/utils.d.ts +2 -23
- package/dist/menubar.d.ts +205 -0
- package/dist/modal.d.ts +104 -0
- package/dist/navigation-menu.d.ts +66 -0
- package/dist/pagination.d.ts +99 -0
- package/dist/popover.d.ts +55 -0
- package/dist/progress.d.ts +41 -0
- package/dist/radio-group.d.ts +21 -0
- package/dist/{components/ui/resizable.d.ts → resizable.d.ts} +47 -38
- package/dist/{components/ui/scroll-area.d.ts → scroll-area.d.ts} +69 -64
- package/dist/select.d.ts +79 -0
- package/dist/separator.d.ts +12 -0
- package/dist/sheet.d.ts +68 -0
- package/dist/sidebar.d.ts +288 -0
- package/dist/skeleton.d.ts +11 -0
- package/dist/{components/ui/slider.d.ts → slider.d.ts} +24 -21
- package/dist/{components/ui/sonner.d.ts → sonner.d.ts} +27 -21
- package/dist/spinner.d.ts +11 -0
- package/dist/switch.d.ts +15 -0
- package/dist/table.d.ts +68 -0
- package/dist/tabs.d.ts +42 -0
- package/dist/{components/ui/textarea.d.ts → textarea.d.ts} +21 -18
- package/dist/toast.d.ts +15 -0
- package/dist/toggle-group.d.ts +36 -0
- package/dist/toggle.d.ts +19 -0
- package/dist/tooltip.d.ts +36 -0
- package/dist/{hooks/use-mobile.d.ts → use-mobile.d.ts} +19 -18
- package/dist/utils.d.ts +25 -0
- package/package.json +1 -1
- package/dist/components/minidev.fun/color-mode/color-mode-initializer.d.ts +0 -46
- package/dist/components/minidev.fun/color-mode/color-mode-initializer.d.ts.map +0 -1
- package/dist/components/minidev.fun/color-mode/color-mode-toggle.d.ts +0 -106
- package/dist/components/minidev.fun/color-mode/color-mode-toggle.d.ts.map +0 -1
- package/dist/components/minidev.fun/color-mode/index.d.ts +0 -4
- package/dist/components/minidev.fun/color-mode/index.d.ts.map +0 -1
- package/dist/components/minidev.fun/color-mode/use-color-mode.d.ts +0 -91
- package/dist/components/minidev.fun/color-mode/use-color-mode.d.ts.map +0 -1
- package/dist/components/minidev.fun/first-light/first-light-filters.d.ts +0 -27
- package/dist/components/minidev.fun/first-light/first-light-filters.d.ts.map +0 -1
- package/dist/components/minidev.fun/first-light/index.d.ts +0 -2
- package/dist/components/minidev.fun/first-light/index.d.ts.map +0 -1
- package/dist/components/minidev.fun/typography/blockquote.d.ts +0 -13
- package/dist/components/minidev.fun/typography/blockquote.d.ts.map +0 -1
- package/dist/components/minidev.fun/typography/code.d.ts +0 -13
- package/dist/components/minidev.fun/typography/code.d.ts.map +0 -1
- package/dist/components/minidev.fun/typography/index.d.ts +0 -6
- package/dist/components/minidev.fun/typography/index.d.ts.map +0 -1
- package/dist/components/minidev.fun/typography/list-item.d.ts +0 -27
- package/dist/components/minidev.fun/typography/list-item.d.ts.map +0 -1
- package/dist/components/minidev.fun/typography/text.d.ts +0 -44
- package/dist/components/minidev.fun/typography/text.d.ts.map +0 -1
- package/dist/components/minidev.fun/typography/title.d.ts +0 -22
- package/dist/components/minidev.fun/typography/title.d.ts.map +0 -1
- package/dist/components/ui/accordion.d.ts +0 -27
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/alert-dialog.d.ts +0 -47
- package/dist/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/components/ui/alert.d.ts +0 -30
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.d.ts +0 -11
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/components/ui/avatar.d.ts +0 -42
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/breadcrumb.d.ts +0 -39
- package/dist/components/ui/breadcrumb.d.ts.map +0 -1
- package/dist/components/ui/button-group.d.ts +0 -26
- package/dist/components/ui/button-group.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/calendar.d.ts +0 -20
- package/dist/components/ui/calendar.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -30
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/carousel.d.ts +0 -56
- package/dist/components/ui/carousel.d.ts.map +0 -1
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/checkbox.d.ts +0 -11
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/collapsible.d.ts +0 -21
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/combobox.d.ts +0 -80
- package/dist/components/ui/combobox.d.ts.map +0 -1
- package/dist/components/ui/command.d.ts +0 -63
- package/dist/components/ui/command.d.ts.map +0 -1
- package/dist/components/ui/context-menu.d.ts +0 -64
- package/dist/components/ui/context-menu.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -69
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/drawer.d.ts +0 -40
- package/dist/components/ui/drawer.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +0 -88
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/empty.d.ts +0 -41
- package/dist/components/ui/empty.d.ts.map +0 -1
- package/dist/components/ui/field.d.ts +0 -78
- package/dist/components/ui/field.d.ts.map +0 -1
- package/dist/components/ui/hover-card.d.ts +0 -21
- package/dist/components/ui/hover-card.d.ts.map +0 -1
- package/dist/components/ui/input-group.d.ts +0 -50
- package/dist/components/ui/input-group.d.ts.map +0 -1
- package/dist/components/ui/input-otp.d.ts +0 -34
- package/dist/components/ui/input-otp.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -11
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/item.d.ts +0 -69
- package/dist/components/ui/item.d.ts.map +0 -1
- package/dist/components/ui/kbd.d.ts +0 -14
- package/dist/components/ui/kbd.d.ts.map +0 -1
- package/dist/components/ui/label.d.ts +0 -9
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/menubar.d.ts +0 -87
- package/dist/components/ui/menubar.d.ts.map +0 -1
- package/dist/components/ui/modal.d.ts +0 -41
- package/dist/components/ui/modal.d.ts.map +0 -1
- package/dist/components/ui/navigation-menu.d.ts +0 -52
- package/dist/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/components/ui/pagination.d.ts +0 -42
- package/dist/components/ui/pagination.d.ts.map +0 -1
- package/dist/components/ui/popover.d.ts +0 -42
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/progress.d.ts +0 -30
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/radio-group.d.ts +0 -16
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/resizable.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/select.d.ts +0 -58
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/separator.d.ts +0 -9
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/sheet.d.ts +0 -51
- package/dist/components/ui/sheet.d.ts.map +0 -1
- package/dist/components/ui/sidebar.d.ts +0 -172
- package/dist/components/ui/sidebar.d.ts.map +0 -1
- package/dist/components/ui/skeleton.d.ts +0 -8
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/sonner.d.ts.map +0 -1
- package/dist/components/ui/spinner.d.ts +0 -8
- package/dist/components/ui/spinner.d.ts.map +0 -1
- package/dist/components/ui/switch.d.ts +0 -12
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/table.d.ts +0 -51
- package/dist/components/ui/table.d.ts.map +0 -1
- package/dist/components/ui/tabs.d.ts +0 -31
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/toast.d.ts +0 -11
- package/dist/components/ui/toast.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.d.ts +0 -26
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle.d.ts +0 -14
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -27
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/hooks/use-mobile.d.ts.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/variants.d.ts +0 -107
- package/dist/lib/variants.d.ts.map +0 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { Menu } from '@base-ui/react/menu';
|
|
3
|
+
import { Menubar as Menubar_2 } from '@base-ui/react/menubar';
|
|
4
|
+
import * as React_2 from 'react';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Root component for dropdown menus. Manages open/close state and keyboard navigation.
|
|
8
|
+
* Use `open` and `onOpenChange` for controlled state, or `defaultOpen` for uncontrolled.
|
|
9
|
+
*/
|
|
10
|
+
declare function DropdownMenu({ ...props }: DropdownMenuProps): JSX.Element;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Dropdown menu content container with automatic portal and positioning.
|
|
14
|
+
* Supports alignment, side positioning, and animated transitions.
|
|
15
|
+
*/
|
|
16
|
+
declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: DropdownMenuContentProps): JSX.Element;
|
|
17
|
+
|
|
18
|
+
declare type DropdownMenuContentProps = Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">;
|
|
19
|
+
|
|
20
|
+
/** Group container for related menu items. Use with DropdownMenuLabel for labeled sections. */
|
|
21
|
+
declare function DropdownMenuGroup({ ...props }: DropdownMenuGroupProps): JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare type DropdownMenuGroupProps = Menu.Group.Props;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Label for a group of menu items. Typically used inside DropdownMenuGroup.
|
|
27
|
+
*/
|
|
28
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: DropdownMenuLabelProps): JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare type DropdownMenuLabelProps = Menu.GroupLabel.Props & {
|
|
31
|
+
/** Add extra left padding to align with items that have icons. @default false */
|
|
32
|
+
inset?: boolean;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** Portal component for rendering dropdown menu content outside the DOM hierarchy. */
|
|
36
|
+
declare function DropdownMenuPortal({ ...props }: DropdownMenuPortalProps): JSX.Element;
|
|
37
|
+
|
|
38
|
+
declare type DropdownMenuPortalProps = Menu.Portal.Props;
|
|
39
|
+
|
|
40
|
+
declare type DropdownMenuProps = Menu.Root.Props;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Container for radio items. Use `value` and `onValueChange` props for state management.
|
|
44
|
+
* Only one radio item can be selected at a time.
|
|
45
|
+
*/
|
|
46
|
+
declare function DropdownMenuRadioGroup({ ...props }: DropdownMenuRadioGroupProps): JSX.Element;
|
|
47
|
+
|
|
48
|
+
declare type DropdownMenuRadioGroupProps = Menu.RadioGroup.Props;
|
|
49
|
+
|
|
50
|
+
/** Visual separator between menu items or groups. */
|
|
51
|
+
declare function DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps): JSX.Element;
|
|
52
|
+
|
|
53
|
+
declare type DropdownMenuSeparatorProps = Menu.Separator.Props;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Keyboard shortcut display component. Positioned to the right of menu items.
|
|
57
|
+
* For visual purposes only - does not implement actual keyboard shortcuts.
|
|
58
|
+
*/
|
|
59
|
+
declare function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): JSX.Element;
|
|
60
|
+
|
|
61
|
+
declare type DropdownMenuShortcutProps = React_2.ComponentProps<"span">;
|
|
62
|
+
|
|
63
|
+
/** Root component for nested submenus. Wrap DropdownMenuSubTrigger and DropdownMenuSubContent. */
|
|
64
|
+
declare function DropdownMenuSub({ ...props }: DropdownMenuSubProps): JSX.Element;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Content container for submenu items. Automatically positioned to the side of the trigger.
|
|
68
|
+
*/
|
|
69
|
+
declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: DropdownMenuSubContentProps): JSX.Element;
|
|
70
|
+
|
|
71
|
+
declare type DropdownMenuSubContentProps = React_2.ComponentProps<typeof DropdownMenuContent>;
|
|
72
|
+
|
|
73
|
+
declare type DropdownMenuSubProps = Menu.SubmenuRoot.Props;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Trigger button for opening a submenu. Automatically displays chevron icon on the right.
|
|
77
|
+
*/
|
|
78
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: DropdownMenuSubTriggerProps): JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare type DropdownMenuSubTriggerProps = Menu.SubmenuTrigger.Props & {
|
|
81
|
+
/** Add extra left padding to align with items that have icons. @default false */
|
|
82
|
+
inset?: boolean;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** Button that opens the dropdown menu. Use `render` prop to customize trigger element. */
|
|
86
|
+
declare function DropdownMenuTrigger({ ...props }: DropdownMenuTriggerProps): JSX.Element;
|
|
87
|
+
|
|
88
|
+
declare type DropdownMenuTriggerProps = Menu.Trigger.Props;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Horizontal menubar for application-level navigation and actions.
|
|
92
|
+
* Typically used at the top of an application with File, Edit, View, Help menus.
|
|
93
|
+
*/
|
|
94
|
+
export declare function Menubar({ className, ...props }: MenubarProps): JSX.Element;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Menu item with checkbox for toggling independent boolean options.
|
|
98
|
+
* Displays checkmark when checked. Use for multiple toggleable settings.
|
|
99
|
+
*/
|
|
100
|
+
export declare function MenubarCheckboxItem({ className, children, checked, ...props }: MenubarCheckboxItemProps): JSX.Element;
|
|
101
|
+
|
|
102
|
+
export declare type MenubarCheckboxItemProps = Menu.CheckboxItem.Props;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Menu content container with automatic portal rendering.
|
|
106
|
+
* Includes backdrop blur (frosted glass effect) and smooth animations.
|
|
107
|
+
*/
|
|
108
|
+
export declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: MenubarContentProps): JSX.Element;
|
|
109
|
+
|
|
110
|
+
export declare type MenubarContentProps = React_2.ComponentProps<typeof DropdownMenuContent>;
|
|
111
|
+
|
|
112
|
+
/** Groups related menu items together with optional label. */
|
|
113
|
+
export declare function MenubarGroup({ ...props }: MenubarGroupProps): JSX.Element;
|
|
114
|
+
|
|
115
|
+
export declare type MenubarGroupProps = React_2.ComponentProps<typeof DropdownMenuGroup>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Interactive menu item. Supports variants (default, destructive, success, warning, info).
|
|
119
|
+
* Use `inset` for items in menus with icons/checkboxes.
|
|
120
|
+
*/
|
|
121
|
+
export declare function MenubarItem({ className, inset, variant, ...props }: MenubarItemProps): JSX.Element;
|
|
122
|
+
|
|
123
|
+
export declare type MenubarItemProps = Menu.Item.Props & {
|
|
124
|
+
/** Adds left padding for items in menus with leading icons/checkboxes. */
|
|
125
|
+
inset?: boolean;
|
|
126
|
+
/** Visual variant for different action types. @default "default" */
|
|
127
|
+
variant?: MenuItemVariant;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/** Non-interactive label for grouping menu items. Use inside MenubarGroup. */
|
|
131
|
+
export declare function MenubarLabel({ className, inset, ...props }: MenubarLabelProps): JSX.Element;
|
|
132
|
+
|
|
133
|
+
export declare type MenubarLabelProps = React_2.ComponentProps<typeof DropdownMenuLabel>;
|
|
134
|
+
|
|
135
|
+
/** Individual menu within the menubar. Manages open/close state for a single menu. */
|
|
136
|
+
export declare function MenubarMenu({ ...props }: MenubarMenuProps): JSX.Element;
|
|
137
|
+
|
|
138
|
+
export declare type MenubarMenuProps = React_2.ComponentProps<typeof DropdownMenu>;
|
|
139
|
+
|
|
140
|
+
/** Renders menu content in a portal. Automatically used by MenubarContent. */
|
|
141
|
+
export declare function MenubarPortal({ ...props }: MenubarPortalProps): JSX.Element;
|
|
142
|
+
|
|
143
|
+
export declare type MenubarPortalProps = React_2.ComponentProps<typeof DropdownMenuPortal>;
|
|
144
|
+
|
|
145
|
+
export declare type MenubarProps = Menubar_2.Props;
|
|
146
|
+
|
|
147
|
+
/** Container for radio items. Manages single selection from mutually exclusive options. */
|
|
148
|
+
export declare function MenubarRadioGroup({ ...props }: MenubarRadioGroupProps): JSX.Element;
|
|
149
|
+
|
|
150
|
+
export declare type MenubarRadioGroupProps = React_2.ComponentProps<typeof DropdownMenuRadioGroup>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Menu item with radio button for selecting one option from a group.
|
|
154
|
+
* Must be wrapped in MenubarRadioGroup. Displays checkmark when selected.
|
|
155
|
+
*/
|
|
156
|
+
export declare function MenubarRadioItem({ className, children, ...props }: MenubarRadioItemProps): JSX.Element;
|
|
157
|
+
|
|
158
|
+
export declare type MenubarRadioItemProps = Menu.RadioItem.Props;
|
|
159
|
+
|
|
160
|
+
/** Visual separator between menu items or groups. */
|
|
161
|
+
export declare function MenubarSeparator({ className, ...props }: MenubarSeparatorProps): JSX.Element;
|
|
162
|
+
|
|
163
|
+
export declare type MenubarSeparatorProps = React_2.ComponentProps<typeof DropdownMenuSeparator>;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Keyboard shortcut hint displayed on the right side of menu items.
|
|
167
|
+
* Shows in muted color, highlights on focus. For display only, doesn't bind keys.
|
|
168
|
+
*/
|
|
169
|
+
export declare function MenubarShortcut({ className, ...props }: MenubarShortcutProps): JSX.Element;
|
|
170
|
+
|
|
171
|
+
export declare type MenubarShortcutProps = React_2.ComponentProps<typeof DropdownMenuShortcut>;
|
|
172
|
+
|
|
173
|
+
/** Container for nested submenu. Manages open/close state for the submenu. */
|
|
174
|
+
export declare function MenubarSub({ ...props }: MenubarSubProps): JSX.Element;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Content container for submenu items.
|
|
178
|
+
* Positioned relative to trigger, includes backdrop blur and animations.
|
|
179
|
+
*/
|
|
180
|
+
export declare function MenubarSubContent({ className, ...props }: MenubarSubContentProps): JSX.Element;
|
|
181
|
+
|
|
182
|
+
export declare type MenubarSubContentProps = React_2.ComponentProps<typeof DropdownMenuSubContent>;
|
|
183
|
+
|
|
184
|
+
export declare type MenubarSubProps = React_2.ComponentProps<typeof DropdownMenuSub>;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Menu item that opens a submenu on hover or click.
|
|
188
|
+
* Displays chevron icon automatically. Use inside MenubarSub.
|
|
189
|
+
*/
|
|
190
|
+
export declare function MenubarSubTrigger({ className, inset, ...props }: MenubarSubTriggerProps): JSX.Element;
|
|
191
|
+
|
|
192
|
+
export declare type MenubarSubTriggerProps = React_2.ComponentProps<typeof DropdownMenuSubTrigger> & {
|
|
193
|
+
/** Adds left padding for alignment with items that have icons/checkboxes. */
|
|
194
|
+
inset?: boolean;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
/** Button that opens a menu. Use `render` prop to customize. */
|
|
198
|
+
export declare function MenubarTrigger({ className, ...props }: MenubarTriggerProps): JSX.Element;
|
|
199
|
+
|
|
200
|
+
export declare type MenubarTriggerProps = React_2.ComponentProps<typeof DropdownMenuTrigger>;
|
|
201
|
+
|
|
202
|
+
/** Variant options for menu items: default, destructive, success, warning, info */
|
|
203
|
+
declare type MenuItemVariant = "default" | "destructive" | "success" | "warning" | "info";
|
|
204
|
+
|
|
205
|
+
export { }
|
package/dist/modal.d.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Button as Button_2 } from '@base-ui/react/button';
|
|
2
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { Dialog } from '@base-ui/react/dialog';
|
|
4
|
+
import { JSX } from 'react/jsx-runtime';
|
|
5
|
+
import * as React_2 from 'react';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Versatile button component with multiple visual variants and sizes.
|
|
10
|
+
*
|
|
11
|
+
* Supports icon placement via `data-icon="inline-start"` or `data-icon="inline-end"` attributes
|
|
12
|
+
* on child elements. Use the `render` prop to compose with other components or change the
|
|
13
|
+
* underlying element while maintaining button semantics.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Basic button
|
|
18
|
+
* <Button variant="default">Click me</Button>
|
|
19
|
+
*
|
|
20
|
+
* // With icon
|
|
21
|
+
* <Button>
|
|
22
|
+
* <PlusIcon data-icon="inline-start" />
|
|
23
|
+
* Create
|
|
24
|
+
* </Button>
|
|
25
|
+
*
|
|
26
|
+
* // Icon only
|
|
27
|
+
* <Button size="icon" aria-label="Settings">
|
|
28
|
+
* <SettingsIcon />
|
|
29
|
+
* </Button>
|
|
30
|
+
*
|
|
31
|
+
* // Custom element
|
|
32
|
+
* <Button render={<a href="/login" />}>Sign in</Button>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
declare function Button({ className, variant, size, ...props }: ButtonProps): JSX.Element;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Props for the Button component.
|
|
39
|
+
* Combines Base UI Button props with variant styling options.
|
|
40
|
+
*/
|
|
41
|
+
declare type ButtonProps = Button_2.Props & VariantProps<typeof buttonVariants>;
|
|
42
|
+
|
|
43
|
+
declare const buttonVariants: (props?: ({
|
|
44
|
+
variant?: "link" | "default" | "outline" | "success" | "destructive" | "info" | "primary" | "secondary" | "ghost" | "warning" | null | undefined;
|
|
45
|
+
size?: "default" | "icon" | "sm" | "lg" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
46
|
+
} & ClassProp) | undefined) => string;
|
|
47
|
+
|
|
48
|
+
/** Root container for modal dialog. Manages open state and accessibility. */
|
|
49
|
+
export declare function Modal({ ...props }: ModalProps): JSX.Element;
|
|
50
|
+
|
|
51
|
+
/** Button that closes the modal. Defaults to outline variant. */
|
|
52
|
+
export declare function ModalClose({ className, variant, size, ...props }: ModalCloseProps): JSX.Element;
|
|
53
|
+
|
|
54
|
+
export declare type ModalCloseProps = Dialog.Close.Props & Pick<React_2.ComponentProps<typeof Button>, "variant" | "size">;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Modal content with automatic portal and backdrop.
|
|
58
|
+
* Centered, animated popup with size variants.
|
|
59
|
+
*/
|
|
60
|
+
export declare function ModalContent({ className, size, ...props }: ModalContentProps): JSX.Element;
|
|
61
|
+
|
|
62
|
+
export declare type ModalContentProps = Dialog.Popup.Props & {
|
|
63
|
+
/** Modal size variant. @default "default" */
|
|
64
|
+
size?: "default" | "sm" | "lg";
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** Modal description text. Supports links with automatic styling. */
|
|
68
|
+
export declare function ModalDescription({ className, ...props }: ModalDescriptionProps): JSX.Element;
|
|
69
|
+
|
|
70
|
+
export declare type ModalDescriptionProps = React_2.ComponentProps<typeof Dialog.Description>;
|
|
71
|
+
|
|
72
|
+
/** Footer section for action buttons. */
|
|
73
|
+
export declare function ModalFooter({ className, ...props }: ModalFooterProps): JSX.Element;
|
|
74
|
+
|
|
75
|
+
export declare type ModalFooterProps = React_2.ComponentProps<"div">;
|
|
76
|
+
|
|
77
|
+
/** Header section for title and description. */
|
|
78
|
+
export declare function ModalHeader({ className, ...props }: ModalHeaderProps): JSX.Element;
|
|
79
|
+
|
|
80
|
+
export declare type ModalHeaderProps = React_2.ComponentProps<"div">;
|
|
81
|
+
|
|
82
|
+
/** Semi-transparent backdrop overlay with frosted glass effect. */
|
|
83
|
+
export declare function ModalOverlay({ className, ...props }: ModalOverlayProps): JSX.Element;
|
|
84
|
+
|
|
85
|
+
export declare type ModalOverlayProps = Dialog.Backdrop.Props;
|
|
86
|
+
|
|
87
|
+
/** Portal container for modal content and overlay. */
|
|
88
|
+
export declare function ModalPortal({ ...props }: ModalPortalProps): JSX.Element;
|
|
89
|
+
|
|
90
|
+
export declare type ModalPortalProps = Dialog.Portal.Props;
|
|
91
|
+
|
|
92
|
+
export declare type ModalProps = Dialog.Root.Props;
|
|
93
|
+
|
|
94
|
+
/** Modal title. Automatically announced by screen readers. */
|
|
95
|
+
export declare function ModalTitle({ className, ...props }: ModalTitleProps): JSX.Element;
|
|
96
|
+
|
|
97
|
+
export declare type ModalTitleProps = React_2.ComponentProps<typeof Dialog.Title>;
|
|
98
|
+
|
|
99
|
+
/** Button that opens the modal. Use `render` prop to customize. */
|
|
100
|
+
export declare function ModalTrigger({ ...props }: ModalTriggerProps): JSX.Element;
|
|
101
|
+
|
|
102
|
+
export declare type ModalTriggerProps = Dialog.Trigger.Props;
|
|
103
|
+
|
|
104
|
+
export { }
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { NavigationMenu as NavigationMenu_2 } from '@base-ui/react/navigation-menu';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Root container for horizontal navigation with mega menu support.
|
|
7
|
+
* Manages active state and provides keyboard navigation.
|
|
8
|
+
*/
|
|
9
|
+
export declare function NavigationMenu({ className, children, ...props }: NavigationMenuProps): JSX.Element;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Content panel for mega menus. Opened by NavigationMenuTrigger.
|
|
13
|
+
* Automatically renders in a positioned popup with smooth transitions.
|
|
14
|
+
*/
|
|
15
|
+
export declare function NavigationMenuContent({ className, ...props }: NavigationMenuContentProps): JSX.Element;
|
|
16
|
+
|
|
17
|
+
export declare type NavigationMenuContentProps = NavigationMenu_2.Content.Props;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Visual indicator (arrow) that shows which item is active.
|
|
21
|
+
* Optional - not commonly used in modern designs.
|
|
22
|
+
*/
|
|
23
|
+
export declare function NavigationMenuIndicator({ className, ...props }: NavigationMenuIndicatorProps): JSX.Element;
|
|
24
|
+
|
|
25
|
+
export declare type NavigationMenuIndicatorProps = NavigationMenu_2.Icon.Props;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Individual navigation item. Can contain a Link or Trigger + Content.
|
|
29
|
+
* Use `value` prop to identify the item for controlled state.
|
|
30
|
+
*/
|
|
31
|
+
export declare function NavigationMenuItem({ className, ...props }: NavigationMenuItemProps): JSX.Element;
|
|
32
|
+
|
|
33
|
+
export declare type NavigationMenuItemProps = NavigationMenu_2.Item.Props;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Navigation link for direct navigation items or links within content panels.
|
|
37
|
+
* Use `active` prop to highlight the current page.
|
|
38
|
+
*/
|
|
39
|
+
export declare function NavigationMenuLink({ className, ...props }: NavigationMenuLinkProps): JSX.Element;
|
|
40
|
+
|
|
41
|
+
export declare type NavigationMenuLinkProps = NavigationMenu_2.Link.Props;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Container for navigation menu items. Renders as a horizontal list.
|
|
45
|
+
*/
|
|
46
|
+
export declare function NavigationMenuList({ className, ...props }: NavigationMenuListProps): JSX.Element;
|
|
47
|
+
|
|
48
|
+
export declare type NavigationMenuListProps = NavigationMenu_2.List.Props;
|
|
49
|
+
|
|
50
|
+
/* Excluded from this release type: NavigationMenuPositioner */
|
|
51
|
+
|
|
52
|
+
export declare type NavigationMenuPositionerProps = NavigationMenu_2.Positioner.Props;
|
|
53
|
+
|
|
54
|
+
export declare type NavigationMenuProps = NavigationMenu_2.Root.Props;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Button that opens the associated NavigationMenuContent panel.
|
|
58
|
+
* Automatically includes a rotating chevron icon.
|
|
59
|
+
*/
|
|
60
|
+
export declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuTriggerProps): JSX.Element;
|
|
61
|
+
|
|
62
|
+
export declare type NavigationMenuTriggerProps = NavigationMenu_2.Trigger.Props;
|
|
63
|
+
|
|
64
|
+
export declare const navigationMenuTriggerStyle: (props?: ClassProp | undefined) => string;
|
|
65
|
+
|
|
66
|
+
export { }
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Button as Button_2 } from '@base-ui/react/button';
|
|
2
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import * as React_2 from 'react';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Versatile button component with multiple visual variants and sizes.
|
|
9
|
+
*
|
|
10
|
+
* Supports icon placement via `data-icon="inline-start"` or `data-icon="inline-end"` attributes
|
|
11
|
+
* on child elements. Use the `render` prop to compose with other components or change the
|
|
12
|
+
* underlying element while maintaining button semantics.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* // Basic button
|
|
17
|
+
* <Button variant="default">Click me</Button>
|
|
18
|
+
*
|
|
19
|
+
* // With icon
|
|
20
|
+
* <Button>
|
|
21
|
+
* <PlusIcon data-icon="inline-start" />
|
|
22
|
+
* Create
|
|
23
|
+
* </Button>
|
|
24
|
+
*
|
|
25
|
+
* // Icon only
|
|
26
|
+
* <Button size="icon" aria-label="Settings">
|
|
27
|
+
* <SettingsIcon />
|
|
28
|
+
* </Button>
|
|
29
|
+
*
|
|
30
|
+
* // Custom element
|
|
31
|
+
* <Button render={<a href="/login" />}>Sign in</Button>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare function Button({ className, variant, size, ...props }: ButtonProps): JSX.Element;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Props for the Button component.
|
|
38
|
+
* Combines Base UI Button props with variant styling options.
|
|
39
|
+
*/
|
|
40
|
+
declare type ButtonProps = Button_2.Props & VariantProps<typeof buttonVariants>;
|
|
41
|
+
|
|
42
|
+
declare const buttonVariants: (props?: ({
|
|
43
|
+
variant?: "link" | "default" | "outline" | "success" | "destructive" | "info" | "primary" | "secondary" | "ghost" | "warning" | null | undefined;
|
|
44
|
+
size?: "default" | "icon" | "sm" | "lg" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
45
|
+
} & ClassProp) | undefined) => string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Root pagination navigation container.
|
|
49
|
+
*/
|
|
50
|
+
export declare function Pagination({ className, ...props }: PaginationProps): JSX.Element;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Container for pagination items. Renders as a flex list.
|
|
54
|
+
*/
|
|
55
|
+
export declare function PaginationContent({ className, ...props }: PaginationContentProps): JSX.Element;
|
|
56
|
+
|
|
57
|
+
export declare type PaginationContentProps = React_2.ComponentProps<"ul">;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Ellipsis indicator for skipped pages. Use between page numbers to show truncated ranges.
|
|
61
|
+
*/
|
|
62
|
+
export declare function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): JSX.Element;
|
|
63
|
+
|
|
64
|
+
export declare type PaginationEllipsisProps = React_2.ComponentProps<"span">;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Wrapper for individual pagination elements (links, ellipsis, controls).
|
|
68
|
+
*/
|
|
69
|
+
export declare function PaginationItem({ ...props }: PaginationItemProps): JSX.Element;
|
|
70
|
+
|
|
71
|
+
export declare type PaginationItemProps = React_2.ComponentProps<"li">;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Clickable page number link. Use `isActive` to highlight the current page.
|
|
75
|
+
*/
|
|
76
|
+
export declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): JSX.Element;
|
|
77
|
+
|
|
78
|
+
export declare type PaginationLinkProps = {
|
|
79
|
+
/** Whether this page link is the current active page. */
|
|
80
|
+
isActive?: boolean;
|
|
81
|
+
} & Pick<React_2.ComponentProps<typeof Button>, "size"> & React_2.ComponentProps<"a">;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Next page button with chevron icon and "Next" text (hidden on mobile).
|
|
85
|
+
*/
|
|
86
|
+
export declare function PaginationNext({ className, ...props }: PaginationNextProps): JSX.Element;
|
|
87
|
+
|
|
88
|
+
export declare type PaginationNextProps = React_2.ComponentProps<typeof PaginationLink>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Previous page button with chevron icon and "Previous" text (hidden on mobile).
|
|
92
|
+
*/
|
|
93
|
+
export declare function PaginationPrevious({ className, ...props }: PaginationPreviousProps): JSX.Element;
|
|
94
|
+
|
|
95
|
+
export declare type PaginationPreviousProps = React_2.ComponentProps<typeof PaginationLink>;
|
|
96
|
+
|
|
97
|
+
export declare type PaginationProps = React_2.ComponentProps<"nav">;
|
|
98
|
+
|
|
99
|
+
export { }
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { Popover as Popover_2 } from '@base-ui/react/popover';
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Popover root component. Groups all parts of the popover and manages open state.
|
|
7
|
+
* Use with `open`/`onOpenChange` for controlled state, or `defaultOpen` for uncontrolled.
|
|
8
|
+
*/
|
|
9
|
+
export declare function Popover({ ...props }: PopoverProps): JSX.Element;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Popover content with automatic portal and positioning.
|
|
13
|
+
* Animates in/out with fade and zoom effects. Default width is w-72 (18rem).
|
|
14
|
+
*
|
|
15
|
+
* @param align - Horizontal alignment relative to trigger. @default "center"
|
|
16
|
+
* @param alignOffset - Offset in pixels along alignment axis. @default 0
|
|
17
|
+
* @param side - Which side of trigger to display on. @default "bottom"
|
|
18
|
+
* @param sideOffset - Distance in pixels from trigger. @default 4
|
|
19
|
+
*/
|
|
20
|
+
export declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: PopoverContentProps): JSX.Element;
|
|
21
|
+
|
|
22
|
+
export declare type PopoverContentProps = Popover_2.Popup.Props & Pick<Popover_2.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Optional description text for the popover. Styled with muted foreground color.
|
|
26
|
+
*/
|
|
27
|
+
export declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): JSX.Element;
|
|
28
|
+
|
|
29
|
+
export declare type PopoverDescriptionProps = Popover_2.Description.Props;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Optional header wrapper for PopoverTitle and PopoverDescription.
|
|
33
|
+
* Provides consistent spacing between title and description.
|
|
34
|
+
*/
|
|
35
|
+
export declare function PopoverHeader({ className, ...props }: PopoverHeaderProps): JSX.Element;
|
|
36
|
+
|
|
37
|
+
export declare type PopoverHeaderProps = React_2.ComponentProps<"div">;
|
|
38
|
+
|
|
39
|
+
export declare type PopoverProps = Popover_2.Root.Props;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Heading that labels the popover. Renders an h2 element with proper ARIA attributes.
|
|
43
|
+
*/
|
|
44
|
+
export declare function PopoverTitle({ className, ...props }: PopoverTitleProps): JSX.Element;
|
|
45
|
+
|
|
46
|
+
export declare type PopoverTitleProps = Popover_2.Title.Props;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Button that opens the popover. Use `render` prop to customize the trigger element.
|
|
50
|
+
*/
|
|
51
|
+
export declare function PopoverTrigger({ ...props }: PopoverTriggerProps): JSX.Element;
|
|
52
|
+
|
|
53
|
+
export declare type PopoverTriggerProps = Popover_2.Trigger.Props;
|
|
54
|
+
|
|
55
|
+
export { }
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { Progress as Progress_2 } from '@base-ui/react/progress';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Root container for progress bar with label and value support.
|
|
6
|
+
* Automatically includes track and indicator. Use `value={null}` for indeterminate state.
|
|
7
|
+
*/
|
|
8
|
+
export declare function Progress({ className, children, value, ...props }: ProgressProps): JSX.Element;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Visual indicator showing progress completion. Customize color with className
|
|
12
|
+
* (e.g., `bg-green-500`, `bg-red-500` for semantic states).
|
|
13
|
+
*/
|
|
14
|
+
export declare function ProgressIndicator({ className, ...props }: ProgressIndicatorProps): JSX.Element;
|
|
15
|
+
|
|
16
|
+
export declare type ProgressIndicatorProps = Progress_2.Indicator.Props;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Text label describing the progress task.
|
|
20
|
+
*/
|
|
21
|
+
export declare function ProgressLabel({ className, ...props }: ProgressLabelProps): JSX.Element;
|
|
22
|
+
|
|
23
|
+
export declare type ProgressLabelProps = Progress_2.Label.Props;
|
|
24
|
+
|
|
25
|
+
export declare type ProgressProps = Progress_2.Root.Props;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Container for the progress indicator. Customize height with className (e.g., `h-2`, `h-3`).
|
|
29
|
+
*/
|
|
30
|
+
export declare function ProgressTrack({ className, ...props }: ProgressTrackProps): JSX.Element;
|
|
31
|
+
|
|
32
|
+
export declare type ProgressTrackProps = Progress_2.Track.Props;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Displays formatted progress value (e.g., "65%"). Auto-positioned to right via `ml-auto`.
|
|
36
|
+
*/
|
|
37
|
+
export declare function ProgressValue({ className, ...props }: ProgressValueProps): JSX.Element;
|
|
38
|
+
|
|
39
|
+
export declare type ProgressValueProps = Progress_2.Value.Props;
|
|
40
|
+
|
|
41
|
+
export { }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { Radio } from '@base-ui/react/radio';
|
|
3
|
+
import { RadioGroup as RadioGroup_2 } from '@base-ui/react/radio-group';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Container for radio button items. Manages shared state and ensures only one option can be selected.
|
|
7
|
+
* Supports controlled and uncontrolled usage.
|
|
8
|
+
*/
|
|
9
|
+
export declare function RadioGroup({ className, ...props }: RadioGroupProps): JSX.Element;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Individual radio button item. Use with RadioGroup to create mutually exclusive selections.
|
|
13
|
+
* Automatically renders an indicator when checked.
|
|
14
|
+
*/
|
|
15
|
+
export declare function RadioGroupItem({ className, ...props }: RadioGroupItemProps): JSX.Element;
|
|
16
|
+
|
|
17
|
+
export declare type RadioGroupItemProps = Radio.Root.Props;
|
|
18
|
+
|
|
19
|
+
export declare type RadioGroupProps = RadioGroup_2.Props;
|
|
20
|
+
|
|
21
|
+
export { }
|