@salutejs/plasma-new-hope 0.186.0-canary.1541.11711445984.0 → 0.186.0-canary.1546.11723696357.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/cjs/components/Badge/Badge.css +4 -4
  2. package/cjs/components/Badge/Badge.js +16 -4
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.tokens.js +10 -5
  5. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  6. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  7. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  8. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  9. package/cjs/components/Badge/variations/_size/base.js +1 -1
  10. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  11. package/{es/components/Badge/variations/_size/base_to0y5x.css → cjs/components/Badge/variations/_size/base_rn38n6.css} +1 -1
  12. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  13. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  14. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  15. package/cjs/components/Badge/variations/_view/base.js +1 -1
  16. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  17. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  18. package/cjs/components/TextField/TextField.js +0 -11
  19. package/cjs/components/TextField/TextField.js.map +1 -1
  20. package/cjs/index.css +4 -4
  21. package/emotion/cjs/components/Badge/Badge.js +21 -4
  22. package/emotion/cjs/components/Badge/Badge.tokens.js +10 -6
  23. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  24. package/emotion/cjs/components/Badge/variations/_size/base.js +2 -1
  25. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  26. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  27. package/emotion/cjs/components/TextField/TextField.js +1 -12
  28. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -14
  29. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
  30. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
  31. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  32. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
  33. package/emotion/es/components/Badge/Badge.js +23 -5
  34. package/emotion/es/components/Badge/Badge.tokens.js +9 -5
  35. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  36. package/emotion/es/components/Badge/variations/_size/base.js +3 -2
  37. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  38. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  39. package/emotion/es/components/TextField/TextField.js +1 -12
  40. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -14
  41. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
  42. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
  43. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  44. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
  45. package/es/components/Badge/Badge.css +4 -4
  46. package/es/components/Badge/Badge.js +19 -7
  47. package/es/components/Badge/Badge.js.map +1 -1
  48. package/es/components/Badge/Badge.tokens.js +10 -6
  49. package/es/components/Badge/Badge.tokens.js.map +1 -1
  50. package/es/components/Badge/variations/_clear/base.js +1 -1
  51. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  52. package/es/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  53. package/es/components/Badge/variations/_size/base.js +1 -1
  54. package/es/components/Badge/variations/_size/base.js.map +1 -1
  55. package/{cjs/components/Badge/variations/_size/base_to0y5x.css → es/components/Badge/variations/_size/base_rn38n6.css} +1 -1
  56. package/es/components/Badge/variations/_transparent/base.js +1 -1
  57. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  58. package/es/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  59. package/es/components/Badge/variations/_view/base.js +1 -1
  60. package/es/components/Badge/variations/_view/base.js.map +1 -1
  61. package/es/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  62. package/es/components/TextField/TextField.js +0 -11
  63. package/es/components/TextField/TextField.js.map +1 -1
  64. package/es/index.css +4 -4
  65. package/package.json +2 -2
  66. package/styled-components/cjs/components/Badge/Badge.js +21 -4
  67. package/styled-components/cjs/components/Badge/Badge.tokens.js +10 -6
  68. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  69. package/styled-components/cjs/components/Badge/variations/_size/base.js +2 -1
  70. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  71. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  72. package/styled-components/cjs/components/TextField/TextField.js +0 -11
  73. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  74. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
  75. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
  76. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  77. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
  78. package/styled-components/es/components/Badge/Badge.js +23 -5
  79. package/styled-components/es/components/Badge/Badge.tokens.js +9 -5
  80. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  81. package/styled-components/es/components/Badge/variations/_size/base.js +3 -2
  82. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  83. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  84. package/styled-components/es/components/TextField/TextField.js +0 -11
  85. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  86. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
  87. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
  88. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  89. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
  90. package/types/components/Badge/Badge.d.ts.map +1 -1
  91. package/types/components/Badge/Badge.tokens.d.ts +8 -4
  92. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  93. package/types/components/Badge/Badge.types.d.ts +18 -5
  94. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  95. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  96. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  97. package/types/components/TextField/TextField.d.ts.map +1 -1
  98. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  99. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +58 -4
  100. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  101. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  102. package/types/examples/plasma_web/components/Badge/Badge.d.ts +58 -4
  103. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  104. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  105. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  106. package/cjs/components/Badge/variations/_view/base_qlxank.css +0 -1
  107. package/cjs/utils/syntheticEvent.js +0 -56
  108. package/cjs/utils/syntheticEvent.js.map +0 -1
  109. package/emotion/cjs/utils/syntheticEvent.js +0 -54
  110. package/emotion/es/utils/syntheticEvent.js +0 -48
  111. package/es/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  112. package/es/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  113. package/es/components/Badge/variations/_view/base_qlxank.css +0 -1
  114. package/es/utils/syntheticEvent.js +0 -51
  115. package/es/utils/syntheticEvent.js.map +0 -1
  116. package/styled-components/cjs/utils/syntheticEvent.js +0 -54
  117. package/styled-components/es/utils/syntheticEvent.js +0 -48
  118. package/types/utils/syntheticEvent.d.ts +0 -4
  119. package/types/utils/syntheticEvent.d.ts.map +0 -1
@@ -31,6 +31,10 @@ const meta: Meta<typeof Badge> = {
31
31
  control: { type: 'boolean' },
32
32
  if: { arg: 'clear', truthy: false },
33
33
  },
34
+ text: {
35
+ control: { type: 'text' },
36
+ if: { arg: 'enableText', truthy: true },
37
+ },
34
38
  ...disableProps(['contentLeft', 'contentRight']),
35
39
  },
36
40
  };
@@ -40,6 +44,7 @@ export default meta;
40
44
  type StoryProps = ComponentProps<typeof Badge> & {
41
45
  enableContentLeft: boolean;
42
46
  enableContentRight: boolean;
47
+ enableText: boolean;
43
48
  };
44
49
  type Story = StoryObj<StoryProps>;
45
50
 
@@ -60,13 +65,14 @@ export const Default: Story = {
60
65
  },
61
66
  enableContentRight: {
62
67
  control: { type: 'boolean' },
63
- if: { arg: 'enableContentLeft', truthy: false },
68
+ if: { arg: 'enableText', truthy: true },
64
69
  },
65
70
  },
66
71
  args: {
67
- text: 'Hello',
68
72
  view: 'default',
69
73
  size: 'm',
74
+ enableText: true,
75
+ text: 'Hello',
70
76
  enableContentLeft: false,
71
77
  enableContentRight: false,
72
78
  clear: false,
@@ -171,7 +171,6 @@ const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: Sto
171
171
 
172
172
  return (
173
173
  <div style={{ display: 'flex', flexDirection: 'column', gap: '2rem', width: '70%', margin: '0 auto' }}>
174
- <div>{text}</div>
175
174
  <TextField
176
175
  {...rest}
177
176
  enumerationType="plain"