-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(progress-bar): ✨ wrap progress bar component
- add theming to progress bar - restructure progress bar theme file - add props for customising progress bar
- Loading branch information
1 parent
d273f05
commit 3f17bcf
Showing
4 changed files
with
64 additions
and
55 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 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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from "./ProgressBar"; | ||
export * from "./ProgressProps"; |
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,16 +1,30 @@ | ||
export const progress = { | ||
container: { | ||
sm: "w-full h-0.5 rounded-full overflow-hidden", | ||
md: "w-full h-1 rounded-full overflow-hidden", | ||
lg: "w-full h-2 rounded-full overflow-hidden", | ||
xl: "w-full h-3 rounded-full overflow-hidden", | ||
size: { | ||
sm: { | ||
container: "w-full h-0.5 rounded-full overflow-hidden", | ||
bar: "absolute h-0.5 rounded-full", | ||
}, | ||
md: { | ||
container: "w-full h-1 rounded-full overflow-hidden", | ||
bar: "absolute h-1 rounded-full", | ||
}, | ||
lg: { | ||
container: "w-full h-2 rounded-full overflow-hidden", | ||
bar: "absolute h-2 rounded-full", | ||
}, | ||
xl: { | ||
container: "w-full h-3 rounded-full overflow-hidden", | ||
bar: "absolute h-3 rounded-full", | ||
}, | ||
}, | ||
bar: { | ||
sm: "absolute h-0.5 rounded-full", | ||
md: "absolute h-1 rounded-full", | ||
lg: "absolute h-2 rounded-full", | ||
xl: "absolute h-3 rounded-full", | ||
themeColor: { | ||
base: { | ||
track: "bg-gray-100", | ||
filled: "bg-gray-900", | ||
}, | ||
primary: { | ||
track: "bg-blue-100", | ||
filled: "bg-blue-600", | ||
}, | ||
}, | ||
defaultTrackColor: "bg-gray-200", | ||
defaultProgressTrackColor: "bg-gray-800", | ||
}; |