@equisoft/design-elements-react 3.5.1-snapshot.20220107153831 → 4.0.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.
@@ -1,4 +1,4 @@
1
- import { MouseEvent, KeyboardEvent, ReactNode } from 'react';
1
+ import { KeyboardEvent, MouseEvent, ReactNode } from 'react';
2
2
  export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
3
3
  declare type Type = 'submit' | 'button' | 'reset';
4
4
  interface ButtonProps {
@@ -1,6 +1,6 @@
1
1
  import { KeyboardEvent, MouseEvent, ReactElement } from 'react';
2
- import { IconName, IconProps } from '../icon/icon';
3
2
  import { AvatarProps } from '../avatar/avatar';
3
+ import { IconName, IconProps } from '../icon/icon';
4
4
  declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive';
5
5
  declare type Type = 'submit' | 'button' | 'reset';
6
6
  export interface IconButtonProps {
@@ -1,6 +1,6 @@
1
1
  import { FocusEvent } from 'react';
2
- import { DayOfWeek, SupportedLocale } from './utils/datepicker-utils';
3
2
  import { TooltipProps } from '../tooltip/tooltip';
3
+ import { DayOfWeek, SupportedLocale } from './utils/datepicker-utils';
4
4
  export interface DatepickerHandles {
5
5
  reset(): void;
6
6
  setDate(date: Date): void;
@@ -1,6 +1,6 @@
1
1
  import { ReactElement, VoidFunctionComponent } from 'react';
2
- import { NavItemProps } from './nav-item';
3
2
  import { HeadingProps } from '../../heading/heading';
3
+ import { NavItemProps } from './nav-item';
4
4
  export interface GroupItemProps {
5
5
  id?: string;
6
6
  children: ReactElement<NavItemProps> | ReactElement<NavItemProps>[];
@@ -1,8 +1,8 @@
1
1
  import { ReactElement, RefObject, VoidFunctionComponent } from 'react';
2
- import { IconProps } from '../icon/icon';
3
- import { GroupItemProps } from '../dropdown-menu/list-items';
4
2
  import { AvatarProps } from '../avatar/avatar';
5
3
  import { ButtonType } from '../buttons/button';
4
+ import { GroupItemProps } from '../dropdown-menu/list-items';
5
+ import { IconProps } from '../icon/icon';
6
6
  export declare const StyledDropdownMenu: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../dropdown-menu/dropdown-menu").DropdownMenuProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
7
7
  interface MenuButtonProps {
8
8
  label?: string;
@@ -1,7 +1,7 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { SkipLinkProps } from '../skip-link/skip-link';
3
3
  import { LogoName } from './logo';
4
- interface ApplicationMenuProps {
4
+ interface GlobalHeaderProps {
5
5
  /** Set the app name to get the proper logos */
6
6
  appName?: LogoName;
7
7
  /** Sets app title which appears next to logo on desktop */
@@ -20,5 +20,5 @@ interface ApplicationMenuProps {
20
20
  skipLink?: SkipLinkProps;
21
21
  usesReactRouter?: boolean;
22
22
  }
23
- export declare function ApplicationMenu({ appName, appTitleDesktop, children, className, customLogo, logoHref, mobileDrawerContent, skipLink, usesReactRouter, }: ApplicationMenuProps): ReactElement;
23
+ export declare function GlobalHeader({ appName, appTitleDesktop, children, className, customLogo, logoHref, mobileDrawerContent, skipLink, usesReactRouter, }: GlobalHeaderProps): ReactElement;
24
24
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
- import { IconName } from '../icon/icon';
3
2
  import { IconButtonProps } from '../buttons/icon-button';
3
+ import { IconName } from '../icon/icon';
4
4
  export interface GlobalNavigationItem {
5
5
  exact?: boolean;
6
6
  href: string;
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { MenuOption } from '../menu/menu';
3
2
  import { ButtonType } from '../buttons/button';
4
3
  import { IconName } from '../icon/icon';
4
+ import { MenuOption } from '../menu/menu';
5
5
  interface Props {
6
6
  autofocus?: boolean;
7
7
  buttonType: ButtonType;
@@ -1,4 +1,4 @@
1
- import { FocusEvent, ChangeEvent, VoidFunctionComponent } from 'react';
1
+ import { ChangeEvent, FocusEvent, VoidFunctionComponent } from 'react';
2
2
  export interface CommonSearchProps {
3
3
  id?: string;
4
4
  disabled?: boolean;
@@ -33,7 +33,7 @@ interface SelectProps {
33
33
  */
34
34
  numberOfItemsVisible?: number;
35
35
  /**
36
- * { value: string; label: string; }[]
36
+ * { disabled?: boolean, value: string; label: string; }[]
37
37
  */
38
38
  options: Option[];
39
39
  placeholder?: string;
package/dist/index.d.ts CHANGED
@@ -33,8 +33,10 @@ export { ChooserCard } from './components/chooser-card/chooser-card';
33
33
  export { EnsoSpinner } from './components/enso-spinner/enso-spinner';
34
34
  export { ExternalLink } from './components/external-link/external-link';
35
35
  export { Heading } from './components/heading/heading';
36
- export { ApplicationMenu } from './components/application-menu/application-menu';
36
+ export { GlobalHeader } from './components/global-header/global-header';
37
37
  export { DropdownMenuButton } from './components/dropdown-menu-button/dropdown-menu-button';
38
+ export { ExternalItemProps } from './components/dropdown-menu/list-items/external-item';
39
+ export { NavItemProps } from './components/dropdown-menu/list-items/nav-item';
38
40
  export { Icon } from './components/icon/icon';
39
41
  export { SectionalBanner, SectionalBannerType } from './components/sectional-banner/sectional-banner';
40
42
  export * from './components/progress/progress';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/design-elements-react",
3
- "version": "3.5.1-snapshot.20220107153831",
3
+ "version": "4.0.0",
4
4
  "description": "React implementation of the Equisoft design system.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/bundle.js",
@@ -65,7 +65,6 @@
65
65
  "@types/react-modal": "^3.12.1",
66
66
  "@types/react-router-dom": "~5.1.8",
67
67
  "@types/react-table": "^7.7.2",
68
- "@types/react-test-renderer": "^17.0.1",
69
68
  "@types/styled-components": "^5.1.11",
70
69
  "@types/testing-library__react-hooks": "^4.0.0",
71
70
  "@typescript-eslint/eslint-plugin": "^4.33.0",
@@ -92,7 +91,6 @@
92
91
  "react-docgen-typescript-plugin": "^1.0.0",
93
92
  "react-dom": "~17.0.2",
94
93
  "react-router-dom": "^5.2.0",
95
- "react-test-renderer": "~17.0.2",
96
94
  "sass": "~1.35.2",
97
95
  "sass-loader": "~12.1.0",
98
96
  "style-loader": "^3.1.0",