@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.
- package/dist/main.js +260 -219
- package/dist/main.module.js +256 -215
- package/dist/src/Button/IconicButton.d.ts +7 -5
- package/dist/src/Button/IconicButton.story.d.ts +6 -0
- package/dist/src/FieldLabel/HelpText.d.ts +0 -1
- package/dist/src/Icon/Icon.d.ts +3 -19
- package/dist/src/StatusIndicator/StatusIndicator.d.ts +3 -4
- package/dist/src/Type/Headings.d.ts +0 -1
- package/dist/src/Type/Text.d.ts +0 -1
- package/package.json +2 -2
|
@@ -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
|
-
|
|
4
|
+
interface BaseProps {
|
|
5
5
|
size?: ComponentSize;
|
|
6
6
|
color?: string;
|
|
7
7
|
labelHidden?: boolean;
|
|
8
|
-
icon?:
|
|
8
|
+
icon?: string;
|
|
9
9
|
iconSize?: string;
|
|
10
10
|
hoverBackgroundColor?: string;
|
|
11
11
|
fontSize?: string;
|
|
12
|
-
tooltip?:
|
|
13
|
-
}
|
|
14
|
-
|
|
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: {
|
package/dist/src/Icon/Icon.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
|
-
|
|
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<
|
|
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
|
-
|
|
12
|
+
interface Props extends SpaceProps, TypographyProps, FlexboxProps {
|
|
14
13
|
type?: StatusIndicatorType;
|
|
15
|
-
}
|
|
16
|
-
declare const StatusIndicator:
|
|
14
|
+
}
|
|
15
|
+
declare const StatusIndicator: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Props, never>;
|
|
17
16
|
export default StatusIndicator;
|
package/dist/src/Type/Text.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "10.1
|
|
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": "^
|
|
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",
|