@nulogy/components 10.1.3 → 10.2.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.
package/dist/main.js
CHANGED
|
@@ -24832,12 +24832,10 @@
|
|
|
24832
24832
|
}]
|
|
24833
24833
|
}, function (_ref6) {
|
|
24834
24834
|
var ref = _ref6.ref,
|
|
24835
|
-
style = _ref6.style
|
|
24836
|
-
placement = _ref6.placement;
|
|
24835
|
+
style = _ref6.style;
|
|
24837
24836
|
return labelHidden || tooltip ? /*#__PURE__*/React__default["default"].createElement(HoverText, {
|
|
24838
24837
|
ref: ref,
|
|
24839
|
-
style: style
|
|
24840
|
-
placement: placement
|
|
24838
|
+
style: style
|
|
24841
24839
|
}, tooltip ? tooltip : children) : null;
|
|
24842
24840
|
})), children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
24843
24841
|
fontSize: fontSize,
|
|
@@ -24846,16 +24844,6 @@
|
|
|
24846
24844
|
color: color
|
|
24847
24845
|
}, children) : children));
|
|
24848
24846
|
});
|
|
24849
|
-
IconicButton.propTypes = {
|
|
24850
|
-
className: PropTypes__default["default"].string,
|
|
24851
|
-
color: PropTypes__default["default"].string,
|
|
24852
|
-
disabled: PropTypes__default["default"].bool,
|
|
24853
|
-
onClick: PropTypes__default["default"].func,
|
|
24854
|
-
icon: PropTypes__default["default"].string,
|
|
24855
|
-
iconSize: PropTypes__default["default"].string,
|
|
24856
|
-
tooltip: PropTypes__default["default"].string,
|
|
24857
|
-
children: PropTypes__default["default"].node
|
|
24858
|
-
};
|
|
24859
24847
|
|
|
24860
24848
|
var WrapperButton = styled__default["default"].button.withConfig({
|
|
24861
24849
|
displayName: "CloseButton__WrapperButton",
|
package/dist/main.module.js
CHANGED
|
@@ -24815,12 +24815,10 @@ var IconicButton = /*#__PURE__*/React__default.forwardRef(function (_a, forwarde
|
|
|
24815
24815
|
}]
|
|
24816
24816
|
}, function (_ref6) {
|
|
24817
24817
|
var ref = _ref6.ref,
|
|
24818
|
-
style = _ref6.style
|
|
24819
|
-
placement = _ref6.placement;
|
|
24818
|
+
style = _ref6.style;
|
|
24820
24819
|
return labelHidden || tooltip ? /*#__PURE__*/React__default.createElement(HoverText, {
|
|
24821
24820
|
ref: ref,
|
|
24822
|
-
style: style
|
|
24823
|
-
placement: placement
|
|
24821
|
+
style: style
|
|
24824
24822
|
}, tooltip ? tooltip : children) : null;
|
|
24825
24823
|
})), children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /*#__PURE__*/React__default.createElement(Text, {
|
|
24826
24824
|
fontSize: fontSize,
|
|
@@ -24829,16 +24827,6 @@ var IconicButton = /*#__PURE__*/React__default.forwardRef(function (_a, forwarde
|
|
|
24829
24827
|
color: color
|
|
24830
24828
|
}, children) : children));
|
|
24831
24829
|
});
|
|
24832
|
-
IconicButton.propTypes = {
|
|
24833
|
-
className: PropTypes.string,
|
|
24834
|
-
color: PropTypes.string,
|
|
24835
|
-
disabled: PropTypes.bool,
|
|
24836
|
-
onClick: PropTypes.func,
|
|
24837
|
-
icon: PropTypes.string,
|
|
24838
|
-
iconSize: PropTypes.string,
|
|
24839
|
-
tooltip: PropTypes.string,
|
|
24840
|
-
children: PropTypes.node
|
|
24841
|
-
};
|
|
24842
24830
|
|
|
24843
24831
|
var WrapperButton = styled.button.withConfig({
|
|
24844
24832
|
displayName: "CloseButton__WrapperButton",
|
|
@@ -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;
|