armtek-uikit-react 1.0.38 → 1.0.41

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.
@@ -19,6 +19,9 @@
19
19
  cursor: initial;
20
20
  }
21
21
  }
22
+ .button__iconWrapper{
23
+ font-size: 0;
24
+ }
22
25
  .button_radius_none{
23
26
  border-radius: 0;
24
27
  }
package/assets/Chip.scss CHANGED
@@ -7,6 +7,11 @@
7
7
  font-size: 13px;
8
8
  display: inline-block;
9
9
  }
10
+
11
+ .chip_square{
12
+ border-radius: $radius;
13
+ }
14
+
10
15
  .chip__text{
11
16
  line-height: 1.15;
12
17
  }
@@ -85,6 +90,68 @@ button.chip_secondary{
85
90
  }
86
91
  }
87
92
 
93
+ .chip_success{
94
+ background-color: $color-success;
95
+ }
96
+ a.chip_success,
97
+ button.chip_success{
98
+ &:hover{
99
+ background-color: $color-success-dark;
100
+ }
101
+ }
102
+
103
+ .chip_error{
104
+ background-color: $color-error;
105
+ }
106
+ a.chip_error,
107
+ button.chip_error{
108
+ &:hover{
109
+ color: #fff;
110
+ background-color: $color-error-dark;
111
+ }
112
+ }
113
+
114
+ .chip_warning{
115
+ background-color: $color-warning;
116
+ }
117
+ a.chip_warning,
118
+ button.chip_warning{
119
+ &:hover{
120
+ background-color: $color-warning-dark;
121
+ }
122
+ }
123
+
124
+ .chip_info{
125
+ color: #fff;
126
+ background-color: $color-info;
127
+ }
128
+ a.chip_info,
129
+ button.chip_info{
130
+ &:hover{
131
+ background-color: $color-info-dark;
132
+ }
133
+ }
134
+
135
+ .chip_black{
136
+ color: #fff;
137
+ background-color: $color-neutral;
138
+ }
139
+ a.chip_info,
140
+ button.chip_info{
141
+ &:hover{
142
+ background-color: $color-neutral-dark;
143
+ }
144
+ }
145
+
146
+ .chip_white{
147
+ background: #fff;
148
+ }
149
+ a.chip_white,
150
+ button.chip_white{
151
+ &:hover{
152
+ background-color: $color-gray-100;
153
+ }
154
+ }
88
155
  .chip_primary{
89
156
  color: #fff;
90
157
  background-color: $color-primary;
@@ -96,6 +163,8 @@ button.chip_primary{
96
163
  background-color: $color-primary-dark;
97
164
  }
98
165
  }
166
+
167
+
99
168
  .chip_disabled{
100
169
  pointer-events: none;
101
170
  opacity: 0.5;
@@ -55,6 +55,7 @@
55
55
  border-color:transparent;
56
56
  }
57
57
  & .stepItem__content:before{
58
+ display: none;
58
59
  content: '';
59
60
  position: absolute;
60
61
  top: -19px;
@@ -64,4 +65,24 @@
64
65
  background: #B1BCC6;
65
66
  z-index: -1;
66
67
  }
68
+ & .stepItem__inner{
69
+ position: relative;
70
+ }
71
+ & .stepItem__title{
72
+ margin-left: 0;
73
+ padding-left: 8px;
74
+ }
75
+ & .stepItem__inner:before{
76
+ content: '';
77
+ position: absolute;
78
+ top: 10px;
79
+ width: 100%;
80
+ left: 24px;
81
+ height: 1px;
82
+ background: #B1BCC6;
83
+ z-index: -1;
84
+ }
85
+ &.stepItem_last .stepItem__inner:before{
86
+ display: none;
87
+ }
67
88
  }
@@ -20,6 +20,7 @@
20
20
  }
21
21
  border-color: $color-primary;
22
22
  color: $color-primary;
23
+ background: #fff;
23
24
  }
24
25
 
