@sima-land/ui-nucleons 42.2.0 → 43.0.2

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.
Files changed (55) hide show
  1. package/_internal/custom-scrollbar/custom-scrollbar.module.scss +2 -2
  2. package/alert/alert.module.scss +1 -1
  3. package/arrow-button/arrow-button.module.scss +2 -2
  4. package/autocomplete/index.js +1 -1
  5. package/avatar/index.js +1 -1
  6. package/avatar/user.js +2 -3
  7. package/box/index.d.ts +0 -24
  8. package/box/index.js +0 -28
  9. package/button/button.module.scss +6 -6
  10. package/carousel/draggable.d.ts +2 -4
  11. package/carousel/draggable.js +3 -3
  12. package/carousel/index.js +2 -1
  13. package/checkbox-field/checkbox-field.module.scss +3 -3
  14. package/chips/chips.module.scss +10 -10
  15. package/clean-buttons/clean-buttons.module.scss +1 -1
  16. package/colors.d.ts +29 -34
  17. package/colors.js +28 -35
  18. package/colors.scss +28 -37
  19. package/dot-nav/dot-nav.module.scss +2 -2
  20. package/dropdown-item/dropdown-item.module.scss +2 -2
  21. package/file-icon/index.js +2 -2
  22. package/helpers/center-of.d.ts +1 -1
  23. package/hint/hint.module.scss +5 -5
  24. package/link/index.d.ts +1 -1
  25. package/link/index.js +2 -2
  26. package/link/link.module.scss +10 -10
  27. package/nav-bar/index.js +1 -1
  28. package/nav-bar/nav-bar.module.scss +3 -3
  29. package/package.json +3 -1
  30. package/pagination/pagination.module.scss +4 -4
  31. package/panel/index.js +1 -1
  32. package/phone-input/index.js +1 -1
  33. package/phone-input/phone-input.module.scss +3 -3
  34. package/plate/index.js +1 -1
  35. package/price/price.module.scss +1 -1
  36. package/range/index.d.ts +1 -1
  37. package/range/index.js +2 -2
  38. package/rating/rating.module.scss +1 -1
  39. package/select/index.js +1 -1
  40. package/spinner/index.d.ts +3 -2
  41. package/spinner/index.js +2 -2
  42. package/spinner/spinner.module.scss +1 -0
  43. package/stepper/stepper.module.scss +8 -8
  44. package/stroked-svg/index.d.ts +2 -2
  45. package/stroked-svg/index.js +1 -1
  46. package/styling/borders.module.scss +3 -3
  47. package/styling/colors.d.ts +5 -5
  48. package/tabs/tabs.module.scss +12 -12
  49. package/text-field/text-field.module.scss +18 -18
  50. package/toggle/toggle.module.scss +3 -3
  51. package/tooltip/tooltip.module.scss +1 -1
  52. package/top-bar/top-bar.module.scss +3 -3
  53. package/unknown-content/unknown-content.module.scss +14 -14
  54. package/upload/area.js +1 -1
  55. package/upload/area.module.scss +4 -4
@@ -3,5 +3,5 @@
3
3
  * @param rect Прямоугольник.
4
4
  * @return Центр.
5
5
  */
6
- declare const centerOf: (rect: ClientRect) => import("./point").IPoint;
6
+ declare const centerOf: (rect: DOMRect) => import("./point").IPoint;
7
7
  export default centerOf;
@@ -15,7 +15,7 @@
15
15
  height: 0;
16
16
  border-style: solid;
17
17
  border-width: 4px 4px 0;
18
- border-color: colors.$gray76 transparent transparent transparent;
18
+ border-color: colors.$basic-gray76 transparent transparent transparent;
19
19
  }
20
20
  &.right::before {
21
21
  content: '';
@@ -24,7 +24,7 @@
24
24
  height: 0;
25
25
  border-style: solid;
26
26
  border-width: 4px 4px 4px 0;
27
- border-color: transparent colors.$gray76 transparent transparent;
27
+ border-color: transparent colors.$basic-gray76 transparent transparent;
28
28
  }
29
29
  &.bottom::before {
30
30
  content: '';
@@ -33,7 +33,7 @@
33
33
  height: 0;
34
34
  border-style: solid;
35
35
  border-width: 0 4px 4px;
36
- border-color: transparent transparent colors.$gray76 transparent;
36
+ border-color: transparent transparent colors.$basic-gray76 transparent;
37
37
  }
38
38
  &.left::after {
39
39
  content: '';
@@ -42,13 +42,13 @@
42
42
  height: 0;
43
43
  border-style: solid;
44
44
  border-width: 4px 0 4px 4px;
45
- border-color: transparent transparent transparent colors.$gray76;
45
+ border-color: transparent transparent transparent colors.$basic-gray76;
46
46
  }
47
47
  }
48
48
 
49
49
  .body {
50
50
  align-items: center;
51
- background: colors.$gray76;
51
+ background: colors.$basic-gray76;
52
52
  border-radius: 4px;
53
53
  color: #fff;
54
54
  display: flex;
package/link/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Token } from '../colors';
3
3
  export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
