@openfin/ui-library 0.30.21 → 0.31.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.
- package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/ContentMenuItem.d.ts +17 -15
- 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 +66 -37
- package/dist/components/elements/DropdownMenu/dropdownMenu.d.ts +3 -0
- package/dist/components/elements/DropdownMenu/menu.d.ts +5 -0
- package/dist/components/elements/Icon/icon.d.ts +1 -0
- package/dist/components/elements/Label/label.d.ts +1 -0
- 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 +13 -11
- package/dist/components/input/Checkbox/checkbox.d.ts +10 -11
- package/dist/components/input/Checkbox/checkbox.variants.d.ts +21 -0
- package/dist/components/input/DateInput/dateInput.d.ts +3 -1
- package/dist/components/input/NumberInput/numberInput.d.ts +4 -1
- 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 +10 -7
- package/dist/components/layout/Box/box.d.ts +15 -1
- package/dist/components/system/ThemeProvider/lib/iconSet.d.ts +2 -1
- package/dist/components/typography/Heading/heading.d.ts +96 -96
- package/dist/components/typography/Text/text.d.ts +6 -1
- package/dist/hooks/useColorScheme.d.ts +1 -1
- package/dist/hooks/useTheme.d.ts +2 -2
- package/dist/index.js +145 -108
- package/dist/storybookHelpers.d.ts +53 -52
- package/package.json +41 -38
|
@@ -34,21 +34,23 @@ 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
|
-
|
|
37
|
+
alignItems?: import("../../../../layout/Box/types").AlignItems | undefined; /**
|
|
38
|
+
* Object representing the content menu item entry.
|
|
39
|
+
*/
|
|
40
|
+
display?: import("../../../../layout/Box/types").Display | undefined;
|
|
41
|
+
flexDirection?: import("../../../../layout/Box/types").FlexDirection | undefined;
|
|
42
|
+
flexWrap?: import("../../../../layout/Box/types").FlexWrap | undefined;
|
|
43
|
+
justifyContent?: import("../../../../layout/Box/types").JustifyContent | undefined;
|
|
44
|
+
gap?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
45
|
+
alignSelf?: import("../../../../layout/Box/types").AlignSelf | undefined;
|
|
46
|
+
flexBasis?: string | undefined;
|
|
47
|
+
flexGrow?: 0 | 1 | undefined;
|
|
48
|
+
flexShrink?: 0 | 1 | undefined;
|
|
49
|
+
order?: number | undefined;
|
|
50
|
+
background?: import("../../../../layout/Box/types").BackgroundLevel | undefined;
|
|
51
|
+
padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
50
52
|
} & {
|
|
51
|
-
enabled?: string;
|
|
52
|
-
selected?: boolean;
|
|
53
|
+
enabled?: string | undefined;
|
|
54
|
+
selected?: boolean | undefined;
|
|
53
55
|
} & ContentMenuItemContainerProps, never>;
|
|
54
56
|
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?: (height: number, width: number) => void) => {
|
|
21
|
+
}>>, setSelectedIndex: React.Dispatch<React.SetStateAction<number>>, menuCollection: SubMenuNavigationTemplate[], onMenuResize?: ((height: number, width: number) => void) | undefined) => {
|
|
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,51 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MenuFrame: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLDivElement> & {
|
|
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>;
|
|
3
32
|
export declare const MenuItemInnerContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLDivElement> & {
|
|
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?:
|
|
10
|
-
alignSelf?: import("../../layout/Box/types").AlignSelf;
|
|
11
|
-
flexBasis?: string;
|
|
12
|
-
flexGrow?: 1 |
|
|
13
|
-
flexShrink?: 1 |
|
|
14
|
-
order?: number;
|
|
15
|
-
background?: import("../../layout/Box/types").BackgroundLevel;
|
|
16
|
-
padding?:
|
|
33
|
+
alignItems?: import("../../layout/Box/types").AlignItems | undefined;
|
|
34
|
+
display?: import("../../layout/Box/types").Display | undefined;
|
|
35
|
+
flexDirection?: import("../../layout/Box/types").FlexDirection | undefined;
|
|
36
|
+
flexWrap?: import("../../layout/Box/types").FlexWrap | undefined;
|
|
37
|
+
justifyContent?: import("../../layout/Box/types").JustifyContent | undefined;
|
|
38
|
+
gap?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
39
|
+
alignSelf?: import("../../layout/Box/types").AlignSelf | undefined;
|
|
40
|
+
flexBasis?: string | undefined;
|
|
41
|
+
flexGrow?: 0 | 1 | undefined;
|
|
42
|
+
flexShrink?: 0 | 1 | undefined;
|
|
43
|
+
order?: number | undefined;
|
|
44
|
+
background?: import("../../layout/Box/types").BackgroundLevel | undefined;
|
|
45
|
+
padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
17
46
|
} & {
|
|
18
|
-
enabled?: string;
|
|
19
|
-
selected?: boolean;
|
|
47
|
+
enabled?: string | undefined;
|
|
48
|
+
selected?: boolean | undefined;
|
|
20
49
|
}, never>;
|
|
21
50
|
export declare const MenuItemIconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLDivElement> & {
|
|
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?:
|
|
28
|
-
alignSelf?: import("../../layout/Box/types").AlignSelf;
|
|
29
|
-
flexBasis?: string;
|
|
30
|
-
flexGrow?: 1 |
|
|
31
|
-
flexShrink?: 1 |
|
|
32
|
-
order?: number;
|
|
33
|
-
background?: import("../../layout/Box/types").BackgroundLevel;
|
|
34
|
-
padding?:
|
|
51
|
+
alignItems?: import("../../layout/Box/types").AlignItems | undefined;
|
|
52
|
+
display?: import("../../layout/Box/types").Display | undefined;
|
|
53
|
+
flexDirection?: import("../../layout/Box/types").FlexDirection | undefined;
|
|
54
|
+
flexWrap?: import("../../layout/Box/types").FlexWrap | undefined;
|
|
55
|
+
justifyContent?: import("../../layout/Box/types").JustifyContent | undefined;
|
|
56
|
+
gap?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
57
|
+
alignSelf?: import("../../layout/Box/types").AlignSelf | undefined;
|
|
58
|
+
flexBasis?: string | undefined;
|
|
59
|
+
flexGrow?: 0 | 1 | undefined;
|
|
60
|
+
flexShrink?: 0 | 1 | undefined;
|
|
61
|
+
order?: number | undefined;
|
|
62
|
+
background?: import("../../layout/Box/types").BackgroundLevel | undefined;
|
|
63
|
+
padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
35
64
|
} & {
|
|
36
|
-
side:
|
|
65
|
+
side: 'left' | 'right';
|
|
37
66
|
}, never>;
|
|
38
67
|
export declare const MenuItemIconButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
39
|
-
side:
|
|
68
|
+
side: 'left' | 'right';
|
|
40
69
|
}, never>;
|
|
41
70
|
export declare const MenuItemRightIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../elements/Icon").IconProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
42
|
-
enabled?: boolean;
|
|
71
|
+
enabled?: boolean | undefined;
|
|
43
72
|
}, never>;
|
|
44
73
|
export declare const MenuItemText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLElement> & {
|
|
45
|
-
color?: "textDefault" | "background6";
|
|
74
|
+
color?: "textDefault" | "background6" | undefined;
|
|
46
75
|
children: import("react").ReactNode;
|
|
47
|
-
size?:
|
|
48
|
-
weight?:
|
|
76
|
+
size?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
77
|
+
weight?: "normal" | "bold" | undefined;
|
|
49
78
|
} & {
|
|
50
|
-
enabled?: boolean;
|
|
79
|
+
enabled?: boolean | undefined;
|
|
51
80
|
}, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { MenuOption } from './menu';
|
|
3
|
+
export type MenuPosition = 'above' | 'below';
|
|
3
4
|
export interface DropdownMenuProps {
|
|
4
5
|
label?: string;
|
|
5
6
|
selected?: MenuOption;
|
|
@@ -9,5 +10,7 @@ export interface DropdownMenuProps {
|
|
|
9
10
|
placeholder?: string;
|
|
10
11
|
renderLabel?: (option: MenuOption, isOpen: boolean, onClick: () => void, focusedOption?: MenuOption) => ReactNode;
|
|
11
12
|
fitContent?: boolean;
|
|
13
|
+
menuPosition?: MenuPosition;
|
|
14
|
+
maxHeight?: string;
|
|
12
15
|
}
|
|
13
16
|
export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { MenuPosition } from './dropdownMenu';
|
|
2
3
|
export interface MenuOption {
|
|
3
4
|
title: string;
|
|
4
5
|
value: unknown;
|
|
@@ -57,6 +58,10 @@ export interface MenuProps {
|
|
|
57
58
|
* The menu should be positioned absolutely.
|
|
58
59
|
*/
|
|
59
60
|
absolutePosition?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The position of the menu relative to the button ('above' or 'below').
|
|
63
|
+
*/
|
|
64
|
+
menuPosition?: MenuPosition;
|
|
60
65
|
}
|
|
61
66
|
export declare const Menu: React.FC<MenuProps>;
|
|
62
67
|
export declare const ButtonImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -14,5 +14,6 @@ export type IconSizeProps = {
|
|
|
14
14
|
};
|
|
15
15
|
export type IconProps = HTMLAttributes<HTMLDivElement> & (PropsWithIcon | PropsWithChild) & IconSizeProps & {
|
|
16
16
|
'data-testid'?: string;
|
|
17
|
+
enabled?: boolean;
|
|
17
18
|
};
|
|
18
19
|
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, IconSizeProps & HTMLAttributes<HTMLDivElement>, 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, IconSizeProps & HTMLAttributes<HTMLDivElement>, never>;
|
|
@@ -5,7 +5,9 @@ export type BaseInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
5
5
|
message?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
type?: string;
|
|
8
|
-
renderInput?:
|
|
8
|
+
renderInput?: (props: InputHTMLAttributes<HTMLInputElement> & {
|
|
9
|
+
status?: string;
|
|
10
|
+
}) => JSX.Element;
|
|
9
11
|
icon?: IconType | (() => JSX.Element);
|
|
10
12
|
helperText?: string;
|
|
11
13
|
validationErrorMessage?: string;
|
|
@@ -14,14 +16,14 @@ export type BaseInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
14
16
|
* @private This should not be exposed beyond the ui-library.
|
|
15
17
|
*/
|
|
16
18
|
export declare const BaseInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
17
|
-
message?: string;
|
|
18
|
-
label?: string;
|
|
19
|
-
type?: string;
|
|
20
|
-
renderInput?:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
message?: string | undefined;
|
|
20
|
+
label?: string | undefined;
|
|
21
|
+
type?: string | undefined;
|
|
22
|
+
renderInput?: ((props: InputHTMLAttributes<HTMLInputElement> & {
|
|
23
|
+
status?: string;
|
|
24
|
+
}) => JSX.Element) | undefined;
|
|
25
|
+
icon?: "OpenFinIcon" | "BellIcon" | "WorkspaceIcon" | "LockedClosedFilledIcon" | "MinimizeIcon" | "LightBulbFilledIcon" | "LightBulbOutlinedIcon" | "FilterIcon" | "BrokenLinkIcon" | "FloppyDiskIcon" | "StackIcon" | "BellFilledIcon" | "StorefrontIcon" | "FragmentsIcon" | "ChevronRightIcon" | "ChevronLeftIcon" | "ChevronUpIcon" | "ChevronDownIcon" | "ExclamationCircledFilledIcon" | "FilledCircleIcon" | "PageIcon" | "RedDotIcon" | "BookmarkFilled" | "BookmarkOutlined" | "FallbackGlobeIcon" | "BlockedIcon" | "EnterpriseGlobeIcon" | "SupertabIcon" | "CollectionIcon" | "AccessibilityIcon" | "ActivityLogIcon" | "AlignBaselineIcon" | "AlignBottomIcon" | "AlignCenterHorizontallyIcon" | "AlignCenterVerticallyIcon" | "AlignLeftIcon" | "AlignRightIcon" | "AlignTopIcon" | "AllSidesIcon" | "AngleIcon" | "ArchiveIcon" | "ArrowBottomLeftIcon" | "ArrowBottomRightIcon" | "ArrowDownIcon" | "ArrowLeftIcon" | "ArrowRightIcon" | "ArrowTopLeftIcon" | "ArrowTopRightIcon" | "ArrowUpIcon" | "AspectRatioIcon" | "AvatarIcon" | "BackpackIcon" | "BadgeIcon" | "BarChartIcon" | "BlendingModeIcon" | "BookmarkIcon" | "BookmarkFilledIcon" | "BorderAllIcon" | "BorderBottomIcon" | "BorderDashedIcon" | "BorderDottedIcon" | "BorderLeftIcon" | "BorderNoneIcon" | "BorderRightIcon" | "BorderSolidIcon" | "BorderSplitIcon" | "BorderStyleIcon" | "BorderTopIcon" | "BorderWidthIcon" | "BoxIcon" | "BoxModelIcon" | "ButtonIcon" | "CalendarIcon" | "CameraIcon" | "CardStackIcon" | "CardStackMinusIcon" | "CardStackPlusIcon" | "CaretDownIcon" | "CaretLeftIcon" | "CaretRightIcon" | "CaretSortIcon" | "CaretUpIcon" | "ChatBubbleIcon" | "CheckIcon" | "CheckCircledIcon" | "CheckboxIcon" | "CircleIcon" | "CircleBackslashIcon" | "ClipboardIcon" | "ClipboardCopyIcon" | "ClockIcon" | "CodeIcon" | "CodeSandboxLogoIcon" | "ColorWheelIcon" | "ColumnSpacingIcon" | "ColumnsIcon" | "CommitIcon" | "Component1Icon" | "Component2Icon" | "ComponentBooleanIcon" | "ComponentInstanceIcon" | "ComponentNoneIcon" | "ComponentPlaceholderIcon" | "ContainerIcon" | "CookieIcon" | "CopyIcon" | "CornerBottomLeftIcon" | "CornerBottomRightIcon" | "CornerTopLeftIcon" | "CornerTopRightIcon" | "CornersIcon" | "CountdownTimerIcon" | "CounterClockwiseClockIcon" | "CropIcon" | "Cross1Icon" | "Cross2Icon" | "CrossCircledIcon" | "Crosshair1Icon" | "Crosshair2Icon" | "CrumpledPaperIcon" | "CubeIcon" | "CursorArrowIcon" | "CursorTextIcon" | "DashIcon" | "DashboardIcon" | "DesktopIcon" | "DimensionsIcon" | "DiscIcon" | "DiscordLogoIcon" | "DividerHorizontalIcon" | "DividerVerticalIcon" | "DotIcon" | "DotFilledIcon" | "DotsHorizontalIcon" | "DotsVerticalIcon" | "DoubleArrowDownIcon" | "DoubleArrowLeftIcon" | "DoubleArrowRightIcon" | "DoubleArrowUpIcon" | "DownloadIcon" | "DragHandleDots1Icon" | "DragHandleDots2Icon" | "DragHandleHorizontalIcon" | "DragHandleVerticalIcon" | "DrawingPinIcon" | "DrawingPinFilledIcon" | "DropdownMenuIcon" | "EnterIcon" | "EnterFullScreenIcon" | "EnvelopeClosedIcon" | "EnvelopeOpenIcon" | "EraserIcon" | "ExclamationTriangleIcon" | "ExitIcon" | "ExitFullScreenIcon" | "ExternalLinkIcon" | "EyeClosedIcon" | "EyeNoneIcon" | "EyeOpenIcon" | "FaceIcon" | "FigmaLogoIcon" | "FileIcon" | "FileMinusIcon" | "FilePlusIcon" | "FileTextIcon" | "FontBoldIcon" | "FontFamilyIcon" | "FontItalicIcon" | "FontRomanIcon" | "FontSizeIcon" | "FontStyleIcon" | "FrameIcon" | "FramerLogoIcon" | "GearIcon" | "GitHubLogoIcon" | "GlobeIcon" | "GridIcon" | "GroupIcon" | "Half1Icon" | "Half2Icon" | "HamburgerMenuIcon" | "HandIcon" | "HeadingIcon" | "HeartIcon" | "HeartFilledIcon" | "HeightIcon" | "HobbyKnifeIcon" | "HomeIcon" | "IconJarLogoIcon" | "IdCardIcon" | "ImageIcon" | "InfoCircledIcon" | "InputIcon" | "InstagramLogoIcon" | "KeyboardIcon" | "LapTimerIcon" | "LaptopIcon" | "LayersIcon" | "LayoutIcon" | "LetterCaseCapitalizeIcon" | "LetterCaseLowercaseIcon" | "LetterCaseToggleIcon" | "LetterCaseUppercaseIcon" | "LetterSpacingIcon" | "LightningBoltIcon" | "LineHeightIcon" | "Link1Icon" | "Link2Icon" | "LinkBreak1Icon" | "LinkBreak2Icon" | "LinkNone1Icon" | "LinkNone2Icon" | "LinkedInLogoIcon" | "ListBulletIcon" | "LockClosedIcon" | "LockOpen1Icon" | "LockOpen2Icon" | "LoopIcon" | "MagicWandIcon" | "MagnifyingGlassIcon" | "MarginIcon" | "MaskOffIcon" | "MaskOnIcon" | "MinusIcon" | "MinusCircledIcon" | "MixIcon" | "MixerHorizontalIcon" | "MixerVerticalIcon" | "MobileIcon" | "ModulzLogoIcon" | "MoonIcon" | "MoveIcon" | "NotionLogoIcon" | "OpacityIcon" | "OpenInNewWindowIcon" | "OverlineIcon" | "PaddingIcon" | "PaperPlaneIcon" | "PauseIcon" | "Pencil1Icon" | "Pencil2Icon" | "PersonIcon" | "PieChartIcon" | "PilcrowIcon" | "PinBottomIcon" | "PinLeftIcon" | "PinRightIcon" | "PinTopIcon" | "PlayIcon" | "PlusIcon" | "PlusCircledIcon" | "QuestionMarkIcon" | "QuestionMarkCircledIcon" | "QuoteIcon" | "RadiobuttonIcon" | "ReaderIcon" | "ReloadIcon" | "ResetIcon" | "ResumeIcon" | "RocketIcon" | "RotateCounterClockwiseIcon" | "RowSpacingIcon" | "RowsIcon" | "RulerHorizontalIcon" | "RulerSquareIcon" | "ScissorsIcon" | "SectionIcon" | "SewingPinIcon" | "SewingPinFilledIcon" | "ShadowIcon" | "ShadowInnerIcon" | "ShadowNoneIcon" | "ShadowOuterIcon" | "Share1Icon" | "Share2Icon" | "ShuffleIcon" | "SizeIcon" | "SketchLogoIcon" | "SlashIcon" | "SliderIcon" | "SpaceBetweenHorizontallyIcon" | "SpaceBetweenVerticallyIcon" | "SpaceEvenlyHorizontallyIcon" | "SpaceEvenlyVerticallyIcon" | "SpeakerLoudIcon" | "SpeakerModerateIcon" | "SpeakerOffIcon" | "SpeakerQuietIcon" | "SquareIcon" | "StarIcon" | "StarFilledIcon" | "StitchesLogoIcon" | "StopIcon" | "StopwatchIcon" | "StretchHorizontallyIcon" | "StretchVerticallyIcon" | "StrikethroughIcon" | "SunIcon" | "SwitchIcon" | "SymbolIcon" | "TableIcon" | "TargetIcon" | "TextIcon" | "TextAlignBottomIcon" | "TextAlignCenterIcon" | "TextAlignJustifyIcon" | "TextAlignLeftIcon" | "TextAlignMiddleIcon" | "TextAlignRightIcon" | "TextAlignTopIcon" | "TextNoneIcon" | "ThickArrowDownIcon" | "ThickArrowLeftIcon" | "ThickArrowRightIcon" | "ThickArrowUpIcon" | "TimerIcon" | "TokensIcon" | "TrackNextIcon" | "TrackPreviousIcon" | "TransformIcon" | "TransparencyGridIcon" | "TrashIcon" | "TriangleDownIcon" | "TriangleLeftIcon" | "TriangleRightIcon" | "TriangleUpIcon" | "TwitterLogoIcon" | "UnderlineIcon" | "UpdateIcon" | "UploadIcon" | "ValueIcon" | "ValueNoneIcon" | "VercelLogoIcon" | "VideoIcon" | "ViewGridIcon" | "ViewHorizontalIcon" | "ViewNoneIcon" | "ViewVerticalIcon" | "WidthIcon" | "ZoomInIcon" | "ZoomOutIcon" | (() => JSX.Element) | undefined;
|
|
26
|
+
helperText?: string | undefined;
|
|
27
|
+
validationErrorMessage?: string | undefined;
|
|
24
28
|
} & WithStatusProps & React.RefAttributes<HTMLInputElement>>;
|
|
25
|
-
|
|
26
|
-
export declare const StyledInputField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, StyledInputProps, never>;
|
|
27
|
-
export {};
|
|
29
|
+
export declare const StyledInputField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, React.InputHTMLAttributes<HTMLInputElement> & WithStatusProps, never>;
|
|
@@ -1,13 +1,12 @@
|
|
|
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
|
-
|
|
13
|
-
} & WithStatusProps & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
import { StatusType } from '../../system/HOC';
|
|
4
|
+
import { CheckboxVariant } from './checkbox.variants';
|
|
5
|
+
export type CheckboxProps = Omit<BaseInputProps, 'status'> & {
|
|
6
|
+
variant?: keyof typeof CheckboxVariant;
|
|
7
|
+
status?: StatusType;
|
|
8
|
+
};
|
|
9
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<Omit<BaseInputProps, "status"> & {
|
|
10
|
+
variant?: "default" | "primary" | undefined;
|
|
11
|
+
status?: StatusType | undefined;
|
|
12
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define all Checkbox Variants here in one place.
|
|
3
|
+
* Variants should match the variants in Figma
|
|
4
|
+
*/
|
|
5
|
+
export declare const Variant: {
|
|
6
|
+
readonly variant: "variant";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Checkbox Variant -- Describes the "role" of a checkbox
|
|
10
|
+
*/
|
|
11
|
+
export declare const CheckboxVariant: {
|
|
12
|
+
readonly default: "default";
|
|
13
|
+
readonly primary: "primary";
|
|
14
|
+
};
|
|
15
|
+
export type CheckboxVariantType = keyof typeof CheckboxVariant;
|
|
16
|
+
export declare const variants: {
|
|
17
|
+
readonly variant: {
|
|
18
|
+
readonly default: import("styled-components").FlattenSimpleInterpolation;
|
|
19
|
+
readonly primary: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ChangeEventHandler, MouseEventHandler } from 'react';
|
|
2
2
|
import { BaseInputProps } from '../BaseInput';
|
|
3
|
+
import { StatusType } from '../../system/HOC';
|
|
3
4
|
type DateTypeFormat = 'date' | 'time' | 'datetime-local';
|
|
4
|
-
interface DateInputProps extends Omit<BaseInputProps, 'value' | 'type'> {
|
|
5
|
+
interface DateInputProps extends Omit<BaseInputProps, 'value' | 'type' | 'status'> {
|
|
5
6
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
6
7
|
onExpand?: MouseEventHandler<HTMLDivElement>;
|
|
7
8
|
expanded?: boolean;
|
|
8
9
|
value?: string;
|
|
9
10
|
type?: DateTypeFormat;
|
|
11
|
+
status?: StatusType;
|
|
10
12
|
}
|
|
11
13
|
export declare const DateInput: import("react").ForwardRefExoticComponent<DateInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
14
|
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BaseInputProps } from '../BaseInput';
|
|
2
3
|
import { IconType } from '../../system/ThemeProvider';
|
|
4
|
+
import { StatusType } from '../../system/HOC';
|
|
3
5
|
export declare enum Direction {
|
|
4
6
|
Up = 1,
|
|
5
7
|
Down = -1
|
|
6
8
|
}
|
|
7
|
-
interface NumberInputProps extends Omit<BaseInputProps, 'value'> {
|
|
9
|
+
interface NumberInputProps extends Omit<BaseInputProps, 'value' | 'status'> {
|
|
8
10
|
min?: number;
|
|
9
11
|
max?: number;
|
|
10
12
|
/**
|
|
@@ -12,6 +14,7 @@ interface NumberInputProps extends Omit<BaseInputProps, 'value'> {
|
|
|
12
14
|
*/
|
|
13
15
|
step?: number;
|
|
14
16
|
value?: number;
|
|
17
|
+
status?: StatusType;
|
|
15
18
|
/**
|
|
16
19
|
* @default undefined
|
|
17
20
|
* 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 | undefined;
|
|
12
|
+
labelSide?: RadioLabelSideType | undefined;
|
|
13
|
+
icon?: "OpenFinIcon" | "BellIcon" | "WorkspaceIcon" | "LockedClosedFilledIcon" | "MinimizeIcon" | "LightBulbFilledIcon" | "LightBulbOutlinedIcon" | "FilterIcon" | "BrokenLinkIcon" | "FloppyDiskIcon" | "StackIcon" | "BellFilledIcon" | "StorefrontIcon" | "FragmentsIcon" | "ChevronRightIcon" | "ChevronLeftIcon" | "ChevronUpIcon" | "ChevronDownIcon" | "ExclamationCircledFilledIcon" | "FilledCircleIcon" | "PageIcon" | "RedDotIcon" | "BookmarkFilled" | "BookmarkOutlined" | "FallbackGlobeIcon" | "BlockedIcon" | "EnterpriseGlobeIcon" | "SupertabIcon" | "CollectionIcon" | "AccessibilityIcon" | "ActivityLogIcon" | "AlignBaselineIcon" | "AlignBottomIcon" | "AlignCenterHorizontallyIcon" | "AlignCenterVerticallyIcon" | "AlignLeftIcon" | "AlignRightIcon" | "AlignTopIcon" | "AllSidesIcon" | "AngleIcon" | "ArchiveIcon" | "ArrowBottomLeftIcon" | "ArrowBottomRightIcon" | "ArrowDownIcon" | "ArrowLeftIcon" | "ArrowRightIcon" | "ArrowTopLeftIcon" | "ArrowTopRightIcon" | "ArrowUpIcon" | "AspectRatioIcon" | "AvatarIcon" | "BackpackIcon" | "BadgeIcon" | "BarChartIcon" | "BlendingModeIcon" | "BookmarkIcon" | "BookmarkFilledIcon" | "BorderAllIcon" | "BorderBottomIcon" | "BorderDashedIcon" | "BorderDottedIcon" | "BorderLeftIcon" | "BorderNoneIcon" | "BorderRightIcon" | "BorderSolidIcon" | "BorderSplitIcon" | "BorderStyleIcon" | "BorderTopIcon" | "BorderWidthIcon" | "BoxIcon" | "BoxModelIcon" | "ButtonIcon" | "CalendarIcon" | "CameraIcon" | "CardStackIcon" | "CardStackMinusIcon" | "CardStackPlusIcon" | "CaretDownIcon" | "CaretLeftIcon" | "CaretRightIcon" | "CaretSortIcon" | "CaretUpIcon" | "ChatBubbleIcon" | "CheckIcon" | "CheckCircledIcon" | "CheckboxIcon" | "CircleIcon" | "CircleBackslashIcon" | "ClipboardIcon" | "ClipboardCopyIcon" | "ClockIcon" | "CodeIcon" | "CodeSandboxLogoIcon" | "ColorWheelIcon" | "ColumnSpacingIcon" | "ColumnsIcon" | "CommitIcon" | "Component1Icon" | "Component2Icon" | "ComponentBooleanIcon" | "ComponentInstanceIcon" | "ComponentNoneIcon" | "ComponentPlaceholderIcon" | "ContainerIcon" | "CookieIcon" | "CopyIcon" | "CornerBottomLeftIcon" | "CornerBottomRightIcon" | "CornerTopLeftIcon" | "CornerTopRightIcon" | "CornersIcon" | "CountdownTimerIcon" | "CounterClockwiseClockIcon" | "CropIcon" | "Cross1Icon" | "Cross2Icon" | "CrossCircledIcon" | "Crosshair1Icon" | "Crosshair2Icon" | "CrumpledPaperIcon" | "CubeIcon" | "CursorArrowIcon" | "CursorTextIcon" | "DashIcon" | "DashboardIcon" | "DesktopIcon" | "DimensionsIcon" | "DiscIcon" | "DiscordLogoIcon" | "DividerHorizontalIcon" | "DividerVerticalIcon" | "DotIcon" | "DotFilledIcon" | "DotsHorizontalIcon" | "DotsVerticalIcon" | "DoubleArrowDownIcon" | "DoubleArrowLeftIcon" | "DoubleArrowRightIcon" | "DoubleArrowUpIcon" | "DownloadIcon" | "DragHandleDots1Icon" | "DragHandleDots2Icon" | "DragHandleHorizontalIcon" | "DragHandleVerticalIcon" | "DrawingPinIcon" | "DrawingPinFilledIcon" | "DropdownMenuIcon" | "EnterIcon" | "EnterFullScreenIcon" | "EnvelopeClosedIcon" | "EnvelopeOpenIcon" | "EraserIcon" | "ExclamationTriangleIcon" | "ExitIcon" | "ExitFullScreenIcon" | "ExternalLinkIcon" | "EyeClosedIcon" | "EyeNoneIcon" | "EyeOpenIcon" | "FaceIcon" | "FigmaLogoIcon" | "FileIcon" | "FileMinusIcon" | "FilePlusIcon" | "FileTextIcon" | "FontBoldIcon" | "FontFamilyIcon" | "FontItalicIcon" | "FontRomanIcon" | "FontSizeIcon" | "FontStyleIcon" | "FrameIcon" | "FramerLogoIcon" | "GearIcon" | "GitHubLogoIcon" | "GlobeIcon" | "GridIcon" | "GroupIcon" | "Half1Icon" | "Half2Icon" | "HamburgerMenuIcon" | "HandIcon" | "HeadingIcon" | "HeartIcon" | "HeartFilledIcon" | "HeightIcon" | "HobbyKnifeIcon" | "HomeIcon" | "IconJarLogoIcon" | "IdCardIcon" | "ImageIcon" | "InfoCircledIcon" | "InputIcon" | "InstagramLogoIcon" | "KeyboardIcon" | "LapTimerIcon" | "LaptopIcon" | "LayersIcon" | "LayoutIcon" | "LetterCaseCapitalizeIcon" | "LetterCaseLowercaseIcon" | "LetterCaseToggleIcon" | "LetterCaseUppercaseIcon" | "LetterSpacingIcon" | "LightningBoltIcon" | "LineHeightIcon" | "Link1Icon" | "Link2Icon" | "LinkBreak1Icon" | "LinkBreak2Icon" | "LinkNone1Icon" | "LinkNone2Icon" | "LinkedInLogoIcon" | "ListBulletIcon" | "LockClosedIcon" | "LockOpen1Icon" | "LockOpen2Icon" | "LoopIcon" | "MagicWandIcon" | "MagnifyingGlassIcon" | "MarginIcon" | "MaskOffIcon" | "MaskOnIcon" | "MinusIcon" | "MinusCircledIcon" | "MixIcon" | "MixerHorizontalIcon" | "MixerVerticalIcon" | "MobileIcon" | "ModulzLogoIcon" | "MoonIcon" | "MoveIcon" | "NotionLogoIcon" | "OpacityIcon" | "OpenInNewWindowIcon" | "OverlineIcon" | "PaddingIcon" | "PaperPlaneIcon" | "PauseIcon" | "Pencil1Icon" | "Pencil2Icon" | "PersonIcon" | "PieChartIcon" | "PilcrowIcon" | "PinBottomIcon" | "PinLeftIcon" | "PinRightIcon" | "PinTopIcon" | "PlayIcon" | "PlusIcon" | "PlusCircledIcon" | "QuestionMarkIcon" | "QuestionMarkCircledIcon" | "QuoteIcon" | "RadiobuttonIcon" | "ReaderIcon" | "ReloadIcon" | "ResetIcon" | "ResumeIcon" | "RocketIcon" | "RotateCounterClockwiseIcon" | "RowSpacingIcon" | "RowsIcon" | "RulerHorizontalIcon" | "RulerSquareIcon" | "ScissorsIcon" | "SectionIcon" | "SewingPinIcon" | "SewingPinFilledIcon" | "ShadowIcon" | "ShadowInnerIcon" | "ShadowNoneIcon" | "ShadowOuterIcon" | "Share1Icon" | "Share2Icon" | "ShuffleIcon" | "SizeIcon" | "SketchLogoIcon" | "SlashIcon" | "SliderIcon" | "SpaceBetweenHorizontallyIcon" | "SpaceBetweenVerticallyIcon" | "SpaceEvenlyHorizontallyIcon" | "SpaceEvenlyVerticallyIcon" | "SpeakerLoudIcon" | "SpeakerModerateIcon" | "SpeakerOffIcon" | "SpeakerQuietIcon" | "SquareIcon" | "StarIcon" | "StarFilledIcon" | "StitchesLogoIcon" | "StopIcon" | "StopwatchIcon" | "StretchHorizontallyIcon" | "StretchVerticallyIcon" | "StrikethroughIcon" | "SunIcon" | "SwitchIcon" | "SymbolIcon" | "TableIcon" | "TargetIcon" | "TextIcon" | "TextAlignBottomIcon" | "TextAlignCenterIcon" | "TextAlignJustifyIcon" | "TextAlignLeftIcon" | "TextAlignMiddleIcon" | "TextAlignRightIcon" | "TextAlignTopIcon" | "TextNoneIcon" | "ThickArrowDownIcon" | "ThickArrowLeftIcon" | "ThickArrowRightIcon" | "ThickArrowUpIcon" | "TimerIcon" | "TokensIcon" | "TrackNextIcon" | "TrackPreviousIcon" | "TransformIcon" | "TransparencyGridIcon" | "TrashIcon" | "TriangleDownIcon" | "TriangleLeftIcon" | "TriangleRightIcon" | "TriangleUpIcon" | "TwitterLogoIcon" | "UnderlineIcon" | "UpdateIcon" | "UploadIcon" | "ValueIcon" | "ValueNoneIcon" | "VercelLogoIcon" | "VideoIcon" | "ViewGridIcon" | "ViewHorizontalIcon" | "ViewNoneIcon" | "ViewVerticalIcon" | "WidthIcon" | "ZoomInIcon" | "ZoomOutIcon" | undefined;
|
|
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?: (e?: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
10
|
-
label?: string;
|
|
11
|
-
helperText?: string;
|
|
9
|
+
onChange?: ((e?: ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
|
|
10
|
+
label?: string | undefined;
|
|
11
|
+
helperText?: string | undefined;
|
|
12
12
|
} & WithStatusProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BaseInputProps } from '../BaseInput';
|
|
2
3
|
export type TextInputProps = BaseInputProps;
|
|
3
4
|
export declare const TextInput: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
-
message?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
renderInput?:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
message?: string | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
type?: string | undefined;
|
|
8
|
+
renderInput?: ((props: import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
9
|
+
status?: string | undefined;
|
|
10
|
+
}) => JSX.Element) | undefined;
|
|
11
|
+
icon?: "OpenFinIcon" | "BellIcon" | "WorkspaceIcon" | "LockedClosedFilledIcon" | "MinimizeIcon" | "LightBulbFilledIcon" | "LightBulbOutlinedIcon" | "FilterIcon" | "BrokenLinkIcon" | "FloppyDiskIcon" | "StackIcon" | "BellFilledIcon" | "StorefrontIcon" | "FragmentsIcon" | "ChevronRightIcon" | "ChevronLeftIcon" | "ChevronUpIcon" | "ChevronDownIcon" | "ExclamationCircledFilledIcon" | "FilledCircleIcon" | "PageIcon" | "RedDotIcon" | "BookmarkFilled" | "BookmarkOutlined" | "FallbackGlobeIcon" | "BlockedIcon" | "EnterpriseGlobeIcon" | "SupertabIcon" | "CollectionIcon" | "AccessibilityIcon" | "ActivityLogIcon" | "AlignBaselineIcon" | "AlignBottomIcon" | "AlignCenterHorizontallyIcon" | "AlignCenterVerticallyIcon" | "AlignLeftIcon" | "AlignRightIcon" | "AlignTopIcon" | "AllSidesIcon" | "AngleIcon" | "ArchiveIcon" | "ArrowBottomLeftIcon" | "ArrowBottomRightIcon" | "ArrowDownIcon" | "ArrowLeftIcon" | "ArrowRightIcon" | "ArrowTopLeftIcon" | "ArrowTopRightIcon" | "ArrowUpIcon" | "AspectRatioIcon" | "AvatarIcon" | "BackpackIcon" | "BadgeIcon" | "BarChartIcon" | "BlendingModeIcon" | "BookmarkIcon" | "BookmarkFilledIcon" | "BorderAllIcon" | "BorderBottomIcon" | "BorderDashedIcon" | "BorderDottedIcon" | "BorderLeftIcon" | "BorderNoneIcon" | "BorderRightIcon" | "BorderSolidIcon" | "BorderSplitIcon" | "BorderStyleIcon" | "BorderTopIcon" | "BorderWidthIcon" | "BoxIcon" | "BoxModelIcon" | "ButtonIcon" | "CalendarIcon" | "CameraIcon" | "CardStackIcon" | "CardStackMinusIcon" | "CardStackPlusIcon" | "CaretDownIcon" | "CaretLeftIcon" | "CaretRightIcon" | "CaretSortIcon" | "CaretUpIcon" | "ChatBubbleIcon" | "CheckIcon" | "CheckCircledIcon" | "CheckboxIcon" | "CircleIcon" | "CircleBackslashIcon" | "ClipboardIcon" | "ClipboardCopyIcon" | "ClockIcon" | "CodeIcon" | "CodeSandboxLogoIcon" | "ColorWheelIcon" | "ColumnSpacingIcon" | "ColumnsIcon" | "CommitIcon" | "Component1Icon" | "Component2Icon" | "ComponentBooleanIcon" | "ComponentInstanceIcon" | "ComponentNoneIcon" | "ComponentPlaceholderIcon" | "ContainerIcon" | "CookieIcon" | "CopyIcon" | "CornerBottomLeftIcon" | "CornerBottomRightIcon" | "CornerTopLeftIcon" | "CornerTopRightIcon" | "CornersIcon" | "CountdownTimerIcon" | "CounterClockwiseClockIcon" | "CropIcon" | "Cross1Icon" | "Cross2Icon" | "CrossCircledIcon" | "Crosshair1Icon" | "Crosshair2Icon" | "CrumpledPaperIcon" | "CubeIcon" | "CursorArrowIcon" | "CursorTextIcon" | "DashIcon" | "DashboardIcon" | "DesktopIcon" | "DimensionsIcon" | "DiscIcon" | "DiscordLogoIcon" | "DividerHorizontalIcon" | "DividerVerticalIcon" | "DotIcon" | "DotFilledIcon" | "DotsHorizontalIcon" | "DotsVerticalIcon" | "DoubleArrowDownIcon" | "DoubleArrowLeftIcon" | "DoubleArrowRightIcon" | "DoubleArrowUpIcon" | "DownloadIcon" | "DragHandleDots1Icon" | "DragHandleDots2Icon" | "DragHandleHorizontalIcon" | "DragHandleVerticalIcon" | "DrawingPinIcon" | "DrawingPinFilledIcon" | "DropdownMenuIcon" | "EnterIcon" | "EnterFullScreenIcon" | "EnvelopeClosedIcon" | "EnvelopeOpenIcon" | "EraserIcon" | "ExclamationTriangleIcon" | "ExitIcon" | "ExitFullScreenIcon" | "ExternalLinkIcon" | "EyeClosedIcon" | "EyeNoneIcon" | "EyeOpenIcon" | "FaceIcon" | "FigmaLogoIcon" | "FileIcon" | "FileMinusIcon" | "FilePlusIcon" | "FileTextIcon" | "FontBoldIcon" | "FontFamilyIcon" | "FontItalicIcon" | "FontRomanIcon" | "FontSizeIcon" | "FontStyleIcon" | "FrameIcon" | "FramerLogoIcon" | "GearIcon" | "GitHubLogoIcon" | "GlobeIcon" | "GridIcon" | "GroupIcon" | "Half1Icon" | "Half2Icon" | "HamburgerMenuIcon" | "HandIcon" | "HeadingIcon" | "HeartIcon" | "HeartFilledIcon" | "HeightIcon" | "HobbyKnifeIcon" | "HomeIcon" | "IconJarLogoIcon" | "IdCardIcon" | "ImageIcon" | "InfoCircledIcon" | "InputIcon" | "InstagramLogoIcon" | "KeyboardIcon" | "LapTimerIcon" | "LaptopIcon" | "LayersIcon" | "LayoutIcon" | "LetterCaseCapitalizeIcon" | "LetterCaseLowercaseIcon" | "LetterCaseToggleIcon" | "LetterCaseUppercaseIcon" | "LetterSpacingIcon" | "LightningBoltIcon" | "LineHeightIcon" | "Link1Icon" | "Link2Icon" | "LinkBreak1Icon" | "LinkBreak2Icon" | "LinkNone1Icon" | "LinkNone2Icon" | "LinkedInLogoIcon" | "ListBulletIcon" | "LockClosedIcon" | "LockOpen1Icon" | "LockOpen2Icon" | "LoopIcon" | "MagicWandIcon" | "MagnifyingGlassIcon" | "MarginIcon" | "MaskOffIcon" | "MaskOnIcon" | "MinusIcon" | "MinusCircledIcon" | "MixIcon" | "MixerHorizontalIcon" | "MixerVerticalIcon" | "MobileIcon" | "ModulzLogoIcon" | "MoonIcon" | "MoveIcon" | "NotionLogoIcon" | "OpacityIcon" | "OpenInNewWindowIcon" | "OverlineIcon" | "PaddingIcon" | "PaperPlaneIcon" | "PauseIcon" | "Pencil1Icon" | "Pencil2Icon" | "PersonIcon" | "PieChartIcon" | "PilcrowIcon" | "PinBottomIcon" | "PinLeftIcon" | "PinRightIcon" | "PinTopIcon" | "PlayIcon" | "PlusIcon" | "PlusCircledIcon" | "QuestionMarkIcon" | "QuestionMarkCircledIcon" | "QuoteIcon" | "RadiobuttonIcon" | "ReaderIcon" | "ReloadIcon" | "ResetIcon" | "ResumeIcon" | "RocketIcon" | "RotateCounterClockwiseIcon" | "RowSpacingIcon" | "RowsIcon" | "RulerHorizontalIcon" | "RulerSquareIcon" | "ScissorsIcon" | "SectionIcon" | "SewingPinIcon" | "SewingPinFilledIcon" | "ShadowIcon" | "ShadowInnerIcon" | "ShadowNoneIcon" | "ShadowOuterIcon" | "Share1Icon" | "Share2Icon" | "ShuffleIcon" | "SizeIcon" | "SketchLogoIcon" | "SlashIcon" | "SliderIcon" | "SpaceBetweenHorizontallyIcon" | "SpaceBetweenVerticallyIcon" | "SpaceEvenlyHorizontallyIcon" | "SpaceEvenlyVerticallyIcon" | "SpeakerLoudIcon" | "SpeakerModerateIcon" | "SpeakerOffIcon" | "SpeakerQuietIcon" | "SquareIcon" | "StarIcon" | "StarFilledIcon" | "StitchesLogoIcon" | "StopIcon" | "StopwatchIcon" | "StretchHorizontallyIcon" | "StretchVerticallyIcon" | "StrikethroughIcon" | "SunIcon" | "SwitchIcon" | "SymbolIcon" | "TableIcon" | "TargetIcon" | "TextIcon" | "TextAlignBottomIcon" | "TextAlignCenterIcon" | "TextAlignJustifyIcon" | "TextAlignLeftIcon" | "TextAlignMiddleIcon" | "TextAlignRightIcon" | "TextAlignTopIcon" | "TextNoneIcon" | "ThickArrowDownIcon" | "ThickArrowLeftIcon" | "ThickArrowRightIcon" | "ThickArrowUpIcon" | "TimerIcon" | "TokensIcon" | "TrackNextIcon" | "TrackPreviousIcon" | "TransformIcon" | "TransparencyGridIcon" | "TrashIcon" | "TriangleDownIcon" | "TriangleLeftIcon" | "TriangleRightIcon" | "TriangleUpIcon" | "TwitterLogoIcon" | "UnderlineIcon" | "UpdateIcon" | "UploadIcon" | "ValueIcon" | "ValueNoneIcon" | "VercelLogoIcon" | "VideoIcon" | "ViewGridIcon" | "ViewHorizontalIcon" | "ViewNoneIcon" | "ViewVerticalIcon" | "WidthIcon" | "ZoomInIcon" | "ZoomOutIcon" | (() => JSX.Element) | undefined;
|
|
12
|
+
helperText?: string | undefined;
|
|
13
|
+
validationErrorMessage?: string | undefined;
|
|
11
14
|
} & import("../../system").WithStatusProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -24,4 +24,18 @@ 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,
|
|
27
|
+
export declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, HTMLAttributes<HTMLDivElement> & {
|
|
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>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
* IconSet --
|
|
3
4
|
* Design System uses Radix Icons `@modulz/radix-icons`
|
|
@@ -26,7 +27,7 @@ export declare const IconSet: {
|
|
|
26
27
|
readonly ChevronUpIcon: ({ color, ...props }: import("@radix-ui/react-icons/dist/types").IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
28
|
readonly ChevronDownIcon: ({ color, ...props }: import("@radix-ui/react-icons/dist/types").IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
readonly ExclamationCircledFilledIcon: (props: import("@radix-ui/react-icons/dist/types").IconProps & {
|
|
29
|
-
secondaryColor?: string;
|
|
30
|
+
secondaryColor?: string | undefined;
|
|
30
31
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
readonly FilledCircleIcon: ({ color, ...props }: import("@radix-ui/react-icons/dist/types").IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
33
|
readonly PageIcon: ({ color, ...props }: import("@radix-ui/react-icons/dist/types").IconProps) => import("react/jsx-runtime").JSX.Element;
|