@salutejs/plasma-new-hope 0.262.0-dev.0 → 0.263.0-canary.1763.13280535388.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/emotion/cjs/components/Radiobox/Radiobox.template-doc.mdx +6 -0
  2. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +19 -12
  3. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +16 -5
  4. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +19 -12
  5. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +16 -5
  6. package/emotion/es/components/Radiobox/Radiobox.template-doc.mdx +6 -0
  7. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +19 -12
  8. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +16 -5
  9. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +19 -12
  10. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +16 -5
  11. package/package.json +2 -2
  12. package/styled-components/cjs/components/Radiobox/Radiobox.template-doc.mdx +6 -0
  13. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +8 -1
  14. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +16 -5
  15. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +8 -1
  16. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +16 -5
  17. package/styled-components/es/components/Radiobox/Radiobox.template-doc.mdx +6 -0
  18. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +8 -1
  19. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +16 -5
  20. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +8 -1
  21. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +16 -5
  22. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.config.d.ts +1 -1
  23. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.config.d.ts.map +1 -1
  24. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
  25. package/types/examples/plasma_web/components/Radiobox/Radiobox.config.d.ts +1 -1
  26. package/types/examples/plasma_web/components/Radiobox/Radiobox.config.d.ts.map +1 -1
  27. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts +1 -1
@@ -3,12 +3,10 @@ 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 { RadioGroup, radioboxConfig } from '../../../../components/Radiobox';
7
- import { mergeConfig } from '../../../../engines';
8
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
6
+ import { RadioGroup } from '../../../../components/Radiobox';
7
+ import { WithTheme } from '../../../_helpers';
9
8
  import { Link } from '../Link/Link';
10
9
 
11
- import { config } from './Radiobox.config';
12
10
  import { Radiobox } from './Radiobox';
13
11
 
14
12
  const onChange = action('onChange');
@@ -19,7 +17,20 @@ const meta: Meta<typeof Radiobox> = {
19
17
  title: 'b2c/Data Entry/Radiobox',
20
18
  decorators: [WithTheme],
21
19
  component: Radiobox,
22
- argTypes: argTypesFromConfig(mergeConfig(radioboxConfig, config)),
20
+ argTypes: {
21
+ view: {
22
+ options: ['accent'],
23
+ control: {
24
+ type: 'radio',
25
+ },
26
+ },
27
+ size: {
28
+ options: ['m', 's'],
29
+ control: {
30
+ type: 'radio',
31
+ },
32
+ },
33
+ },
23
34
  args: {
24
35
  view: 'accent',
25
36
  size: 'm',