@salutejs/plasma-new-hope 0.173.4-canary.1502.11517986665.0 → 0.173.4-canary.1508.11518994013.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Drawer/Drawer.js +2 -1
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Tabs/createTabsController.js.map +1 -1
- package/cjs/components/Tabs/tokens.js +0 -2
- package/cjs/components/Tabs/tokens.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +1 -3
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.css +5 -5
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +8 -20
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/{HorizontalTabs.styles_p9rk79.css → HorizontalTabs.styles_16kuvxt.css} +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js.map +1 -1
- package/{es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base_4ob3q5.css → cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base_9miwn.css} +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.css +4 -4
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +6 -7
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js.map +1 -1
- package/{es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles_1r1hidh.css → cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles_1fr5ovg.css} +1 -1
- package/cjs/index.css +9 -9
- package/emotion/cjs/components/Drawer/Drawer.js +4 -3
- package/emotion/cjs/components/Tabs/tokens.js +0 -2
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +1 -3
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +8 -20
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +4 -4
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +6 -7
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +4 -4
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +33 -72
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -15
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.js +15 -15
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.js +6 -6
- package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +33 -72
- package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -15
- package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js +15 -15
- package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js +6 -6
- package/emotion/es/components/Drawer/Drawer.js +2 -1
- package/emotion/es/components/Tabs/tokens.js +0 -2
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +1 -3
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +9 -21
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +4 -4
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +7 -8
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +4 -4
- package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +33 -72
- package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -15
- package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.js +15 -15
- package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.js +6 -6
- package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +33 -72
- package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -15
- package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js +15 -15
- package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js +6 -6
- package/es/components/Drawer/Drawer.js +2 -1
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Tabs/createTabsController.js.map +1 -1
- package/es/components/Tabs/tokens.js +0 -2
- package/es/components/Tabs/tokens.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +1 -3
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.css +5 -5
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +9 -21
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/{HorizontalTabs.styles_p9rk79.css → HorizontalTabs.styles_16kuvxt.css} +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js.map +1 -1
- package/{cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base_4ob3q5.css → es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base_9miwn.css} +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.css +4 -4
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +7 -8
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js.map +1 -1
- package/{cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles_1r1hidh.css → es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles_1fr5ovg.css} +1 -1
- package/es/index.css +9 -9
- package/package.json +2 -2
- package/styled-components/cjs/components/Drawer/Drawer.js +4 -3
- package/styled-components/cjs/components/Tabs/tokens.js +0 -2
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +1 -3
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +8 -20
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +2 -2
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +6 -7
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +33 -72
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.js +3 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +33 -72
- package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/styled-components/es/components/Drawer/Drawer.js +2 -1
- package/styled-components/es/components/Tabs/tokens.js +0 -2
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +1 -3
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +9 -21
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +2 -2
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +7 -8
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +33 -72
- package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.js +3 -3
- package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +33 -72
- package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js +3 -3
- package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Tabs/TabItem.types.d.ts +8 -50
- package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
- package/types/components/Tabs/Tabs.types.d.ts +2 -44
- package/types/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/types/components/Tabs/createTabsController.d.ts +2 -2
- package/types/components/Tabs/createTabsController.d.ts.map +1 -1
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/Tabs/index.d.ts.map +1 -1
- package/types/components/Tabs/tokens.d.ts +0 -2
- package/types/components/Tabs/tokens.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.d.ts +2 -2
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -21
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/Tabs.d.ts +2 -2
- package/types/examples/plasma_b2c/components/Tabs/Tabs.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +6 -21
- package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/Tabs.d.ts +2 -2
- package/types/examples/plasma_web/components/Tabs/Tabs.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.d.ts.map +1 -1
@@ -12,7 +12,6 @@ import { Tabs } from './Tabs';
|
|
12
12
|
import { TabItem } from './TabItem';
|
13
13
|
|
14
14
|
const clips = ['none', 'scroll', 'showAll'];
|
15
|
-
const headerClips = ['none', 'scroll'];
|
16
15
|
const sizes = ['xs', 's', 'm', 'l'] as const;
|
17
16
|
const headerSizes = ['h5', 'h4', 'h3', 'h2', 'h1'] as const;
|
18
17
|
|
@@ -21,6 +20,7 @@ type HeaderSize = typeof headerSizes[number];
|
|
21
20
|
|
22
21
|
type CustomStoryTabsProps = {
|
23
22
|
itemQuantity: number;
|
23
|
+
hasDivider: boolean;
|
24
24
|
contentLeft: string;
|
25
25
|
contentRight: string;
|
26
26
|
stretch: boolean;
|
@@ -30,12 +30,12 @@ type CustomStoryTabsProps = {
|
|
30
30
|
const contentLeftOptions = ['none', 'icon'];
|
31
31
|
const contentRightOptions = ['none', 'counter', 'icon'];
|
32
32
|
|
33
|
-
const getContentLeft = (contentLeftOption: string, size:
|
33
|
+
const getContentLeft = (contentLeftOption: string, size: Size) => {
|
34
34
|
const iconSize = size === 'xs' ? 'xs' : 's';
|
35
35
|
return contentLeftOption === 'icon' ? <IconMic size={iconSize} color="inherit" /> : undefined;
|
36
36
|
};
|
37
37
|
|
38
|
-
const getContentRight = (contentRightOption: string, size:
|
38
|
+
const getContentRight = (contentRightOption: string, size: Size) => {
|
39
39
|
const iconSize = size === 'xs' ? 'xs' : 's';
|
40
40
|
const counterSize = size === 'xs' ? 'xxs' : 'xs';
|
41
41
|
|
@@ -96,7 +96,7 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
|
|
96
96
|
const [index, setIndex] = useState(0);
|
97
97
|
|
98
98
|
return (
|
99
|
-
<Tabs view=
|
99
|
+
<Tabs view={hasDivider ? 'divider' : 'clear'} stretch={stretch} disabled={disabled} size={size}>
|
100
100
|
{items.map((_, i) => {
|
101
101
|
if (helperText !== '') {
|
102
102
|
return (
|
@@ -152,7 +152,7 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
|
|
152
152
|
const [index, setIndex] = useState(0);
|
153
153
|
|
154
154
|
return (
|
155
|
-
<Tabs clip={clip} view=
|
155
|
+
<Tabs clip={clip} view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size} style={{ width }}>
|
156
156
|
{items.map((_, i) => {
|
157
157
|
if (helperText !== '') {
|
158
158
|
return (
|
@@ -220,7 +220,7 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
|
|
220
220
|
});
|
221
221
|
|
222
222
|
return (
|
223
|
-
<Tabs clip={clip} view=
|
223
|
+
<Tabs clip={clip} view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size}>
|
224
224
|
{visibleItems.map((_, i) => {
|
225
225
|
if (helperText !== '') {
|
226
226
|
return (
|
@@ -603,47 +603,31 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
|
|
603
603
|
},
|
604
604
|
};
|
605
605
|
|
606
|
-
const
|
607
|
-
const {
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
view="clear"
|
617
|
-
selected={i === index}
|
618
|
-
onClick={() => !disabled && setIndex(i)}
|
619
|
-
tabIndex={!disabled ? 0 : -1}
|
620
|
-
disabled={disabled}
|
621
|
-
value={helperText}
|
622
|
-
size={size as HeaderSize}
|
623
|
-
>
|
624
|
-
{`Label${i + 1}`}
|
625
|
-
</TabItem>
|
626
|
-
))}
|
627
|
-
</Tabs>
|
628
|
-
);
|
629
|
-
};
|
630
|
-
|
631
|
-
const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
|
632
|
-
const { disabled, itemQuantity, size, helperText, width } = props;
|
606
|
+
const StoryHeaderTabs = (props: StoryTabsProps) => {
|
607
|
+
const {
|
608
|
+
disabled,
|
609
|
+
itemQuantity,
|
610
|
+
size,
|
611
|
+
contentLeft: contentLeftOption,
|
612
|
+
contentRight: contentRightOption,
|
613
|
+
hasDivider,
|
614
|
+
stretch,
|
615
|
+
} = props;
|
633
616
|
const items = Array(itemQuantity).fill(0);
|
634
617
|
const [index, setIndex] = useState(0);
|
635
618
|
|
636
619
|
return (
|
637
|
-
<Tabs view=
|
620
|
+
<Tabs view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size} stretch={stretch}>
|
638
621
|
{items.map((_, i) => (
|
639
622
|
<TabItem
|
640
623
|
key={`item:${i}`}
|
641
|
-
view="
|
624
|
+
view="divider"
|
642
625
|
selected={i === index}
|
643
626
|
onClick={() => !disabled && setIndex(i)}
|
644
627
|
tabIndex={!disabled ? 0 : -1}
|
645
628
|
disabled={disabled}
|
646
|
-
|
629
|
+
contentLeft={getContentLeft(contentLeftOption, size as Size)}
|
630
|
+
contentRight={getContentRight(contentRightOption, size as Size)}
|
647
631
|
size={size as HeaderSize}
|
648
632
|
>
|
649
633
|
{`Label${i + 1}`}
|
@@ -653,60 +637,37 @@ const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
|
|
653
637
|
);
|
654
638
|
};
|
655
639
|
|
656
|
-
export const HeaderTabs: StoryObj<
|
640
|
+
export const HeaderTabs: StoryObj<StoryTabsProps> = {
|
657
641
|
args: {
|
658
642
|
size: 'h5',
|
659
643
|
disabled: false,
|
660
|
-
|
661
|
-
itemQuantity:
|
662
|
-
width: '12rem',
|
644
|
+
hasDivider: true,
|
645
|
+
itemQuantity: 4,
|
663
646
|
},
|
664
647
|
argTypes: {
|
665
|
-
|
666
|
-
options:
|
648
|
+
size: {
|
649
|
+
options: headerSizes,
|
667
650
|
control: {
|
668
651
|
type: 'select',
|
669
652
|
},
|
670
653
|
},
|
671
|
-
width: {
|
672
|
-
control: {
|
673
|
-
type: 'text',
|
674
|
-
},
|
675
|
-
if: { arg: 'clip', eq: 'scroll' },
|
676
|
-
},
|
677
|
-
stretch: {
|
678
|
-
table: {
|
679
|
-
disable: true,
|
680
|
-
},
|
681
|
-
},
|
682
654
|
contentLeft: {
|
683
|
-
|
684
|
-
|
655
|
+
options: contentLeftOptions,
|
656
|
+
control: {
|
657
|
+
type: 'select',
|
685
658
|
},
|
686
659
|
},
|
687
660
|
contentRight: {
|
688
|
-
|
689
|
-
|
661
|
+
options: contentRightOptions,
|
662
|
+
control: {
|
663
|
+
type: 'select',
|
690
664
|
},
|
691
665
|
},
|
692
|
-
|
666
|
+
clip: {
|
693
667
|
table: {
|
694
668
|
disable: true,
|
695
669
|
},
|
696
670
|
},
|
697
|
-
size: {
|
698
|
-
options: headerSizes,
|
699
|
-
control: {
|
700
|
-
type: 'select',
|
701
|
-
},
|
702
|
-
},
|
703
|
-
},
|
704
|
-
render: (args) => {
|
705
|
-
switch (args.clip) {
|
706
|
-
case 'scroll':
|
707
|
-
return <StoryHeaderScroll {...args} />;
|
708
|
-
default:
|
709
|
-
return <StoryHeaderDefault {...args} />;
|
710
|
-
}
|
711
671
|
},
|
672
|
+
render: (args) => <StoryHeaderTabs {...args} />,
|
712
673
|
};
|
@@ -20,8 +20,8 @@ export var config = {
|
|
20
20
|
h5: /*#__PURE__*/css(["", ":0.375rem;", ":auto;", ":3rem;", ":0rem;", ":1.75rem;", ":0.625rem;", ":var(--plasma-typo-h5-font-family);", ":var(--plasma-typo-h5-font-size);", ":var(--plasma-typo-h5-font-style);", ":var(--plasma-typo-h5-font-weight);", ":var(--plasma-typo-h5-letter-spacing);", ":var(--plasma-typo-h5-line-height);"], tabsTokens.itemBorderRadius, tabsTokens.itemWidth, tabsTokens.itemHeight, tabsTokens.itemPadding, tabsTokens.itemMarginLeft, tabsTokens.itemContentGap, tabsTokens.fontFamily, tabsTokens.fontSize, tabsTokens.fontStyle, tabsTokens.fontWeight, tabsTokens.letterSpacing, tabsTokens.lineHeight),
|
21
21
|
h4: /*#__PURE__*/css(["", ":0.375rem;", ":auto;", ":3.25rem;", ":0rem;", ":2rem;", ":0.625rem;", ":var(--plasma-typo-h4-font-family);", ":var(--plasma-typo-h4-font-size);", ":var(--plasma-typo-h4-font-style);", ":var(--plasma-typo-h4-font-weight);", ":var(--plasma-typo-h4-letter-spacing);", ":var(--plasma-typo-h4-line-height);"], tabsTokens.itemBorderRadius, tabsTokens.itemWidth, tabsTokens.itemHeight, tabsTokens.itemPadding, tabsTokens.itemMarginLeft, tabsTokens.itemContentGap, tabsTokens.fontFamily, tabsTokens.fontSize, tabsTokens.fontStyle, tabsTokens.fontWeight, tabsTokens.letterSpacing, tabsTokens.lineHeight),
|
22
22
|
h3: /*#__PURE__*/css(["", ":0.5rem;", ":auto;", ":3.875rem;", ":0rem;", ":2.25rem;", ":0.75rem;", ":var(--plasma-typo-h3-font-family);", ":var(--plasma-typo-h3-font-size);", ":var(--plasma-typo-h3-font-style);", ":var(--plasma-typo-h3-font-weight);", ":var(--plasma-typo-h3-letter-spacing);", ":var(--plasma-typo-h3-line-height);"], tabsTokens.itemBorderRadius, tabsTokens.itemWidth, tabsTokens.itemHeight, tabsTokens.itemPadding, tabsTokens.itemMarginLeft, tabsTokens.itemContentGap, tabsTokens.fontFamily, tabsTokens.fontSize, tabsTokens.fontStyle, tabsTokens.fontWeight, tabsTokens.letterSpacing, tabsTokens.lineHeight),
|
23
|
-
h2: /*#__PURE__*/css(["", ":0.625rem;", ":auto;", ":4.5rem;", ":0rem;", ":2.5rem;", ":
|
24
|
-
h1: /*#__PURE__*/css(["", ":0.75rem;", ":auto;", ":5.75rem;", ":0rem;", ":3.5rem;", ":
|
23
|
+
h2: /*#__PURE__*/css(["", ":0.625rem;", ":auto;", ":4.5rem;", ":0rem;", ":2.5rem;", ":1rem;", ":var(--plasma-typo-h2-font-family);", ":var(--plasma-typo-h2-font-size);", ":var(--plasma-typo-h2-font-style);", ":var(--plasma-typo-h2-font-weight);", ":var(--plasma-typo-h2-letter-spacing);", ":var(--plasma-typo-h2-line-height);"], tabsTokens.itemBorderRadius, tabsTokens.itemWidth, tabsTokens.itemHeight, tabsTokens.itemPadding, tabsTokens.itemMarginLeft, tabsTokens.itemContentGap, tabsTokens.fontFamily, tabsTokens.fontSize, tabsTokens.fontStyle, tabsTokens.fontWeight, tabsTokens.letterSpacing, tabsTokens.lineHeight),
|
24
|
+
h1: /*#__PURE__*/css(["", ":0.75rem;", ":auto;", ":5.75rem;", ":0rem;", ":3.5rem;", ":0.5rem;", ":var(--plasma-typo-h1-font-family);", ":var(--plasma-typo-h1-font-size);", ":var(--plasma-typo-h1-font-style);", ":var(--plasma-typo-h1-font-weight);", ":var(--plasma-typo-h1-letter-spacing);", ":var(--plasma-typo-h1-line-height);"], tabsTokens.itemBorderRadius, tabsTokens.itemWidth, tabsTokens.itemHeight, tabsTokens.itemPadding, tabsTokens.itemMarginLeft, tabsTokens.itemContentGap, tabsTokens.fontFamily, tabsTokens.fontSize, tabsTokens.fontStyle, tabsTokens.fontWeight, tabsTokens.letterSpacing, tabsTokens.lineHeight)
|
25
25
|
},
|
26
26
|
disabled: {
|
27
27
|
"true": /*#__PURE__*/css(["", ":0.4;"], tabsTokens.disabledOpacity)
|
package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js
CHANGED
@@ -7,9 +7,9 @@ export var config = {
|
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
clear: /*#__PURE__*/css(["", ":var(--text-secondary);", ":
|
11
|
-
filled: /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--
|
12
|
-
divider: /*#__PURE__*/css(["", ":var(--text-secondary);", ":
|
10
|
+
clear: /*#__PURE__*/css(["", ":var(--text-secondary);", ":transparent;", ":var(--surface-accent);", ":0rem;", ":transparent;", ":0rem;"], tabsTokens.arrowColor, tabsTokens.tabsBackgroundColor, tabsTokens.outlineFocusColor, tabsTokens.tabsDividerHeight, tabsTokens.tabsDividerColor, tabsTokens.tabsDividerBorderRadius),
|
11
|
+
filled: /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--surface-transparent-primary);", ":var(--surface-accent);", ":0rem;", ":transparent;", ":0rem;"], tabsTokens.arrowColor, tabsTokens.tabsBackgroundColor, tabsTokens.outlineFocusColor, tabsTokens.tabsDividerHeight, tabsTokens.tabsDividerColor, tabsTokens.tabsDividerBorderRadius),
|
12
|
+
divider: /*#__PURE__*/css(["", ":var(--text-secondary);", ":transparent;", ":var(--surface-accent);", ":0.0625rem;", ":var(--surface-transparent-tertiary);", ":0.0625rem;"], tabsTokens.arrowColor, tabsTokens.tabsBackgroundColor, tabsTokens.outlineFocusColor, tabsTokens.tabsDividerHeight, tabsTokens.tabsDividerColor, tabsTokens.tabsDividerBorderRadius)
|
13
13
|
},
|
14
14
|
size: {
|
15
15
|
xs: /*#__PURE__*/css(["", ":0.5rem;", ":fit-content;", ":auto;", ":0rem;", ":0.125rem;"], tabsTokens.tabsBorderRadius, tabsTokens.tabsWidth, tabsTokens.tabsHeight, tabsTokens.arrowInnerPadding, tabsTokens.arrowOuterPadding),
|
package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js
CHANGED
@@ -7,7 +7,7 @@ export var config = {
|
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
divider: /*#__PURE__*/css(["", ":var(--text-secondary);", ":
|
10
|
+
divider: /*#__PURE__*/css(["", ":var(--text-secondary);", ":transparent;", ":var(--surface-accent);", ":0.0625rem;", ":0.0625rem;", ":var(--surface-transparent-tertiary);", ":0.0625rem;"], tabsTokens.arrowColor, tabsTokens.tabsBackgroundColor, tabsTokens.outlineFocusColor, tabsTokens.tabsDividerWidth, tabsTokens.tabsDividerHeight, tabsTokens.tabsDividerColor, tabsTokens.tabsDividerBorderRadius)
|
11
11
|
},
|
12
12
|
size: {
|
13
13
|
xs: /*#__PURE__*/css(["", ":0.5rem;", ":fit-content;", ":auto;", ":0rem;", ":0.125rem;"], tabsTokens.tabsBorderRadius, tabsTokens.tabsWidth, tabsTokens.tabsHeight, tabsTokens.arrowInnerPadding, tabsTokens.arrowOuterPadding),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAYlD,eAAO,MAAM,UAAU,SAAU,UAAU,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;wCAsHlE,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAxHQ,UAAU,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ItE,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
2
2
|
import type { AsProps } from '../../types';
|
3
|
-
|
3
|
+
declare type RightContent = {
|
4
4
|
/**
|
5
5
|
* Значение таба
|
6
6
|
*/
|
@@ -29,6 +29,10 @@ export interface BaseTabItemProps extends ButtonHTMLAttributes<HTMLButtonElement
|
|
29
29
|
* @default false
|
30
30
|
*/
|
31
31
|
disabled?: boolean;
|
32
|
+
/**
|
33
|
+
* Контент слева
|
34
|
+
*/
|
35
|
+
contentLeft?: ReactNode;
|
32
36
|
/**
|
33
37
|
* Контент справа
|
34
38
|
*/
|
@@ -47,19 +51,13 @@ export declare type CustomHorizontalTabItemProps = {
|
|
47
51
|
* Расположение табов
|
48
52
|
*/
|
49
53
|
orientation?: 'horizontal';
|
50
|
-
/**
|
51
|
-
* Контент слева
|
52
|
-
*/
|
53
|
-
contentLeft?: ReactNode;
|
54
54
|
/**
|
55
55
|
* TabItem c округлым border-radius
|
56
|
-
* @deprecated
|
57
56
|
* @default false
|
58
57
|
*/
|
59
58
|
pilled?: boolean;
|
60
59
|
/**
|
61
60
|
* Фон TabItem меняется с анимацией
|
62
|
-
* @deprecated
|
63
61
|
* @default true
|
64
62
|
*/
|
65
63
|
animated?: boolean;
|
@@ -70,59 +68,18 @@ export declare type CustomHorizontalTabItemProps = {
|
|
70
68
|
/**
|
71
69
|
* Размер TabItem
|
72
70
|
*/
|
73
|
-
size?:
|
71
|
+
size?: string;
|
74
72
|
/**
|
75
73
|
* Активен ли TabItem
|
76
74
|
* @deprecated Используйте свойство `selected`
|
77
75
|
*/
|
78
76
|
isActive?: boolean;
|
79
77
|
} & RightContent;
|
80
|
-
export declare type CustomHeaderTabItemProps = {
|
81
|
-
/**
|
82
|
-
* Расположение табов
|
83
|
-
*/
|
84
|
-
orientation?: 'horizontal';
|
85
|
-
/**
|
86
|
-
* Контент слева
|
87
|
-
*/
|
88
|
-
contentLeft?: never;
|
89
|
-
/**
|
90
|
-
* TabItem c округлым border-radius
|
91
|
-
* @deprecated
|
92
|
-
* @default false
|
93
|
-
*/
|
94
|
-
pilled?: never;
|
95
|
-
/**
|
96
|
-
* Фон TabItem меняется с анимацией
|
97
|
-
* @deprecated
|
98
|
-
* @default true
|
99
|
-
*/
|
100
|
-
animated?: never;
|
101
|
-
/**
|
102
|
-
* Вид TabItem
|
103
|
-
*/
|
104
|
-
view?: string;
|
105
|
-
/**
|
106
|
-
* Размер TabItem
|
107
|
-
*/
|
108
|
-
size: 'h5' | 'h4' | 'h3' | 'h2' | 'h1';
|
109
|
-
/**
|
110
|
-
* Активен ли TabItem
|
111
|
-
* @deprecated Используйте свойство `selected`
|
112
|
-
*/
|
113
|
-
isActive?: never;
|
114
|
-
} & Extract<RightContent, {
|
115
|
-
contentRight?: never;
|
116
|
-
}>;
|
117
78
|
export declare type CustomVerticalTabItemProps = {
|
118
79
|
/**
|
119
80
|
* Расположение табов
|
120
81
|
*/
|
121
82
|
orientation: 'vertical';
|
122
|
-
/**
|
123
|
-
* Контент слева
|
124
|
-
*/
|
125
|
-
contentLeft?: ReactNode;
|
126
83
|
/**
|
127
84
|
* Вид TabItem
|
128
85
|
*/
|
@@ -132,7 +89,8 @@ export declare type CustomVerticalTabItemProps = {
|
|
132
89
|
*/
|
133
90
|
size?: string;
|
134
91
|
} & RightContent;
|
135
|
-
export declare type HorizontalTabItemProps = BaseTabItemProps &
|
92
|
+
export declare type HorizontalTabItemProps = BaseTabItemProps & CustomHorizontalTabItemProps;
|
136
93
|
export declare type VerticalTabItemProps = BaseTabItemProps & CustomVerticalTabItemProps;
|
137
94
|
export declare type TabItemProps = HorizontalTabItemProps | VerticalTabItemProps;
|
95
|
+
export {};
|
138
96
|
//# sourceMappingURL=TabItem.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabItem.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,
|
1
|
+
{"version":3,"file":"TabItem.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,aAAK,YAAY,GACX;IACI;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB,GACD;IACI;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAER,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO;IACtF;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,oBAAY,4BAA4B,GAAG;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,YAAY,CAAC;AAEjB,oBAAY,0BAA0B,GAAG;IACrC;;OAEG;IACH,WAAW,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,YAAY,CAAC;AAEjB,oBAAY,sBAAsB,GAAG,gBAAgB,GAAG,4BAA4B,CAAC;AAErF,oBAAY,oBAAoB,GAAG,gBAAgB,GAAG,0BAA0B,CAAC;AAEjF,oBAAY,YAAY,GAAG,sBAAsB,GAAG,oBAAoB,CAAC"}
|
@@ -24,11 +24,6 @@ export declare type CustomHorizontalTabsProps = {
|
|
24
24
|
* Расположение табов
|
25
25
|
*/
|
26
26
|
orientation?: 'horizontal';
|
27
|
-
/**
|
28
|
-
* Наличие divider
|
29
|
-
* @default true
|
30
|
-
*/
|
31
|
-
hasDivider?: boolean;
|
32
27
|
/**
|
33
28
|
* Табы растянуты на доступную область
|
34
29
|
* @default false
|
@@ -36,7 +31,6 @@ export declare type CustomHorizontalTabsProps = {
|
|
36
31
|
stretch?: boolean;
|
37
32
|
/**
|
38
33
|
* Табы c округлым border-radius
|
39
|
-
* @deprecated
|
40
34
|
* @default false
|
41
35
|
*/
|
42
36
|
pilled?: boolean;
|
@@ -47,7 +41,7 @@ export declare type CustomHorizontalTabsProps = {
|
|
47
41
|
/**
|
48
42
|
* Размер табов
|
49
43
|
*/
|
50
|
-
size?:
|
44
|
+
size?: string;
|
51
45
|
/**
|
52
46
|
* Уберет скругление с выбранной стороны и подвинет контейнер
|
53
47
|
* @deprecated
|
@@ -57,41 +51,6 @@ export declare type CustomHorizontalTabsProps = {
|
|
57
51
|
right?: string;
|
58
52
|
};
|
59
53
|
};
|
60
|
-
export declare type CustomHeaderTabsProps = {
|
61
|
-
/**
|
62
|
-
* Расположение табов
|
63
|
-
*/
|
64
|
-
orientation?: 'horizontal';
|
65
|
-
/**
|
66
|
-
* Наличие divider
|
67
|
-
* @default true
|
68
|
-
*/
|
69
|
-
hasDivider?: never;
|
70
|
-
/**
|
71
|
-
* Табы растянуты на доступную область
|
72
|
-
* @default false
|
73
|
-
*/
|
74
|
-
stretch?: never;
|
75
|
-
/**
|
76
|
-
* Табы c округлым border-radius
|
77
|
-
* @deprecated
|
78
|
-
* @default false
|
79
|
-
*/
|
80
|
-
pilled?: never;
|
81
|
-
/**
|
82
|
-
* Вид табов
|
83
|
-
*/
|
84
|
-
view?: string;
|
85
|
-
/**
|
86
|
-
* Размер табов
|
87
|
-
*/
|
88
|
-
size: 'h5' | 'h4' | 'h3' | 'h2' | 'h1';
|
89
|
-
/**
|
90
|
-
* Уберет скругление с выбранной стороны и подвинет контейнер
|
91
|
-
* @deprecated
|
92
|
-
*/
|
93
|
-
outsideScroll?: never;
|
94
|
-
};
|
95
54
|
export declare type CustomVerticalTabsProps = {
|
96
55
|
/**
|
97
56
|
* Расположение табов
|
@@ -111,8 +70,7 @@ export declare type CustomVerticalTabsProps = {
|
|
111
70
|
*/
|
112
71
|
size?: string;
|
113
72
|
};
|
114
|
-
export declare type HorizontalTabsProps = BaseTabsProps &
|
115
|
-
export declare type HorizontalCommonTabsProps = BaseTabsProps & CustomHorizontalTabsProps;
|
73
|
+
export declare type HorizontalTabsProps = BaseTabsProps & CustomHorizontalTabsProps;
|
116
74
|
export declare type VerticalTabsProps = BaseTabsProps & CustomVerticalTabsProps;
|
117
75
|
export declare type TabsProps = HorizontalTabsProps | VerticalTabsProps;
|
118
76
|
//# sourceMappingURL=Tabs.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tabs.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO;IAC1E;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,yBAAyB,GAAG;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;;OAGG;IACH,
|
1
|
+
{"version":3,"file":"Tabs.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO;IAC1E;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,yBAAyB,GAAG;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/D,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IAClC;;OAEG;IACH,WAAW,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,mBAAmB,GAAG,aAAa,GAAG,yBAAyB,CAAC;AAE5E,oBAAY,iBAAiB,GAAG,aAAa,GAAG,uBAAuB,CAAC;AAExE,oBAAY,SAAS,GAAG,mBAAmB,GAAG,iBAAiB,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { ForwardRefExoticComponent, RefAttributes } from 'react';
|
2
2
|
import { HorizontalTabItemProps } from './TabItem.types';
|
3
|
-
import {
|
4
|
-
export interface TabsControllerProps extends
|
3
|
+
import { HorizontalTabsProps } from './Tabs.types';
|
4
|
+
export interface TabsControllerProps extends HorizontalTabsProps {
|
5
5
|
items: Array<{
|
6
6
|
label: string;
|
7
7
|
} & HorizontalTabItemProps>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createTabsController.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/createTabsController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,yBAAyB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"createTabsController.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/createTabsController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,yBAAyB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC5D,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,sBAAsB,CAAC,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,mBAAmB,EACxF,aAAa,EAAE,yBAAyB,CAAC,mBAAmB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,EAC7F,aAAa,EAAE,yBAAyB,CAAC,sBAAsB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,sFAwBnG"}
|
@@ -6,6 +6,6 @@ export { tokens as tabsTokens } from './tokens';
|
|
6
6
|
export { TabItemRefs, TabsContext } from './TabsContext';
|
7
7
|
export { createTabsController } from './createTabsController';
|
8
8
|
export type { TabsControllerProps } from './createTabsController';
|
9
|
-
export type { HorizontalTabsProps
|
10
|
-
export type { HorizontalTabItemProps
|
9
|
+
export type { HorizontalTabsProps } from './Tabs.types';
|
10
|
+
export type { HorizontalTabItemProps } from './TabItem.types';
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AACrH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,YAAY,EAAE,mBAAmB,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AACrH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
|
@@ -33,8 +33,6 @@ export declare const tokens: {
|
|
33
33
|
itemSelectedDividerColorHover: string;
|
34
34
|
outlineFocusColor: string;
|
35
35
|
arrowColor: string;
|
36
|
-
arrowColorHover: string;
|
37
|
-
arrowColorActive: string;
|
38
36
|
tabsFilledBackgroundColor: string;
|
39
37
|
tabsBackgroundColor: string;
|
40
38
|
tabsBorderRadius: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CAiBnB,CAAC;AAEF,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CAiBnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwElB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HorizontalTabItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiE,MAAM,OAAO,CAAC;AAGtF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAInD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAQhE,eAAO,MAAM,qBAAqB,SAAU,UAAU,cAAc,EAAE,sBAAsB,CAAC,
|
1
|
+
{"version":3,"file":"HorizontalTabItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiE,MAAM,OAAO,CAAC;AAGtF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAInD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAQhE,eAAO,MAAM,qBAAqB,SAAU,UAAU,cAAc,EAAE,sBAAsB,CAAC,kGA+GvF,CAAC;AAEP,eAAO,MAAM,uBAAuB;;;mBAjHQ,UAAU,cAAc,EAAE,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;CAwI5F,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { RootProps } from '../../../../../engines/types';
|
3
3
|
import type { HorizontalTabsProps } from '../../../Tabs.types';
|
4
|
-
export declare const horizontalTabsRoot: (Root: RootProps<HTMLDivElement, HorizontalTabsProps>) => React.ForwardRefExoticComponent<
|
4
|
+
export declare const horizontalTabsRoot: (Root: RootProps<HTMLDivElement, HorizontalTabsProps>) => React.ForwardRefExoticComponent<import("../../../Tabs.types").BaseTabsProps & import("../../../Tabs.types").CustomHorizontalTabsProps & React.RefAttributes<HTMLDivElement>>;
|
5
5
|
export declare const horizontalTabsConfig: {
|
6
6
|
name: string;
|
7
7
|
tag: string;
|
8
|
-
layout: (Root: RootProps<HTMLDivElement, HorizontalTabsProps>) => React.ForwardRefExoticComponent<
|
8
|
+
layout: (Root: RootProps<HTMLDivElement, HorizontalTabsProps>) => React.ForwardRefExoticComponent<import("../../../Tabs.types").BaseTabsProps & import("../../../Tabs.types").CustomHorizontalTabsProps & React.RefAttributes<HTMLDivElement>>;
|
9
9
|
base: import("@linaria/core").LinariaClassName;
|
10
10
|
variations: {
|
11
11
|
size: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HorizontalTabs.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuF,MAAM,OAAO,CAAC;AAI5G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAK9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"HorizontalTabs.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuF,MAAM,OAAO,CAAC;AAI5G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAK9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAiB/D,eAAO,MAAM,kBAAkB,SAAU,UAAU,cAAc,EAAE,mBAAmB,CAAC,iLA6MjF,CAAC;AAEP,eAAO,MAAM,oBAAoB;;;mBA/MQ,UAAU,cAAc,EAAE,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CA2OtF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HorizontalTabs.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,IAAI,0CAKhB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAIzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qKA4BhC,CAAC;AAEF,eAAO,MAAM,WAAW;;;
|
1
|
+
{"version":3,"file":"HorizontalTabs.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,IAAI,0CAKhB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAIzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qKA4BhC,CAAC;AAEF,eAAO,MAAM,WAAW;;;EAyBvB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,0CAyBhB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VerticalTabs.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,IAAI,0CAMhB,CAAC;AAEF,eAAO,MAAM,aAAa;;EAIzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qKAgChC,CAAC;AAEF,eAAO,MAAM,WAAW,
|
1
|
+
{"version":3,"file":"VerticalTabs.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,IAAI,0CAMhB,CAAC;AAEF,eAAO,MAAM,aAAa;;EAIzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qKAgChC,CAAC;AAEF,eAAO,MAAM,WAAW,iLAmBvB,CAAC"}
|
@@ -23,39 +23,26 @@ declare const HorizontalTabItem: React.FunctionComponent<import("../../../../eng
|
|
23
23
|
pilled: {
|
24
24
|
true: import("@linaria/core").LinariaClassName;
|
25
25
|
};
|
26
|
-
}> & ((import("../../../../components/Tabs").BaseTabItemProps & {
|
26
|
+
}> & ((import("../../../../components/Tabs/TabItem.types").BaseTabItemProps & {
|
27
27
|
orientation?: "horizontal" | undefined;
|
28
|
-
contentLeft?: React.ReactNode;
|
29
28
|
pilled?: boolean | undefined;
|
30
29
|
animated?: boolean | undefined;
|
31
30
|
view?: string | undefined;
|
32
|
-
size?:
|
31
|
+
size?: string | undefined;
|
33
32
|
isActive?: boolean | undefined;
|
34
33
|
} & {
|
35
34
|
value?: string | number | undefined;
|
36
35
|
contentRight?: undefined;
|
37
|
-
} & React.RefAttributes<HTMLDivElement>) | (import("../../../../components/Tabs").BaseTabItemProps & {
|
36
|
+
} & React.RefAttributes<HTMLDivElement>) | (import("../../../../components/Tabs/TabItem.types").BaseTabItemProps & {
|
38
37
|
orientation?: "horizontal" | undefined;
|
39
|
-
contentLeft?: React.ReactNode;
|
40
38
|
pilled?: boolean | undefined;
|
41
39
|
animated?: boolean | undefined;
|
42
40
|
view?: string | undefined;
|
43
|
-
size?:
|
41
|
+
size?: string | undefined;
|
44
42
|
isActive?: boolean | undefined;
|
45
43
|
} & {
|
46
44
|
value?: undefined;
|
47
45
|
contentRight?: React.ReactNode;
|
48
|
-
} & React.RefAttributes<HTMLDivElement>) | (import("../../../../components/Tabs").BaseTabItemProps & {
|
49
|
-
orientation?: "horizontal" | undefined;
|
50
|
-
contentLeft?: undefined;
|
51
|
-
pilled?: undefined;
|
52
|
-
animated?: undefined;
|
53
|
-
view?: string | undefined;
|
54
|
-
size: "h1" | "h2" | "h3" | "h4" | "h5";
|
55
|
-
isActive?: undefined;
|
56
|
-
} & {
|
57
|
-
value?: string | number | undefined;
|
58
|
-
contentRight?: undefined;
|
59
46
|
} & React.RefAttributes<HTMLDivElement>))>;
|
60
47
|
declare const VerticalTabItem: React.FunctionComponent<import("../../../../engines/types").PropsType<{
|
61
48
|
view: {
|
@@ -70,17 +57,15 @@ declare const VerticalTabItem: React.FunctionComponent<import("../../../../engin
|
|
70
57
|
disabled: {
|
71
58
|
true: import("@linaria/core").LinariaClassName;
|
72
59
|
};
|
73
|
-
}> & ((import("../../../../components/Tabs").BaseTabItemProps & {
|
60
|
+
}> & ((import("../../../../components/Tabs/TabItem.types").BaseTabItemProps & {
|
74
61
|
orientation: "vertical";
|
75
|
-
contentLeft?: React.ReactNode;
|
76
62
|
view?: string | undefined;
|
77
63
|
size?: string | undefined;
|
78
64
|
} & {
|
79
65
|
value?: string | number | undefined;
|
80
66
|
contentRight?: undefined;
|
81
|
-
} & React.RefAttributes<HTMLButtonElement>) | (import("../../../../components/Tabs").BaseTabItemProps & {
|
67
|
+
} & React.RefAttributes<HTMLButtonElement>) | (import("../../../../components/Tabs/TabItem.types").BaseTabItemProps & {
|
82
68
|
orientation: "vertical";
|
83
|
-
contentLeft?: React.ReactNode;
|
84
69
|
view?: string | undefined;
|
85
70
|
size?: string | undefined;
|
86
71
|
} & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabItem.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Tabs/TabItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAS9C,QAAA,MAAM,iBAAiB
|
1
|
+
{"version":3,"file":"TabItem.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Tabs/TabItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAS9C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAA2C,CAAC;AAGnE,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAAyC,CAAC;AAE/D,aAAK,YAAY,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;AAEtG,eAAO,MAAM,OAAO,UAAW,YAAY,gBAM1C,CAAC"}
|