-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into stamat/text-decoration-cannot-be-animated
- Loading branch information
Showing
154 changed files
with
3,459 additions
and
3,913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@primer/react-brand': patch | ||
--- | ||
|
||
Updated the following library depedencies: `@oddbird/popover-polyfill`, `clsx`, `autoprefixer`, `css-loader`, `mini-css-extract-plugin`, `postcss`, `postcss-loader`, `postcss-preset-env`, `style-loader`, `typed-css-modules`, `typescript-plugin-css-modules`, `webpack-cli`, `fast-glob`. | ||
|
||
These updates should not affect the library’s visuals or component APIs. **In most cases, no additional action is required**. Please note however, that the compiled output may be slightly different due to changes in the bundling process. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react-brand': patch | ||
--- | ||
|
||
Fixed a bug in the `ActionMenu` component where items with falsy values (eg `""`) would not trigger the `onSelect` callback when selected. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react-brand': patch | ||
--- | ||
|
||
Increased the gap between primary and secondary buttons in `Hero`, `CTABanner` and `ButtonGroup` components from `8px` to `16px`. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,16 @@ jobs: | |
release: | ||
if: github.ref_name == 'main' | ||
name: Release | ||
uses: primer/.github/.github/workflows/[email protected] | ||
|
||
uses: primer/.github/.github/workflows/release.yml@2a60f4cc62889bd218f3019ce4a090ff89b71cca # SHA for security hardening. Points at v2.1.1 release | ||
secrets: | ||
gh_token: ${{ secrets.GPR_AUTH_TOKEN_SHARED }} | ||
npm_token: ${{ secrets.NPM_AUTH_TOKEN_SHARED }} | ||
|
||
release-next-minor: | ||
if: github.ref_name == 'next-minor' | ||
name: Next minor | ||
uses: primer/.github/.github/workflows/release.yml@v1.0.0 | ||
uses: primer/.github/.github/workflows/release.yml@2a60f4cc62889bd218f3019ce4a090ff89b71cca # SHA for security hardening. Points at v2.1.1 release | ||
with: | ||
title: Release tracking (next minor) | ||
secrets: | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+260 Bytes
(100%)
apps/docs/content/components/Breadcrumbs/images/do-overflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+301 Bytes
(100%)
apps/docs/content/components/Breadcrumbs/images/dont-overflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: Breadcrumbs | ||
source: https://github.com/primer/brand/tree/main/packages/react/src/Breadcrumbs/Breadcrumbs.tsx | ||
storybook: '/brand/storybook/?path=/story/components-breadcrumbs--playground' | ||
description: Breadcrumbs display the current page within the site's hierarchy, allowing users to easily navigate to a different level. | ||
--- | ||
|
||
import ComponentLayout from '../../../src/layouts/component-layout' | ||
|
||
import {Label} from '@primer/react' | ||
import {BreadcrumbVariants} from '@primer/react-brand' | ||
import {PropTableValues} from '../../../src/components' | ||
|
||
export default ComponentLayout | ||
|
||
```js | ||
import {Breadcrumbs} from '@primer/react-brand' | ||
``` | ||
|
||
## Examples | ||
|
||
### Default | ||
|
||
```jsx live | ||
<Breadcrumbs> | ||
<Breadcrumbs.Item href="/">Resources</Breadcrumbs.Item> | ||
<Breadcrumbs.Item href="/copilot">GitHub Copilot</Breadcrumbs.Item> | ||
<Breadcrumbs.Item href="/copilot/chat" selected> | ||
Chat | ||
</Breadcrumbs.Item> | ||
</Breadcrumbs> | ||
``` | ||
|
||
### Accent | ||
|
||
```jsx live | ||
<Breadcrumbs variant="accent"> | ||
<Breadcrumbs.Item href="/">Resources</Breadcrumbs.Item> | ||
<Breadcrumbs.Item href="/copilot">GitHub Copilot</Breadcrumbs.Item> | ||
<Breadcrumbs.Item href="/copilot/chat" selected> | ||
Chat | ||
</Breadcrumbs.Item> | ||
</Breadcrumbs> | ||
``` | ||
|
||
## Component props | ||
|
||
### Breadcrumbs <Label>Required</Label> | ||
|
||
| name | type | default | required | description | | ||
| --------- | ------------------------------------------------------------- | ------- | -------- | ----------------------------------------- | | ||
| `variant` | <PropTableValues values={BreadcrumbVariants} addLineBreaks /> | | `false` | Specify alternative breadcrumb appearance | | ||
|
||
### Breadcrumbs.Item <Label>Required</Label> | ||
|
||
| name | type | default | required | description | | ||
| ---------- | --------- | ------- | -------- | ----------------------------------- | | ||
| `selected` | `boolean` | | `false` | Used for indicating the active link | | ||
| `href` | `string` | | `true` | URL of the page the link goes to | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @primer/brand-storybook | ||
|
||
## 0.47.0 | ||
|
||
## 0.46.0 | ||
|
||
## 0.45.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.