Skip to content

Commit

Permalink
Merge branch 'main' into artmsilva-patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
artmsilva committed May 16, 2024
2 parents 0dabe42 + 5cd9ce5 commit 69377f9
Show file tree
Hide file tree
Showing 32 changed files with 435 additions and 264 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.3.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.2.0...v2.3.0) (2024-05-14)

### Features

- adding vertical dots [STRY-301] ([#626](https://github.com/washingtonpost/wpds-ui-kit/issues/626)) ([438a90b](https://github.com/washingtonpost/wpds-ui-kit/commit/438a90b7615d63415233ec37b0302bbdb7f36e10))

# [2.2.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.1.2...v2.2.0) (2024-05-08)

### Features
Expand Down
4 changes: 4 additions & 0 deletions apps/nextjs13-approuter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.3.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.2.0...v2.3.0) (2024-05-14)

**Note:** Version bump only for package nextjs13-approuter

# [2.2.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.1.2...v2.2.0) (2024-05-08)

**Note:** Version bump only for package nextjs13-approuter
Expand Down
6 changes: 3 additions & 3 deletions apps/nextjs13-approuter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextjs13-approuter",
"version": "2.2.0",
"version": "2.3.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,8 +9,8 @@
"lint": "next lint"
},
"dependencies": {
"@washingtonpost/wpds-kitchen-sink": "2.2.0",
"@washingtonpost/wpds-ui-kit": "2.2.0",
"@washingtonpost/wpds-kitchen-sink": "2.3.0",
"@washingtonpost/wpds-ui-kit": "2.3.0",
"next": "13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 4 additions & 0 deletions apps/nextjs13-pagerouter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.3.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.2.0...v2.3.0) (2024-05-14)

**Note:** Version bump only for package nextjs13-pagerouter

# [2.2.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.1.2...v2.2.0) (2024-05-08)

**Note:** Version bump only for package nextjs13-pagerouter
Expand Down
6 changes: 3 additions & 3 deletions apps/nextjs13-pagerouter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextjs13-pagerouter",
"version": "2.2.0",
"version": "2.3.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,8 +9,8 @@
"lint": "next lint"
},
"dependencies": {
"@washingtonpost/wpds-kitchen-sink": "2.2.0",
"@washingtonpost/wpds-ui-kit": "2.2.0",
"@washingtonpost/wpds-kitchen-sink": "2.3.0",
"@washingtonpost/wpds-ui-kit": "2.3.0",
"next": "13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 4 additions & 0 deletions apps/nextjs14-approuter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.3.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.2.0...v2.3.0) (2024-05-14)

**Note:** Version bump only for package nextjs14-approuter

# [2.2.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.1.2...v2.2.0) (2024-05-08)

**Note:** Version bump only for package nextjs14-approuter
Expand Down
6 changes: 3 additions & 3 deletions apps/nextjs14-approuter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextjs14-approuter",
"version": "2.2.0",
"version": "2.3.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,8 +9,8 @@
"lint": "next lint"
},
"dependencies": {
"@washingtonpost/wpds-kitchen-sink": "2.2.0",
"@washingtonpost/wpds-ui-kit": "2.2.0",
"@washingtonpost/wpds-kitchen-sink": "2.3.0",
"@washingtonpost/wpds-ui-kit": "2.3.0",
"next": "14.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 4 additions & 0 deletions apps/nextjs14-pagerouter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.3.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.2.0...v2.3.0) (2024-05-14)

**Note:** Version bump only for package nextjs14-pagerouter

# [2.2.0](https://github.com/washingtonpost/wpds-ui-kit/compare/v2.1.2...v2.2.0) (2024-05-08)

**Note:** Version bump only for package nextjs14-pagerouter
Expand Down
6 changes: 3 additions & 3 deletions apps/nextjs14-pagerouter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextjs14-pagerouter",
"version": "2.2.0",
"version": "2.3.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,8 +9,8 @@
"lint": "next lint"
},
"dependencies": {
"@washingtonpost/wpds-kitchen-sink": "2.2.0",
"@washingtonpost/wpds-ui-kit": "2.2.0",
"@washingtonpost/wpds-kitchen-sink": "2.3.0",
"@washingtonpost/wpds-ui-kit": "2.3.0",
"next": "14.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
6 changes: 6 additions & 0 deletions build.washingtonpost.com/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.3.0](https://github.com/washingtonpost/wpds-docs/compare/v2.2.0...v2.3.0) (2024-05-14)

### Features

- adding vertical dots [STRY-301] ([#626](https://github.com/washingtonpost/wpds-docs/issues/626)) ([438a90b](https://github.com/washingtonpost/wpds-docs/commit/438a90b7615d63415233ec37b0302bbdb7f36e10))

# [2.2.0](https://github.com/washingtonpost/wpds-docs/compare/v2.1.2...v2.2.0) (2024-05-08)

**Note:** Version bump only for package @washingtonpost/wpds-docs
Expand Down
43 changes: 43 additions & 0 deletions build.washingtonpost.com/docs/components/pagination-dots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,49 @@ export default function Example() {
}
```

### Orientation

If the dots are oriented left to right or top to bottom. It defaults to a horizontal orientation.

```jsx withPreview
export default function Example() {
return (
<Box
css={{
display: "flex",
flexDirection: "column",
}}
>
<Box
css={{
display: "flex",
gap: theme.space[100],
marginBlockStart: theme.space[200],
position: "relative",
}}
>
<PaginationDots amount={6} index={1} label="pagination dots" />
</Box>
<Box
css={{
display: "flex",
gap: theme.space[100],
marginBlockStart: theme.space[200],
position: "relative",
}}
>
<PaginationDots
amount={6}
index={1}
label="pagination dots"
orientation="vertical"
/>
</Box>
</Box>
);
}
```

---

## Guidance
Expand Down
10 changes: 5 additions & 5 deletions build.washingtonpost.com/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@washingtonpost/wpds-docs",
"version": "2.2.0",
"version": "2.3.0",
"private": true,
"scripts": {
"dev": "next-remote-watch ./docs",
Expand All @@ -27,10 +27,10 @@
"@washingtonpost/site-footer": "0.25.3-alpha.1",
"@washingtonpost/tachyons-css": "^1.8.0",
"@washingtonpost/wpds-assets": "2.0.0",
"@washingtonpost/wpds-kitchen-sink": "2.2.0",
"@washingtonpost/wpds-tailwind-theme": "2.2.0",
"@washingtonpost/wpds-tokens": "2.2.0",
"@washingtonpost/wpds-ui-kit": "2.2.0",
"@washingtonpost/wpds-kitchen-sink": "2.3.0",
"@washingtonpost/wpds-tailwind-theme": "2.3.0",
"@washingtonpost/wpds-tokens": "2.3.0",
"@washingtonpost/wpds-ui-kit": "2.3.0",
"fuse.js": "^6.6.2",
"gray-matter": "^4.0.2",
"lz-string": "^1.4.4",
Expand Down
14 changes: 10 additions & 4 deletions build.washingtonpost.com/services/getPropsTable.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const docgen = require("react-docgen-typescript");
const { JsxEmit } = require("typescript");

export const getPropsTable = async (component = "icon") => {
const options = {
shouldExtractLiteralValuesFromEnum: true,
savePropValueAsString: true,
shouldExtractValuesFromUnion: true,
propFilter: (prop) => {
if (prop.declarations !== undefined && prop.declarations.length > 0) {
const hasPropAdditionalDescription = prop.declarations.find(
Expand All @@ -20,10 +18,18 @@ export const getPropsTable = async (component = "icon") => {
},
};

const customParser = docgen.withCompilerOptions(
{
esModuleInterop: true,
jsx: JsxEmit.Preserve,
},
options
);

// Parse a file for docgen info

try {
const componentsData = docgen.parse(
const componentsData = customParser.parse(
`../packages/kit/src/${component}/index.ts`,
options
);
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "2.2.0"
"version": "2.3.0"
}
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 69377f9

Please sign in to comment.