@salutejs/plasma-asdk 0.204.0-canary.1563.11890461704.0 → 0.204.0-canary.1568.11891833298.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -504,6 +504,9 @@ export const Switch: FunctionComponent<PropsType< {
504
504
  size: {
505
505
  m: PolymorphicClassName;
506
506
  };
507
+ toggleSize: {
508
+ l: PolymorphicClassName;
509
+ };
507
510
  view: {
508
511
  default: PolymorphicClassName;
509
512
  };
@@ -2,6 +2,7 @@ export declare const config: {
2
2
  defaults: {
3
3
  view: string;
4
4
  size: string;
5
+ toggleSize: string;
5
6
  labelPosition: string;
6
7
  focused: string;
7
8
  };
@@ -9,6 +10,9 @@ export declare const config: {
9
10
  size: {
10
11
  m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
12
  };
13
+ toggleSize: {
14
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
15
+ };
12
16
  view: {
13
17
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
18
  };
@@ -5,27 +5,31 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.config = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
8
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
9
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
10
10
  var config = exports.config = {
11
11
  defaults: {
12
12
  view: 'default',
13
13
  size: 'm',
14
+ toggleSize: 'l',
14
15
  labelPosition: 'before',
15
16
  focused: 'true'
16
17
  },
17
18
  variations: {
18
19
  size: {
19
- m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body1-font-family);\n ", ": var(--plasma-typo-body1-font-style);\n ", ": var(--plasma-typo-body1-font-weight);\n ", ": var(--plasma-typo-body1-font-weight);\n ", ": var(--plasma-typo-body1-line-height);\n ", ": var(--plasma-typo-body1-font-size);\n ", ": var(--plasma-typo-body1-letter-spacing);\n ", ": 2.75rem;\n ", ": 1.75rem;\n ", ": calc(var(", ") / 2);\n ", ": 1.5rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n ", ": 0.75rem;\n "])), _styledComponents.switchTokens.fontFamily, _styledComponents.switchTokens.fontStyle, _styledComponents.switchTokens.fontWeight, _styledComponents.switchTokens.fontWeight, _styledComponents.switchTokens.lineHeight, _styledComponents.switchTokens.fontSize, _styledComponents.switchTokens.letterSpacing, _styledComponents.switchTokens.trackWidth, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.trackBorderRadius, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbBorderRadius, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbOffset, _styledComponents.switchTokens.thumbPressScale, _styledComponents.switchTokens.labelOffset)
20
+ m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-line-height);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-line-height);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), _styledComponents.switchTokens.fontFamily, _styledComponents.switchTokens.fontStyle, _styledComponents.switchTokens.fontWeight, _styledComponents.switchTokens.lineHeight, _styledComponents.switchTokens.fontSize, _styledComponents.switchTokens.letterSpacing, _styledComponents.switchTokens.descriptionFontFamily, _styledComponents.switchTokens.descriptionFontStyle, _styledComponents.switchTokens.descriptionFontWeight, _styledComponents.switchTokens.descriptionLineHeight, _styledComponents.switchTokens.descriptionFontSize, _styledComponents.switchTokens.descriptionLetterSpacing, _styledComponents.switchTokens.verticalGap, _styledComponents.switchTokens.labelOffset)
21
+ },
22
+ toggleSize: {
23
+ l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2.75rem;\n ", ": 1.75rem;\n ", ": calc(var(", ") / 2);\n ", ": 1.5rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n "])), _styledComponents.switchTokens.trackWidth, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.trackBorderRadius, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbBorderRadius, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbOffset, _styledComponents.switchTokens.thumbPressScale)
20
24
  },
21
25
  view: {
22
- "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent-main);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--on-dark-text-primary);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), _styledComponents.switchTokens.trackBackgroundColorOn, _styledComponents.switchTokens.trackBackgroundColorOff, _styledComponents.switchTokens.thumbBackgroundColor, _styledComponents.switchTokens.thumbBoxShadow)
26
+ "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent-main);\n ", ": var(--surface-accent-main-hover);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary-hover);\n ", ": 0rem;\n ", ": var(--on-dark-surface-solid-default);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), _styledComponents.switchTokens.labelColor, _styledComponents.switchTokens.descriptionColor, _styledComponents.switchTokens.trackBackgroundColorOn, _styledComponents.switchTokens.trackBackgroundColorOnHover, _styledComponents.switchTokens.trackBackgroundColorOff, _styledComponents.switchTokens.trackBackgroundColorOffHover, _styledComponents.switchTokens.trackBorderWidth, _styledComponents.switchTokens.thumbBackgroundColorOff, _styledComponents.switchTokens.thumbBackgroundColorOn, _styledComponents.switchTokens.thumbBoxShadow)
23
27
  },
24
28
  disabled: {
25
- "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.switchTokens.disabledOpacity)
29
+ "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.switchTokens.disabledOpacity)
26
30
  },
