@equisoft/design-elements-react 3.5.1-snapshot.20220104201526 → 3.5.1-snapshot.20220107152940
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/bundle.js +94 -71
- package/dist/components/buttons/button.d.ts +1 -0
- package/dist/components/buttons/icon-button.d.ts +1 -0
- package/dist/components/card/card.d.ts +7 -2
- package/dist/components/menu-button/menu-button.d.ts +1 -0
- package/dist/components/nav-menu-button/nav-menu-button.d.ts +2 -1
- package/dist/components/tabs/tab-button.d.ts +2 -1
- package/dist/components/tabs/tab-panel.d.ts +4 -3
- package/dist/components/tabs/tabs.d.ts +3 -0
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/components/buttons/add-button.d.ts +0 -18
|
@@ -2,6 +2,7 @@ import { MouseEvent, KeyboardEvent, ReactNode } from 'react';
|
|
|
2
2
|
export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
|
|
3
3
|
declare type Type = 'submit' | 'button' | 'reset';
|
|
4
4
|
interface ButtonProps {
|
|
5
|
+
autofocus?: boolean;
|
|
5
6
|
/**
|
|
6
7
|
* Visual style
|
|
7
8
|
* @default primary
|
|
@@ -4,6 +4,7 @@ import { AvatarProps } from '../avatar/avatar';
|
|
|
4
4
|
declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
|
|
5
5
|
declare type Type = 'submit' | 'button' | 'reset';
|
|
6
6
|
export interface IconButtonProps {
|
|
7
|
+
autofocus?: boolean;
|
|
7
8
|
children?: ReactElement<IconProps | AvatarProps>;
|
|
8
9
|
/**
|
|
9
10
|
* Visual style
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
noPadding?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Card: FunctionComponent<Props>;
|
|
7
|
+
export {};
|
|
@@ -8,6 +8,7 @@ interface MenuButtonProps {
|
|
|
8
8
|
* @default 'Menu'
|
|
9
9
|
* */
|
|
10
10
|
ariaLabel?: string;
|
|
11
|
+
autofocus?: boolean;
|
|
11
12
|
tag?: 'div' | 'nav';
|
|
12
13
|
buttonAriaLabel?: string;
|
|
13
14
|
children?: ReactNode;
|
|
@@ -32,5 +33,5 @@ interface MenuButtonProps {
|
|
|
32
33
|
onMenuVisibilityChanged?(isOpen: boolean): void;
|
|
33
34
|
onMenuOptionSelected?(option: NavMenuOption): void;
|
|
34
35
|
}
|
|
35
|
-
export declare function NavMenuButton({ tag, ariaLabel, buttonAriaLabel, buttonType, children, className, defaultOpen, hasCaret, iconName, iconOnly, id: providedId, inverted, onMenuOptionSelected, onMenuVisibilityChanged, options, title, }: MenuButtonProps): ReactElement;
|
|
36
|
+
export declare function NavMenuButton({ tag, ariaLabel, autofocus, buttonAriaLabel, buttonType, children, className, defaultOpen, hasCaret, iconName, iconOnly, id: providedId, inverted, onMenuOptionSelected, onMenuVisibilityChanged, options, title, }: MenuButtonProps): ReactElement;
|
|
36
37
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { KeyboardEvent } from 'react';
|
|
2
2
|
import { IconName } from '../icon/icon';
|
|
3
3
|
interface TabButtonProps {
|
|
4
|
+
global?: boolean;
|
|
4
5
|
id: string;
|
|
5
|
-
panelId: string;
|
|
6
6
|
children: string;
|
|
7
|
+
panelId: string;
|
|
7
8
|
leftIcon?: IconName;
|
|
8
9
|
rightIcon?: IconName;
|
|
9
10
|
isSelected: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
interface TabPanelProps {
|
|
3
|
-
id: string;
|
|
4
3
|
buttonId: string;
|
|
5
|
-
hidden: boolean;
|
|
6
4
|
children: ReactNode;
|
|
5
|
+
contained?: boolean;
|
|
6
|
+
hidden: boolean;
|
|
7
|
+
id: string;
|
|
7
8
|
}
|
|
8
|
-
export declare function TabPanel({
|
|
9
|
+
export declare function TabPanel({ buttonId, children, contained, hidden, id, }: TabPanelProps): ReactElement;
|
|
9
10
|
export {};
|
|
@@ -8,7 +8,10 @@ export interface Tab {
|
|
|
8
8
|
}
|
|
9
9
|
interface Props {
|
|
10
10
|
className?: string;
|
|
11
|
+
/** Not available in global mode */
|
|
12
|
+
contained?: boolean;
|
|
11
13
|
forceRenderTabPanels?: boolean;
|
|
14
|
+
global?: boolean;
|
|
12
15
|
tabs: Tab[];
|
|
13
16
|
}
|
|
14
17
|
export declare const Tabs: VoidFunctionComponent<Props>;
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ReactElement } from 'react';
|
|
2
|
-
declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
|
|
3
|
-
declare type Type = 'submit' | 'button' | 'reset';
|
|
4
|
-
interface ButtonProps {
|
|
5
|
-
/**
|
|
6
|
-
* Visual style
|
|
7
|
-
* @default primary
|
|
8
|
-
*/
|
|
9
|
-
buttonType: ButtonType;
|
|
10
|
-
className?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
inverted?: boolean;
|
|
13
|
-
label?: string;
|
|
14
|
-
type?: Type;
|
|
15
|
-
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
16
|
-
}
|
|
17
|
-
export declare function AddButton({ className, type, buttonType, disabled, inverted, label, onClick, }: ButtonProps): ReactElement;
|
|
18
|
-
export {};
|