armtek-uikit-react 1.0.10 → 1.0.11

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.
@@ -3,6 +3,7 @@
3
3
  body{
4
4
  font-family: 'Roboto';
5
5
  }
6
+
6
7
  ::-webkit-scrollbar {
7
8
  width: 4px;
8
9
  }
@@ -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
- $font-family: 'Roboto';
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-';
@@ -0,0 +1,3 @@
1
+ declare const ButtonClassesClean: string[];
2
+ declare const ButtonClasses: Record<string, string>;
3
+ export { ButtonClasses, ButtonClassesClean };
@@ -0,0 +1,7 @@
1
+ import { CSS_PREFIX } from 'lib/const/theme';
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,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, HTMLAttributes, ReactNode } from 'react';
2
- import { ColorThemeType, ColorType, SizeType, VariantType } from '../../types/theme';
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;
@@ -1,4 +1,4 @@
1
- import css from './Button.module.scss';
1
+ import { ButtonClasses as css } from './Button.classes';
2
2
  import clsx from 'clsx';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -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 '../../types/theme';
3
+ import { SizeType } from 'types/theme';
4
4
  export type SliderProps = {
5
5
  size?: Exclude<SizeType, 'extraLarge' | 'medium'>;
6
6
  } & Omit<RcSliderProps, 'size'>;
@@ -1,5 +1,7 @@
1
1
  import RcSlider from 'rc-slider';
2
2
  import '!style-loader!css-loader!./style.css';
3
+ // import './style.css'
4
+
3
5
  import HelperText from '../HelperText/HelperText';
4
6
  import css from './Slider.module.scss';
5
7
  import { jsx as _jsx } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.10","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","scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.11","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","devDependencies":{"@babel/cli":"^7.22.15","@babel/core":"^7.22.17","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-export-default-from":"^7.22.17","@babel/plugin-proposal-export-namespace-from":"^7.18.9","@babel/plugin-proposal-private-methods":"^7.18.6","@babel/plugin-transform-export-namespace-from":"^7.22.11","@babel/plugin-transform-runtime":"^7.22.15","@babel/preset-env":"^7.22.10","@babel/preset-react":"^7.22.5","@babel/preset-typescript":"^7.22.5","@storybook/addon-actions":"^7.2.3","@storybook/addon-essentials":"^7.2.3","@storybook/addon-interactions":"^7.2.3","@storybook/addon-links":"^7.2.3","@storybook/addon-mdx-gfm":"^7.2.3","@storybook/cli":"^7.2.3","@storybook/react":"^7.2.3","@storybook/react-webpack5":"^7.2.3","@storybook/testing-library":"^0.2.0","@types/fs-extra":"^11.0.2","@types/node":"^20.7.2","@types/react":"^18.2.20","@types/react-datepicker":"^4.15.0","@types/react-dom":"^18.2.7","@types/webpack":"^5.28.3","@typescript-eslint/eslint-plugin":"^6.4.0","@typescript-eslint/parser":"^6.4.0","babel-loader":"^9.1.3","babel-plugin-add-module-exports":"^1.0.4","babel-plugin-dev-expression":"^0.2.3","babel-plugin-transform-next-use-client":"^1.1.1","babel-plugin-transform-remove-imports":"^1.7.0","babel-plugin-transform-rename-import":"^2.3.0","babel-preset-env-modules":"^1.0.1","clsx":"^2.0.0","css-loader":"^6.8.1","eslint":"^8.47.0","eslint-config-prettier":"^9.0.0","eslint-plugin-import":"^2.28.0","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-react":"^7.33.1","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-storybook":"^0.6.13","execa":"^8.0.1","file-loader":"^6.2.0","fs-extra":"^11.1.1","glob":"^10.3.4","html-webpack-plugin":"^5.5.3","mini-css-extract-plugin":"^2.7.6","prettier":"^3.0.1","read-pkg-up":"^10.1.0","sass":"^1.65.1","sass-loader":"^13.3.2","storybook":"^7.2.3","style-loader":"^3.3.3","tiny-glob":"^0.2.9","ts-loader":"^9.4.4","ts-node":"^10.9.1","tsconfig-paths-webpack-plugin":"^4.1.0","typescript":"^5.1.6","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -5,3 +5,5 @@
5
5
  "main": "../cjs/types/theme.js",
6
6
  "module": "../esm/types/theme.js"
7
7
  }
8
+ theme.js"
9
+ }