@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.
Files changed (34) hide show
  1. package/dist/bundle.js +89 -89
  2. package/dist/components/avatar/avatar.d.ts +1 -1
  3. package/dist/components/badge/badge.d.ts +1 -1
  4. package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
  5. package/dist/components/buttons/abstract-button.d.ts +1 -1
  6. package/dist/components/buttons/button.d.ts +2 -2
  7. package/dist/components/buttons/icon-button.d.ts +2 -2
  8. package/dist/components/carousel/carousel-reducer.d.ts +1 -1
  9. package/dist/components/datepicker/utils/datepicker-utils.d.ts +2 -2
  10. package/dist/components/design-system.d.ts +1 -1
  11. package/dist/components/device-context-provider/device-context-provider.d.ts +1 -1
  12. package/dist/components/global-banner/global-banner.d.ts +1 -1
  13. package/dist/components/global-header/logo.d.ts +1 -1
  14. package/dist/components/heading/heading.d.ts +2 -2
  15. package/dist/components/icon/icon.d.ts +1 -1
  16. package/dist/components/listbox/listbox.d.ts +1 -1
  17. package/dist/components/lozenge/lozenge.d.ts +1 -1
  18. package/dist/components/route-link/styles/styled-link.d.ts +1 -1
  19. package/dist/components/search/search-contextual.d.ts +1 -1
  20. package/dist/components/search/search-global.d.ts +1 -1
  21. package/dist/components/sectional-banner/sectional-banner.d.ts +1 -1
  22. package/dist/components/side-drawer/side-drawer.d.ts +1 -1
  23. package/dist/components/status/status.d.ts +1 -1
  24. package/dist/components/stepper-input/stepper-input.d.ts +2 -2
  25. package/dist/components/table/sort-button-icon.d.ts +1 -1
  26. package/dist/components/table/table.d.ts +5 -5
  27. package/dist/components/tag/tag.d.ts +1 -1
  28. package/dist/components/text-input/text-input.d.ts +1 -1
  29. package/dist/components/toast/toast-position.d.ts +1 -1
  30. package/dist/components/toast/toast-type.d.ts +1 -1
  31. package/dist/components/toast/toasts-reducer.d.ts +3 -3
  32. package/dist/components/toggletip/toggletip.d.ts +1 -1
  33. package/dist/components/tooltip/tooltip.d.ts +1 -1
  34. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { VoidFunctionComponent } from 'react';
2
- export declare type AvatarSize = 'xsmall' | 'small' | 'medium' | 'large';
2
+ export type AvatarSize = 'xsmall' | 'small' | 'medium' | 'large';
3
3
  export interface AvatarProps {
4
4
  className?: string;
5
5
  username?: string;
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent, PropsWithChildren } from 'react';
2
- declare type BadgePosition = 'top-right' | 'bottom-right' | 'top-left' | 'bottom-left';
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 declare type BreadcrumbElement = NavMenuOption;
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
- declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
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 declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
3
- declare type Type = 'submit' | 'button' | 'reset';
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
- declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
5
- declare type Type = 'submit' | 'button' | 'reset';
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 declare type CarouselAction = CarouselJumpAction | CarouselNextAction | CarouselPrevAction | CarouselDragAction | CarouselDoneAction;
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 declare type SupportedLocale = 'fr-CA' | 'en-CA' | 'en-US';
4
- export declare type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
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 declare type DesignSystemProps = ThemeWrapperProps & DeviceContextProviderProps & IntlProviderProps;
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 declare type DeviceType = 'desktop' | 'tablet' | 'mobile';
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 declare type GlobalBannerType = 'alert' | 'warning' | 'info' | 'default';
2
+ export type GlobalBannerType = 'alert' | 'warning' | 'info' | 'default';
3
3
  export interface ActionButton {
4
4
  label: string;
5
5
  onClick(event: MouseEvent<HTMLButtonElement>): void;
@@ -37,7 +37,7 @@ declare const logoMapping: {
37
37
  mobile: any;
38
38
  };
39
39
  };
