Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into KOA_4914_add_bpkbottomnav_in_compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanainkinen committed Dec 21, 2022
2 parents 6f30e91 + 61325b2 commit a73dbbd
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 32 deletions.
2 changes: 1 addition & 1 deletion backpack
Submodule backpack updated 44 files
+5 −1 .spelling
+ .storybook/__image_snapshots__/storyshots-test-js-visual-tests-bpk-component-overlay-visual-test-1-snap.png
+ .storybook/__image_snapshots__/storyshots-test-js-visual-tests-bpk-component-switch-visual-test-1-snap.png
+0 −1 .storybook/main.js
+0 −2 .storybook/preview.js
+29 −0 CHANGELOG.md
+0 −1 README.md
+25 −0 UNRELEASED.md
+4 −8 examples/bpk-animate-height/stories.js
+1 −1 examples/bpk-component-aria-live/examples.module.scss
+11 −11 examples/bpk-component-content-cards/examples.tsx
+0 −307 examples/bpk-component-content-container/examples.js
+0 −26 examples/bpk-component-content-container/stories.js
+171 −107 examples/bpk-component-overlay/examples.js
+12 −5 examples/bpk-component-overlay/examples.module.scss
+12 −17 examples/bpk-component-overlay/stories.js
+5 −8 examples/bpk-component-popover/examples.js
+26,967 −31,317 package-lock.json
+25 −38 package.json
+0 −1 packages/README.md
+1 −1 packages/bpk-component-content-cards/src/BpkContentCard.module.scss
+1 −1 packages/bpk-component-content-cards/src/BpkContentCards.module.scss
+0 −31 packages/bpk-component-content-container/README.md
+0 −21 packages/bpk-component-content-container/index.js
+0 −84 packages/bpk-component-content-container/src/BpkContentContainer-test.js
+0 −85 packages/bpk-component-content-container/src/BpkContentContainer.js
+0 −18 packages/bpk-component-content-container/src/BpkContentContainer.module.css
+0 −41 packages/bpk-component-content-container/src/BpkContentContainer.module.scss
+0 −105 packages/bpk-component-content-container/src/__snapshots__/BpkContentContainer-test.js.snap
+0 −41 packages/bpk-component-content-container/src/accessibility-test.js
+13 −11 packages/bpk-component-overlay/README.md
+2 −1 packages/bpk-component-overlay/index.js
+11 −20 packages/bpk-component-overlay/src/BpkOverlay-test.js
+31 −11 packages/bpk-component-overlay/src/BpkOverlay.js
+124 −2 packages/bpk-component-overlay/src/BpkOverlay.module.scss
+318 −18 packages/bpk-component-overlay/src/__snapshots__/BpkOverlay-test.js.snap
+11 −11 packages/bpk-component-page-indicator/README.md
+1 −0 packages/bpk-component-pagination/src/BpkPaginationList.module.scss
+4 −1 packages/bpk-component-pagination/src/BpkPaginationNudger.module.scss
+2 −2 packages/bpk-component-popover/README.md
+1 −1 packages/bpk-component-switch/src/BpkSwitch.module.scss
+1 −1 packages/bpk-component-tooltip/README.md
+27 −27 packages/package-lock.json
+4 −4 packages/package.json
5 changes: 2 additions & 3 deletions docs/src/components/DocsPageWrapper/DocsPageWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import { cssModules } from 'backpack/packages/bpk-react-utils';
import BpkHorizontalNav, {
BpkHorizontalNavItem,
} from 'backpack/packages/bpk-component-horizontal-nav';
import BpkContentContainer from 'backpack/packages/bpk-component-content-container';

const getClassName = cssModules(STYLES);

Expand Down Expand Up @@ -219,7 +218,7 @@ const DocsPageWrapper = props => {
};

return (
<BpkContentContainer className={getClassName('bpkdocs-page-wrapper')}>
<div className={getClassName('bpkdocs-page-wrapper')}>
<Helmet title={props.title} />
<div className={getClassName('bpkdocs-page-wrapper__inner')}>
<Heading level="h1">{title}</Heading>
Expand All @@ -245,7 +244,7 @@ const DocsPageWrapper = props => {
/>
{initiallyRenderedSubpage}
</div>
</BpkContentContainer>
</div>
);
};

