@nulogy/components 10.1.3 → 10.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.
@@ -1,16 +1,18 @@
1
1
  import React from "react";
2
2
  import { SpaceProps } from "styled-system";
3
3
  import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
4
- type BaseProps = {
4
+ interface BaseProps {
5
5
  size?: ComponentSize;
6
6
  color?: string;
7
7
  labelHidden?: boolean;
8
- icon?: any;
8
+ icon?: string;
9
9
  iconSize?: string;
10
10
  hoverBackgroundColor?: string;
11
11
  fontSize?: string;
12
- tooltip?: string;
13
- };
14
- declare const IconicButton: React.ForwardRefExoticComponent<BaseProps & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof BaseProps> & React.RefAttributes<HTMLButtonElement>>;
12
+ tooltip?: React.ReactNode;
13
+ }
14
+ interface IconicButtonProps extends BaseProps, SpaceProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof BaseProps> {
15
+ }
16
+ declare const IconicButton: React.ForwardRefExoticComponent<IconicButtonProps & React.RefAttributes<HTMLButtonElement>>;
15
17
  export declare const iconNames: string[];
16
18
  export default IconicButton;
@@ -51,6 +51,12 @@ export declare const WithATooltipAndLabel: {
51
51
  name: string;
52
52
  };
53
53
  };
54
+ export declare const WithAComplicatedTooltipAndLabel: {
55
+ (): React.JSX.Element;
56
+ story: {
57
+ name: string;
58
+ };
59
+ };
54
60
  export declare const rightAligned: {
55
61
  (): React.JSX.Element;
56
62
  parameters: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const HelpText: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
3
2
  inline?: boolean;
4
3
  disabled?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { SpaceProps } from "styled-system";
3
- type IconProps = SpaceProps & {
3
+ interface IconProps extends SpaceProps {
4
4
  icon: string;
5
5
  className?: string;
6
6
  size?: string;
@@ -8,23 +8,7 @@ type IconProps = SpaceProps & {
8
8
  color?: string;
9
9
  focusable?: boolean;
10
10
  style?: React.CSSProperties;
11
- };
12
- declare const Icon: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
13
- icon: string;
14
- className?: string;
15
- size?: string;
16
- title?: string;
17
- color?: string;
18
- focusable?: boolean;
19
- style?: React.CSSProperties;
20
- } & React.RefAttributes<SVGSVGElement>>, import("styled-components").DefaultTheme, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
21
- icon: string;
22
- className?: string;
23
- size?: string;
24
- title?: string;
25
- color?: string;
26
- focusable?: boolean;
27
- style?: React.CSSProperties;
28
- }, never>;
11
+ }
12
+ declare const Icon: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>, import("styled-components").DefaultTheme, IconProps, never>;
29
13
  export declare const InlineIcon: (props: IconProps) => React.JSX.Element;
30
14
  export default Icon;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { SpaceProps, TypographyProps, FlexboxProps } from "styled-system";
3
2
  export declare const StatusIndicatorValues: {
4
3
  readonly neutral: "neutral";
@@ -10,8 +9,8 @@ export declare const StatusIndicatorValues: {
10
9
  readonly quiet: "quiet";
11
10
  };
12
11
  export type StatusIndicatorType = typeof StatusIndicatorValues[keyof typeof StatusIndicatorValues];
13
- type StatusIndicatorProps = SpaceProps & TypographyProps & FlexboxProps & {
12
+ interface Props extends SpaceProps, TypographyProps, FlexboxProps {
14
13
  type?: StatusIndicatorType;
15
- };
16
- declare const StatusIndicator: React.FC<StatusIndicatorProps>;
14
+ }
15
+ declare const StatusIndicator: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Props, never>;
17
16
  export default StatusIndicator;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Heading1: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
3
2
  inline?: boolean;
4
3
  disabled?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DefaultNDSThemeType } from "../theme.type";
3
2
  import { StyledProps } from "../StyledProps";
4
3
  export type TextProps = React.HTMLAttributes<HTMLParagraphElement> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "10.1.3",
3
+ "version": "10.2.1",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -154,7 +154,7 @@
154
154
  "react-datepicker": "^4.1.0",
155
155
  "react-fast-compare": "^3.2.0",
156
156
  "react-hot-toast": "^2.4.1",
157
- "react-i18next": "^11.14.2",
157
+ "react-i18next": "^12.3.1",
158
158
  "react-input-autosize": "^2.2.2",
159
159
  "react-modal": "^3.14.4",
160
160
  "react-popper": "1.3.11",