25
26
  .stepItemIcon__inner{
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.38","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":"*","clsx":"^2.0.0"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.41","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":"*","clsx":"^2.0.0"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
package/ui/Alert/Alert.js CHANGED
@@ -38,7 +38,10 @@ const Alert = props => {
38
38
  color: 'neutral',
39
39
  variant: 'transparent',
40
40
  className: clsx(css.alert__close, 'material_icon'),
41
- children: "close"
41
+ children: /*#__PURE__*/_jsx("span", {
42
+ className: 'material_icon',
43
+ children: "close"
44
+ })
42
45
  })]
43
46
  })
44
47
  });
@@ -9,6 +9,7 @@ type OwnProps<T extends ElementType = ElementType> = {
9
9
  endAdornment?: string | ReactNode;
10
10
  group?: 'inline' | 'column';
11
11
  radius?: boolean;
12
+ icon?: boolean;
12
13
  as?: T;
13
14
  };
14
15
  export type ButtonProps<T extends ElementType = ElementType<HTMLAttributes<HTMLButtonElement>>> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps>;
@@ -34,6 +34,7 @@ const Button = props => {
34
34
  className: clsx(css.button__adornment, css.button__adornment_start),
35
35
  children: startAdornment
36
36
  }), /*#__PURE__*/_jsx("div", {
37
+ className: css.button__iconWrapper,
37
38
  children: children
38
39
  }), endAdornment && /*#__PURE__*/_jsx("div", {
39
40
  className: clsx(css.button__adornment, css.button__adornment_end),
@@ -11,6 +11,7 @@ const ButtonIcon = props => {
11
11
  return /*#__PURE__*/_jsx(_Fragment, {
12
12
  children: /*#__PURE__*/_jsx(Button, {
13
13
  ...props,
14
+ icon: true,
14
15
  className: clsx(css.button_icon, css['button_icon_' + props.size], props.className),
15
16
  children: props.children
16
17
  })
package/ui/Chip/Chip.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, MouseEvent, HTMLAttributes } from 'react';
2
- import { ColorType, SizeType, VariantType } from '../../types/theme';
2
+ import { ColorStatusType, ColorThemeType, ColorType, SizeType, VariantType, ShapeType } 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
- color?: ColorType;
5
+ color?: ColorType | ColorThemeType | ColorStatusType;
6
6
  text?: string;
7
7
  onClose?: (e: MouseEvent) => void;
8
8
  icon?: string;
9
9
  variant?: Exclude<VariantType, 'transparent'>;
10
+ shape?: ShapeType;
10
11
  as?: T;
11
12
  disabled?: boolean;
12
13
  className?: string;
package/ui/Chip/Chip.js CHANGED
@@ -13,6 +13,7 @@ function Chip(props) {
13
13
  text,
14
14
  icon,
15
15
  onClose,
16
+ shape = 'circle',
16
17
  as,
17
18
  variant,
18
19
  color,
@@ -25,7 +26,7 @@ function Chip(props) {
25
26
  children: /*#__PURE__*/_jsx(Component, {
26
27
  className: clsx('Arm-chip', className, {
27
28
  [css.chip_disabled]: !!disabled
28
- }, css.chip, css['chip_' + size], css['chip_' + variant], css['chip_' + color]),
29
+ }, css.chip, css['chip_' + size], css['chip_' + variant], css['chip_' + color], css['chip_' + shape]),
29
30
  children: /*#__PURE__*/_jsxs("span", {
30
31
  className: css.chip__inner,
31
32
  children: [icon && /*#__PURE__*/_jsx("span", {
@@ -39,7 +40,10 @@ function Chip(props) {
39
40
  [css.chip__close_disabled]: !!disabled
40
41
  }, css['chip__close_' + size], css['chip__close_' + color], css.chip__close),
41
42
  onClick: onClose,
42
- children: "cancel"
43
+ children: /*#__PURE__*/_jsx("span", {
44
+ className: 'material_icon',
45
+ children: "cancel"
46
+ })
43
47
  })]
44
48
  })
45
49
  })