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.
- package/dist/base-components/DropdownMenu/DropdownMenu.stories.d.ts +1 -0
- package/dist/base-components/DropdownMenu/DropdownMenu.styles.d.ts +1 -0
- package/dist/base-components/DropdownMenu/DropdownMenu.types.d.ts +2 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +2 -0
- package/dist/components/Tabs/Tabs.styles.d.ts +3 -0
- package/dist/components/Tabs/Tabs.types.d.ts +3 -0
- package/dist/greenole-design-system.cjs.js +268 -246
- package/dist/greenole-design-system.js +3292 -3218
- package/dist/greenole.css +26 -0
- package/dist/index.css +1 -1
- package/package.json +1 -1
|
@@ -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
|
}
|