Expand Down
7 changes: 2 additions & 5 deletions docs/src/components/MarkdownPage/MarkdownPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import AdditionalLinks, { type PlatformType } from './AdditionalLinks';

import STYLES from './MarkdownPage.scss';

import BpkContentContainer from 'backpack/packages/bpk-component-content-container';
import { cssModules } from 'backpack/packages/bpk-react-utils';

const getClassName = cssModules(STYLES);
Expand Down Expand Up @@ -94,9 +93,7 @@ const MarkdownPage = (props: Props) => {
<>
<SEOElements title={title} subtitle={subtitle} />
{includePageHeader && <PageHead title={title} subtitle={subtitle} />}
<BpkContentContainer
className={getClassName('bpkdocs-markdown-page__content')}
>
<div className={getClassName('bpkdocs-markdown-page__content')}>
<AdditionalLinks
platform={platform}
documentationId={documentationId}
Expand All @@ -105,7 +102,7 @@ const MarkdownPage = (props: Props) => {
sassdocId={sassdocId}
/>
<MDXContent Content={content} fileName={fileName} />
</BpkContentContainer>
</div>
</>
);
};
Expand Down
3 changes: 1 addition & 2 deletions docs/src/helpers/logo-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import BackpackLogoPride from '../static/backpack-logo-pride.svg';
import BackpackLogoPrideGrey from '../static/backpack-logo-pride-sky-grey.svg';
import BackpackLogoSpooky from '../static/backpack-logo-spooky.svg';
import BackpackLogoChristmas from '../static/backpack-logo-christmas.svg';
import BackpackLogoChristmasGrey from '../static/backpack-logo-christmas-sky-grey.svg';

export const getBackpackLogo = (overImage = false) => {
const companyUpdateLogo = false;
Expand All @@ -45,7 +44,7 @@ export const getBackpackLogo = (overImage = false) => {
return BackpackLogoSpooky;
}
if (isChristmas) {
return BackpackLogoChristmasGrey;
return BackpackLogoChristmas;
}
if (companyUpdateLogo) {
return BackpackLogoPinkGrey;
Expand Down
47 changes: 30 additions & 17 deletions docs/src/pages/components/Overlay/WebOverlay.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,58 @@ githubPath: bpk-component-overlay
import PresentationBlock from 'components/PresentationBlock';

import {
WithBpkImageExample,
WithBpkImageNoTintExample,
WithBpkImageRoundedExample,
TextOverlaidOnImageExample
SolidExamples,
TopExamples,
BottomExamples,
LeftExamples,
RightExamples,
VignetteExample,
WithForegroundContentExample,
} from 'backpack/examples/bpk-component-overlay/examples';
import Readme from 'backpack/packages/bpk-component-overlay/README.md';

## Table of contents

## Default

Overlays apply a dark tint to their content.
## Solid

<PresentationBlock>
<WithBpkImageExample />
<SolidExamples />
</PresentationBlock>

## Disabled tint
## Top

The tint can be switched off, causing the content within to be displayed at full brightness.
<PresentationBlock>
<TopExamples />
</PresentationBlock>

## Bottom

<PresentationBlock>
<WithBpkImageNoTintExample />
<BottomExamples />
</PresentationBlock>

## Rounded corners
## Left

<PresentationBlock>
<LeftExamples />
</PresentationBlock>

The overlay can have rounded corners. Apply this when the content inside has rounded corners, to stop the overlay from covering them up.
## Right

<PresentationBlock>
<WithBpkImageRoundedExample />
<RightExamples />
</PresentationBlock>

## Foreground content
## Vignette

<PresentationBlock>
<VignetteExample />
</PresentationBlock>

Use foreground content to display things on top of the overlay.
## With foreground content

<PresentationBlock>
<TextOverlaidOnImageExample />
<WithForegroundContentExample />
</PresentationBlock>

## Implementation
Expand Down
41 changes: 40 additions & 1 deletion docs/src/static/backpack-logo-christmas.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion docs/src/static/backpack-logo-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a73dbbd

Please sign in to comment.