@bitrise/bitkit 9.5.2 → 9.5.4-alpha-chakra.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/package.json +5 -1
- package/src/tsconfig.tsbuildinfo +1 -0
- package/src/variables.css +2 -3
- package/.browserslistrc +0 -2
- package/.editorconfig +0 -4
- package/.eslint-tsconfig.json +0 -7
- package/.eslintrc.js +0 -28
- package/.husky/commit-msg +0 -4
- package/.nvmrc +0 -1
- package/.storybook/main.js +0 -35
- package/.storybook/manager.js +0 -6
- package/.storybook/preview.tsx +0 -20
- package/.storybook/theme.js +0 -7
- package/.stylelintignore +0 -2
- package/.stylelintrc +0 -287
- package/.svgrrc.js +0 -52
- package/.tool-versions +0 -1
- package/@types/@bitrise/bitkit.ts +0 -1
- package/@types/react-docgen.ts +0 -119
- package/CHANGELOG.md +0 -996
- package/CONTRIBUTING.md +0 -79
- package/FAQ.md +0 -19
- package/bitrise.yml +0 -66
- package/commitlint.config.js +0 -10
- package/jest.setup.js +0 -36
- package/netlify.toml +0 -42
- package/postcss.config.js +0 -16
- package/release.config.js +0 -32
- package/renovate.json +0 -6
- package/scripts/build-docs-watch.ts +0 -7
- package/scripts/build-docs.ts +0 -59
- package/site/assets/fonts/TT_Norms_Pro_Bold.woff +0 -0
- package/site/assets/fonts/TT_Norms_Pro_Normal.woff +0 -0
- package/site/assets/icons/favicon-32x32.png +0 -0
- package/site/assets/images/app_icon.jpg +0 -0
- package/site/assets/images/status-checks.png +0 -0
- package/site/components/CodeBlock/CodeBlock.css +0 -87
- package/site/components/CodeBlock/CodeBlock.tsx +0 -35
- package/site/components/Documentation/ComponentDocumentationPage.tsx +0 -150
- package/site/components/Documentation/Components/SectionAddonBeam.tsx +0 -47
- package/site/components/Documentation/Components/SectionAddonBeamSandbox.tsx +0 -32
- package/site/components/Documentation/Components/SectionAddonFooter.tsx +0 -22
- package/site/components/Documentation/Components/SectionAppear.tsx +0 -59
- package/site/components/Documentation/Components/SectionAvatar.tsx +0 -50
- package/site/components/Documentation/Components/SectionBadge.tsx +0 -38
- package/site/components/Documentation/Components/SectionBase.tsx +0 -17
- package/site/components/Documentation/Components/SectionButtons.tsx +0 -361
- package/site/components/Documentation/Components/SectionCards.tsx +0 -276
- package/site/components/Documentation/Components/SectionCheckbox.tsx +0 -38
- package/site/components/Documentation/Components/SectionDatePicker.tsx +0 -82
- package/site/components/Documentation/Components/SectionDivider.tsx +0 -31
- package/site/components/Documentation/Components/SectionDot.tsx +0 -27
- package/site/components/Documentation/Components/SectionDropdowns.tsx +0 -388
- package/site/components/Documentation/Components/SectionExpand.tsx +0 -143
- package/site/components/Documentation/Components/SectionFlex.tsx +0 -33
- package/site/components/Documentation/Components/SectionFormElements.tsx +0 -187
- package/site/components/Documentation/Components/SectionGrid.tsx +0 -125
- package/site/components/Documentation/Components/SectionHamburger.tsx +0 -34
- package/site/components/Documentation/Components/SectionIcons.tsx +0 -30
- package/site/components/Documentation/Components/SectionInputs.tsx +0 -89
- package/site/components/Documentation/Components/SectionList.tsx +0 -26
- package/site/components/Documentation/Components/SectionModals.tsx +0 -224
- package/site/components/Documentation/Components/SectionNotification.tsx +0 -38
- package/site/components/Documentation/Components/SectionPlacement.tsx +0 -167
- package/site/components/Documentation/Components/SectionProgress.tsx +0 -149
- package/site/components/Documentation/Components/SectionRadioButton.tsx +0 -38
- package/site/components/Documentation/Components/SectionRibbon.tsx +0 -33
- package/site/components/Documentation/Components/SectionRibbonSandbox.tsx +0 -17
- package/site/components/Documentation/Components/SectionSidebar.tsx +0 -125
- package/site/components/Documentation/Components/SectionSkeleton.tsx +0 -99
- package/site/components/Documentation/Components/SectionStatus.tsx +0 -53
- package/site/components/Documentation/Components/SectionStatusSandbox404.tsx +0 -42
- package/site/components/Documentation/Components/SectionStatusSandbox500.tsx +0 -13
- package/site/components/Documentation/Components/SectionTable.tsx +0 -83
- package/site/components/Documentation/Components/SectionTabs.tsx +0 -25
- package/site/components/Documentation/Components/SectionText.tsx +0 -34
- package/site/components/Documentation/Components/SectionTextarea.tsx +0 -43
- package/site/components/Documentation/Components/SectionToggle.tsx +0 -50
- package/site/components/Documentation/Components/SectionTooltips.tsx +0 -50
- package/site/components/Documentation/Documentation.tsx +0 -302
- package/site/components/Documentation/Materials/SectionColors.css +0 -33
- package/site/components/Documentation/Materials/SectionColors.tsx +0 -197
- package/site/components/Documentation/Materials/SectionIcons.tsx +0 -106
- package/site/components/Documentation/Materials/SectionTypography.tsx +0 -143
- package/site/components/Page/Page.tsx +0 -8
- package/site/components/Page/PageTitle.tsx +0 -8
- package/site/components/PropsTable/PropsTable.tsx +0 -35
- package/site/components/PropsTable/PropsTableCellUnion.tsx +0 -29
- package/site/components/PropsTable/PropsTableRow.tsx +0 -55
- package/site/components/Root/Root.tsx +0 -89
- package/site/components/Root/index.tsx +0 -4
- package/site/components/Sandbox/Sandbox.tsx +0 -19
- package/site/components/Sandbox/SandboxFrame.css +0 -20
- package/site/components/Sandbox/SandboxFrame.tsx +0 -77
- package/site/components/Section/Section.tsx +0 -8
- package/site/components/Section/SectionSubTitle.tsx +0 -8
- package/site/components/Section/SectionTitle.tsx +0 -8
- package/site/components/SideMenu/SideMenu.css +0 -39
- package/site/components/SideMenu/SideMenu.tsx +0 -53
- package/site/components/SideMenu/SideMenuItem.tsx +0 -34
- package/site/components/Window/Window.tsx +0 -62
- package/site/index.css +0 -11
- package/site/index.html +0 -16
- package/site/index.tsx +0 -16
- package/superstatic.json +0 -13
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import CodeBlock from '../../CodeBlock/CodeBlock';
|
|
3
|
-
import SandboxFrame from '../../Sandbox/SandboxFrame';
|
|
4
|
-
import Section from '../../Section/Section';
|
|
5
|
-
import Window from '../../Window/Window';
|
|
6
|
-
|
|
7
|
-
const SectionAddonBeam = () => {
|
|
8
|
-
return (
|
|
9
|
-
<Section>
|
|
10
|
-
<Window
|
|
11
|
-
backgroundColor="gray-1"
|
|
12
|
-
borderColor="gray-2"
|
|
13
|
-
borderWidth="x1"
|
|
14
|
-
elevation="x2"
|
|
15
|
-
textColor="grape-5"
|
|
16
|
-
title="Responsive AddonBeam"
|
|
17
|
-
>
|
|
18
|
-
<SandboxFrame minHeight="200px" src="/sandbox/addonbeam" />
|
|
19
|
-
</Window>
|
|
20
|
-
|
|
21
|
-
<CodeBlock title="AddonBeam usage example">{`const Component = () => {
|
|
22
|
-
const match = useMediaQuery(['900px']);
|
|
23
|
-
const [isHamburgerIconActive, setIsHamburgerIconActive] = useState(false);
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<AddonBeam
|
|
27
|
-
addonIcon="Deployment"
|
|
28
|
-
addonName="Ship"
|
|
29
|
-
appImage="https://app.images.com/app-image.png"
|
|
30
|
-
appLink="https://bitrise.io"
|
|
31
|
-
appName="App name this long"
|
|
32
|
-
backgroundColor="grape-4"
|
|
33
|
-
isHamburgerIconActive={ isHamburgerIconActive }
|
|
34
|
-
isInResponsiveView={ !match('900px') }
|
|
35
|
-
onHamburgerIconClick={ () => setIsHamburgerIconActive(!isHamburgerIconActive) }
|
|
36
|
-
textColor="gray-1">
|
|
37
|
-
<AddonBeamLink href="" icon="Settings">
|
|
38
|
-
Settings
|
|
39
|
-
</AddonBeamLink>
|
|
40
|
-
</AddonBeam>
|
|
41
|
-
);
|
|
42
|
-
};`}</CodeBlock>
|
|
43
|
-
</Section>
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export default SectionAddonBeam;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { hooks, AddonBeam, AddonBeamLink } from '@bitrise/bitkit';
|
|
3
|
-
|
|
4
|
-
const { useState } = React;
|
|
5
|
-
const { useMediaQuery } = hooks;
|
|
6
|
-
|
|
7
|
-
const SectionAddonBeamSandbox = () => {
|
|
8
|
-
const match = useMediaQuery(['640px']);
|
|
9
|
-
const [isHamburgerIconActive, setIsHamburgerIconActive] = useState(false);
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<AddonBeam
|
|
13
|
-
addonIcon="Deployment"
|
|
14
|
-
addonName="Ship"
|
|
15
|
-
appImage="https://bitrise-steplib-collection.s3.amazonaws.com/steps/deploy-to-bitrise-io/assets/icon.svg"
|
|
16
|
-
appLink="https://bitrise.io"
|
|
17
|
-
appName="App name this long"
|
|
18
|
-
backgroundColor="grape-4"
|
|
19
|
-
isBeta
|
|
20
|
-
isHamburgerIconActive={isHamburgerIconActive}
|
|
21
|
-
isInResponsiveView={!match('640px')}
|
|
22
|
-
onHamburgerIconClick={() => setIsHamburgerIconActive(!isHamburgerIconActive)}
|
|
23
|
-
textColor="gray-1"
|
|
24
|
-
>
|
|
25
|
-
<AddonBeamLink href="" icon="Settings">
|
|
26
|
-
Settings
|
|
27
|
-
</AddonBeamLink>
|
|
28
|
-
</AddonBeam>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export default SectionAddonBeamSandbox;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AddonFooter, Base } from '@bitrise/bitkit';
|
|
3
|
-
import CodeBlock from '../../CodeBlock/CodeBlock';
|
|
4
|
-
import Section from '../../Section/Section';
|
|
5
|
-
|
|
6
|
-
const SectionAddonFooter = () => {
|
|
7
|
-
return (
|
|
8
|
-
<Section>
|
|
9
|
-
<Base paddingVertical="x12">
|
|
10
|
-
<AddonFooter addonName="Ship" />
|
|
11
|
-
</Base>
|
|
12
|
-
|
|
13
|
-
<CodeBlock title="AddonFooter Usage Example">
|
|
14
|
-
{`const Component = () => (
|
|
15
|
-
<AddonFooter addonName="Ship" />
|
|
16
|
-
);`}
|
|
17
|
-
</CodeBlock>
|
|
18
|
-
</Section>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default SectionAddonFooter;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DocumentationObject, FlowElementsType, FlowLiteralType } from 'react-docgen';
|
|
3
|
-
import { Appear, Base, Flex, Grid, Icon, Text, Toggle, TypeAppearAnimationName } from '@bitrise/bitkit';
|
|
4
|
-
import documentation from '../../../../documentation.json';
|
|
5
|
-
import CodeBlock from '../../CodeBlock/CodeBlock';
|
|
6
|
-
import Section from '../../Section/Section';
|
|
7
|
-
|
|
8
|
-
const { useState } = React;
|
|
9
|
-
const AppearDocs: DocumentationObject = documentation.Appear;
|
|
10
|
-
const animationElements =
|
|
11
|
-
AppearDocs.props &&
|
|
12
|
-
AppearDocs.props &&
|
|
13
|
-
AppearDocs.props.animation &&
|
|
14
|
-
AppearDocs.props.animation.flowType &&
|
|
15
|
-
((AppearDocs.props.animation.flowType as FlowElementsType).elements as FlowLiteralType[]);
|
|
16
|
-
|
|
17
|
-
const SectionAppear = () => {
|
|
18
|
-
const [visible, setVisible] = useState(true);
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<Section>
|
|
22
|
-
<Base margin="x6">
|
|
23
|
-
<Grid alignChildren="middle" gap="x2" repeatWidthMin="12rem">
|
|
24
|
-
{animationElements &&
|
|
25
|
-
animationElements.map(({ value }, i) => (
|
|
26
|
-
<Flex alignChildren="middle" direction="vertical" key={value} padding="x6">
|
|
27
|
-
<Appear
|
|
28
|
-
animation={value.slice(1, -1) as TypeAppearAnimationName}
|
|
29
|
-
duration="base"
|
|
30
|
-
margin="x2"
|
|
31
|
-
visible={visible}
|
|
32
|
-
>
|
|
33
|
-
<Icon name="Bitbot" size="3rem" textColor={i % 2 ? 'grape-2' : 'grape-3'} />
|
|
34
|
-
</Appear>
|
|
35
|
-
|
|
36
|
-
<Text margin="x2">{value}</Text>
|
|
37
|
-
</Flex>
|
|
38
|
-
))}
|
|
39
|
-
</Grid>
|
|
40
|
-
</Base>
|
|
41
|
-
|
|
42
|
-
<Flex alignChildren="middle" direction="vertical">
|
|
43
|
-
<Flex>
|
|
44
|
-
<Toggle checked={visible} onChange={() => setVisible(!visible)}>
|
|
45
|
-
Visible
|
|
46
|
-
</Toggle>
|
|
47
|
-
</Flex>
|
|
48
|
-
</Flex>
|
|
49
|
-
|
|
50
|
-
<CodeBlock title="Appear Usage Example">{`const Component = () => (
|
|
51
|
-
<Appear animation="FadeSlideUp" duration="slow">
|
|
52
|
-
<Icon name="Bitbot" size="3rem" textColor="grape-3"></Icon>
|
|
53
|
-
</Appear>
|
|
54
|
-
);`}</CodeBlock>
|
|
55
|
-
</Section>
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export default SectionAppear;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Base, Avatar, Flex } from '@bitrise/bitkit';
|
|
3
|
-
import Section from '../../Section/Section';
|
|
4
|
-
import SectionSubTitle from '../../Section/SectionSubTitle';
|
|
5
|
-
import CodeBlock from '../../CodeBlock/CodeBlock';
|
|
6
|
-
|
|
7
|
-
const SectionBadge = () => {
|
|
8
|
-
const url = 'https://bitrise-public-content-production.s3.amazonaws.com/org-icons/default_avatar-02.png';
|
|
9
|
-
return (
|
|
10
|
-
<Section>
|
|
11
|
-
<Base margin="x6">
|
|
12
|
-
<SectionSubTitle>Avatar with URL</SectionSubTitle>
|
|
13
|
-
<Flex alignChildrenVertical="middle" direction="horizontal" gap="x2">
|
|
14
|
-
<Avatar name="Test User" size="4rem" url={url} />
|
|
15
|
-
<Avatar name="Test User" size="3rem" url={url} />
|
|
16
|
-
<Avatar name="Test User" size="2rem" url={url} />
|
|
17
|
-
</Flex>
|
|
18
|
-
</Base>
|
|
19
|
-
|
|
20
|
-
<Base margin="x6">
|
|
21
|
-
<SectionSubTitle>Avatar placeholder (no URL)</SectionSubTitle>
|
|
22
|
-
<Flex direction="horizontal" gap="x2">
|
|
23
|
-
<Avatar name="placeholder" size="40px" />
|
|
24
|
-
<Avatar name="another example" size="40px" />
|
|
25
|
-
<Avatar name="bitrise" size="40px" />
|
|
26
|
-
</Flex>
|
|
27
|
-
</Base>
|
|
28
|
-
|
|
29
|
-
<Base margin="x6">
|
|
30
|
-
<SectionSubTitle>Border radius variations</SectionSubTitle>
|
|
31
|
-
<Flex direction="horizontal" gap="x2">
|
|
32
|
-
<Avatar borderRadius="x1" name="placeholder" size="40px" />
|
|
33
|
-
<Avatar borderRadius="x1" name="placeholder" size="40px" url={url} />
|
|
34
|
-
<Avatar borderRadius="x2" name="placeholder" size="40px" />
|
|
35
|
-
<Avatar borderRadius="x2" name="placeholder" size="40px" url={url} />
|
|
36
|
-
<Avatar borderRadius="rounded" name="placeholder" size="40px" />
|
|
37
|
-
<Avatar borderRadius="rounded" name="placeholder" size="40px" url={url} />
|
|
38
|
-
</Flex>
|
|
39
|
-
</Base>
|
|
40
|
-
|
|
41
|
-
<CodeBlock title="Badge Usage Example">
|
|
42
|
-
{`const Component = () => (
|
|
43
|
-
<Avatar name="Bitrise" url="https://app.bitrise.io/assets/images/hero/cat-illustration.png" size="3rem" />
|
|
44
|
-
);`}
|
|
45
|
-
</CodeBlock>
|
|
46
|
-
</Section>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export default SectionBadge;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Base, Badge } from '@bitrise/bitkit';
|
|
3
|
-
import CodeBlock from '../../CodeBlock/CodeBlock';
|
|
4
|
-
import Section from '../../Section/Section';
|
|
5
|
-
|
|
6
|
-
const SectionBadge = () => {
|
|
7
|
-
return (
|
|
8
|
-
<Section>
|
|
9
|
-
<Base margin="x1">
|
|
10
|
-
<Badge backgroundColor="eggplant" textColor="gray-1">
|
|
11
|
-
Coming soon
|
|
12
|
-
</Badge>
|
|
13
|
-
</Base>
|
|
14
|
-
|
|
15
|
-
<Base margin="x1">
|
|
16
|
-
<Badge backgroundColor="blue-3" textColor="gray-1">
|
|
17
|
-
Beta
|
|
18
|
-
</Badge>
|
|
19
|
-
</Base>
|
|
20
|
-
|
|
21
|
-
<Base margin="x1">
|
|
22
|
-
<Badge backgroundColor="green-3" textColor="gray-1">
|
|
23
|
-
New feature
|
|
24
|
-
</Badge>
|
|
25
|
-
</Base>
|
|
26
|
-
|
|
27
|
-
<CodeBlock title="Badge Usage Example">{`const Component = () => (
|
|
28
|
-
<Badge
|
|
29
|
-
backgroundColor="eggplant"
|
|
30
|
-
textColor="gray-1">
|
|
31
|
-
Coming soon
|
|
32
|
-
</Badge>
|
|
33
|
-
);`}</CodeBlock>
|
|
34
|
-
</Section>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default SectionBadge;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import CodeBlock from '../../CodeBlock/CodeBlock';
|
|
3
|
-
import Section from '../../Section/Section';
|
|
4
|
-
|
|
5
|
-
const SectionBase = () => {
|
|
6
|
-
return (
|
|
7
|
-
<Section>
|
|
8
|
-
<CodeBlock title="Base Usage Example">{`const Component = () => (
|
|
9
|
-
<Base backgroundColor="grape-5" borderRadius="x2" padding="x6" textColor="gray-1">
|
|
10
|
-
Some content
|
|
11
|
-
</Base>
|
|
12
|
-
);`}</CodeBlock>
|
|
13
|
-
</Section>
|
|
14
|
-
);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default SectionBase;
|
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Base, Button, Buttons, ColorButton, Icon, Tab, Tabs, Text, Ribbon } from '@bitrise/bitkit';
|
|
3
|
-
import CodeBlock from '../../CodeBlock/CodeBlock';
|
|
4
|
-
import Section from '../../Section/Section';
|
|
5
|
-
import SectionSubTitle from '../../Section/SectionSubTitle';
|
|
6
|
-
|
|
7
|
-
const SectionButtons = () => {
|
|
8
|
-
const [selectedTab, setSelectedTab] = React.useState(1);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<Section>
|
|
12
|
-
<Tabs gap="x6" margin="x8">
|
|
13
|
-
<Tab active={selectedTab === 1} onClick={() => setSelectedTab(1)}>
|
|
14
|
-
Variants & Sizes
|
|
15
|
-
</Tab>
|
|
16
|
-
|
|
17
|
-
<Tab active={selectedTab === 2} onClick={() => setSelectedTab(2)}>
|
|
18
|
-
With Left & Right Icons
|
|
19
|
-
</Tab>
|
|
20
|
-
|
|
21
|
-
<Tab active={selectedTab === 3} onClick={() => setSelectedTab(3)}>
|
|
22
|
-
Color Button
|
|
23
|
-
</Tab>
|
|
24
|
-
</Tabs>
|
|
25
|
-
|
|
26
|
-
{selectedTab === 1 && (
|
|
27
|
-
<>
|
|
28
|
-
<Base margin="x12">
|
|
29
|
-
<SectionSubTitle>Default Variant Button</SectionSubTitle>
|
|
30
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
31
|
-
<Button level="primary" size="small">
|
|
32
|
-
Primary
|
|
33
|
-
</Button>
|
|
34
|
-
<Button disabled level="primary" size="small">
|
|
35
|
-
Disabled
|
|
36
|
-
</Button>
|
|
37
|
-
<Button level="primary" size="medium">
|
|
38
|
-
Primary
|
|
39
|
-
</Button>
|
|
40
|
-
<Button disabled level="primary" size="medium">
|
|
41
|
-
Disabled
|
|
42
|
-
</Button>
|
|
43
|
-
<Button level="primary" size="large">
|
|
44
|
-
Primary
|
|
45
|
-
</Button>
|
|
46
|
-
<Button disabled level="primary" size="large">
|
|
47
|
-
Disabled
|
|
48
|
-
</Button>
|
|
49
|
-
</Buttons>
|
|
50
|
-
|
|
51
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
52
|
-
<Button level="secondary" size="small">
|
|
53
|
-
Secondary
|
|
54
|
-
</Button>
|
|
55
|
-
<Button disabled level="secondary" size="small">
|
|
56
|
-
Disabled
|
|
57
|
-
</Button>
|
|
58
|
-
<Button level="secondary" size="medium">
|
|
59
|
-
Secondary
|
|
60
|
-
</Button>
|
|
61
|
-
<Button disabled level="secondary" size="medium">
|
|
62
|
-
Disabled
|
|
63
|
-
</Button>
|
|
64
|
-
<Button level="secondary" size="large">
|
|
65
|
-
Secondary
|
|
66
|
-
</Button>
|
|
67
|
-
<Button disabled level="secondary" size="large">
|
|
68
|
-
Disabled
|
|
69
|
-
</Button>
|
|
70
|
-
</Buttons>
|
|
71
|
-
|
|
72
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
73
|
-
<Button level="tertiary" size="small">
|
|
74
|
-
Tertiary
|
|
75
|
-
</Button>
|
|
76
|
-
<Button disabled level="tertiary" size="small">
|
|
77
|
-
Disabled
|
|
78
|
-
</Button>
|
|
79
|
-
<Button level="tertiary" size="medium">
|
|
80
|
-
Tertiary
|
|
81
|
-
</Button>
|
|
82
|
-
<Button disabled level="tertiary" size="medium">
|
|
83
|
-
Disabled
|
|
84
|
-
</Button>
|
|
85
|
-
<Button level="tertiary" size="large">
|
|
86
|
-
Tertiary
|
|
87
|
-
</Button>
|
|
88
|
-
<Button disabled level="tertiary" size="large">
|
|
89
|
-
Disabled
|
|
90
|
-
</Button>
|
|
91
|
-
</Buttons>
|
|
92
|
-
</Base>
|
|
93
|
-
|
|
94
|
-
<Base margin="x12">
|
|
95
|
-
<SectionSubTitle>Danger Variant Button</SectionSubTitle>
|
|
96
|
-
|
|
97
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
98
|
-
<Button level="primary" size="small" variant="danger">
|
|
99
|
-
Primary
|
|
100
|
-
</Button>
|
|
101
|
-
<Button disabled level="primary" size="small" variant="danger">
|
|
102
|
-
Disabled
|
|
103
|
-
</Button>
|
|
104
|
-
<Button level="primary" size="medium" variant="danger">
|
|
105
|
-
Primary
|
|
106
|
-
</Button>
|
|
107
|
-
<Button disabled level="primary" size="medium" variant="danger">
|
|
108
|
-
Disabled
|
|
109
|
-
</Button>
|
|
110
|
-
<Button level="primary" size="large" variant="danger">
|
|
111
|
-
Primary
|
|
112
|
-
</Button>
|
|
113
|
-
<Button disabled level="primary" size="large" variant="danger">
|
|
114
|
-
Disabled
|
|
115
|
-
</Button>
|
|
116
|
-
</Buttons>
|
|
117
|
-
|
|
118
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
119
|
-
<Button level="secondary" size="small" variant="danger">
|
|
120
|
-
Secondary
|
|
121
|
-
</Button>
|
|
122
|
-
<Button disabled level="secondary" size="small" variant="danger">
|
|
123
|
-
Disabled
|
|
124
|
-
</Button>
|
|
125
|
-
<Button level="secondary" size="medium" variant="danger">
|
|
126
|
-
Secondary
|
|
127
|
-
</Button>
|
|
128
|
-
<Button disabled level="secondary" size="medium" variant="danger">
|
|
129
|
-
Disabled
|
|
130
|
-
</Button>
|
|
131
|
-
<Button level="secondary" size="large" variant="danger">
|
|
132
|
-
Secondary
|
|
133
|
-
</Button>
|
|
134
|
-
<Button disabled level="secondary" size="large" variant="danger">
|
|
135
|
-
Disabled
|
|
136
|
-
</Button>
|
|
137
|
-
</Buttons>
|
|
138
|
-
</Base>
|
|
139
|
-
|
|
140
|
-
<CodeBlock title="Button Usage Example">{`const Component = () => (
|
|
141
|
-
<Buttons>
|
|
142
|
-
<Button level="secondary">Secondary</Button>
|
|
143
|
-
<Button level="primary" variant="danger">Danger Action</Button>
|
|
144
|
-
</Buttons>
|
|
145
|
-
);`}</CodeBlock>
|
|
146
|
-
</>
|
|
147
|
-
)}
|
|
148
|
-
|
|
149
|
-
{selectedTab === 2 && (
|
|
150
|
-
<>
|
|
151
|
-
<Buttons margin="x4">
|
|
152
|
-
<Button level="primary" size="large">
|
|
153
|
-
<Icon name="Group" />
|
|
154
|
-
<Text>On the left</Text>
|
|
155
|
-
</Button>
|
|
156
|
-
|
|
157
|
-
<Button level="secondary" size="large">
|
|
158
|
-
<Text>On the right</Text>
|
|
159
|
-
<Icon name="Group" />
|
|
160
|
-
</Button>
|
|
161
|
-
</Buttons>
|
|
162
|
-
|
|
163
|
-
<Buttons margin="x4">
|
|
164
|
-
<Button level="primary">
|
|
165
|
-
<Icon name="Group" />
|
|
166
|
-
<Text>On the left</Text>
|
|
167
|
-
</Button>
|
|
168
|
-
|
|
169
|
-
<Button level="secondary">
|
|
170
|
-
<Text>On the right</Text>
|
|
171
|
-
<Icon name="Group" />
|
|
172
|
-
</Button>
|
|
173
|
-
</Buttons>
|
|
174
|
-
|
|
175
|
-
<Buttons margin="x4">
|
|
176
|
-
<Button level="primary" size="small">
|
|
177
|
-
<Icon name="Group" />
|
|
178
|
-
<Text>On the left</Text>
|
|
179
|
-
</Button>
|
|
180
|
-
|
|
181
|
-
<Button level="secondary" size="small">
|
|
182
|
-
<Text>On the right</Text>
|
|
183
|
-
<Icon name="Group" />
|
|
184
|
-
</Button>
|
|
185
|
-
</Buttons>
|
|
186
|
-
|
|
187
|
-
<CodeBlock title="Button with Icon usage example">{`const Component = () => (
|
|
188
|
-
<Buttons>
|
|
189
|
-
<Button level="primary" size="small">
|
|
190
|
-
<Icon name="Group" />
|
|
191
|
-
<Text>On the left</Text>
|
|
192
|
-
</Button>
|
|
193
|
-
|
|
194
|
-
<Button level="secondary" size="small">
|
|
195
|
-
<Text>On the right</Text>
|
|
196
|
-
<Icon name="Group" />
|
|
197
|
-
</Button>
|
|
198
|
-
</Buttons>
|
|
199
|
-
);`}</CodeBlock>
|
|
200
|
-
</>
|
|
201
|
-
)}
|
|
202
|
-
|
|
203
|
-
{selectedTab === 3 && (
|
|
204
|
-
<>
|
|
205
|
-
<Ribbon margin="x6" type="inform">
|
|
206
|
-
<SectionSubTitle>Blue</SectionSubTitle>
|
|
207
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
208
|
-
<ColorButton color="blue" size="small">
|
|
209
|
-
Blue
|
|
210
|
-
</ColorButton>
|
|
211
|
-
<ColorButton color="blue" disabled size="small">
|
|
212
|
-
Disabled
|
|
213
|
-
</ColorButton>
|
|
214
|
-
<ColorButton color="blue" size="medium">
|
|
215
|
-
Blue
|
|
216
|
-
</ColorButton>
|
|
217
|
-
<ColorButton color="blue" disabled size="medium">
|
|
218
|
-
Disabled
|
|
219
|
-
</ColorButton>
|
|
220
|
-
<ColorButton color="blue" size="large">
|
|
221
|
-
Blue
|
|
222
|
-
</ColorButton>
|
|
223
|
-
<ColorButton color="blue" disabled size="large">
|
|
224
|
-
Disabled
|
|
225
|
-
</ColorButton>
|
|
226
|
-
</Buttons>
|
|
227
|
-
</Ribbon>
|
|
228
|
-
|
|
229
|
-
<Ribbon margin="x6" type="progress">
|
|
230
|
-
<SectionSubTitle>Grape</SectionSubTitle>
|
|
231
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
232
|
-
<ColorButton color="grape" size="small">
|
|
233
|
-
Grape
|
|
234
|
-
</ColorButton>
|
|
235
|
-
<ColorButton color="grape" disabled size="small">
|
|
236
|
-
Disabled
|
|
237
|
-
</ColorButton>
|
|
238
|
-
<ColorButton color="grape" size="medium">
|
|
239
|
-
Grape
|
|
240
|
-
</ColorButton>
|
|
241
|
-
<ColorButton color="grape" disabled size="medium">
|
|
242
|
-
Disabled
|
|
243
|
-
</ColorButton>
|
|
244
|
-
<ColorButton color="grape" size="large">
|
|
245
|
-
Grape
|
|
246
|
-
</ColorButton>
|
|
247
|
-
<ColorButton color="grape" disabled size="large">
|
|
248
|
-
Disabled
|
|
249
|
-
</ColorButton>
|
|
250
|
-
</Buttons>
|
|
251
|
-
</Ribbon>
|
|
252
|
-
|
|
253
|
-
<Ribbon margin="x6" type="success">
|
|
254
|
-
<SectionSubTitle>Green</SectionSubTitle>
|
|
255
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
256
|
-
<ColorButton color="green" size="small">
|
|
257
|
-
Green
|
|
258
|
-
</ColorButton>
|
|
259
|
-
<ColorButton color="green" disabled size="small">
|
|
260
|
-
Disabled
|
|
261
|
-
</ColorButton>
|
|
262
|
-
<ColorButton color="green" size="medium">
|
|
263
|
-
Green
|
|
264
|
-
</ColorButton>
|
|
265
|
-
<ColorButton color="green" disabled size="medium">
|
|
266
|
-
Disabled
|
|
267
|
-
</ColorButton>
|
|
268
|
-
<ColorButton color="green" size="large">
|
|
269
|
-
Green
|
|
270
|
-
</ColorButton>
|
|
271
|
-
<ColorButton color="green" disabled size="large">
|
|
272
|
-
Disabled
|
|
273
|
-
</ColorButton>
|
|
274
|
-
</Buttons>
|
|
275
|
-
</Ribbon>
|
|
276
|
-
|
|
277
|
-
<Ribbon margin="x6" type="alert">
|
|
278
|
-
<SectionSubTitle>Red</SectionSubTitle>
|
|
279
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
280
|
-
<ColorButton color="red" size="small">
|
|
281
|
-
Red
|
|
282
|
-
</ColorButton>
|
|
283
|
-
<ColorButton color="red" disabled size="small">
|
|
284
|
-
Disabled
|
|
285
|
-
</ColorButton>
|
|
286
|
-
<ColorButton color="red" size="medium">
|
|
287
|
-
Red
|
|
288
|
-
</ColorButton>
|
|
289
|
-
<ColorButton color="red" disabled size="medium">
|
|
290
|
-
Disabled
|
|
291
|
-
</ColorButton>
|
|
292
|
-
<ColorButton color="red" size="large">
|
|
293
|
-
Red
|
|
294
|
-
</ColorButton>
|
|
295
|
-
<ColorButton color="red" disabled size="large">
|
|
296
|
-
Disabled
|
|
297
|
-
</ColorButton>
|
|
298
|
-
</Buttons>
|
|
299
|
-
</Ribbon>
|
|
300
|
-
|
|
301
|
-
<Base backgroundColor="grape-4" margin="x6" paddingHorizontal="x6" paddingVertical="x4" textColor="white">
|
|
302
|
-
<SectionSubTitle>White</SectionSubTitle>
|
|
303
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
304
|
-
<ColorButton color="white" size="small">
|
|
305
|
-
White
|
|
306
|
-
</ColorButton>
|
|
307
|
-
<ColorButton color="white" disabled size="small">
|
|
308
|
-
Disabled
|
|
309
|
-
</ColorButton>
|
|
310
|
-
<ColorButton color="white" size="medium">
|
|
311
|
-
White
|
|
312
|
-
</ColorButton>
|
|
313
|
-
<ColorButton color="white" disabled size="medium">
|
|
314
|
-
Disabled
|
|
315
|
-
</ColorButton>
|
|
316
|
-
<ColorButton color="white" size="large">
|
|
317
|
-
White
|
|
318
|
-
</ColorButton>
|
|
319
|
-
<ColorButton color="white" disabled size="large">
|
|
320
|
-
Disabled
|
|
321
|
-
</ColorButton>
|
|
322
|
-
</Buttons>
|
|
323
|
-
</Base>
|
|
324
|
-
|
|
325
|
-
<Ribbon margin="x6" type="warning">
|
|
326
|
-
<SectionSubTitle>Yellow</SectionSubTitle>
|
|
327
|
-
<Buttons alignChildrenVertical="end" margin="x3">
|
|
328
|
-
<ColorButton color="yellow" size="small">
|
|
329
|
-
Yellow
|
|
330
|
-
</ColorButton>
|
|
331
|
-
<ColorButton color="yellow" disabled size="small">
|
|
332
|
-
Disabled
|
|
333
|
-
</ColorButton>
|
|
334
|
-
<ColorButton color="yellow" size="medium">
|
|
335
|
-
Yellow
|
|
336
|
-
</ColorButton>
|
|
337
|
-
<ColorButton color="yellow" disabled size="medium">
|
|
338
|
-
Disabled
|
|
339
|
-
</ColorButton>
|
|
340
|
-
<ColorButton color="yellow" size="large">
|
|
341
|
-
Yellow
|
|
342
|
-
</ColorButton>
|
|
343
|
-
<ColorButton color="yellow" disabled size="large">
|
|
344
|
-
Disabled
|
|
345
|
-
</ColorButton>
|
|
346
|
-
</Buttons>
|
|
347
|
-
</Ribbon>
|
|
348
|
-
|
|
349
|
-
<CodeBlock title="Button with Icon usage example">{`const Component = () => (
|
|
350
|
-
<Buttons>
|
|
351
|
-
<ColorButton color="blue" size="small">Blue</ColorButton>
|
|
352
|
-
<ColorButton color="green" size="medium">Green</ColorButton>
|
|
353
|
-
</Buttons>
|
|
354
|
-
);`}</CodeBlock>
|
|
355
|
-
</>
|
|
356
|
-
)}
|
|
357
|
-
</Section>
|
|
358
|
-
);
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
export default SectionButtons;
|