Skip to content

Commit

Permalink
Merge branch 'main' into hussam-i-am/preview-page
Browse files Browse the repository at this point in the history
  • Loading branch information
hussam-i-am authored Jan 9, 2025
2 parents e624f26 + 37901a8 commit 934ec19
Show file tree
Hide file tree
Showing 19 changed files with 496 additions and 717 deletions.
9 changes: 1 addition & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@

version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
versioning-strategy: increase
labels:
- 'dependencies'
- 'skip changeset'
- package-ecosystem: 'npm'
directory: '/'
schedule:
Expand All @@ -26,6 +18,7 @@ updates:
patterns:
- '@storybook/*'
- 'storybook'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
Expand Down
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.
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.
2 changes: 1 addition & 1 deletion examples/app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@primer/react": "37.9.0",
"@primer/react": "37.9.1",
"next": "^14.2.15",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/codesandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.3.1",
"@vitejs/plugin-react": "^4.3.3",
"@primer/react": "37.9.0",
"@primer/react": "37.9.1",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.7",
Expand Down
4 changes: 2 additions & 2 deletions examples/theming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@primer/octicons-react": "^19.9.0",
"@primer/react": "37.9.0",
"@primer/octicons-react": "^19.14.0",
"@primer/react": "37.9.1",
"clsx": "^1.2.1",
"next": "^14.2.15",
"react": "^18.3.1",
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

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

6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @primer/react

## 37.9.1

### Patch Changes

- [`8c1cff4`](https://github.com/primer/react/commit/8c1cff46f206b0c51feeb32ed1ab85c7db18acd1) Thanks [@francinelucca](https://github.com/francinelucca)! - fix(ActionList): remove className from menuItemProps to prevent duplicate className bug

## 37.9.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@primer/react",
"version": "37.9.0",
"version": "37.9.1",
"description": "An implementation of GitHub's Primer Design System using React",
"main": "lib/index.js",
"module": "lib-esm/index.js",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
...(includeSelectionAttribute && {[itemSelectionAttribute]: selected}),
role: itemRole,
id: itemId,
className,
}

