File tree 7 files changed +208
-3
lines changed
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";
25
25
import { SnakesWithOutlines } from "./snakes-with-outlines" ;
26
26
import { TripleSnakes } from "./triple-snakes" ;
27
27
import { SnakeWithPopcorn } from "./snake-with-popcorn" ;
28
+ import { SnakesFacingLeft } from "./snakes-facing-left" ;
28
29
29
30
export default {
30
31
title : "Illustrations" ,
@@ -115,3 +116,6 @@ TripleSnakesStory.args = { component: TripleSnakes };
115
116
116
117
export const SnakeWithPopcornStory = Template . bind ( { } ) ;
117
118
SnakeWithPopcornStory . 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";
25
25
import { SnakesWithDirections } from "./snakes-with-directions" ;
26
26
import { SnakesWithOutlines } from "./snakes-with-outlines" ;
27
27
import { TripleSnakes } from "./triple-snakes" ;
28
+ import { SnakesFacingLeft } from "./snakes-facing-left" ;
28
29
import { Illustration } from "./types" ;
29
30
30
31
export const getIllustration = ( name : Illustration | undefined ) => {
@@ -83,6 +84,8 @@ export const getIllustration = (name: Illustration | undefined) => {
83
84
return SnakeTailUp ;
84
85
case "snakeWithPopcorn" :
85
86
return SnakeWithPopcorn ;
87
+ case "snakesFacingLeft" :
88
+ return SnakesFacingLeft ;
86
89
}
87
90
return null ;
88
91
} ;
Original file line number Diff line number Diff line change @@ -25,4 +25,5 @@ export { SnakesWithOutlines } from "./snakes-with-outlines";
25
25
export { TripleSnakes } from "./triple-snakes" ;
26
26
export { SnakeTailUp } from "./snake-tail-up" ;
27
27
export { SnakeWithPopcorn } from "./snake-with-popcorn" ;
28
+ export { SnakesFacingLeft } from "./snakes-facing-left" ;
28
29
export { getIllustration } from "./illustrations" ;
Original file line number Diff line number Diff line change @@ -34,4 +34,4 @@ export const SnakeTailUp = (props: React.SVGProps<SVGSVGElement>) => {
34
34
</ defs >
35
35
</ svg >
36
36
) ;
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 =
25
25
| "snakesWithOutlines"
26
26
| "tripleSnakes"
27
27
| "snakeTailUp"
28
- | "snakeWithPopcorn" ;
28
+ | "snakeWithPopcorn"
29
+ | "snakesFacingLeft" ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ type Props = {
10
10
cols : number ;
11
11
mdCols ?: number ;
12
12
background ?: "snake" | "none" ;
13
- justifyContent ?: "center" ;
13
+ justifyContent ?: "left" | " center" | "right ";
14
14
wrap ?: "wrap" | "nowrap" ;
15
15
} ;
16
16
@@ -73,7 +73,9 @@ export const SliderGrid = ({
73
73
className = { clsx (
74
74
`snap-x snap-mandatory overflow-x-auto flex md:-mt-2 lg:-mt-4 md:px-2 lg:px-0` ,
75
75
{
76
+ "md:justify-start" : justifyContent === "left" ,
76
77
"md:justify-center" : justifyContent === "center" ,
78
+ "md:justify-end" : justifyContent === "right" ,
77
79
78
80
"md:flex-wrap" : wrap === "wrap" ,
79
81
"md:flex-nowrap" : wrap === "nowrap" ,
You can’t perform that action at this time.
0 commit comments