@nulogy/components 8.14.2 → 8.14.3
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 +1 -0
- package/dist/main.module.js +1 -0
- package/dist/src/Link/Link.d.ts +2 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -10123,6 +10123,7 @@
|
|
|
10123
10123
|
|
|
10124
10124
|
var componentSize = useComponentSize(size);
|
|
10125
10125
|
return /*#__PURE__*/React__default["default"].createElement(StyledLink, Object.assign({
|
|
10126
|
+
ref: ref,
|
|
10126
10127
|
size: componentSize
|
|
10127
10128
|
}, props));
|
|
10128
10129
|
});
|
package/dist/main.module.js
CHANGED
|
@@ -10100,6 +10100,7 @@ var Link = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
10100
10100
|
|
|
10101
10101
|
var componentSize = useComponentSize(size);
|
|
10102
10102
|
return /*#__PURE__*/React__default.createElement(StyledLink, Object.assign({
|
|
10103
|
+
ref: ref,
|
|
10103
10104
|
size: componentSize
|
|
10104
10105
|
}, props));
|
|
10105
10106
|
});
|
package/dist/src/Link/Link.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StyledProps } from "../StyledProps";
|
|
3
3
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
4
|
-
export type LinkProps = React.ComponentPropsWithRef<"a"> & StyledProps & {
|
|
4
|
+
export type LinkProps = React.ComponentPropsWithRef<"a"> & Partial<StyledProps> & {
|
|
5
5
|
underline?: boolean;
|
|
6
6
|
hover?: string;
|
|
7
7
|
size?: ComponentSize;
|
|
8
8
|
to?: string;
|
|
9
9
|
as?: React.ElementType | string;
|
|
10
10
|
};
|
|
11
|
-
declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "p" | "
|
|
11
|
+
declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "p" | "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement> | "border" | "borderX" | "borderY" | "borderWidth" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStyle" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderColor" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "boxShadow" | "bg" | "backgroundColor" | "opacity" | "cursor" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "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" | "whiteSpace" | "textOverflow" | "transform" | "transition" | "transitionProperty" | "transitonDuration" | "transitionTimingFunction" | "transitionDelay" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "visibility" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flex" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "order" | "underline" | "as" | "hover" | "to"> & React.RefAttributes<HTMLLinkElement>>;
|
|
12
12
|
export default Link;
|