@salutejs/plasma-new-hope 0.261.0-canary.1760.13180340956.0 → 0.261.0-canary.1762.13182430055.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/cjs/components/Drawer/Drawer.css +5 -5
  2. package/cjs/components/Drawer/Drawer.js +1 -5
  3. package/cjs/components/Drawer/Drawer.js.map +1 -1
  4. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
  5. package/cjs/components/Panel/Panel.css +2 -2
  6. package/cjs/components/Panel/Panel.js +6 -7
  7. package/cjs/components/Panel/Panel.js.map +1 -1
  8. package/cjs/components/Panel/Panel.styles.js +2 -12
  9. package/cjs/components/Panel/Panel.styles.js.map +1 -1
  10. package/cjs/components/Panel/Panel.styles_2oh0yk.css +1 -0
  11. package/cjs/components/Panel/Panel.tokens.js +0 -15
  12. package/cjs/components/Panel/Panel.tokens.js.map +1 -1
  13. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
  14. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
  15. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  16. package/{es/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css → cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css} +1 -1
  17. package/cjs/components/Panel/variations/_view/base.js +1 -1
  18. package/cjs/components/Panel/variations/_view/base.js.map +1 -1
  19. package/cjs/components/Panel/variations/_view/base_10gjs6e.css +1 -0
  20. package/cjs/index.css +5 -5
  21. package/emotion/cjs/components/Checkbox/Checkbox.template-doc.mdx +4 -0
  22. package/emotion/cjs/components/Drawer/Drawer.js +1 -5
  23. package/emotion/cjs/components/Panel/Panel.js +6 -7
  24. package/emotion/cjs/components/Panel/Panel.styles.js +1 -4
  25. package/emotion/cjs/components/Panel/Panel.tokens.js +1 -6
  26. package/emotion/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +4 -4
  27. package/emotion/cjs/components/Panel/variations/_view/base.js +1 -1
  28. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +19 -12
  29. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
  30. package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
  31. package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
  32. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +19 -12
  33. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
  34. package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
  35. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  36. package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
  37. package/emotion/es/components/Checkbox/Checkbox.template-doc.mdx +4 -0
  38. package/emotion/es/components/Drawer/Drawer.js +1 -5
  39. package/emotion/es/components/Panel/Panel.js +7 -8
  40. package/emotion/es/components/Panel/Panel.styles.js +1 -4
  41. package/emotion/es/components/Panel/Panel.tokens.js +0 -5
  42. package/emotion/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +5 -5
  43. package/emotion/es/components/Panel/variations/_view/base.js +2 -2
  44. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +19 -12
  45. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
  46. package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
  47. package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
  48. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +19 -12
  49. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
  50. package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
  51. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  52. package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
  53. package/es/components/Drawer/Drawer.css +5 -5
  54. package/es/components/Drawer/Drawer.js +1 -5
  55. package/es/components/Drawer/Drawer.js.map +1 -1
  56. package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
  57. package/es/components/Panel/Panel.css +2 -2
  58. package/es/components/Panel/Panel.js +8 -9
  59. package/es/components/Panel/Panel.js.map +1 -1
  60. package/es/components/Panel/Panel.styles.js +2 -12
  61. package/es/components/Panel/Panel.styles.js.map +1 -1
  62. package/es/components/Panel/Panel.styles_2oh0yk.css +1 -0
  63. package/es/components/Panel/Panel.tokens.js +1 -14
  64. package/es/components/Panel/Panel.tokens.js.map +1 -1
  65. package/es/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
  66. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
  67. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  68. package/{cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css → es/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css} +1 -1
  69. package/es/components/Panel/variations/_view/base.js +1 -1
  70. package/es/components/Panel/variations/_view/base.js.map +1 -1
  71. package/es/components/Panel/variations/_view/base_10gjs6e.css +1 -0
  72. package/es/index.css +5 -5
  73. package/package.json +2 -2
  74. package/styled-components/cjs/components/Checkbox/Checkbox.template-doc.mdx +4 -0
  75. package/styled-components/cjs/components/Drawer/Drawer.js +1 -5
  76. package/styled-components/cjs/components/Panel/Panel.js +6 -7
  77. package/styled-components/cjs/components/Panel/Panel.styles.js +1 -4
  78. package/styled-components/cjs/components/Panel/Panel.tokens.js +1 -6
  79. package/styled-components/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -1
  80. package/styled-components/cjs/components/Panel/variations/_view/base.js +1 -1
  81. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +8 -1
  82. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
  83. package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
  84. package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
  85. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +8 -1
  86. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
  87. package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
  88. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  89. package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
  90. package/styled-components/es/components/Checkbox/Checkbox.template-doc.mdx +4 -0
  91. package/styled-components/es/components/Drawer/Drawer.js +1 -5
  92. package/styled-components/es/components/Panel/Panel.js +7 -8
  93. package/styled-components/es/components/Panel/Panel.styles.js +1 -4
  94. package/styled-components/es/components/Panel/Panel.tokens.js +0 -5
  95. package/styled-components/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -2
  96. package/styled-components/es/components/Panel/variations/_view/base.js +2 -2
  97. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +8 -1
  98. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
  99. package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
  100. package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
  101. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +8 -1
  102. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
  103. package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
  104. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  105. package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
  106. package/types/components/Drawer/Drawer.d.ts +0 -4
  107. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  108. package/types/components/Drawer/Drawer.types.d.ts +0 -8
  109. package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
  110. package/types/components/Panel/Panel.d.ts.map +1 -1
  111. package/types/components/Panel/Panel.styles.d.ts +1 -3
  112. package/types/components/Panel/Panel.styles.d.ts.map +1 -1
  113. package/types/components/Panel/Panel.tokens.d.ts +0 -5
  114. package/types/components/Panel/Panel.tokens.d.ts.map +1 -1
  115. package/types/components/Panel/Panel.types.d.ts +0 -8
  116. package/types/components/Panel/Panel.types.d.ts.map +1 -1
  117. package/types/examples/plasma_b2c/components/Avatar/Avatar.d.ts +4 -4
  118. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts +1 -1
  119. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  120. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts +1 -1
  121. package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts +0 -2
  122. package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts.map +1 -1
  123. package/types/examples/plasma_web/components/Avatar/Avatar.d.ts +4 -4
  124. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts +1 -1
  125. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  126. package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts +1 -1
  127. package/types/examples/plasma_web/components/Drawer/Drawer.d.ts +0 -2
  128. package/types/examples/plasma_web/components/Drawer/Drawer.d.ts.map +1 -1
  129. package/cjs/components/Panel/Panel.styles_1g0gq8z.css +0 -1
  130. package/cjs/components/Panel/variations/_view/base_lwq4bq.css +0 -1
  131. package/es/components/Panel/Panel.styles_1g0gq8z.css +0 -1
  132. package/es/components/Panel/variations/_view/base_lwq4bq.css +0 -1
