@nulogy/components 7.2.3 → 7.4.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.
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export declare type BrandLogoContainerProps = {
3
+ logoSrc?: string;
4
+ brandingLinkHref?: string;
5
+ brandingLinkTo?: string;
6
+ brandingLinkComponent?: React.ElementType;
7
+ subtext?: string;
8
+ };
9
+ declare const BrandLogoContainer: ({ logoSrc, brandingLinkHref, brandingLinkTo, brandingLinkComponent, subtext, }: BrandLogoContainerProps) => JSX.Element;
10
+ export default BrandLogoContainer;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- declare type BaseDesktopMenuProps = {
1
+ import React from "react";
2
+ export declare type DesktopMenuProps = {
3
3
  menuData: any[];
4
4
  themeColorObject: any;
5
5
  };
6
- declare const DesktopMenu: import("styled-components").StyledComponent<({ menuData, themeColorObject, ...props }: BaseDesktopMenuProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
+ declare const DesktopMenu: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<DesktopMenuProps & React.RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {}, never>;
7
7
  export default DesktopMenu;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type EnvironmentBannerProps = {
2
+ export declare type EnvironmentBannerProps = {
3
3
  children?: React.ReactNode;
4
4
  };
5
5
  declare const EnvironmentBanner: ({ children }: EnvironmentBannerProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { DefaultNDSThemeType } from "../theme.type";
3
+ import { StyledProps } from "../StyledProps";
4
+ export declare type NavBarBackgroundProps = {
5
+ theme?: DefaultNDSThemeType;
6
+ } & StyledProps;
7
+ declare const NavBarBackground: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Box/Box").BoxProps>, import("styled-components").DefaultTheme, {}, never>;
8
+ export default NavBarBackground;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { WithMenuStateProps } from "../utils";
3
+ import { BrandLogoContainerProps } from "./BrandLogoContainer";
4
+ declare type SmallNavBarNoStateProps = BrandLogoContainerProps & {
5
+ menuState?: any;
6
+ menuData?: any;
7
+ subtext?: string;
8
+ brandingLinkHref?: string;
9
+ brandingLinkTo?: string;
10
+ breakpointLower?: number | string;
11
+ width?: number;
12
+ themeColor?: "blue" | "white";
13
+ themeColorObject: any;
14
+ environment?: "development" | "training";
15
+ navBarHeight: string;
16
+ };
17
+ declare const SmallNavBar: ({ showDelay, hideDelay, defaultOpen, ...props }: {
18
+ [x: string]: any;
19
+ showDelay: any;
20
+ hideDelay: any;
21
+ defaultOpen: any;
22
+ }) => JSX.Element;
23
+ export declare type SmallNavBarProps = SmallNavBarNoStateProps & WithMenuStateProps;
24
+ export default SmallNavBar;
@@ -1 +1,13 @@
1
1
  export { default as BrandedNavBar } from "./NavBar";
2
+ export { default as MenuTrigger } from "./MenuTrigger";
3
+ export type { MenuTriggerProps } from "./MenuTrigger";
4
+ export { default as EnvironmentBanner } from "./EnvironmentBanner";
5
+ export type { EnvironmentBannerProps } from "./EnvironmentBanner";
6
+ export { default as NavBarBackground } from "./NavBarBackground";
7
+ export type { NavBarBackgroundProps } from "./NavBarBackground";
8
+ export { default as BrandLogoContainer } from "./BrandLogoContainer";
9
+ export type { BrandLogoContainerProps } from "./BrandLogoContainer";
10
+ export { default as DesktopMenu } from "./DesktopMenu";
11
+ export type { DesktopMenuProps } from "./DesktopMenu";
12
+ export { default as SmallNavBar } from "./SmallNavBar";
13
+ export type { SmallNavBarProps } from "./SmallNavBar";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { SpaceProps } from "styled-system";
3
- declare type IconicButtonProps = React.HTMLProps<HTMLButtonElement> & SpaceProps & {
3
+ declare type BaseProps = {
4
4
  color?: string;
5
5
  labelHidden?: boolean;
6
6
  icon?: any;
@@ -8,6 +8,6 @@ declare type IconicButtonProps = React.HTMLProps<HTMLButtonElement> & SpaceProps
8
8
  fontSize?: string;
9
9
  tooltip?: string;
10
10
  };
11
- declare const IconicButton: React.ForwardRefExoticComponent<Pick<IconicButtonProps, "sizes" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "tooltip" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "start" | "icon" | "size" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "step" | "labelHidden" | "iconSize" | "fontSize" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "width" | "wmode" | "wrap"> & React.RefAttributes<HTMLButtonElement>>;
11
+ declare const IconicButton: React.ForwardRefExoticComponent<BaseProps & SpaceProps<Required<import("styled-system").Theme<React.ReactText>>, string | number | symbol> & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLButtonElement>>;
12
12
  export declare const iconNames: string[];
13
13
  export default IconicButton;
@@ -1,8 +1,8 @@
1
- import { SpaceProps, ColorProps, TypographyProps, LayoutProps, BoxShadowProps, BorderProps, OverflowProps } from "styled-system";
1
+ import { SpaceProps, ColorProps, TypographyProps, LayoutProps, BoxShadowProps, BorderProps, OverflowProps, FlexboxProps } from "styled-system";
2
2
  import { TextOverflowProps } from "./textOverflow";
3
3
  import { CursorProps } from "./cursor";
4
4
  import { TransformProps } from "./transform";
5
5
  import { TransitionProps } from "./transition";
6
6
  import { VisibilityProps } from "./visibility";
7
7
  export declare const addStyledProps: import("styled-system").styleFn;
8
- export declare type StyledProps = BorderProps & BoxShadowProps & ColorProps & CursorProps & LayoutProps & OverflowProps & SpaceProps & TextOverflowProps & TransformProps & TransitionProps & TypographyProps & VisibilityProps;
8
+ export declare type StyledProps = BorderProps & BoxShadowProps & ColorProps & CursorProps & LayoutProps & OverflowProps & SpaceProps & TextOverflowProps & TransformProps & TransitionProps & TypographyProps & VisibilityProps & FlexboxProps;
@@ -42,7 +42,8 @@ export { Breadcrumbs } from "./Breadcrumbs";
42
42
  export { ALL_NDS_LOCALES } from "./locales.const";
43
43
  export { TruncatedText } from "./TruncatedText";
44
44
  export { Toast } from "./Toast";
45
- export { BrandedNavBar } from "./BrandedNavBar";
45
+ export { BrandedNavBar, MenuTrigger, EnvironmentBanner, NavBarBackground, BrandLogoContainer, DesktopMenu, SmallNavBar, } from "./BrandedNavBar";
46
+ export type { MenuTriggerProps, EnvironmentBannerProps, NavBarBackgroundProps, BrandLogoContainerProps, DesktopMenuProps, SmallNavBarProps, } from "./BrandedNavBar";
46
47
  export { AsyncSelect } from "./AsyncSelect";
47
48
  export { ApplicationFrame, Page, Sidebar } from "./Layout";
48
49
  export { useWindowDimensions } from "./utils";
@@ -7,5 +7,6 @@ export { default as DetectOutsideClick } from "./DetectOutsideClick";
7
7
  export { default as PopperArrow } from "./PopperArrow";
8
8
  export { default as ScrollIndicators } from "./ScrollIndicators";
9
9
  export { default as withMenuState } from "./withMenuState";
10
+ export type { WithMenuStateProps } from "./withMenuState";
10
11
  export { default as PreventBodyElementScrolling } from "./PreventBodyElementScrolling";
11
12
  export { default as useWindowDimensions } from "./useWindowDimensions";
@@ -1,4 +1,10 @@
1
1
  /// <reference types="react" />
2
+ export declare type WithMenuStateProps = {
3
+ children?: any;
4
+ showDelay?: string | number;
5
+ hideDelay?: string | number;
6
+ defaultOpen?: boolean;
7
+ };
2
8
  declare const withMenuState: (MenuComponent: any) => ({ showDelay, hideDelay, defaultOpen, ...props }: {
3
9
  [x: string]: any;
4
10
  showDelay: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "7.2.3",
3
+ "version": "7.4.0",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -157,7 +157,7 @@
157
157
  "react-modal": "^3.10.1",
158
158
  "react-popper": "1.3.7",
159
159
  "react-popper-latest": "npm:react-popper@2.2.4",
160
- "react-resize-detector": "^4.2.0",
160
+ "react-resize-detector": "^7.1.2",
161
161
  "react-windowed-select": "2.0.2",
162
162
  "smoothscroll-polyfill": "^0.4.4",
163
163
  "styled-system": "^5.1.4"