@bitrise/bitkit 10.0.1 → 10.1.0-alpha-chakra.2
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 +23 -57
- package/src/Components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/src/Components/Dialog/Dialog.tsx +2 -1
- package/src/Components/EmptyState/EmptyState.theme.ts +1 -1
- package/src/Components/Tabs/Tab.tsx +2 -24
- package/src/Foundations/Breakpoints/Breakpoints.ts +9 -3
- package/src/Old/DatePicker/DatePicker.tsx +6 -6
- package/src/Old/DatePicker/DatePickerMonth.tsx +7 -7
- package/src/Old/Dropdown/Dropdown.tsx +3 -5
- package/src/Old/Dropdown/DropdownButton.tsx +2 -16
- package/src/Old/Dropdown/DropdownMenuItem.tsx +1 -2
- package/src/Old/Dropdown/DropdownMenuItemGroup.tsx +2 -2
- package/src/Old/Input/InputLabel.tsx +5 -3
- package/src/Old/Notification/Notification.tsx +3 -4
- package/src/Old/Notification/__snapshots__/Notification.test.tsx.snap +8 -12
- package/src/Old/Progress/ProgressBitbot.tsx +3 -3
- package/src/Old/Ribbon/Ribbon.tsx +4 -4
- package/src/Old/Status/Status404.tsx +3 -3
- package/src/Old/Status/Status500.tsx +4 -4
- package/src/Old/Table/TableHeaderCell.tsx +1 -1
- package/src/Old/Text/TextSizes.css +0 -39
- package/src/Old/Toggle/Toggle.tsx +1 -1
- package/src/Old/hooks/index.ts +0 -1
- package/src/Old/variables.css +0 -1
- package/src/Old/variables.ts +0 -3
- package/src/index.ts +2 -3
- package/src/old.ts +0 -64
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Components/Transitions/Fade.stories.tsx +0 -26
- package/src/Components/Transitions/Fade.tsx +0 -12
- package/src/Old/AddonBeam/AddonBeam.css +0 -16
- package/src/Old/AddonBeam/AddonBeam.tsx +0 -117
- package/src/Old/AddonBeam/AddonBeamLink.tsx +0 -37
- package/src/Old/AddonFooter/AddonFooter.tsx +0 -24
- package/src/Old/AppLayout/AppLayout.css +0 -45
- package/src/Old/AppLayout/AppLayout.tsx +0 -21
- package/src/Old/AppLayout/AppLayoutBody.tsx +0 -10
- package/src/Old/AppLayout/AppLayoutHeader.tsx +0 -10
- package/src/Old/AppLayout/AppLayoutMain.tsx +0 -10
- package/src/Old/AppLayout/AppLayoutSidebar.tsx +0 -10
- package/src/Old/Avatar/Avatar.css +0 -4
- package/src/Old/Avatar/Avatar.tsx +0 -64
- package/src/Old/Avatar/avatarColors.ts +0 -26
- package/src/Old/Bounds/Bounds.tsx +0 -20
- package/src/Old/Button/Button.css +0 -249
- package/src/Old/Button/Button.test.tsx +0 -29
- package/src/Old/Button/Button.tsx +0 -55
- package/src/Old/Button/ButtonSize.ts +0 -3
- package/src/Old/Button/Buttons.test.tsx +0 -42
- package/src/Old/Button/Buttons.tsx +0 -34
- package/src/Old/Button/__snapshots__/Button.test.tsx.snap +0 -73
- package/src/Old/Button/__snapshots__/Buttons.test.tsx.snap +0 -45
- package/src/Old/ExternalLink/ExternalLink.tsx +0 -24
- package/src/Old/Icon/Icon.css +0 -4
- package/src/Old/Icon/Icon.tsx +0 -32
- package/src/Old/Icon/tsx/IconsAddOns.tsx +0 -14
- package/src/Old/Icon/tsx/IconsAddOnsColorTuorqouise.tsx +0 -20
- package/src/Old/Icon/tsx/IconsAddOnsColorViolet.tsx +0 -20
- package/src/Old/Icon/tsx/IconsAddOnsWhite.tsx +0 -20
- package/src/Old/Icon/tsx/IconsApp.tsx +0 -16
- package/src/Old/Icon/tsx/IconsArrowBack.tsx +0 -14
- package/src/Old/Icon/tsx/IconsArrowDown.tsx +0 -21
- package/src/Old/Icon/tsx/IconsArrowForward.tsx +0 -16
- package/src/Old/Icon/tsx/IconsArrowQuit.tsx +0 -14
- package/src/Old/Icon/tsx/IconsArrowUp.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBackArrow.tsx +0 -13
- package/src/Old/Icon/tsx/IconsBell.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBitbot.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBitbotFailed.tsx +0 -18
- package/src/Old/Icon/tsx/IconsBitbucket.tsx +0 -26
- package/src/Old/Icon/tsx/IconsBitbucketFill.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBitriseCertified.tsx +0 -19
- package/src/Old/Icon/tsx/IconsBook.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBranchBranch.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBranchCommit.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBranchPull.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBranchPush.tsx +0 -21
- package/src/Old/Icon/tsx/IconsBranchTag.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBug.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBuild.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBuildstatusAborted.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBuildstatusAbortedSolid.tsx +0 -15
- package/src/Old/Icon/tsx/IconsBuildstatusFailed.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBuildstatusFailedSolid.tsx +0 -15
- package/src/Old/Icon/tsx/IconsBuildstatusLoading.tsx +0 -13
- package/src/Old/Icon/tsx/IconsBuildstatusLoadingAnimated.tsx +0 -31
- package/src/Old/Icon/tsx/IconsBuildstatusLoadingeeehh.tsx +0 -13
- package/src/Old/Icon/tsx/IconsBuildstatusLoadingeeehhWhite.tsx +0 -13
- package/src/Old/Icon/tsx/IconsBuildstatusNeverbuilt.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBuildstatusSuccessful.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBuildstatusSuccessfulSolid.tsx +0 -15
- package/src/Old/Icon/tsx/IconsCalendar.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChain.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChangePlan.tsx +0 -14
- package/src/Old/Icon/tsx/IconsChat.tsx +0 -14
- package/src/Old/Icon/tsx/IconsChatMessage.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChevronDown.tsx +0 -13
- package/src/Old/Icon/tsx/IconsChevronLeft.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChevronRight.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChevronUp.tsx +0 -15
- package/src/Old/Icon/tsx/IconsClock.tsx +0 -16
- package/src/Old/Icon/tsx/IconsCloseSmall.tsx +0 -16
- package/src/Old/Icon/tsx/IconsCode.tsx +0 -16
- package/src/Old/Icon/tsx/IconsCoffee.tsx +0 -16
- package/src/Old/Icon/tsx/IconsConsole.tsx +0 -16
- package/src/Old/Icon/tsx/IconsCredit.tsx +0 -21
- package/src/Old/Icon/tsx/IconsCreditcard.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDeleteNope.tsx +0 -15
- package/src/Old/Icon/tsx/IconsDeployment.tsx +0 -14
- package/src/Old/Icon/tsx/IconsDoc.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDollars.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDownload.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDropdownArrows.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDudes.tsx +0 -14
- package/src/Old/Icon/tsx/IconsDuplicate.tsx +0 -14
- package/src/Old/Icon/tsx/IconsEnterprise.tsx +0 -19
- package/src/Old/Icon/tsx/IconsErrorGeneral.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFileDoc.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFilePdf.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFilePlist.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFileZip.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFilter.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFlag.tsx +0 -13
- package/src/Old/Icon/tsx/IconsFolder.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFullscreen.tsx +0 -14
- package/src/Old/Icon/tsx/IconsFullscreenExit.tsx +0 -14
- package/src/Old/Icon/tsx/IconsGauge.tsx +0 -16
- package/src/Old/Icon/tsx/IconsGithub.tsx +0 -14
- package/src/Old/Icon/tsx/IconsGitlab.tsx +0 -20
- package/src/Old/Icon/tsx/IconsGitlabFill.tsx +0 -14
- package/src/Old/Icon/tsx/IconsGlobe.tsx +0 -16
- package/src/Old/Icon/tsx/IconsGroup.tsx +0 -14
- package/src/Old/Icon/tsx/IconsHeart.tsx +0 -14
- package/src/Old/Icon/tsx/IconsHidePassword.tsx +0 -19
- package/src/Old/Icon/tsx/IconsHistory.tsx +0 -14
- package/src/Old/Icon/tsx/IconsImage.tsx +0 -14
- package/src/Old/Icon/tsx/IconsInfo.tsx +0 -14
- package/src/Old/Icon/tsx/IconsIntegrations.tsx +0 -14
- package/src/Old/Icon/tsx/IconsInteraction.tsx +0 -14
- package/src/Old/Icon/tsx/IconsInvoice.tsx +0 -16
- package/src/Old/Icon/tsx/IconsJapanese.tsx +0 -15
- package/src/Old/Icon/tsx/IconsKey.tsx +0 -14
- package/src/Old/Icon/tsx/IconsLaptop.tsx +0 -13
- package/src/Old/Icon/tsx/IconsLaptops.tsx +0 -16
- package/src/Old/Icon/tsx/IconsLightbulb.tsx +0 -16
- package/src/Old/Icon/tsx/IconsLock.tsx +0 -16
- package/src/Old/Icon/tsx/IconsLogin.tsx +0 -16
- package/src/Old/Icon/tsx/IconsLogout.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMagnifier.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMail.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMenuGrid.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMenuHamburger.tsx +0 -13
- package/src/Old/Icon/tsx/IconsMessage.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMinusClose.tsx +0 -10
- package/src/Old/Icon/tsx/IconsMinusRemove.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMobile.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMonitoring.tsx +0 -14
- package/src/Old/Icon/tsx/IconsMoreHorizontal.tsx +0 -13
- package/src/Old/Icon/tsx/IconsMoreVertical.tsx +0 -17
- package/src/Old/Icon/tsx/IconsNoTie.tsx +0 -14
- package/src/Old/Icon/tsx/IconsNumero.tsx +0 -16
- package/src/Old/Icon/tsx/IconsOpenInBrowser.tsx +0 -16
- package/src/Old/Icon/tsx/IconsOverview.tsx +0 -14
- package/src/Old/Icon/tsx/IconsOwner.tsx +0 -19
- package/src/Old/Icon/tsx/IconsPause.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPencil.tsx +0 -17
- package/src/Old/Icon/tsx/IconsPercent.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPerson.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsAndroid.tsx +0 -16
- package/src/Old/Icon/tsx/IconsPlatformsApple.tsx +0 -16
- package/src/Old/Icon/tsx/IconsPlatformsCordova.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsFastlane.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsFlutter.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsGo.tsx +0 -13
- package/src/Old/Icon/tsx/IconsPlatformsIonic.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsMacos.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsNodejs.tsx +0 -13
- package/src/Old/Icon/tsx/IconsPlatformsOther.tsx +0 -21
- package/src/Old/Icon/tsx/IconsPlatformsReact.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsXamarin.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlay.tsx +0 -16
- package/src/Old/Icon/tsx/IconsPlusAdd.tsx +0 -16
- package/src/Old/Icon/tsx/IconsPlusOpen.tsx +0 -13
- package/src/Old/Icon/tsx/IconsPower.tsx +0 -11
- package/src/Old/Icon/tsx/IconsRefresh.tsx +0 -13
- package/src/Old/Icon/tsx/IconsRequest.tsx +0 -14
- package/src/Old/Icon/tsx/IconsResponsiveness.tsx +0 -14
- package/src/Old/Icon/tsx/IconsSave.tsx +0 -14
- package/src/Old/Icon/tsx/IconsSecurityShield.tsx +0 -16
- package/src/Old/Icon/tsx/IconsSettings.tsx +0 -16
- package/src/Old/Icon/tsx/IconsShip.tsx +0 -14
- package/src/Old/Icon/tsx/IconsShowPassword.tsx +0 -16
- package/src/Old/Icon/tsx/IconsShuffle.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStability.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStack.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStatus.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStepThirdParty.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStepUpgrade.tsx +0 -10
- package/src/Old/Icon/tsx/IconsStepUpgradeCircle.tsx +0 -11
- package/src/Old/Icon/tsx/IconsStepVersionOk.tsx +0 -11
- package/src/Old/Icon/tsx/IconsSteps.tsx +0 -14
- package/src/Old/Icon/tsx/IconsStepsColorTuorqouise.tsx +0 -14
- package/src/Old/Icon/tsx/IconsStepsColorViolet.tsx +0 -14
- package/src/Old/Icon/tsx/IconsStepsWhite.tsx +0 -14
- package/src/Old/Icon/tsx/IconsStopwatch.tsx +0 -16
- package/src/Old/Icon/tsx/IconsSupport.tsx +0 -16
- package/src/Old/Icon/tsx/IconsSwitch.tsx +0 -13
- package/src/Old/Icon/tsx/IconsTestFailed.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestInconclusive.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestInfo.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestSkipped.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestSuccess.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestWarning.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTick.tsx +0 -13
- package/src/Old/Icon/tsx/IconsTime.tsx +0 -16
- package/src/Old/Icon/tsx/IconsTrace.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTrash.tsx +0 -16
- package/src/Old/Icon/tsx/IconsTrigger.tsx +0 -16
- package/src/Old/Icon/tsx/IconsTwitter.tsx +0 -16
- package/src/Old/Icon/tsx/IconsValidateShield.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWarning.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWebUi.tsx +0 -17
- package/src/Old/Icon/tsx/IconsWindow.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWorkflow.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWorkflowFlow.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWow.tsx +0 -16
- package/src/Old/Icon/tsx/index.ts +0 -694
- package/src/Old/Link/Link.css +0 -44
- package/src/Old/Link/Link.tsx +0 -30
- package/src/Old/Modal/Modal.css +0 -67
- package/src/Old/Modal/Modal.tsx +0 -117
- package/src/Old/Modal/ModalBody.tsx +0 -17
- package/src/Old/Modal/ModalHeader.tsx +0 -50
- package/src/Old/Modal/ModalHeaderProgress.tsx +0 -23
- package/src/Old/Modal/ModalTitle.tsx +0 -13
- package/src/Old/Progress/ProgressButtonContent.tsx +0 -35
- package/src/Old/Sidebar/Sidebar.css +0 -125
- package/src/Old/Sidebar/Sidebar.tsx +0 -25
- package/src/Old/Sidebar/SidebarHeader.tsx +0 -10
- package/src/Old/Sidebar/SidebarMenu.tsx +0 -30
- package/src/Old/Sidebar/SidebarMenuContext.ts +0 -7
- package/src/Old/Sidebar/SidebarMenuItem.tsx +0 -67
- package/src/Old/Sidebar/SidebarSubMenu.tsx +0 -33
- package/src/Old/Sidebar/SidebarSubMenuItem.tsx +0 -59
- package/src/Old/Tabs/Tab.tsx +0 -23
- package/src/Old/Tabs/Tabs.css +0 -30
- package/src/Old/Tabs/Tabs.tsx +0 -18
- package/src/Old/Tooltip/Tooltip.tsx +0 -85
- package/src/Old/hooks/useResizeObserver.ts +0 -40
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
-
import { useDisclosure } from '@chakra-ui/react';
|
|
3
|
-
import Button from '../Button/Button';
|
|
4
|
-
import Box from '../Box/Box';
|
|
5
|
-
import Fade from './Fade';
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Components/Fade',
|
|
9
|
-
component: Fade,
|
|
10
|
-
} as ComponentMeta<typeof Fade>;
|
|
11
|
-
|
|
12
|
-
export const WithProps: ComponentStory<typeof Fade> = (props) => {
|
|
13
|
-
const { isOpen, onToggle } = useDisclosure();
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<Box height="200">
|
|
17
|
-
<Button onClick={onToggle}>Toggle fade transition</Button>
|
|
18
|
-
|
|
19
|
-
<Fade in={isOpen} {...props}>
|
|
20
|
-
<Box p="32" color="neutral.10" mt="4" bg="neutral.90">
|
|
21
|
-
Fade
|
|
22
|
-
</Box>
|
|
23
|
-
</Fade>
|
|
24
|
-
</Box>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Fade as ChakraFade, FadeProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Fade is a transition component
|
|
5
|
-
*/
|
|
6
|
-
const Fade = forwardRef<FadeProps, 'div'>((props, ref) => {
|
|
7
|
-
return <ChakraFade {...props} ref={ref} />;
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export type { FadeProps };
|
|
11
|
-
|
|
12
|
-
export default Fade;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--AddonBeam--height: 3rem;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.AddonBeam {
|
|
6
|
-
min-height: var(--AddonBeam--height);
|
|
7
|
-
padding: 0.375rem 1.25rem;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.AddonBeam__link {
|
|
11
|
-
padding: 0.375rem var(--size--x2);
|
|
12
|
-
border-radius: var(--size--x2);
|
|
13
|
-
transition-property: background-color;
|
|
14
|
-
transition-duration: var(--transition-duration--base);
|
|
15
|
-
transition-timing-function: var(--transition-timing-function);
|
|
16
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TypeIconName } from '../Icon/tsx';
|
|
3
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import Hamburger from '../Hamburger/Hamburger';
|
|
5
|
-
import Icon from '../Icon/Icon';
|
|
6
|
-
import Link from '../Link/Link';
|
|
7
|
-
import Image from '../Image/Image';
|
|
8
|
-
import Text from '../Text/Text';
|
|
9
|
-
import AddonBeamLink from './AddonBeamLink';
|
|
10
|
-
import './AddonBeam.css';
|
|
11
|
-
|
|
12
|
-
export interface Props extends FlexProps {
|
|
13
|
-
/** The icon that appears to the very left of the beam that represents the add-on */
|
|
14
|
-
addonIcon: TypeIconName;
|
|
15
|
-
/** The name that appears next to the add-on icon */
|
|
16
|
-
addonName: string;
|
|
17
|
-
/** Image src for the Bitrise application */
|
|
18
|
-
appImage?: string;
|
|
19
|
-
/** Link back to the Bitrise application */
|
|
20
|
-
appLink?: string;
|
|
21
|
-
/** Name for the Bitrise application */
|
|
22
|
-
appName?: string;
|
|
23
|
-
/** Flag that indicates with a badge that the addon is in a Beta stage */
|
|
24
|
-
isBeta?: boolean;
|
|
25
|
-
/** Flag for if the Hamburger menu icon should be in an active state */
|
|
26
|
-
isHamburgerIconActive?: boolean;
|
|
27
|
-
/** */
|
|
28
|
-
isInResponsiveView?: boolean;
|
|
29
|
-
/** Event handler for when the Hamburger menu item is clicked */
|
|
30
|
-
onHamburgerIconClick?: (event: React.SyntheticEvent) => void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/** The common internal Add-on Beam for Bitrise made add-ons */
|
|
34
|
-
const AddonBeam: React.FunctionComponent<Props> = (props: Props) => {
|
|
35
|
-
const {
|
|
36
|
-
addonIcon,
|
|
37
|
-
addonName,
|
|
38
|
-
appImage,
|
|
39
|
-
appLink,
|
|
40
|
-
appName,
|
|
41
|
-
children,
|
|
42
|
-
isBeta,
|
|
43
|
-
isHamburgerIconActive,
|
|
44
|
-
isInResponsiveView,
|
|
45
|
-
onHamburgerIconClick,
|
|
46
|
-
...rest
|
|
47
|
-
} = props;
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<Flex
|
|
51
|
-
{...rest}
|
|
52
|
-
alignChildrenHorizontal="between"
|
|
53
|
-
alignChildrenVertical="middle"
|
|
54
|
-
className="AddonBeam"
|
|
55
|
-
container
|
|
56
|
-
direction="horizontal"
|
|
57
|
-
>
|
|
58
|
-
{isInResponsiveView && !!onHamburgerIconClick && (
|
|
59
|
-
<Flex>
|
|
60
|
-
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
|
61
|
-
<Link color="neutral.100" onClick={onHamburgerIconClick}>
|
|
62
|
-
<Hamburger active={isHamburgerIconActive} />
|
|
63
|
-
</Link>
|
|
64
|
-
</Flex>
|
|
65
|
-
)}
|
|
66
|
-
|
|
67
|
-
<Flex
|
|
68
|
-
absolute={isInResponsiveView ? 'center' : undefined}
|
|
69
|
-
alignChildrenVertical="middle"
|
|
70
|
-
direction="horizontal"
|
|
71
|
-
gap="x2"
|
|
72
|
-
>
|
|
73
|
-
<Flex>
|
|
74
|
-
<Icon name={addonIcon} />
|
|
75
|
-
</Flex>
|
|
76
|
-
|
|
77
|
-
<Flex>
|
|
78
|
-
<Text size="3">
|
|
79
|
-
<Text inline weight="bold">
|
|
80
|
-
{addonName}
|
|
81
|
-
</Text>{' '}
|
|
82
|
-
by Bitrise
|
|
83
|
-
</Text>
|
|
84
|
-
</Flex>
|
|
85
|
-
</Flex>
|
|
86
|
-
|
|
87
|
-
{!isInResponsiveView && appName && (
|
|
88
|
-
<Flex absolute="center">
|
|
89
|
-
<AddonBeamLink href={appLink}>
|
|
90
|
-
<Flex alignChildrenVertical="middle" direction="horizontal" gap="x2">
|
|
91
|
-
{appImage && (
|
|
92
|
-
<Flex>
|
|
93
|
-
<Image borderRadius="x1" height="1.5rem" src={appImage} width="1.5rem" />
|
|
94
|
-
</Flex>
|
|
95
|
-
)}
|
|
96
|
-
|
|
97
|
-
<Flex alignChildrenVertical="middle" direction="horizontal" gap="x1">
|
|
98
|
-
<Flex>{appName}</Flex>
|
|
99
|
-
<Flex>
|
|
100
|
-
<Icon name="OpenInBrowser" />
|
|
101
|
-
</Flex>
|
|
102
|
-
</Flex>
|
|
103
|
-
</Flex>
|
|
104
|
-
</AddonBeamLink>
|
|
105
|
-
</Flex>
|
|
106
|
-
)}
|
|
107
|
-
|
|
108
|
-
{children && !isInResponsiveView && (
|
|
109
|
-
<Flex alignChildrenVertical="middle" direction="horizontal" gap="x6">
|
|
110
|
-
{children}
|
|
111
|
-
</Flex>
|
|
112
|
-
)}
|
|
113
|
-
</Flex>
|
|
114
|
-
);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export default AddonBeam;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TypeIconName } from '../Icon/tsx';
|
|
3
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import Icon from '../Icon/Icon';
|
|
5
|
-
|
|
6
|
-
export interface Props extends FlexProps {
|
|
7
|
-
Component?: FlexProps['Component'];
|
|
8
|
-
/** Name of the icon that appears next to the text of the link. */
|
|
9
|
-
icon?: TypeIconName;
|
|
10
|
-
/** @Ignore */
|
|
11
|
-
to?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Link that appears to the very right of the beam.
|
|
16
|
-
*/
|
|
17
|
-
const AddonBeamLink: React.FunctionComponent<Props> = (props: Props) => {
|
|
18
|
-
const { children, icon, ...rest } = props;
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<Flex {...rest} className="AddonBeam__link" direction="horizontal" gap="x1">
|
|
22
|
-
{icon && (
|
|
23
|
-
<Flex>
|
|
24
|
-
<Icon name={icon} />
|
|
25
|
-
</Flex>
|
|
26
|
-
)}
|
|
27
|
-
|
|
28
|
-
<Flex>{children}</Flex>
|
|
29
|
-
</Flex>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
AddonBeamLink.defaultProps = {
|
|
34
|
-
Component: 'a',
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default AddonBeamLink;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
3
|
-
import Icon from '../Icon/Icon';
|
|
4
|
-
import Text from '../Text/Text';
|
|
5
|
-
|
|
6
|
-
export interface Props extends FlexProps {
|
|
7
|
-
/** Name of the add-on. */
|
|
8
|
-
addonName: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/** A common Bitrise footer component */
|
|
12
|
-
const AddonFooter: React.FunctionComponent<Props> = ({ addonName, ...rest }: Props) => (
|
|
13
|
-
<Flex {...rest} alignChildren="middle" direction="vertical">
|
|
14
|
-
<Icon margin="x2" name="Bitbot" size="1.5rem" />
|
|
15
|
-
<Text align="middle" letterSpacing="x5" size="1" uppercase>
|
|
16
|
-
{addonName}
|
|
17
|
-
</Text>
|
|
18
|
-
<Text align="middle" letterSpacing="x5" size="1" uppercase>
|
|
19
|
-
An Official Bitrise Add-on
|
|
20
|
-
</Text>
|
|
21
|
-
</Flex>
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
export default AddonFooter;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.AppLayout__header,
|
|
2
|
-
.AppLayout__sidebar {
|
|
3
|
-
position: sticky;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.AppLayout__header {
|
|
7
|
-
top: 0;
|
|
8
|
-
z-index: var(--z-index-Header);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.AppLayout__sidebar {
|
|
12
|
-
top: var(--AddonBeam--height);
|
|
13
|
-
width: 18.75rem;
|
|
14
|
-
height: calc(100vh - var(--AddonBeam--height));
|
|
15
|
-
background-color: var(--color-grape--5);
|
|
16
|
-
overflow: auto;
|
|
17
|
-
z-index: var(--z-index-Sidebar);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.AppLayout--responsive-view {
|
|
21
|
-
&.App--sidebar-visible {
|
|
22
|
-
max-height: 100vh;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
& .AppLayout__sidebar {
|
|
27
|
-
display: flex;
|
|
28
|
-
width: 100%;
|
|
29
|
-
margin-left: -100%;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* "justify-contnet: flex-end" breaks the vertical scroll
|
|
33
|
-
*
|
|
34
|
-
* https://bugs.chromium.org/p/chromium/issues/detail?id=411624
|
|
35
|
-
* https://github.com/philipwalton/flexbugs/issues/53
|
|
36
|
-
*/
|
|
37
|
-
& > :first-child {
|
|
38
|
-
margin-top: auto;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.AppLayout--sidebar-visible .AppLayout__sidebar {
|
|
43
|
-
transform: translateX(100%);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import './AppLayout.css';
|
|
5
|
-
|
|
6
|
-
export interface Props extends FlexProps {
|
|
7
|
-
isInResponsiveView?: boolean;
|
|
8
|
-
isSidebarVisible?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const AppLayout: React.FunctionComponent<Props> = (props: Props) => {
|
|
12
|
-
const { isInResponsiveView, isSidebarVisible, ...rest } = props;
|
|
13
|
-
const classes = classnames('AppLayout', {
|
|
14
|
-
'AppLayout--responsive-view': isInResponsiveView,
|
|
15
|
-
'AppLayout--sidebar-visible': isSidebarVisible,
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
return <Flex {...rest} className={classes} direction="vertical" grow />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export default AppLayout;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
3
|
-
|
|
4
|
-
export type Props = FlexProps;
|
|
5
|
-
|
|
6
|
-
const AppLayoutBody: React.FunctionComponent<Props> = (props: Props) => {
|
|
7
|
-
return <Flex {...props} direction="horizontal" grow />;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default AppLayoutBody;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
3
|
-
|
|
4
|
-
export type Props = FlexProps;
|
|
5
|
-
|
|
6
|
-
const AppLayoutHeader: React.FunctionComponent<Props> = (props: Props) => {
|
|
7
|
-
return <Flex {...props} className="AppLayout__header" />;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default AppLayoutHeader;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
3
|
-
|
|
4
|
-
export type Props = FlexProps;
|
|
5
|
-
|
|
6
|
-
const AppLayoutMain: React.FunctionComponent<Props> = (props: Props) => {
|
|
7
|
-
return <Flex {...props} direction="vertical" grow />;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default AppLayoutMain;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
3
|
-
|
|
4
|
-
export type Props = FlexProps;
|
|
5
|
-
|
|
6
|
-
const AppLayoutSidebar: React.FunctionComponent<Props> = (props: Props) => {
|
|
7
|
-
return <Flex {...props} alignSelf="start" className="AppLayout__sidebar" />;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default AppLayoutSidebar;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
3
|
-
import Text from '../Text/Text';
|
|
4
|
-
import avatarColors from './avatarColors';
|
|
5
|
-
import './Avatar.css';
|
|
6
|
-
|
|
7
|
-
const { useMemo } = React;
|
|
8
|
-
|
|
9
|
-
export interface Props extends FlexProps {
|
|
10
|
-
name: string;
|
|
11
|
-
url?: string;
|
|
12
|
-
size?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const Avatar: React.FunctionComponent<Props> = (props: Props) => {
|
|
16
|
-
const { url, name, size = '2rem', ...rest } = props;
|
|
17
|
-
|
|
18
|
-
const memoizedValue = useMemo(() => {
|
|
19
|
-
if (!url) {
|
|
20
|
-
const str = name.toUpperCase();
|
|
21
|
-
const shortHand = `${str.charAt(0)}${str.charAt(str.length - 1)}`;
|
|
22
|
-
const seed = str.charCodeAt(0) + str.charCodeAt(str.length - 1);
|
|
23
|
-
|
|
24
|
-
return {
|
|
25
|
-
shortHand,
|
|
26
|
-
styles: {
|
|
27
|
-
backgroundColor: avatarColors[seed % avatarColors.length],
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return {
|
|
33
|
-
shortHand: null,
|
|
34
|
-
styles: {
|
|
35
|
-
backgroundImage: `url(${url})`,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
}, [name, url]);
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
<Flex
|
|
42
|
-
borderRadius="rounded"
|
|
43
|
-
{...rest}
|
|
44
|
-
alignChildrenHorizontal="middle"
|
|
45
|
-
alignChildrenVertical="middle"
|
|
46
|
-
className="Avatar"
|
|
47
|
-
direction="horizontal"
|
|
48
|
-
height={size}
|
|
49
|
-
overflow="hidden"
|
|
50
|
-
style={{ ...memoizedValue.styles, ...rest.styles }}
|
|
51
|
-
width={size}
|
|
52
|
-
>
|
|
53
|
-
<Flex>
|
|
54
|
-
{memoizedValue.shortHand && (
|
|
55
|
-
<Text size="3" textColor="neutral.100">
|
|
56
|
-
{memoizedValue.shortHand}
|
|
57
|
-
</Text>
|
|
58
|
-
)}
|
|
59
|
-
</Flex>
|
|
60
|
-
</Flex>
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export default Avatar;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default [
|
|
2
|
-
'#68442c',
|
|
3
|
-
'#86d641',
|
|
4
|
-
'#a775db',
|
|
5
|
-
'#df5ac3',
|
|
6
|
-
'#46bee8',
|
|
7
|
-
'#63c99a',
|
|
8
|
-
'#19937c',
|
|
9
|
-
'#ed544c',
|
|
10
|
-
'#ff931e',
|
|
11
|
-
'#107ec1',
|
|
12
|
-
'#48e1ed',
|
|
13
|
-
'#743da5',
|
|
14
|
-
'#f9d128',
|
|
15
|
-
'#ff931e',
|
|
16
|
-
'#9e4b39',
|
|
17
|
-
'#b51c98',
|
|
18
|
-
'#b20202',
|
|
19
|
-
'#bf8a66',
|
|
20
|
-
'#2c3f50',
|
|
21
|
-
'#441f62',
|
|
22
|
-
'#0c5b4c',
|
|
23
|
-
'#391401',
|
|
24
|
-
'#27ae61',
|
|
25
|
-
'#ef7bef',
|
|
26
|
-
];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Base, { Props as BaseProps } from '../Base/Base';
|
|
3
|
-
import useResizeObserver, { DOMRectReadOnlyWithoutToJSON } from '../hooks/useResizeObserver';
|
|
4
|
-
|
|
5
|
-
export interface Props extends BaseProps {
|
|
6
|
-
children: (size: DOMRectReadOnlyWithoutToJSON) => React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const Bounds: React.FunctionComponent<Props> = (props: Props) => {
|
|
10
|
-
const { children, ...rest } = props;
|
|
11
|
-
const [size, ref] = useResizeObserver();
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<Base {...rest} innerRef={ref}>
|
|
15
|
-
{children(size)}
|
|
16
|
-
</Base>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default Bounds;
|