armtek-uikit-react 1.0.111 → 1.0.113

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 CHANGED
@@ -8,13 +8,22 @@
8
8
  outline: none;
9
9
  background-color: transparent;
10
10
  padding: 0;
11
- font-size: 16px;
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{
@@ -81,7 +81,7 @@
81
81
  opacity: 0;
82
82
  }
83
83
  }
84
- .textfield_error{
84
+ .textfield_root_error{
85
85
  border-color: var(--color-error-dark) !important;
86
86
  }
87
87
 
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.111","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"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.113","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"}}
@@ -1,7 +1,7 @@
1
1
  import { TextFieldProps } from '../TextField/TextField';
2
2
  import { ChangeEvent, MouseEvent } from 'react';
3
3
  import { DatePickerProps } from '../DatePicker/DatePicker';
4
- type BaseInputProps = Pick<TextFieldProps, 'label' | 'className' | 'placeholder'>;
4
+ type BaseInputProps = Pick<TextFieldProps, 'label' | 'className' | 'placeholder' | 'error' | 'helperText'>;
5
5
  export type DateFieldChangeEvent = ChangeEvent<HTMLInputElement> & {
6
6
  value: Date | null;
7
7
  };
@@ -20,6 +20,8 @@ export const DateField = /*#__PURE__*/forwardRef((props, ref) => {
20
20
  placeholder,
21
21
  className,
22
22
  showTime,
23
+ error,
24
+ helperText,
23
25
  showTimeOnly,
24
26
  disabled,
25
27
  value,
@@ -61,6 +63,8 @@ export const DateField = /*#__PURE__*/forwardRef((props, ref) => {
61
63
  label: label,
62
64
  placeholder: placeholder,
63
65
  className: className,
66
+ error: error,
67
+ helperText: helperText,
64
68
  ...inputProps,
65
69
  value: (dateValue == null ? void 0 : dateValue.toLocaleDateString('ru-RU')) || '',
66
70
  onChange: () => null,
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