@salutejs/plasma-new-hope 0.175.0-canary.1500.11549138907.0 → 0.175.0-canary.1504.11549657359.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Badge/Badge.css +0 -2
- package/cjs/components/Badge/Badge.js +4 -17
- package/cjs/components/Badge/Badge.js.map +1 -1
- package/cjs/components/Badge/Badge.tokens.js +1 -2
- package/cjs/components/Badge/Badge.tokens.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +13 -13
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
- package/cjs/components/Select/Select.css +13 -13
- package/cjs/components/Select/Select.styles.js +1 -1
- package/cjs/components/Select/Select.styles.js.map +1 -1
- package/cjs/components/Select/Select.styles_768h42.css +5 -0
- package/cjs/components/Select/Select.tokens.js +16 -4
- package/cjs/components/Select/Select.tokens.js.map +1 -1
- package/cjs/components/Select/ui/Inner/Inner.css +13 -13
- package/cjs/components/Select/ui/Inner/ui/Item/Item.css +13 -13
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_8oe5oy.css} +2 -2
- package/cjs/components/Tabs/tokens.js +1 -2
- package/cjs/components/Tabs/tokens.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -7
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
- package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -7
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -14
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +5 -0
- package/cjs/index.css +23 -29
- package/cjs/utils/index.js.map +1 -1
- package/emotion/cjs/components/Badge/Badge.js +4 -22
- package/emotion/cjs/components/Badge/Badge.tokens.js +1 -2
- package/emotion/cjs/components/Select/Select.styles.js +5 -5
- package/emotion/cjs/components/Select/Select.tokens.js +16 -4
- package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
- package/emotion/cjs/components/Tabs/tokens.js +1 -2
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -19
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -19
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +17 -17
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +16 -49
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
- package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +17 -17
- package/emotion/es/components/Badge/Badge.js +4 -23
- package/emotion/es/components/Badge/Badge.tokens.js +1 -2
- package/emotion/es/components/Select/Select.styles.js +5 -5
- package/emotion/es/components/Select/Select.tokens.js +16 -4
- package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
- package/emotion/es/components/Tabs/tokens.js +1 -2
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -20
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -20
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
- package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +17 -17
- package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +16 -49
- package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
- package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
- package/emotion/es/examples/plasma_web/components/Select/Select.config.js +17 -17
- package/es/components/Badge/Badge.css +0 -2
- package/es/components/Badge/Badge.js +5 -18
- package/es/components/Badge/Badge.js.map +1 -1
- package/es/components/Badge/Badge.tokens.js +1 -2
- package/es/components/Badge/Badge.tokens.js.map +1 -1
- package/es/components/Pagination/Pagination.css +13 -13
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
- package/es/components/Select/Select.css +13 -13
- package/es/components/Select/Select.styles.js +1 -1
- package/es/components/Select/Select.styles.js.map +1 -1
- package/es/components/Select/Select.styles_768h42.css +5 -0
- package/es/components/Select/Select.tokens.js +16 -4
- package/es/components/Select/Select.tokens.js.map +1 -1
- package/es/components/Select/ui/Inner/Inner.css +13 -13
- package/es/components/Select/ui/Inner/ui/Item/Item.css +13 -13
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_8oe5oy.css} +2 -2
- package/es/components/Tabs/tokens.js +1 -2
- package/es/components/Tabs/tokens.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -7
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +4 -15
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
- package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -7
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +4 -15
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +5 -0
- package/es/index.css +23 -29
- package/es/utils/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Badge/Badge.js +4 -22
- package/styled-components/cjs/components/Badge/Badge.tokens.js +1 -2
- package/styled-components/cjs/components/Select/Select.styles.js +2 -2
- package/styled-components/cjs/components/Select/Select.tokens.js +16 -4
- package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +2 -2
- package/styled-components/cjs/components/Tabs/tokens.js +1 -2
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -19
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -19
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +14 -14
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +16 -49
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +14 -14
- package/styled-components/es/components/Badge/Badge.js +4 -23
- package/styled-components/es/components/Badge/Badge.tokens.js +1 -2
- package/styled-components/es/components/Select/Select.styles.js +2 -2
- package/styled-components/es/components/Select/Select.tokens.js +16 -4
- package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +2 -2
- package/styled-components/es/components/Tabs/tokens.js +1 -2
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -20
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -20
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +14 -14
- package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +16 -49
- package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
- package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
- package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +14 -14
- package/types/components/Badge/Badge.d.ts +2 -10
- package/types/components/Badge/Badge.d.ts.map +1 -1
- package/types/components/Badge/Badge.tokens.d.ts +0 -1
- package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
- package/types/components/Badge/Badge.types.d.ts +0 -5
- package/types/components/Badge/Badge.types.d.ts.map +1 -1
- package/types/components/Select/Select.tokens.d.ts +15 -3
- package/types/components/Select/Select.tokens.d.ts.map +1 -1
- package/types/components/Tabs/TabItem.types.d.ts +0 -5
- package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
- package/types/components/Tabs/tokens.d.ts +0 -1
- package/types/components/Tabs/tokens.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +2 -9
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +2 -9
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +0 -3
- package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +0 -6
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +0 -6
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
- package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
- package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.d.ts +0 -3
- package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
- package/types/utils/index.d.ts +1 -1
- package/types/utils/index.d.ts.map +1 -1
- package/cjs/components/Badge/variations/_truncate/base.js +0 -9
- package/cjs/components/Badge/variations/_truncate/base.js.map +0 -1
- package/cjs/components/Badge/variations/_truncate/base_nf9u2h.css +0 -1
- package/cjs/components/Select/Select.styles_1nzals0.css +0 -5
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -9
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +0 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +0 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +0 -5
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -9
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +0 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +0 -1
- package/emotion/cjs/components/Badge/variations/_truncate/base.js +0 -10
- package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +0 -1
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -10
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -10
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
- package/emotion/es/components/Badge/variations/_truncate/base.js +0 -4
- package/emotion/es/components/Badge/variations/_truncate/tokens.json +0 -1
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -4
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -4
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
- package/es/components/Badge/variations/_truncate/base.js +0 -5
- package/es/components/Badge/variations/_truncate/base.js.map +0 -1
- package/es/components/Badge/variations/_truncate/base_nf9u2h.css +0 -1
- package/es/components/Select/Select.styles_1nzals0.css +0 -5
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -5
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +0 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +0 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +0 -5
- package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -5
- package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +0 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +0 -1
- package/styled-components/cjs/components/Badge/variations/_truncate/base.js +0 -10
- package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +0 -1
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -10
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -10
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
- package/styled-components/es/components/Badge/variations/_truncate/base.js +0 -4
- package/styled-components/es/components/Badge/variations/_truncate/tokens.json +0 -1
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -4
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -4
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
- package/types/components/Badge/variations/_truncate/base.d.ts +0 -2
- package/types/components/Badge/variations/_truncate/base.d.ts.map +0 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts +0 -2
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +0 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +0 -2
- package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +0 -1
@@ -29,7 +29,6 @@ type CustomStoryTabsProps = {
|
|
29
29
|
|
30
30
|
const contentLeftOptions = ['none', 'icon'];
|
31
31
|
const contentRightOptions = ['none', 'counter', 'icon'];
|
32
|
-
const labels = ['Label', 'Middle label', 'Very long label'];
|
33
32
|
|
34
33
|
const getContentLeft = (contentLeftOption: string, size: Size) => {
|
35
34
|
const iconSize = size === 'xs' ? 'xs' : 's';
|
@@ -58,9 +57,6 @@ const meta: Meta<StoryTabsProps> = {
|
|
58
57
|
title: 'plasma_b2c/Tabs',
|
59
58
|
component: Tabs,
|
60
59
|
decorators: [WithTheme],
|
61
|
-
args: {
|
62
|
-
maxWidth: '',
|
63
|
-
},
|
64
60
|
argTypes: {
|
65
61
|
...disableProps([
|
66
62
|
'orientation',
|
@@ -80,12 +76,6 @@ const meta: Meta<StoryTabsProps> = {
|
|
80
76
|
},
|
81
77
|
if: { arg: 'helperText', eq: '' },
|
82
78
|
},
|
83
|
-
maxWidth: {
|
84
|
-
control: {
|
85
|
-
type: 'text',
|
86
|
-
},
|
87
|
-
if: { arg: 'stretch', truthy: false },
|
88
|
-
},
|
89
79
|
},
|
90
80
|
};
|
91
81
|
|
@@ -100,14 +90,13 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
|
|
100
90
|
contentRight: contentRightOption,
|
101
91
|
hasDivider,
|
102
92
|
stretch,
|
103
|
-
maxWidth,
|
104
93
|
helperText,
|
105
94
|
} = props;
|
106
95
|
const items = Array(itemQuantity).fill(0);
|
107
96
|
const [index, setIndex] = useState(0);
|
108
97
|
|
109
98
|
return (
|
110
|
-
<Tabs
|
99
|
+
<Tabs view={hasDivider ? 'divider' : 'clear'} stretch={stretch} disabled={disabled} size={size}>
|
111
100
|
{items.map((_, i) => {
|
112
101
|
if (helperText !== '') {
|
113
102
|
return (
|
@@ -121,9 +110,8 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
|
|
121
110
|
value={helperText}
|
122
111
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
123
112
|
size={size as Size}
|
124
|
-
maxWidth={maxWidth}
|
125
113
|
>
|
126
|
-
{
|
114
|
+
{`Label${i + 1}`}
|
127
115
|
</TabItem>
|
128
116
|
);
|
129
117
|
}
|
@@ -139,9 +127,8 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
|
|
139
127
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
140
128
|
contentRight={getContentRight(contentRightOption, size as Size)}
|
141
129
|
size={size as Size}
|
142
|
-
maxWidth={maxWidth}
|
143
130
|
>
|
144
|
-
{
|
131
|
+
{`Label${i + 1}`}
|
145
132
|
</TabItem>
|
146
133
|
);
|
147
134
|
})}
|
@@ -160,7 +147,6 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
|
|
160
147
|
hasDivider,
|
161
148
|
helperText,
|
162
149
|
width,
|
163
|
-
maxWidth,
|
164
150
|
} = props;
|
165
151
|
const items = Array(itemQuantity).fill(0);
|
166
152
|
const [index, setIndex] = useState(0);
|
@@ -180,9 +166,8 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
|
|
180
166
|
value={helperText}
|
181
167
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
182
168
|
size={size as Size}
|
183
|
-
maxWidth={maxWidth}
|
184
169
|
>
|
185
|
-
{
|
170
|
+
{`Label${i + 1}`}
|
186
171
|
</TabItem>
|
187
172
|
);
|
188
173
|
}
|
@@ -198,9 +183,8 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
|
|
198
183
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
199
184
|
contentRight={getContentRight(contentRightOption, size as Size)}
|
200
185
|
size={size as Size}
|
201
|
-
maxWidth={maxWidth}
|
202
186
|
>
|
203
|
-
{
|
187
|
+
{`Label${i + 1}`}
|
204
188
|
</TabItem>
|
205
189
|
);
|
206
190
|
})}
|
@@ -218,7 +202,6 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
|
|
218
202
|
contentRight: contentRightOption,
|
219
203
|
hasDivider,
|
220
204
|
helperText,
|
221
|
-
maxWidth,
|
222
205
|
} = props;
|
223
206
|
const maxItemQuantity = 3;
|
224
207
|
const items = Array(itemQuantity).fill(0);
|
@@ -251,9 +234,8 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
|
|
251
234
|
value={helperText}
|
252
235
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
253
236
|
size={size as Size}
|
254
|
-
maxWidth={maxWidth}
|
255
237
|
>
|
256
|
-
{
|
238
|
+
{`Label${i + 1}`}
|
257
239
|
</TabItem>
|
258
240
|
);
|
259
241
|
}
|
@@ -269,9 +251,8 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
|
|
269
251
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
270
252
|
contentRight={getContentRight(contentRightOption, size as Size)}
|
271
253
|
size={size as Size}
|
272
|
-
maxWidth={maxWidth}
|
273
254
|
>
|
274
|
-
{
|
255
|
+
{`Label${i + 1}`}
|
275
256
|
</TabItem>
|
276
257
|
);
|
277
258
|
})}
|
@@ -288,7 +269,6 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
|
|
288
269
|
tabIndex={!disabled ? 0 : -1}
|
289
270
|
disabled={disabled}
|
290
271
|
size={size as Size}
|
291
|
-
maxWidth="auto"
|
292
272
|
>
|
293
273
|
ShowAll
|
294
274
|
</TabItem>
|
@@ -305,7 +285,7 @@ export const HorizontalTabs: StoryObj<HorizontalStoryTabsProps> = {
|
|
305
285
|
disabled: false,
|
306
286
|
hasDivider: true,
|
307
287
|
helperText: '',
|
308
|
-
itemQuantity:
|
288
|
+
itemQuantity: 8,
|
309
289
|
stretch: false,
|
310
290
|
width: '15rem',
|
311
291
|
},
|
@@ -363,7 +343,6 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
|
|
363
343
|
contentRight: contentRightOption,
|
364
344
|
hasDivider,
|
365
345
|
helperText,
|
366
|
-
maxWidth,
|
367
346
|
} = props;
|
368
347
|
const items = Array(itemQuantity).fill(0);
|
369
348
|
const [index, setIndex] = useState(0);
|
@@ -384,9 +363,8 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
|
|
384
363
|
value={helperText}
|
385
364
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
386
365
|
size={size as Size}
|
387
|
-
maxWidth={maxWidth}
|
388
366
|
>
|
389
|
-
{
|
367
|
+
{`Label${i + 1}`}
|
390
368
|
</TabItem>
|
391
369
|
);
|
392
370
|
}
|
@@ -403,9 +381,8 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
|
|
403
381
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
404
382
|
contentRight={getContentRight(contentRightOption, size as Size)}
|
405
383
|
size={size as Size}
|
406
|
-
maxWidth={maxWidth}
|
407
384
|
>
|
408
|
-
{
|
385
|
+
{`Label${i + 1}`}
|
409
386
|
</TabItem>
|
410
387
|
);
|
411
388
|
})}
|
@@ -424,7 +401,6 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
|
|
424
401
|
hasDivider,
|
425
402
|
helperText,
|
426
403
|
height,
|
427
|
-
maxWidth,
|
428
404
|
} = props;
|
429
405
|
const items = Array(itemQuantity).fill(0);
|
430
406
|
const [index, setIndex] = useState(0);
|
@@ -452,9 +428,8 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
|
|
452
428
|
value={helperText}
|
453
429
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
454
430
|
size={size as Size}
|
455
|
-
maxWidth={maxWidth}
|
456
431
|
>
|
457
|
-
{
|
432
|
+
{`Label${i + 1}`}
|
458
433
|
</TabItem>
|
459
434
|
);
|
460
435
|
}
|
@@ -471,9 +446,8 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
|
|
471
446
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
472
447
|
contentRight={getContentRight(contentRightOption, size as Size)}
|
473
448
|
size={size as Size}
|
474
|
-
maxWidth={maxWidth}
|
475
449
|
>
|
476
|
-
{
|
450
|
+
{`Label${i + 1}`}
|
477
451
|
</TabItem>
|
478
452
|
);
|
479
453
|
})}
|
@@ -491,7 +465,6 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
|
|
491
465
|
contentRight: contentRightOption,
|
492
466
|
hasDivider,
|
493
467
|
helperText,
|
494
|
-
maxWidth,
|
495
468
|
} = props;
|
496
469
|
const maxItemQuantity = 3;
|
497
470
|
const items = Array(itemQuantity).fill(0);
|
@@ -525,9 +498,8 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
|
|
525
498
|
value={helperText}
|
526
499
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
527
500
|
size={size as Size}
|
528
|
-
maxWidth={maxWidth}
|
529
501
|
>
|
530
|
-
{
|
502
|
+
{`Label${i + 1}`}
|
531
503
|
</TabItem>
|
532
504
|
);
|
533
505
|
}
|
@@ -544,9 +516,8 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
|
|
544
516
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
545
517
|
contentRight={getContentRight(contentRightOption, size as Size)}
|
546
518
|
size={size as Size}
|
547
|
-
maxWidth={maxWidth}
|
548
519
|
>
|
549
|
-
{
|
520
|
+
{`Label${i + 1}`}
|
550
521
|
</TabItem>
|
551
522
|
);
|
552
523
|
})}
|
@@ -563,7 +534,6 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
|
|
563
534
|
tabIndex={!disabled ? 0 : -1}
|
564
535
|
disabled={disabled}
|
565
536
|
size={size as Size}
|
566
|
-
maxWidth="auto"
|
567
537
|
>
|
568
538
|
ShowAll
|
569
539
|
</TabItem>
|
@@ -578,11 +548,10 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
|
|
578
548
|
size: 'xs',
|
579
549
|
disabled: false,
|
580
550
|
hasDivider: true,
|
581
|
-
itemQuantity:
|
551
|
+
itemQuantity: 8,
|
582
552
|
orientation: 'vertical',
|
583
553
|
helperText: '',
|
584
554
|
height: '10rem',
|
585
|
-
maxWidth: '',
|
586
555
|
},
|
587
556
|
argTypes: {
|
588
557
|
contentLeft: {
|
@@ -643,7 +612,6 @@ const StoryHeaderTabs = (props: StoryTabsProps) => {
|
|
643
612
|
contentRight: contentRightOption,
|
644
613
|
hasDivider,
|
645
614
|
stretch,
|
646
|
-
maxWidth,
|
647
615
|
} = props;
|
648
616
|
const items = Array(itemQuantity).fill(0);
|
649
617
|
const [index, setIndex] = useState(0);
|
@@ -661,9 +629,8 @@ const StoryHeaderTabs = (props: StoryTabsProps) => {
|
|
661
629
|
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
662
630
|
contentRight={getContentRight(contentRightOption, size as Size)}
|
663
631
|
size={size as HeaderSize}
|
664
|
-
maxWidth={maxWidth}
|
665
632
|
>
|
666
|
-
{
|
633
|
+
{`Label${i + 1}`}
|
667
634
|
</TabItem>
|
668
635
|
))}
|
669
636
|
</Tabs>
|