@salutejs/plasma-new-hope 0.75.1-canary.1179.8688877537.0 → 0.76.0-canary.1172.8687373718.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/cjs/components/Chip/Chip.css +0 -2
  2. package/cjs/components/Chip/Chip.js +2 -14
  3. package/cjs/components/Chip/Chip.js.map +1 -1
  4. package/cjs/components/Chip/Chip.tokens.js +0 -5
  5. package/cjs/components/Chip/Chip.tokens.js.map +1 -1
  6. package/cjs/components/Combobox/Combobox.css +0 -2
  7. package/cjs/components/Combobox/ui/ComboboxChip/ComboboxChip.css +0 -2
  8. package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.css +0 -2
  9. package/cjs/components/Pagination/Pagination.css +0 -2
  10. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +0 -2
  11. package/cjs/components/Select/Select.css +0 -2
  12. package/cjs/components/Select/ui/SelectChip/SelectChip.css +0 -2
  13. package/cjs/components/Select/ui/SelectTarget/SelectTarget.css +0 -2
  14. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -2
  15. package/cjs/index.css +0 -2
  16. package/es/components/Chip/Chip.css +0 -2
  17. package/es/components/Chip/Chip.js +3 -15
  18. package/es/components/Chip/Chip.js.map +1 -1
  19. package/es/components/Chip/Chip.tokens.js +1 -5
  20. package/es/components/Chip/Chip.tokens.js.map +1 -1
  21. package/es/components/Combobox/Combobox.css +0 -2
  22. package/es/components/Combobox/ui/ComboboxChip/ComboboxChip.css +0 -2
  23. package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.css +0 -2
  24. package/es/components/Pagination/Pagination.css +0 -2
  25. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +0 -2
  26. package/es/components/Select/Select.css +0 -2
  27. package/es/components/Select/ui/SelectChip/SelectChip.css +0 -2
  28. package/es/components/Select/ui/SelectTarget/SelectTarget.css +0 -2
  29. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -2
  30. package/es/index.css +0 -2
  31. package/package.json +4 -4
  32. package/styled-components/cjs/components/Chip/Chip.js +2 -14
  33. package/styled-components/cjs/components/Chip/Chip.template-doc.mdx +2 -2
  34. package/styled-components/cjs/components/Chip/Chip.tokens.js +1 -5
  35. package/styled-components/cjs/examples/plasma_b2c/components/Chip/Chip.config.js +7 -10
  36. package/styled-components/cjs/examples/plasma_b2c/components/Chip/Chip.stories.tsx +2 -18
  37. package/styled-components/cjs/examples/plasma_web/components/Chip/Chip.config.js +7 -10
  38. package/styled-components/cjs/examples/plasma_web/components/Chip/Chip.stories.tsx +2 -18
  39. package/styled-components/es/components/Chip/Chip.js +3 -15
  40. package/styled-components/es/components/Chip/Chip.template-doc.mdx +2 -2
  41. package/styled-components/es/components/Chip/Chip.tokens.js +0 -4
  42. package/styled-components/es/examples/plasma_b2c/components/Chip/Chip.config.js +7 -10
  43. package/styled-components/es/examples/plasma_b2c/components/Chip/Chip.stories.tsx +2 -18
  44. package/styled-components/es/examples/plasma_web/components/Chip/Chip.config.js +7 -10
  45. package/styled-components/es/examples/plasma_web/components/Chip/Chip.stories.tsx +2 -18
  46. package/types/components/Chip/Chip.d.ts +0 -4
  47. package/types/components/Chip/Chip.d.ts.map +1 -1
  48. package/types/components/Chip/Chip.tokens.d.ts +0 -4
  49. package/types/components/Chip/Chip.tokens.d.ts.map +1 -1
  50. package/types/components/Chip/Chip.types.d.ts +0 -6
  51. package/types/components/Chip/Chip.types.d.ts.map +1 -1
  52. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts +1 -4
  53. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts.map +1 -1
  54. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts +1 -4
  55. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts.map +1 -1
  56. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts +1 -4
  57. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts.map +1 -1
  58. package/types/examples/plasma_web/components/Chip/Chip.d.ts +1 -4
  59. package/types/examples/plasma_web/components/Chip/Chip.d.ts.map +1 -1
  60. package/cjs/components/Chip/variations/_pilled/base.js +0 -9
  61. package/cjs/components/Chip/variations/_pilled/base.js.map +0 -1
  62. package/cjs/components/Chip/variations/_pilled/base_3kce4h.css +0 -1
  63. package/es/components/Chip/variations/_pilled/base.js +0 -5
  64. package/es/components/Chip/variations/_pilled/base.js.map +0 -1
  65. package/es/components/Chip/variations/_pilled/base_3kce4h.css +0 -1
  66. package/styled-components/cjs/components/Chip/variations/_pilled/base.js +0 -9
  67. package/styled-components/cjs/components/Chip/variations/_pilled/tokens.json +0 -4
  68. package/styled-components/es/components/Chip/variations/_pilled/base.js +0 -3
  69. package/styled-components/es/components/Chip/variations/_pilled/tokens.json +0 -4
  70. package/types/components/Chip/variations/_pilled/base.d.ts +0 -2
  71. package/types/components/Chip/variations/_pilled/base.d.ts.map +0 -1
