@openfin/ui-library 0.30.21-alpha.1757708717 → 0.30.21
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/components/controls/Menus/ContentMenu/ContentMenuItem/ContentMenuItem.d.ts +15 -17
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuKeyboardNavigation.d.ts +1 -1
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuNavigation.d.ts +2 -2
- package/dist/components/controls/Menus/common.d.ts +37 -66
- package/dist/components/elements/DropdownMenu/dropdownMenu.d.ts +0 -3
- package/dist/components/elements/DropdownMenu/menu.d.ts +0 -5
- package/dist/components/elements/Icon/icon.d.ts +0 -1
- package/dist/components/elements/Label/label.d.ts +0 -1
- package/dist/components/elements/Loader/loader.d.ts +1 -1
- package/dist/components/elements/Loader/openfinLoader.d.ts +1 -1
- package/dist/components/input/BaseInput/baseInput.d.ts +11 -13
- package/dist/components/input/Checkbox/checkbox.d.ts +11 -10
- package/dist/components/input/DateInput/dateInput.d.ts +1 -3
- package/dist/components/input/NumberInput/numberInput.d.ts +1 -4
- package/dist/components/input/RadioInput/radioInput.d.ts +3 -3
- package/dist/components/input/TextArea/textArea.d.ts +3 -3
- package/dist/components/input/TextInput/textInput.d.ts +7 -10
- package/dist/components/layout/Box/box.d.ts +1 -15
- package/dist/components/system/ThemeProvider/lib/iconSet.d.ts +1 -2
- package/dist/components/typography/Heading/heading.d.ts +96 -96
- package/dist/components/typography/Text/text.d.ts +1 -6
- package/dist/hooks/useColorScheme.d.ts +1 -1
- package/dist/hooks/useTheme.d.ts +2 -2
- package/dist/index.js +108 -145
- package/dist/storybookHelpers.d.ts +52 -53
- package/package.json +38 -41
- package/dist/components/input/Checkbox/checkbox.variants.d.ts +0 -21
|
@@ -34,23 +34,21 @@ interface ContentMenuItemContainerProps {
|
|
|
34
34
|
active?: boolean;
|
|
35
35
|
}
|
|
36
36
|
export declare const ContentMenuItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, React.HTMLAttributes<HTMLDivElement> & {
|
|
37
|
-
alignItems?: import("../../../../layout/Box/types").AlignItems
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
background?: import("../../../../layout/Box/types").BackgroundLevel | undefined;
|
|
51
|
-
padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
37
|
+
alignItems?: import("../../../../layout/Box/types").AlignItems;
|
|
38
|
+
display?: import("../../../../layout/Box/types").Display;
|
|
39
|
+
flexDirection?: import("../../../../layout/Box/types").FlexDirection;
|
|
40
|
+
flexWrap?: import("../../../../layout/Box/types").FlexWrap;
|
|
41
|
+
justifyContent?: import("../../../../layout/Box/types").JustifyContent;
|
|
42
|
+
gap?: import("../../../../system").UnitPxType;
|
|
43
|
+
alignSelf?: import("../../../../layout/Box/types").AlignSelf;
|
|
44
|
+
flexBasis?: string;
|
|
45
|
+
flexGrow?: 1 | 0;
|
|
46
|
+
flexShrink?: 1 | 0;
|
|
47
|
+
order?: number;
|
|
48
|
+
background?: import("../../../../layout/Box/types").BackgroundLevel;
|
|
49
|
+
padding?: import("../../../../system").UnitPxType;
|
|
52
50
|
} & {
|
|
53
|
-
enabled?: string
|
|
54
|
-
selected?: boolean
|
|
51
|
+
enabled?: string;
|
|
52
|
+
selected?: boolean;
|
|
55
53
|
} & ContentMenuItemContainerProps, never>;
|
|
56
54
|
export {};
|
package/dist/components/controls/Menus/CustomContextMenu/useContextMenuKeyboardNavigation.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ import { CustomContextMenuData, SubmenulessMenuItemTemplate } from './CustomCont
|
|
|
14
14
|
* @param { () => void } handleNavigateToBase - Function to navigate back to the base menu.
|
|
15
15
|
* @returns { void }
|
|
16
16
|
*/
|
|
17
|
-
export declare const useContextMenuKeyboardNavigation: (menuOptions: SubmenulessMenuItemTemplate[], menuLabelStack: string[], activeMenuLabel: string, selectedIndex: number, setSelectedIndex: React.Dispatch<React.SetStateAction<number>>, onClick: (data: CustomContextMenuData) => void, handleNavigateToSubmenu: (submenuLabel: string) => void, handleBackToParentMenu: (submenuLabel: string, method:
|
|
17
|
+
export declare const useContextMenuKeyboardNavigation: (menuOptions: SubmenulessMenuItemTemplate[], menuLabelStack: string[], activeMenuLabel: string, selectedIndex: number, setSelectedIndex: React.Dispatch<React.SetStateAction<number>>, onClick: (data: CustomContextMenuData) => void, handleNavigateToSubmenu: (submenuLabel: string) => void, handleBackToParentMenu: (submenuLabel: string, method: "click" | "keyboard") => void, handleNavigateToBase: () => void) => void;
|
|
@@ -18,8 +18,8 @@ import { SubMenuNavigationTemplate } from './CustomContextMenu';
|
|
|
18
18
|
export declare const useContextMenuNavigation: (transitionSpeed: number, setTransitionSpeed: React.Dispatch<React.SetStateAction<number>>, menuLabelStack: string[], setMenuLabelStack: React.Dispatch<React.SetStateAction<string[]>>, activeMenuLabel: string | undefined, setActiveMenuLabel: React.Dispatch<React.SetStateAction<string | undefined>>, setActiveMenuDimensions: React.Dispatch<React.SetStateAction<{
|
|
19
19
|
width: number;
|
|
20
20
|
height: number;
|
|
21
|
-
}>>, setSelectedIndex: React.Dispatch<React.SetStateAction<number>>, menuCollection: SubMenuNavigationTemplate[], onMenuResize?: (
|
|
21
|
+
}>>, setSelectedIndex: React.Dispatch<React.SetStateAction<number>>, menuCollection: SubMenuNavigationTemplate[], onMenuResize?: (height: number, width: number) => void) => {
|
|
22
22
|
handleNavigateToSubmenu: (parentLabel: string) => void;
|
|
23
|
-
handleNavigateBackToParent: (submenuLabel: string, method?:
|
|
23
|
+
handleNavigateBackToParent: (submenuLabel: string, method?: "click" | "keyboard") => void;
|
|
24
24
|
handleNavigateToBase: () => void;
|
|
25
25
|
};
|
|
@@ -1,80 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
alignItems?: import("../../layout/Box/types").AlignItems | undefined;
|
|
4
|
-
display?: import("../../layout/Box/types").Display | undefined;
|
|
5
|
-
flexDirection?: import("../../layout/Box/types").FlexDirection | undefined;
|
|
6
|
-
flexWrap?: import("../../layout/Box/types").FlexWrap | undefined;
|
|
7
|
-
justifyContent?: import("../../layout/Box/types").JustifyContent | undefined;
|
|
8
|
-
gap?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
9
|
-
alignSelf?: import("../../layout/Box/types").AlignSelf | undefined;
|
|
10
|
-
flexBasis?: string | undefined;
|
|
11
|
-
flexGrow?: 0 | 1 | undefined;
|
|
12
|
-
flexShrink?: 0 | 1 | undefined;
|
|
13
|
-
order?: number | undefined;
|
|
14
|
-
background?: import("../../layout/Box/types").BackgroundLevel | undefined;
|
|
15
|
-
padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
16
|
-
}, never>;
|
|
17
|
-
export declare const MenuItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLDivElement> & {
|
|
18
|
-
alignItems?: import("../../layout/Box/types").AlignItems | undefined;
|
|
19
|
-
display?: import("../../layout/Box/types").Display | undefined;
|
|
20
|
-
flexDirection?: import("../../layout/Box/types").FlexDirection | undefined;
|
|
21
|
-
flexWrap?: import("../../layout/Box/types").FlexWrap | undefined;
|
|
22
|
-
justifyContent?: import("../../layout/Box/types").JustifyContent | undefined;
|
|
23
|
-
gap?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
24
|
-
alignSelf?: import("../../layout/Box/types").AlignSelf | undefined;
|
|
25
|
-
flexBasis?: string | undefined;
|
|
26
|
-
flexGrow?: 0 | 1 | undefined;
|
|
27
|
-
flexShrink?: 0 | 1 | undefined;
|
|
28
|
-
order?: number | undefined;
|
|
29
|
-
background?: import("../../layout/Box/types").BackgroundLevel | undefined;
|
|
30
|
-
padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
31
|
-
}, never>;
|
|
1
|
+
export declare const MenuFrame: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../layout/Box").BoxProps, never>;
|
|
2
|
+
export declare const MenuItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../layout/Box").BoxProps, never>;
|
|
32
3
|
export declare const MenuItemInnerContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLDivElement> & {
|
|
33
|
-
alignItems?: import("../../layout/Box/types").AlignItems
|
|
34
|
-
display?: import("../../layout/Box/types").Display
|
|
35
|
-
flexDirection?: import("../../layout/Box/types").FlexDirection
|
|
36
|
-
flexWrap?: import("../../layout/Box/types").FlexWrap
|
|
37
|
-
justifyContent?: import("../../layout/Box/types").JustifyContent
|
|
38
|
-
gap?: "
|
|
39
|
-
alignSelf?: import("../../layout/Box/types").AlignSelf
|
|
40
|
-
flexBasis?: string
|
|
41
|
-
flexGrow?:
|
|
42
|
-
flexShrink?:
|
|
43
|
-
order?: number
|
|
44
|
-
background?: import("../../layout/Box/types").BackgroundLevel
|
|
45
|
-
padding?: "
|
|
4
|
+
alignItems?: import("../../layout/Box/types").AlignItems;
|
|
5
|
+
display?: import("../../layout/Box/types").Display;
|
|
6
|
+
flexDirection?: import("../../layout/Box/types").FlexDirection;
|
|
7
|
+
flexWrap?: import("../../layout/Box/types").FlexWrap;
|
|
8
|
+
justifyContent?: import("../../layout/Box/types").JustifyContent;
|
|
9
|
+
gap?: import("../../system").UnitPxType;
|
|
10
|
+
alignSelf?: import("../../layout/Box/types").AlignSelf;
|
|
11
|
+
flexBasis?: string;
|
|
12
|
+
flexGrow?: 1 | 0;
|
|
13
|
+
flexShrink?: 1 | 0;
|
|
14
|
+
order?: number;
|
|
15
|
+
background?: import("../../layout/Box/types").BackgroundLevel;
|
|
16
|
+
padding?: import("../../system").UnitPxType;
|
|
46
17
|
} & {
|
|
47
|
-
enabled?: string
|
|
48
|
-
selected?: boolean
|
|
18
|
+
enabled?: string;
|
|
19
|
+
selected?: boolean;
|
|
49
20
|
}, never>;
|
|
50
21
|
export declare const MenuItemIconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLDivElement> & {
|
|
51
|
-
alignItems?: import("../../layout/Box/types").AlignItems
|
|
52
|
-
display?: import("../../layout/Box/types").Display
|
|
53
|
-
flexDirection?: import("../../layout/Box/types").FlexDirection
|
|
54
|
-
flexWrap?: import("../../layout/Box/types").FlexWrap
|
|
55
|
-
justifyContent?: import("../../layout/Box/types").JustifyContent
|
|
56
|
-
gap?: "
|
|
57
|
-
alignSelf?: import("../../layout/Box/types").AlignSelf
|
|
58
|
-
flexBasis?: string
|
|
59
|
-
flexGrow?:
|
|
60
|
-
flexShrink?:
|
|
61
|
-
order?: number
|
|
62
|
-
background?: import("../../layout/Box/types").BackgroundLevel
|
|
63
|
-
padding?: "
|
|
22
|
+
alignItems?: import("../../layout/Box/types").AlignItems;
|
|
23
|
+
display?: import("../../layout/Box/types").Display;
|
|
24
|
+
flexDirection?: import("../../layout/Box/types").FlexDirection;
|
|
25
|
+
flexWrap?: import("../../layout/Box/types").FlexWrap;
|
|
26
|
+
justifyContent?: import("../../layout/Box/types").JustifyContent;
|
|
27
|
+
gap?: import("../../system").UnitPxType;
|
|
28
|
+
alignSelf?: import("../../layout/Box/types").AlignSelf;
|
|
29
|
+
flexBasis?: string;
|
|
30
|
+
flexGrow?: 1 | 0;
|
|
31
|
+
flexShrink?: 1 | 0;
|
|
32
|
+
order?: number;
|
|
33
|
+
background?: import("../../layout/Box/types").BackgroundLevel;
|
|
34
|
+
padding?: import("../../system").UnitPxType;
|
|
64
35
|
} & {
|
|
65
|
-
side:
|
|
36
|
+
side: "left" | "right";
|
|
66
37
|
}, never>;
|
|
67
38
|
export declare const MenuItemIconButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
68
|
-
side:
|
|
39
|
+
side: "left" | "right";
|
|
69
40
|
}, never>;
|
|
70
41
|
export declare const MenuItemRightIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../elements/Icon").IconProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
71
|
-
enabled?: boolean
|
|
42
|
+
enabled?: boolean;
|
|
72
43
|
}, never>;
|
|
73
44
|
export declare const MenuItemText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLElement> & {
|
|
74
|
-
color?: "textDefault" | "background6"
|
|
45
|
+
color?: "textDefault" | "background6";
|
|
75
46
|
children: import("react").ReactNode;
|
|
76
|
-
size?: "
|
|
77
|
-
weight?: "
|
|
47
|
+
size?: import("../../system").FontSizeType;
|
|
48
|
+
weight?: import("../../system").FontWeightType;
|
|
78
49
|
} & {
|
|
79
|
-
enabled?: boolean
|
|
50
|
+
enabled?: boolean;
|
|
80
51
|
}, never>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { MenuOption } from './menu';
|
|
3
|
-
export type MenuPosition = 'above' | 'below';
|
|
4
3
|
export interface DropdownMenuProps {
|
|
5
4
|
label?: string;
|
|
6
5
|
selected?: MenuOption;
|
|
@@ -10,7 +9,5 @@ export interface DropdownMenuProps {
|
|
|
10
9
|
placeholder?: string;
|
|
11
10
|
renderLabel?: (option: MenuOption, isOpen: boolean, onClick: () => void, focusedOption?: MenuOption) => ReactNode;
|
|
12
11
|
fitContent?: boolean;
|
|
13
|
-
menuPosition?: MenuPosition;
|
|
14
|
-
maxHeight?: string;
|
|
15
12
|
}
|
|
16
13
|
export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MenuPosition } from './dropdownMenu';
|
|
3
2
|
export interface MenuOption {
|
|
4
3
|
title: string;
|
|
5
4
|
value: unknown;
|
|
@@ -58,10 +57,6 @@ export interface MenuProps {
|
|
|
58
57
|
* The menu should be positioned absolutely.
|
|
59
58
|
*/
|
|
60
59
|
absolutePosition?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* The position of the menu relative to the button ('above' or 'below').
|
|
63
|
-
*/
|
|
64
|
-
menuPosition?: MenuPosition;
|
|
65
60
|
}
|
|
66
61
|
export declare const Menu: React.FC<MenuProps>;
|
|
67
62
|
export declare const ButtonImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -14,6 +14,5 @@ export type IconSizeProps = {
|
|
|
14
14
|
};
|
|
15
15
|
export type IconProps = HTMLAttributes<HTMLDivElement> & (PropsWithIcon | PropsWithChild) & IconSizeProps & {
|
|
16
16
|
'data-testid'?: string;
|
|
17
|
-
enabled?: boolean;
|
|
18
17
|
};
|
|
19
18
|
export declare const Icon: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { IconSizeProps } from '../Icon';
|
|
3
3
|
export type LoaderProps = IconSizeProps & HTMLAttributes<HTMLDivElement>;
|
|
4
|
-
export declare const Loader: import("styled-components").StyledComponent<({ ...props }: LoaderProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme,
|
|
4
|
+
export declare const Loader: import("styled-components").StyledComponent<({ ...props }: LoaderProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme, LoaderProps, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { IconSizeProps } from '../Icon';
|
|
3
3
|
export type OpenfinLoaderProps = IconSizeProps & HTMLAttributes<HTMLDivElement>;
|
|
4
|
-
export declare const OpenfinLoader: import("styled-components").StyledComponent<({ ...props }: OpenfinLoaderProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme,
|
|
4
|
+
export declare const OpenfinLoader: import("styled-components").StyledComponent<({ ...props }: OpenfinLoaderProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme, OpenfinLoaderProps, never>;
|
|
@@ -5,9 +5,7 @@ export type BaseInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
5
5
|
message?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
type?: string;
|
|
8
|
-
renderInput?:
|
|
9
|
-
status?: string;
|
|
10
|
-
}) => JSX.Element;
|
|
8
|
+
renderInput?: Function;
|
|
11
9
|
icon?: IconType | (() => JSX.Element);
|
|
12
10
|
helperText?: string;
|
|
13
11
|
validationErrorMessage?: string;
|
|
@@ -16,14 +14,14 @@ export type BaseInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
16
14
|
* @private This should not be exposed beyond the ui-library.
|
|
17
15
|
*/
|
|
18
16
|
export declare const BaseInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
19
|
-
message?: string
|
|
20
|
-
label?: string
|
|
21
|
-
type?: string
|
|
22
|
-
renderInput?:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
helperText?: string | undefined;
|
|
27
|
-
validationErrorMessage?: string | undefined;
|
|
17
|
+
message?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
type?: string;
|
|
20
|
+
renderInput?: Function;
|
|
21
|
+
icon?: IconType | (() => JSX.Element);
|
|
22
|
+
helperText?: string;
|
|
23
|
+
validationErrorMessage?: string;
|
|
28
24
|
} & WithStatusProps & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
-
|
|
25
|
+
type StyledInputProps = InputHTMLAttributes<HTMLInputElement> & WithStatusProps;
|
|
26
|
+
export declare const StyledInputField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, StyledInputProps, never>;
|
|
27
|
+
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BaseInputProps } from '../BaseInput';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import { WithStatusProps } from '../../system/HOC';
|
|
4
|
+
export type CheckboxProps = BaseInputProps;
|
|
5
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
6
|
+
message?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
renderInput?: Function;
|
|
10
|
+
icon?: import("../../system/ThemeProvider").IconType | (() => JSX.Element);
|
|
11
|
+
helperText?: string;
|
|
12
|
+
validationErrorMessage?: string;
|
|
13
|
+
} & WithStatusProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { ChangeEventHandler, MouseEventHandler } from 'react';
|
|
2
2
|
import { BaseInputProps } from '../BaseInput';
|
|
3
|
-
import { StatusType } from '../../system/HOC';
|
|
4
3
|
type DateTypeFormat = 'date' | 'time' | 'datetime-local';
|
|
5
|
-
interface DateInputProps extends Omit<BaseInputProps, 'value' | 'type'
|
|
4
|
+
interface DateInputProps extends Omit<BaseInputProps, 'value' | 'type'> {
|
|
6
5
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
7
6
|
onExpand?: MouseEventHandler<HTMLDivElement>;
|
|
8
7
|
expanded?: boolean;
|
|
9
8
|
value?: string;
|
|
10
9
|
type?: DateTypeFormat;
|
|
11
|
-
status?: StatusType;
|
|
12
10
|
}
|
|
13
11
|
export declare const DateInput: import("react").ForwardRefExoticComponent<DateInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
12
|
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BaseInputProps } from '../BaseInput';
|
|
3
2
|
import { IconType } from '../../system/ThemeProvider';
|
|
4
|
-
import { StatusType } from '../../system/HOC';
|
|
5
3
|
export declare enum Direction {
|
|
6
4
|
Up = 1,
|
|
7
5
|
Down = -1
|
|
8
6
|
}
|
|
9
|
-
interface NumberInputProps extends Omit<BaseInputProps, 'value'
|
|
7
|
+
interface NumberInputProps extends Omit<BaseInputProps, 'value'> {
|
|
10
8
|
min?: number;
|
|
11
9
|
max?: number;
|
|
12
10
|
/**
|
|
@@ -14,7 +12,6 @@ interface NumberInputProps extends Omit<BaseInputProps, 'value' | 'status'> {
|
|
|
14
12
|
*/
|
|
15
13
|
step?: number;
|
|
16
14
|
value?: number;
|
|
17
|
-
status?: StatusType;
|
|
18
15
|
/**
|
|
19
16
|
* @default undefined
|
|
20
17
|
* Prepend an icon to the beginning of the input. Takes precedence over `prependString`.
|
|
@@ -8,7 +8,7 @@ export type RadioProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
8
8
|
icon?: IconType;
|
|
9
9
|
};
|
|
10
10
|
export declare const RadioInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
11
|
-
label?: string
|
|
12
|
-
labelSide?: RadioLabelSideType
|
|
13
|
-
icon?:
|
|
11
|
+
label?: string;
|
|
12
|
+
labelSide?: RadioLabelSideType;
|
|
13
|
+
icon?: IconType;
|
|
14
14
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -6,7 +6,7 @@ export type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
|
6
6
|
helperText?: string;
|
|
7
7
|
} & WithStatusProps;
|
|
8
8
|
export declare const TextArea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
9
|
-
onChange?: (
|
|
10
|
-
label?: string
|
|
11
|
-
helperText?: string
|
|
9
|
+
onChange?: (e?: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
10
|
+
label?: string;
|
|
11
|
+
helperText?: string;
|
|
12
12
|
} & WithStatusProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BaseInputProps } from '../BaseInput';
|
|
3
2
|
export type TextInputProps = BaseInputProps;
|
|
4
3
|
export declare const TextInput: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
-
message?: string
|
|
6
|
-
label?: string
|
|
7
|
-
type?: string
|
|
8
|
-
renderInput?:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
helperText?: string | undefined;
|
|
13
|
-
validationErrorMessage?: string | undefined;
|
|
4
|
+
message?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
renderInput?: Function;
|
|
8
|
+
icon?: import("../../system").IconType | (() => JSX.Element);
|
|
9
|
+
helperText?: string;
|
|
10
|
+
validationErrorMessage?: string;
|
|
14
11
|
} & import("../../system").WithStatusProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -24,18 +24,4 @@ export type BoxProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
24
24
|
* - Box can be both the flex parent and the flex child.
|
|
25
25
|
* - None of the child properties should be applied unless specified.
|
|
26
26
|
*/
|
|
27
|
-
export declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme,
|
|
28
|
-
alignItems?: BoxTypes.AlignItems | undefined;
|
|
29
|
-
display?: BoxTypes.Display | undefined;
|
|
30
|
-
flexDirection?: BoxTypes.FlexDirection | undefined;
|
|
31
|
-
flexWrap?: BoxTypes.FlexWrap | undefined;
|
|
32
|
-
justifyContent?: BoxTypes.JustifyContent | undefined;
|
|
33
|
-
gap?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
34
|
-
alignSelf?: BoxTypes.AlignSelf | undefined;
|
|
35
|
-
flexBasis?: string | undefined;
|
|
36
|
-
flexGrow?: 0 | 1 | undefined;
|
|
37
|
-
flexShrink?: 0 | 1 | undefined;
|
|
38
|
-
order?: number | undefined;
|
|
39
|
-
background?: BoxTypes.BackgroundLevel | undefined;
|
|
40
|
-
padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
41
|
-
}, never>;
|
|
27
|
+
export declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, BoxProps, never>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* IconSet --
|
|
4
3
|
* Design System uses Radix Icons `@modulz/radix-icons`
|
|
@@ -27,7 +26,7 @@ export declare const IconSet: {
|
|
|
27
26
|
readonly ChevronUpIcon: ({ color, ...props }: import("@radix-ui/react-icons/dist/types").IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
readonly ChevronDownIcon: ({ color, ...props }: import("@radix-ui/react-icons/dist/types").IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
28
|
readonly ExclamationCircledFilledIcon: (props: import("@radix-ui/react-icons/dist/types").IconProps & {
|
|
30
|
-
secondaryColor?: string
|
|
29
|
+
secondaryColor?: string;
|
|
31
30
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
32
31
|
readonly FilledCircleIcon: ({ color, ...props }: import("@radix-ui/react-icons/dist/types").IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
32
|
readonly PageIcon: ({ color, ...props }: import("@radix-ui/react-icons/dist/types").IconProps) => import("react/jsx-runtime").JSX.Element;
|