@equisoft/design-elements-react 6.2.1-snapshot.20240524131739 → 6.3.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/bundle.js +1183 -1270
- package/dist/bundle.js.LICENSE.txt +6 -33
- package/dist/components/accordion/accordion.d.ts +0 -1
- package/dist/components/buttons/abstract-button.d.ts +4 -7
- package/dist/components/buttons/button.d.ts +5 -13
- package/dist/components/buttons/icon-button.d.ts +28 -3
- package/dist/components/checkbox/checkbox.d.ts +3 -2
- package/dist/components/date-picker/utils/datepicker-utils.d.ts +0 -5
- package/dist/components/device-context-provider/device-context-provider.d.ts +1 -1
- package/dist/components/dropdown-list/dropdown-list.d.ts +3 -0
- package/dist/components/dropdown-menu/list-items/nav-item.d.ts +0 -2
- package/dist/components/external-link/external-link.d.ts +2 -2
- package/dist/components/global-banner/global-banner.d.ts +3 -4
- package/dist/components/listbox/listbox.d.ts +3 -0
- package/dist/components/lozenge/lozenge.d.ts +2 -3
- package/dist/components/menu/menu.d.ts +0 -1
- package/dist/components/option-button/option-button.d.ts +10 -0
- package/dist/components/pagination/pagination.d.ts +3 -2
- package/dist/components/password-creation-input/password-creation-input.d.ts +4 -0
- package/dist/components/password-input/password-input.d.ts +0 -1
- package/dist/components/progress-tracker/progress-tracker.d.ts +5 -10
- package/dist/components/radio-card-group/styled-components.d.ts +3 -3
- package/dist/components/table/sort-button-icon.d.ts +0 -1
- package/dist/components/table/sortable-column-heading.d.ts +7 -0
- package/dist/components/table/table-row.d.ts +8 -10
- package/dist/components/table/table.d.ts +24 -10
- package/dist/components/table/utils/table-utils.d.ts +0 -3
- package/dist/components/tabs/tab-button.d.ts +1 -2
- package/dist/components/tabs/tab-panel.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/tag/tag.d.ts +7 -5
- package/dist/components/text-input/styles/inputs.d.ts +3 -9
- package/dist/components/text-input/text-input.d.ts +0 -3
- package/dist/components/theme-wrapper/theme-wrapper.d.ts +2 -2
- package/dist/components/toast/toast-container.d.ts +1 -1
- package/dist/components/toast/toast-type.d.ts +2 -3
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +0 -1
- package/dist/hooks/use-click-outside.d.ts +1 -1
- package/dist/hooks/use-list-cursor.d.ts +1 -2
- package/dist/hooks/use-theme.d.ts +2 -2
- package/dist/i18n/translations.d.ts +0 -38
- package/dist/index.d.ts +8 -12
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +1 -1
- package/dist/themes/equisoft.d.ts +2 -1
- package/dist/themes/greys.d.ts +2 -0
- package/dist/themes/index.d.ts +1 -2
- package/dist/themes/main.d.ts +2 -0
- package/dist/themes/notifications.d.ts +2 -0
- package/dist/themes/test-theme.d.ts +2 -0
- package/dist/themes/theme.d.ts +45 -10
- package/dist/themes/tokens.d.ts +2 -0
- package/dist/utils/array.d.ts +2 -13
- package/dist/utils/css-state.d.ts +7 -12
- package/dist/utils/dom.d.ts +0 -1
- package/dist/utils/string.d.ts +0 -1
- package/package.json +31 -30
- package/dist/components/combobox/combobox.d.ts +0 -74
- package/dist/components/table/table-footer.d.ts +0 -8
- package/dist/components/table/table-header.d.ts +0 -8
- package/dist/components/table/types.d.ts +0 -17
- package/dist/components/tag/toggle-tag.d.ts +0 -20
- package/dist/hooks/use-scrollable.d.ts +0 -19
- package/dist/themes/build-theme.d.ts +0 -2
- package/dist/themes/build-theme.test.d.ts +0 -1
- package/dist/themes/tokens/alias-tokens.d.ts +0 -44
- package/dist/themes/tokens/component/accordion-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/avatar-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/badge-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/bento-menu-button-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/button-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/card-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/carousel-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/checkbox-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/chooser-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/combobox-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/datepicker-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/dropdown-list-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/dropdown-menu-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/field-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/focus-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/global-banner-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/global-header-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/global-navigation-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/heading-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/label-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/legend-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/link-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/listbox-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/lozenge-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/menu-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/modal-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/nav-list-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/numeric-input-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/pagination-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/password-input-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/phone-input-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/progress-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/radio-button-group-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/radio-card-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/search-input-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/sectional-banner-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/side-drawer-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/spinner-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/status-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/stepper-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/tab-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/table-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/tag-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/text-area-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/text-input-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/toast-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/toggle-button-group-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/toggle-switch-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/toggletip-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/tooltip-tokens.d.ts +0 -8
- package/dist/themes/tokens/component-tokens.d.ts +0 -63
- package/dist/themes/tokens/index.d.ts +0 -3
- package/dist/themes/tokens/ref/color-utility-tokens.d.ts +0 -6
- package/dist/themes/tokens/ref/palette-tokens.d.ts +0 -6
- package/dist/themes/tokens/ref/text-attributes-tokens.d.ts +0 -6
- package/dist/themes/tokens/ref-tokens.d.ts +0 -10
- package/dist/utility-types.d.ts +0 -1
- package/dist/utils/dev-console.d.ts +0 -3
- package/dist/utils/dom.test.d.ts +0 -1
- /package/dist/components/{progress-indicator → bar}/bar.d.ts +0 -0
- /package/dist/components/{progress-circle → circle}/circle.d.ts +0 -0
- /package/dist/{legacy-constants → tokens}/breakpoints.d.ts +0 -0
- /package/dist/{legacy-constants → tokens}/menuDimensions.d.ts +0 -0
|
@@ -5,15 +5,15 @@ object-assign
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/*!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
Copyright (c) 2018 Jed Watson.
|
|
9
|
+
Licensed under the MIT License (MIT), see
|
|
10
|
+
http://jedwatson.github.io/classnames
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/*!
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
Copyright (c) 2015 Jed Watson.
|
|
15
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
16
|
+
All rights reserved.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
/*!
|
|
@@ -28,33 +28,6 @@ object-assign
|
|
|
28
28
|
* http://api.jqueryui.com/category/ui-core/
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
/*!
|
|
32
|
-
* tabbable 6.2.0
|
|
33
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* react-table
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) TanStack
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
43
|
-
*
|
|
44
|
-
* @license MIT
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* table-core
|
|
49
|
-
*
|
|
50
|
-
* Copyright (c) TanStack
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the MIT license found in the
|
|
53
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
54
|
-
*
|
|
55
|
-
* @license MIT
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
31
|
/** @license React v17.0.2
|
|
59
32
|
* react-dom-server.browser.production.min.js
|
|
60
33
|
*
|
|
@@ -14,7 +14,6 @@ interface AccordionProps {
|
|
|
14
14
|
id?: string;
|
|
15
15
|
items: ItemsProps[];
|
|
16
16
|
mode?: 'single' | 'multi';
|
|
17
|
-
onToggle?: (itemId: string, expanded: boolean) => void;
|
|
18
17
|
}
|
|
19
18
|
export declare const StyledAccordionGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
19
|
export declare const Accordion: React.FC<AccordionProps>;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { FlattenInterpolation, ThemeProps } from 'styled-components';
|
|
3
|
-
import {
|
|
3
|
+
import { Theme } from '../../themes';
|
|
4
4
|
type Size = 'small' | 'medium';
|
|
5
5
|
export declare const defaultButtonStyles: FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
6
|
-
$focusable?: boolean | undefined;
|
|
7
6
|
isMobile: boolean;
|
|
8
7
|
size?: Size | undefined;
|
|
9
8
|
}, import("styled-components").DefaultTheme>>;
|
|
10
9
|
interface AbstractButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
|
-
focusable?: boolean;
|
|
12
10
|
isMobile: boolean;
|
|
13
11
|
size?: Size;
|
|
14
12
|
}
|
|
15
13
|
export declare const AbstractButton: import("react").ForwardRefExoticComponent<AbstractButtonProps & {
|
|
16
14
|
children?: import("react").ReactNode;
|
|
17
15
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive
|
|
16
|
+
export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'destructive-secondary';
|
|
19
17
|
export interface ButtonTypeStyles {
|
|
20
18
|
buttonType: ButtonType;
|
|
21
|
-
focusable?: boolean;
|
|
22
19
|
inverted?: boolean;
|
|
23
|
-
theme:
|
|
20
|
+
theme: Theme;
|
|
24
21
|
}
|
|
25
|
-
export declare const getButtonTypeStyles: (props: ButtonTypeStyles) => FlattenInterpolation<ThemeProps<
|
|
22
|
+
export declare const getButtonTypeStyles: (props: ButtonTypeStyles) => FlattenInterpolation<ThemeProps<Theme>>;
|
|
26
23
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IconName } from '../icon/icon';
|
|
1
|
+
import { KeyboardEvent, MouseEvent } from 'react';
|
|
3
2
|
import { ButtonType } from './abstract-button';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type Size = 'small' | 'medium';
|
|
4
|
+
type Type = 'submit' | 'button' | 'reset';
|
|
5
|
+
interface ButtonProps {
|
|
7
6
|
id?: string;
|
|
8
7
|
autofocus?: boolean;
|
|
9
8
|
/**
|
|
@@ -13,10 +12,6 @@ export interface ButtonProps {
|
|
|
13
12
|
buttonType: ButtonType;
|
|
14
13
|
className?: string;
|
|
15
14
|
disabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @default true
|
|
18
|
-
*/
|
|
19
|
-
focusable?: boolean;
|
|
20
15
|
inverted?: boolean;
|
|
21
16
|
label?: string;
|
|
22
17
|
/**
|
|
@@ -26,13 +21,10 @@ export interface ButtonProps {
|
|
|
26
21
|
size?: Size;
|
|
27
22
|
title?: string;
|
|
28
23
|
type?: Type;
|
|
29
|
-
leftIconName?: IconName;
|
|
30
|
-
rightIconName?: IconName;
|
|
31
24
|
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
32
|
-
onFocus?: FocusEventHandler<HTMLButtonElement>;
|
|
33
|
-
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
34
25
|
onKeyDown?(event: KeyboardEvent<HTMLButtonElement>): void;
|
|
35
26
|
}
|
|
36
27
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & {
|
|
37
28
|
children?: import("react").ReactNode;
|
|
38
29
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
export {};
|
|
@@ -1,12 +1,37 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { KeyboardEvent, MouseEvent, ReactElement } from 'react';
|
|
2
2
|
import { AvatarProps } from '../avatar/avatar';
|
|
3
3
|
import { IconName, IconProps } from '../icon/icon';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { ButtonType } from './abstract-button';
|
|
5
|
+
type Size = 'small' | 'medium';
|
|
6
|
+
type Type = 'submit' | 'button' | 'reset';
|
|
7
|
+
export interface IconButtonProps {
|
|
8
|
+
autofocus?: boolean;
|
|
6
9
|
children?: ReactElement<IconProps | AvatarProps>;
|
|
10
|
+
/**
|
|
11
|
+
* Visual style
|
|
12
|
+
* @default primary
|
|
13
|
+
*/
|
|
14
|
+
buttonType: ButtonType;
|
|
15
|
+
className?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
inverted?: boolean;
|
|
7
18
|
/**
|
|
8
19
|
* Name of the desired icon (refer to icon library)
|
|
9
20
|
*/
|
|
10
21
|
iconName: IconName;
|
|
22
|
+
/**
|
|
23
|
+
* Sets aria-label
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Size variant
|
|
28
|
+
* @default medium
|
|
29
|
+
*/
|
|
30
|
+
size?: Size;
|
|
31
|
+
title?: string;
|
|
32
|
+
type?: Type;
|
|
33
|
+
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
34
|
+
onKeyDown?(event: KeyboardEvent<HTMLButtonElement>): void;
|
|
11
35
|
}
|
|
12
36
|
export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
checked?: boolean;
|
|
4
4
|
className?: string;
|
|
5
5
|
defaultChecked?: boolean;
|
|
@@ -11,4 +11,5 @@ export interface CheckboxProps {
|
|
|
11
11
|
value?: string;
|
|
12
12
|
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
13
13
|
}
|
|
14
|
-
export declare const Checkbox: FunctionComponent<PropsWithChildren<
|
|
14
|
+
export declare const Checkbox: FunctionComponent<PropsWithChildren<Props>>;
|
|
15
|
+
export {};
|
|
@@ -9,8 +9,3 @@ export declare function getLocaleDatePlaceholder(locale?: Locale): string;
|
|
|
9
9
|
export declare function getLocaleMonthsOptions(locale: Locale): DropdownListOption[];
|
|
10
10
|
export declare function getYearsOptions(minDate?: Date | null, maxDate?: Date | null): DropdownListOption[];
|
|
11
11
|
export declare function setLocaleFirstDayOfWeek(locale: Locale, dayOfWeek?: DayOfWeek): void;
|
|
12
|
-
/**
|
|
13
|
-
* The version of format as only numbers (ex: "yyyy-MM-dd" would become "yyyyMMdd").
|
|
14
|
-
* Note that Month and Day are always converted to the 2 digits format.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getNumericalDateFormat(dateFormat: string): string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { Breakpoints } from '../../
|
|
2
|
+
import { Breakpoints } from '../../tokens/breakpoints';
|
|
3
3
|
export type DeviceType = 'desktop' | 'tablet' | 'mobile';
|
|
4
4
|
export interface DeviceContextProviderProps {
|
|
5
5
|
staticDevice?: DeviceType;
|
|
@@ -32,6 +32,9 @@ export interface DropdownListProps<M extends boolean | undefined> {
|
|
|
32
32
|
id?: string;
|
|
33
33
|
label?: string;
|
|
34
34
|
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* { disabled?: boolean, value: string; label: string; }[]
|
|
37
|
+
*/
|
|
35
38
|
options: DropdownListOption[];
|
|
36
39
|
required?: boolean;
|
|
37
40
|
tooltip?: TooltipProps;
|
|
@@ -10,7 +10,6 @@ export interface NavItemProps {
|
|
|
10
10
|
label?: string;
|
|
11
11
|
lozenge?: string;
|
|
12
12
|
end?: boolean;
|
|
13
|
-
isExternalLink?: boolean;
|
|
14
13
|
isHtmlLink?: boolean;
|
|
15
14
|
disabled?: boolean;
|
|
16
15
|
target?: string;
|
|
@@ -24,6 +23,5 @@ interface LinkProps {
|
|
|
24
23
|
}
|
|
25
24
|
export declare const StyledNavItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<NavLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, import("styled-components").DefaultTheme, LinkProps & NavLinkProps, never>;
|
|
26
25
|
export declare const HtmlLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, LinkProps, never>;
|
|
27
|
-
export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<import("../../external-link/external-link").ExternalLinkProps>, import("styled-components").DefaultTheme, LinkProps, never>;
|
|
28
26
|
export declare const NavItem: import("react").ForwardRefExoticComponent<NavItemProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
29
27
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
import { IconName } from '../icon/icon';
|
|
3
3
|
export interface ExternalLinkProps {
|
|
4
4
|
className?: string;
|
|
@@ -7,6 +7,6 @@ export interface ExternalLinkProps {
|
|
|
7
7
|
iconName?: IconName;
|
|
8
8
|
label?: string;
|
|
9
9
|
target?: string;
|
|
10
|
-
onClick?(
|
|
10
|
+
onClick?(): void;
|
|
11
11
|
}
|
|
12
12
|
export declare const ExternalLink: VoidFunctionComponent<ExternalLinkProps>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
export type GlobalBannerType = '
|
|
2
|
+
export type GlobalBannerType = 'alert' | 'warning' | 'info' | 'default';
|
|
3
3
|
export interface ActionButton {
|
|
4
4
|
label: string;
|
|
5
5
|
onClick(event: MouseEvent<HTMLButtonElement>): void;
|
|
6
6
|
}
|
|
7
|
-
interface
|
|
7
|
+
interface Props {
|
|
8
8
|
actionButton?: ActionButton;
|
|
9
9
|
secondaryActionButton?: ActionButton;
|
|
10
10
|
className?: string;
|
|
11
11
|
children: ReactNode;
|
|
12
|
-
id?: string;
|
|
13
12
|
hidden?: boolean;
|
|
14
13
|
/**
|
|
15
14
|
* Adds an ignore-button. Note that alert type banners are not dismissable.
|
|
@@ -19,5 +18,5 @@ interface GlobalBannerProps {
|
|
|
19
18
|
onDismiss?(): void;
|
|
20
19
|
type?: GlobalBannerType;
|
|
21
20
|
}
|
|
22
|
-
export declare const GlobalBanner: import("react").ForwardRefExoticComponent<
|
|
21
|
+
export declare const GlobalBanner: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLElement>>;
|
|
23
22
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
2
|
import { IconName } from '../icon/icon';
|
|
3
|
-
export type
|
|
3
|
+
export type LozengeType = 'default' | 'success' | 'alert' | 'warning' | 'info' | 'disabled';
|
|
4
4
|
interface Props {
|
|
5
5
|
className?: string;
|
|
6
|
-
|
|
6
|
+
type?: LozengeType;
|
|
7
7
|
icon?: IconName;
|
|
8
|
-
subtle?: boolean;
|
|
9
8
|
}
|
|
10
9
|
export declare const Lozenge: FunctionComponent<PropsWithChildren<Props>>;
|
|
11
10
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
interface OptionButtonProps {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
name: string;
|
|
7
|
+
value: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const OptionButton: VoidFunctionComponent<OptionButtonProps>;
|
|
10
|
+
export {};
|
|
@@ -2,9 +2,10 @@ import { VoidFunctionComponent } from 'react';
|
|
|
2
2
|
interface PaginationProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Total number of pages
|
|
6
|
+
* @default desktop
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
totalPages: number;
|
|
8
9
|
/**
|
|
9
10
|
* Displays the total number of results when provided
|
|
10
11
|
*/
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ChangeEvent, VoidFunctionComponent } from 'react';
|
|
2
|
+
import { StyledProps } from 'styled-components';
|
|
2
3
|
import { ValidationCondition } from './validation-condition';
|
|
4
|
+
export declare function getBorderColor({ isValid, theme }: StyledProps<{
|
|
5
|
+
isValid: boolean;
|
|
6
|
+
}>): string;
|
|
3
7
|
interface PasswordCreationInputProps {
|
|
4
8
|
name?: string;
|
|
5
9
|
id?: string;
|
|
@@ -13,6 +13,5 @@ interface PasswordInputProps {
|
|
|
13
13
|
onBlur?(event: FocusEvent<HTMLInputElement>): void;
|
|
14
14
|
onFocus?(event: FocusEvent<HTMLInputElement>): void;
|
|
15
15
|
}
|
|
16
|
-
export declare const ShowPasswordButton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
16
|
export declare const PasswordInput: VoidFunctionComponent<PasswordInputProps>;
|
|
18
17
|
export {};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { VoidFunctionComponent } from 'react';
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
label: string;
|
|
5
|
-
completion?: 'completed' | 'uncompleted';
|
|
6
|
-
onClick?: (stepNumber: number) => void;
|
|
2
|
+
export interface ProgressTracker {
|
|
3
|
+
label?: string;
|
|
7
4
|
}
|
|
8
|
-
interface
|
|
9
|
-
ariaLabel?: string;
|
|
5
|
+
interface ProgressProps {
|
|
10
6
|
className?: string;
|
|
11
|
-
|
|
12
|
-
steps: ProgressTrackerStep[];
|
|
7
|
+
steps: ProgressTracker[];
|
|
13
8
|
value: number;
|
|
14
9
|
}
|
|
15
|
-
export declare const
|
|
10
|
+
export declare const Progress: VoidFunctionComponent<ProgressProps>;
|
|
16
11
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Theme } from '../../themes';
|
|
2
2
|
interface DescriptionProps {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
isMobile: boolean;
|
|
5
5
|
isChecked?: boolean;
|
|
6
|
-
theme:
|
|
6
|
+
theme: Theme;
|
|
7
7
|
}
|
|
8
8
|
interface CardProps {
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
isMobile: boolean;
|
|
11
11
|
isChecked?: boolean;
|
|
12
|
-
theme:
|
|
12
|
+
theme: Theme;
|
|
13
13
|
}
|
|
14
14
|
export declare const RadioInput: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, CardProps, never>;
|
|
15
15
|
export declare const Legend: import("styled-components").StyledComponent<"legend", import("styled-components").DefaultTheme, {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
2
|
export type SortState = 'ascending' | 'descending' | 'none';
|
|
3
3
|
export interface SortButtonIconProps {
|
|
4
|
-
className?: string;
|
|
5
4
|
sort: SortState;
|
|
6
5
|
}
|
|
7
6
|
export declare const SortButtonIcon: FunctionComponent<PropsWithChildren<SortButtonIconProps>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { HeaderGroup } from 'react-table';
|
|
3
|
+
interface SortableColumnHeadingProps<T extends object = {}> {
|
|
4
|
+
header: HeaderGroup<T>;
|
|
5
|
+
}
|
|
6
|
+
export declare const SortableColumnHeading: <T extends object>({ header }: SortableColumnHeadingProps<T>) => ReactElement;
|
|
7
|
+
export {};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Row } from '
|
|
2
|
+
import { Row } from 'react-table';
|
|
3
3
|
interface StyledTableRowProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
clickable: boolean;
|
|
5
|
+
error: boolean;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
striped?: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
interface TableRowProps<T extends object> {
|
|
9
|
+
interface TableRowProps<T extends object> extends Omit<StyledTableRowProps, 'clickable' | 'selected'> {
|
|
11
10
|
row: Row<T>;
|
|
12
|
-
|
|
13
|
-
error: boolean;
|
|
11
|
+
viewIndex: number;
|
|
14
12
|
onClick?(row: Row<T>): void;
|
|
15
13
|
}
|
|
16
|
-
export declare const TableRow: <T extends object>({ error, onClick, row, striped, }: TableRowProps<T>) => ReactElement;
|
|
14
|
+
export declare const TableRow: <T extends object>({ error, onClick, row, striped, viewIndex, }: TableRowProps<T>) => ReactElement;
|
|
17
15
|
export {};
|
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Row,
|
|
3
|
-
import { TableColumn } from './types';
|
|
2
|
+
import { Column, Row, UseSortByColumnOptions } from 'react-table';
|
|
4
3
|
type RowSize = 'small' | 'medium';
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type ColumnSort = 'asc' | 'desc';
|
|
5
|
+
type CustomColumn<T extends object> = Column<T> & UseSortByColumnOptions<T> & {
|
|
7
6
|
defaultSort?: ColumnSort;
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
sortable?: boolean;
|
|
8
|
+
textAlign?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
sticky?: boolean;
|
|
11
|
+
footerColSpan?: number;
|
|
12
|
+
};
|
|
13
|
+
export type TableColumn<T extends object> = CustomColumn<T>[];
|
|
14
|
+
export type TableRow<T> = T & {
|
|
15
|
+
error?: boolean;
|
|
16
|
+
};
|
|
17
|
+
interface CustomRowProps {
|
|
18
|
+
error?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface TableProps<T extends object> {
|
|
21
|
+
className?: string;
|
|
22
|
+
footerColSpan?: number | undefined;
|
|
23
|
+
columns: TableColumn<T>;
|
|
24
|
+
/** Array of Objects that defines your table data.
|
|
25
|
+
* See stories code or refer to react-table docs for more information */
|
|
26
|
+
data: (T & CustomRowProps)[];
|
|
10
27
|
/**
|
|
11
28
|
* Adds row numbers
|
|
12
29
|
* @default false
|
|
@@ -23,13 +40,10 @@ export interface TableProps<T extends object> {
|
|
|
23
40
|
* @default false
|
|
24
41
|
*/
|
|
25
42
|
striped?: boolean;
|
|
26
|
-
className?: string;
|
|
27
43
|
stickyHeader?: boolean;
|
|
28
44
|
stickyFooter?: boolean;
|
|
29
|
-
manualSort?: boolean;
|
|
30
45
|
onRowClick?(row: Row<T>): void;
|
|
31
46
|
onSelectedRowsChange?(selectedRows: T[]): void;
|
|
32
|
-
onSort?(sort: ColumnSort | null): void;
|
|
33
47
|
}
|
|
34
|
-
export declare const Table: <T extends object>({ className,
|
|
48
|
+
export declare const Table: <T extends object>({ className, columns, data, rowNumbers, rowSize, selectableRows, striped, onRowClick, onSelectedRowsChange, stickyHeader, stickyFooter, }: TableProps<T>) => ReactElement;
|
|
35
49
|
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Column } from '@tanstack/react-table';
|
|
3
2
|
export declare function calculateStickyColumns(stickyColumns: boolean[], headerCells: NodeListOf<HTMLTableCellElement>, rows: NodeListOf<HTMLTableRowElement>): void;
|
|
4
3
|
export declare function calculateStickyHeader(stickyColumns: boolean[], headerCells: NodeListOf<HTMLTableCellElement>): void;
|
|
5
4
|
export declare function calculateStickyFooter(stickyColumns: boolean[], footerCells: NodeListOf<HTMLTableCellElement>): void;
|
|
6
5
|
export declare function calculateStickyPosition(stickyColumns: boolean[], stickyHeader: boolean, stickyFooter: boolean, tableRef: React.RefObject<HTMLTableElement>): void;
|
|
7
|
-
export declare function isAGroupColumn<TData, TValue>(column: Column<TData, TValue>): boolean;
|
|
8
|
-
export declare function isLastColumnInAGroup<TData, TValue>(column: Column<TData, TValue>): boolean;
|
|
@@ -9,8 +9,7 @@ interface TabButtonProps {
|
|
|
9
9
|
rightIcon?: IconName;
|
|
10
10
|
isSelected: boolean;
|
|
11
11
|
onClick(): void;
|
|
12
|
-
|
|
13
|
-
onKeyDown?(event: KeyboardEvent<HTMLDivElement>): void;
|
|
12
|
+
onKeyDown?(event: KeyboardEvent<HTMLButtonElement>): void;
|
|
14
13
|
}
|
|
15
14
|
export declare const TabButton: import("react").ForwardRefExoticComponent<TabButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
15
|
export {};
|
|
@@ -2,9 +2,9 @@ import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
|
2
2
|
interface TabPanelProps {
|
|
3
3
|
buttonId: string;
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
contained?: boolean;
|
|
5
6
|
hidden: boolean;
|
|
6
7
|
id: string;
|
|
7
|
-
global?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const TabPanel: FunctionComponent<PropsWithChildren<TabPanelProps>>;
|
|
10
10
|
export {};
|
|
@@ -10,11 +10,11 @@ export interface Tab {
|
|
|
10
10
|
}
|
|
11
11
|
interface Props {
|
|
12
12
|
className?: string;
|
|
13
|
+
/** Not available in global mode */
|
|
14
|
+
contained?: boolean;
|
|
13
15
|
forceRenderTabPanels?: boolean;
|
|
14
16
|
global?: boolean;
|
|
15
17
|
tabs: Tab[];
|
|
16
|
-
onAddTab?(): void;
|
|
17
|
-
onRemove?(tabId: string): void;
|
|
18
18
|
}
|
|
19
19
|
export declare const Tabs: VoidFunctionComponent<Props>;
|
|
20
20
|
export {};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconName } from '../icon/icon';
|
|
3
|
-
|
|
4
|
-
export type TagSize = 'small' | 'medium';
|
|
3
|
+
type TagSize = 'small' | 'medium';
|
|
5
4
|
export interface TagValue {
|
|
6
5
|
id?: string;
|
|
7
6
|
label: string;
|
|
8
7
|
}
|
|
9
8
|
export interface TagProps {
|
|
10
9
|
className?: string;
|
|
10
|
+
iconName?: IconName;
|
|
11
11
|
size?: TagSize;
|
|
12
12
|
value: TagValue;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/** Mutually exclusive with onDelete */
|
|
14
|
+
onClick?(tag: TagValue): void;
|
|
15
|
+
/** Mutually exclusive with onClick */
|
|
16
|
+
onDelete?(tag: TagValue): void;
|
|
16
17
|
}
|
|
17
18
|
export declare const Tag: import("react").ForwardRefExoticComponent<TagProps & import("react").RefAttributes<HTMLElement>>;
|
|
19
|
+
export {};
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { FlattenSimpleInterpolation } from 'styled-components';
|
|
2
|
-
import {
|
|
2
|
+
import { Theme } from '../../../themes';
|
|
3
3
|
import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
4
|
-
export
|
|
5
|
-
theme: ResolvedTheme;
|
|
6
|
-
isMobile?: boolean;
|
|
7
|
-
isFocusable?: boolean;
|
|
8
|
-
isValid?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const inputsStyle: ({ theme, isMobile, isFocusable, isValid, }: InputStyleOptions) => FlattenSimpleInterpolation;
|
|
4
|
+
export declare const inputsStyle: (theme: Theme, isMobile?: boolean) => FlattenSimpleInterpolation;
|
|
11
5
|
interface ResponsiveInputsStyles {
|
|
12
|
-
theme:
|
|
6
|
+
theme: Theme;
|
|
13
7
|
device: DeviceContextProps;
|
|
14
8
|
}
|
|
15
9
|
export declare const responsiveInputsStyle: ({ theme, device: { isMobile } }: ResponsiveInputsStyles) => FlattenSimpleInterpolation;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, DetailedHTMLProps, FocusEvent, InputHTMLAttributes, KeyboardEvent, MouseEvent } from 'react';
|
|
2
2
|
import { TooltipProps } from '../tooltip/tooltip';
|
|
3
|
-
export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
4
|
-
isMobile: boolean;
|
|
5
|
-
}, never>;
|
|
6
3
|
type PartialInputProps = Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'inputMode' | 'name' | 'value' | 'autoComplete'>;
|
|
7
4
|
interface TextInputProps extends PartialInputProps {
|
|
8
5
|
ariaDescribedBy?: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Theme } from '../../themes';
|
|
3
3
|
export interface ThemeWrapperProps {
|
|
4
4
|
/**
|
|
5
5
|
* When true, components are mounted in the Shadow DOM
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
isolateStyles?: boolean;
|
|
9
|
-
theme?:
|
|
9
|
+
theme?: Theme;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated Use {@link DesignSystem} instead
|