@me1a/ui 2.2.1 → 2.2.2
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/atoms/accordion.d.mts +94 -0
- package/dist/atoms/accordion.d.ts +94 -0
- package/dist/atoms/accordion.js +2 -0
- package/dist/atoms/accordion.js.map +1 -0
- package/dist/atoms/accordion.mjs +2 -0
- package/dist/atoms/accordion.mjs.map +1 -0
- package/dist/atoms/avatar.d.mts +34 -0
- package/dist/atoms/avatar.d.ts +34 -0
- package/dist/atoms/avatar.js +2 -0
- package/dist/atoms/avatar.js.map +1 -0
- package/dist/atoms/avatar.mjs +2 -0
- package/dist/atoms/avatar.mjs.map +1 -0
- package/dist/atoms/badge.d.mts +40 -0
- package/dist/atoms/badge.d.ts +40 -0
- package/dist/atoms/badge.js +2 -0
- package/dist/atoms/badge.js.map +1 -0
- package/dist/atoms/badge.mjs +2 -0
- package/dist/atoms/badge.mjs.map +1 -0
- package/dist/atoms/box.d.mts +50 -0
- package/dist/atoms/box.d.ts +50 -0
- package/dist/atoms/box.js +2 -0
- package/dist/atoms/box.js.map +1 -0
- package/dist/atoms/box.mjs +2 -0
- package/dist/atoms/box.mjs.map +1 -0
- package/dist/atoms/breadcrumb.d.mts +35 -0
- package/dist/atoms/breadcrumb.d.ts +35 -0
- package/dist/atoms/breadcrumb.js +2 -0
- package/dist/atoms/breadcrumb.js.map +1 -0
- package/dist/atoms/breadcrumb.mjs +2 -0
- package/dist/atoms/breadcrumb.mjs.map +1 -0
- package/dist/{tooltip-B4jzaurK.d.mts → atoms/button.d.mts} +1 -23
- package/dist/{tooltip-B4jzaurK.d.ts → atoms/button.d.ts} +1 -23
- package/dist/atoms/button.js +2 -0
- package/dist/atoms/button.js.map +1 -0
- package/dist/atoms/button.mjs +2 -0
- package/dist/atoms/button.mjs.map +1 -0
- package/dist/atoms/checkbox.d.mts +21 -0
- package/dist/atoms/checkbox.d.ts +21 -0
- package/dist/atoms/checkbox.js +2 -0
- package/dist/atoms/checkbox.js.map +1 -0
- package/dist/atoms/checkbox.mjs +2 -0
- package/dist/atoms/checkbox.mjs.map +1 -0
- package/dist/atoms/collapsible.d.mts +26 -0
- package/dist/atoms/collapsible.d.ts +26 -0
- package/dist/atoms/collapsible.js +2 -0
- package/dist/atoms/collapsible.js.map +1 -0
- package/dist/atoms/collapsible.mjs +2 -0
- package/dist/atoms/collapsible.mjs.map +1 -0
- package/dist/atoms/command.d.mts +122 -0
- package/dist/atoms/command.d.ts +122 -0
- package/dist/atoms/command.js +2 -0
- package/dist/atoms/command.js.map +1 -0
- package/dist/atoms/command.mjs +2 -0
- package/dist/atoms/command.mjs.map +1 -0
- package/dist/atoms/container.js +2 -0
- package/dist/atoms/container.js.map +1 -0
- package/dist/atoms/container.mjs +2 -0
- package/dist/atoms/container.mjs.map +1 -0
- package/dist/atoms/dialog.d.mts +35 -0
- package/dist/atoms/dialog.d.ts +35 -0
- package/dist/atoms/dialog.js +2 -0
- package/dist/atoms/dialog.js.map +1 -0
- package/dist/atoms/dialog.mjs +2 -0
- package/dist/atoms/dialog.mjs.map +1 -0
- package/dist/atoms/input.d.mts +12 -0
- package/dist/atoms/input.d.ts +12 -0
- package/dist/atoms/input.js +2 -0
- package/dist/atoms/input.js.map +1 -0
- package/dist/atoms/input.mjs +2 -0
- package/dist/atoms/input.mjs.map +1 -0
- package/dist/atoms/label.d.mts +18 -0
- package/dist/atoms/label.d.ts +18 -0
- package/dist/atoms/label.js +2 -0
- package/dist/atoms/label.js.map +1 -0
- package/dist/atoms/label.mjs +2 -0
- package/dist/atoms/label.mjs.map +1 -0
- package/dist/atoms/page-loader.d.mts +29 -0
- package/dist/atoms/page-loader.d.ts +29 -0
- package/dist/atoms/page-loader.js +2 -0
- package/dist/atoms/page-loader.js.map +1 -0
- package/dist/atoms/page-loader.mjs +2 -0
- package/dist/atoms/page-loader.mjs.map +1 -0
- package/dist/atoms/pagination.d.mts +105 -0
- package/dist/atoms/pagination.d.ts +105 -0
- package/dist/atoms/pagination.js +2 -0
- package/dist/atoms/pagination.js.map +1 -0
- package/dist/atoms/pagination.mjs +2 -0
- package/dist/atoms/pagination.mjs.map +1 -0
- package/dist/atoms/popover.d.mts +30 -0
- package/dist/atoms/popover.d.ts +30 -0
- package/dist/atoms/popover.js +2 -0
- package/dist/atoms/popover.js.map +1 -0
- package/dist/atoms/popover.mjs +2 -0
- package/dist/atoms/popover.mjs.map +1 -0
- package/dist/{checkbox-DxgDKaHx.d.mts → atoms/radio-group.d.mts} +4 -50
- package/dist/{checkbox-DxgDKaHx.d.ts → atoms/radio-group.d.ts} +4 -50
- package/dist/atoms/radio-group.js +2 -0
- package/dist/atoms/radio-group.js.map +1 -0
- package/dist/atoms/radio-group.mjs +2 -0
- package/dist/atoms/radio-group.mjs.map +1 -0
- package/dist/atoms/resizable.d.mts +53 -0
- package/dist/atoms/resizable.d.ts +53 -0
- package/dist/atoms/resizable.js +2 -0
- package/dist/atoms/resizable.js.map +1 -0
- package/dist/atoms/resizable.mjs +2 -0
- package/dist/atoms/resizable.mjs.map +1 -0
- package/dist/atoms/separator.d.mts +13 -0
- package/dist/atoms/separator.d.ts +13 -0
- package/dist/atoms/separator.js +2 -0
- package/dist/atoms/separator.js.map +1 -0
- package/dist/atoms/separator.mjs +2 -0
- package/dist/atoms/separator.mjs.map +1 -0
- package/dist/atoms/sheet.d.mts +42 -0
- package/dist/atoms/sheet.d.ts +42 -0
- package/dist/atoms/sheet.js +2 -0
- package/dist/atoms/sheet.js.map +1 -0
- package/dist/atoms/sheet.mjs +2 -0
- package/dist/atoms/sheet.mjs.map +1 -0
- package/dist/atoms/skeleton.js +2 -0
- package/dist/atoms/skeleton.js.map +1 -0
- package/dist/atoms/skeleton.mjs +2 -0
- package/dist/atoms/skeleton.mjs.map +1 -0
- package/dist/atoms/stack.d.mts +121 -0
- package/dist/atoms/stack.d.ts +121 -0
- package/dist/atoms/stack.js +2 -0
- package/dist/atoms/stack.js.map +1 -0
- package/dist/atoms/stack.mjs +2 -0
- package/dist/atoms/stack.mjs.map +1 -0
- package/dist/atoms/switch.d.mts +21 -0
- package/dist/atoms/switch.d.ts +21 -0
- package/dist/atoms/switch.js +2 -0
- package/dist/atoms/switch.js.map +1 -0
- package/dist/atoms/switch.mjs +2 -0
- package/dist/atoms/switch.mjs.map +1 -0
- package/dist/atoms/table.d.mts +53 -0
- package/dist/atoms/table.d.ts +53 -0
- package/dist/atoms/table.js +2 -0
- package/dist/atoms/table.js.map +1 -0
- package/dist/atoms/table.mjs +2 -0
- package/dist/atoms/table.mjs.map +1 -0
- package/dist/atoms/text-field.d.mts +65 -0
- package/dist/atoms/text-field.d.ts +65 -0
- package/dist/atoms/text-field.js +2 -0
- package/dist/atoms/text-field.js.map +1 -0
- package/dist/atoms/text-field.mjs +2 -0
- package/dist/atoms/text-field.mjs.map +1 -0
- package/dist/atoms/textarea.js +2 -0
- package/dist/atoms/textarea.js.map +1 -0
- package/dist/atoms/textarea.mjs +2 -0
- package/dist/atoms/textarea.mjs.map +1 -0
- package/dist/{toast-2xT7L1tJ.d.mts → atoms/toast.d.mts} +1 -1
- package/dist/{toast-2xT7L1tJ.d.ts → atoms/toast.d.ts} +1 -1
- package/dist/atoms/toast.js +2 -0
- package/dist/atoms/toast.js.map +1 -0
- package/dist/atoms/toast.mjs +2 -0
- package/dist/atoms/toast.mjs.map +1 -0
- package/dist/atoms/toaster.d.mts +26 -0
- package/dist/atoms/toaster.d.ts +26 -0
- package/dist/atoms/toaster.js +2 -0
- package/dist/atoms/toaster.js.map +1 -0
- package/dist/atoms/toaster.mjs +2 -0
- package/dist/atoms/toaster.mjs.map +1 -0
- package/dist/atoms/tooltip.d.mts +25 -0
- package/dist/atoms/tooltip.d.ts +25 -0
- package/dist/atoms/tooltip.js +2 -0
- package/dist/atoms/tooltip.js.map +1 -0
- package/dist/atoms/tooltip.mjs +2 -0
- package/dist/atoms/tooltip.mjs.map +1 -0
- package/dist/atoms/typography.d.mts +24 -0
- package/dist/atoms/typography.d.ts +24 -0
- package/dist/atoms/typography.js +2 -0
- package/dist/atoms/typography.js.map +1 -0
- package/dist/atoms/typography.mjs +2 -0
- package/dist/atoms/typography.mjs.map +1 -0
- package/dist/atoms.d.mts +213 -27
- package/dist/atoms.d.ts +213 -27
- package/dist/atoms.js +2 -0
- package/dist/atoms.js.map +1 -0
- package/dist/atoms.mjs +2 -0
- package/dist/atoms.mjs.map +1 -0
- package/dist/hooks.d.mts +10 -4
- package/dist/hooks.d.ts +10 -4
- package/dist/hooks.js +2 -0
- package/dist/hooks.js.map +1 -0
- package/dist/hooks.mjs +2 -0
- package/dist/hooks.mjs.map +1 -0
- package/dist/index.d.mts +2619 -30
- package/dist/index.d.ts +2619 -30
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/molecules/card.d.mts +72 -0
- package/dist/molecules/card.d.ts +72 -0
- package/dist/molecules/card.js +2 -0
- package/dist/molecules/card.js.map +1 -0
- package/dist/molecules/card.mjs +2 -0
- package/dist/molecules/card.mjs.map +1 -0
- package/dist/molecules/navigation-menu.d.mts +103 -0
- package/dist/molecules/navigation-menu.d.ts +103 -0
- package/dist/molecules/navigation-menu.js +2 -0
- package/dist/molecules/navigation-menu.js.map +1 -0
- package/dist/molecules/navigation-menu.mjs +2 -0
- package/dist/molecules/navigation-menu.mjs.map +1 -0
- package/dist/molecules/tabs.d.mts +32 -0
- package/dist/molecules/tabs.d.ts +32 -0
- package/dist/molecules/tabs.js +2 -0
- package/dist/molecules/tabs.js.map +1 -0
- package/dist/molecules/tabs.mjs +2 -0
- package/dist/molecules/tabs.mjs.map +1 -0
- package/dist/molecules.d.mts +1 -1
- package/dist/molecules.d.ts +1 -1
- package/dist/molecules.js +2 -0
- package/dist/molecules.js.map +1 -0
- package/dist/molecules.mjs +2 -0
- package/dist/molecules.mjs.map +1 -0
- package/dist/organisms/drawer.d.mts +63 -0
- package/dist/organisms/drawer.d.ts +63 -0
- package/dist/organisms/drawer.js +2 -0
- package/dist/organisms/drawer.js.map +1 -0
- package/dist/organisms/drawer.mjs +2 -0
- package/dist/organisms/drawer.mjs.map +1 -0
- package/dist/organisms/dropdown-menu.d.mts +335 -0
- package/dist/organisms/dropdown-menu.d.ts +335 -0
- package/dist/organisms/dropdown-menu.js +2 -0
- package/dist/organisms/dropdown-menu.js.map +1 -0
- package/dist/organisms/dropdown-menu.mjs +2 -0
- package/dist/organisms/dropdown-menu.mjs.map +1 -0
- package/dist/organisms/sidebar.d.mts +328 -0
- package/dist/organisms/sidebar.d.ts +328 -0
- package/dist/organisms/sidebar.js +2 -0
- package/dist/organisms/sidebar.js.map +1 -0
- package/dist/organisms/sidebar.mjs +2 -0
- package/dist/organisms/sidebar.mjs.map +1 -0
- package/dist/organisms.d.mts +56 -12
- package/dist/organisms.d.ts +56 -12
- package/dist/organisms.js +2 -0
- package/dist/organisms.js.map +1 -0
- package/dist/organisms.mjs +2 -0
- package/dist/organisms.mjs.map +1 -0
- package/dist/rhf/form.d.mts +96 -0
- package/dist/rhf/form.d.ts +96 -0
- package/dist/rhf/form.js +2 -0
- package/dist/rhf/form.js.map +1 -0
- package/dist/rhf/form.mjs +2 -0
- package/dist/rhf/form.mjs.map +1 -0
- package/dist/rhf/rhf-checkbox.d.mts +57 -0
- package/dist/rhf/rhf-checkbox.d.ts +57 -0
- package/dist/rhf/rhf-checkbox.js +2 -0
- package/dist/rhf/rhf-checkbox.js.map +1 -0
- package/dist/rhf/rhf-checkbox.mjs +2 -0
- package/dist/rhf/rhf-checkbox.mjs.map +1 -0
- package/dist/rhf/rhf-multi-select.d.mts +84 -0
- package/dist/rhf/rhf-multi-select.d.ts +84 -0
- package/dist/rhf/rhf-multi-select.js +2 -0
- package/dist/rhf/rhf-multi-select.js.map +1 -0
- package/dist/rhf/rhf-multi-select.mjs +2 -0
- package/dist/rhf/rhf-multi-select.mjs.map +1 -0
- package/dist/rhf/rhf-radio-button-group.d.mts +73 -0
- package/dist/rhf/rhf-radio-button-group.d.ts +73 -0
- package/dist/rhf/rhf-radio-button-group.js +2 -0
- package/dist/rhf/rhf-radio-button-group.js.map +1 -0
- package/dist/rhf/rhf-radio-button-group.mjs +2 -0
- package/dist/rhf/rhf-radio-button-group.mjs.map +1 -0
- package/dist/rhf/rhf-radio-group.d.mts +103 -0
- package/dist/rhf/rhf-radio-group.d.ts +103 -0
- package/dist/rhf/rhf-radio-group.js +2 -0
- package/dist/rhf/rhf-radio-group.js.map +1 -0
- package/dist/rhf/rhf-radio-group.mjs +2 -0
- package/dist/rhf/rhf-radio-group.mjs.map +1 -0
- package/dist/rhf/rhf-select.d.mts +80 -0
- package/dist/rhf/rhf-select.d.ts +80 -0
- package/dist/rhf/rhf-select.js +2 -0
- package/dist/rhf/rhf-select.js.map +1 -0
- package/dist/rhf/rhf-select.mjs +2 -0
- package/dist/rhf/rhf-select.mjs.map +1 -0
- package/dist/rhf/rhf-switch.d.mts +57 -0
- package/dist/rhf/rhf-switch.d.ts +57 -0
- package/dist/rhf/rhf-switch.js +2 -0
- package/dist/rhf/rhf-switch.js.map +1 -0
- package/dist/rhf/rhf-switch.mjs +2 -0
- package/dist/rhf/rhf-switch.mjs.map +1 -0
- package/dist/rhf/rhf-textarea.d.mts +66 -0
- package/dist/rhf/rhf-textarea.d.ts +66 -0
- package/dist/rhf/rhf-textarea.js +2 -0
- package/dist/rhf/rhf-textarea.js.map +1 -0
- package/dist/rhf/rhf-textarea.mjs +2 -0
- package/dist/rhf/rhf-textarea.mjs.map +1 -0
- package/dist/rhf.d.mts +213 -7
- package/dist/rhf.d.ts +213 -7
- package/dist/rhf.js +2 -0
- package/dist/rhf.js.map +1 -0
- package/dist/rhf.mjs +2 -0
- package/dist/rhf.mjs.map +1 -0
- package/dist/types.js +2 -0
- package/dist/{types.cjs.js.map → types.js.map} +1 -1
- package/dist/types.mjs +2 -0
- package/dist/{types.esm.js.map → types.mjs.map} +1 -1
- package/dist/{chunk-SL2ZUI4G.cjs.js → utils.js} +2 -2
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +2 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +241 -15
- package/dist/atoms.cjs.js +0 -2
- package/dist/atoms.cjs.js.map +0 -1
- package/dist/atoms.esm.js +0 -2
- package/dist/atoms.esm.js.map +0 -1
- package/dist/chunk-23T2PH5G.esm.js +0 -2
- package/dist/chunk-23T2PH5G.esm.js.map +0 -1
- package/dist/chunk-2QG3QTSW.cjs.js +0 -2
- package/dist/chunk-2QG3QTSW.cjs.js.map +0 -1
- package/dist/chunk-C26U3FL4.esm.js +0 -2
- package/dist/chunk-C26U3FL4.esm.js.map +0 -1
- package/dist/chunk-DTM5LZHM.cjs.js +0 -2
- package/dist/chunk-DTM5LZHM.cjs.js.map +0 -1
- package/dist/chunk-HW32JE75.cjs.js +0 -2
- package/dist/chunk-HW32JE75.cjs.js.map +0 -1
- package/dist/chunk-JIRS6MWF.cjs.js +0 -2
- package/dist/chunk-JIRS6MWF.cjs.js.map +0 -1
- package/dist/chunk-JKTYFZ5M.esm.js +0 -2
- package/dist/chunk-JKTYFZ5M.esm.js.map +0 -1
- package/dist/chunk-JUZG25DH.esm.js +0 -2
- package/dist/chunk-JUZG25DH.esm.js.map +0 -1
- package/dist/chunk-KOYJODOP.cjs.js +0 -2
- package/dist/chunk-KOYJODOP.cjs.js.map +0 -1
- package/dist/chunk-M4S5YZ56.esm.js +0 -2
- package/dist/chunk-M4S5YZ56.esm.js.map +0 -1
- package/dist/chunk-MOYOCJW6.esm.js +0 -2
- package/dist/chunk-MOYOCJW6.esm.js.map +0 -1
- package/dist/chunk-MVWMLXLL.cjs.js +0 -2
- package/dist/chunk-MVWMLXLL.cjs.js.map +0 -1
- package/dist/chunk-SL2ZUI4G.cjs.js.map +0 -1
- package/dist/chunk-STRDPP3B.esm.js +0 -2
- package/dist/chunk-STRDPP3B.esm.js.map +0 -1
- package/dist/chunk-U4NMIMU7.esm.js +0 -2
- package/dist/chunk-U4NMIMU7.esm.js.map +0 -1
- package/dist/chunk-UK47BFA3.cjs.js +0 -2
- package/dist/chunk-UK47BFA3.cjs.js.map +0 -1
- package/dist/chunk-UTVXFZLD.esm.js +0 -2
- package/dist/chunk-UTVXFZLD.esm.js.map +0 -1
- package/dist/chunk-WJNYKJP6.cjs.js +0 -2
- package/dist/chunk-WJNYKJP6.cjs.js.map +0 -1
- package/dist/chunk-YEZB7AOJ.esm.js +0 -2
- package/dist/chunk-YEZB7AOJ.esm.js.map +0 -1
- package/dist/chunk-YGLYFSF6.cjs.js +0 -2
- package/dist/chunk-YGLYFSF6.cjs.js.map +0 -1
- package/dist/hooks.cjs.js +0 -2
- package/dist/hooks.cjs.js.map +0 -1
- package/dist/hooks.esm.js +0 -2
- package/dist/hooks.esm.js.map +0 -1
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +0 -1
- package/dist/molecules.cjs.js +0 -2
- package/dist/molecules.cjs.js.map +0 -1
- package/dist/molecules.esm.js +0 -2
- package/dist/molecules.esm.js.map +0 -1
- package/dist/organisms.cjs.js +0 -2
- package/dist/organisms.cjs.js.map +0 -1
- package/dist/organisms.esm.js +0 -2
- package/dist/organisms.esm.js.map +0 -1
- package/dist/rhf.cjs.js +0 -2
- package/dist/rhf.cjs.js.map +0 -1
- package/dist/rhf.esm.js +0 -2
- package/dist/rhf.esm.js.map +0 -1
- package/dist/types.cjs.js +0 -2
- package/dist/types.d.mts +0 -2
- package/dist/types.d.ts +0 -2
- package/dist/types.esm.js +0 -2
- package/dist/utils.cjs.js +0 -2
- package/dist/utils.cjs.js.map +0 -1
- package/dist/utils.d.mts +0 -5
- package/dist/utils.d.ts +0 -5
- package/dist/utils.esm.js +0 -2
- package/dist/utils.esm.js.map +0 -1
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* DropdownMenu component for creating accessible dropdown menus.
|
|
9
|
+
* Built on top of Radix UI's DropdownMenu primitive.
|
|
10
|
+
*
|
|
11
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/organisms-dropdown-menu--docs
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <DropdownMenu>
|
|
16
|
+
* <DropdownMenuTrigger>Open Menu</DropdownMenuTrigger>
|
|
17
|
+
* <DropdownMenuContent>
|
|
18
|
+
* <DropdownMenuItem>Item 1</DropdownMenuItem>
|
|
19
|
+
* <DropdownMenuItem>Item 2</DropdownMenuItem>
|
|
20
|
+
* <DropdownMenuItem>Item 3</DropdownMenuItem>
|
|
21
|
+
* </DropdownMenuContent>
|
|
22
|
+
* </DropdownMenu>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
26
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
29
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
30
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
|
+
inset?: boolean;
|
|
33
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
37
|
+
inset?: boolean;
|
|
38
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
42
|
+
inset?: boolean;
|
|
43
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
declare const DropdownMenuShortcut: {
|
|
46
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
declare const dropdownMenuTriggerStyle: (props?: ({
|
|
51
|
+
variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
|
|
52
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
53
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
54
|
+
|
|
55
|
+
type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
|
|
56
|
+
interface DropdownMenuProps {
|
|
57
|
+
/**
|
|
58
|
+
* The content of the dropdown menu
|
|
59
|
+
*/
|
|
60
|
+
children: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* The open state of the dropdown menu
|
|
63
|
+
*/
|
|
64
|
+
open?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The default open state of the dropdown menu
|
|
67
|
+
*/
|
|
68
|
+
defaultOpen?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The controlled open state of the dropdown menu
|
|
71
|
+
*/
|
|
72
|
+
onOpenChange?: (open: boolean) => void;
|
|
73
|
+
/**
|
|
74
|
+
* The modal state of the dropdown menu
|
|
75
|
+
*/
|
|
76
|
+
modal?: boolean;
|
|
77
|
+
}
|
|
78
|
+
interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, DropdownMenuTriggerVariants {
|
|
79
|
+
/**
|
|
80
|
+
* The content of the trigger
|
|
81
|
+
*/
|
|
82
|
+
children: React.ReactNode;
|
|
83
|
+
/**
|
|
84
|
+
* The variant of the trigger
|
|
85
|
+
*/
|
|
86
|
+
variant?: DropdownMenuTriggerVariants["variant"];
|
|
87
|
+
/**
|
|
88
|
+
* The size of the trigger
|
|
89
|
+
*/
|
|
90
|
+
size?: DropdownMenuTriggerVariants["size"];
|
|
91
|
+
}
|
|
92
|
+
interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
93
|
+
/**
|
|
94
|
+
* The content of the dropdown menu
|
|
95
|
+
*/
|
|
96
|
+
children: React.ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
* The side offset of the dropdown menu
|
|
99
|
+
*/
|
|
100
|
+
sideOffset?: number;
|
|
101
|
+
/**
|
|
102
|
+
* The align offset of the dropdown menu
|
|
103
|
+
*/
|
|
104
|
+
alignOffset?: number;
|
|
105
|
+
/**
|
|
106
|
+
* The side of the dropdown menu
|
|
107
|
+
*/
|
|
108
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
109
|
+
/**
|
|
110
|
+
* The alignment of the dropdown menu
|
|
111
|
+
*/
|
|
112
|
+
align?: "start" | "center" | "end";
|
|
113
|
+
/**
|
|
114
|
+
* The collision padding of the dropdown menu
|
|
115
|
+
*/
|
|
116
|
+
collisionPadding?: number;
|
|
117
|
+
/**
|
|
118
|
+
* The collision boundary of the dropdown menu
|
|
119
|
+
*/
|
|
120
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
121
|
+
/**
|
|
122
|
+
* The arrow padding of the dropdown menu
|
|
123
|
+
*/
|
|
124
|
+
arrowPadding?: number;
|
|
125
|
+
/**
|
|
126
|
+
* The sticky state of the dropdown menu
|
|
127
|
+
*/
|
|
128
|
+
sticky?: "partial" | "always";
|
|
129
|
+
/**
|
|
130
|
+
* The hide when detached state of the dropdown menu
|
|
131
|
+
*/
|
|
132
|
+
hideWhenDetached?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* The update position strategy of the dropdown menu
|
|
135
|
+
*/
|
|
136
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
137
|
+
/**
|
|
138
|
+
* The force mount state of the dropdown menu
|
|
139
|
+
*/
|
|
140
|
+
forceMount?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* The container of the dropdown menu
|
|
143
|
+
*/
|
|
144
|
+
container?: HTMLElement;
|
|
145
|
+
}
|
|
146
|
+
interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
147
|
+
/**
|
|
148
|
+
* The content of the dropdown menu item
|
|
149
|
+
*/
|
|
150
|
+
children: React.ReactNode;
|
|
151
|
+
/**
|
|
152
|
+
* The inset state of the dropdown menu item
|
|
153
|
+
*/
|
|
154
|
+
inset?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* The disabled state of the dropdown menu item
|
|
157
|
+
*/
|
|
158
|
+
disabled?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* The selected state of the dropdown menu item
|
|
161
|
+
*/
|
|
162
|
+
selected?: boolean;
|
|
163
|
+
}
|
|
164
|
+
interface DropdownMenuCheckboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
165
|
+
/**
|
|
166
|
+
* The content of the dropdown menu checkbox item
|
|
167
|
+
*/
|
|
168
|
+
children: React.ReactNode;
|
|
169
|
+
/**
|
|
170
|
+
* The checked state of the dropdown menu checkbox item
|
|
171
|
+
*/
|
|
172
|
+
checked?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* The disabled state of the dropdown menu checkbox item
|
|
175
|
+
*/
|
|
176
|
+
disabled?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* The on checked change handler of the dropdown menu checkbox item
|
|
179
|
+
*/
|
|
180
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
181
|
+
}
|
|
182
|
+
interface DropdownMenuRadioItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
183
|
+
/**
|
|
184
|
+
* The content of the dropdown menu radio item
|
|
185
|
+
*/
|
|
186
|
+
children: React.ReactNode;
|
|
187
|
+
/**
|
|
188
|
+
* The value of the dropdown menu radio item
|
|
189
|
+
*/
|
|
190
|
+
value: string;
|
|
191
|
+
/**
|
|
192
|
+
* The disabled state of the dropdown menu radio item
|
|
193
|
+
*/
|
|
194
|
+
disabled?: boolean;
|
|
195
|
+
}
|
|
196
|
+
interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
197
|
+
/**
|
|
198
|
+
* The content of the dropdown menu label
|
|
199
|
+
*/
|
|
200
|
+
children: React.ReactNode;
|
|
201
|
+
/**
|
|
202
|
+
* The inset state of the dropdown menu label
|
|
203
|
+
*/
|
|
204
|
+
inset?: boolean;
|
|
205
|
+
}
|
|
206
|
+
interface DropdownMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
207
|
+
}
|
|
208
|
+
interface DropdownMenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
209
|
+
/**
|
|
210
|
+
* The content of the dropdown menu shortcut
|
|
211
|
+
*/
|
|
212
|
+
children: React.ReactNode;
|
|
213
|
+
}
|
|
214
|
+
interface DropdownMenuGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
215
|
+
/**
|
|
216
|
+
* The content of the dropdown menu group
|
|
217
|
+
*/
|
|
218
|
+
children: React.ReactNode;
|
|
219
|
+
}
|
|
220
|
+
interface DropdownMenuPortalProps {
|
|
221
|
+
/**
|
|
222
|
+
* The content of the dropdown menu portal
|
|
223
|
+
*/
|
|
224
|
+
children: React.ReactNode;
|
|
225
|
+
/**
|
|
226
|
+
* The container of the dropdown menu portal
|
|
227
|
+
*/
|
|
228
|
+
container?: HTMLElement;
|
|
229
|
+
}
|
|
230
|
+
interface DropdownMenuSubProps {
|
|
231
|
+
/**
|
|
232
|
+
* The content of the dropdown menu sub
|
|
233
|
+
*/
|
|
234
|
+
children: React.ReactNode;
|
|
235
|
+
/**
|
|
236
|
+
* The open state of the dropdown menu sub
|
|
237
|
+
*/
|
|
238
|
+
open?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* The default open state of the dropdown menu sub
|
|
241
|
+
*/
|
|
242
|
+
defaultOpen?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* The controlled open state of the dropdown menu sub
|
|
245
|
+
*/
|
|
246
|
+
onOpenChange?: (open: boolean) => void;
|
|
247
|
+
}
|
|
248
|
+
interface DropdownMenuSubContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
249
|
+
/**
|
|
250
|
+
* The content of the dropdown menu sub content
|
|
251
|
+
*/
|
|
252
|
+
children: React.ReactNode;
|
|
253
|
+
/**
|
|
254
|
+
* The side offset of the dropdown menu sub content
|
|
255
|
+
*/
|
|
256
|
+
sideOffset?: number;
|
|
257
|
+
/**
|
|
258
|
+
* The align offset of the dropdown menu sub content
|
|
259
|
+
*/
|
|
260
|
+
alignOffset?: number;
|
|
261
|
+
/**
|
|
262
|
+
* The side of the dropdown menu sub content
|
|
263
|
+
*/
|
|
264
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
265
|
+
/**
|
|
266
|
+
* The alignment of the dropdown menu sub content
|
|
267
|
+
*/
|
|
268
|
+
align?: "start" | "center" | "end";
|
|
269
|
+
/**
|
|
270
|
+
* The collision padding of the dropdown menu sub content
|
|
271
|
+
*/
|
|
272
|
+
collisionPadding?: number;
|
|
273
|
+
/**
|
|
274
|
+
* The collision boundary of the dropdown menu sub content
|
|
275
|
+
*/
|
|
276
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
277
|
+
/**
|
|
278
|
+
* The arrow padding of the dropdown menu sub content
|
|
279
|
+
*/
|
|
280
|
+
arrowPadding?: number;
|
|
281
|
+
/**
|
|
282
|
+
* The sticky state of the dropdown menu sub content
|
|
283
|
+
*/
|
|
284
|
+
sticky?: "partial" | "always";
|
|
285
|
+
/**
|
|
286
|
+
* The hide when detached state of the dropdown menu sub content
|
|
287
|
+
*/
|
|
288
|
+
hideWhenDetached?: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* The update position strategy of the dropdown menu sub content
|
|
291
|
+
*/
|
|
292
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
293
|
+
/**
|
|
294
|
+
* The force mount state of the dropdown menu sub content
|
|
295
|
+
*/
|
|
296
|
+
forceMount?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* The container of the dropdown menu sub content
|
|
299
|
+
*/
|
|
300
|
+
container?: HTMLElement;
|
|
301
|
+
}
|
|
302
|
+
interface DropdownMenuSubTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
303
|
+
/**
|
|
304
|
+
* The content of the dropdown menu sub trigger
|
|
305
|
+
*/
|
|
306
|
+
children: React.ReactNode;
|
|
307
|
+
/**
|
|
308
|
+
* The inset state of the dropdown menu sub trigger
|
|
309
|
+
*/
|
|
310
|
+
inset?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* The disabled state of the dropdown menu sub trigger
|
|
313
|
+
*/
|
|
314
|
+
disabled?: boolean;
|
|
315
|
+
}
|
|
316
|
+
interface DropdownMenuRadioGroupProps {
|
|
317
|
+
/**
|
|
318
|
+
* The content of the dropdown menu radio group
|
|
319
|
+
*/
|
|
320
|
+
children: React.ReactNode;
|
|
321
|
+
/**
|
|
322
|
+
* The value of the dropdown menu radio group
|
|
323
|
+
*/
|
|
324
|
+
value?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The default value of the dropdown menu radio group
|
|
327
|
+
*/
|
|
328
|
+
defaultValue?: string;
|
|
329
|
+
/**
|
|
330
|
+
* The controlled value of the dropdown menu radio group
|
|
331
|
+
*/
|
|
332
|
+
onValueChange?: (value: string) => void;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps };
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* DropdownMenu component for creating accessible dropdown menus.
|
|
9
|
+
* Built on top of Radix UI's DropdownMenu primitive.
|
|
10
|
+
*
|
|
11
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/organisms-dropdown-menu--docs
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <DropdownMenu>
|
|
16
|
+
* <DropdownMenuTrigger>Open Menu</DropdownMenuTrigger>
|
|
17
|
+
* <DropdownMenuContent>
|
|
18
|
+
* <DropdownMenuItem>Item 1</DropdownMenuItem>
|
|
19
|
+
* <DropdownMenuItem>Item 2</DropdownMenuItem>
|
|
20
|
+
* <DropdownMenuItem>Item 3</DropdownMenuItem>
|
|
21
|
+
* </DropdownMenuContent>
|
|
22
|
+
* </DropdownMenu>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
26
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
29
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
30
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
|
+
inset?: boolean;
|
|
33
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
37
|
+
inset?: boolean;
|
|
38
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
42
|
+
inset?: boolean;
|
|
43
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
declare const DropdownMenuShortcut: {
|
|
46
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
declare const dropdownMenuTriggerStyle: (props?: ({
|
|
51
|
+
variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
|
|
52
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
53
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
54
|
+
|
|
55
|
+
type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
|
|
56
|
+
interface DropdownMenuProps {
|
|
57
|
+
/**
|
|
58
|
+
* The content of the dropdown menu
|
|
59
|
+
*/
|
|
60
|
+
children: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* The open state of the dropdown menu
|
|
63
|
+
*/
|
|
64
|
+
open?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The default open state of the dropdown menu
|
|
67
|
+
*/
|
|
68
|
+
defaultOpen?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The controlled open state of the dropdown menu
|
|
71
|
+
*/
|
|
72
|
+
onOpenChange?: (open: boolean) => void;
|
|
73
|
+
/**
|
|
74
|
+
* The modal state of the dropdown menu
|
|
75
|
+
*/
|
|
76
|
+
modal?: boolean;
|
|
77
|
+
}
|
|
78
|
+
interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, DropdownMenuTriggerVariants {
|
|
79
|
+
/**
|
|
80
|
+
* The content of the trigger
|
|
81
|
+
*/
|
|
82
|
+
children: React.ReactNode;
|
|
83
|
+
/**
|
|
84
|
+
* The variant of the trigger
|
|
85
|
+
*/
|
|
86
|
+
variant?: DropdownMenuTriggerVariants["variant"];
|
|
87
|
+
/**
|
|
88
|
+
* The size of the trigger
|
|
89
|
+
*/
|
|
90
|
+
size?: DropdownMenuTriggerVariants["size"];
|
|
91
|
+
}
|
|
92
|
+
interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
93
|
+
/**
|
|
94
|
+
* The content of the dropdown menu
|
|
95
|
+
*/
|
|
96
|
+
children: React.ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
* The side offset of the dropdown menu
|
|
99
|
+
*/
|
|
100
|
+
sideOffset?: number;
|
|
101
|
+
/**
|
|
102
|
+
* The align offset of the dropdown menu
|
|
103
|
+
*/
|
|
104
|
+
alignOffset?: number;
|
|
105
|
+
/**
|
|
106
|
+
* The side of the dropdown menu
|
|
107
|
+
*/
|
|
108
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
109
|
+
/**
|
|
110
|
+
* The alignment of the dropdown menu
|
|
111
|
+
*/
|
|
112
|
+
align?: "start" | "center" | "end";
|
|
113
|
+
/**
|
|
114
|
+
* The collision padding of the dropdown menu
|
|
115
|
+
*/
|
|
116
|
+
collisionPadding?: number;
|
|
117
|
+
/**
|
|
118
|
+
* The collision boundary of the dropdown menu
|
|
119
|
+
*/
|
|
120
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
121
|
+
/**
|
|
122
|
+
* The arrow padding of the dropdown menu
|
|
123
|
+
*/
|
|
124
|
+
arrowPadding?: number;
|
|
125
|
+
/**
|
|
126
|
+
* The sticky state of the dropdown menu
|
|
127
|
+
*/
|
|
128
|
+
sticky?: "partial" | "always";
|
|
129
|
+
/**
|
|
130
|
+
* The hide when detached state of the dropdown menu
|
|
131
|
+
*/
|
|
132
|
+
hideWhenDetached?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* The update position strategy of the dropdown menu
|
|
135
|
+
*/
|
|
136
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
137
|
+
/**
|
|
138
|
+
* The force mount state of the dropdown menu
|
|
139
|
+
*/
|
|
140
|
+
forceMount?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* The container of the dropdown menu
|
|
143
|
+
*/
|
|
144
|
+
container?: HTMLElement;
|
|
145
|
+
}
|
|
146
|
+
interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
147
|
+
/**
|
|
148
|
+
* The content of the dropdown menu item
|
|
149
|
+
*/
|
|
150
|
+
children: React.ReactNode;
|
|
151
|
+
/**
|
|
152
|
+
* The inset state of the dropdown menu item
|
|
153
|
+
*/
|
|
154
|
+
inset?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* The disabled state of the dropdown menu item
|
|
157
|
+
*/
|
|
158
|
+
disabled?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* The selected state of the dropdown menu item
|
|
161
|
+
*/
|
|
162
|
+
selected?: boolean;
|
|
163
|
+
}
|
|
164
|
+
interface DropdownMenuCheckboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
165
|
+
/**
|
|
166
|
+
* The content of the dropdown menu checkbox item
|
|
167
|
+
*/
|
|
168
|
+
children: React.ReactNode;
|
|
169
|
+
/**
|
|
170
|
+
* The checked state of the dropdown menu checkbox item
|
|
171
|
+
*/
|
|
172
|
+
checked?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* The disabled state of the dropdown menu checkbox item
|
|
175
|
+
*/
|
|
176
|
+
disabled?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* The on checked change handler of the dropdown menu checkbox item
|
|
179
|
+
*/
|
|
180
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
181
|
+
}
|
|
182
|
+
interface DropdownMenuRadioItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
183
|
+
/**
|
|
184
|
+
* The content of the dropdown menu radio item
|
|
185
|
+
*/
|
|
186
|
+
children: React.ReactNode;
|
|
187
|
+
/**
|
|
188
|
+
* The value of the dropdown menu radio item
|
|
189
|
+
*/
|
|
190
|
+
value: string;
|
|
191
|
+
/**
|
|
192
|
+
* The disabled state of the dropdown menu radio item
|
|
193
|
+
*/
|
|
194
|
+
disabled?: boolean;
|
|
195
|
+
}
|
|
196
|
+
interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
197
|
+
/**
|
|
198
|
+
* The content of the dropdown menu label
|
|
199
|
+
*/
|
|
200
|
+
children: React.ReactNode;
|
|
201
|
+
/**
|
|
202
|
+
* The inset state of the dropdown menu label
|
|
203
|
+
*/
|
|
204
|
+
inset?: boolean;
|
|
205
|
+
}
|
|
206
|
+
interface DropdownMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
207
|
+
}
|
|
208
|
+
interface DropdownMenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
209
|
+
/**
|
|
210
|
+
* The content of the dropdown menu shortcut
|
|
211
|
+
*/
|
|
212
|
+
children: React.ReactNode;
|
|
213
|
+
}
|
|
214
|
+
interface DropdownMenuGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
215
|
+
/**
|
|
216
|
+
* The content of the dropdown menu group
|
|
217
|
+
*/
|
|
218
|
+
children: React.ReactNode;
|
|
219
|
+
}
|
|
220
|
+
interface DropdownMenuPortalProps {
|
|
221
|
+
/**
|
|
222
|
+
* The content of the dropdown menu portal
|
|
223
|
+
*/
|
|
224
|
+
children: React.ReactNode;
|
|
225
|
+
/**
|
|
226
|
+
* The container of the dropdown menu portal
|
|
227
|
+
*/
|
|
228
|
+
container?: HTMLElement;
|
|
229
|
+
}
|
|
230
|
+
interface DropdownMenuSubProps {
|
|
231
|
+
/**
|
|
232
|
+
* The content of the dropdown menu sub
|
|
233
|
+
*/
|
|
234
|
+
children: React.ReactNode;
|
|
235
|
+
/**
|
|
236
|
+
* The open state of the dropdown menu sub
|
|
237
|
+
*/
|
|
238
|
+
open?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* The default open state of the dropdown menu sub
|
|
241
|
+
*/
|
|
242
|
+
defaultOpen?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* The controlled open state of the dropdown menu sub
|
|
245
|
+
*/
|
|
246
|
+
onOpenChange?: (open: boolean) => void;
|
|
247
|
+
}
|
|
248
|
+
interface DropdownMenuSubContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
249
|
+
/**
|
|
250
|
+
* The content of the dropdown menu sub content
|
|
251
|
+
*/
|
|
252
|
+
children: React.ReactNode;
|
|
253
|
+
/**
|
|
254
|
+
* The side offset of the dropdown menu sub content
|
|
255
|
+
*/
|
|
256
|
+
sideOffset?: number;
|
|
257
|
+
/**
|
|
258
|
+
* The align offset of the dropdown menu sub content
|
|
259
|
+
*/
|
|
260
|
+
alignOffset?: number;
|
|
261
|
+
/**
|
|
262
|
+
* The side of the dropdown menu sub content
|
|
263
|
+
*/
|
|
264
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
265
|
+
/**
|
|
266
|
+
* The alignment of the dropdown menu sub content
|
|
267
|
+
*/
|
|
268
|
+
align?: "start" | "center" | "end";
|
|
269
|
+
/**
|
|
270
|
+
* The collision padding of the dropdown menu sub content
|
|
271
|
+
*/
|
|
272
|
+
collisionPadding?: number;
|
|
273
|
+
/**
|
|
274
|
+
* The collision boundary of the dropdown menu sub content
|
|
275
|
+
*/
|
|
276
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
277
|
+
/**
|
|
278
|
+
* The arrow padding of the dropdown menu sub content
|
|
279
|
+
*/
|
|
280
|
+
arrowPadding?: number;
|
|
281
|
+
/**
|
|
282
|
+
* The sticky state of the dropdown menu sub content
|
|
283
|
+
*/
|
|
284
|
+
sticky?: "partial" | "always";
|
|
285
|
+
/**
|
|
286
|
+
* The hide when detached state of the dropdown menu sub content
|
|
287
|
+
*/
|
|
288
|
+
hideWhenDetached?: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* The update position strategy of the dropdown menu sub content
|
|
291
|
+
*/
|
|
292
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
293
|
+
/**
|
|
294
|
+
* The force mount state of the dropdown menu sub content
|
|
295
|
+
*/
|
|
296
|
+
forceMount?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* The container of the dropdown menu sub content
|
|
299
|
+
*/
|
|
300
|
+
container?: HTMLElement;
|
|
301
|
+
}
|
|
302
|
+
interface DropdownMenuSubTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
303
|
+
/**
|
|
304
|
+
* The content of the dropdown menu sub trigger
|
|
305
|
+
*/
|
|
306
|
+
children: React.ReactNode;
|
|
307
|
+
/**
|
|
308
|
+
* The inset state of the dropdown menu sub trigger
|
|
309
|
+
*/
|
|
310
|
+
inset?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* The disabled state of the dropdown menu sub trigger
|
|
313
|
+
*/
|
|
314
|
+
disabled?: boolean;
|
|
315
|
+
}
|
|
316
|
+
interface DropdownMenuRadioGroupProps {
|
|
317
|
+
/**
|
|
318
|
+
* The content of the dropdown menu radio group
|
|
319
|
+
*/
|
|
320
|
+
children: React.ReactNode;
|
|
321
|
+
/**
|
|
322
|
+
* The value of the dropdown menu radio group
|
|
323
|
+
*/
|
|
324
|
+
value?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The default value of the dropdown menu radio group
|
|
327
|
+
*/
|
|
328
|
+
defaultValue?: string;
|
|
329
|
+
/**
|
|
330
|
+
* The controlled value of the dropdown menu radio group
|
|
331
|
+
*/
|
|
332
|
+
onValueChange?: (value: string) => void;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var d=require('react'),e=require('@radix-ui/react-dropdown-menu'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var d__namespace=/*#__PURE__*/_interopNamespace(d);var e__namespace=/*#__PURE__*/_interopNamespace(e);function a(...o){return tailwindMerge.twMerge(clsx.clsx(o))}var h=e__namespace.Root,x=e__namespace.Trigger,C=e__namespace.Group,I=e__namespace.Portal,N=e__namespace.Sub,S=e__namespace.RadioGroup,m=d__namespace.forwardRef(({className:o,inset:t,children:n,...i},p)=>jsxRuntime.jsxs(e__namespace.SubTrigger,{ref:p,className:a("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",o),...i,children:[n,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));m.displayName=e__namespace.SubTrigger.displayName;var u=d__namespace.forwardRef(({className:o,...t},n)=>jsxRuntime.jsx(e__namespace.SubContent,{ref:n,className:a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...t}));u.displayName=e__namespace.SubContent.displayName;var c=d__namespace.forwardRef(({className:o,sideOffset:t=4,...n},i)=>jsxRuntime.jsx(e__namespace.Portal,{children:jsxRuntime.jsx(e__namespace.Content,{ref:i,sideOffset:t,className:a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...n})}));c.displayName=e__namespace.Content.displayName;var l=d__namespace.forwardRef(({className:o,inset:t,...n},i)=>jsxRuntime.jsx(e__namespace.Item,{ref:i,className:a("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",o),...n}));l.displayName=e__namespace.Item.displayName;var w=d__namespace.forwardRef(({className:o,children:t,checked:n,...i},p)=>jsxRuntime.jsxs(e__namespace.CheckboxItem,{ref:p,className:a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:n,...i,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(e__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));w.displayName=e__namespace.CheckboxItem.displayName;var f=d__namespace.forwardRef(({className:o,children:t,...n},i)=>jsxRuntime.jsxs(e__namespace.RadioItem,{ref:i,className:a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...n,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(e__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));f.displayName=e__namespace.RadioItem.displayName;var M=d__namespace.forwardRef(({className:o,inset:t,...n},i)=>jsxRuntime.jsx(e__namespace.Label,{ref:i,className:a("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",o),...n}));M.displayName=e__namespace.Label.displayName;var D=d__namespace.forwardRef(({className:o,...t},n)=>jsxRuntime.jsx(e__namespace.Separator,{ref:n,className:a("-mx-1 my-1 h-px bg-muted",o),...t}));D.displayName=e__namespace.Separator.displayName;var P=({className:o,...t})=>jsxRuntime.jsx("span",{className:a("ml-auto text-xs tracking-widest opacity-60",o),...t});P.displayName="DropdownMenuShortcut";exports.DropdownMenu=h;exports.DropdownMenuCheckboxItem=w;exports.DropdownMenuContent=c;exports.DropdownMenuGroup=C;exports.DropdownMenuItem=l;exports.DropdownMenuLabel=M;exports.DropdownMenuPortal=I;exports.DropdownMenuRadioGroup=S;exports.DropdownMenuRadioItem=f;exports.DropdownMenuSeparator=D;exports.DropdownMenuShortcut=P;exports.DropdownMenuSub=N;exports.DropdownMenuSubContent=u;exports.DropdownMenuSubTrigger=m;exports.DropdownMenuTrigger=x;//# sourceMappingURL=dropdown-menu.js.map
|
|
2
|
+
//# sourceMappingURL=dropdown-menu.js.map
|