@@ -40,33 +40,17 @@ const TrashIcon = (props) => (
40
40
  export const Default: Story = {
41
41
  args: {
42
42
  text: 'Hello',
43
- view: 'default',
43
+ view: 'primary',
44
44
  size: 'm',
45
45
  disabled: false,
46
46
  focused: true,
47
- pilled: false,
48
47
  onClear,
49
48
  },
50
49
  };
51
50
 
52
51
  export const WithIcon: Story = {
53
52
  args: { ...Default.args },
54
- render: (args) => {
55
- const iconSizeMapper = {
56
- l: '1.5rem',
57
- m: '1.25rem',
58
- s: '1rem',
59
- xs: '0.75rem',
60
- };
61
- const iconSize = args.size || 'm';
62
-
63
- return (
64
- <Chip
65
- contentLeft={<TrashIcon width={iconSizeMapper[iconSize]} height={iconSizeMapper[iconSize]} />}
66
- {...args}
67
- />
68
- );
69
- },
53
+ render: (args) => <Chip contentLeft={<TrashIcon width="1.25rem" height="1.25rem" />} {...args} />,
70
54
  };
71
55
 
72
56
  export const LongText: Story = {
@@ -25,10 +25,6 @@ export declare const chipConfig: {
25
25
  focused: {
26
26
  css: import("@linaria/core").LinariaClassName;
27
27
  };
28
- pilled: {
29
- css: import("@linaria/core").LinariaClassName;
30
- attrs: boolean;
31
- };
32
28
  };
33
29
  defaults: {
34
30
  view: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAU/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,eAAO,MAAM,QAAQ,SAAU,UAAU,iBAAiB,EAAE,SAAS,CAAC,wFA2DhE,CAAC;AAEP,eAAO,MAAM,UAAU;;;mBA7DQ,UAAU,iBAAiB,EAAE,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FrE,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,eAAO,MAAM,QAAQ,SAAU,UAAU,iBAAiB,EAAE,SAAS,CAAC,wFAsDhE,CAAC;AAEP,eAAO,MAAM,UAAU;;;mBAxDQ,UAAU,iBAAiB,EAAE,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAoFrE,CAAC"}
@@ -1,6 +1,3 @@
1
- export declare const classes: {
2
- pilled: string;
3
- };
4
1
  export declare const tokens: {
5
2
  background: string;
6
3
  color: string;
@@ -18,7 +15,6 @@ export declare const tokens: {
18
15
  outlineSize: string;
19
16
  closeIconColor: string;
20
17
  borderRadius: string;
21
- pilledBorderRadius: string;
22
18
  width: string;
23
19
  height: string;
24
20
  paddingTop: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ClB,CAAC"}
1
+ {"version":3,"file":"Chip.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyClB,CAAC"}
@@ -16,12 +16,6 @@ declare type CustomChipProps = {
16
16
  * Слот для контента Clear
17
17
  */
18
18
  contentClearButton?: ReactNode;
19
- /**
20
- * Компонент c округлым border-radius
21
- * @default
22
- * false
23
- */
24
- pilled?: boolean;
25
19
  /**
26
20
  * Компонент не активен
27
21
  * @default
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.types.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhF,aAAK,eAAe,GAAG;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,GAAG,iBAAiB,CAAC;AAEtB,MAAM,WAAW,SAAU,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,eAAe;CAAG"}
1
+ {"version":3,"file":"Chip.types.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhF,aAAK,eAAe,GAAG;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,GAAG,iBAAiB,CAAC;AAEtB,MAAM,WAAW,SAAU,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,eAAe;CAAG"}
@@ -8,7 +8,7 @@ export declare const config: {
8
8
  view: {
9
9
  default: import("@linaria/core").LinariaClassName;
10
10
  secondary: import("@linaria/core").LinariaClassName;
11
- accent: import("@linaria/core").LinariaClassName;
11
+ positive: import("@linaria/core").LinariaClassName;
12
12
  };
13
13
  size: {
14
14
  l: import("@linaria/core").LinariaClassName;
@@ -22,9 +22,6 @@ export declare const config: {
22
22
  focused: {
23
23
  true: import("@linaria/core").LinariaClassName;
24
24
  };
25
- pilled: {
26
- true: import("@linaria/core").LinariaClassName;
27
- };
28
25
  };
29
26
  };
30
27
  //# sourceMappingURL=Chip.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Chip/Chip.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiKlB,CAAC"}
1
+ {"version":3,"file":"Chip.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Chip/Chip.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CA8KlB,CAAC"}
@@ -3,7 +3,7 @@ export declare const Chip: import("react").FunctionComponent<import("../../../..
3
3
  view: {
4
4
  default: import("@linaria/core").LinariaClassName;
5
5
  secondary: import("@linaria/core").LinariaClassName;
6
- accent: import("@linaria/core").LinariaClassName;
6
+ positive: import("@linaria/core").LinariaClassName;
7
7
  };
8
8
  size: {
9
9
  l: import("@linaria/core").LinariaClassName;
@@ -17,8 +17,5 @@ export declare const Chip: import("react").FunctionComponent<import("../../../..
17
17
  focused: {
18
18
  true: import("@linaria/core").LinariaClassName;
19
19
  };
20
- pilled: {
21
- true: import("@linaria/core").LinariaClassName;
22
- };
23
20
  }> & import("../../../../components/Chip").ChipProps & import("react").RefAttributes<HTMLButtonElement>>;
24
21
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Chip/Chip.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;wGAA0B,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Chip/Chip.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;wGAA0B,CAAC"}
@@ -8,7 +8,7 @@ export declare const config: {
8
8
  view: {
9
9
  default: import("@linaria/core").LinariaClassName;
10
10
  secondary: import("@linaria/core").LinariaClassName;
11
- accent: import("@linaria/core").LinariaClassName;
11
+ positive: import("@linaria/core").LinariaClassName;
12
12
  };
13
13
  size: {
14
14
  l: import("@linaria/core").LinariaClassName;
@@ -22,9 +22,6 @@ export declare const config: {
22
22
  focused: {
23
23
  true: import("@linaria/core").LinariaClassName;
24
24
  };
25
- pilled: {
26
- true: import("@linaria/core").LinariaClassName;
27
- };
28
25
  };
29
26
  };
30
27
  //# sourceMappingURL=Chip.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Chip/Chip.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiKlB,CAAC"}
1
+ {"version":3,"file":"Chip.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Chip/Chip.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CA8KlB,CAAC"}
@@ -3,7 +3,7 @@ export declare const Chip: import("react").FunctionComponent<import("../../../..
3
3
  view: {
4
4
  default: import("@linaria/core").LinariaClassName;
5
5
  secondary: import("@linaria/core").LinariaClassName;
6
- accent: import("@linaria/core").LinariaClassName;
6
+ positive: import("@linaria/core").LinariaClassName;
7
7
  };
8
8
  size: {
9
9
  l: import("@linaria/core").LinariaClassName;
@@ -17,8 +17,5 @@ export declare const Chip: import("react").FunctionComponent<import("../../../..
17
17
  focused: {
18
18
  true: import("@linaria/core").LinariaClassName;
19
19
  };
20
- pilled: {
21
- true: import("@linaria/core").LinariaClassName;
22
- };
23
20
  }> & import("../../../../components/Chip").ChipProps & import("react").RefAttributes<HTMLButtonElement>>;
24
21
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Chip/Chip.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;wGAA0B,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Chip/Chip.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;wGAA0B,CAAC"}
@@ -1,9 +0,0 @@
1
- import './base_3kce4h.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "bvcavwi";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Chip/variations/_pilled/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from '../../Chip.tokens';\n\nexport const base = css`\n &.${String(classes.pilled)} {\n border-radius: var(${tokens.pilledBorderRadius});\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAIhB;;;;"}
@@ -1 +0,0 @@
1
- .bvcavwi.chip-pilled{border-radius:var(--plasma-chip-pilled-border-radius);}
@@ -1,5 +0,0 @@
1
- import './base_3kce4h.css';
2
- var base = "bvcavwi";
3
-
4
- export { base };
5
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Chip/variations/_pilled/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from '../../Chip.tokens';\n\nexport const base = css`\n &.${String(classes.pilled)} {\n border-radius: var(${tokens.pilledBorderRadius});\n }\n`;\n"],"names":["base"],"mappings":"AAIO,IAAMA,IAAI,GAIhB;;;;"}
@@ -1 +0,0 @@
1
- .bvcavwi.chip-pilled{border-radius:var(--plasma-chip-pilled-border-radius);}
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Chip = /*#__PURE__*/require("../../Chip.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{border-radius:var(", ");}"], /*#__PURE__*/String(_Chip.classes.pilled), _Chip.tokens.pilledBorderRadius);
@@ -1,4 +0,0 @@
1
- {
2
- "type": "boolean",
3
- "tokens": ["--plasma-chip-pilled-border-radius"]
4
- }
@@ -1,3 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { classes, tokens } from '../../Chip.tokens';
3
- export var base = /*#__PURE__*/css(["&.", "{border-radius:var(", ");}"], /*#__PURE__*/String(classes.pilled), tokens.pilledBorderRadius);
@@ -1,4 +0,0 @@
1
- {
2
- "type": "boolean",
3
- "tokens": ["--plasma-chip-pilled-border-radius"]
4
- }
@@ -1,2 +0,0 @@
1
- export declare const base: import("@linaria/core").LinariaClassName;
2
- //# sourceMappingURL=base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chip/variations/_pilled/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,0CAIhB,CAAC"}