Skip to content

Commit 5be7aa0

Browse files
committed
Deploying to gh-pages from @ a5a97bd 🚀
1 parent 255ea6d commit 5be7aa0

1,053 files changed

Lines changed: 63291 additions & 63291 deletions

File tree

Some content is hidden

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

nightly/assets/Achievement-BKn1TK8e.js

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

nightly/assets/Achievement-e-9nA6R-.js

Lines changed: 0 additions & 102 deletions
This file was deleted.

nightly/assets/ActionSheet-B1rpoaXq.js

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import{i as e}from"./preload-helper-usAeo7Bx.js";import{lh as t}from"./iframe-CoMKsZ00.js";import{J as n,_ as r,d as i,r as a}from"./blocks-TEgcOSV1.js";import{E as o,b as s,f as c,t as l,u}from"./components-CzZ7y840.js";import{Default as d,n as f,t as p}from"./ActionSheet.stories-DtS4OGMZ.js";function m(e){let t={code:`code`,h2:`h2`,p:`p`,pre:`pre`,strong:`strong`,...n(),...e.components};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(i,{of:p}),`
2+
`,(0,g.jsx)(c,{of:p,subComponents:[`Button`]}),`
3+
`,(0,g.jsx)(`br`,{}),`
4+
`,(0,g.jsx)(t.h2,{id:`example`,children:`Example`}),`
5+
`,(0,g.jsx)(a,{of:d}),`
6+
`,(0,g.jsx)(t.h2,{id:`properties`,children:`Properties`}),`
7+
`,(0,g.jsx)(s,{of:d}),`
8+
`,(0,g.jsx)(t.h2,{id:`opening-actionsheets`,children:`Opening ActionSheets`}),`
9+
`,(0,g.jsx)(`br`,{}),`
10+
`,(0,g.jsxs)(t.p,{children:[`You can open and close the `,(0,g.jsx)(t.code,{children:`ActionSheet`}),` component in a declarative way using the `,(0,g.jsx)(t.code,{children:`open`}),` and `,(0,g.jsx)(t.code,{children:`opener`}),` prop.`]}),`
11+
`,(0,g.jsx)(t.pre,{children:(0,g.jsx)(t.code,{className:`language-tsx`,children:`const MyComponentWithActionSheet = () => {
12+
const [actionSheetIsOpen, setActionSheetIsOpen] = useState(false);
13+
return (
14+
<>
15+
<Button
16+
id={'openActionSheetBtn'}
17+
onClick={() => {
18+
setActionSheetIsOpen(true);
19+
}}
20+
>
21+
Open Action Sheet
22+
</Button>
23+
<ActionSheet
24+
opener={'openActionSheetBtn'}
25+
open={actionSheetIsOpen}
26+
onClose={() => {
27+
setActionSheetIsOpen(false);
28+
}}
29+
/>
30+
</>
31+
);
32+
};
33+
`})}),`
34+
`,(0,g.jsx)(t.p,{children:(0,g.jsxs)(t.strong,{children:[`Opening an `,(0,g.jsx)(t.code,{children:`ActionSheet`}),` by reference`]})}),`
35+
`,(0,g.jsxs)(t.p,{children:[`The `,(0,g.jsx)(t.code,{children:`ActionSheet`}),` exposes a way to pass a reference of an element instead of an `,(0,g.jsx)(t.code,{children:`id`}),` to the `,(0,g.jsx)(t.code,{children:`opener`}),` prop.
36+
You can do that by e.g. leveraging a React Ref.`]}),`
37+
`,(0,g.jsx)(t.pre,{children:(0,g.jsx)(t.code,{className:`language-jsx`,children:`const ActionSheetComponent = () => {
38+
const buttonRef = useRef(null);
39+
const [open, setOpen] = useState(false);
40+
const handleOpenerClick = (e) => {
41+
setOpen((prev) => !prev);
42+
};
43+
return (
44+
<>
45+
<Button ref={buttonRef} onClick={handleOpenerClick}>
46+
Opener
47+
</Button>
48+
<ActionSheet opener={buttonRef.current} open={open}>
49+
{/* Content */}
50+
</ActionSheet>
51+
</>
52+
);
53+
};
54+
`})}),`
55+
`,(0,g.jsx)(u,{})]})}function h(e={}){let{wrapper:t}={...n(),...e.components};return t?(0,g.jsx)(t,{...e,children:(0,g.jsx)(m,{...e})}):m(e)}var g;e((()=>{g=t(),o(),l(),r(),f()}))();export{h as default};

nightly/assets/ActionSheet.stories-Djyjm-RI.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

nightly/assets/ActionSheet.stories-DtS4OGMZ.js

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

0 commit comments

Comments
 (0)