armtek-uikit-react 1.0.10 → 1.0.13
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/ButtonClasses/package.json +7 -0
- package/cjs/assets/Adornment.scss +16 -0
- package/cjs/assets/Button.scss +297 -0
- package/cjs/assets/global.css +1 -0
- package/cjs/assets/styles.scss +3 -119
- package/cjs/assets/variables.scss +67 -0
- package/cjs/lib/const/styles.d.ts +1 -0
- package/cjs/lib/const/styles.js +6 -0
- package/cjs/ui/Button/Button.d.ts +1 -1
- package/cjs/ui/Button/Button.js +5 -5
- package/cjs/ui/Button/ButtonClasses.d.ts +3 -0
- package/cjs/ui/Button/ButtonClasses.js +12 -0
- package/cjs/ui/Form/DatePicker/DatePicker.js +2 -0
- package/cjs/ui/Slider/Slider.d.ts +1 -1
- package/cjs/ui/Slider/Slider.js +2 -0
- package/dist/armtek-uikit-react-main.js +23 -1
- package/dist/armtek-uikit-react-main.min.js +1 -1
- package/esm/assets/Adornment.scss +16 -0
- package/esm/assets/Button.scss +297 -0
- package/esm/assets/global.css +1 -0
- package/esm/assets/styles.scss +3 -119
- package/esm/assets/variables.scss +67 -0
- package/esm/lib/const/styles.d.ts +1 -0
- package/esm/lib/const/styles.js +1 -0
- package/esm/ui/Button/Button.d.ts +1 -1
- package/esm/ui/Button/Button.js +1 -1
- package/esm/ui/Button/ButtonClasses.d.ts +3 -0
- package/esm/ui/Button/ButtonClasses.js +7 -0
- package/esm/ui/Form/DatePicker/DatePicker.js +1 -0
- package/esm/ui/Slider/Slider.d.ts +1 -1
- package/esm/ui/Slider/Slider.js +2 -0
- package/package.json +1 -1
- package/styles/package.json +7 -0
package/esm/assets/global.css
CHANGED
package/esm/assets/styles.scss
CHANGED
|
@@ -1,122 +1,6 @@
|
|
|
1
1
|
//@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
|
2
2
|
//@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
$size-elarge: 56px;
|
|
9
|
-
$size-large: 42px;
|
|
10
|
-
$size-medium: 36px;
|
|
11
|
-
$size-small: 30px;
|
|
12
|
-
$size-step: 8px;
|
|
13
|
-
|
|
14
|
-
$radius: 4px;
|
|
15
|
-
|
|
16
|
-
$color-primary: #0D46FF;
|
|
17
|
-
$color-primary-dark: #0B3CD9;
|
|
18
|
-
$color-primary-light: #0B3CD9;
|
|
19
|
-
$color-blue-800: #406DFF;
|
|
20
|
-
$color-blue-A100: #D9E2FF;
|
|
21
|
-
$color-blue-50: #F2F5FF;
|
|
22
|
-
|
|
23
|
-
$color-info: #0D46FF;
|
|
24
|
-
$color-info-dark: #0B3CD9;
|
|
25
|
-
|
|
26
|
-
$color-secondary: #FF7F00;
|
|
27
|
-
$color-secondary-dark: #D96C00;
|
|
28
|
-
$color-secondary-light: #FFA140;
|
|
29
|
-
$color-orange-800: #FF9426;
|
|
30
|
-
$color-orange-400: #FFC68C;
|
|
31
|
-
$color-orange-300: #FFD3A6;
|
|
32
|
-
$color-orange-100: #FFE6CC;
|
|
33
|
-
$color-orange-50: #FFF8F0;
|
|
34
|
-
|
|
35
|
-
$color-neutral: #4D5359;
|
|
36
|
-
$color-neutral-dark: #40454A;
|
|
37
|
-
$color-neutral-light: #9AA4AE;
|
|
38
|
-
$color-gray-900: #212529;
|
|
39
|
-
$color-gray-800: #40454A;
|
|
40
|
-
$color-gray-700: #4D5359;
|
|
41
|
-
$color-gray-600: #6C757D;
|
|
42
|
-
$color-gray-500: #9AA4AE;
|
|
43
|
-
$color-gray-400: #B1BCC6;
|
|
44
|
-
$color-gray-300: #D3DAE1;
|
|
45
|
-
$color-gray-200: #DFE2E6;
|
|
46
|
-
$color-gray-100: #E9ECEF;
|
|
47
|
-
$color-gray-50: #F8F9FA;
|
|
48
|
-
|
|
49
|
-
$color-greent-50: #F2FFFB;
|
|
50
|
-
|
|
51
|
-
$color-success: #0BD998;
|
|
52
|
-
$color-success-dark: #08996B;
|
|
53
|
-
$color-error: #FF3342;
|
|
54
|
-
$color-error-dark: #CC2935;
|
|
55
|
-
$color-warning: #FFC61A;
|
|
56
|
-
$color-warning-dark: #F7B519;
|
|
57
|
-
|
|
58
|
-
$color-red-50: #FFF0F1;
|
|
59
|
-
|
|
60
|
-
$box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
|
|
61
|
-
|
|
62
|
-
@mixin transition($time: 0.5s, $target: all, $animation: ease) {
|
|
63
|
-
transition: $time $target $animation;
|
|
64
|
-
}
|
|
65
|
-
@mixin flex($justifyContent: flex-start, $alignItems: center) {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: $alignItems;
|
|
68
|
-
justify-content: $justifyContent;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
//@font-face {
|
|
73
|
-
// font-family: 'Material Symbols Outlined';
|
|
74
|
-
// font-style: normal;
|
|
75
|
-
// font-weight: 400;
|
|
76
|
-
// src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v133/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format('woff2');
|
|
77
|
-
//}
|
|
78
|
-
|
|
79
|
-
//.material_icon {
|
|
80
|
-
// font-family: 'Material Symbols Outlined';
|
|
81
|
-
// font-weight: normal;
|
|
82
|
-
// font-style: normal;
|
|
83
|
-
// font-size: 24px;
|
|
84
|
-
// line-height: 1;
|
|
85
|
-
// letter-spacing: normal;
|
|
86
|
-
// text-transform: none;
|
|
87
|
-
// display: inline-block;
|
|
88
|
-
// white-space: nowrap;
|
|
89
|
-
// word-wrap: normal;
|
|
90
|
-
// direction: ltr;
|
|
91
|
-
// -webkit-font-feature-settings: 'liga';
|
|
92
|
-
// -webkit-font-smoothing: antialiased;
|
|
93
|
-
// &_filled{
|
|
94
|
-
// font-variation-settings:
|
|
95
|
-
// 'FILL' 1
|
|
96
|
-
// }
|
|
97
|
-
//}
|
|
98
|
-
// .material-symbols-outlined {
|
|
99
|
-
// font-variation-settings:
|
|
100
|
-
// 'FILL' 1,
|
|
101
|
-
// 'wght' 400,
|
|
102
|
-
// 'GRAD' 0,
|
|
103
|
-
// 'opsz' 24
|
|
104
|
-
// }
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.adornmentContainer{
|
|
108
|
-
display: flex;
|
|
109
|
-
}
|
|
110
|
-
.adornmentContainer_end{
|
|
111
|
-
margin-left: auto;
|
|
112
|
-
}
|
|
113
|
-
.adornment_end{
|
|
114
|
-
& + * {
|
|
115
|
-
margin-left: $size-step;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
.adornment_start{
|
|
119
|
-
& + * {
|
|
120
|
-
margin-left: $size-step;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
4
|
+
@import "variables";
|
|
5
|
+
//@import "Button";
|
|
6
|
+
@import "Adornment";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
$font-family: 'Roboto';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
$size-elarge: 56px;
|
|
7
|
+
$size-large: 42px;
|
|
8
|
+
$size-medium: 36px;
|
|
9
|
+
$size-small: 30px;
|
|
10
|
+
$size-step: 8px;
|
|
11
|
+
|
|
12
|
+
$radius: 4px;
|
|
13
|
+
|
|
14
|
+
$color-primary: #0D46FF;
|
|
15
|
+
$color-primary-dark: #0B3CD9;
|
|
16
|
+
$color-primary-light: #0B3CD9;
|
|
17
|
+
$color-blue-800: #406DFF;
|
|
18
|
+
$color-blue-A100: #D9E2FF;
|
|
19
|
+
$color-blue-50: #F2F5FF;
|
|
20
|
+
|
|
21
|
+
$color-info: #0D46FF;
|
|
22
|
+
$color-info-dark: #0B3CD9;
|
|
23
|
+
|
|
24
|
+
$color-secondary: #FF7F00;
|
|
25
|
+
$color-secondary-dark: #D96C00;
|
|
26
|
+
$color-secondary-light: #FFA140;
|
|
27
|
+
$color-orange-800: #FF9426;
|
|
28
|
+
$color-orange-400: #FFC68C;
|
|
29
|
+
$color-orange-300: #FFD3A6;
|
|
30
|
+
$color-orange-100: #FFE6CC;
|
|
31
|
+
$color-orange-50: #FFF8F0;
|
|
32
|
+
|
|
33
|
+
$color-neutral: #4D5359;
|
|
34
|
+
$color-neutral-dark: #40454A;
|
|
35
|
+
$color-neutral-light: #9AA4AE;
|
|
36
|
+
$color-gray-900: #212529;
|
|
37
|
+
$color-gray-800: #40454A;
|
|
38
|
+
$color-gray-700: #4D5359;
|
|
39
|
+
$color-gray-600: #6C757D;
|
|
40
|
+
$color-gray-500: #9AA4AE;
|
|
41
|
+
$color-gray-400: #B1BCC6;
|
|
42
|
+
$color-gray-300: #D3DAE1;
|
|
43
|
+
$color-gray-200: #DFE2E6;
|
|
44
|
+
$color-gray-100: #E9ECEF;
|
|
45
|
+
$color-gray-50: #F8F9FA;
|
|
46
|
+
|
|
47
|
+
$color-greent-50: #F2FFFB;
|
|
48
|
+
|
|
49
|
+
$color-success: #0BD998;
|
|
50
|
+
$color-success-dark: #08996B;
|
|
51
|
+
$color-error: #FF3342;
|
|
52
|
+
$color-error-dark: #CC2935;
|
|
53
|
+
$color-warning: #FFC61A;
|
|
54
|
+
$color-warning-dark: #F7B519;
|
|
55
|
+
|
|
56
|
+
$color-red-50: #FFF0F1;
|
|
57
|
+
|
|
58
|
+
$box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
|
|
59
|
+
|
|
60
|
+
@mixin transition($time: 0.5s, $target: all, $animation: ease) {
|
|
61
|
+
transition: $time $target $animation;
|
|
62
|
+
}
|
|
63
|
+
@mixin flex($justifyContent: flex-start, $alignItems: center) {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: $alignItems;
|
|
66
|
+
justify-content: $justifyContent;
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CSS_PREFIX = "Armtek-";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const CSS_PREFIX = 'Armtek-';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { ColorThemeType, ColorType, SizeType, VariantType } from '
|
|
2
|
+
import { ColorThemeType, ColorType, SizeType, VariantType } from 'types/theme';
|
|
3
3
|
type OwnProps<T extends ElementType = ElementType> = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
size?: SizeType;
|
package/esm/ui/Button/Button.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CSS_PREFIX } from 'lib/const/styles';
|
|
2
|
+
const ButtonClassesClean = ['button', 'button_contained', 'button_transparent', 'button_outlined', 'button_primary', 'button_secondary', 'button_neutral', 'button_black', 'button__adornment', 'button__adornment_end', 'button__adornment_start', 'button_large', 'button_medium', 'button_small', 'button_icon', 'button_group', 'button_group_inline', 'button_group_column', 'button_grouped_inline', 'button_grouped_column'];
|
|
3
|
+
const ButtonClasses = ButtonClassesClean.reduce((prev, current) => {
|
|
4
|
+
prev[current] = CSS_PREFIX + current;
|
|
5
|
+
return prev;
|
|
6
|
+
}, {});
|
|
7
|
+
export { ButtonClasses, ButtonClassesClean };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import ReactDatePicker, { registerLocale } from 'react-datepicker';
|
|
3
3
|
import '!style-loader!css-loader!./styles.css';
|
|
4
|
+
// import './styles.css'
|
|
4
5
|
import ru from 'date-fns/locale/ru';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '!style-loader!css-loader!./style.css';
|
|
2
2
|
import { SliderProps as RcSliderProps } from 'rc-slider/lib/Slider';
|
|
3
|
-
import { SizeType } from '
|
|
3
|
+
import { SizeType } from 'types/theme';
|
|
4
4
|
export type SliderProps = {
|
|
5
5
|
size?: Exclude<SizeType, 'extraLarge' | 'medium'>;
|
|
6
6
|
} & Omit<RcSliderProps, 'size'>;
|
package/esm/ui/Slider/Slider.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
1
|
+
{"name":"armtek-uikit-react","version":"1.0.13","description":"Armtek UIKit for React","main":"cjs/index.js","module":"esm/index.js","types":"esm/index.d.ts","type":"module","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"}}
|