armtek-uikit-react 1.0.24 → 1.0.26

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/Alert.scss CHANGED
@@ -35,4 +35,7 @@
35
35
  .alert_error{
36
36
  color: $color-error-dark;
37
37
  background: $color-red-50;
38
+ }
39
+ .alert__body{
40
+
38
41
  }
@@ -15,6 +15,9 @@
15
15
  width: 100%;
16
16
  height: 100%;
17
17
  @include flex(center);
18
+ }
19
+ .avatar__innerText{
20
+
18
21
  }
19
22
  .avatar_medium{
20
23
  width: 40px;
@@ -52,6 +52,7 @@
52
52
  }
53
53
  }
54
54
  &.button_neutral {
55
+ color: #fff;
55
56
  background: $color-neutral;
56
57
  &:hover{
57
58
  background: $color-neutral-dark;
@@ -64,6 +65,7 @@
64
65
  }
65
66
  }
66
67
  &.button_black {
68
+ color: #fff;
67
69
  background: $color-gray-900;
68
70
  &:hover{
69
71
  background: $color-neutral-dark;
@@ -11,10 +11,10 @@
11
11
  &:hover{
12
12
  border-color: $color-gray-600;
13
13
  }
14
- &._focused{
14
+ &.textfield_focused{
15
15
  border-color: $color-gray-800;
16
16
  }
17
- &._disabled{
17
+ &.textfield_disabled{
18
18
  pointer-events: none;
19
19
  background: $color-gray-100;
20
20
  border-color: transparent;
@@ -33,6 +33,14 @@
33
33
  border-radius: 0;
34
34
  }
35
35
  }
36
+ .textfield_outlined{
37
+ &.textfield_disabled{
38
+ background: transparent;
39
+ border-bottom-style: dotted;
40
+ border-bottom-width: 1px;
41
+ border-bottom-color: $color-gray-100;
42
+ }
43
+ }
36
44
  .textfield__container{
37
45
  cursor: text;
38
46
  position: relative;
@@ -73,7 +81,7 @@
73
81
  opacity: 0;
74
82
  }
75
83
  }
76
- ._error{
84
+ .textfield_error{
77
85
  border-color: $color-error-dark;
78
86
  }
79
87
 
@@ -83,6 +91,7 @@
83
91
  .textfield__label{
84
92
  pointer-events: none;
85
93
  color: $color-gray-600;
94
+ white-space: nowrap;
86
95
  position: absolute;
87
96
  top: 12px;
88
97
  padding-left: 12px;
@@ -120,9 +129,6 @@
120
129
  left:0;
121
130
  }
122
131
  &:disabled{
123
- border-bottom-color: $color-gray-400;
124
- border-bottom-style: dotted;
125
- background: transparent;
126
132
  & + .textfield__label{
127
133
  color: $color-gray-400;
128
134
  }
@@ -138,6 +144,7 @@
138
144
  z-index: 5;
139
145
  height: 100%;
140
146
  padding-right: 10px;
147
+ font-size: 0;
141
148
  & > *{
142
149
  margin-left: $size-step;
143
150
  }
@@ -145,7 +152,7 @@
145
152
  .textfield__helperText{
146
153
  margin-top: calc($size-step / 2);
147
154
  }
148
- ._disabled{
155
+ .textfield_disabled{
149
156
  & + .textfield__helperText{
150
157
  color: $color-gray-600;
151
158
  }
@@ -4,9 +4,9 @@ class DateClass {
4
4
  }
5
5
  format(form) {
6
6
  let strDate = form;
7
- if (strDate.includes('DD')) strDate = strDate.replace('dd', DateClass.getDisplayValue(this.date.getDate()));
7
+ if (strDate.includes('dd')) strDate = strDate.replace('dd', DateClass.getDisplayValue(this.date.getDate()));
8
8
  if (strDate.includes('MM')) strDate = strDate.replace('MM', this.getStrMonth());
9
- if (strDate.includes('YYYY')) strDate = strDate.replace('yyyy', String(this.date.getFullYear()));
9
+ if (strDate.includes('yyyy')) strDate = strDate.replace('yyyy', String(this.date.getFullYear()));
10
10
  if (strDate.includes('HH')) strDate = strDate.replace('HH', DateClass.getDisplayValue(this.date.getHours()));
11
11
  if (strDate.includes('mm')) strDate = strDate.replace('mm', DateClass.getDisplayValue(this.date.getMinutes()));
12
12
  return strDate;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.24","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.26","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -35,7 +35,7 @@ export const AdornmentContainer = props => {
35
35
  return /*#__PURE__*/_jsx(_Fragment, {
36
36
  children: /*#__PURE__*/_jsx("div", {
37
37
  ...inputProps,
38
- className: clsx(css.adornmentContainer, {
38
+ className: clsx('Arm-adornment-container', css.adornmentContainer, {
39
39
  [css['adornmentContainer_end']]: position !== 'start'
40
40
  }, className),
41
41
  children: children
@@ -1,10 +1,10 @@
1
1
  import { ColorStatusType } from '../../types/theme';
2
- import { HTMLAttributes, ReactNode } from 'react';
2
+ import { HTMLAttributes, MouseEvent, ReactNode } from 'react';
3
3
  export type AlertProps = {
4
4
  status: ColorStatusType;
5
5
  title: string;
6
6
  children: ReactNode | string;
7
- onClose?: () => void;
7
+ onClose?: (e: MouseEvent) => void;
8
8
  } & HTMLAttributes<HTMLDivElement>;
9
9
  declare const Alert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default Alert;
package/ui/Alert/Alert.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import clsx from 'clsx';
2
- import Index from "../ButtonIcon";
2
+ import ButtonIcon from "../ButtonIcon";
3
3
  import css from "./Alert.module.scss";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -30,8 +30,9 @@ const Alert = props => {
30
30
  className: css.alert__title,
31
31
  children: props.title
32
32
  }), /*#__PURE__*/_jsx("div", {
33
+ className: css.alert__body,
33
34
  children: props.children
34
- }), !!onClose && /*#__PURE__*/_jsx(Index, {
35
+ }), !!onClose && /*#__PURE__*/_jsx(ButtonIcon, {
35
36
  onClick: onClose,
36
37
  size: 'small',
37
38
  color: 'neutral',
@@ -1,2 +1 @@
1
- @import "./../../assets/variables";
2
1
  @import "./../../assets/Alert";
@@ -9,5 +9,6 @@ export type AvatarProps = {
9
9
  size?: Exclude<SizeType, 'extraLarge'>;
10
10
  status?: Exclude<ColorStatusType, 'info'>;
11
11
  };
12
+ export declare const getLetters: (name: string) => string;
12
13
  declare const Avatar: (props: AvatarProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export default Avatar;
@@ -7,7 +7,7 @@ const AvatarClasses = ['avatar', 'avatar__inner', 'avatar_small', 'avatar_medium
7
7
 
8
8
  // const css = getCssPrefix(AvatarClasses)
9
9
 
10
- const getLetters = name => {
10
+ export const getLetters = name => {
11
11
  let nameParts = name.split(' ');
12
12
  return nameParts[0].split('')[0] + (nameParts[1] ? nameParts[1].split('')[0] : '');
13
13
  };
@@ -28,16 +28,16 @@ const Avatar = props => {
28
28
  });
29
29
  return /*#__PURE__*/_jsx(_Fragment, {
30
30
  children: /*#__PURE__*/_jsxs("div", {
31
- className: clsx(css.avatar, css['avatar_' + props.size]),
31
+ className: clsx('Arm-avatar', css.avatar, css['avatar_' + props.size]),
32
32
  children: [/*#__PURE__*/_jsx("div", {
33
33
  className: css.avatar__inner,
34
34
  children: props.href ? /*#__PURE__*/_jsx("a", {
35
35
  href: props.href,
36
36
  ...props.linkProps,
37
- className: css.avatar__inner,
37
+ className: css.avatar__innerText,
38
38
  children: content
39
39
  }) : /*#__PURE__*/_jsx("span", {
40
- className: css.avatar__inner,
40
+ className: css.avatar__innerText,
41
41
  children: content
42
42
  })
43
43
  }), props.status && /*#__PURE__*/_jsx("span", {
@@ -13,7 +13,7 @@ const AvatarGroup = props => {
13
13
  let visiblePart = arrChildren.slice(0, props.limit || 3);
14
14
  return /*#__PURE__*/_jsx(_Fragment, {
15
15
  children: /*#__PURE__*/_jsxs("div", {
16
- className: clsx(css.avatarGroup, css['avatarGroup_' + props.size]),
16
+ className: clsx('Arm-avatar-group', css.avatarGroup, css['avatarGroup_' + props.size]),
17
17
  children: [visiblePart.length < arrChildren.length && /*#__PURE__*/_jsxs("div", {
18
18
  className: clsx(css.avatarGroup__item, css.avatarGroup__remains, css['avatarGroup__remains_' + props.size]),
19
19
  children: ["+", arrChildren.length - visiblePart.length]
package/ui/Badge/Badge.js CHANGED
@@ -15,7 +15,7 @@ function Badge(props) {
15
15
  } = props;
16
16
  return /*#__PURE__*/_jsx(_Fragment, {
17
17
  children: /*#__PURE__*/_jsxs("span", {
18
- className: css.badge,
18
+ className: clsx('Arm-badge', css.badge),
19
19
  children: [/*#__PURE__*/_jsx("span", {
20
20
  className: css.badge__content,
21
21
  children: props.children
package/ui/Chip/Chip.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { ComponentPropsWithoutRef, ElementType, HTMLAttributes } from 'react';
1
+ import { ComponentPropsWithoutRef, ElementType, MouseEvent, HTMLAttributes } from 'react';
2
2
  import { ColorType, SizeType, VariantType } from '../../types/theme';
3
3
  export type ChipProps<T extends ElementType = ElementType<HTMLAttributes<HTMLSpanElement>>> = Omit<ComponentPropsWithoutRef<T>, 'color'> & {
4
4
  size?: Exclude<SizeType, 'large' | 'extraLarge'>;
5
5
  color?: ColorType;
6
6
  text?: string;
7
- onClose?: () => void;
7
+ onClose?: (e: MouseEvent) => void;
8
8
  icon?: string;
9
9
  variant?: Exclude<VariantType, 'transparent'>;
10
10
  as?: T;
package/ui/Chip/Chip.js CHANGED
@@ -21,7 +21,7 @@ function Chip(props) {
21
21
  let Component = as || 'span';
22
22
  return /*#__PURE__*/_jsx(_Fragment, {
23
23
  children: /*#__PURE__*/_jsx(Component, {
24
- className: clsx(css.chip, css['chip_' + size], css['chip_' + variant], css['chip_' + color]),
24
+ className: clsx('Arm-chip', css.chip, css['chip_' + size], css['chip_' + variant], css['chip_' + color]),
25
25
  children: /*#__PURE__*/_jsxs("span", {
26
26
  className: css.chip__inner,
27
27
  children: [icon && /*#__PURE__*/_jsx("span", {
@@ -31,6 +31,7 @@ function Chip(props) {
31
31
  children: text || children
32
32
  }), onClose && /*#__PURE__*/_jsx("span", {
33
33
  className: clsx('material_icon_solid', css['chip__close_' + size], css['chip__close_' + color], css.chip__close),
34
+ onClick: onClose,
34
35
  children: "cancel"
35
36
  })]
36
37
  })
@@ -32,8 +32,11 @@ const Checkbox = props => {
32
32
  children: /*#__PURE__*/_jsxs("div", {
33
33
  className: clsx(css.checkbox, className),
34
34
  children: [/*#__PURE__*/_jsx("input", {
35
- className: css.checkbox__input,
36
35
  ...inputProps,
36
+ className: clsx(css.checkbox__input, {
37
+ '_checked': !!inputProps.checked
38
+ }),
39
+ onChange: onChange,
37
40
  type: props.type || 'checkbox'
38
41
  }), /*#__PURE__*/_jsx("label", {
39
42
  onClick: handleClick,
@@ -2,9 +2,8 @@
2
2
 
3
3
  import TextField from "../TextField/TextField";
4
4
  import { forwardRef, useState } from 'react';
5
- import Index from "../../ButtonIcon";
6
- import Card from "../../Card/Card";
7
5
  import DatePicker from "../DatePicker/DatePicker";
6
+ import ButtonIcon from "../../ButtonIcon";
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
8
  import { Fragment as _Fragment } from "react/jsx-runtime";
10
9
  const DateInput = /*#__PURE__*/forwardRef((props, ref) => {
@@ -17,7 +16,7 @@ const DateInput = /*#__PURE__*/forwardRef((props, ref) => {
17
16
  return /*#__PURE__*/_jsx(TextField, {
18
17
  ref: ref,
19
18
  ...restProps,
20
- endAdornment: /*#__PURE__*/_jsx(Index, {
19
+ endAdornment: /*#__PURE__*/_jsx(ButtonIcon, {
21
20
  size: 'medium',
22
21
  variant: 'transparent',
23
22
  onClick: props.onClick,
@@ -55,8 +54,9 @@ const DateField = /*#__PURE__*/forwardRef((props, ref) => {
55
54
  ref: ref,
56
55
  ...restProps
57
56
  }),
58
- inline: false,
59
- calendarContainer: Card,
57
+ inline: false
58
+ // calendarContainer={Card}
59
+ ,
60
60
  popperPlacement: "top-end",
61
61
  dateFormat: format
62
62
  })
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ReactDatePickerProps } from 'react-datepicker';
3
2
  import '!style-loader!css-loader!./styles.css';
4
3
  declare const DatePicker: import("react").ForwardRefExoticComponent<{
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextFieldProps } from '../TextField/TextField';
3
2
  export type IntervalProps = {
4
3
  min: number;
@@ -38,13 +38,13 @@ const Interval = /*#__PURE__*/forwardRef((props, ref) => {
38
38
  let val = parseInt(e.target.value);
39
39
  val = val < min ? min : val;
40
40
  setCurrentMin(val);
41
- if (onChange) onChange([val, max]);
41
+ if (onChange) onChange([val, Array.isArray(value) && value.length === 2 ? value[1] : max]);
42
42
  };
43
43
  const handleMax = e => {
44
44
  let val = parseInt(e.target.value);
45
45
  val = val > max ? max : val;
46
46
  setCurrentMax(val);
47
- if (onChange) onChange([min, val]);
47
+ if (onChange) onChange([Array.isArray(value) && value.length === 2 ? value[0] : min, val]);
48
48
  };
49
49
  let realMin = currentMin;
50
50
  let realMax = currentMax;
@@ -52,47 +52,49 @@ const Interval = /*#__PURE__*/forwardRef((props, ref) => {
52
52
  realMin = value[0];
53
53
  realMax = value[1];
54
54
  }
55
- return /*#__PURE__*/_jsxs(_Fragment, {
56
- children: [/*#__PURE__*/_jsx(TextFieldContainer, {
57
- focused: focused,
58
- error: error,
59
- disabled: disabled,
60
- size: inputProps.size,
61
- variant: inputProps.variant,
62
- children: /*#__PURE__*/_jsxs("div", {
63
- className: css.interval,
64
- children: [/*#__PURE__*/_jsx("div", {
65
- className: css.interval__item,
66
- children: /*#__PURE__*/_jsx(TextFieldInput, {
67
- ...inputProps,
68
- value: realMin,
69
- label: labelStart,
70
- type: 'number',
71
- onFocus: handleFocus,
72
- onBlur: handleBlur,
73
- focused: true,
74
- onChange: handleMin
75
- })
76
- }), /*#__PURE__*/_jsx("div", {
77
- className: css.interval__item,
78
- children: /*#__PURE__*/_jsx(TextFieldInput, {
79
- ...inputProps,
80
- value: realMax,
81
- label: labelEnd,
82
- type: 'number',
83
- onFocus: handleFocus,
84
- onBlur: handleBlur,
85
- className: css.interval__end,
86
- focused: true,
87
- onChange: handleMax
88
- })
89
- })]
90
- })
91
- }), helperText && /*#__PURE__*/_jsx(HelperText, {
92
- className: css.interval__helperText,
93
- error: error,
94
- children: helperText
95
- })]
55
+ return /*#__PURE__*/_jsx(_Fragment, {
56
+ children: /*#__PURE__*/_jsxs("div", {
57
+ children: [/*#__PURE__*/_jsx(TextFieldContainer, {
58
+ focused: focused,
59
+ error: error,
60
+ disabled: disabled,
61
+ size: inputProps.size,
62
+ variant: inputProps.variant,
63
+ children: /*#__PURE__*/_jsxs("div", {
64
+ className: css.interval,
65
+ children: [/*#__PURE__*/_jsx("div", {
66
+ className: css.interval__item,
67
+ children: /*#__PURE__*/_jsx(TextFieldInput, {
68
+ ...inputProps,
69
+ value: realMin,
70
+ label: labelStart,
71
+ type: 'number',
72
+ onFocus: handleFocus,
73
+ onBlur: handleBlur,
74
+ focused: true,
75
+ onChange: handleMin
76
+ })
77
+ }), /*#__PURE__*/_jsx("div", {
78
+ className: css.interval__item,
79
+ children: /*#__PURE__*/_jsx(TextFieldInput, {
80
+ ...inputProps,
81
+ value: realMax,
82
+ label: labelEnd,
83
+ type: 'number',
84
+ onFocus: handleFocus,
85
+ onBlur: handleBlur,
86
+ className: css.interval__end,
87
+ focused: true,
88
+ onChange: handleMax
89
+ })
90
+ })]
91
+ })
92
+ }), helperText && /*#__PURE__*/_jsx(HelperText, {
93
+ className: css.interval__helperText,
94
+ error: error,
95
+ children: helperText
96
+ })]
97
+ })
96
98
  });
97
99
  });
98
100
  export default Interval;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Password: import("react").ForwardRefExoticComponent<{
3
2
  label?: string | undefined;
4
3
  size?: "large" | "small" | undefined;
@@ -2,7 +2,7 @@
2
2
 
3
3
  import TextField from "../TextField/TextField";
4
4
  import { forwardRef, useRef, useState } from 'react';
5
- import Index from "../../ButtonIcon";
5
+ import ButtonIcon from "../../ButtonIcon";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { Fragment as _Fragment } from "react/jsx-runtime";
8
8
  const Password = /*#__PURE__*/forwardRef((props, ref) => {
@@ -27,7 +27,7 @@ const Password = /*#__PURE__*/forwardRef((props, ref) => {
27
27
  ...restProps,
28
28
  type: isPassword ? 'password' : 'text',
29
29
  onChange: handleChange,
30
- endAdornment: /*#__PURE__*/_jsx(Index, {
30
+ endAdornment: /*#__PURE__*/_jsx(ButtonIcon, {
31
31
  size: 'medium',
32
32
  variant: 'transparent',
33
33
  color: 'neutral',
@@ -1,15 +1,7 @@
1
- /// <reference types="react" />
1
+ import { TextFieldProps } from '../TextField/TextField';
2
2
  declare const Period: import("react").ForwardRefExoticComponent<{
3
3
  format?: string | undefined;
4
4
  onChange?: ((value: [Date | null, Date | null]) => void) | undefined;
5
- } & {
6
- label?: string | undefined;
7
- size?: "large" | "small" | undefined;
8
- variant?: import("../../../types/theme").VariantType | undefined;
9
- error?: boolean | undefined;
10
- success?: boolean | undefined;
11
- helperText?: string | undefined;
12
- endAdornment?: import("react").ReactNode;
13
- multiline?: boolean | undefined;
14
- } & Omit<import("react").InputHTMLAttributes<any>, "size"> & import("react").RefAttributes<unknown>>;
5
+ value?: [Date | null, Date | null] | undefined;
6
+ } & Omit<TextFieldProps, "value" | "onChange"> & import("react").RefAttributes<unknown>>;
15
7
  export default Period;
@@ -2,7 +2,7 @@
2
2
 
3
3
  import TextField from "../TextField/TextField";
4
4
  import { forwardRef, useState } from 'react';
5
- import Index from "../../ButtonIcon";
5
+ import ButtonIcon from "../../ButtonIcon";
6
6
  import Card from "../../Card/Card";
7
7
  import DatePicker from "../DatePicker/DatePicker";
8
8
  import { DateService } from "../../../lib/services/DateService";
@@ -17,7 +17,7 @@ const CssClasses = ['dateField', 'dateField__picker'];
17
17
  const Period = /*#__PURE__*/forwardRef((props, ref) => {
18
18
  let {
19
19
  onChange,
20
- format = 'DD.MM.YYYY',
20
+ format = 'dd.MM.yyyy',
21
21
  onInput,
22
22
  ...restProps
23
23
  } = props;
@@ -31,8 +31,9 @@ const Period = /*#__PURE__*/forwardRef((props, ref) => {
31
31
  if (date[0] && date[1]) setActive(false);
32
32
  if (onChange) onChange(date);
33
33
  };
34
+ let realValue = Array.isArray(props.value) ? props.value : value;
34
35
  let displayValue = '';
35
- if (value[0] && value[1]) displayValue = `${DateService(value[0]).format('DD.MM.YYYY')} - ${DateService(value[1]).format('DD.MM.YYYY')}`;
36
+ if (realValue[0] && realValue[1]) displayValue = `${DateService(realValue[0]).format('dd.MM.yyyy')} - ${DateService(realValue[1]).format('dd.MM.yyyy')}`;
36
37
  return /*#__PURE__*/_jsx(_Fragment, {
37
38
  children: /*#__PURE__*/_jsxs("div", {
38
39
  className: css.dateField,
@@ -42,7 +43,7 @@ const Period = /*#__PURE__*/forwardRef((props, ref) => {
42
43
  ...restProps,
43
44
  value: displayValue,
44
45
  onFocus: handleClick,
45
- endAdornment: /*#__PURE__*/_jsx(Index, {
46
+ endAdornment: /*#__PURE__*/_jsx(ButtonIcon, {
46
47
  size: 'medium',
47
48
  variant: 'transparent',
48
49
  color: 'neutral',
@@ -58,9 +59,9 @@ const Period = /*#__PURE__*/forwardRef((props, ref) => {
58
59
  onBlur: () => {
59
60
  setActive(false);
60
61
  },
61
- selected: value[0],
62
- startDate: value[0],
63
- endDate: value[1]
62
+ selected: realValue[0],
63
+ startDate: realValue[0],
64
+ endDate: realValue[1]
64
65
  })
65
66
  })]
66
67
  })
@@ -7,7 +7,7 @@ import css from "./TextField.module.scss";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  import { Fragment as _Fragment } from "react/jsx-runtime";
10
- const CssClasses = ['textfield__container_outlined', 'textfield__container', 'textfield', 'textfield_outlined', '_focused', '_disabled', '_error', '_label', 'textfield__label_focused', 'textfield__label_small', 'textfield__label_error', 'textfield__label', 'textfield__input', 'textfield__input_outlined', 'size_small', 'textfield__adornment', 'textfield__helperText', 'textfield__icon'];
10
+ const CssClasses = ['textfield__container_outlined', 'textfield__container', 'textfield', 'textfield_outlined', 'textfield_focused', 'textfield_disabled', 'textfield_error', '_label', 'textfield__label_focused', 'textfield__label_small', 'textfield__label_error', 'textfield__label', 'textfield__input', 'textfield__input_outlined', 'size_small', 'textfield__adornment', 'textfield__helperText', 'textfield__icon'];
11
11
 
12
12
  // const css = getCssPrefix(CssClasses)
13
13
 
@@ -100,9 +100,9 @@ export const TextFieldContainer = props => {
100
100
  children: /*#__PURE__*/_jsx("div", {
101
101
  ...restProps,
102
102
  className: clsx(css.textfield, css['textfield_' + variant], css['size_' + size], {
103
- [css._focused]: focused,
104
- [css._disabled]: disabled,
105
- [css._error]: error
103
+ [css.textfield_focused]: focused,
104
+ [css.textfield_disabled]: disabled,
105
+ [css.textfield_error]: error
106
106
  }, className),
107
107
  children: children
108
108
  })
@@ -133,8 +133,8 @@ export const TextFieldInput = /*#__PURE__*/forwardRef((props, ref) => {
133
133
  ...inputProps,
134
134
  className: clsx(css.textfield__input, css['size_' + size], css['textfield__input_' + variant], {
135
135
  [css._label]: !!label,
136
- [css._focused]: focused,
137
- [css._error]: !!error,
136
+ [css.textfield_focused]: focused,
137
+ [css.textfield_error]: !!error,
138
138
  [css.textarea]: multiline
139
139
  }, className)
140
140
  }), label && /*#__PURE__*/_jsx("span", {
@@ -16,7 +16,7 @@ const HelperText = props => {
16
16
  return /*#__PURE__*/_jsx(_Fragment, {
17
17
  children: /*#__PURE__*/_jsx("span", {
18
18
  ...restProps,
19
- className: clsx(css.helperText, {
19
+ className: clsx('Arm-helper-text', css.helperText, {
20
20
  [css.helperText_error]: !!error
21
21
  }, className),
22
22
  children: children
@@ -35,6 +35,7 @@ const ListItem = props => {
35
35
  position: 'start',
36
36
  children: /*#__PURE__*/_jsx(Checkbox, {
37
37
  checked: checked,
38
+ readOnly: true,
38
39
  size: 'small'
39
40
  })
40
41
  }), !!startAdornment && /*#__PURE__*/_jsx(Adornment, {
package/ui/Logo/Logo.d.ts CHANGED
@@ -7,6 +7,8 @@ export type LogoProps = {
7
7
  href?: string;
8
8
  shape?: boolean;
9
9
  linkProps?: HTMLAttributes<HTMLAnchorElement>;
10
+ width?: number;
11
+ height?: number;
10
12
  } & HTMLAttributes<HTMLDivElement>;
11
13
  declare const Logo: (props: LogoProps) => import("react/jsx-runtime").JSX.Element;
12
14
  export default Logo;
package/ui/Logo/Logo.js CHANGED
@@ -18,12 +18,14 @@ const Logo = props => {
18
18
  src,
19
19
  linkProps,
20
20
  inverse,
21
+ width,
22
+ height,
21
23
  ...restProps
22
24
  } = props;
23
25
  return /*#__PURE__*/_jsx(_Fragment, {
24
26
  children: /*#__PURE__*/_jsx("div", {
25
27
  ...restProps,
26
- className: clsx(css.logo, {
28
+ className: clsx('Arm-logo', css.logo, {
27
29
  [css.logo_inverse]: inverse,
28
30
  [css.logo_shape]: shape
29
31
  }, className),
@@ -39,7 +41,9 @@ const Logo = props => {
39
41
  alt: ''
40
42
  }) : children || /*#__PURE__*/_jsx(LogoArmtek, {
41
43
  black: black,
42
- inverse: inverse
44
+ inverse: inverse,
45
+ width: width,
46
+ height: height
43
47
  })
44
48
  }) : /*#__PURE__*/_jsx("span", {
45
49
  children: src ? /*#__PURE__*/_jsx("img", {
@@ -47,7 +51,9 @@ const Logo = props => {
47
51
  alt: ''
48
52
  }) : children || /*#__PURE__*/_jsx(LogoArmtek, {
49
53
  black: black,
50
- inverse: inverse
54
+ inverse: inverse,
55
+ width: width,
56
+ height: height
51
57
  })
52
58
  })
53
59
  }), description && /*#__PURE__*/_jsx("div", {
@@ -60,11 +66,15 @@ const Logo = props => {
60
66
  };
61
67
  const LogoArmtek = ({
62
68
  black,
63
- inverse
69
+ inverse,
70
+ width,
71
+ height
64
72
  }) => {
65
73
  let part1Color = '#FF7F00';
66
74
  let part2Color = inverse ? '#FFFFFF' : '#212529';
67
75
  if (black) part1Color = part2Color;
76
+ let w = width || 324;
77
+ let h = height || 40;
68
78
  return /*#__PURE__*/_jsx(_Fragment, {
69
79
  children: /*#__PURE__*/_jsxs("svg", {
70
80
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import RcSlider from 'rc-slider';
3
2
  import '!style-loader!css-loader!./style.css';
4
3
  import HelperText from "../HelperText/HelperText";
@@ -22,10 +21,14 @@ const Slider = props => {
22
21
  className: '_' + size
23
22
  }), restProps.min !== undefined && restProps.max !== undefined && /*#__PURE__*/_jsxs("div", {
24
23
  className: css.slider__helperText,
25
- children: [/*#__PURE__*/_jsx(HelperText, {
26
- children: restProps.min
27
- }), /*#__PURE__*/_jsx(HelperText, {
28
- children: restProps.max
24
+ children: [/*#__PURE__*/_jsx("div", {
25
+ children: /*#__PURE__*/_jsx(HelperText, {
26
+ children: restProps.min
27
+ })
28
+ }), /*#__PURE__*/_jsx("div", {
29
+ children: /*#__PURE__*/_jsx(HelperText, {
30
+ children: restProps.max
31
+ })
29
32
  })]
30
33
  })]
31
34
  })
@@ -20,7 +20,7 @@ function Status(props) {
20
20
  children: [/*#__PURE__*/_jsx("span", {
21
21
  className: css.status__content,
22
22
  children: text || children
23
- }), /*#__PURE__*/_jsx("span", {
23
+ }), icon && /*#__PURE__*/_jsx("span", {
24
24
  className: clsx(css.status__icon, 'material_icon'),
25
25
  children: icon
26
26
  })]