27
31
  focused: {
28
- "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent-main);\n "])), _styledComponents.switchTokens.trackFocusColor)
32
+ "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent-main);\n "])), _styledComponents.switchTokens.trackFocusColor)
29
33
  }
30
34
  }
31
35
  };
@@ -3,6 +3,9 @@ declare const SwitchComponent: import("react").FunctionComponent<import("@salute
3
3
  size: {
4
4
  m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
5
  };
6
+ toggleSize: {
7
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
8
+ };
6
9
  view: {
7
10
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
8
11
  };
@@ -17,6 +20,9 @@ export declare const Switch: import("react").FunctionComponent<import("@salutejs
17
20
  size: {
18
21
  m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
19
22
  };
23
+ toggleSize: {
24
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
25
+ };
20
26
  view: {
21
27
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
22
28
  };
@@ -1,25 +1,29 @@
1
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import { css, switchTokens } from '@salutejs/plasma-new-hope/styled-components';
4
4
  export var config = {
5
5
  defaults: {
6
6
  view: 'default',
7
7
  size: 'm',
8
+ toggleSize: 'l',
8
9
  labelPosition: 'before',
9
10
  focused: 'true'
10
11
  },
11
12
  variations: {
12
13
  size: {
13
- m: /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body1-font-family);\n ", ": var(--plasma-typo-body1-font-style);\n ", ": var(--plasma-typo-body1-font-weight);\n ", ": var(--plasma-typo-body1-font-weight);\n ", ": var(--plasma-typo-body1-line-height);\n ", ": var(--plasma-typo-body1-font-size);\n ", ": var(--plasma-typo-body1-letter-spacing);\n ", ": 2.75rem;\n ", ": 1.75rem;\n ", ": calc(var(", ") / 2);\n ", ": 1.5rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n ", ": 0.75rem;\n "])), switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale, switchTokens.labelOffset)
14
+ m: /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-line-height);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-line-height);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset)
15
+ },
16
+ toggleSize: {
17
+ l: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2.75rem;\n ", ": 1.75rem;\n ", ": calc(var(", ") / 2);\n ", ": 1.5rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n "])), switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale)
14
18
  },
15
19
  view: {
16
- "default": /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent-main);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--on-dark-text-primary);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOff, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
20
+ "default": /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent-main);\n ", ": var(--surface-accent-main-hover);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary-hover);\n ", ": 0rem;\n ", ": var(--on-dark-surface-solid-default);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.trackBorderWidth, switchTokens.thumbBackgroundColorOff, switchTokens.thumbBackgroundColorOn, switchTokens.thumbBoxShadow)
17
21
  },
18
22
  disabled: {
19
- "true": /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), switchTokens.disabledOpacity)
23
+ "true": /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), switchTokens.disabledOpacity)
20
24
  },
21
25
  focused: {
22
- "true": /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent-main);\n "])), switchTokens.trackFocusColor)
26
+ "true": /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent-main);\n "])), switchTokens.trackFocusColor)
23
27
  }
24
28
  }
25
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-asdk",
3
- "version": "0.204.0-canary.1563.11890461704.0",
3
+ "version": "0.204.0-canary.1568.11891833298.0",
4
4
  "description": "Salute Design System / React UI kit for Assistant web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "directory": "packages/plasma-asdk"
20
20
  },
21
21
  "dependencies": {
22
- "@salutejs/plasma-new-hope": "0.193.0",
22
+ "@salutejs/plasma-new-hope": "0.194.0-canary.1568.11891833298.0",
23
23
  "@salutejs/plasma-tokens": "1.105.0",
24
24
  "@salutejs/plasma-tokens-b2b": "1.43.0",
25
25
  "@salutejs/plasma-typo": "0.40.0"
@@ -41,7 +41,7 @@
41
41
  "@salutejs/plasma-colors": "0.13.0",
42
42
  "@salutejs/plasma-core": "1.186.0",
43
43
  "@salutejs/plasma-cy-utils": "0.117.0",
44
- "@salutejs/plasma-icons": "1.209.0-canary.1563.11890461704.0",
44
+ "@salutejs/plasma-icons": "1.208.0",
45
45
  "@salutejs/plasma-sb-utils": "0.184.0",
46
46
  "@storybook/addon-docs": "7.6.17",
47
47
  "@storybook/addon-essentials": "7.6.17",
@@ -98,5 +98,5 @@
98
98
  "Fanil Zubairov"
99
99
  ],
100
100
  "sideEffects": false,
101
- "gitHead": "65e1c136eab84587355469c4457ac7f6217a604d"
101
+ "gitHead": "cefe6714d8c07097e31273c50d13370ae9b222b9"
102
102
  }
@@ -504,6 +504,9 @@ export const Switch: FunctionComponent<PropsType< {
504
504
  size: {
505
505
  m: PolymorphicClassName;
506
506
  };
507
+ toggleSize: {
508
+ l: PolymorphicClassName;
509
+ };
507
510
  view: {
508
511
  default: PolymorphicClassName;
509
512
  };