@equisoft/design-elements-react 5.2.5-snapshot.20230503004022 → 5.2.5-snapshot.20230505145145
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 +89 -89
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/buttons/abstract-button.d.ts +1 -1
- package/dist/components/buttons/button.d.ts +2 -2
- package/dist/components/buttons/icon-button.d.ts +2 -2
- package/dist/components/carousel/carousel-reducer.d.ts +1 -1
- package/dist/components/datepicker/utils/datepicker-utils.d.ts +2 -2
- package/dist/components/design-system.d.ts +1 -1
- package/dist/components/device-context-provider/device-context-provider.d.ts +1 -1
- package/dist/components/global-banner/global-banner.d.ts +1 -1
- package/dist/components/global-header/logo.d.ts +1 -1
- package/dist/components/heading/heading.d.ts +2 -2
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/listbox/listbox.d.ts +1 -1
- package/dist/components/lozenge/lozenge.d.ts +1 -1
- package/dist/components/route-link/styles/styled-link.d.ts +1 -1
- package/dist/components/search/search-contextual.d.ts +1 -1
- package/dist/components/search/search-global.d.ts +1 -1
- package/dist/components/sectional-banner/sectional-banner.d.ts +1 -1
- package/dist/components/side-drawer/side-drawer.d.ts +1 -1
- package/dist/components/status/status.d.ts +1 -1
- package/dist/components/stepper-input/stepper-input.d.ts +2 -2
- package/dist/components/table/sort-button-icon.d.ts +1 -1
- package/dist/components/table/table.d.ts +5 -5
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/text-input/text-input.d.ts +1 -1
- package/dist/components/toast/toast-position.d.ts +1 -1
- package/dist/components/toast/toast-type.d.ts +1 -1
- package/dist/components/toast/toasts-reducer.d.ts +3 -3
- package/dist/components/toggletip/toggletip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
type BadgePosition = 'top-right' | 'bottom-right' | 'top-left' | 'bottom-left';
|
|
3
3
|
export declare const BadgeCircle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
4
4
|
$animate?: boolean | undefined;
|
|
5
5
|
$position: BadgePosition;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
import { NavMenuOption } from '../nav-menu/nav-menu-option';
|
|
3
|
-
export
|
|
3
|
+
export type BreadcrumbElement = NavMenuOption;
|
|
4
4
|
interface BreadcrumbProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
history: BreadcrumbElement[];
|
|
@@ -10,7 +10,7 @@ interface AbstractButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
10
10
|
export declare const AbstractButton: import("react").ForwardRefExoticComponent<AbstractButtonProps & {
|
|
11
11
|
children?: import("react").ReactNode;
|
|
12
12
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
|
|
13
|
+
type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
|
|
14
14
|
export interface ButtonTypeStyles {
|
|
15
15
|
buttonType: ButtonType;
|
|
16
16
|
inverted?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyboardEvent, MouseEvent } from 'react';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
|
|
3
|
+
type Type = 'submit' | 'button' | 'reset';
|
|
4
4
|
interface ButtonProps {
|
|
5
5
|
autofocus?: boolean;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KeyboardEvent, MouseEvent, ReactElement } from 'react';
|
|
2
2
|
import { AvatarProps } from '../avatar/avatar';
|
|
3
3
|
import { IconName, IconProps } from '../icon/icon';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
|
|
5
|
+
type Type = 'submit' | 'button' | 'reset';
|
|
6
6
|
export interface IconButtonProps {
|
|
7
7
|
autofocus?: boolean;
|
|
8
8
|
children?: ReactElement<IconProps | AvatarProps>;
|
|
@@ -22,6 +22,6 @@ interface CarouselDragAction {
|
|
|
22
22
|
type: 'drag';
|
|
23
23
|
offset: number;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type CarouselAction = CarouselJumpAction | CarouselNextAction | CarouselPrevAction | CarouselDragAction | CarouselDoneAction;
|
|
26
26
|
export declare function carouselReducer(state: CarouselState, action: CarouselAction): CarouselState;
|
|
27
27
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Locale } from 'date-fns';
|
|
2
2
|
import { Option } from '../../select/select';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type SupportedLocale = 'fr-CA' | 'en-CA' | 'en-US';
|
|
4
|
+
export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
export declare function getLocale(localeArray: Locale[], localeCode?: SupportedLocale): Locale;
|
|
6
6
|
export declare function getLocaleMonthsShort(locale: Locale): string[];
|
|
7
7
|
export declare function getLocaleDateFormat(locale?: Locale): string;
|
|
@@ -2,5 +2,5 @@ import { FunctionComponent, PropsWithChildren } from 'react';
|
|
|
2
2
|
import { DeviceContextProviderProps } from './device-context-provider/device-context-provider';
|
|
3
3
|
import { IntlProviderProps } from './internationalization-provider/internationalization-provider';
|
|
4
4
|
import { ThemeWrapperProps } from './theme-wrapper/theme-wrapper';
|
|
5
|
-
export
|
|
5
|
+
export type DesignSystemProps = ThemeWrapperProps & DeviceContextProviderProps & IntlProviderProps;
|
|
6
6
|
export declare const DesignSystem: FunctionComponent<PropsWithChildren<DesignSystemProps>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
2
|
import { Breakpoints } from '../../tokens/breakpoints';
|
|
3
|
-
export
|
|
3
|
+
export type DeviceType = 'desktop' | 'tablet' | 'mobile';
|
|
4
4
|
export interface DeviceContextProviderProps {
|
|
5
5
|
staticDevice?: DeviceType;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type GlobalBannerType = 'alert' | 'warning' | 'info' | 'default';
|
|
3
3
|
export interface ActionButton {
|
|
4
4
|
label: string;
|
|
5
5
|
onClick(event: MouseEvent<HTMLButtonElement>): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type Type = 'xlarge' | 'large' | 'medium' | 'small' | 'subtitle';
|
|
3
|
+
export type Tag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
4
|
export interface HeadingProps {
|
|
5
5
|
bold?: boolean;
|
|
6
6
|
children?: ReactNode;
|
|
@@ -53,7 +53,7 @@ declare const iconMapping: {
|
|
|
53
53
|
readonly warningFilled: any;
|
|
54
54
|
readonly x: any;
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type IconName = keyof typeof iconMapping;
|
|
57
57
|
export interface IconProps {
|
|
58
58
|
className?: string;
|
|
59
59
|
/** Name of the icon, has to be in IconName */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
2
|
import { IconName } from '../icon/icon';
|
|
3
|
-
export
|
|
3
|
+
export type LozengeType = 'default' | 'success' | 'alert' | 'warning' | 'info' | 'disabled';
|
|
4
4
|
interface Props {
|
|
5
5
|
className?: string;
|
|
6
6
|
type?: LozengeType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
import { CommonSearchProps } from './search-input';
|
|
3
|
-
export
|
|
3
|
+
export type SearchContextualProps = CommonSearchProps;
|
|
4
4
|
export declare const SearchContextual: VoidFunctionComponent<SearchContextualProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
import { CommonSearchProps } from './search-input';
|
|
3
|
-
export
|
|
3
|
+
export type SearchGlobalProps = CommonSearchProps;
|
|
4
4
|
export declare const SearchGlobal: VoidFunctionComponent<SearchGlobalProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, VoidFunctionComponent } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type SectionalBannerType = 'info' | 'success' | 'warning' | 'alert';
|
|
3
3
|
interface SectionalBannerProps {
|
|
4
4
|
buttonLabel?: string;
|
|
5
5
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DetailedHTMLProps, InputHTMLAttributes, VoidFunctionComponent } from 'react';
|
|
2
2
|
import { TooltipProps } from '../tooltip/tooltip';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type PartialStepperInputProps = Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'disabled' | 'onFocus' | 'onBlur' | 'step'>;
|
|
4
|
+
type Value = undefined | number | null;
|
|
5
5
|
interface StepperInputProps extends PartialStepperInputProps {
|
|
6
6
|
defaultValue?: number;
|
|
7
7
|
hint?: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Column, Row, UseSortByColumnOptions } from 'react-table';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type RowSize = 'small' | 'medium';
|
|
4
|
+
type ColumnSort = 'asc' | 'desc';
|
|
5
|
+
type CustomColumn<T extends object> = Column<T> & UseSortByColumnOptions<T> & {
|
|
6
6
|
defaultSort?: ColumnSort;
|
|
7
7
|
sortable?: boolean;
|
|
8
8
|
textAlign?: string;
|
|
9
9
|
className?: string;
|
|
10
10
|
sticky?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type TableColumn<T extends object> = CustomColumn<T>[];
|
|
13
|
+
export type TableRow<T> = T & {
|
|
14
14
|
error?: boolean;
|
|
15
15
|
};
|
|
16
16
|
interface CustomRowProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent, DetailedHTMLProps, FocusEvent, InputHTMLAttributes, KeyboardEvent, MouseEvent } from 'react';
|
|
2
2
|
import { TooltipProps } from '../tooltip/tooltip';
|
|
3
|
-
|
|
3
|
+
type PartialInputProps = Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'inputMode' | 'name' | 'value' | 'autoComplete'>;
|
|
4
4
|
interface TextInputProps extends PartialInputProps {
|
|
5
5
|
ariaDescribedBy?: string;
|
|
6
6
|
ariaInvalid?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ToastPosition = 'top-right' | 'bottom-right' | 'top-left' | 'bottom-left';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, ReducerAction, ReducerState } from 'react';
|
|
2
2
|
import { Toast } from './toast-context';
|
|
3
|
-
export
|
|
3
|
+
export type ToastsState = Toast[];
|
|
4
4
|
interface AddToastAction {
|
|
5
5
|
type: 'add';
|
|
6
6
|
toast: Toast;
|
|
@@ -9,8 +9,8 @@ interface RemoveToastAction {
|
|
|
9
9
|
type: 'remove';
|
|
10
10
|
id: string;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
type ToastsAction = AddToastAction | RemoveToastAction;
|
|
13
13
|
export declare function toastsReducer(state: ToastsState, action: ToastsAction): ToastsState;
|
|
14
|
-
|
|
14
|
+
type ToastsReducer = [ReducerState<typeof toastsReducer>, Dispatch<ReducerAction<typeof toastsReducer>>];
|
|
15
15
|
export declare function useToastsReducer(): ToastsReducer;
|
|
16
16
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { IconName } from '../icon/icon';
|
|
3
|
-
export
|
|
3
|
+
export type ToggletipPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
4
4
|
export interface ToggletipProps {
|
|
5
5
|
label?: string;
|
|
6
6
|
iconName?: IconName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
3
3
|
export interface TooltipProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
/** Set tooltip open by default */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/design-elements-react",
|
|
3
|
-
"version": "5.2.5-snapshot.
|
|
3
|
+
"version": "5.2.5-snapshot.20230505145145",
|
|
4
4
|
"description": "React implementation of the Equisoft design system.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "dist/bundle.js",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"jest-junit": "^16.0.0",
|
|
89
89
|
"jest-styled-components": "^7.1.1",
|
|
90
90
|
"react": "~17.0.2",
|
|
91
|
-
"react-docgen-typescript-plugin": "^1.0.
|
|
91
|
+
"react-docgen-typescript-plugin": "^1.0.5",
|
|
92
92
|
"react-dom": "~17.0.2",
|
|
93
93
|
"react-router-dom": "~6.4.2",
|
|
94
94
|
"sass": "~1.62.1",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"ts-jest": "^29.1.0",
|
|
100
100
|
"ts-loader": "^9.4.2",
|
|
101
101
|
"ts-mockito": "^2.6.1",
|
|
102
|
-
"typescript": "~
|
|
102
|
+
"typescript": "~5.0.4",
|
|
103
103
|
"webpack": "^5.81.0",
|
|
104
104
|
"webpack-cli": "^5.0.2",
|
|
105
105
|
"webpack-merge": "^5.8.0",
|