351 lines
8.4 KiB
JavaScript
351 lines
8.4 KiB
JavaScript
import{M as c}from"./chunk-S4VUQJ4A-79fea7c5.js";import{p as f,j as n}from"./jsx-runtime-fcf8cdde.js";import{C as e}from"./Table-cbc76118.js";import{c as t}from"./parseCss-4efc8ba7.js";import{u as a}from"./index-2350147b.js";import"./iframe-2954aaea.js";import"../sb-preview/runtime.js";import"./index-4b4bf420.js";import"./_commonjsHelpers-de833af9.js";import"./index-d37d4223.js";import"./index-e04ae519.js";import"./index-356e4a49.js";import"./index-ba485a46.js";import"./toString-25ea340b.js";import"./isSymbol-50749e90.js";const m=`.content-normal {
|
|
align-content: normal;
|
|
}
|
|
.content-center {
|
|
align-content: center;
|
|
}
|
|
.content-start {
|
|
align-content: flex-start;
|
|
}
|
|
.content-end {
|
|
align-content: flex-end;
|
|
}
|
|
.content-between {
|
|
align-content: space-between;
|
|
}
|
|
.content-around {
|
|
align-content: space-around;
|
|
}
|
|
.content-evenly {
|
|
align-content: space-evenly;
|
|
}
|
|
.content-baseline {
|
|
align-content: baseline;
|
|
}
|
|
.content-stretch {
|
|
align-content: stretch;
|
|
}
|
|
.\\!content-normal {
|
|
align-content: normal !important;
|
|
}
|
|
.\\!content-center {
|
|
align-content: center !important;
|
|
}
|
|
.\\!content-start {
|
|
align-content: flex-start !important;
|
|
}
|
|
.\\!content-end {
|
|
align-content: flex-end !important;
|
|
}
|
|
.\\!content-between {
|
|
align-content: space-between !important;
|
|
}
|
|
.\\!content-around {
|
|
align-content: space-around !important;
|
|
}
|
|
.\\!content-evenly {
|
|
align-content: space-evenly !important;
|
|
}
|
|
.\\!content-baseline {
|
|
align-content: baseline !important;
|
|
}
|
|
.\\!content-stretch {
|
|
align-content: stretch !important;
|
|
}
|
|
`,p=`.items-start {
|
|
align-items: flex-start;
|
|
}
|
|
.items-end {
|
|
align-items: flex-end;
|
|
}
|
|
.items-center {
|
|
align-items: center;
|
|
}
|
|
.items-baseline {
|
|
align-items: baseline;
|
|
}
|
|
.items-stretch {
|
|
align-items: stretch;
|
|
}
|
|
.\\!items-start {
|
|
align-items: flex-start !important;
|
|
}
|
|
.\\!items-end {
|
|
align-items: flex-end !important;
|
|
}
|
|
.\\!items-center {
|
|
align-items: center !important;
|
|
}
|
|
.\\!items-baseline {
|
|
align-items: baseline !important;
|
|
}
|
|
.\\!items-stretch {
|
|
align-items: stretch !important;
|
|
}
|
|
`,u=`.self-auto {
|
|
align-self: auto;
|
|
}
|
|
.self-start {
|
|
align-self: flex-start;
|
|
}
|
|
.self-end {
|
|
align-self: flex-end;
|
|
}
|
|
.self-center {
|
|
align-self: center;
|
|
}
|
|
.self-stretch {
|
|
align-self: stretch;
|
|
}
|
|
.self-baseline {
|
|
align-self: baseline;
|
|
}
|
|
.\\!self-auto {
|
|
align-self: auto !important;
|
|
}
|
|
.\\!self-start {
|
|
align-self: flex-start !important;
|
|
}
|
|
.\\!self-end {
|
|
align-self: flex-end !important;
|
|
}
|
|
.\\!self-center {
|
|
align-self: center !important;
|
|
}
|
|
.\\!self-stretch {
|
|
align-self: stretch !important;
|
|
}
|
|
.\\!self-baseline {
|
|
align-self: baseline !important;
|
|
}
|
|
`,x=`.flex-row {
|
|
flex-direction: row;
|
|
}
|
|
.flex-row-reverse {
|
|
flex-direction: row-reverse;
|
|
}
|
|
.flex-col {
|
|
flex-direction: column;
|
|
}
|
|
.flex-col-reverse {
|
|
flex-direction: column-reverse;
|
|
}
|
|
.\\!flex-row {
|
|
flex-direction: row !important;
|
|
}
|
|
.\\!flex-row-reverse {
|
|
flex-direction: row-reverse !important;
|
|
}
|
|
.\\!flex-col {
|
|
flex-direction: column !important;
|
|
}
|
|
.\\!flex-col-reverse {
|
|
flex-direction: column-reverse !important;
|
|
}
|
|
`,y=`.grow {
|
|
flex-grow: 1;
|
|
}
|
|
.grow-0 {
|
|
flex-grow: 0;
|
|
}
|
|
.\\!grow {
|
|
flex-grow: 1 !important;
|
|
}
|
|
.\\!grow-0 {
|
|
flex-grow: 0 !important;
|
|
}
|
|
`,d=`.shrink {
|
|
flex-shrink: 1;
|
|
}
|
|
.shrink-0 {
|
|
flex-shrink: 0;
|
|
}
|
|
.\\!shrink {
|
|
flex-shrink: 1 !important;
|
|
}
|
|
.\\!shrink-0 {
|
|
flex-shrink: 0 !important;
|
|
}
|
|
`,j=`.flex-wrap {
|
|
flex-wrap: wrap;
|
|
}
|
|
.flex-wrap-reverse {
|
|
flex-wrap: wrap-reverse;
|
|
}
|
|
.flex-nowrap {
|
|
flex-wrap: nowrap;
|
|
}
|
|
.\\!flex-wrap {
|
|
flex-wrap: wrap !important;
|
|
}
|
|
.\\!flex-wrap-reverse {
|
|
flex-wrap: wrap-reverse !important;
|
|
}
|
|
.\\!flex-nowrap {
|
|
flex-wrap: nowrap !important;
|
|
}
|
|
`,g=`.flex-1 {
|
|
flex: 1 1 0%;
|
|
}
|
|
.flex-auto {
|
|
flex: 1 1 auto;
|
|
}
|
|
.flex-initial {
|
|
flex: 0 1 auto;
|
|
}
|
|
.flex-none {
|
|
flex: none;
|
|
}
|
|
.\\!flex-1 {
|
|
flex: 1 1 0% !important;
|
|
}
|
|
.\\!flex-auto {
|
|
flex: 1 1 auto !important;
|
|
}
|
|
.\\!flex-initial {
|
|
flex: 0 1 auto !important;
|
|
}
|
|
.\\!flex-none {
|
|
flex: none !important;
|
|
}
|
|
`,h=`.justify-normal {
|
|
justify-content: normal;
|
|
}
|
|
.justify-start {
|
|
justify-content: flex-start;
|
|
}
|
|
.justify-end {
|
|
justify-content: flex-end;
|
|
}
|
|
.justify-center {
|
|
justify-content: center;
|
|
}
|
|
.justify-between {
|
|
justify-content: space-between;
|
|
}
|
|
.justify-around {
|
|
justify-content: space-around;
|
|
}
|
|
.justify-evenly {
|
|
justify-content: space-evenly;
|
|
}
|
|
.justify-stretch {
|
|
justify-content: stretch;
|
|
}
|
|
.\\!justify-normal {
|
|
justify-content: normal !important;
|
|
}
|
|
.\\!justify-start {
|
|
justify-content: flex-start !important;
|
|
}
|
|
.\\!justify-end {
|
|
justify-content: flex-end !important;
|
|
}
|
|
.\\!justify-center {
|
|
justify-content: center !important;
|
|
}
|
|
.\\!justify-between {
|
|
justify-content: space-between !important;
|
|
}
|
|
.\\!justify-around {
|
|
justify-content: space-around !important;
|
|
}
|
|
.\\!justify-evenly {
|
|
justify-content: space-evenly !important;
|
|
}
|
|
.\\!justify-stretch {
|
|
justify-content: stretch !important;
|
|
}
|
|
`,b=`.justify-items-start {
|
|
justify-items: start;
|
|
}
|
|
.justify-items-end {
|
|
justify-items: end;
|
|
}
|
|
.justify-items-center {
|
|
justify-items: center;
|
|
}
|
|
.justify-items-stretch {
|
|
justify-items: stretch;
|
|
}
|
|
.\\!justify-items-start {
|
|
justify-items: start !important;
|
|
}
|
|
.\\!justify-items-end {
|
|
justify-items: end !important;
|
|
}
|
|
.\\!justify-items-center {
|
|
justify-items: center !important;
|
|
}
|
|
.\\!justify-items-stretch {
|
|
justify-items: stretch !important;
|
|
}
|
|
`,w=`.justify-self-auto {
|
|
justify-self: auto;
|
|
}
|
|
.justify-self-start {
|
|
justify-self: start;
|
|
}
|
|
.justify-self-end {
|
|
justify-self: end;
|
|
}
|
|
.justify-self-center {
|
|
justify-self: center;
|
|
}
|
|
.justify-self-stretch {
|
|
justify-self: stretch;
|
|
}
|
|
.\\!justify-self-auto {
|
|
justify-self: auto !important;
|
|
}
|
|
.\\!justify-self-start {
|
|
justify-self: start !important;
|
|
}
|
|
.\\!justify-self-end {
|
|
justify-self: end !important;
|
|
}
|
|
.\\!justify-self-center {
|
|
justify-self: center !important;
|
|
}
|
|
.\\!justify-self-stretch {
|
|
justify-self: stretch !important;
|
|
}
|
|
`;function k(i={}){const{wrapper:o}=Object.assign({},a(),i.components);return o?n.jsx(o,{...i,children:n.jsx(l,{})}):l();function l(){const s=Object.assign({p:"p",img:"img",h1:"h1",a:"a"},a(),i.components);return n.jsxs(n.Fragment,{children:[`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,`
|
|
`,n.jsx(c,{title:"Styles/Tokens/Flexbox",parameters:{...f}}),`
|
|
`,n.jsx(s.p,{children:n.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
|
|
`,n.jsx(s.h1,{id:"flexbox-tokens",children:"Flexbox tokens"}),`
|
|
`,n.jsxs(s.p,{children:["Flexbox is a modern way to lay out elements on your page while controling their alignment, distribution, space between and more. If flexbox is new, checkout the excellent ",n.jsx(s.a,{href:"https://css-tricks.com/snippets/css/a-guide-to-flexbox/",target:"_blank",rel:"nofollow noopener noreferrer",children:"CSS tricks guide"}),"."]}),`
|
|
`,n.jsx(s.p,{children:"Our style library provides these flexbox utility classes:"}),`
|
|
`,n.jsx(e,{title:"Align content",mdnLink:"align-content",header:["Class","Properties"],body:t(m),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Align items",mdnLink:"align-items",header:["Class","Properties"],body:t(p),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Align self",mdnLink:"align-self",header:["Class","Properties"],body:t(u),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Flex direction",mdnLink:"flex-direction",header:["Class","Properties"],body:t(x),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Flex grow",mdnLink:"flex-grow",header:["Class","Properties"],body:t(y),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Flex shrink",mdnLink:"flex-shrink",header:["Class","Properties"],body:t(d),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Flex wrap",mdnLink:"flex-wrap",header:["Class","Properties"],body:t(j),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Flex",mdnLink:"flex",header:["Class","Properties"],body:t(g),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Justify content",mdnLink:"justify-content",header:["Class","Properties"],body:t(h),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Justify items",mdnLink:"justify-items",header:["Class","Properties"],body:t(b),copyable:[!0,!1]}),`
|
|
`,n.jsx(e,{title:"Justify self",mdnLink:"justify-self",header:["Class","Properties"],body:t(w),copyable:[!0,!1]})]})}}const v=()=>{throw new Error("Docs-only story")};v.parameters={docsOnly:!0};const r={title:"Styles/Tokens/Flexbox",parameters:{...f},tags:["stories-mdx"],includeStories:["__page"]};r.parameters=r.parameters||{};r.parameters.docs={...r.parameters.docs||{},page:k};const G=["__page"];export{G as __namedExportsOrder,v as __page,r as default};
|
|
//# sourceMappingURL=main.stories-39b99fd0.js.map
|