const containerProps = _PrivateItemWrapper
Expand Down
12 changes: 8 additions & 4 deletions packages/react/src/NavList/__snapshots__/NavList.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1363,11 +1363,13 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav
>
<svg
aria-hidden="true"
class="c9"
class="octicon octicon-chevron-down c9"
display="inline-block"
fill="currentColor"
focusable="false"
height="16"
style="display: inline-block; user-select: none; vertical-align: text-bottom; overflow: visible;"
overflow="visible"
style="vertical-align: text-bottom;"
viewBox="0 0 16 16"
width="16"
>
Expand Down Expand Up @@ -1884,11 +1886,13 @@ exports[`NavList.Item with NavList.SubNav has active styles if SubNav contains t
>
<svg
aria-hidden="true"
class="c9"
class="octicon octicon-chevron-down c9"
display="inline-block"
fill="currentColor"
focusable="false"
height="16"
style="display: inline-block; user-select: none; vertical-align: text-bottom; overflow: visible;"
overflow="visible"
style="vertical-align: text-bottom;"
viewBox="0 0 16 16"
width="16"
>
Expand Down
8 changes: 6 additions & 2 deletions packages/react/src/Octicon/Octicon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {SxProp} from '../sx'
import sx from '../sx'
import type {ComponentProps} from '../utils/types'

type StyledOcticonProps = {icon: React.ElementType; color?: string} & IconProps
type StyledOcticonProps = {icon: React.ElementType; color?: string} & IconProps & SxProp

const Icon = React.forwardRef((props: StyledOcticonProps, ref: React.Ref<SVGSVGElement>) => {
const {icon: IconComponent, ...rest} = props
Expand All @@ -15,7 +15,11 @@ const Icon = React.forwardRef((props: StyledOcticonProps, ref: React.Ref<SVGSVGE
/**
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
*/
const Octicon = styled(Icon)<SxProp>`
const Octicon = styled(Icon).withConfig({
shouldForwardProp(prop) {
return prop !== 'sx'
},
})<SxProp>`
${({color, sx: sxProp}) => sx({sx: {color, ...sxProp}})}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,15 @@ exports[`StateLabel renders children 1`] = `
>
<svg
aria-label="Issue"
className="c1"
className="octicon octicon-issue-opened c1"
display="inline-block"
fill="currentColor"
focusable="false"
height={16}
overflow="visible"
role="img"
style={
{
"display": "inline-block",
"overflow": "visible",
"userSelect": "none",
"verticalAlign": "text-bottom",
}
}
Expand Down Expand Up @@ -95,16 +94,15 @@ exports[`StateLabel respects the status prop 1`] = `
>
<svg
aria-label="Issue"
className="c1"
className="octicon octicon-issue-opened c1"
display="inline-block"
fill="currentColor"
focusable="false"
height={16}
overflow="visible"
role="img"
style={
{
"display": "inline-block",
"overflow": "visible",
"userSelect": "none",
"verticalAlign": "text-bottom",
}
}
Expand Down Expand Up @@ -155,16 +153,15 @@ exports[`StateLabel respects the status prop 2`] = `
>
<svg
aria-label="Issue"
className="c1"
className="octicon octicon-issue-closed c1"
display="inline-block"
fill="currentColor"
focusable="false"
height={16}
overflow="visible"
role="img"
style={
{
"display": "inline-block",
"overflow": "visible",
"userSelect": "none",
"verticalAlign": "text-bottom",
}
}
Expand Down Expand Up @@ -215,16 +212,15 @@ exports[`StateLabel respects the status prop 3`] = `
>
<svg
aria-label="Issue, not planned"
className="c1"
className="octicon octicon-skip c1"
display="inline-block"
fill="currentColor"
focusable="false"
height={16}
overflow="visible"
role="img"
style={
{
"display": "inline-block",
"overflow": "visible",
"userSelect": "none",
"verticalAlign": "text-bottom",
}
}
Expand Down Expand Up @@ -272,16 +268,15 @@ exports[`StateLabel respects the status prop 4`] = `
>
<svg
aria-label="Pull request"
className="c1"
className="octicon octicon-git-merge c1"
display="inline-block"
fill="currentColor"
focusable="false"
height={16}
overflow="visible"
role="img"
style={
{
"display": "inline-block",
"overflow": "visible",
"userSelect": "none",
"verticalAlign": "text-bottom",
}
}
Expand Down Expand Up @@ -329,16 +324,15 @@ exports[`StateLabel respects the status prop 5`] = `
>
<svg
aria-label="Pull request"
className="c1"
className="octicon octicon-git-merge-queue c1"
display="inline-block"
fill="currentColor"
focusable="false"
height={16}
overflow="visible"
role="img"
style={
{
"display": "inline-block",
"overflow": "visible",
"userSelect": "none",
"verticalAlign": "text-bottom",
}
}
Expand Down Expand Up @@ -386,16 +380,15 @@ exports[`StateLabel respects the variant prop 1`] = `
>
<svg
aria-label="Issue"
className="c1"
className="octicon octicon-issue-opened c1"
display="inline-block"
fill="currentColor"
focusable="false"
height={16}
overflow="visible"
role="img"
style={
{
"display": "inline-block",
"overflow": "visible",
"userSelect": "none",
"verticalAlign": "text-bottom",
}
}
Expand Down Expand Up @@ -446,16 +439,15 @@ exports[`StateLabel respects the variant prop 2`] = `
>
<svg
aria-label="Issue"
className="c1"
className="octicon octicon-issue-opened c1"
display="inline-block"
fill="currentColor"
focusable="false"
height={16}
overflow="visible"
role="img"
style={
{
"display": "inline-block",
"overflow": "visible",
"userSelect": "none",
"verticalAlign": "text-bottom",
}
}
Expand Down
Loading

0 comments on commit 934ec19

Please sign in to comment.