File tree Expand file tree Collapse file tree 7 files changed +208
-3
lines changed
Expand file tree Collapse file tree 7 files changed +208
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import { SnakesWithDirections } from "./snakes-with-directions";
2525import { SnakesWithOutlines } from "./snakes-with-outlines" ;
2626import { TripleSnakes } from "./triple-snakes" ;
2727import { SnakeWithPopcorn } from "./snake-with-popcorn" ;
28+ import { SnakesFacingLeft } from "./snakes-facing-left" ;
2829
2930export default {
3031 title : "Illustrations" ,
@@ -115,3 +116,6 @@ TripleSnakesStory.args = { component: TripleSnakes };
115116
116117export const SnakeWithPopcornStory = Template . bind ( { } ) ;
117118SnakeWithPopcornStory . args = { component : SnakeWithPopcorn } ;
119+
120+ export const SnakesFacingLeftStory = Template . bind ( { } ) ;
121+ SnakesFacingLeftStory . args = { component : SnakesFacingLeft } ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import { SnakesWithCocktail } from "./snakes-with-cocktail";
2525import { SnakesWithDirections } from "./snakes-with-directions" ;
2626import { SnakesWithOutlines } from "./snakes-with-outlines" ;
2727import { TripleSnakes } from "./triple-snakes" ;
28+ import { SnakesFacingLeft } from "./snakes-facing-left" ;
2829import { Illustration } from "./types" ;
2930
3031export const getIllustration = ( name : Illustration | undefined ) => {
@@ -83,6 +84,8 @@ export const getIllustration = (name: Illustration | undefined) => {
8384 return SnakeTailUp ;
8485 case "snakeWithPopcorn" :
8586 return SnakeWithPopcorn ;
87+ case "snakesFacingLeft" :
88+ return SnakesFacingLeft ;
8689 }
8790 return null ;
8891} ;
Original file line number Diff line number Diff line change @@ -25,4 +25,5 @@ export { SnakesWithOutlines } from "./snakes-with-outlines";
2525export { TripleSnakes } from "./triple-snakes" ;
2626export { SnakeTailUp } from "./snake-tail-up" ;
2727export { SnakeWithPopcorn } from "./snake-with-popcorn" ;
28+ export { SnakesFacingLeft } from "./snakes-facing-left" ;
2829export { getIllustration } from "./illustrations" ;
Original file line number Diff line number Diff line change @@ -34,4 +34,4 @@ export const SnakeTailUp = (props: React.SVGProps<SVGSVGElement>) => {
3434 </ defs >
3535 </ svg >
3636 ) ;
37- }
37+ } ;
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -25,4 +25,5 @@ export type Illustration =
2525 | "snakesWithOutlines"
2626 | "tripleSnakes"
2727 | "snakeTailUp"
28- | "snakeWithPopcorn" ;
28+ | "snakeWithPopcorn"
29+ | "snakesFacingLeft" ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ type Props = {
1010 cols : number ;
1111 mdCols ?: number ;
1212 background ?: "snake" | "none" ;
13- justifyContent ?: "center" ;
13+ justifyContent ?: "left" | " center" | "right ";
1414 wrap ?: "wrap" | "nowrap" ;
1515} ;
1616
@@ -73,7 +73,9 @@ export const SliderGrid = ({
7373 className = { clsx (
7474 `snap-x snap-mandatory overflow-x-auto flex md:-mt-2 lg:-mt-4 md:px-2 lg:px-0` ,
7575 {
76+ "md:justify-start" : justifyContent === "left" ,
7677 "md:justify-center" : justifyContent === "center" ,
78+ "md:justify-end" : justifyContent === "right" ,
7779
7880 "md:flex-wrap" : wrap === "wrap" ,
7981 "md:flex-nowrap" : wrap === "nowrap" ,
You can’t perform that action at this time.
0 commit comments