4
  /** Цвет (название токена). */
5
- color?: Extract<Token, 'brand-blue' | 'gray87' | 'gray38'>;
5
+ color?: Extract<Token, 'basic-blue' | 'basic-gray87' | 'basic-gray38'>;
6
6
  /** Нужно ли оборачивать содержимое комментариями no-index. */
7
7
  noIndex?: boolean;
8
8
  /** Выводить как псевдо-ссылку. */
package/link/index.js CHANGED
@@ -43,7 +43,7 @@ const cx = bind_1.default.bind(link_module_scss_1.default);
43
43
  * Возвращает объект со свойствами, формирующими содержимое.
44
44
  * @param children Содержимое линка.
45
45
  * @param noIndex Флаг запрета индексации.
46
- * @return Объект со свойствами, формирующими содержимое..
46
+ * @return Объект со свойствами, формирующими содержимое.
47
47
  */
48
48
  const getContentProps = (children, noIndex) => noIndex ? { dangerouslySetInnerHTML: (0, get_no_index_1.getNoIndex)(children) } : { children };
49
49
  /**
@@ -53,7 +53,7 @@ const getContentProps = (children, noIndex) => noIndex ? { dangerouslySetInnerHT
53
53
  * @return Элемент.
54
54
  */
55
55
  exports.Link = (0, react_1.forwardRef)(function Link(_a, ref) {
56
- var { children, className, color = 'brand-blue', disabled, noIndex = false, pseudo, role, tabIndex, 'data-testid': testId = 'anchor' } = _a, restProps = __rest(_a, ["children", "className", "color", "disabled", "noIndex", "pseudo", "role", "tabIndex", 'data-testid']);
56
+ var { children, className, color = 'basic-blue', disabled, noIndex = false, pseudo, role, tabIndex, 'data-testid': testId = 'anchor' } = _a, restProps = __rest(_a, ["children", "className", "color", "disabled", "noIndex", "pseudo", "role", "tabIndex", 'data-testid']);
57
57
  const baseProps = pseudo
58
58
  ? {
59
59
  role: role || 'button',
@@ -17,27 +17,27 @@
17
17
 
18
18
  // ниже двойные классы для высокой специфичности в монолите
19
19
  .link.disabled {
20
- color: colors.$gray24;
20
+ color: colors.$basic-gray24;
21
21
  pointer-events: none;
22
22
  }
23
23
 
24
- .link:not(.disabled).brand-blue {
25
- color: colors.$brand-blue;
24
+ .link:not(.disabled).basic-blue {
25
+ color: colors.$basic-blue;
26
26
  &:hover {
27
- color: colors.$brand-deep-blue;
27
+ color: colors.$additional-deep-blue;
28
28
  }
29
29
  }
30
30
 
31
- .link:not(.disabled).gray87 {
32
- color: colors.$gray87;
31
+ .link:not(.disabled).basic-gray87 {
32
+ color: colors.$basic-gray87;
33
33
  &:hover {
34
- color: colors.$gray54;
34
+ color: colors.$basic-gray54;
35
35
  }
36
36
  }
37
37
 
38
- .link:not(.disabled).gray38 {
39
- color: colors.$gray38;
38
+ .link:not(.disabled).basic-gray38 {
39
+ color: colors.$basic-gray38;
40
40
  &:hover {
41
- color: colors.$gray54;
41
+ color: colors.$basic-gray54;
42
42
  }
43
43
  }
package/nav-bar/index.js CHANGED
@@ -71,6 +71,6 @@ exports.NavBar = NavBar;
71
71
  */
72
72
  const NavButton = (_a) => {
73
73
  var { text, icon: Icon, stub = false, shift, className } = _a, buttonProps = __rest(_a, ["text", "icon", "stub", "shift", "className"]);
74
- return (react_1.default.createElement("button", Object.assign({}, (!stub && buttonProps), { type: 'button', className: cx('button', Icon && 'icon', shift === 'left' && 'shift-left', shift === 'right' && 'shift-right', stub && 'stub', className), "aria-hidden": stub }), Icon && !stub ? (react_1.default.createElement(Icon, { fill: colors_1.COLORS.get('gray87'), className: cx('svg'), "aria-hidden": 'true' })) : (text)));
74
+ return (react_1.default.createElement("button", Object.assign({}, (!stub && buttonProps), { type: 'button', className: cx('button', Icon && 'icon', shift === 'left' && 'shift-left', shift === 'right' && 'shift-right', stub && 'stub', className), "aria-hidden": stub }), Icon && !stub ? (react_1.default.createElement(Icon, { fill: colors_1.COLORS.get('basic-gray87'), className: cx('svg'), "aria-hidden": 'true' })) : (text)));
75
75
  };
76
76
  exports.NavButton = NavButton;
@@ -21,14 +21,14 @@
21
21
  }
22
22
 
23
23
  .title {
24
- color: colors.$gray87;
24
+ color: colors.$basic-gray87;
25
25
  font-size: 16px;
26
26
  font-weight: 600;
27
27
  line-height: 24px;
28
28
  }
29
29
 
30
30
  .subtitle {
31
- color: colors.$gray38;
31
+ color: colors.$basic-gray38;
32
32
  font-size: 12px;
33
33
  line-height: 16px;
34
34
  margin-top: -4px;
@@ -60,7 +60,7 @@
60
60
  background: transparent;
61
61
  border: 0;
62
62
  box-sizing: border-box;
63
- color: colors.$brand-blue;
63
+ color: colors.$basic-blue;
64
64
  font-family: inherit;
65
65
  font-size: 14px;
66
66
  font-weight: 600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sima-land/ui-nucleons",
3
- "version": "42.2.0",
3
+ "version": "43.0.2",
4
4
  "repository": "ssh://git@github.com:sima-land/ui-nucleons.git",
5
5
  "author": "www.sima-land.ru team",
6
6
  "license": "Apache-2.0",
@@ -59,6 +59,7 @@
59
59
  "enzyme-to-json": "^3.6.2",
60
60
  "eslint": "^7.31.0",
61
61
  "file-loader": "^6.2.0",
62
+ "handlebars": "^4.7.7",
62
63
  "husky": "^7.0.4",
63
64
  "jest": "^27.3.1",
64
65
  "jest-css-modules-transform": "^4.3.0",
@@ -83,6 +84,7 @@
83
84
  },
84
85
  "scripts": {
85
86
  "prepare": "",
87
+ "export:colors": "node .template/build.mjs",
86
88
  "build:before": "rimraf build",
87
89
  "build:main": "tsc --project tsconfig.build.json",
88
90
  "build:after": "node dist.js",
@@ -23,7 +23,7 @@
23
23
  width: 38px;
24
24
  height: 38px;
25
25
  background: #fff;
26
- border: 1px solid colors.$gray12;
26
+ border: 1px solid colors.$basic-gray12;
27
27
  font-size: 14px;
28
28
  outline: 0;
29
29
  box-sizing: border-box;
@@ -43,7 +43,7 @@
43
43
  }
44
44
  }
45
45
  &:disabled {
46
- color: colors.$gray24;
46
+ color: colors.$basic-gray24;
47
47
  }
48
48
  &:not(.rounds-all) {
49
49
  margin-right: -1px;
@@ -54,8 +54,8 @@
54
54
  }
55
55
  &.selected {
56
56
  position: relative;
57
- background: colors.$gray87;
58
- border-color: colors.$gray87;
57
+ background: colors.$basic-gray87;
58
+ border-color: colors.$basic-gray87;
59
59
  color: #fff;
60
60
  cursor: default;
61
61
  &::after {
package/panel/index.js CHANGED
@@ -15,7 +15,7 @@ const cx = bind_1.default.bind(panel_module_scss_1.default);
15
15
  * @param props Свойства.
16
16
  * @return Элемент.
17
17
  */
18
- const Panel = ({ color: panelColor = 'gray4', contentColor = 'gray87', inline = false, icon: Icon, className, children, html, 'data-testid': testId = 'panel', }) => {
18
+ const Panel = ({ color: panelColor = 'basic-gray4', contentColor = 'basic-gray87', inline = false, icon: Icon, className, children, html, 'data-testid': testId = 'panel', }) => {
19
19
  const contentProps = html ? { dangerouslySetInnerHTML: { __html: html } } : { children };
20
20
  return (react_1.default.createElement("div", { className: cx('panel', inline && 'inline', (0, colors_1.bgColor)(panelColor), className), "data-testid": testId },
21
21
  Icon && (react_1.default.createElement(Icon, { fill: colors_2.COLORS.get(contentColor), width: 16, height: 20, className: cx('icon'), "aria-hidden": 'true' })),
@@ -75,7 +75,7 @@ const PhoneInput = (_a) => {
75
75
  });
76
76
  const AdornmentSVG = withMenu ? up_1.default : down_1.default;
77
77
  const commonFieldProps = Object.assign(Object.assign({}, restProps), { label, multiline: false, className: cx('field'), endAdornment: (react_1.default.createElement("div", { ref: openerRef, className: cx('adornment'), "data-testid": 'phone-input:dropdown-opener', onClick: () => {
78
- toggleMenu(true);
78
+ toggleMenu(a => !a);
79
79
  } },
80
80
  react_1.default.createElement("img", { alt: '', width: 24, height: 24, src: country.imageSrc }),
81
81
  react_1.default.createElement(AdornmentSVG, { className: cx('arrow') }))), onClick: event => {
@@ -19,7 +19,7 @@
19
19
 
20
20
  .arrow {
21
21
  display: block;
22
- fill: colors.$gray38;
22
+ fill: colors.$basic-gray38;
23
23
  margin-left: 4px;
24
24
  pointer-events: none; // игнорируем клики т.к. после них элемент стрелки подменяется и считается что он сработал вне элемента родителя
25
25
  }
@@ -36,11 +36,11 @@
36
36
  font-size: 16px;
37
37
  line-height: 24px;
38
38
  .item-name {
39
- color: colors.$gray87;
39
+ color: colors.$basic-gray87;
40
40
  flex-grow: 1;
41
41
  margin-left: 16px;
42
42
  }
43
43
  .item-code {
44
- color: colors.$gray38;
44
+ color: colors.$basic-gray38;
45
45
  }
46
46
  }
package/plate/index.js CHANGED
@@ -45,5 +45,5 @@ const classnames_1 = __importDefault(require("classnames"));
45
45
  */
46
46
  exports.Plate = (0, react_1.forwardRef)(function Plate(_a, ref) {
47
47
  var { className, children, rounds = 's', shadow = 'z1', 'data-testid': testId = 'plate' } = _a, restProps = __rest(_a, ["className", "children", "rounds", "shadow", 'data-testid']);
48
- return (react_1.default.createElement("div", Object.assign({ ref: ref, className: (0, classnames_1.default)((0, colors_1.bgColor)('white'), className, shadows_1.BoxShadow[shadow], rounds === 's' && shapes_1.SmallRounds.all, rounds === 'm' && shapes_1.MediumRounds.all), "data-testid": testId, children: children }, restProps)));
48
+ return (react_1.default.createElement("div", Object.assign({ ref: ref, className: (0, classnames_1.default)((0, colors_1.bgColor)('basic-white'), className, shadows_1.BoxShadow[shadow], rounds === 's' && shapes_1.SmallRounds.all, rounds === 'm' && shapes_1.MediumRounds.all), "data-testid": testId, children: children }, restProps)));
49
49
  });
@@ -5,7 +5,7 @@
5
5
  display: inline-block;
6
6
  white-space: nowrap;
7
7
  &.crossed-out {
8
- color: colors.$gray38;
8
+ color: colors.$basic-gray38;
9
9
  text-decoration: line-through;
10
10
  }
11
11
  }
package/range/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export declare class Range extends Component<RangeProps> {
35
35
  start: Container<number>;
36
36
  finish: Container<number>;
37
37
  activeBounds: [number, number];
38
- unsubscribers?: Array<() => void>;
38
+ unsubscribeList?: Array<() => void>;
39
39
  activeThumbEl?: HTMLElement;
40
40
  isGrabbed?: boolean;
41
41
  /**
package/range/index.js CHANGED
@@ -77,7 +77,7 @@ class Range extends react_1.Component {
77
77
  /** @inheritdoc */
78
78
  componentDidMount() {
79
79
  const { current: containerElem } = this.containerRef;
80
- this.unsubscribers = [
80
+ this.unsubscribeList = [
81
81
  (0, on_1.default)(window, 'mousemove', this.updateValues),
82
82
  (0, on_1.default)(window, 'touchmove', this.updateValues),
83
83
  (0, on_1.default)(window, 'mouseup', this.handleDragEnd),
@@ -103,7 +103,7 @@ class Range extends react_1.Component {
103
103
  }
104
104
  /** @inheritdoc */
105
105
  componentWillUnmount() {
106
- this.unsubscribers.forEach(fn => fn());
106
+ this.unsubscribeList.forEach(fn => fn());
107
107
  }
108
108
  /**
109
109
  * Обрабатывает событие как начало слежения за указателем/пальцем.
@@ -30,7 +30,7 @@
30
30
  left: 0;
31
31
  width: 100%;
32
32
  height: 100%;
33
- fill: colors.$gray12;
33
+ fill: colors.$basic-gray12;
34
34
  &.half {
35
35
  width: 50%;
36
36
  fill: colors.$additional-amber;
package/select/index.js CHANGED
@@ -54,7 +54,7 @@ const cx = bind_1.default.bind(select_module_scss_1.default);
54
54
  */
55
55
  const renderDefaultArrow = (opened) => {
56
56
  const ArrowSVG = opened ? up_1.default : down_1.default;
57
- return react_1.default.createElement(ArrowSVG, { fill: colors_1.COLORS.get('gray38') });
57
+ return react_1.default.createElement(ArrowSVG, { fill: colors_1.COLORS.get('basic-gray38') });
58
58
  };
59
59
  exports.renderDefaultArrow = renderDefaultArrow;
60
60
  /**
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- declare type Color = 'brand-blue' | 'white';
2
+ import { Token } from '../colors';
3
+ declare type SpinnerColor = Extract<Token, 'basic-blue' | 'basic-white'>;
3
4
  declare type Size = 'small' | 'medium' | 'large';
4
5
  export interface SpinnerProps {
5
6
  /** Размер. */
6
7
  size?: Size;
7
8
  /** Цвет. */
8
- color?: Color;
9
+ color?: SpinnerColor;
9
10
  /** Класс. */
10
11
  className?: string;
11
12
  /** Стили. */
package/spinner/index.js CHANGED
@@ -15,8 +15,8 @@ exports.DIAMETERS = {
15
15
  medium: 48,
16
16
  large: 80,
17
17
  };
18
- const DEFAULT_COLOR = 'brand-blue';
19
- const AVAILABLE_COLORS = ['brand-blue', 'white'];
18
+ const DEFAULT_COLOR = 'basic-blue';
19
+ const AVAILABLE_COLORS = ['basic-blue', 'basic-white'];
20
20
  /**
21
21
  * Компонент спиннера.
22
22
  * @param props Свойства.
@@ -11,6 +11,7 @@ $durations: (
11
11
  );
12
12
 
13
13
  .spinner {
14
+ display: block;
14
15
  .circle {
15
16
  fill: none;
16
17
  stroke-width: 2;
@@ -3,23 +3,23 @@
3
3
  .root {
4
4
  display: flex;
5
5
  align-items: center;
6
- border: 1px solid colors.$gray12;
6
+ border: 1px solid colors.$basic-gray12;
7
7
  border-radius: 4px;
8
- color: colors.$gray87;
8
+ color: colors.$basic-gray87;
9
9
  background: #fff;
10
10
  &.focused:not(.disabled) {
11
- border-color: colors.$brand-blue;
11
+ border-color: colors.$basic-blue;
12
12
  }
13
13
  &.disabled {
14
- color: colors.$gray24;
15
- border-color: colors.$gray12;
14
+ color: colors.$basic-gray24;
15
+ border-color: colors.$basic-gray12;
16
16
  .button {
17
- fill: colors.$gray12;
17
+ fill: colors.$basic-gray12;
18
18
  }
19
19
  }
20
20
  &.readonly {
21
21
  .button {
22
- fill: colors.$gray24;
22
+ fill: colors.$basic-gray24;
23
23
  }
24
24
  }
25
25
  &.failed:not(.disabled):not(.focused) {
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .button {
59
- fill: colors.$gray38;
59
+ fill: colors.$basic-gray38;
60
60
  flex-shrink: 0;
61
61
  &:not(.hidden) {
62
62
  cursor: pointer;
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  export interface StrokedSVGProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
3
3
  /** Компонент, выводящий svg-элемент. */
4
4
  component: React.ComponentType<React.SVGAttributes<SVGSVGElement>>;
5
- /** Ширина внешней обводки. */
6
- stroke?: string;
7
5
  /** Цвет внешней обводки. */
6
+ stroke?: string;
7
+ /** Ширина внешней обводки. */
8
8
  strokeWidth?: number;
9
9
  /** Цвет заливки. */
10
10
  fill?: string;
@@ -44,7 +44,7 @@ const index_module_scss_1 = __importDefault(require("./index.module.scss"));
44
44
  * @return Элемент.
45
45
  */
46
46
  exports.StrokedSVG = (0, react_1.forwardRef)((_a, ref) => {
47
- var { component: Tag, fill, stroke = colors_1.COLORS.get('gray4'), strokeWidth = 1, className } = _a, restProps = __rest(_a, ["component", "fill", "stroke", "strokeWidth", "className"]);
47
+ var { component: Tag, fill, stroke = colors_1.COLORS.get('basic-gray4'), strokeWidth = 1, className } = _a, restProps = __rest(_a, ["component", "fill", "stroke", "strokeWidth", "className"]);
48
48
  return (react_1.default.createElement("div", Object.assign({ ref: ref, className: (0, classnames_1.default)(index_module_scss_1.default.root, className) }, restProps),
49
49
  react_1.default.createElement(Tag, { stroke: stroke, strokeWidth: `${strokeWidth * 2}px`, className: index_module_scss_1.default.stroke }),
50
50
  react_1.default.createElement(Tag, { fill: fill, className: index_module_scss_1.default.svg })));
@@ -1,13 +1,13 @@
1
1
  @use '../colors';
2
2
 
3
3
  .inner-border-top {
4
- box-shadow: inset 0 1px 0 colors.$gray12;
4
+ box-shadow: inset 0 1px 0 colors.$basic-gray12;
5
5
  }
6
6
 
7
7
  .inner-border-bottom {
8
- box-shadow: inset 0 -1px 0 colors.$gray12;
8
+ box-shadow: inset 0 -1px 0 colors.$basic-gray12;
9
9
  }
10
10
 
11
11
  .inner-border-y {
12
- box-shadow: inset 0 1px 0 colors.$gray12, inset 0 -1px 0 colors.$gray12;
12
+ box-shadow: inset 0 1px 0 colors.$basic-gray12, inset 0 -1px 0 colors.$basic-gray12;
13
13
  }
@@ -1,5 +1,5 @@
1
- export declare const color: (value: "black" | "white" | "brand-blue" | "brand-dark-blue" | "brand-deep-blue" | "brand-dirty" | "brand-sky" | "gray87" | "gray76" | "gray66" | "gray54" | "gray38" | "gray24" | "gray12" | "gray8" | "gray4" | "gray2" | "additional-amber" | "additional-blue-gray" | "additional-blue" | "additional-brown" | "additional-cyan" | "additional-deep-orange" | "additional-deep-purple" | "additional-deep-red" | "additional-faded-green" | "additional-fog" | "additional-gold" | "additional-grass" | "additional-green" | "additional-light-blue" | "additional-light-green" | "additional-light-red" | "additional-lime" | "additional-pink" | "additional-purple" | "additional-red" | "additional-sand" | "additional-teal" | "additional-violet" | "additional-yellow") => string | undefined;
2
- export declare const hoverColor: (value: "black" | "white" | "brand-blue" | "brand-dark-blue" | "brand-deep-blue" | "brand-dirty" | "brand-sky" | "gray87" | "gray76" | "gray66" | "gray54" | "gray38" | "gray24" | "gray12" | "gray8" | "gray4" | "gray2" | "additional-amber" | "additional-blue-gray" | "additional-blue" | "additional-brown" | "additional-cyan" | "additional-deep-orange" | "additional-deep-purple" | "additional-deep-red" | "additional-faded-green" | "additional-fog" | "additional-gold" | "additional-grass" | "additional-green" | "additional-light-blue" | "additional-light-green" | "additional-light-red" | "additional-lime" | "additional-pink" | "additional-purple" | "additional-red" | "additional-sand" | "additional-teal" | "additional-violet" | "additional-yellow") => string | undefined;
3
- export declare const bgColor: (value: "black" | "white" | "brand-blue" | "brand-dark-blue" | "brand-deep-blue" | "brand-dirty" | "brand-sky" | "gray87" | "gray76" | "gray66" | "gray54" | "gray38" | "gray24" | "gray12" | "gray8" | "gray4" | "gray2" | "additional-amber" | "additional-blue-gray" | "additional-blue" | "additional-brown" | "additional-cyan" | "additional-deep-orange" | "additional-deep-purple" | "additional-deep-red" | "additional-faded-green" | "additional-fog" | "additional-gold" | "additional-grass" | "additional-green" | "additional-light-blue" | "additional-light-green" | "additional-light-red" | "additional-lime" | "additional-pink" | "additional-purple" | "additional-red" | "additional-sand" | "additional-teal" | "additional-violet" | "additional-yellow") => string | undefined;
4
- export declare const stroke: (value: "black" | "white" | "brand-blue" | "brand-dark-blue" | "brand-deep-blue" | "brand-dirty" | "brand-sky" | "gray87" | "gray76" | "gray66" | "gray54" | "gray38" | "gray24" | "gray12" | "gray8" | "gray4" | "gray2" | "additional-amber" | "additional-blue-gray" | "additional-blue" | "additional-brown" | "additional-cyan" | "additional-deep-orange" | "additional-deep-purple" | "additional-deep-red" | "additional-faded-green" | "additional-fog" | "additional-gold" | "additional-grass" | "additional-green" | "additional-light-blue" | "additional-light-green" | "additional-light-red" | "additional-lime" | "additional-pink" | "additional-purple" | "additional-red" | "additional-sand" | "additional-teal" | "additional-violet" | "additional-yellow") => string | undefined;
5
- export declare const fill: (value: "black" | "white" | "brand-blue" | "brand-dark-blue" | "brand-deep-blue" | "brand-dirty" | "brand-sky" | "gray87" | "gray76" | "gray66" | "gray54" | "gray38" | "gray24" | "gray12" | "gray8" | "gray4" | "gray2" | "additional-amber" | "additional-blue-gray" | "additional-blue" | "additional-brown" | "additional-cyan" | "additional-deep-orange" | "additional-deep-purple" | "additional-deep-red" | "additional-faded-green" | "additional-fog" | "additional-gold" | "additional-grass" | "additional-green" | "additional-light-blue" | "additional-light-green" | "additional-light-red" | "additional-lime" | "additional-pink" | "additional-purple" | "additional-red" | "additional-sand" | "additional-teal" | "additional-violet" | "additional-yellow") => string | undefined;
1
+ export declare const color: (value: "basic-blue" | "basic-gray87" | "basic-gray76" | "basic-gray66" | "basic-gray54" | "basic-gray38" | "basic-gray24" | "basic-gray12" | "basic-gray8" | "basic-gray4" | "basic-gray2" | "basic-white" | "additional-deep-red" | "additional-red" | "additional-light-red" | "additional-teal" | "additional-green" | "additional-light-green" | "additional-lime" | "additional-faded-green" | "additional-pink" | "additional-purple" | "additional-violet" | "additional-deep-purple" | "additional-electric-blue" | "additional-light-blue" | "additional-cyan" | "additional-sky" | "additional-deep-orange" | "additional-amber" | "additional-yellow" | "additional-gold" | "additional-brown" | "additional-blue-gray" | "additional-deep-blue" | "additional-dark-blue") => string | undefined;
2
+ export declare const hoverColor: (value: "basic-blue" | "basic-gray87" | "basic-gray76" | "basic-gray66" | "basic-gray54" | "basic-gray38" | "basic-gray24" | "basic-gray12" | "basic-gray8" | "basic-gray4" | "basic-gray2" | "basic-white" | "additional-deep-red" | "additional-red" | "additional-light-red" | "additional-teal" | "additional-green" | "additional-light-green" | "additional-lime" | "additional-faded-green" | "additional-pink" | "additional-purple" | "additional-violet" | "additional-deep-purple" | "additional-electric-blue" | "additional-light-blue" | "additional-cyan" | "additional-sky" | "additional-deep-orange" | "additional-amber" | "additional-yellow" | "additional-gold" | "additional-brown" | "additional-blue-gray" | "additional-deep-blue" | "additional-dark-blue") => string | undefined;
3
+ export declare const bgColor: (value: "basic-blue" | "basic-gray87" | "basic-gray76" | "basic-gray66" | "basic-gray54" | "basic-gray38" | "basic-gray24" | "basic-gray12" | "basic-gray8" | "basic-gray4" | "basic-gray2" | "basic-white" | "additional-deep-red" | "additional-red" | "additional-light-red" | "additional-teal" | "additional-green" | "additional-light-green" | "additional-lime" | "additional-faded-green" | "additional-pink" | "additional-purple" | "additional-violet" | "additional-deep-purple" | "additional-electric-blue" | "additional-light-blue" | "additional-cyan" | "additional-sky" | "additional-deep-orange" | "additional-amber" | "additional-yellow" | "additional-gold" | "additional-brown" | "additional-blue-gray" | "additional-deep-blue" | "additional-dark-blue") => string | undefined;
4
+ export declare const stroke: (value: "basic-blue" | "basic-gray87" | "basic-gray76" | "basic-gray66" | "basic-gray54" | "basic-gray38" | "basic-gray24" | "basic-gray12" | "basic-gray8" | "basic-gray4" | "basic-gray2" | "basic-white" | "additional-deep-red" | "additional-red" | "additional-light-red" | "additional-teal" | "additional-green" | "additional-light-green" | "additional-lime" | "additional-faded-green" | "additional-pink" | "additional-purple" | "additional-violet" | "additional-deep-purple" | "additional-electric-blue" | "additional-light-blue" | "additional-cyan" | "additional-sky" | "additional-deep-orange" | "additional-amber" | "additional-yellow" | "additional-gold" | "additional-brown" | "additional-blue-gray" | "additional-deep-blue" | "additional-dark-blue") => string | undefined;
5
+ export declare const fill: (value: "basic-blue" | "basic-gray87" | "basic-gray76" | "basic-gray66" | "basic-gray54" | "basic-gray38" | "basic-gray24" | "basic-gray12" | "basic-gray8" | "basic-gray4" | "basic-gray2" | "basic-white" | "additional-deep-red" | "additional-red" | "additional-light-red" | "additional-teal" | "additional-green" | "additional-light-green" | "additional-lime" | "additional-faded-green" | "additional-pink" | "additional-purple" | "additional-violet" | "additional-deep-purple" | "additional-electric-blue" | "additional-light-blue" | "additional-cyan" | "additional-sky" | "additional-deep-orange" | "additional-amber" | "additional-yellow" | "additional-gold" | "additional-brown" | "additional-blue-gray" | "additional-deep-blue" | "additional-dark-blue") => string | undefined;
@@ -26,10 +26,10 @@
26
26
  &.view-clean-underline {
27
27
  height: 32px;
28
28
  .item {
29
- color: colors.$gray38;
29
+ color: colors.$basic-gray38;
30
30
  &.selected {
31
31
  position: relative;
32
- color: colors.$gray87;
32
+ color: colors.$basic-gray87;
33
33
  &::before {
34
34
  content: '';
35
35
  position: absolute;
@@ -38,17 +38,17 @@
38
38
  left: 0;
39
39
  right: 0;
40
40
  bottom: 0;
41
- background-color: colors.$brand-blue;
41
+ background-color: colors.$basic-blue;
42
42
  border-top-left-radius: 4px;
43
43
  border-top-right-radius: 4px;
44
44
  }
45
45
  }
46
46
  &.disabled {
47
- color: colors.$gray12;
47
+ color: colors.$basic-gray12;
48
48
  }
49
49
  &:not(.selected):not(.disabled):hover {
50
50
  cursor: pointer;
51
- color: colors.$gray54;
51
+ color: colors.$basic-gray54;
52
52
  }
53
53
  }
54
54
  }
@@ -61,26 +61,26 @@
61
61
  content: '';
62
62
  height: 1px;
63
63
  width: 100%;
64
- background-color: colors.$gray12;
64
+ background-color: colors.$basic-gray12;
65
65
  }
66
66
  }
67
67
  &.view-round {
68
68
  height: 40px;
69
69
  .item {
70
- color: colors.$gray87;
70
+ color: colors.$basic-gray87;
71
71
  padding: 8px 16px;
72
72
  border-radius: 4px;
73
- background-color: colors.$gray4;
73
+ background-color: colors.$basic-gray4;
74
74
  &.selected {
75
- background-color: colors.$brand-blue;
76
- color: colors.$white;
75
+ background-color: colors.$basic-blue;
76
+ color: colors.$basic-white;
77
77
  }
78
78
  &.disabled {
79
- color: colors.$gray24;
79
+ color: colors.$basic-gray24;
80
80
  }
81
81
  &:not(.selected):not(.disabled):hover {
82
82
  cursor: pointer;
83
- background-color: colors.$gray8;
83
+ background-color: colors.$basic-gray8;
84
84
  }
85
85
  }
86
86
  }
@@ -38,16 +38,16 @@ input.reset {
38
38
  // variant: desktop
39
39
  &.variant-desktop {
40
40
  background-color: #fff;
41
- border: 1px solid colors.$gray12;
41
+ border: 1px solid colors.$basic-gray12;
42
42
  &.disabled {
43
- border-color: colors.$gray12;
44
- background-color: colors.$gray2;
43
+ border-color: colors.$basic-gray12;
44
+ background-color: colors.$basic-gray2;
45
45
  }
46
46
  &.focused:not(.disabled):not(.failed) {
47
- border-color: colors.$brand-blue;
47
+ border-color: colors.$basic-blue;
48
48
  }
49
49
  &.disabled {
50
- border-color: colors.$gray12;
50
+ border-color: colors.$basic-gray12;
51
51
  }
52
52
  &:not(.multiline) {
53
53
  &.size-xs {
@@ -79,7 +79,7 @@ input.reset {
79
79
  &.variant-mobile {
80
80
  padding: 0;
81
81
  border: 0;
82
- box-shadow: inset 0 -1px colors.$gray12;
82
+ box-shadow: inset 0 -1px colors.$basic-gray12;
83
83
  .main-column {
84
84
  height: 100%;
85
85
  justify-content: center;
@@ -88,7 +88,7 @@ input.reset {
88
88
  justify-content: flex-start;
89
89
  }
90
90
  &.focused:not(.disabled) {
91
- box-shadow: inset 0 -1px colors.$brand-blue;
91
+ box-shadow: inset 0 -1px colors.$basic-blue;
92
92
  }
93
93
  &.failed:not(:disabled) {
94
94
  box-shadow: inset 0 -1px colors.$additional-red;
@@ -109,9 +109,9 @@ input.reset {
109
109
  }
110
110
 
111
111
  // чтобы startAdornment/endAdornment подхватили цвет
112
- color: colors.$gray87;
112
+ color: colors.$basic-gray87;
113
113
  &.disabled {
114
- color: colors.$gray24;
114
+ color: colors.$basic-gray24;
115
115
  }
116
116
  }
117
117
 
@@ -138,9 +138,9 @@ input.reset {
138
138
  transform-origin: left bottom;
139
139
  white-space: nowrap;
140
140
  overflow: hidden;
141
- color: colors.$gray38;
141
+ color: colors.$basic-gray38;
142
142
  &.disabled {
143
- color: colors.$gray24;
143
+ color: colors.$basic-gray24;
144
144
  }
145
145
  &.as-placeholder {
146
146
  font-size: 16px;
@@ -154,7 +154,7 @@ input.reset {
154
154
  }
155
155
  &.variant-mobile {
156
156
  &.focused:not(.failed) {
157
- color: colors.$brand-blue;
157
+ color: colors.$basic-blue;
158
158
  }
159
159
  &.failed.focused,
160
160
  &.failed.filled {
@@ -172,15 +172,15 @@ input.reset {
172
172
  .input-wrapper .base-input {
173
173
  font-size: 16px;
174
174
  line-height: 24px;
175
- color: colors.$gray87;
176
- --placeholder-color: #{colors.$gray38};
175
+ color: colors.$basic-gray87;
176
+ --placeholder-color: #{colors.$basic-gray38};
177
177
  background-color: transparent;
178
178
  width: 0;
179
179
  flex-grow: 1;
180
180
  &.disabled {
181
- color: colors.$gray24;
182
- --placeholder-color: #{colors.$gray24};
183
- -webkit-text-fill-color: colors.$gray24; //fix safari disabled
181
+ color: colors.$basic-gray24;
182
+ --placeholder-color: #{colors.$basic-gray24};
183
+ -webkit-text-fill-color: colors.$basic-gray24; //fix safari disabled
184
184
  }
185
185
  &.size-xs {
186
186
  font-size: 14px;
@@ -198,7 +198,7 @@ input.reset {
198
198
  .caption {
199
199
  font-size: 12px;
200
200
  line-height: 16px;
201
- color: colors.$gray38;
201
+ color: colors.$basic-gray38;
202
202
  &.failed {
203
203
  color: colors.$additional-red;
204
204
  }