-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(progress-indicator): update types and styles
- Loading branch information
Jeremy Ortiz
committed
Sep 22, 2024
1 parent
d209255
commit 3e4be81
Showing
3 changed files
with
6 additions
and
30 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
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
18 changes: 2 additions & 16 deletions
18
packages/ui/src/components/progress-indicator/progress-indicator.types.ts
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,17 +1,3 @@ | ||
import { HTMLAttributes } from 'react'; | ||
import { type VariantProps } from 'tailwind-variants'; | ||
import { IconProps } from '../icon/icon.types.js'; | ||
|
||
import { styles } from './progress-indicator.styles.js'; | ||
|
||
type Variants = VariantProps<typeof styles>; | ||
|
||
export type ProgressIndicatorProps = { | ||
/** | ||
* Whether indicator should be white for a dark background | ||
*/ | ||
inverted?: boolean; | ||
/** | ||
* Size of progress indicator | ||
*/ | ||
size?: Variants['size']; | ||
} & HTMLAttributes<Element>; | ||
export type ProgressIndicatorProps = IconProps; |