@@ -3,12 +3,9 @@ import type { ComponentProps } from 'react';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { action } from '@storybook/addon-actions';
5
5
 
6
- import { checkboxConfig } from '../../../../components/Checkbox';
7
- import { mergeConfig } from '../../../../engines';
8
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
6
+ import { WithTheme } from '../../../_helpers';
9
7
  import { Link } from '../Link/Link';
10
8
 
11
- import { config } from './Checkbox.config';
12
9
  import { Checkbox } from './Checkbox';
13
10
 
14
11
  const onChange = action('onChange');
@@ -19,7 +16,20 @@ const meta: Meta<typeof Checkbox> = {
19
16
  title: 'b2c/Data Entry/Checkbox',
20
17
  decorators: [WithTheme],
21
18
  component: Checkbox,
22
- argTypes: argTypesFromConfig(mergeConfig(checkboxConfig, config)),
19
+ argTypes: {
20
+ view: {
21
+ options: ['accent'],
22
+ control: {
23
+ type: 'radio',
24
+ },
25
+ },
26
+ size: {
27
+ options: ['m', 's'],
28
+ control: {
29
+ type: 'radio',
30
+ },
31
+ },
32
+ },
23
33
  args: {
24
34
  view: 'accent',
25
35
  size: 'm',
@@ -14,7 +14,7 @@ import type { ClosePlacementType } from '../../../../components/Drawer';
14
14
  import { Drawer, DrawerContent, DrawerFooter, DrawerHeader } from './Drawer';
15
15
 
16
16
  export default {
17
- title: 'b2c/Overlay/Drawer',
17
+ title: 'b2c/Overlay/Divider',
18
18
  decorators: [WithTheme],
19
19
  argTypes: {
20
20
  placement: {
@@ -85,16 +85,6 @@ export default {
85
85
  type: 'select',
86
86
  },
87
87
  },
88
- customBackgroundColor: {
89
- control: {
90
- type: 'color',
91
- },
92
- },
93
- customContentBackgroundColor: {
94
- control: {
95
- type: 'color',
96
- },
97
- },
98
88
  },
99
89
  } as Meta;
100
90
 
@@ -47,16 +47,6 @@ export default {
47
47
  },
48
48
  table: { defaultValue: { summary: 'right' } },
49
49
  },
50
- customBackgroundColor: {
51
- control: {
52
- type: 'color',
53
- },
54
- },
55
- customContentBackgroundColor: {
56
- control: {
57
- type: 'color',
58
- },
59
- },
60
50
  },
61
51
  } as Meta;
62
52