Skip to content

Commit

Permalink
update Flex to use CSS modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbasuil committed Oct 12, 2023
1 parent 549fc75 commit b6dafe2
Show file tree
Hide file tree
Showing 5 changed files with 376 additions and 142 deletions.
224 changes: 208 additions & 16 deletions spec/__snapshots__/Storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13519,7 +13519,19 @@ exports[`Storyshots Components/Table Default 1`] = `
exports[`Storyshots Components/Table Loading Custom Columns 1`] = `
Array [
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -13613,7 +13625,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -13707,7 +13731,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -13801,7 +13837,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -13900,7 +13948,19 @@ Array [
exports[`Storyshots Components/Table Loading Default 1`] = `
Array [
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -14030,7 +14090,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -14160,7 +14232,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -14290,7 +14374,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -14420,7 +14516,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -14550,7 +14658,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -14680,7 +14800,19 @@ Array [
</span>
</div>,
<div
className="sc-aXZVg fbaeUV TableLoadingSkeleton"
className="Flex TableLoadingSkeleton"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<span
aria-busy={true}
Expand Down Expand Up @@ -29236,7 +29368,19 @@ Array [

exports[`Storyshots Layouts/CardStack Centered 1`] = `
<div
className="sc-aXZVg eEvRmZ"
className="Flex"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<div
className="CardStack CardStack--sm"
Expand Down Expand Up @@ -30157,7 +30301,19 @@ exports[`Storyshots Layouts/Container Setting One Column Width 1`] = `

exports[`Storyshots Layouts/Flex Align Items 1`] = `
<div
className="sc-aXZVg idOQCp"
className="Flex"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<section
className="Card Card--xs"
Expand Down Expand Up @@ -30208,7 +30364,19 @@ exports[`Storyshots Layouts/Flex Align Items 1`] = `

exports[`Storyshots Layouts/Flex Default 1`] = `
<div
className="sc-aXZVg fBLyyp"
className="Flex"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<section
className="Card Card--xs"
Expand Down Expand Up @@ -30254,7 +30422,19 @@ exports[`Storyshots Layouts/Flex Default 1`] = `

exports[`Storyshots Layouts/Flex Flex Direction 1`] = `
<div
className="sc-aXZVg cfPfql"
className="Flex"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<section
className="Card Card--xs"
Expand Down Expand Up @@ -30305,7 +30485,19 @@ exports[`Storyshots Layouts/Flex Flex Direction 1`] = `

exports[`Storyshots Layouts/Flex Justify Content 1`] = `
<div
className="sc-aXZVg fBLyyp"
className="Flex"
style={
Object {
"flex": undefined,
"flexBasis": undefined,
"flexGrow": undefined,
"flexShrink": undefined,
"height": undefined,
"maxHeight": undefined,
"maxWidth": undefined,
"width": undefined,
}
}
>
<section
className="Card Card--xs"
Expand Down
Loading

0 comments on commit b6dafe2

Please sign in to comment.