armtek-uikit-react 1.0.39 → 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.
- package/assets/Button.scss +3 -0
- package/assets/Chip.scss +69 -0
- package/assets/StepItemIcon.scss +1 -0
- package/package.json +1 -1
- package/ui/Alert/Alert.js +4 -1
- package/ui/Button/Button.d.ts +1 -0
- package/ui/Button/Button.js +1 -0
- package/ui/ButtonIcon/ButtonIcon.js +1 -0
- package/ui/Chip/Chip.d.ts +3 -2
- package/ui/Chip/Chip.js +6 -2
package/assets/Button.scss
CHANGED
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;
|
package/assets/StepItemIcon.scss
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
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: "
|
|
41
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
42
|
+
className: 'material_icon',
|
|
43
|
+
children: "close"
|
|
44
|
+
})
|
|
42
45
|
})]
|
|
43
46
|
})
|
|
44
47
|
});
|
package/ui/Button/Button.d.ts
CHANGED
|
@@ -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>;
|
package/ui/Button/Button.js
CHANGED
|
@@ -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),
|
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: "
|
|
43
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
44
|
+
className: 'material_icon',
|
|
45
|
+
children: "cancel"
|
|
46
|
+
})
|
|
43
47
|
})]
|
|
44
48
|
})
|
|
45
49
|
})
|