@salutejs/plasma-new-hope 0.262.0-dev.0 → 0.263.0-canary.1762.13280637086.0
Sign up to get free protection for your applications and to get access to all the features.
- package/emotion/cjs/components/Checkbox/Checkbox.template-doc.mdx +6 -0
- package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +19 -12
- package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +19 -12
- package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/emotion/es/components/Checkbox/Checkbox.template-doc.mdx +6 -0
- package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +19 -12
- package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +19 -12
- package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/package.json +2 -2
- package/styled-components/cjs/components/Checkbox/Checkbox.template-doc.mdx +6 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +8 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +8 -1
- package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/styled-components/es/components/Checkbox/Checkbox.template-doc.mdx +6 -0
- package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +8 -1
- package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +8 -1
- package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts +1 -1
- package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts +1 -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 {
|
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:
|
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',
|