armtek-uikit-react 1.0.111 → 1.0.112
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/assets/Link.scss +10 -1
- package/package.json +1 -1
- package/ui/Link/Link.d.ts +2 -1
- package/ui/Link/Link.js +2 -0
package/assets/Link.scss
CHANGED
|
@@ -8,13 +8,22 @@
|
|
|
8
8
|
outline: none;
|
|
9
9
|
background-color: transparent;
|
|
10
10
|
padding: 0;
|
|
11
|
-
font-size:
|
|
11
|
+
font-size: inherit;
|
|
12
12
|
font-family: inherit;
|
|
13
13
|
text-decoration: none;
|
|
14
14
|
&:hover{
|
|
15
15
|
color: var(--color-primary-light)
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
.link_size_small{
|
|
19
|
+
font-size: 13px;
|
|
20
|
+
}
|
|
21
|
+
.link_size_medium{
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
}
|
|
24
|
+
.link_size_large{
|
|
25
|
+
font-size: 20px;
|
|
26
|
+
}
|
|
18
27
|
.link_color_secondary{
|
|
19
28
|
color: var(--color-secondary);
|
|
20
29
|
&:hover{
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
1
|
+
{"name":"armtek-uikit-react","version":"1.0.112","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
|
package/ui/Link/Link.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ElementType } from 'react';
|
|
2
|
-
import { ColorStatusType, ColorType, ThemeType } from '../../types/theme';
|
|
2
|
+
import { ColorStatusType, ColorType, SizeType, ThemeType } from '../../types/theme';
|
|
3
3
|
type LinkType = 'a';
|
|
4
4
|
type OwnProps<T extends ElementType = LinkType> = {
|
|
5
5
|
border?: 'solid' | 'dotted' | 'dashed';
|
|
@@ -7,6 +7,7 @@ type OwnProps<T extends ElementType = LinkType> = {
|
|
|
7
7
|
as?: T;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
theme?: ThemeType;
|
|
10
|
+
size?: SizeType;
|
|
10
11
|
};
|
|
11
12
|
export type LinkProps<T extends ElementType = LinkType> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps<T>>;
|
|
12
13
|
declare const Link: <T extends ElementType = "a">(props: LinkProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/ui/Link/Link.js
CHANGED
|
@@ -9,6 +9,7 @@ const Link = props => {
|
|
|
9
9
|
disabled,
|
|
10
10
|
className,
|
|
11
11
|
theme,
|
|
12
|
+
size,
|
|
12
13
|
color,
|
|
13
14
|
as,
|
|
14
15
|
...restProps
|
|
@@ -21,6 +22,7 @@ const Link = props => {
|
|
|
21
22
|
[css.link_border]: !!border,
|
|
22
23
|
[css.link_disabled]: !!disabled,
|
|
23
24
|
[css.link_dark]: theme === 'dark',
|
|
25
|
+
[css['link_size_' + size]]: !!size,
|
|
24
26
|
[css['link_color_' + color]]: !!color
|
|
25
27
|
}, css['link_border_' + border], className),
|
|
26
28
|
children: children
|