@nulogy/components 7.0.1 → 7.2.1
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/main.js +159 -111
- package/dist/main.module.js +159 -112
- package/dist/src/Alert/CloseButton.d.ts +1 -1
- package/dist/src/BrandedNavBar/MenuTrigger.d.ts +6 -3
- package/dist/src/BrandedNavBar/MenuTriggerButton.d.ts +9 -0
- package/dist/src/BrandedNavBar/NavBar.story.d.ts +12 -0
- package/dist/src/BrandedNavBar/NulogyLogoContainer.d.ts +1 -1
- package/dist/src/BrandedNavBar/SubMenuTrigger.d.ts +4 -1
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.d.ts +7 -0
- package/dist/src/BrandedNavBar/TriggerFunctionProps.d.ts +9 -0
- package/dist/src/BrandedNavBar/renderSubMenuItems.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownButton.d.ts +2 -1
- package/dist/src/Link/Link.d.ts +2 -2
- package/dist/src/List/List.d.ts +2 -2
- package/dist/src/NDSProvider/NDSProvider.d.ts +1 -1
- package/dist/src/NavBar/MenuTrigger.d.ts +8 -0
- package/dist/src/Pagination/PreviousButton.d.ts +1 -1
- package/dist/src/Select/customReactSelectStyles.d.ts +2 -2
- package/dist/src/StyledProps/index.d.ts +8 -0
- package/dist/src/Table/SortingColumnHeader.d.ts +1 -1
- package/dist/src/Table/Table.d.ts +1 -1
- package/dist/src/TimePicker/TimePicker.d.ts +1 -1
- package/dist/src/Type/Text.d.ts +2 -4
- package/dist/src/index.d.ts +5 -3
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type SubMenuTriggerButtonProps = React.ComponentPropsWithRef<"button"> & {
|
|
3
|
+
name?: string;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const SubMenuTriggerButton: React.ForwardRefExoticComponent<Pick<SubMenuTriggerButtonProps, "type" | "name" | "form" | "slot" | "style" | "title" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "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" | "isOpen"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export default SubMenuTriggerButton;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const renderSubMenuItems: (subMenuItems: any, onItemClick: any, SubMenuTrigger: any) => any;
|
|
1
|
+
declare const renderSubMenuItems: (subMenuItems: any, onItemClick: any, SubMenuTrigger: any, layer: any) => any;
|
|
2
2
|
export default renderSubMenuItems;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
3
|
-
|
|
3
|
+
import { StyledProps } from "../StyledProps";
|
|
4
|
+
declare type DropdownButtonProps = React.ComponentPropsWithRef<"button"> & StyledProps & {
|
|
4
5
|
color?: string;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
theme?: DefaultNDSThemeType;
|
package/dist/src/Link/Link.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ColorProps, SpaceProps, LayoutProps, TypographyProps } from "styled-system";
|
|
3
2
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
|
-
|
|
3
|
+
import { StyledProps } from "../StyledProps";
|
|
4
|
+
export declare type LinkProps = React.ComponentPropsWithRef<"a"> & StyledProps & {
|
|
5
5
|
className?: string;
|
|
6
6
|
underline?: boolean;
|
|
7
7
|
hover?: string;
|
package/dist/src/List/List.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SpaceProps, ColorProps, TypographyProps, LayoutProps, BoxShadowProps, BorderProps } from "styled-system";
|
|
3
2
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
|
-
|
|
3
|
+
import { StyledProps } from "../StyledProps";
|
|
4
|
+
declare type ListProps = React.ComponentPropsWithRef<"ul"> & StyledProps & {
|
|
5
5
|
theme?: DefaultNDSThemeType;
|
|
6
6
|
className?: string;
|
|
7
7
|
compact?: boolean;
|
|
@@ -6,5 +6,5 @@ declare type NDSProviderProps = {
|
|
|
6
6
|
disableGlobalStyles?: boolean;
|
|
7
7
|
children?: any;
|
|
8
8
|
};
|
|
9
|
-
declare const NDSProvider: ({ theme, children, disableGlobalStyles, locale
|
|
9
|
+
declare const NDSProvider: ({ theme, children, disableGlobalStyles, locale }: NDSProviderProps) => JSX.Element;
|
|
10
10
|
export default NDSProvider;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
+
export declare type MenuTriggerProps = {
|
|
4
|
+
name?: string;
|
|
5
|
+
"aria-label"?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
hoverColor?: string;
|
|
8
|
+
hoverBackground?: string;
|
|
9
|
+
menuData?: any[];
|
|
10
|
+
};
|
|
3
11
|
declare const MenuTrigger: {
|
|
4
12
|
(props: any): JSX.Element;
|
|
5
13
|
propTypes: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
declare const PreviousButton: {
|
|
4
|
-
({ disabled, onClick, label, "aria-label": ariaLabel
|
|
4
|
+
({ disabled, onClick, label, "aria-label": ariaLabel }: any): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
disabled: PropTypes.Requireable<boolean>;
|
|
7
7
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const showIndicatorSeparator: ({ isMulti, hasValue, hasDefaultOptions
|
|
1
|
+
export declare const showIndicatorSeparator: ({ isMulti, hasValue, hasDefaultOptions }: {
|
|
2
2
|
isMulti: any;
|
|
3
3
|
hasValue: any;
|
|
4
4
|
hasDefaultOptions: any;
|
|
5
5
|
}) => any;
|
|
6
|
-
declare const customStyles: ({ theme, error, maxHeight, windowed, hasDefaultOptions
|
|
6
|
+
declare const customStyles: ({ theme, error, maxHeight, windowed, hasDefaultOptions }: {
|
|
7
7
|
theme: any;
|
|
8
8
|
error: any;
|
|
9
9
|
maxHeight: any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SpaceProps, ColorProps, TypographyProps, LayoutProps, BoxShadowProps, BorderProps, OverflowProps } from "styled-system";
|
|
2
|
+
import { TextOverflowProps } from "./textOverflow";
|
|
3
|
+
import { CursorProps } from "./cursor";
|
|
4
|
+
import { TransformProps } from "./transform";
|
|
5
|
+
import { TransitionProps } from "./transition";
|
|
6
|
+
import { VisibilityProps } from "./visibility";
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
declare const SortingColumnHeader: {
|
|
4
|
-
({ onChange, label, ascending, active, ariaLabel
|
|
4
|
+
({ onChange, label, ascending, active, ariaLabel }: {
|
|
5
5
|
onChange: any;
|
|
6
6
|
label: any;
|
|
7
7
|
ascending: any;
|
|
@@ -8,7 +8,7 @@ export declare type TableCellInfoType = CellInfoType;
|
|
|
8
8
|
declare const Table: {
|
|
9
9
|
({ hasSelectableRows, rowsPerPage, hasExpandableRows, selectedRows, onRowSelectionChange, onRowExpansionChange, onPageChange, selectAllAriaLabel, deselectAllAriaLabel, paginationCss, paginationProps, ...props }: TableProps): JSX.Element;
|
|
10
10
|
SortingHeader: {
|
|
11
|
-
({ onChange, label, ascending, active, ariaLabel
|
|
11
|
+
({ onChange, label, ascending, active, ariaLabel }: {
|
|
12
12
|
onChange: any;
|
|
13
13
|
label: any;
|
|
14
14
|
ascending: any;
|
|
@@ -22,7 +22,7 @@ declare type TimePickerProps = SpaceProps & {
|
|
|
22
22
|
onClick?: (...args: any[]) => any;
|
|
23
23
|
};
|
|
24
24
|
export declare const convertTo24HourTimeArray: (timeInput: any) => any;
|
|
25
|
-
export declare const getBestMatchTime: ({ time, timeFormat, minTime, maxTime, locale
|
|
25
|
+
export declare const getBestMatchTime: ({ time, timeFormat, minTime, maxTime, locale }: {
|
|
26
26
|
time: any;
|
|
27
27
|
timeFormat: any;
|
|
28
28
|
minTime: any;
|
package/dist/src/Type/Text.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SpaceProps, TypographyProps, ColorProps, OverflowProps, LayoutProps } from "styled-system";
|
|
3
|
-
import { TextOverflowProps } from "../StyledProps/textOverflow";
|
|
4
|
-
import { CursorProps } from "../StyledProps/cursor";
|
|
5
2
|
import type { DefaultNDSThemeType } from "../theme.type";
|
|
3
|
+
import { StyledProps } from "../StyledProps";
|
|
6
4
|
export declare type TextProps = React.HTMLAttributes<HTMLParagraphElement> & {
|
|
7
5
|
inline?: boolean;
|
|
8
6
|
disabled?: boolean;
|
|
9
7
|
textTransform?: "none" | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase" | undefined;
|
|
10
8
|
fontSize?: string;
|
|
11
|
-
} &
|
|
9
|
+
} & StyledProps & {
|
|
12
10
|
theme?: DefaultNDSThemeType;
|
|
13
11
|
};
|
|
14
12
|
declare const Text: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, TextProps, never>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ export { Box, AnimatedBox } from "./Box";
|
|
|
5
5
|
export { Flex } from "./Flex";
|
|
6
6
|
export { Icon, InlineIcon } from "./Icon";
|
|
7
7
|
export { Text, Heading1, Heading2, Heading3, Heading4 } from "./Type";
|
|
8
|
-
export { Button, PrimaryButton, DangerButton, QuietButton, IconicButton, ControlIcon
|
|
8
|
+
export { Button, PrimaryButton, DangerButton, QuietButton, IconicButton, ControlIcon } from "./Button";
|
|
9
9
|
export { ButtonGroup } from "./ButtonGroup";
|
|
10
10
|
export { Link } from "./Link";
|
|
11
11
|
export { InlineValidation } from "./Validation";
|
|
12
12
|
export { Alert } from "./Alert";
|
|
13
13
|
export { Branding } from "./Branding";
|
|
14
|
-
export { DropdownMenu, DropdownLink, DropdownButton, DropdownItem, DropdownText
|
|
14
|
+
export { DropdownMenu, DropdownLink, DropdownButton, DropdownItem, DropdownText } from "./DropdownMenu";
|
|
15
15
|
export { HelpText, RequirementText, FieldLabel } from "./FieldLabel";
|
|
16
16
|
export { Input } from "./Input";
|
|
17
17
|
export { NavBar } from "./NavBar";
|
|
@@ -28,7 +28,7 @@ export { Modal } from "./Modal";
|
|
|
28
28
|
export { Tab, Tabs } from "./Tabs";
|
|
29
29
|
export { Switch, Switcher } from "./Switcher";
|
|
30
30
|
export { Table } from "./Table";
|
|
31
|
-
export type { TableProps, TableColumnType, TableRowType, TableCellInfoType
|
|
31
|
+
export type { TableProps, TableColumnType, TableRowType, TableCellInfoType } from "./Table";
|
|
32
32
|
export { StatusIndicator } from "./StatusIndicator";
|
|
33
33
|
export { Pagination } from "./Pagination";
|
|
34
34
|
export { DatePicker } from "./DatePicker";
|
|
@@ -48,3 +48,5 @@ export { ApplicationFrame, Page, Sidebar } from "./Layout";
|
|
|
48
48
|
export { useWindowDimensions } from "./utils";
|
|
49
49
|
export { Divider } from "./Divider";
|
|
50
50
|
export { SortingTable } from "./SortingTable";
|
|
51
|
+
export { addStyledProps } from "./StyledProps";
|
|
52
|
+
export type { StyledProps } from "./StyledProps";
|