Skip to content

Commit

Permalink
feat: tabs component [SRED-67] (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomictangerine authored Mar 17, 2023
1 parent 5a6785b commit 93bdc36
Show file tree
Hide file tree
Showing 29 changed files with 22,601 additions and 31,382 deletions.
602 changes: 602 additions & 0 deletions build.washingtonpost.com/docs/components/tabs.mdx

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions build.washingtonpost.com/public/img/components/tabs/anatomy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions build.washingtonpost.com/public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
<loc>https://build.washingtonpost.com/components/switch</loc>
</url>

<url>
<loc>https://build.washingtonpost.com/components/tabs</loc>
</url>

<url>
<loc>https://build.washingtonpost.com/components/tooltip</loc>
</url>
Expand Down
27 changes: 27 additions & 0 deletions custom-env.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import JsDomEnv from "jest-environment-jsdom";

class CustomEnvironment extends JsDomEnv {
async setup() {
await super.setup();
this.global.DOMRect = class DOMRect {
bottom = 0;
left = 0;
right = 0;
top = 0;
constructor(
public x = 0,
public y = 0,
public width = 0,
public height = 0
) {}
static fromRect(other?: DOMRectInit): DOMRect {
return new DOMRect(other?.x, other?.y, other?.width, other?.height);
}
toJSON() {
return JSON.stringify(this);
}
};
}
}

module.exports = CustomEnvironment;
Loading

4 comments on commit 93bdc36

@vercel
Copy link

@vercel vercel bot commented on 93bdc36 Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit-vitejs-example – ./apps/vite-project

wpds-ui-kit-vitejs-example-git-main.preview.now.washingtonpost.com
wpds-ui-kit-vitejs-example.preview.now.washingtonpost.com

@vercel
Copy link

@vercel vercel bot commented on 93bdc36 Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 93bdc36 Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit – ./build.washingtonpost.com

wpds-ui-kit-git-main.preview.now.washingtonpost.com
wpds-ui-kit.preview.now.washingtonpost.com
build.washingtonpost.com

@vercel
Copy link

@vercel vercel bot commented on 93bdc36 Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit-storybook – ./

wpds-ui-kit-storybook-git-main.preview.now.washingtonpost.com
wpds-ui-kit-storybook.preview.now.washingtonpost.com

Please sign in to comment.