@equisoft/design-elements-react 6.1.3-snapshot.20240410141002 → 6.2.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 +897 -965
- 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 +0 -4
- package/dist/components/buttons/icon-button.d.ts +0 -4
- package/dist/components/device-context-provider/device-context-provider.d.ts +1 -1
- package/dist/components/dropdown-list/dropdown-list.d.ts +5 -1
- 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 -3
- package/dist/components/icon/icon.d.ts +3 -0
- 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/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 +10 -5
- package/dist/components/table/table.d.ts +21 -10
- package/dist/components/text-input/styles/inputs.d.ts +3 -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 -24
- package/dist/index.d.ts +4 -6
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +1 -1
- package/dist/themes/equisoft.d.ts +2 -2
- package/dist/themes/greys.d.ts +2 -0
- package/dist/themes/index.d.ts +1 -1
- 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 +1 -20
- package/dist/themes/tokens.d.ts +2 -0
- package/dist/utils/array.d.ts +2 -13
- package/dist/utils/css-state.d.ts +4 -4
- package/dist/utils/dom.d.ts +0 -1
- package/dist/utils/string.d.ts +0 -1
- package/package.json +14 -13
- 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 -12
- package/dist/themes/default-theme.d.ts +0 -2
- package/dist/themes/merge-theme.d.ts +0 -2
- package/dist/themes/merge-theme.test.d.ts +0 -1
- package/dist/themes/tokens/alias-tokens.d.ts +0 -7
- 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-link-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/external-link-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/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/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-item-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-circle-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/progress-indicator-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/progress-tracker-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/route-link-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/skip-link-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/sort-button-icon-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-container-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 -68
- package/dist/themes/tokens/index.d.ts +0 -3
- package/dist/themes/tokens/legacy-tokens.d.ts +0 -5
- 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 -9
- 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' | 'destructive-secondary'
|
|
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,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;
|
|
@@ -4,7 +4,7 @@ import { TooltipProps } from '../tooltip/tooltip';
|
|
|
4
4
|
export interface DropdownListOption extends ListboxOption {
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface DropdownListProps {
|
|
8
8
|
/**
|
|
9
9
|
* Aria label for the input (used when no visual label is present)
|
|
10
10
|
*/
|
|
@@ -27,6 +27,9 @@ export interface DropdownListProps {
|
|
|
27
27
|
id?: string;
|
|
28
28
|
label?: string;
|
|
29
29
|
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* { disabled?: boolean, value: string; label: string; }[]
|
|
32
|
+
*/
|
|
30
33
|
options: DropdownListOption[];
|
|
31
34
|
required?: boolean;
|
|
32
35
|
tooltip?: TooltipProps;
|
|
@@ -50,3 +53,4 @@ export interface DropdownListProps {
|
|
|
50
53
|
onChange?(option: DropdownListOption): void;
|
|
51
54
|
}
|
|
52
55
|
export declare const DropdownList: VoidFunctionComponent<DropdownListProps>;
|
|
56
|
+
export {};
|
|
@@ -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,10 +1,10 @@
|
|
|
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;
|
|
@@ -18,5 +18,5 @@ interface GlobalBannerProps {
|
|
|
18
18
|
onDismiss?(): void;
|
|
19
19
|
type?: GlobalBannerType;
|
|
20
20
|
}
|
|
21
|
-
export declare const GlobalBanner: import("react").ForwardRefExoticComponent<
|
|
21
|
+
export declare const GlobalBanner: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLElement>>;
|
|
22
22
|
export {};
|
|
@@ -8,6 +8,8 @@ declare const iconMapping: {
|
|
|
8
8
|
readonly arrowLeft: any;
|
|
9
9
|
readonly arrowRight: any;
|
|
10
10
|
readonly arrowUp: any;
|
|
11
|
+
readonly arrowDownCircle: any;
|
|
12
|
+
readonly arrowUpCircle: any;
|
|
11
13
|
readonly bell: any;
|
|
12
14
|
readonly bento: any;
|
|
13
15
|
readonly calendar: any;
|
|
@@ -52,6 +54,7 @@ declare const iconMapping: {
|
|
|
52
54
|
readonly star: any;
|
|
53
55
|
readonly transfer: any;
|
|
54
56
|
readonly trash: any;
|
|
57
|
+
readonly unlink: any;
|
|
55
58
|
readonly user: any;
|
|
56
59
|
readonly users: any;
|
|
57
60
|
readonly warningFilled: any;
|
|
@@ -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,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,10 +1,15 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Row } from '
|
|
3
|
-
interface
|
|
4
|
-
|
|
5
|
-
striped: boolean;
|
|
2
|
+
import { Row } from 'react-table';
|
|
3
|
+
interface StyledTableRowProps {
|
|
4
|
+
clickable: boolean;
|
|
6
5
|
error: boolean;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
striped?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface TableRowProps<T extends object> extends Omit<StyledTableRowProps, 'clickable' | 'selected'> {
|
|
10
|
+
row: Row<T>;
|
|
11
|
+
viewIndex: number;
|
|
7
12
|
onClick?(row: Row<T>): void;
|
|
8
13
|
}
|
|
9
|
-
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;
|
|
10
15
|
export {};
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Row,
|
|
3
|
-
import { CustomColumnDef } from './types';
|
|
2
|
+
import { Column, Row, UseSortByColumnOptions } from 'react-table';
|
|
4
3
|
type RowSize = 'small' | 'medium';
|
|
5
|
-
|
|
4
|
+
type ColumnSort = 'asc' | 'desc';
|
|
5
|
+
type CustomColumn<T extends object> = Column<T> & UseSortByColumnOptions<T> & {
|
|
6
|
+
defaultSort?: ColumnSort;
|
|
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>[];
|
|
6
14
|
export type TableRow<T> = T & {
|
|
7
15
|
error?: boolean;
|
|
8
16
|
};
|
|
17
|
+
interface CustomRowProps {
|
|
18
|
+
error?: boolean;
|
|
19
|
+
}
|
|
9
20
|
export interface TableProps<T extends object> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
columns:
|
|
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)[];
|
|
13
27
|
/**
|
|
14
28
|
* Adds row numbers
|
|
15
29
|
* @default false
|
|
@@ -26,13 +40,10 @@ export interface TableProps<T extends object> {
|
|
|
26
40
|
* @default false
|
|
27
41
|
*/
|
|
28
42
|
striped?: boolean;
|
|
29
|
-
className?: string;
|
|
30
43
|
stickyHeader?: boolean;
|
|
31
44
|
stickyFooter?: boolean;
|
|
32
|
-
manualSort?: boolean;
|
|
33
45
|
onRowClick?(row: Row<T>): void;
|
|
34
46
|
onSelectedRowsChange?(selectedRows: T[]): void;
|
|
35
|
-
onSort?(sort: ColumnSort | null): void;
|
|
36
47
|
}
|
|
37
|
-
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;
|
|
38
49
|
export {};
|
|
@@ -1,9 +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 declare const inputsStyle: (theme:
|
|
4
|
+
export declare const inputsStyle: (theme: Theme, isMobile?: boolean) => FlattenSimpleInterpolation;
|
|
5
5
|
interface ResponsiveInputsStyles {
|
|
6
|
-
theme:
|
|
6
|
+
theme: Theme;
|
|
7
7
|
device: DeviceContextProps;
|
|
8
8
|
}
|
|
9
9
|
export declare const responsiveInputsStyle: ({ theme, device: { isMobile } }: ResponsiveInputsStyles) => FlattenSimpleInterpolation;
|
|
@@ -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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
export declare function useClickOutside(targets: MutableRefObject<
|
|
2
|
+
export declare function useClickOutside<T extends HTMLElement>(targets: MutableRefObject<T | null>[], callback: () => void): void;
|
|
@@ -10,7 +10,6 @@ interface UseListCursorRequest<T> {
|
|
|
10
10
|
elements: T[];
|
|
11
11
|
initialElement?: T;
|
|
12
12
|
predicate?: (element: T) => boolean;
|
|
13
|
-
wrapAround?: boolean;
|
|
14
13
|
}
|
|
15
|
-
export declare function useListCursor<TElement>({ elements, initialElement, predicate,
|
|
14
|
+
export declare function useListCursor<TElement>({ elements, initialElement, predicate, }: UseListCursorRequest<TElement>): UseListCursorResponse<TElement>;
|
|
16
15
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function useTheme():
|
|
1
|
+
import { Theme } from '../themes';
|
|
2
|
+
export declare function useTheme(): Theme;
|
|
@@ -7,14 +7,6 @@ export declare const Translations: {
|
|
|
7
7
|
productsLabel: string;
|
|
8
8
|
externalsLabel: string;
|
|
9
9
|
};
|
|
10
|
-
combobox: {
|
|
11
|
-
clearInput: string;
|
|
12
|
-
loading: string;
|
|
13
|
-
noResult: string;
|
|
14
|
-
noResultForQuery: string;
|
|
15
|
-
showOptions: string;
|
|
16
|
-
validationErrorMessage: string;
|
|
17
|
-
};
|
|
18
10
|
common: {
|
|
19
11
|
opensInNewTab: string;
|
|
20
12
|
opensInNewTabScreenReader: string;
|
|
@@ -85,10 +77,6 @@ export declare const Translations: {
|
|
|
85
77
|
'show-password': string;
|
|
86
78
|
'hide-password': string;
|
|
87
79
|
};
|
|
88
|
-
'progress-tracker': {
|
|
89
|
-
completedAriaLabel: string;
|
|
90
|
-
uncompletedAriaLabel: string;
|
|
91
|
-
};
|
|
92
80
|
'search-input': {
|
|
93
81
|
label: string;
|
|
94
82
|
};
|
|
@@ -139,14 +127,6 @@ export declare const Translations: {
|
|
|
139
127
|
productsLabel: string;
|
|
140
128
|
externalsLabel: string;
|
|
141
129
|
};
|
|
142
|
-
combobox: {
|
|
143
|
-
clearInput: string;
|
|
144
|
-
loading: string;
|
|
145
|
-
noResult: string;
|
|
146
|
-
noResultForQuery: string;
|
|
147
|
-
showOptions: string;
|
|
148
|
-
validationErrorMessage: string;
|
|
149
|
-
};
|
|
150
130
|
common: {
|
|
151
131
|
opensInNewTab: string;
|
|
152
132
|
opensInNewTabScreenReader: string;
|
|
@@ -217,10 +197,6 @@ export declare const Translations: {
|
|
|
217
197
|
'show-password': string;
|
|
218
198
|
'hide-password': string;
|
|
219
199
|
};
|
|
220
|
-
'progress-tracker': {
|
|
221
|
-
completedAriaLabel: string;
|
|
222
|
-
uncompletedAriaLabel: string;
|
|
223
|
-
};
|
|
224
200
|
'search-input': {
|
|
225
201
|
label: string;
|
|
226
202
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var __DS_DEV__: boolean;
|
|
3
|
-
}
|
|
4
1
|
export { Button } from './components/buttons/button';
|
|
5
2
|
export { IconButton } from './components/buttons/icon-button';
|
|
6
3
|
export { NavListOption } from './components/nav-list/nav-list-option';
|
|
@@ -11,11 +8,11 @@ export { ToggleButtonGroup } from './components/toggle-button-group/toggle-butto
|
|
|
11
8
|
export { Avatar } from './components/avatar/avatar';
|
|
12
9
|
export { Checkbox } from './components/checkbox/checkbox';
|
|
13
10
|
export { CheckboxGroup } from './components/checkbox-group/checkbox-group';
|
|
14
|
-
export { Combobox, ComboboxOption } from './components/combobox/combobox';
|
|
15
11
|
export { Datepicker, DatepickerHandles } from './components/date-picker/date-picker';
|
|
16
12
|
export { DropdownList, DropdownListOption } from './components/dropdown-list/dropdown-list';
|
|
17
13
|
export { MoneyInput } from './components/money-input/money-input';
|
|
18
14
|
export { NumericInput } from './components/numeric-input/numeric-input';
|
|
15
|
+
export { OptionButton } from './components/option-button/option-button';
|
|
19
16
|
export { PasswordCreationInput } from './components/password-creation-input/password-creation-input';
|
|
20
17
|
export { PasswordInput } from './components/password-input/password-input';
|
|
21
18
|
export { PhoneInput } from './components/phone-input/phone-input';
|
|
@@ -52,7 +49,7 @@ export { SideDrawer } from './components/side-drawer/side-drawer';
|
|
|
52
49
|
export { GlobalBanner, GlobalBannerType } from './components/global-banner/global-banner';
|
|
53
50
|
export * from './components/tooltip/tooltip';
|
|
54
51
|
export * from './components/toggletip/toggletip';
|
|
55
|
-
export
|
|
52
|
+
export * from './components/table/table';
|
|
56
53
|
export { Modal } from './components/modal/modal';
|
|
57
54
|
export { ModalDialog } from './components/modal/modal-dialog';
|
|
58
55
|
export { Tag, TagProps, TagValue } from './components/tag/tag';
|
|
@@ -74,7 +71,8 @@ export { ProgressIndicator } from './components/progress-indicator/progress-indi
|
|
|
74
71
|
export { ProgressCircle } from './components/progress-circle/progress-circle';
|
|
75
72
|
export { Pagination } from './components/pagination/pagination';
|
|
76
73
|
export { equisoftTheme } from './themes/equisoft';
|
|
74
|
+
export { testTheme } from './themes/test-theme';
|
|
77
75
|
export { injectMainCss } from './styles';
|
|
78
|
-
export {
|
|
76
|
+
export { Theme } from './themes/theme';
|
|
79
77
|
export { useTheme } from './hooks/use-theme';
|
|
80
78
|
export * from './components/design-system';
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { equisoftTheme } from './themes/equisoft';
|
|
2
|
-
export {
|
|
2
|
+
export { Theme } from './themes/theme';
|