Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .changeset/pretty-women-sing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
'@primer/react': major
---

Removes styled-system and related utilities from Caret.tsx, IssueLabelToken.tsx, ProgressBar.tsx, StateLabel.tsx, ToggleSwitch.tsx, and deprecated/ActionList/List.tsx
Removes styled-system and related utilities from Caret.tsx, IssueLabelToken.tsx, StateLabel.tsx, ToggleSwitch.tsx, and deprecated/ActionList/List.tsx

Removes WidthProps from ProgressBar.tsx
6 changes: 4 additions & 2 deletions packages/react/src/ProgressBar/ProgressBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {forwardRef} from 'react'
import type {SxProp} from '../sx'
import {clsx} from 'clsx'
import classes from './ProgressBar.module.css'
import {BoxWithFallback} from '../internal/components/BoxWithFallback'
Expand All @@ -13,12 +14,13 @@ type StyledProgressContainerProps = {
inline?: boolean
barSize?: 'small' | 'default' | 'large'
animated?: boolean
}
} & SxProp

export type ProgressBarItems = React.HTMLAttributes<HTMLSpanElement> & {
'aria-label'?: string
className?: string
} & ProgressProp
} & ProgressProp &
SxProp

export const Item = forwardRef<HTMLSpanElement, ProgressBarItems>(
(
Expand Down
Loading