@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.
- package/emotion/cjs/components/Radiobox/Radiobox.template-doc.mdx +6 -0
- package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +19 -12
- package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +16 -5
- package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +19 -12
- package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +16 -5
- package/emotion/es/components/Radiobox/Radiobox.template-doc.mdx +6 -0
- package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +19 -12
- package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +16 -5
- package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +19 -12
- package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +16 -5
- package/package.json +2 -2
- package/styled-components/cjs/components/Radiobox/Radiobox.template-doc.mdx +6 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +8 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +16 -5
- package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +8 -1
- package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +16 -5
- package/styled-components/es/components/Radiobox/Radiobox.template-doc.mdx +6 -0
- package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +8 -1
- package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +16 -5
- package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +8 -1
- package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +16 -5
- package/types/examples/plasma_b2c/components/Radiobox/Radiobox.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Radiobox/Radiobox.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
- package/types/examples/plasma_web/components/Radiobox/Radiobox.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Radiobox/Radiobox.config.d.ts.map +1 -1
- 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
|
7
|
-
import {
|
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: 'web/Data Entry/Radiobox',
|
20
18
|
decorators: [WithTheme],
|
21
19
|
component: Radiobox,
|
22
|
-
argTypes:
|
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',
|
@@ -9,6 +9,12 @@ import { PropsTable, Description } from '@site/src/components';
|
|
9
9
|
<Description name="Radiobox" />
|
10
10
|
<PropsTable name="Radiobox" exclude={['css', 'focused']} />
|
11
11
|
|
12
|
+
:::caution Устаревшие значения для свойства view
|
13
|
+
Актуальным значением для свойства `view` - является `accent`.
|
14
|
+
|
15
|
+
Все остальные значения `deprecated` и будут удалены в ближайшее время!
|
16
|
+
:::
|
17
|
+
|
12
18
|
## Использование
|
13
19
|
Компонент `Radiobox` может содержать лейбл и описание.
|
14
20
|
|