Skip to content

Commit 13af0bd

Browse files
committed
Deploying to gh-pages from @ 4833dce 🚀
1 parent 5d14184 commit 13af0bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+235
-80
lines changed
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import{j as t}from"./jsx-runtime-CLpGMVip.js";import{r as o}from"./index-B-SYruCi.js";import{T as g}from"./CSSTransition-C2y1aoT6.js";const w={tags:["!dev"]},e={render:()=>{const[n,l]=o.useState(!0),[s,u]=o.useState(!0),c=()=>l(!n),d=()=>u(!s);return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:c,type:"button",children:"Toggle visibility"}),t.jsxs("label",{children:[t.jsx("input",{type:"checkbox",checked:s,onChange:d}),"Always mounted"]}),t.jsx("hr",{}),t.jsx(g,{in:n,alwaysMounted:s,children:y=>t.jsx("pre",{children:JSON.stringify(y,null," ")})})]})}};var i,a,r;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{
2+
render: () => {
3+
const [visible, setVisible] = useState(true);
4+
const [alwaysMounted, setAlwaysMounted] = useState(true);
5+
const toggleVisibility = () => setVisible(!visible);
6+
const toggleAlwaysMounted = () => setAlwaysMounted(!alwaysMounted);
7+
return <>
8+
<button onClick={toggleVisibility} type="button">
9+
Toggle visibility
10+
</button>
11+
<label>
12+
<input type="checkbox" checked={alwaysMounted} onChange={toggleAlwaysMounted} />
13+
Always mounted
14+
</label>
15+
<hr />
16+
<Transition in={visible} alwaysMounted={alwaysMounted}>
17+
{transitionState => <pre>{JSON.stringify(transitionState, null, ' ')}</pre>}
18+
</Transition>
19+
</>;
20+
}
21+
}`,...(r=(a=e.parameters)==null?void 0:a.docs)==null?void 0:r.source}}};const x=["Default"];export{e as Default,x as __namedExportsOrder,w as default};

assets/BasicTransition.stories-DNa7T-aQ.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/CSSTransition-DX30X35W.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/CSSTransition-Dw_r9FZm.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/CSSTransition.stories-BqRuX9Wy.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/CSSTransition.stories-BxH4_TxK.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import{j as n}from"./jsx-runtime-CLpGMVip.js";import{useMDXComponents as r}from"./index-3LwI-BAG.js";import{M as s,C as t}from"./index-83Co2hU-.js";import{Default as d}from"./ConditionalRender.stories-C51RkWQC.js";import"./index-B-SYruCi.js";import"./iframe-BBl4h44f.js";import"./index-u5h8o4a9.js";import"./index-C-aVi5AG.js";import"./index-NOh9rqHv.js";import"./CSSTransition-BcQV4rvK.js";import"./StyleFadeTransition-DuLar2jw.js";function o(i){const e={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...r(),...i.components};return n.jsxs(n.Fragment,{children:[n.jsx(s,{title:"Examples/Transition Group/Conditional Render"}),`
2-
`,n.jsx(e.h1,{id:"transition-group-example-conditional-render",children:"Transition Group Example: Conditional Render"}),`
1+
import{j as n}from"./jsx-runtime-CLpGMVip.js";import{useMDXComponents as r}from"./index-3LwI-BAG.js";import{M as s,C as t}from"./index-CuPu8Tmx.js";import{Default as d}from"./ConditionalRender.stories-B9V-V7q4.js";import"./index-B-SYruCi.js";import"./iframe-CH3oSKwU.js";import"./index-u5h8o4a9.js";import"./index-C-aVi5AG.js";import"./index-NOh9rqHv.js";import"./CSSTransition-C2y1aoT6.js";import"./StyleFadeTransition-M4YQNHeZ.js";function o(i){const e={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...r(),...i.components};return n.jsxs(n.Fragment,{children:[n.jsx(s,{title:"Examples/Transition Group/Conditional Render"}),`
2+
`,n.jsx(e.h1,{id:"transition-group--conditional-render-example",children:"Transition Group Conditional Render Example"}),`
33
`,n.jsxs(e.p,{children:["This example demonstrates how to use the ",n.jsx(e.code,{children:"TransitionGroup"})," component with conditionally rendered children. By leveraging ",n.jsx(e.code,{children:"TransitionGroup"}),", you can easily handle animations for elements that are dynamically added or removed based on conditions."]}),`
44
`,n.jsx(e.h2,{id:"usage",children:"Usage"}),`
55
`,n.jsxs(e.p,{children:["To use the ",n.jsx(e.code,{children:"TransitionGroup"})," with conditionally rendered children in your project, follow the example below:"]}),`

0 commit comments

Comments
 (0)