40
- export declare type LogoName = keyof typeof logoMapping;
40
+ export type LogoName = keyof typeof logoMapping;
41
41
  interface LogoProps {
42
42
  name?: LogoName;
43
43
  mobile?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type Type = 'xlarge' | 'large' | 'medium' | 'small' | 'subtitle';
3
- export declare type Tag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
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 declare type IconName = keyof typeof iconMapping;
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,5 +1,5 @@
1
1
  import { ForwardRefExoticComponent, KeyboardEvent, RefAttributes } from 'react';
2
- declare type Value = string | string[];
2
+ type Value = string | string[];
3
3
  export interface ListboxOption {
4
4
  disabled?: boolean;
5
5
  value: string;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent, PropsWithChildren } from 'react';
2
2
  import { IconName } from '../icon/icon';
3
- export declare type LozengeType = 'default' | 'success' | 'alert' | 'warning' | 'info' | 'disabled';
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
- declare type Type = 'external' | 'route';
1
+ type Type = 'external' | 'route';
2
2
  interface ContainerProps {
3
3
  activeClassName?: string;
4
4
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
1
  import { VoidFunctionComponent } from 'react';
2
2
  import { CommonSearchProps } from './search-input';
3
- export declare type SearchContextualProps = CommonSearchProps;
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 declare type SearchGlobalProps = CommonSearchProps;
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 declare type SectionalBannerType = 'info' | 'success' | 'warning' | 'alert';
2
+ export type SectionalBannerType = 'info' | 'success' | 'warning' | 'alert';
3
3
  interface SectionalBannerProps {
4
4
  buttonLabel?: string;
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
2
- declare type Origin = 'right' | 'left';
2
+ type Origin = 'right' | 'left';
3
3
  interface SideDrawerProps {
4
4
  children: ReactNode;
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import { VoidFunctionComponent } from 'react';
2
- export declare type StatusType = 'enabled' | 'disabled' | 'blocked';
2
+ export type StatusType = 'enabled' | 'disabled' | 'blocked';
3
3
  interface Props {
4
4
  className?: string;
5
5
  label: string;
@@ -1,7 +1,7 @@
1
1
  import { DetailedHTMLProps, InputHTMLAttributes, VoidFunctionComponent } from 'react';
2
2
  import { TooltipProps } from '../tooltip/tooltip';
3
- declare type PartialStepperInputProps = Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'disabled' | 'onFocus' | 'onBlur' | 'step'>;
4
- declare type Value = undefined | number | null;
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,5 +1,5 @@
1
1
  import { FunctionComponent, PropsWithChildren } from 'react';
2
- export declare type SortState = 'ascending' | 'descending' | 'none';
2
+ export type SortState = 'ascending' | 'descending' | 'none';
3
3
  export interface SortButtonIconProps {
4
4
  sort: SortState;
5
5
  }
@@ -1,16 +1,16 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { Column, Row, UseSortByColumnOptions } from 'react-table';
3
- declare type RowSize = 'small' | 'medium';
4
- declare type ColumnSort = 'asc' | 'desc';
5
- declare type CustomColumn<T extends object> = Column<T> & UseSortByColumnOptions<T> & {
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 declare type TableColumn<T extends object> = CustomColumn<T>[];
13
- export declare type TableRow<T> = T & {
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
  /// <reference types="react" />
2
2
  import { IconName } from '../icon/icon';
3
- declare type TagSize = 'small' | 'medium';
3
+ type TagSize = 'small' | 'medium';
4
4
  export interface TagValue {
5
5
  id?: string;
6
6
  label: string;
@@ -1,6 +1,6 @@
1
1
  import { ChangeEvent, DetailedHTMLProps, FocusEvent, InputHTMLAttributes, KeyboardEvent, MouseEvent } from 'react';
2
2
  import { TooltipProps } from '../tooltip/tooltip';
3
- declare type PartialInputProps = Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'inputMode' | 'name' | 'value' | 'autoComplete'>;
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 declare type ToastPosition = 'top-right' | 'bottom-right' | 'top-left' | 'bottom-left';
1
+ export type ToastPosition = 'top-right' | 'bottom-right' | 'top-left' | 'bottom-left';
@@ -4,4 +4,4 @@ export declare enum ToastTypeEnum {
4
4
  WARNING = "warning",
5
5
  ERROR = "error"
6
6
  }
7
- export declare type ToastType = `${ToastTypeEnum}`;
7
+ export type ToastType = `${ToastTypeEnum}`;
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, ReducerAction, ReducerState } from 'react';
2
2
  import { Toast } from './toast-context';
3
- export declare type ToastsState = Toast[];
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
- declare type ToastsAction = AddToastAction | RemoveToastAction;
12
+ type ToastsAction = AddToastAction | RemoveToastAction;
13
13
  export declare function toastsReducer(state: ToastsState, action: ToastsAction): ToastsState;
14
- declare type ToastsReducer = [ReducerState<typeof toastsReducer>, Dispatch<ReducerAction<typeof toastsReducer>>];
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 declare type ToggletipPlacement = 'top' | 'right' | 'bottom' | 'left';
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 declare type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
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.20230503004022",
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.2",
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": "~4.8.4",
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",