@minidev.fun/ui 1.0.3 → 1.0.5
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/badge.d.ts +22 -0
- package/dist/breadcrumb.d.ts +54 -0
- package/dist/button-group.d.ts +45 -0
- package/dist/button.d.ts +46 -0
- package/dist/calendar.d.ts +68 -0
- package/dist/card.d.ts +45 -0
- package/dist/carousel.d.ts +116 -0
- package/dist/chart.d.ts +85 -0
- 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/color-mode/color-mode-toggle.js +2 -2
- package/dist/components/minidev.fun/color-mode/index.js +9 -0
- package/dist/components/minidev.fun/first-light/first-light-filters.js +114 -0
- package/dist/components/minidev.fun/first-light/first-light-filters.js.map +1 -0
- package/dist/components/minidev.fun/first-light/index.js +5 -0
- package/dist/components/minidev.fun/first-light/index.js.map +1 -0
- package/dist/components/minidev.fun/typography/blockquote.js +23 -0
- package/dist/components/minidev.fun/typography/blockquote.js.map +1 -0
- package/dist/components/minidev.fun/typography/code.js +23 -0
- package/dist/components/minidev.fun/typography/code.js.map +1 -0
- package/dist/components/minidev.fun/typography/index.js +15 -0
- package/dist/components/minidev.fun/typography/index.js.map +1 -0
- package/dist/components/minidev.fun/typography/list-item.js +19 -0
- package/dist/components/minidev.fun/typography/list-item.js.map +1 -0
- package/dist/components/minidev.fun/typography/text.js +59 -0
- package/dist/components/minidev.fun/typography/text.js.map +1 -0
- package/dist/components/minidev.fun/typography/title.js +47 -0
- package/dist/components/minidev.fun/typography/title.js.map +1 -0
- package/dist/components/ui/{src/components/ui/accordion.js → accordion.js} +8 -8
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/{src/components/ui/alert-dialog.js → alert-dialog.js} +9 -9
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/{src/components/ui/alert.js → alert.js} +2 -2
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/{src/components/ui/aspect-ratio.js → aspect-ratio.js} +1 -1
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/{src/components/ui/avatar.js → avatar.js} +4 -4
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/{src/components/ui/badge.js → badge.js} +4 -4
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/{src/components/ui/breadcrumb.js → breadcrumb.js} +5 -5
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/{src/components/ui/button-group.js → button-group.js} +4 -4
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/{src/components/ui/button.js → button.js} +3 -3
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/{src/components/ui/calendar.js → calendar.js} +4 -4
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/{src/components/ui/card.js → card.js} +1 -1
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/{src/components/ui/carousel.js → carousel.js} +3 -3
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/{src/components/ui/chart.js → chart.js} +1 -1
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/{src/components/ui/checkbox.js → checkbox.js} +4 -4
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/{src/components/ui/collapsible.js → collapsible.js} +3 -3
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/{src/components/ui/combobox.js → combobox.js} +23 -23
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/{src/components/ui/command.js → command.js} +4 -4
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/{src/components/ui/context-menu.js → context-menu.js} +20 -20
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/{src/components/ui/dialog.js → dialog.js} +10 -10
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/{src/components/ui/drawer.js → drawer.js} +2 -2
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/{src/components/ui/dropdown-menu.js → dropdown-menu.js} +20 -20
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/{src/components/ui/empty.js → empty.js} +2 -2
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/{src/components/ui/field.js → field.js} +2 -2
- package/dist/components/ui/field.js.map +1 -0
- package/dist/components/ui/{src/components/ui/hover-card.js → hover-card.js} +6 -6
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/{src/components/ui/input-group.js → input-group.js} +2 -2
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/{src/components/ui/input-otp.js → input-otp.js} +2 -2
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/{src/components/ui/input.js → input.js} +2 -2
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/{src/components/ui/item.js → item.js} +4 -4
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/{src/components/ui/kbd.js → kbd.js} +1 -1
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/{src/components/ui/label.js → label.js} +1 -1
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/{src/components/ui/menubar.js → menubar.js} +9 -9
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/{src/components/ui/modal.js → modal.js} +9 -9
- package/dist/components/ui/modal.js.map +1 -0
- package/dist/components/ui/{src/components/ui/navigation-menu.js → navigation-menu.js} +14 -14
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/{src/components/ui/pagination.js → pagination.js} +4 -4
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/{src/components/ui/popover.js → popover.js} +8 -8
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/{src/components/ui/progress.js → progress.js} +6 -6
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/{src/components/ui/radio-group.js → radio-group.js} +5 -5
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/{src/components/ui/resizable.js → resizable.js} +2 -2
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/{src/components/ui/scroll-area.js → scroll-area.js} +6 -6
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/{src/components/ui/select.js → select.js} +20 -20
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/{src/components/ui/separator.js → separator.js} +2 -2
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/{src/components/ui/sheet.js → sheet.js} +10 -10
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/{src/components/ui/sidebar.js → sidebar.js} +6 -6
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/{src/components/ui/skeleton.js → skeleton.js} +1 -1
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/{src/components/ui/slider.js → slider.js} +6 -6
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/{src/components/ui/sonner.js → sonner.js} +7 -7
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/{src/components/ui/spinner.js → spinner.js} +2 -2
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/{src/components/ui/switch.js → switch.js} +3 -3
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/{src/components/ui/table.js → table.js} +1 -1
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/{src/components/ui/tabs.js → tabs.js} +6 -6
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/{src/components/ui/textarea.js → textarea.js} +1 -1
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/{src/components/ui/toast.js → toast.js} +6 -6
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/{src/components/ui/toggle-group.js → toggle-group.js} +3 -3
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/{src/components/ui/toggle.js → toggle.js} +3 -3
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/{src/components/ui/tooltip.js → tooltip.js} +8 -8
- package/dist/components/ui/tooltip.js.map +1 -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/use-mobile.js.map +1 -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/variants.js +103 -1
- package/dist/lib/variants.js.map +1 -1
- 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/resizable.d.ts +47 -0
- package/dist/scroll-area.d.ts +69 -0
- 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/slider.d.ts +24 -0
- package/dist/sonner.d.ts +27 -0
- 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/textarea.d.ts +21 -0
- 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/use-mobile.d.ts +19 -0
- 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.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.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.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/minidev.fun/undefined/index.js +0 -9
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- package/dist/components/ui/card.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/combobox.d.ts.map +0 -1
- package/dist/components/ui/command.d.ts.map +0 -1
- package/dist/components/ui/context-menu.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/drawer.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/empty.d.ts.map +0 -1
- package/dist/components/ui/field.d.ts.map +0 -1
- package/dist/components/ui/hover-card.d.ts.map +0 -1
- package/dist/components/ui/input-group.d.ts.map +0 -1
- package/dist/components/ui/input-otp.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/item.d.ts.map +0 -1
- package/dist/components/ui/kbd.d.ts.map +0 -1
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/menubar.d.ts.map +0 -1
- package/dist/components/ui/modal.d.ts.map +0 -1
- package/dist/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/components/ui/pagination.d.ts.map +0 -1
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/progress.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/sheet.d.ts.map +0 -1
- package/dist/components/ui/sidebar.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/components/ui/src/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/src/components/ui/alert-dialog.js.map +0 -1
- package/dist/components/ui/src/components/ui/alert.js.map +0 -1
- package/dist/components/ui/src/components/ui/aspect-ratio.js.map +0 -1
- package/dist/components/ui/src/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/src/components/ui/badge.js.map +0 -1
- package/dist/components/ui/src/components/ui/breadcrumb.js.map +0 -1
- package/dist/components/ui/src/components/ui/button-group.js.map +0 -1
- package/dist/components/ui/src/components/ui/button.js.map +0 -1
- package/dist/components/ui/src/components/ui/calendar.js.map +0 -1
- package/dist/components/ui/src/components/ui/card.js.map +0 -1
- package/dist/components/ui/src/components/ui/carousel.js.map +0 -1
- package/dist/components/ui/src/components/ui/chart.js.map +0 -1
- package/dist/components/ui/src/components/ui/checkbox.js.map +0 -1
- package/dist/components/ui/src/components/ui/collapsible.js.map +0 -1
- package/dist/components/ui/src/components/ui/combobox.js.map +0 -1
- package/dist/components/ui/src/components/ui/command.js.map +0 -1
- package/dist/components/ui/src/components/ui/context-menu.js.map +0 -1
- package/dist/components/ui/src/components/ui/dialog.js.map +0 -1
- package/dist/components/ui/src/components/ui/drawer.js.map +0 -1
- package/dist/components/ui/src/components/ui/dropdown-menu.js.map +0 -1
- package/dist/components/ui/src/components/ui/empty.js.map +0 -1
- package/dist/components/ui/src/components/ui/field.js.map +0 -1
- package/dist/components/ui/src/components/ui/hover-card.js.map +0 -1
- package/dist/components/ui/src/components/ui/input-group.js.map +0 -1
- package/dist/components/ui/src/components/ui/input-otp.js.map +0 -1
- package/dist/components/ui/src/components/ui/input.js.map +0 -1
- package/dist/components/ui/src/components/ui/item.js.map +0 -1
- package/dist/components/ui/src/components/ui/kbd.js.map +0 -1
- package/dist/components/ui/src/components/ui/label.js.map +0 -1
- package/dist/components/ui/src/components/ui/menubar.js.map +0 -1
- package/dist/components/ui/src/components/ui/modal.js.map +0 -1
- package/dist/components/ui/src/components/ui/navigation-menu.js.map +0 -1
- package/dist/components/ui/src/components/ui/pagination.js.map +0 -1
- package/dist/components/ui/src/components/ui/popover.js.map +0 -1
- package/dist/components/ui/src/components/ui/progress.js.map +0 -1
- package/dist/components/ui/src/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/src/components/ui/resizable.js.map +0 -1
- package/dist/components/ui/src/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/src/components/ui/select.js.map +0 -1
- package/dist/components/ui/src/components/ui/separator.js.map +0 -1
- package/dist/components/ui/src/components/ui/sheet.js.map +0 -1
- package/dist/components/ui/src/components/ui/sidebar.js.map +0 -1
- package/dist/components/ui/src/components/ui/skeleton.js.map +0 -1
- package/dist/components/ui/src/components/ui/slider.js.map +0 -1
- package/dist/components/ui/src/components/ui/sonner.js.map +0 -1
- package/dist/components/ui/src/components/ui/spinner.js.map +0 -1
- package/dist/components/ui/src/components/ui/switch.js.map +0 -1
- package/dist/components/ui/src/components/ui/table.js.map +0 -1
- package/dist/components/ui/src/components/ui/tabs.js.map +0 -1
- package/dist/components/ui/src/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/src/components/ui/toast.js.map +0 -1
- package/dist/components/ui/src/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/src/components/ui/toggle.js.map +0 -1
- package/dist/components/ui/src/components/ui/tooltip.js.map +0 -1
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/table.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/hooks/src/hooks/use-mobile.js.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
- /package/dist/components/minidev.fun/{undefined → color-mode}/index.js.map +0 -0
- /package/dist/hooks/{src/hooks/use-mobile.js → use-mobile.js} +0 -0
|
@@ -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 { }
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Group } from 'react-resizable-panels';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { Panel } from 'react-resizable-panels';
|
|
4
|
+
import * as React_2 from 'react';
|
|
5
|
+
import { Separator } from 'react-resizable-panels';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Resize handle between panels. Appears as a thin line with optional visible grip indicator.
|
|
9
|
+
* Supports keyboard navigation and focus states.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps): JSX.Element;
|
|
12
|
+
|
|
13
|
+
export declare type ResizableHandleProps = React_2.ComponentProps<typeof Separator> & {
|
|
14
|
+
/** Display a visible grip indicator on the resize handle. @default false */
|
|
15
|
+
withHandle?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Individual resizable panel within a ResizablePanelGroup.
|
|
20
|
+
* Supports size constraints (minSize, maxSize), default sizing, and collapse behavior.
|
|
21
|
+
*
|
|
22
|
+
* Control collapse state declaratively via the `collapsed` prop.
|
|
23
|
+
* When `animated` is true, collapse/expand transitions are smooth.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <ResizablePanel collapsed={isCollapsed} animated collapsible>
|
|
27
|
+
*/
|
|
28
|
+
export declare function ResizablePanel({ className, animated, collapsed, duration, ...props }: ResizablePanelProps): JSX.Element;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Container for resizable panels. Manages layout orientation and panel resizing behavior.
|
|
32
|
+
* Supports both horizontal and vertical layouts with optional persistence via `id` prop.
|
|
33
|
+
*/
|
|
34
|
+
export declare function ResizablePanelGroup({ className, ...props }: ResizablePanelGroupProps): JSX.Element;
|
|
35
|
+
|
|
36
|
+
export declare type ResizablePanelGroupProps = React_2.ComponentProps<typeof Group>;
|
|
37
|
+
|
|
38
|
+
export declare type ResizablePanelProps = Omit<React_2.ComponentProps<typeof Panel>, "panelRef"> & {
|
|
39
|
+
/** Enable smooth CSS transition for collapse/expand. Drag resizing stays instant. @default false */
|
|
40
|
+
animated?: boolean;
|
|
41
|
+
/** Controlled collapsed state. When provided, the panel syncs to this value. */
|
|
42
|
+
collapsed?: boolean;
|
|
43
|
+
/** Animation duration in milliseconds. Only applies when `animated` is true. @default 400 */
|
|
44
|
+
duration?: number;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { }
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { ScrollArea as ScrollArea_2 } from '@base-ui/react/scroll-area';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* ScrollArea component that provides a customizable scrollable container with styled scrollbars.
|
|
6
|
+
* Built on Base UI's ScrollArea primitive with automatic overflow detection and custom scrollbar styling.
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <ScrollArea className="h-72 w-48 rounded-md border p-4">
|
|
12
|
+
* <div>Long content that needs scrolling...</div>
|
|
13
|
+
* </ScrollArea>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* // With horizontal scrolling
|
|
19
|
+
* <ScrollArea className="w-96 whitespace-nowrap rounded-md border">
|
|
20
|
+
* <div className="flex gap-4 p-4">
|
|
21
|
+
* <div>Item 1</div>
|
|
22
|
+
* <div>Item 2</div>
|
|
23
|
+
* <div>Item 3</div>
|
|
24
|
+
* </div>
|
|
25
|
+
* </ScrollArea>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param {ScrollAreaProps} props - Component props extending Base UI ScrollArea.Root.Props
|
|
29
|
+
* @returns {React.ReactElement} A styled scrollable container with custom scrollbars
|
|
30
|
+
*/
|
|
31
|
+
export declare function ScrollArea({ className, children, ...props }: ScrollAreaProps): JSX.Element;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Props for the ScrollArea component
|
|
35
|
+
* @property {string} className - Additional CSS classes to apply
|
|
36
|
+
* @property {React.ReactNode} children - Content to be rendered within the scrollable area
|
|
37
|
+
*/
|
|
38
|
+
export declare type ScrollAreaProps = ScrollArea_2.Root.Props;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* ScrollBar component that renders a custom-styled scrollbar for the ScrollArea.
|
|
42
|
+
* Automatically positions itself based on orientation and includes a draggable thumb.
|
|
43
|
+
* Typically used internally by ScrollArea but can be used independently for custom layouts.
|
|
44
|
+
*
|
|
45
|
+
* @component
|
|
46
|
+
* @example
|
|
47
|
+
* ```tsx
|
|
48
|
+
* // Custom ScrollArea with horizontal scrollbar only
|
|
49
|
+
* <ScrollAreaPrimitive.Root>
|
|
50
|
+
* <ScrollAreaPrimitive.Viewport>
|
|
51
|
+
* {children}
|
|
52
|
+
* </ScrollAreaPrimitive.Viewport>
|
|
53
|
+
* <ScrollBar orientation="horizontal" />
|
|
54
|
+
* </ScrollAreaPrimitive.Root>
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param {ScrollBarProps} props - Component props extending Base UI ScrollArea.Scrollbar.Props
|
|
58
|
+
* @returns {React.ReactElement} A styled scrollbar with draggable thumb
|
|
59
|
+
*/
|
|
60
|
+
export declare function ScrollBar({ className, orientation, ...props }: ScrollBarProps): JSX.Element;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Props for the ScrollBar component
|
|
64
|
+
* @property {string} className - Additional CSS classes to apply
|
|
65
|
+
* @property {"vertical" | "horizontal"} orientation - Scrollbar orientation (default: "vertical")
|
|
66
|
+
*/
|
|
67
|
+
export declare type ScrollBarProps = ScrollArea_2.Scrollbar.Props;
|
|
68
|
+
|
|
69
|
+
export { }
|
package/dist/select.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
import { Select as Select_2 } from '@base-ui/react/select';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Select root component. Manages select state and provides context to children.
|
|
7
|
+
* Use with SelectTrigger, SelectContent, SelectItem, and SelectValue.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Select: typeof Select_2.Root;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Select dropdown content. Automatically renders in a portal with positioning and scroll buttons.
|
|
13
|
+
*/
|
|
14
|
+
export declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: SelectContentProps): JSX.Element;
|
|
15
|
+
|
|
16
|
+
export declare type SelectContentProps = Select_2.Popup.Props & Pick<Select_2.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Groups related select items with a label.
|
|
20
|
+
*/
|
|
21
|
+
export declare function SelectGroup({ className, ...props }: SelectGroupProps): JSX.Element;
|
|
22
|
+
|
|
23
|
+
export declare type SelectGroupProps = Select_2.Group.Props;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Individual selectable item. Automatically shows check icon when selected.
|
|
27
|
+
*/
|
|
28
|
+
export declare function SelectItem({ className, children, ...props }: SelectItemProps): JSX.Element;
|
|
29
|
+
|
|
30
|
+
export declare type SelectItemProps = Select_2.Item.Props;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Label for a group of select items.
|
|
34
|
+
*/
|
|
35
|
+
export declare function SelectLabel({ className, ...props }: SelectLabelProps): JSX.Element;
|
|
36
|
+
|
|
37
|
+
export declare type SelectLabelProps = Select_2.GroupLabel.Props;
|
|
38
|
+
|
|
39
|
+
export declare type SelectProps<T = unknown> = Select_2.Root.Props<T>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Scroll indicator button at the bottom of scrollable content.
|
|
43
|
+
*/
|
|
44
|
+
export declare function SelectScrollDownButton({ className, ...props }: SelectScrollDownButtonProps): JSX.Element;
|
|
45
|
+
|
|
46
|
+
export declare type SelectScrollDownButtonProps = React_2.ComponentProps<typeof Select_2.ScrollDownArrow>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Scroll indicator button at the top of scrollable content.
|
|
50
|
+
*/
|
|
51
|
+
export declare function SelectScrollUpButton({ className, ...props }: SelectScrollUpButtonProps): JSX.Element;
|
|
52
|
+
|
|
53
|
+
export declare type SelectScrollUpButtonProps = React_2.ComponentProps<typeof Select_2.ScrollUpArrow>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Visual separator between select groups.
|
|
57
|
+
*/
|
|
58
|
+
export declare function SelectSeparator({ className, ...props }: SelectSeparatorProps): JSX.Element;
|
|
59
|
+
|
|
60
|
+
export declare type SelectSeparatorProps = Select_2.Separator.Props;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Button that opens the select dropdown. Automatically includes chevron icon.
|
|
64
|
+
*/
|
|
65
|
+
export declare function SelectTrigger({ className, size, children, ...props }: SelectTriggerProps): JSX.Element;
|
|
66
|
+
|
|
67
|
+
export declare type SelectTriggerProps = Select_2.Trigger.Props & {
|
|
68
|
+
/** Select trigger size. @default "default" */
|
|
69
|
+
size?: "sm" | "default";
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Displays the selected item's value or placeholder text.
|
|
74
|
+
*/
|
|
75
|
+
export declare function SelectValue({ className, ...props }: SelectValueProps): JSX.Element;
|
|
76
|
+
|
|
77
|
+
export declare type SelectValueProps = Select_2.Value.Props;
|
|
78
|
+
|
|
79
|
+
export { }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { Separator as Separator_2 } from '@base-ui/react/separator';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Visual divider for separating content sections.
|
|
6
|
+
* Supports both horizontal (default) and vertical orientations.
|
|
7
|
+
*/
|
|
8
|
+
export declare function Separator({ className, orientation, ...props }: SeparatorProps): JSX.Element;
|
|
9
|
+
|
|
10
|
+
export declare type SeparatorProps = Separator_2.Props;
|
|
11
|
+
|
|
12
|
+
export { }
|
package/dist/sheet.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Dialog } from '@base-ui/react/dialog';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Sheet root component. Manages open/closed state for slide-in panels.
|
|
7
|
+
* Built on Base UI Dialog with directional slide animations.
|
|
8
|
+
*/
|
|
9
|
+
export declare function Sheet({ ...props }: SheetProps): JSX.Element;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Button that closes the sheet. Use `render` prop to customize the close element.
|
|
13
|
+
*/
|
|
14
|
+
export declare function SheetClose({ ...props }: SheetCloseProps): JSX.Element;
|
|
15
|
+
|
|
16
|
+
export declare type SheetCloseProps = Dialog.Close.Props;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Sheet content panel with automatic portal, overlay, and slide animations.
|
|
20
|
+
* Slides in from specified edge with backdrop blur effect.
|
|
21
|
+
*/
|
|
22
|
+
export declare function SheetContent({ className, children, side, showCloseButton, ...props }: SheetContentProps): JSX.Element;
|
|
23
|
+
|
|
24
|
+
export declare type SheetContentProps = Dialog.Popup.Props & {
|
|
25
|
+
/** Which edge the sheet slides in from. @default "right" */
|
|
26
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
27
|
+
/** Show close button (X) in top-right corner. @default true */
|
|
28
|
+
showCloseButton?: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Accessible sheet description. Provides additional context for screen readers.
|
|
33
|
+
*/
|
|
34
|
+
export declare function SheetDescription({ className, ...props }: SheetDescriptionProps): JSX.Element;
|
|
35
|
+
|
|
36
|
+
export declare type SheetDescriptionProps = Dialog.Description.Props;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Footer section for sheet actions. Automatically sticks to bottom with consistent spacing.
|
|
40
|
+
*/
|
|
41
|
+
export declare function SheetFooter({ className, ...props }: SheetFooterProps): JSX.Element;
|
|
42
|
+
|
|
43
|
+
export declare type SheetFooterProps = React_2.ComponentProps<"div">;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Header section for sheet title and description. Provides consistent spacing.
|
|
47
|
+
*/
|
|
48
|
+
export declare function SheetHeader({ className, ...props }: SheetHeaderProps): JSX.Element;
|
|
49
|
+
|
|
50
|
+
export declare type SheetHeaderProps = React_2.ComponentProps<"div">;
|
|
51
|
+
|
|
52
|
+
export declare type SheetProps = Dialog.Root.Props;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Accessible sheet title. Automatically linked to sheet for screen readers.
|
|
56
|
+
*/
|
|
57
|
+
export declare function SheetTitle({ className, ...props }: SheetTitleProps): JSX.Element;
|
|
58
|
+
|
|
59
|
+
export declare type SheetTitleProps = Dialog.Title.Props;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Button that opens the sheet. Use `render` prop to customize the trigger element.
|
|
63
|
+
*/
|
|
64
|
+
export declare function SheetTrigger({ ...props }: SheetTriggerProps): JSX.Element;
|
|
65
|
+
|
|
66
|
+
export declare type SheetTriggerProps = Dialog.Trigger.Props;
|
|
67
|
+
|
|
68
|
+
export { }
|
|
@@ -0,0 +1,288 @@
|
|
|
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 { Separator as Separator_2 } from '@base-ui/react/separator';
|
|
6
|
+
import { Tooltip } from '@base-ui/react/tooltip';
|
|
7
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
8
|
+
import { VariantProps } from 'class-variance-authority';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Versatile button component with multiple visual variants and sizes.
|
|
12
|
+
*
|
|
13
|
+
* Supports icon placement via `data-icon="inline-start"` or `data-icon="inline-end"` attributes
|
|
14
|
+
* on child elements. Use the `render` prop to compose with other components or change the
|
|
15
|
+
* underlying element while maintaining button semantics.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* // Basic button
|
|
20
|
+
* <Button variant="default">Click me</Button>
|
|
21
|
+
*
|
|
22
|
+
* // With icon
|
|
23
|
+
* <Button>
|
|
24
|
+
* <PlusIcon data-icon="inline-start" />
|
|
25
|
+
* Create
|
|
26
|
+
* </Button>
|
|
27
|
+
*
|
|
28
|
+
* // Icon only
|
|
29
|
+
* <Button size="icon" aria-label="Settings">
|
|
30
|
+
* <SettingsIcon />
|
|
31
|
+
* </Button>
|
|
32
|
+
*
|
|
33
|
+
* // Custom element
|
|
34
|
+
* <Button render={<a href="/login" />}>Sign in</Button>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
declare function Button({ className, variant, size, ...props }: ButtonProps): JSX.Element;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Props for the Button component.
|
|
41
|
+
* Combines Base UI Button props with variant styling options.
|
|
42
|
+
*/
|
|
43
|
+
declare type ButtonProps = Button_2.Props & VariantProps<typeof buttonVariants>;
|
|
44
|
+
|
|
45
|
+
declare const buttonVariants: (props?: ({
|
|
46
|
+
variant?: "link" | "default" | "outline" | "success" | "destructive" | "info" | "primary" | "secondary" | "ghost" | "warning" | null | undefined;
|
|
47
|
+
size?: "default" | "icon" | "sm" | "lg" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
48
|
+
} & ClassProp) | undefined) => string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Text input field with support for all HTML input types.
|
|
52
|
+
*
|
|
53
|
+
* Supports text, email, password, number, tel, url, search, date, time, file, and other input types.
|
|
54
|
+
* Includes built-in validation styling via `aria-invalid` attribute.
|
|
55
|
+
*/
|
|
56
|
+
declare function Input({ className, type, ...props }: InputProps): JSX.Element;
|
|
57
|
+
|
|
58
|
+
declare type InputProps = React_2.ComponentProps<"input">;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Visual divider for separating content sections.
|
|
62
|
+
* Supports both horizontal (default) and vertical orientations.
|
|
63
|
+
*/
|
|
64
|
+
declare function Separator({ className, orientation, ...props }: SeparatorProps): JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare type SeparatorProps = Separator_2.Props;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Sidebar container with responsive behavior. Renders as Sheet on mobile.
|
|
70
|
+
* Use with SidebarProvider for state management.
|
|
71
|
+
*/
|
|
72
|
+
export declare function Sidebar({ side, variant, collapsible, className, children, ...props }: SidebarProps): JSX.Element;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Scrollable main content area of sidebar. Contains SidebarGroup components.
|
|
76
|
+
*/
|
|
77
|
+
export declare function SidebarContent({ className, ...props }: SidebarContentProps): JSX.Element;
|
|
78
|
+
|
|
79
|
+
export declare type SidebarContentProps = React_2.ComponentProps<"div">;
|
|
80
|
+
|
|
81
|
+
declare type SidebarContextProps = {
|
|
82
|
+
state: "expanded" | "collapsed";
|
|
83
|
+
open: boolean;
|
|
84
|
+
setOpen: (open: boolean) => void;
|
|
85
|
+
openMobile: boolean;
|
|
86
|
+
setOpenMobile: (open: boolean) => void;
|
|
87
|
+
isMobile: boolean;
|
|
88
|
+
toggleSidebar: () => void;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Bottom section of sidebar for user profile, settings, or secondary actions.
|
|
93
|
+
*/
|
|
94
|
+
export declare function SidebarFooter({ className, ...props }: SidebarFooterProps): JSX.Element;
|
|
95
|
+
|
|
96
|
+
export declare type SidebarFooterProps = React_2.ComponentProps<"div">;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Container for grouped menu items with optional label.
|
|
100
|
+
*/
|
|
101
|
+
export declare function SidebarGroup({ className, ...props }: SidebarGroupProps): JSX.Element;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Action button displayed in top-right of group (e.g., add, expand all).
|
|
105
|
+
*/
|
|
106
|
+
export declare function SidebarGroupAction({ className, render, ...props }: SidebarGroupActionProps): React_2.ReactElement<unknown, string | React_2.JSXElementConstructor<any>>;
|
|
107
|
+
|
|
108
|
+
export declare type SidebarGroupActionProps = useRender.ComponentProps<"button"> & React_2.ComponentProps<"button">;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Container for menu items within a group.
|
|
112
|
+
*/
|
|
113
|
+
export declare function SidebarGroupContent({ className, ...props }: SidebarGroupContentProps): JSX.Element;
|
|
114
|
+
|
|
115
|
+
export declare type SidebarGroupContentProps = React_2.ComponentProps<"div">;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Label heading for a sidebar group. Fades out when sidebar collapses to icon mode.
|
|
119
|
+
*/
|
|
120
|
+
export declare function SidebarGroupLabel({ className, render, ...props }: SidebarGroupLabelProps): React_2.ReactElement<unknown, string | React_2.JSXElementConstructor<any>>;
|
|
121
|
+
|
|
122
|
+
export declare type SidebarGroupLabelProps = useRender.ComponentProps<"div"> & React_2.ComponentProps<"div">;
|
|
123
|
+
|
|
124
|
+
export declare type SidebarGroupProps = React_2.ComponentProps<"div">;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Top section of sidebar for branding, app switcher, or global actions.
|
|
128
|
+
*/
|
|
129
|
+
export declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): JSX.Element;
|
|
130
|
+
|
|
131
|
+
export declare type SidebarHeaderProps = React_2.ComponentProps<"div">;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Styled input for sidebar search/filter functionality.
|
|
135
|
+
*/
|
|
136
|
+
export declare function SidebarInput({ className, ...props }: SidebarInputProps): JSX.Element;
|
|
137
|
+
|
|
138
|
+
export declare type SidebarInputProps = React_2.ComponentProps<typeof Input>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Main content area that sits beside the sidebar. Automatically adjusts margins based on sidebar state.
|
|
142
|
+
*/
|
|
143
|
+
export declare function SidebarInset({ className, ...props }: SidebarInsetProps): JSX.Element;
|
|
144
|
+
|
|
145
|
+
export declare type SidebarInsetProps = React_2.ComponentProps<"main">;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Unordered list container for sidebar menu items.
|
|
149
|
+
*/
|
|
150
|
+
export declare function SidebarMenu({ className, ...props }: SidebarMenuProps): JSX.Element;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Secondary action button for menu item (e.g., delete, edit). Positioned on right side.
|
|
154
|
+
*/
|
|
155
|
+
export declare function SidebarMenuAction({ className, render, showOnHover, ...props }: SidebarMenuActionProps): React_2.ReactElement<unknown, string | React_2.JSXElementConstructor<any>>;
|
|
156
|
+
|
|
157
|
+
export declare type SidebarMenuActionProps = useRender.ComponentProps<"button"> & React_2.ComponentProps<"button"> & {
|
|
158
|
+
/** Only show on hover/focus. @default false */
|
|
159
|
+
showOnHover?: boolean;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Badge/counter displayed on right side of menu item (e.g., notification count).
|
|
164
|
+
*/
|
|
165
|
+
export declare function SidebarMenuBadge({ className, ...props }: SidebarMenuBadgeProps): JSX.Element;
|
|
166
|
+
|
|
167
|
+
export declare type SidebarMenuBadgeProps = React_2.ComponentProps<"div">;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Clickable button for sidebar menu item. Supports variants, sizes, active state, and tooltips.
|
|
171
|
+
*/
|
|
172
|
+
export declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: SidebarMenuButtonProps): JSX.Element;
|
|
173
|
+
|
|
174
|
+
export declare type SidebarMenuButtonProps = useRender.ComponentProps<"button"> & React_2.ComponentProps<"button"> & {
|
|
175
|
+
/** Mark as active/current page. */
|
|
176
|
+
isActive?: boolean;
|
|
177
|
+
/** Tooltip content shown when sidebar is collapsed. */
|
|
178
|
+
tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
|
|
179
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>;
|
|
180
|
+
|
|
181
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
182
|
+
variant?: "default" | "outline" | null | undefined;
|
|
183
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
184
|
+
} & ClassProp) | undefined) => string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* List item wrapper for a single menu entry.
|
|
188
|
+
*/
|
|
189
|
+
export declare function SidebarMenuItem({ className, ...props }: SidebarMenuItemProps): JSX.Element;
|
|
190
|
+
|
|
191
|
+
export declare type SidebarMenuItemProps = React_2.ComponentProps<"li">;
|
|
192
|
+
|
|
193
|
+
export declare type SidebarMenuProps = React_2.ComponentProps<"ul">;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Loading skeleton placeholder for menu item with randomized width.
|
|
197
|
+
*/
|
|
198
|
+
export declare function SidebarMenuSkeleton({ className, showIcon, ...props }: SidebarMenuSkeletonProps): JSX.Element;
|
|
199
|
+
|
|
200
|
+
export declare type SidebarMenuSkeletonProps = React_2.ComponentProps<"div"> & {
|
|
201
|
+
/** Show icon skeleton. @default false */
|
|
202
|
+
showIcon?: boolean;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Nested submenu list with indented border. Place inside SidebarMenuItem.
|
|
207
|
+
*/
|
|
208
|
+
export declare function SidebarMenuSub({ className, ...props }: SidebarMenuSubProps): JSX.Element;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Link button for submenu item. Defaults to anchor tag.
|
|
212
|
+
*/
|
|
213
|
+
export declare function SidebarMenuSubButton({ render, size, isActive, className, ...props }: SidebarMenuSubButtonProps): React_2.ReactElement<unknown, string | React_2.JSXElementConstructor<any>>;
|
|
214
|
+
|
|
215
|
+
export declare type SidebarMenuSubButtonProps = useRender.ComponentProps<"a"> & React_2.ComponentProps<"a"> & {
|
|
216
|
+
/** Size variant. @default "md" */
|
|
217
|
+
size?: "sm" | "md";
|
|
218
|
+
/** Mark as active/current page. */
|
|
219
|
+
isActive?: boolean;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* List item wrapper for submenu entry.
|
|
224
|
+
*/
|
|
225
|
+
export declare function SidebarMenuSubItem({ className, ...props }: SidebarMenuSubItemProps): JSX.Element;
|
|
226
|
+
|
|
227
|
+
export declare type SidebarMenuSubItemProps = React_2.ComponentProps<"li">;
|
|
228
|
+
|
|
229
|
+
export declare type SidebarMenuSubProps = React_2.ComponentProps<"ul">;
|
|
230
|
+
|
|
231
|
+
export declare type SidebarProps = React_2.ComponentProps<"div"> & {
|
|
232
|
+
/** Which side to display sidebar. @default "left" */
|
|
233
|
+
side?: "left" | "right";
|
|
234
|
+
variant?: "sidebar" | "floating" | "inset" | "fixed";
|
|
235
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Root provider for sidebar with state management, keyboard shortcuts (⌘B), and mobile detection.
|
|
240
|
+
* Manages collapsed/expanded state and persists preference in cookie.
|
|
241
|
+
*/
|
|
242
|
+
export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: SidebarProviderProps): JSX.Element;
|
|
243
|
+
|
|
244
|
+
export declare type SidebarProviderProps = React_2.ComponentProps<"div"> & {
|
|
245
|
+
/** Initial open state on desktop. @default true */
|
|
246
|
+
defaultOpen?: boolean;
|
|
247
|
+
/** Controlled open state for desktop. */
|
|
248
|
+
open?: boolean;
|
|
249
|
+
/** Callback when open state changes. Persists state in cookie. */
|
|
250
|
+
onOpenChange?: (open: boolean) => void;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Invisible rail element on sidebar edge for drag-to-resize interaction.
|
|
255
|
+
*/
|
|
256
|
+
export declare function SidebarRail({ className, ...props }: SidebarRailProps): JSX.Element;
|
|
257
|
+
|
|
258
|
+
export declare type SidebarRailProps = React_2.ComponentProps<"button">;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Horizontal divider between sidebar sections.
|
|
262
|
+
*/
|
|
263
|
+
export declare function SidebarSeparator({ className, ...props }: SidebarSeparatorProps): JSX.Element;
|
|
264
|
+
|
|
265
|
+
export declare type SidebarSeparatorProps = React_2.ComponentProps<typeof Separator>;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Button to toggle sidebar open/closed. Shows hamburger icon.
|
|
269
|
+
*/
|
|
270
|
+
export declare function SidebarTrigger({ className, onClick, ...props }: SidebarTriggerProps): JSX.Element;
|
|
271
|
+
|
|
272
|
+
export declare type SidebarTriggerProps = React_2.ComponentProps<typeof Button>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Tooltip content popup with automatic portal, positioning, and arrow.
|
|
276
|
+
* Includes smooth animations and collision detection.
|
|
277
|
+
*/
|
|
278
|
+
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipContentProps): JSX.Element;
|
|
279
|
+
|
|
280
|
+
declare type TooltipContentProps = Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Hook to access sidebar context including state, mobile state, and toggle functions.
|
|
284
|
+
* Must be used within SidebarProvider.
|
|
285
|
+
*/
|
|
286
|
+
export declare function useSidebar(): SidebarContextProps;
|
|
287
|
+
|
|
288
|
+
export { }
|