tycho-storybook 0.2.7 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlphaFilter/AlphaFilter.stories.d.ts +2 -2
- package/dist/AlphaFilter/AlphaFilter.stories.js +2 -0
- package/dist/AnchorLink/AnchorLink.stories.d.ts +5 -5
- package/dist/AudioMedia/AudioMedia.stories.d.ts +2 -2
- package/dist/AudioPlayer/AudioPlayer.stories.d.ts +1 -1
- package/dist/Avatar/Avatar.stories.d.ts +3 -3
- package/dist/Badge/Badge.stories.d.ts +3 -3
- package/dist/Button/Button.stories.d.ts +9 -9
- package/dist/DropdownButton/DropdownButton.stories.d.ts +8 -8
- package/dist/DropdownList/DropdownList.stories.d.ts +3 -3
- package/dist/DropdownList/DropdownList.stories.js +3 -1
- package/dist/DropdownMenu/DropdownMenu.stories.d.ts +1 -1
- package/dist/DropdownMenu/DropdownMenu.stories.js +1 -1
- package/dist/Dummy/Dummy.stories.d.ts +1 -1
- package/dist/FilterDropdown/FilterDropdown.stories.d.ts +4 -4
- package/dist/Icon/Icon.stories.d.ts +3 -3
- package/dist/IconButton/IconButton.stories.d.ts +9 -9
- package/dist/ImageUpload/ImageUpload.stories.d.ts +1 -1
- package/dist/Pill/Pill.stories.d.ts +6 -6
- package/dist/ProfileDropdown/ProfileDropdown.stories.d.ts +3 -3
- package/dist/SearchBar/SearchBar.stories.d.ts +3 -3
- package/dist/SearchBar/SearchBar.stories.js +2 -2
- package/dist/SearchList/SearchList.stories.d.ts +1 -1
- package/dist/SearchList/SearchList.stories.js +1 -1
- package/dist/SelectField/SelectField.stories.d.ts +9 -9
- package/dist/SelectField/SelectField.stories.js +1 -1
- package/dist/Spinner/Spinner.stories.d.ts +4 -4
- package/dist/StorybookUtils.d.ts +3 -3
- package/dist/StorybookUtils.js +2 -3
- package/dist/Tabs/Tabs.stories.d.ts +4 -4
- package/dist/Tabs/Tabs.stories.js +3 -3
- package/dist/Tag/Tag.stories.d.ts +7 -7
- package/dist/Tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/VerticalButton/VerticalButton.stories.d.ts +1 -1
- package/dist/styles/main.scss +45 -6
- package/package.json +13 -15
|
@@ -9,19 +9,19 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
title: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
subtitle: {
|
|
15
|
-
control:
|
|
15
|
+
control: "text";
|
|
16
16
|
};
|
|
17
17
|
className: {
|
|
18
|
-
control:
|
|
18
|
+
control: "text";
|
|
19
19
|
};
|
|
20
20
|
fixed: {
|
|
21
|
-
control:
|
|
21
|
+
control: "boolean";
|
|
22
22
|
};
|
|
23
23
|
active: {
|
|
24
|
-
control:
|
|
24
|
+
control: "boolean";
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -3,17 +3,17 @@ import Avatar from './Avatar';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof Avatar;
|
|
6
|
-
decorators:
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
10
10
|
tags: string[];
|
|
11
11
|
argTypes: {
|
|
12
12
|
src: {
|
|
13
|
-
control:
|
|
13
|
+
control: "text";
|
|
14
14
|
};
|
|
15
15
|
size: {
|
|
16
|
-
control:
|
|
16
|
+
control: "select";
|
|
17
17
|
options: readonly ["x-large", "large", "medium", "small", "x-small"];
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -9,14 +9,14 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
text: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
color: {
|
|
15
|
-
control:
|
|
15
|
+
control: "select";
|
|
16
16
|
options: readonly ["none", "black", "blue", "green", "red", "yellow", "violet"];
|
|
17
17
|
};
|
|
18
18
|
size: {
|
|
19
|
-
control:
|
|
19
|
+
control: "select";
|
|
20
20
|
options: readonly ["large", "medium", "small", "x-small"];
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -9,34 +9,34 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
text: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
color: {
|
|
15
|
-
control:
|
|
15
|
+
control: "select";
|
|
16
16
|
options: readonly ["accent", "danger", "white"];
|
|
17
17
|
};
|
|
18
18
|
size: {
|
|
19
|
-
control:
|
|
19
|
+
control: "select";
|
|
20
20
|
options: readonly ["large", "medium", "small", "x-small"];
|
|
21
21
|
};
|
|
22
22
|
mode: {
|
|
23
|
-
control:
|
|
23
|
+
control: "select";
|
|
24
24
|
options: readonly ["filled", "tonal", "outlined", "ghost"];
|
|
25
25
|
};
|
|
26
26
|
active: {
|
|
27
|
-
control:
|
|
27
|
+
control: "boolean";
|
|
28
28
|
};
|
|
29
29
|
disabled: {
|
|
30
|
-
control:
|
|
30
|
+
control: "boolean";
|
|
31
31
|
};
|
|
32
32
|
title: {
|
|
33
|
-
control:
|
|
33
|
+
control: "text";
|
|
34
34
|
};
|
|
35
35
|
icon: {
|
|
36
|
-
control:
|
|
36
|
+
control: "text";
|
|
37
37
|
};
|
|
38
38
|
iconPosition: {
|
|
39
|
-
control:
|
|
39
|
+
control: "select";
|
|
40
40
|
options: readonly ["left", "right"];
|
|
41
41
|
};
|
|
42
42
|
};
|
|
@@ -9,30 +9,30 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
text: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
color: {
|
|
15
|
-
control:
|
|
15
|
+
control: "select";
|
|
16
16
|
options: readonly ["primary", "secondary", "tertiary"];
|
|
17
17
|
};
|
|
18
18
|
size: {
|
|
19
|
-
control:
|
|
19
|
+
control: "select";
|
|
20
20
|
options: readonly ["large", "medium", "small"];
|
|
21
21
|
};
|
|
22
22
|
active: {
|
|
23
|
-
control:
|
|
23
|
+
control: "boolean";
|
|
24
24
|
};
|
|
25
25
|
disabled: {
|
|
26
|
-
control:
|
|
26
|
+
control: "boolean";
|
|
27
27
|
};
|
|
28
28
|
hideIcon: {
|
|
29
|
-
control:
|
|
29
|
+
control: "boolean";
|
|
30
30
|
};
|
|
31
31
|
hideDivider: {
|
|
32
|
-
control:
|
|
32
|
+
control: "boolean";
|
|
33
33
|
};
|
|
34
34
|
right: {
|
|
35
|
-
control:
|
|
35
|
+
control: "boolean";
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
};
|
|
@@ -3,17 +3,17 @@ import DropdownList from './DropdownList';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof DropdownList;
|
|
6
|
-
decorators:
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
10
10
|
tags: string[];
|
|
11
11
|
argTypes: {
|
|
12
12
|
list: {
|
|
13
|
-
control:
|
|
13
|
+
control: "object";
|
|
14
14
|
};
|
|
15
15
|
className: {
|
|
16
|
-
control:
|
|
16
|
+
control: "text";
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import DropdownList from './DropdownList';
|
|
2
2
|
import avatar from '../Avatar/avatar.png';
|
|
3
3
|
import StorybookUtils from '../StorybookUtils';
|
|
4
|
+
import { fn } from 'storybook/test';
|
|
4
5
|
const meta = {
|
|
5
6
|
title: 'Components/DropdownList',
|
|
6
7
|
component: DropdownList,
|
|
@@ -10,13 +11,14 @@ const meta = {
|
|
|
10
11
|
},
|
|
11
12
|
tags: ['autodocs'],
|
|
12
13
|
argTypes: {
|
|
13
|
-
list: { control: '
|
|
14
|
+
list: { control: 'object' },
|
|
14
15
|
className: { control: 'text' },
|
|
15
16
|
},
|
|
16
17
|
};
|
|
17
18
|
export default meta;
|
|
18
19
|
export const Primary = {
|
|
19
20
|
args: {
|
|
21
|
+
onSelect: fn(),
|
|
20
22
|
list: [
|
|
21
23
|
{ label: 'Label', value: 'Label', tag: 'Tag' },
|
|
22
24
|
{ label: 'Label', value: 'Label', icon: 'Star', sublabel: 'hist.' },
|
|
@@ -9,17 +9,17 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
text: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
size: {
|
|
15
|
-
control:
|
|
15
|
+
control: "select";
|
|
16
16
|
options: readonly ["large", "medium", "small"];
|
|
17
17
|
};
|
|
18
18
|
active: {
|
|
19
|
-
control:
|
|
19
|
+
control: "boolean";
|
|
20
20
|
};
|
|
21
21
|
disabled: {
|
|
22
|
-
control:
|
|
22
|
+
control: "boolean";
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
};
|
|
@@ -9,14 +9,14 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
name: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
size: {
|
|
15
|
-
control:
|
|
15
|
+
control: "select";
|
|
16
16
|
options: readonly ["x-large", "large", "medium", "small", "x-small"];
|
|
17
17
|
};
|
|
18
18
|
weight: {
|
|
19
|
-
control:
|
|
19
|
+
control: "select";
|
|
20
20
|
options: readonly ["regular", "heavy"];
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -3,38 +3,38 @@ import IconButton from './IconButton';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof IconButton;
|
|
6
|
-
decorators:
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
10
10
|
tags: string[];
|
|
11
11
|
argTypes: {
|
|
12
12
|
name: {
|
|
13
|
-
control:
|
|
13
|
+
control: "text";
|
|
14
14
|
};
|
|
15
15
|
color: {
|
|
16
|
-
control:
|
|
16
|
+
control: "select";
|
|
17
17
|
options: readonly ["accent", "danger", "white"];
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
20
|
-
control:
|
|
20
|
+
control: "select";
|
|
21
21
|
options: readonly ["large", "medium", "small", "x-small"];
|
|
22
22
|
};
|
|
23
23
|
mode: {
|
|
24
|
-
control:
|
|
24
|
+
control: "select";
|
|
25
25
|
options: readonly ["filled", "tonal", "outlined", "ghost"];
|
|
26
26
|
};
|
|
27
27
|
active: {
|
|
28
|
-
control:
|
|
28
|
+
control: "boolean";
|
|
29
29
|
};
|
|
30
30
|
disabled: {
|
|
31
|
-
control:
|
|
31
|
+
control: "boolean";
|
|
32
32
|
};
|
|
33
33
|
spin: {
|
|
34
|
-
control:
|
|
34
|
+
control: "boolean";
|
|
35
35
|
};
|
|
36
36
|
title: {
|
|
37
|
-
control:
|
|
37
|
+
control: "text";
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -9,23 +9,23 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
text: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
icon: {
|
|
15
|
-
control:
|
|
15
|
+
control: "text";
|
|
16
16
|
};
|
|
17
17
|
active: {
|
|
18
|
-
control:
|
|
18
|
+
control: "boolean";
|
|
19
19
|
};
|
|
20
20
|
className: {
|
|
21
|
-
control:
|
|
21
|
+
control: "text";
|
|
22
22
|
};
|
|
23
23
|
size: {
|
|
24
|
-
control:
|
|
24
|
+
control: "select";
|
|
25
25
|
options: readonly ["large", "medium", "small"];
|
|
26
26
|
};
|
|
27
27
|
type: {
|
|
28
|
-
control:
|
|
28
|
+
control: "select";
|
|
29
29
|
options: readonly ["outlined", "filled"];
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -3,18 +3,18 @@ import ProfileDropdown from './ProfileDropdown';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof ProfileDropdown;
|
|
6
|
-
decorators:
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
10
10
|
tags: string[];
|
|
11
11
|
argTypes: {
|
|
12
12
|
color: {
|
|
13
|
-
control:
|
|
13
|
+
control: "select";
|
|
14
14
|
options: readonly ["white", "blue"];
|
|
15
15
|
};
|
|
16
16
|
disabled: {
|
|
17
|
-
control:
|
|
17
|
+
control: "boolean";
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -9,14 +9,14 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
value: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
size: {
|
|
15
|
-
control:
|
|
15
|
+
control: "select";
|
|
16
16
|
options: readonly ["large", "medium", "small"];
|
|
17
17
|
};
|
|
18
18
|
disabled: {
|
|
19
|
-
control:
|
|
19
|
+
control: "boolean";
|
|
20
20
|
};
|
|
21
21
|
onChange: {
|
|
22
22
|
action: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import SearchBar, { SearchBarSizes } from './SearchBar';
|
|
3
|
-
import {
|
|
3
|
+
import { fn } from 'storybook/test';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
const meta = {
|
|
6
6
|
title: 'Components/SearchBar',
|
|
@@ -31,6 +31,6 @@ export const Primary = {
|
|
|
31
31
|
args: {
|
|
32
32
|
size: 'medium',
|
|
33
33
|
disabled: false,
|
|
34
|
-
onChange:
|
|
34
|
+
onChange: fn(),
|
|
35
35
|
},
|
|
36
36
|
};
|
|
@@ -8,31 +8,31 @@ declare const meta: {
|
|
|
8
8
|
tags: string[];
|
|
9
9
|
argTypes: {
|
|
10
10
|
label: {
|
|
11
|
-
control:
|
|
11
|
+
control: "text";
|
|
12
12
|
};
|
|
13
13
|
attr: {
|
|
14
|
-
control:
|
|
14
|
+
control: "text";
|
|
15
15
|
};
|
|
16
16
|
createdForm: {
|
|
17
|
-
control:
|
|
17
|
+
control: false;
|
|
18
18
|
};
|
|
19
19
|
className: {
|
|
20
|
-
control:
|
|
20
|
+
control: "text";
|
|
21
21
|
};
|
|
22
22
|
title: {
|
|
23
|
-
control:
|
|
23
|
+
control: "text";
|
|
24
24
|
};
|
|
25
25
|
placeholder: {
|
|
26
|
-
control:
|
|
26
|
+
control: "text";
|
|
27
27
|
};
|
|
28
28
|
disabled: {
|
|
29
|
-
control:
|
|
29
|
+
control: "boolean";
|
|
30
30
|
};
|
|
31
31
|
multiple: {
|
|
32
|
-
control:
|
|
32
|
+
control: "boolean";
|
|
33
33
|
};
|
|
34
34
|
options: {
|
|
35
|
-
control:
|
|
35
|
+
control: "object";
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
};
|
|
@@ -9,17 +9,17 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
size: {
|
|
12
|
-
control:
|
|
12
|
+
control: "select";
|
|
13
13
|
options: readonly ["large", "medium", "small", "x-small"];
|
|
14
14
|
};
|
|
15
15
|
title: {
|
|
16
|
-
control:
|
|
16
|
+
control: "text";
|
|
17
17
|
};
|
|
18
18
|
description: {
|
|
19
|
-
control:
|
|
19
|
+
control: "text";
|
|
20
20
|
};
|
|
21
21
|
titlePlacement: {
|
|
22
|
-
control:
|
|
22
|
+
control: "select";
|
|
23
23
|
options: readonly ["right", "bottom"];
|
|
24
24
|
};
|
|
25
25
|
};
|
package/dist/StorybookUtils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Decorator } from '@storybook/react';
|
|
2
2
|
declare const StorybookUtils: {
|
|
3
|
-
WithDynamicDocsBackground:
|
|
4
|
-
WithSecondaryDocsBackground:
|
|
3
|
+
WithDynamicDocsBackground: Decorator;
|
|
4
|
+
WithSecondaryDocsBackground: Decorator;
|
|
5
5
|
};
|
|
6
6
|
export default StorybookUtils;
|
package/dist/StorybookUtils.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useArgs } from '@storybook/preview-api';
|
|
3
2
|
import { useEffect } from 'react';
|
|
4
3
|
const secondaryBackgroundColor = '#185ABD';
|
|
5
4
|
// This is now a proper React component
|
|
6
|
-
const WithDynamicDocsBackground = (Story) => {
|
|
7
|
-
const
|
|
5
|
+
const WithDynamicDocsBackground = (Story, context) => {
|
|
6
|
+
const { color } = context.args || {};
|
|
8
7
|
useEffect(() => {
|
|
9
8
|
const backgroundColor = color === 'white' ? '#185ABD' : '#FFFFFF';
|
|
10
9
|
const docsStoryElement = document.querySelector('.docs-story');
|
|
@@ -3,23 +3,23 @@ import Tabs from './Tabs';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof Tabs;
|
|
6
|
-
decorators:
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
10
10
|
tags: string[];
|
|
11
11
|
argTypes: {
|
|
12
12
|
items: {
|
|
13
|
-
control:
|
|
13
|
+
control: "object";
|
|
14
14
|
};
|
|
15
15
|
className: {
|
|
16
|
-
control:
|
|
16
|
+
control: "text";
|
|
17
17
|
};
|
|
18
18
|
onSelect: {
|
|
19
19
|
action: string;
|
|
20
20
|
};
|
|
21
21
|
color: {
|
|
22
|
-
control:
|
|
22
|
+
control: "select";
|
|
23
23
|
options: readonly ["white", "blue"];
|
|
24
24
|
};
|
|
25
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fn } from 'storybook/test';
|
|
2
2
|
import Tabs, { TabsColors } from './Tabs';
|
|
3
3
|
import StorybookUtils from '../StorybookUtils';
|
|
4
4
|
const meta = {
|
|
@@ -10,7 +10,7 @@ const meta = {
|
|
|
10
10
|
},
|
|
11
11
|
tags: ['autodocs'],
|
|
12
12
|
argTypes: {
|
|
13
|
-
items: { control: '
|
|
13
|
+
items: { control: 'object' },
|
|
14
14
|
className: { control: 'text' },
|
|
15
15
|
onSelect: { action: 'onSelect' },
|
|
16
16
|
color: { control: 'select', options: TabsColors },
|
|
@@ -25,6 +25,6 @@ export const Primary = {
|
|
|
25
25
|
{ label: 'Tab C', value: 'tab_c', active: true },
|
|
26
26
|
{ label: 'Tab D', value: 'tab_d', disabled: true },
|
|
27
27
|
],
|
|
28
|
-
onSelect:
|
|
28
|
+
onSelect: fn(),
|
|
29
29
|
},
|
|
30
30
|
};
|
|
@@ -9,28 +9,28 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
text: {
|
|
12
|
-
control:
|
|
12
|
+
control: "text";
|
|
13
13
|
};
|
|
14
14
|
color: {
|
|
15
|
-
control:
|
|
15
|
+
control: "select";
|
|
16
16
|
options: readonly ["gray", "blue", "green", "red", "yellow", "violet"];
|
|
17
17
|
};
|
|
18
18
|
size: {
|
|
19
|
-
control:
|
|
19
|
+
control: "select";
|
|
20
20
|
options: readonly ["large", "medium", "small"];
|
|
21
21
|
};
|
|
22
22
|
type: {
|
|
23
|
-
control:
|
|
23
|
+
control: "select";
|
|
24
24
|
options: readonly ["low", "accent"];
|
|
25
25
|
};
|
|
26
26
|
disabled: {
|
|
27
|
-
control:
|
|
27
|
+
control: "boolean";
|
|
28
28
|
};
|
|
29
29
|
title: {
|
|
30
|
-
control:
|
|
30
|
+
control: "text";
|
|
31
31
|
};
|
|
32
32
|
className: {
|
|
33
|
-
control:
|
|
33
|
+
control: "text";
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
@@ -9,14 +9,14 @@ declare const meta: {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {
|
|
11
11
|
mode: {
|
|
12
|
-
control:
|
|
12
|
+
control: "select";
|
|
13
13
|
options: readonly ["simple", "confirmation", "delete"];
|
|
14
14
|
};
|
|
15
15
|
placement: {
|
|
16
|
-
control:
|
|
16
|
+
control: "text";
|
|
17
17
|
};
|
|
18
18
|
title: {
|
|
19
|
-
control:
|
|
19
|
+
control: "text";
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
};
|
package/dist/styles/main.scss
CHANGED
|
@@ -1,10 +1,49 @@
|
|
|
1
1
|
@use 'base/typographs' as *;
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
2
|
+
@use 'base/borders';
|
|
3
|
+
@use 'base/colors';
|
|
4
|
+
@use 'base/displays';
|
|
5
|
+
@use 'base/margins';
|
|
6
|
+
@use 'base/spacing';
|
|
7
|
+
@use 'base/tokens';
|
|
8
|
+
|
|
9
|
+
html,
|
|
10
|
+
body,
|
|
11
|
+
#root {
|
|
12
|
+
background-color: var(--color-background);
|
|
13
|
+
font-family:
|
|
14
|
+
'Nunito',
|
|
15
|
+
-apple-system,
|
|
16
|
+
BlinkMacSystemFont,
|
|
17
|
+
'Segoe UI',
|
|
18
|
+
Roboto,
|
|
19
|
+
'Helvetica Neue',
|
|
20
|
+
Arial,
|
|
21
|
+
sans-serif,
|
|
22
|
+
'Apple Color Emoji',
|
|
23
|
+
'Segoe UI Emoji',
|
|
24
|
+
'Segoe UI Symbol',
|
|
25
|
+
'Noto Color Emoji';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
::-webkit-scrollbar {
|
|
29
|
+
width: 8px;
|
|
30
|
+
height: 8px;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
::-webkit-scrollbar-thumb {
|
|
35
|
+
background-color: #888;
|
|
36
|
+
border-radius: var(--radius-full);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
::-webkit-scrollbar-track {
|
|
40
|
+
background: #f1f1f1;
|
|
41
|
+
border-radius: var(--radius-full);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
::-webkit-scrollbar-corner {
|
|
45
|
+
background: #fff;
|
|
46
|
+
}
|
|
8
47
|
|
|
9
48
|
.pointer {
|
|
10
49
|
cursor: pointer;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tycho-storybook",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
9
10
|
"import": "./dist/index.js",
|
|
10
|
-
"require": "./dist/index.js"
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
12
|
},
|
|
13
13
|
"./dist/styles/main": "./dist/styles/main.scss",
|
|
14
14
|
"./dist/styles/base/typographs": "./dist/styles/base/_typographs.scss"
|
|
@@ -31,29 +31,27 @@
|
|
|
31
31
|
"react-dom": ">=17 <19"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@storybook/addon-
|
|
35
|
-
"@storybook/addon-
|
|
36
|
-
"@storybook/
|
|
37
|
-
"@storybook/
|
|
38
|
-
"@storybook/
|
|
39
|
-
"@storybook/cli": "^8.4.7",
|
|
40
|
-
"@storybook/react": "^7.5.3",
|
|
41
|
-
"@storybook/react-vite": "^7.5.3",
|
|
34
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
35
|
+
"@storybook/addon-onboarding": "^10.1.11",
|
|
36
|
+
"@storybook/cli": "^10.1.11",
|
|
37
|
+
"@storybook/react": "^10.1.11",
|
|
38
|
+
"@storybook/react-vite": "^10.1.11",
|
|
42
39
|
"@storybook/testing-library": "^0.2.2",
|
|
43
40
|
"@types/react": "^18.2.0",
|
|
44
41
|
"@types/react-dom": "^18.2.0",
|
|
45
42
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
46
43
|
"@typescript-eslint/parser": "^5.62.0",
|
|
47
|
-
"@vitejs/plugin-react": "^
|
|
44
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
48
45
|
"eslint": "^8.57.1",
|
|
49
46
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
50
47
|
"eslint-plugin-react-refresh": "^0.4.1",
|
|
51
48
|
"eslint-plugin-storybook": "^0.11.2",
|
|
52
49
|
"react": "^18.2.0",
|
|
53
50
|
"react-dom": "^18.2.0",
|
|
54
|
-
"
|
|
51
|
+
"sass-embedded": "^1.97.2",
|
|
52
|
+
"storybook": "^10.1.11",
|
|
55
53
|
"typescript": "^5.2.2",
|
|
56
|
-
"vite": "^
|
|
54
|
+
"vite": "^7.0.0"
|
|
57
55
|
},
|
|
58
56
|
"scripts": {
|
|
59
57
|
"start": "storybook dev -p 6006",
|