armtek-uikit-react 1.0.91 → 1.0.92
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/Accordion.scss +27 -0
- package/assets/Link.scss +40 -0
- package/assets/StepItem.scss +3 -1
- package/assets/global.css +9 -1
- package/package.json +1 -1
- package/ui/Accordion/Accordion.js +10 -1
- package/ui/Form/FormControls/FormControls.d.ts +1 -1
- package/ui/Link/Link.d.ts +2 -1
- package/ui/Link/Link.js +3 -1
- package/ui/Modal/BaseModal.d.ts +1 -1
- package/ui/Stepper/StepItem.js +2 -1
package/assets/Accordion.scss
CHANGED
|
@@ -54,4 +54,31 @@
|
|
|
54
54
|
.AccordionTitle_variant_alert,
|
|
55
55
|
.AccordionTitle_variant_section{
|
|
56
56
|
font-weight: 700;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.Accordion_variant_contained {
|
|
60
|
+
background-color: var(--color-gray-100);
|
|
61
|
+
padding: calc(var(--size-step) * 2);
|
|
62
|
+
&.Accordion_color_primary{
|
|
63
|
+
background-color: var(--color-primary);
|
|
64
|
+
color: #fff;
|
|
65
|
+
}
|
|
66
|
+
&.Accordion_color_secondary{
|
|
67
|
+
background-color: var(--color-secondary);
|
|
68
|
+
color: #fff;
|
|
69
|
+
}
|
|
70
|
+
&.Accordion_color_success{
|
|
71
|
+
background-color: var(--color-success);
|
|
72
|
+
}
|
|
73
|
+
&.Accordion_color_error{
|
|
74
|
+
background-color: var(--color-error);
|
|
75
|
+
color: #fff;
|
|
76
|
+
}
|
|
77
|
+
&.Accordion_color_warning{
|
|
78
|
+
background-color: var(--color-warning);
|
|
79
|
+
}
|
|
80
|
+
&.Accordion_color_info{
|
|
81
|
+
background-color: var(--color-info);
|
|
82
|
+
color: #fff;
|
|
83
|
+
}
|
|
57
84
|
}
|
package/assets/Link.scss
CHANGED
|
@@ -10,6 +10,46 @@
|
|
|
10
10
|
padding: 0;
|
|
11
11
|
font-size: 16px;
|
|
12
12
|
font-family: inherit;
|
|
13
|
+
text-decoration: none;
|
|
14
|
+
&:hover{
|
|
15
|
+
color: var(--color-primary-light)
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.link_color_secondary{
|
|
19
|
+
color: var(--color-secondary);
|
|
20
|
+
&:hover{
|
|
21
|
+
color: var(--color-secondary-light)
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.link_color_neutral{
|
|
25
|
+
color: var(--color-neutral);
|
|
26
|
+
&:hover{
|
|
27
|
+
color: var(--color-secondary-light)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.link_color_success{
|
|
31
|
+
color: var(--color-success);
|
|
32
|
+
&:hover{
|
|
33
|
+
color: var(--color-success-light)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.link_color_error{
|
|
37
|
+
color: var(--color-error);
|
|
38
|
+
&:hover{
|
|
39
|
+
color: var(--color-error-light);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.link_color_info{
|
|
43
|
+
color: var(--color-info);
|
|
44
|
+
&:hover{
|
|
45
|
+
color: var(--color-info-light);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.link_color_warning{
|
|
49
|
+
color: var(--color-warning);
|
|
50
|
+
&:hover{
|
|
51
|
+
color: var(--color-warning-light);
|
|
52
|
+
}
|
|
13
53
|
}
|
|
14
54
|
.link_dark{
|
|
15
55
|
color: #fff;
|
package/assets/StepItem.scss
CHANGED
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.stepItem__title{
|
|
8
|
-
font-weight: 700;
|
|
9
8
|
margin: 2px 0 0 $size-step;
|
|
10
9
|
position: relative;
|
|
11
10
|
background: #fff;
|
|
12
11
|
padding-right: 5px;
|
|
13
12
|
}
|
|
13
|
+
.stepItem__title_with_content{
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
}
|
|
14
16
|
.stepItem__title_error{
|
|
15
17
|
color: $color-error-dark
|
|
16
18
|
}
|
package/assets/global.css
CHANGED
|
@@ -24,7 +24,9 @@ body{
|
|
|
24
24
|
--size-step: 8px;
|
|
25
25
|
--border-radius: 4px;
|
|
26
26
|
--box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
|
|
27
|
-
|
|
27
|
+
--font-weight-regular: 400;
|
|
28
|
+
--font-weight-medium: 500;
|
|
29
|
+
--font-weight-bold: 700;
|
|
28
30
|
--color-primary: #254FE9;
|
|
29
31
|
--color-primary-rgba: 37, 79, 233;
|
|
30
32
|
--color-primary-dark: #1D49D5;
|
|
@@ -201,6 +203,10 @@ body{
|
|
|
201
203
|
.justify-center {justify-content: center}
|
|
202
204
|
.justify-between {justify-content: space-between}
|
|
203
205
|
|
|
206
|
+
.font-weight-regular{font-weight: var(--font-weight-regular)}
|
|
207
|
+
.font-weight-medium{font-weight: var(--font-weight-medium)}
|
|
208
|
+
.font-weight-bold{font-weight: var(--font-weight-bold)}
|
|
209
|
+
|
|
204
210
|
.text-primary{color: var(--color-primary)}
|
|
205
211
|
.text-primary-dark{color: var(--color-primary-dark)}
|
|
206
212
|
.text-primary-light{color: var(--color-primary-light)}
|
|
@@ -578,6 +584,8 @@ body{
|
|
|
578
584
|
.pr-5{padding-right:calc(var(--size-step) * 5)}
|
|
579
585
|
.pr-6{padding-right:calc(var(--size-step) * 6)}
|
|
580
586
|
|
|
587
|
+
.relative{position: relative}
|
|
588
|
+
|
|
581
589
|
.mi,
|
|
582
590
|
.material_icon {
|
|
583
591
|
font-family: 'Material Symbols Outlined';
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
1
|
+
{"name":"armtek-uikit-react","version":"1.0.92","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"}}
|
|
@@ -49,6 +49,14 @@ const Accordion = props => {
|
|
|
49
49
|
if (!(transitionProps != null && transitionProps.unmountOnExit)) setContentHidden(false);
|
|
50
50
|
if (transitionProps != null && transitionProps.onEnter) transitionProps.onEnter(isAppearing);
|
|
51
51
|
};
|
|
52
|
+
let buttonColor = 'neutral';
|
|
53
|
+
let buttonTheme = 'light';
|
|
54
|
+
if (variant === 'contained') {
|
|
55
|
+
if (color === 'primary' || color === 'info' || color === 'error' || color === 'secondary') {
|
|
56
|
+
buttonColor = 'black';
|
|
57
|
+
buttonTheme = 'dark';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
52
60
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
53
61
|
children: /*#__PURE__*/_jsxs("div", {
|
|
54
62
|
...divPops,
|
|
@@ -77,7 +85,8 @@ const Accordion = props => {
|
|
|
77
85
|
children: /*#__PURE__*/_jsx(ButtonIcon, {
|
|
78
86
|
onClick: handleIconClick,
|
|
79
87
|
size: 'small',
|
|
80
|
-
color:
|
|
88
|
+
color: buttonColor,
|
|
89
|
+
theme: buttonTheme,
|
|
81
90
|
variant: 'transparent',
|
|
82
91
|
children: /*#__PURE__*/_jsx("span", {
|
|
83
92
|
className: "mi",
|
|
@@ -13,7 +13,7 @@ type OwnProps = {
|
|
|
13
13
|
submitBtn?: string;
|
|
14
14
|
cancelBtn?: string;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
export type FormControlsProps = OwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof OwnProps>;
|
|
18
18
|
declare const FormControls: (props: FormControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default FormControls;
|
package/ui/Link/Link.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ElementType } from 'react';
|
|
2
|
-
import { ThemeType } from '../../types/theme';
|
|
2
|
+
import { ColorStatusType, ColorType, ThemeType } from '../../types/theme';
|
|
3
3
|
type LinkType = 'a';
|
|
4
4
|
type OwnProps<T extends ElementType = LinkType> = {
|
|
5
5
|
border?: 'solid' | 'dotted' | 'dashed';
|
|
6
|
+
color?: ColorType | ColorStatusType;
|
|
6
7
|
as?: T;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
theme?: ThemeType;
|
package/ui/Link/Link.js
CHANGED
|
@@ -9,6 +9,7 @@ const Link = props => {
|
|
|
9
9
|
disabled,
|
|
10
10
|
className,
|
|
11
11
|
theme,
|
|
12
|
+
color,
|
|
12
13
|
as,
|
|
13
14
|
...restProps
|
|
14
15
|
} = props;
|
|
@@ -19,7 +20,8 @@ const Link = props => {
|
|
|
19
20
|
className: clsx('Arm-link', css.link, {
|
|
20
21
|
[css.link_border]: !!border,
|
|
21
22
|
[css.link_disabled]: !!disabled,
|
|
22
|
-
[css.link_dark]: theme === 'dark'
|
|
23
|
+
[css.link_dark]: theme === 'dark',
|
|
24
|
+
[css['link_color_' + color]]: !!color
|
|
23
25
|
}, css['link_border_' + border], className),
|
|
24
26
|
children: children
|
|
25
27
|
})
|
package/ui/Modal/BaseModal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, MouseEvent } from 'react';
|
|
2
2
|
import { FormControlsProps } from '../../ui/Form/FormControls';
|
|
3
3
|
export type BaseModalProps = ComponentPropsWithoutRef<'div'> & Partial<FormControlsProps> & {
|
|
4
|
-
onClose?: (e: MouseEvent) => void;
|
|
4
|
+
onClose?: (e: MouseEvent<any>) => void;
|
|
5
5
|
classes?: Record<string, string>;
|
|
6
6
|
};
|
|
7
7
|
export declare const BaseModal: (props: BaseModalProps) => import("react/jsx-runtime").JSX.Element;
|
package/ui/Stepper/StepItem.js
CHANGED
|
@@ -35,7 +35,8 @@ const StepItem = props => {
|
|
|
35
35
|
})
|
|
36
36
|
}), !!title && /*#__PURE__*/_jsx("p", {
|
|
37
37
|
className: clsx(css.stepItem__title, {
|
|
38
|
-
[css.stepItem__title_error]: iconProps.error
|
|
38
|
+
[css.stepItem__title_error]: iconProps.error,
|
|
39
|
+
[css.stepItem__title_with_content]: content || children
|
|
39
40
|
}),
|
|
40
41
|
children: title
|
|
41
42
|
})]
|