@validationcloud/fractal-ui 1.22.3 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
2
|
+
type DropdownMenuItemProps = {
|
|
3
|
+
baseColor?: 'bg-neutral-60' | 'bg-neutral-80';
|
|
4
|
+
} & React.ComponentProps<typeof DropdownMenuPrimitive.Item>;
|
|
5
|
+
export declare const DropdownMenuItem: import('react').ForwardRefExoticComponent<Omit<DropdownMenuItemProps, "ref"> & import('react').RefAttributes<HTMLDivElement | null>>;
|
|
6
|
+
type DropdownMenuProps = {
|
|
7
|
+
trigger: React.ReactNode;
|
|
8
|
+
baseColor?: 'bg-neutral-60' | 'bg-neutral-80';
|
|
9
|
+
className?: string;
|
|
10
|
+
contentClassName?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
} & React.ComponentProps<typeof DropdownMenuPrimitive.Root>;
|
|
13
|
+
/**
|
|
14
|
+
* DropdownMenu is a wrapper around Radix's DropdownMenu component.
|
|
15
|
+
* It applies project-specific styling to the Radix's component.
|
|
16
|
+
* The component is meant to be used with DropdownMenuItem provided as children.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link https://www.radix-ui.com/primitives/docs/components/dropdown-menu}
|
|
19
|
+
*/
|
|
20
|
+
export declare function DropdownMenu({ trigger, baseColor, children, className, contentClassName, disabled, ...props }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { DropdownMenu } from './dropdown-menu';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof DropdownMenu;
|
|
5
|
+
argTypes: {};
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Example: Story;
|
|
10
|
+
export declare const LongItemLabels: Story;
|