generated from ony3000/node-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from ony3000/upgrade-linear-progress
feat(core): Add `component` and `slotProps` properties to the linear progress
- Loading branch information
Showing
9 changed files
with
196 additions
and
126 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
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,17 @@ | ||
import { Box, LinearProgress } from 'tailwind-joy/components'; | ||
import { DisplayStand } from '@site/src/components/docs/DisplayStand'; | ||
|
||
export function LinearProgressColors() { | ||
return ( | ||
<DisplayStand> | ||
{/* TODO: Replace Box with Stack. */} | ||
<Box className="w-full space-y-4"> | ||
<LinearProgress color="primary" /> | ||
<LinearProgress color="neutral" /> | ||
<LinearProgress color="danger" /> | ||
<LinearProgress color="success" /> | ||
<LinearProgress color="warning" /> | ||
</Box> | ||
</DisplayStand> | ||
); | ||
} |
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,16 @@ | ||
import { Box, LinearProgress } from 'tailwind-joy/components'; | ||
import { DisplayStand } from '@site/src/components/docs/DisplayStand'; | ||
|
||
export function LinearProgressDeterminate() { | ||
return ( | ||
<DisplayStand> | ||
{/* TODO: Replace Box with Stack. */} | ||
<Box className="w-full space-y-4"> | ||
<LinearProgress determinate value={25} /> | ||
<LinearProgress determinate value={50} /> | ||
<LinearProgress determinate value={75} /> | ||
<LinearProgress determinate value={100} /> | ||
</Box> | ||
</DisplayStand> | ||
); | ||
} |
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,15 @@ | ||
import { Box, LinearProgress } from 'tailwind-joy/components'; | ||
import { DisplayStand } from '@site/src/components/docs/DisplayStand'; | ||
|
||
export function LinearProgressSizes() { | ||
return ( | ||
<DisplayStand> | ||
{/* TODO: Replace Box with Stack. */} | ||
<Box className="w-full space-y-4"> | ||
<LinearProgress size="sm" /> | ||
<LinearProgress size="md" /> | ||
<LinearProgress size="lg" /> | ||
</Box> | ||
</DisplayStand> | ||
); | ||
} |
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,10 @@ | ||
import { LinearProgress } from 'tailwind-joy/components'; | ||
import { DisplayStand } from '@site/src/components/docs/DisplayStand'; | ||
|
||
export function LinearProgressThickness() { | ||
return ( | ||
<DisplayStand> | ||
<LinearProgress thickness={1} /> | ||
</DisplayStand> | ||
); | ||
} |
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,16 @@ | ||
import { Box, LinearProgress } from 'tailwind-joy/components'; | ||
import { DisplayStand } from '@site/src/components/docs/DisplayStand'; | ||
|
||
export function LinearProgressVariants() { | ||
return ( | ||
<DisplayStand> | ||
{/* TODO: Replace Box with Stack. */} | ||
<Box className="w-full space-y-4"> | ||
<LinearProgress variant="solid" /> | ||
<LinearProgress variant="soft" /> | ||
<LinearProgress variant="outlined" /> | ||
<LinearProgress variant="plain" /> | ||
</Box> | ||
</DisplayStand> | ||
); | ||
} |
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 @@ | ||
export { LinearProgressVariants } from './Variants'; | ||
export { LinearProgressSizes } from './Sizes'; | ||
export { LinearProgressColors } from './Colors'; | ||
export { LinearProgressThickness } from './Thickness'; | ||
export { LinearProgressDeterminate } from './Determinate'; |
Oops, something went wrong.