@salutejs/plasma-new-hope 0.78.0-canary.1195.8924860991.0 → 0.78.0-canary.1195.8939186735.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (17) hide show
  1. package/package.json +2 -2
  2. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.config.js +0 -1
  3. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +11 -11
  4. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.config.js +0 -1
  5. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +11 -11
  6. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.config.js +0 -1
  7. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +11 -11
  8. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.config.js +0 -1
  9. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +11 -11
  10. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts +0 -1
  11. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts.map +1 -1
  12. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +0 -1
  13. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts.map +1 -1
  14. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts +0 -1
  15. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts.map +1 -1
  16. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +0 -1
  17. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.78.0-canary.1195.8924860991.0",
3
+ "version": "0.78.0-canary.1195.8939186735.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -102,5 +102,5 @@
102
102
  "react-popper": "2.3.0",
103
103
  "storeon": "3.1.5"
104
104
  },
105
- "gitHead": "ed82cea053cbdda95006aeda1bbac67fb1cba80f"
105
+ "gitHead": "971487fea70bdcaaf1e15827b75bb1ed06d24d5a"
106
106
  }
@@ -15,7 +15,6 @@ var config = exports.config = {
15
15
  variations: {
16
16
  view: {
17
17
  "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
18
- primary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
19
18
  accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
20
19
  secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
21
20
  clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
@@ -37,18 +37,18 @@ const meta: Meta<typeof IconButton> = {
37
37
  export default meta;
38
38
 
39
39
  const getSizeForIcon = (size) => {
40
- if (size === 'mr') {
41
- return 'm';
42
- }
43
- if (size === 'lr') {
44
- return 'l';
45
- }
46
- if (size === 'sr') {
47
- return 's';
48
- }
49
- if (size === 'xsr') {
50
- return 'xs';
40
+ const map = {
41
+ mr: 's',
42
+ lr: 's',
43
+ m: 's',
44
+ l: 's',
45
+ sr: 's',
46
+ xsr: 'xs',
47
+ };
48
+ if (map[size]) {
49
+ return map[size];
51
50
  }
51
+
52
52
  return size;
53
53
  };
54
54
 
@@ -15,7 +15,6 @@ var config = exports.config = {
15
15
  variations: {
16
16
  view: {
17
17
  "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
18
- primary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
19
18
  accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
20
19
  secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
21
20
  clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], _IconButton.iconButtonTokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive),
@@ -37,18 +37,18 @@ const meta: Meta<typeof IconButton> = {
37
37
  export default meta;
38
38
 
39
39
  const getSizeForIcon = (size) => {
40
- if (size === 'mr') {
41
- return 'm';
42
- }
43
- if (size === 'lr') {
44
- return 'l';
45
- }
46
- if (size === 'sr') {
47
- return 's';
48
- }
49
- if (size === 'xsr') {
50
- return 'xs';
40
+ const map = {
41
+ mr: 's',
42
+ lr: 's',
43
+ m: 's',
44
+ l: 's',
45
+ sr: 's',
46
+ xsr: 'xs',
47
+ };
48
+ if (map[size]) {
49
+ return map[size];
51
50
  }
51
+
52
52
  return size;
53
53
  };
54
54
 
@@ -9,7 +9,6 @@ export var config = {
9
9
  variations: {
10
10
  view: {
11
11
  "default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
12
- primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
13
12
  accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
14
13
  secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
15
14
  clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
@@ -37,18 +37,18 @@ const meta: Meta<typeof IconButton> = {
37
37
  export default meta;
38
38
 
39
39
  const getSizeForIcon = (size) => {
40
- if (size === 'mr') {
41
- return 'm';
42
- }
43
- if (size === 'lr') {
44
- return 'l';
45
- }
46
- if (size === 'sr') {
47
- return 's';
48
- }
49
- if (size === 'xsr') {
50
- return 'xs';
40
+ const map = {
41
+ mr: 's',
42
+ lr: 's',
43
+ m: 's',
44
+ l: 's',
45
+ sr: 's',
46
+ xsr: 'xs',
47
+ };
48
+ if (map[size]) {
49
+ return map[size];
51
50
  }
51
+
52
52
  return size;
53
53
  };
54
54
 
@@ -9,7 +9,6 @@ export var config = {
9
9
  variations: {
10
10
  view: {
11
11
  "default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
12
- primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
13
12
  accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
14
13
  secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
15
14
  clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], iconButtonTokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive),
@@ -37,18 +37,18 @@ const meta: Meta<typeof IconButton> = {
37
37
  export default meta;
38
38
 
39
39
  const getSizeForIcon = (size) => {
40
- if (size === 'mr') {
41
- return 'm';
42
- }
43
- if (size === 'lr') {
44
- return 'l';
45
- }
46
- if (size === 'sr') {
47
- return 's';
48
- }
49
- if (size === 'xsr') {
50
- return 'xs';
40
+ const map = {
41
+ mr: 's',
42
+ lr: 's',
43
+ m: 's',
44
+ l: 's',
45
+ sr: 's',
46
+ xsr: 'xs',
47
+ };
48
+ if (map[size]) {
49
+ return map[size];
51
50
  }
51
+
52
52
  return size;
53
53
  };
54
54
 
@@ -7,7 +7,6 @@ export declare const config: {
7
7
  variations: {
8
8
  view: {
9
9
  default: import("@linaria/core").LinariaClassName;
10
- primary: import("@linaria/core").LinariaClassName;
11
10
  accent: import("@linaria/core").LinariaClassName;
12
11
  secondary: import("@linaria/core").LinariaClassName;
13
12
  clear: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/IconButton/IconButton.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NlB,CAAC"}
1
+ {"version":3,"file":"IconButton.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/IconButton/IconButton.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsNlB,CAAC"}
@@ -2,7 +2,6 @@
2
2
  export declare const IconButton: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
3
  view: {
4
4
  default: import("@linaria/core").LinariaClassName;
5
- primary: import("@linaria/core").LinariaClassName;
6
5
  accent: import("@linaria/core").LinariaClassName;
7
6
  secondary: import("@linaria/core").LinariaClassName;
8
7
  clear: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/IconButton/IconButton.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uGAA0B,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/IconButton/IconButton.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uGAA0B,CAAC"}
@@ -7,7 +7,6 @@ export declare const config: {
7
7
  variations: {
8
8
  view: {
9
9
  default: import("@linaria/core").LinariaClassName;
10
- primary: import("@linaria/core").LinariaClassName;
11
10
  accent: import("@linaria/core").LinariaClassName;
12
11
  secondary: import("@linaria/core").LinariaClassName;
13
12
  clear: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/IconButton/IconButton.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NlB,CAAC"}
1
+ {"version":3,"file":"IconButton.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/IconButton/IconButton.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsNlB,CAAC"}
@@ -2,7 +2,6 @@
2
2
  export declare const IconButton: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
3
  view: {
4
4
  default: import("@linaria/core").LinariaClassName;
5
- primary: import("@linaria/core").LinariaClassName;
6
5
  accent: import("@linaria/core").LinariaClassName;
7
6
  secondary: import("@linaria/core").LinariaClassName;
8
7
  clear: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/IconButton/IconButton.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uGAA0B,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/IconButton/IconButton.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uGAA0B,CAAC"}