greenole-design-system 1.1.64 → 1.1.65

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.
@@ -4,3 +4,4 @@ declare const meta: Meta<typeof DropdownMenu>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof DropdownMenu>;
6
6
  export declare const Default: Story;
7
+ export declare const WithPortal: Story;
@@ -5,6 +5,7 @@ export declare const DropdownMenuContent: import('styled-components/dist/types')
5
5
  $position: DropdownMenuPositionProps;
6
6
  $limit?: boolean;
7
7
  $animate: boolean;
8
+ $usePortal?: boolean;
8
9
  }>> & string;
9
10
  export declare const DropdownMenuArrow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
11
  $position: DropdownMenuPositionProps;
@@ -7,6 +7,8 @@ export interface DropdownMenuProps {
7
7
  showArrow?: boolean;
8
8
  className?: string;
9
9
  onOpenChange?: (isOpen: boolean) => void;
10
+ usePortal?: boolean;
11
+ container?: HTMLElement | null;
10
12
  }
11
13
  export type DropdownMenuPositionProps = 'top' | 'bottom' | 'left' | 'right';
12
14
  export type SetOpenState = React.Dispatch<React.SetStateAction<boolean>>;
@@ -7,3 +7,5 @@ export declare const Default: Story;
7
7
  export declare const WithRightElements: Story;
8
8
  export declare const DefaultMobile: Story;
9
9
  export declare const WithRightElementsMobile: Story;
10
+ export declare const WithActions: Story;
11
+ export declare const WithActionsAndRightElements: Story;
@@ -12,3 +12,6 @@ export declare const TabButton: import('styled-components/dist/types').IStyledCo
12
12
  $active?: boolean;
13
13
  }>> & string;
14
14
  export declare const TabsContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
+ export declare const DropdownMenuContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
16
+ $showDropdownMenu?: boolean;
17
+ }>> & string;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { THookTypes } from '../../utils/i18n/types';
2
3
  export interface TabType {
3
4
  label: ReactNode;
4
5
  children: ReactNode;
@@ -9,5 +10,7 @@ export interface TabsType {
9
10
  selectedIndex?: number;
10
11
  isMobile?: boolean;
11
12
  rightElements?: ReactNode;
13
+ actions?: ReactNode;
14
+ t?: THookTypes;
12
15
  onChange?: (index: number) => void;
13
16
  }