Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs]: graduate beta to official #2034

Merged
merged 90 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
05a659d
Docs/rebuild (#1924)
joshuaellis Jun 29, 2022
d7d6775
chore: incl generated files
joshuaellis Jun 29, 2022
af9b83c
chore: update remix
joshuaellis Jun 29, 2022
32de2f8
chore: update remix imports
joshuaellis Jun 29, 2022
9d8d160
chore: re-work build sequence for docs
joshuaellis Jun 29, 2022
8b5aaef
chore: re-work build sequence for docs
joshuaellis Jun 29, 2022
e2c30ec
chore: add new plausible site
joshuaellis Jun 29, 2022
ae295b8
chore: add netlify dev
joshuaellis Jul 7, 2022
51de5ef
chore: use beta index
joshuaellis Jul 7, 2022
978db1a
feat: add animated elements concept doc
joshuaellis Jul 8, 2022
5efbfe6
feat: add useSpring API page
joshuaellis Jul 10, 2022
28bc3c1
chore: remove unused pages
joshuaellis Jul 10, 2022
4b0a9db
fix: sticky subnav styles on mobile
joshuaellis Jul 10, 2022
155fd22
fix: center sticky subnav
joshuaellis Jul 10, 2022
d43557a
fix: ios fixes
joshuaellis Jul 11, 2022
1e112bb
chore: remove api reference nav tile
joshuaellis Jul 11, 2022
f47ba27
chore: add meta to site
joshuaellis Jul 11, 2022
3eb6ab3
feat: add configs advanced doc page
joshuaellis Jul 12, 2022
1ed6a35
feat: add Events documentation
joshuaellis Jul 13, 2022
1f005c1
Merge branch 'master' into beta-docs
joshuaellis Jul 13, 2022
3c2e48e
chore: re-run yarn
joshuaellis Jul 13, 2022
77d296e
feat: show copy icon only on hover of code block
joshuaellis Jul 13, 2022
34947e0
feat: add copy link next to titles
joshuaellis Jul 13, 2022
c71008d
fix: header capturing pointer
joshuaellis Jul 13, 2022
b6a809d
fix: allow search on mobile by stopping focus capture on mobile nav
joshuaellis Jul 14, 2022
507ea74
feat(docs): add useSprings documentation page
joshuaellis Jul 15, 2022
8bdaf05
feat: add theme picker to site
joshuaellis Jul 18, 2022
17ada0d
fix: themepicker should remember user preference
joshuaellis Jul 18, 2022
0acbe34
feat(docs): add use-transition page
joshuaellis Jul 19, 2022
6c6d65e
feat(docs): add link to releases on github
joshuaellis Jul 19, 2022
9c97ef9
feat(docs): add transition function explainer
joshuaellis Jul 19, 2022
aa4882a
chore(docs): update meta
joshuaellis Jul 19, 2022
1d38cb1
chore(docs): tweak feedback link to discussion thread
joshuaellis Jul 19, 2022
567adbe
fix: broken link on homepage
joshuaellis Jul 19, 2022
98deb7c
feat(docs): add note type element with remark
joshuaellis Jul 19, 2022
4ec93e4
fix: bad color choice for light mode tables
joshuaellis Jul 19, 2022
cad10f3
fix(docs): bad highlighting in useSpring
joshuaellis Jul 20, 2022
f7e2e2f
Merge branch 'master' into beta-docs
joshuaellis Jul 21, 2022
8fb6638
chore: remove deps
joshuaellis Jul 21, 2022
90eec17
chore: update gitignore
joshuaellis Jul 21, 2022
ef2667c
chore: update yarn.lock
joshuaellis Jul 21, 2022
04bc52e
feat(docs): add use-chain documentation
joshuaellis Jul 22, 2022
6616427
chore(docs): add meta to each page
joshuaellis Jul 22, 2022
69adc44
chore(docs): fix spelling and grammar (#1950)
hyamero Jul 23, 2022
7e20452
feat(docs): add use-trail documentation
joshuaellis Jul 25, 2022
af04d7a
fix(docs): bug with variables and interpolation
joshuaellis Jul 30, 2022
c97accb
fix: use focus-visible over focus
joshuaellis Jul 30, 2022
0208b73
fix: dont show changlog on home
joshuaellis Jul 30, 2022
06b2432
feat(docs): add useIsomorphicLayout docs
joshuaellis Aug 1, 2022
9001a04
feat(cms): add useReducedMotion documentation
joshuaellis Aug 2, 2022
402e452
fix: bug with radix demo
joshuaellis Aug 2, 2022
71fc48a
chore(docs): update docs nav
joshuaellis Aug 17, 2022
c6927cc
chore(docs): fix spelling issues (#1970)
duanwilliam Sep 2, 2022
f9bc681
Merge branch 'master' into beta-docs
joshuaellis Sep 11, 2022
e85864a
chore: bump deps
joshuaellis Sep 11, 2022
1bfa55c
chore: move to vercel and update deps
joshuaellis Sep 12, 2022
d4d8adf
trigger build
joshuaellis Sep 12, 2022
66b6514
feat(docs): add Controller concept
joshuaellis Sep 16, 2022
83b43b3
feat(docs): add contoller class api
joshuaellis Sep 16, 2022
0315279
feat: add SpringValue api doc
joshuaellis Sep 17, 2022
ab76aab
feat(docs): add SpringRef api doc
joshuaellis Sep 17, 2022
9408cf4
feat(docs): add imperative API concept doc
joshuaellis Sep 19, 2022
e1e5270
chore: update overview doc page
joshuaellis Sep 20, 2022
34ae9e1
fix: menu crashes into footer
joshuaellis Sep 22, 2022
cbaa264
feat(docs): add Interpolation
joshuaellis Sep 29, 2022
569ed02
chore(docs): add redirects
joshuaellis Sep 29, 2022
6409a71
chore: add ads to beta site
joshuaellis Sep 29, 2022
250fac9
fix: use percentage to center content on heroHome
joshuaellis Sep 30, 2022
e081610
chore: fix ads not refreshing
joshuaellis Oct 2, 2022
69c8d95
fix(docs): remove typo (#1995)
wtfmozart Oct 10, 2022
12760fa
chore(docs): fix a small typo of the hook name. (#1997)
ahamed Oct 14, 2022
49d812a
feat: add testing guide
joshuaellis Oct 16, 2022
1eb56af
fix(docs): imperative and target links in homepage (#1998)
heyfirst Oct 17, 2022
7ede8d2
fix: make code accordions animating on initial mount if they're suppo…
joshuaellis Oct 22, 2022
6b74fed
fix: graidents on subnav menu
joshuaellis Oct 22, 2022
43de046
feat(docs): add parallax page (#2000)
joshuaellis Oct 22, 2022
d2293b2
[refactor][beta-docs]: sort of devDeps (#2003)
joshuaellis Oct 23, 2022
bb5e55b
docs: add targets page
joshuaellis Oct 25, 2022
b9881f2
refactor: animate y not top
joshuaellis Oct 25, 2022
f2afaf4
chore: use env to enable carbon
joshuaellis Oct 25, 2022
692c973
fix: weird close to top scrolling bug with header
joshuaellis Oct 25, 2022
04bb766
docs: add async animations
joshuaellis Oct 26, 2022
bf5193c
feat(docs): add r3f doc guide (#2002)
joshuaellis Nov 7, 2022
ac5f372
Merge branch 'master' into beta-docs
joshuaellis Nov 16, 2022
9d4f2ec
chore: cleanups post merge
joshuaellis Nov 16, 2022
87ebf98
Merge branch 'master' into beta-docs
joshuaellis Nov 20, 2022
faa787f
feat: add steps easing & clamp function & noise demo (#2024)
joshuaellis Nov 21, 2022
93b3f7b
Merge branch 'master' into beta-docs
joshuaellis Nov 21, 2022
fb930ba
chore: update yarn.lock
joshuaellis Nov 21, 2022
f048dee
chore: swap menu location
joshuaellis Nov 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .changeset/witty-tables-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@react-spring/core': minor
'@react-spring/shared': minor
'@react-spring/web': minor
'@react-spring/animated': minor
'@react-spring/parallax': minor
'@react-spring/rafz': minor
'react-spring': minor
'@react-spring/types': minor
'@react-spring/konva': minor
'@react-spring/native': minor
'@react-spring/three': minor
'@react-spring/zdog': minor
---

feat: add steps easing
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dist/
.DS_Store
Thumbs.db
ehthumbs.db
.env
.env.local
.env.development.local
.env.test.local
Expand Down Expand Up @@ -53,6 +54,5 @@ report.*.json
#
# Remix
#
docs-new/public/build
docs-new/api/_build
docs-new/api/index.js
docs/public/build
docs/api/*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
287 changes: 287 additions & 0 deletions .yarn/patches/@radix-ui-react-dialog-npm-1.0.0-61b8140da9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,287 @@
diff --git a/dist/index.module.js b/dist/index.module.js
index 8195b87caaaf4dce9694171556953fc35545139b..664c9198f2146cdd40ce478519a8906991796fc9 100644
--- a/dist/index.module.js
+++ b/dist/index.module.js
@@ -1,2 +1,281 @@
-import{Slot as e}from"@radix-ui/react-slot";import{hideOthers as o}from"aria-hidden";import{RemoveScroll as t}from"react-remove-scroll";import{useFocusGuards as r}from"@radix-ui/react-focus-guards";import{Primitive as n}from"@radix-ui/react-primitive";import{Presence as a}from"@radix-ui/react-presence";import{UnstablePortal as i}from"@radix-ui/react-portal";import{FocusScope as l}from"@radix-ui/react-focus-scope";import{DismissableLayer as c}from"@radix-ui/react-dismissable-layer";import{useControllableState as s}from"@radix-ui/react-use-controllable-state";import{useId as u}from"@radix-ui/react-id";import{createContext as p,createContextScope as d}from"@radix-ui/react-context";import{useComposedRefs as f}from"@radix-ui/react-compose-refs";import{composeEventHandlers as g}from"@radix-ui/primitive";import*as m from"react";import D from"@babel/runtime/helpers/esm/extends";const[x,C]=d("Dialog");export{C as createDialogScope};const[v,E]=x("Dialog");export const Dialog=e=>{const{__scopeDialog:o,children:t,open:r,defaultOpen:n,onOpenChange:a,modal:i=!0,allowPinchZoom:l}=e,c=m.useRef(null),p=m.useRef(null),[d=!1,f]=s({prop:r,defaultProp:n,onChange:a});/*#__PURE__*/return m.createElement(v,{scope:o,triggerRef:c,contentRef:p,contentId:u(),titleId:u(),descriptionId:u(),open:d,onOpenChange:f,onOpenToggle:m.useCallback((()=>f((e=>!e))),[f]),modal:i,allowPinchZoom:l},t)};/*#__PURE__*/export const DialogTrigger=/*#__PURE__*/m.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,a=E("DialogTrigger",t),i=f(o,a.triggerRef);/*#__PURE__*/return m.createElement(n.button,D({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":b(a.open)},r,{ref:i,onClick:g(e.onClick,a.onOpenToggle)}))}));/*#__PURE__*/export const DialogPortal=e=>{const{__scopeDialog:o,forceMount:t,children:r,container:n}=e,l=E("DialogPortal",o);/*#__PURE__*/return m.createElement(m.Fragment,null,m.Children.map(r,(e=>/*#__PURE__*/m.createElement(a,{present:t||l.open},/*#__PURE__*/m.createElement(i,{asChild:!0,container:n},e)))))};/*#__PURE__*/export const DialogOverlay=/*#__PURE__*/m.forwardRef(((e,o)=>{const{forceMount:t,...r}=e,n=E("DialogOverlay",e.__scopeDialog);return n.modal?/*#__PURE__*/m.createElement(a,{present:t||n.open},/*#__PURE__*/m.createElement(R,D({},r,{ref:o}))):null}));/*#__PURE__*/const R=/*#__PURE__*/m.forwardRef(((o,r)=>{const{__scopeDialog:a,...i}=o,l=E("DialogOverlay",a);/*#__PURE__*/return m.createElement(t,{as:e,allowPinchZoom:l.allowPinchZoom,shards:[l.contentRef]},/*#__PURE__*/m.createElement(n.div,D({"data-state":b(l.open)},i,{ref:r,style:{pointerEvents:"auto",...i.style}})))}));export const DialogContent=/*#__PURE__*/m.forwardRef(((e,o)=>{const{forceMount:t,...r}=e,n=E("DialogContent",e.__scopeDialog);/*#__PURE__*/return m.createElement(a,{present:t||n.open},n.modal?/*#__PURE__*/m.createElement(_,D({},r,{ref:o})):/*#__PURE__*/m.createElement(O,D({},r,{ref:o})))}));/*#__PURE__*/const _=/*#__PURE__*/m.forwardRef(((e,t)=>{const r=E("DialogContent",e.__scopeDialog),n=m.useRef(null),a=f(t,r.contentRef,n);return m.useEffect((()=>{const e=n.current;if(e)return o(e)}),[]),/*#__PURE__*/m.createElement(h,D({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(e.onCloseAutoFocus,(e=>{var o;e.preventDefault(),null===(o=r.triggerRef.current)||void 0===o||o.focus()})),onPointerDownOutside:g(e.onPointerDownOutside,(e=>{const o=e.detail.originalEvent,t=0===o.button&&!0===o.ctrlKey;(2===o.button||t)&&e.preventDefault()})),onFocusOutside:g(e.onFocusOutside,(e=>e.preventDefault()))}))})),O=/*#__PURE__*/m.forwardRef(((e,o)=>{const t=E("DialogContent",e.__scopeDialog),r=m.useRef(!1);/*#__PURE__*/return m.createElement(h,D({},e,{ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var n,a;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,o),o.defaultPrevented)||(r.current||null===(a=t.triggerRef.current)||void 0===a||a.focus(),o.preventDefault());r.current=!1},onInteractOutside:o=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,o),o.defaultPrevented||(r.current=!0);const i=o.target;(null===(a=t.triggerRef.current)||void 0===a?void 0:a.contains(i))&&o.preventDefault()}}))})),h=/*#__PURE__*/m.forwardRef(((e,o)=>{const{__scopeDialog:t,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...s}=e,u=E("DialogContent",t),p=m.useRef(null),d=f(o,p);return r(),/*#__PURE__*/m.createElement(m.Fragment,null,/*#__PURE__*/m.createElement(l,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i},/*#__PURE__*/m.createElement(c,D({role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":b(u.open)},s,{ref:d,onDismiss:()=>u.onOpenChange(!1)}))),!1)}));export const DialogTitle=/*#__PURE__*/m.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,a=E("DialogTitle",t);/*#__PURE__*/return m.createElement(n.h2,D({id:a.titleId},r,{ref:o}))}));/*#__PURE__*/export const DialogDescription=/*#__PURE__*/m.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,a=E("DialogDescription",t);/*#__PURE__*/return m.createElement(n.p,D({id:a.descriptionId},r,{ref:o}))}));/*#__PURE__*/export const DialogClose=/*#__PURE__*/m.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,a=E("DialogClose",t);/*#__PURE__*/return m.createElement(n.button,D({type:"button"},r,{ref:o,onClick:g(e.onClick,(()=>a.onOpenChange(!1)))}))}));/*#__PURE__*/function b(e){return e?"open":"closed"}const[w,F]=p("DialogTitleWarning",{contentName:"DialogContent",titleName:"DialogTitle",docsSlug:"dialog"});export{w as WarningProvider};export const Root=Dialog;export const Trigger=DialogTrigger;export const Portal=DialogPortal;export const Overlay=DialogOverlay;export const Content=DialogContent;export const Title=DialogTitle;export const Description=DialogDescription;export const Close=DialogClose;
+import { Slot as e } from "@radix-ui/react-slot";
+import { hideOthers as o } from "aria-hidden";
+import { RemoveScroll as t } from "react-remove-scroll";
+import { useFocusGuards as r } from "@radix-ui/react-focus-guards";
+import { Primitive as n } from "@radix-ui/react-primitive";
+import { Presence as a } from "@radix-ui/react-presence";
+import { UnstablePortal as i } from "@radix-ui/react-portal";
+import { FocusScope as l } from "@radix-ui/react-focus-scope";
+import { DismissableLayer as c } from "@radix-ui/react-dismissable-layer";
+import { useControllableState as s } from "@radix-ui/react-use-controllable-state";
+import { useId as u } from "@radix-ui/react-id";
+import {
+ createContext as p,
+ createContextScope as d,
+} from "@radix-ui/react-context";
+import { useComposedRefs as f } from "@radix-ui/react-compose-refs";
+import { composeEventHandlers as g } from "@radix-ui/primitive";
+import * as m from "react";
+import D from "@babel/runtime/helpers/esm/extends";
+const [x, C] = d("Dialog");
+export { C as createDialogScope };
+const [v, E] = x("Dialog");
+export const Dialog = (e) => {
+ const {
+ __scopeDialog: o,
+ children: t,
+ open: r,
+ defaultOpen: n,
+ onOpenChange: a,
+ modal: i = !0,
+ allowPinchZoom: l,
+ } = e,
+ c = m.useRef(null),
+ p = m.useRef(null),
+ [d = !1, f] = s({ prop: r, defaultProp: n, onChange: a });
+ /*#__PURE__*/ return m.createElement(
+ v,
+ {
+ scope: o,
+ triggerRef: c,
+ contentRef: p,
+ contentId: u(),
+ titleId: u(),
+ descriptionId: u(),
+ open: d,
+ onOpenChange: f,
+ onOpenToggle: m.useCallback(() => f((e) => !e), [f]),
+ modal: i,
+ allowPinchZoom: l,
+ },
+ t
+ );
+};
+/*#__PURE__*/ export const DialogTrigger = /*#__PURE__*/ m.forwardRef(
+ (e, o) => {
+ const { __scopeDialog: t, ...r } = e,
+ a = E("DialogTrigger", t),
+ i = f(o, a.triggerRef);
+ /*#__PURE__*/ return m.createElement(
+ n.button,
+ D(
+ {
+ type: "button",
+ "aria-haspopup": "dialog",
+ "aria-expanded": a.open,
+ "aria-controls": a.contentId,
+ "data-state": b(a.open),
+ },
+ r,
+ { ref: i, onClick: g(e.onClick, a.onOpenToggle) }
+ )
+ );
+ }
+);
+/*#__PURE__*/ export const DialogPortal = (e) => {
+ const { __scopeDialog: o, forceMount: t, children: r, container: n } = e,
+ l = E("DialogPortal", o);
+ /*#__PURE__*/ return m.createElement(
+ m.Fragment,
+ null,
+ m.Children.map(r, (e) =>
+ /*#__PURE__*/ m.createElement(
+ a,
+ { present: t || l.open },
+ /*#__PURE__*/ m.createElement(i, { asChild: !0, container: n }, e)
+ )
+ )
+ );
+};
+/*#__PURE__*/ export const DialogOverlay = /*#__PURE__*/ m.forwardRef(
+ (e, o) => {
+ const { forceMount: t, ...r } = e,
+ n = E("DialogOverlay", e.__scopeDialog);
+ return n.modal
+ ? /*#__PURE__*/ m.createElement(
+ a,
+ { present: t || n.open },
+ /*#__PURE__*/ m.createElement(R, D({}, r, { ref: o }))
+ )
+ : null;
+ }
+);
+/*#__PURE__*/ const R = /*#__PURE__*/ m.forwardRef((o, r) => {
+ const { __scopeDialog: a, ...i } = o,
+ l = E("DialogOverlay", a);
+ /*#__PURE__*/ return m.createElement(
+ t,
+ { as: e, allowPinchZoom: l.allowPinchZoom, shards: [l.contentRef] },
+ /*#__PURE__*/ m.createElement(
+ n.div,
+ D({ "data-state": b(l.open) }, i, {
+ ref: r,
+ style: { pointerEvents: "auto", ...i.style },
+ })
+ )
+ );
+});
+export const DialogContent = /*#__PURE__*/ m.forwardRef((e, o) => {
+ const { forceMount: t, ...r } = e,
+ n = E("DialogContent", e.__scopeDialog);
+ /*#__PURE__*/ return m.createElement(
+ a,
+ { present: t || n.open },
+ n.modal
+ ? /*#__PURE__*/ m.createElement(_, D({}, r, { ref: o }))
+ : /*#__PURE__*/ m.createElement(O, D({}, r, { ref: o }))
+ );
+});
+/*#__PURE__*/ const _ = /*#__PURE__*/ m.forwardRef((e, t) => {
+ const r = E("DialogContent", e.__scopeDialog),
+ n = m.useRef(null),
+ a = f(t, r.contentRef, n);
+ return (
+ m.useEffect(() => {
+ const e = n.current;
+ if (e) return o(e);
+ }, []),
+ /*#__PURE__*/ m.createElement(
+ h,
+ D({}, e, {
+ ref: a,
+ trapFocus: e.trapFocus ?? r.open,
+ disableOutsidePointerEvents: !0,
+ onCloseAutoFocus: g(e.onCloseAutoFocus, (e) => {
+ var o;
+ e.preventDefault(),
+ null === (o = r.triggerRef.current) || void 0 === o || o.focus();
+ }),
+ onPointerDownOutside: g(e.onPointerDownOutside, (e) => {
+ const o = e.detail.originalEvent,
+ t = 0 === o.button && !0 === o.ctrlKey;
+ (2 === o.button || t) && e.preventDefault();
+ }),
+ onFocusOutside: g(e.onFocusOutside, (e) => e.preventDefault()),
+ })
+ )
+ );
+ }),
+ O = /*#__PURE__*/ m.forwardRef((e, o) => {
+ const t = E("DialogContent", e.__scopeDialog),
+ r = m.useRef(!1);
+ /*#__PURE__*/ return m.createElement(
+ h,
+ D({}, e, {
+ ref: o,
+ trapFocus: !1,
+ disableOutsidePointerEvents: !1,
+ onCloseAutoFocus: (o) => {
+ var n, a;
+ (null === (n = e.onCloseAutoFocus) || void 0 === n || n.call(e, o),
+ o.defaultPrevented) ||
+ (r.current ||
+ null === (a = t.triggerRef.current) ||
+ void 0 === a ||
+ a.focus(),
+ o.preventDefault());
+ r.current = !1;
+ },
+ onInteractOutside: (o) => {
+ var n, a;
+ null === (n = e.onInteractOutside) || void 0 === n || n.call(e, o),
+ o.defaultPrevented || (r.current = !0);
+ const i = o.target;
+ (null === (a = t.triggerRef.current) || void 0 === a
+ ? void 0
+ : a.contains(i)) && o.preventDefault();
+ },
+ })
+ );
+ }),
+ h = /*#__PURE__*/ m.forwardRef((e, o) => {
+ const {
+ __scopeDialog: t,
+ trapFocus: n,
+ onOpenAutoFocus: a,
+ onCloseAutoFocus: i,
+ ...s
+ } = e,
+ u = E("DialogContent", t),
+ p = m.useRef(null),
+ d = f(o, p);
+ return (
+ r(),
+ /*#__PURE__*/ m.createElement(
+ m.Fragment,
+ null,
+ /*#__PURE__*/ m.createElement(
+ l,
+ {
+ asChild: !0,
+ loop: !0,
+ trapped: n,
+ onMountAutoFocus: a,
+ onUnmountAutoFocus: i,
+ },
+ /*#__PURE__*/ m.createElement(
+ c,
+ D(
+ {
+ role: "dialog",
+ id: u.contentId,
+ "aria-describedby": u.descriptionId,
+ "aria-labelledby": u.titleId,
+ "data-state": b(u.open),
+ },
+ s,
+ { ref: d, onDismiss: () => u.onOpenChange(!1) }
+ )
+ )
+ ),
+ !1
+ )
+ );
+ });
+export const DialogTitle = /*#__PURE__*/ m.forwardRef((e, o) => {
+ const { __scopeDialog: t, ...r } = e,
+ a = E("DialogTitle", t);
+ /*#__PURE__*/ return m.createElement(
+ n.h2,
+ D({ id: a.titleId }, r, { ref: o })
+ );
+});
+/*#__PURE__*/ export const DialogDescription = /*#__PURE__*/ m.forwardRef(
+ (e, o) => {
+ const { __scopeDialog: t, ...r } = e,
+ a = E("DialogDescription", t);
+ /*#__PURE__*/ return m.createElement(
+ n.p,
+ D({ id: a.descriptionId }, r, { ref: o })
+ );
+ }
+);
+/*#__PURE__*/ export const DialogClose = /*#__PURE__*/ m.forwardRef((e, o) => {
+ const { __scopeDialog: t, ...r } = e,
+ a = E("DialogClose", t);
+ /*#__PURE__*/ return m.createElement(
+ n.button,
+ D({ type: "button" }, r, {
+ ref: o,
+ onClick: g(e.onClick, () => a.onOpenChange(!1)),
+ })
+ );
+});
+/*#__PURE__*/ function b(e) {
+ return e ? "open" : "closed";
+}
+const [w, F] = p("DialogTitleWarning", {
+ contentName: "DialogContent",
+ titleName: "DialogTitle",
+ docsSlug: "dialog",
+});
+export { w as WarningProvider };
+export const Root = Dialog;
+export const Trigger = DialogTrigger;
+export const Portal = DialogPortal;
+export const Overlay = DialogOverlay;
+export const Content = DialogContent;
+export const Title = DialogTitle;
+export const Description = DialogDescription;
+export const Close = DialogClose;
//# sourceMappingURL=index.module.js.map
14 changes: 14 additions & 0 deletions .yarn/patches/@remix-run-dev-npm-1.7.0-fe40e11b54.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/dist/compiler/plugins/mdx.js b/dist/compiler/plugins/mdx.js
index ed4befeed2bad93957a45f96c3e2cbd6ead31829..e7db6627384e28e3ae4f9494b322720b81c58730 100644
--- a/dist/compiler/plugins/mdx.js
+++ b/dist/compiler/plugins/mdx.js
@@ -102,7 +102,8 @@ export const meta = typeof attributes !== "undefined" && attributes.meta;
pragma: "React.createElement",
pragmaFrag: "React.Fragment",
rehypePlugins,
- remarkPlugins
+ remarkPlugins,
+ providerImportSource: "@mdx-js/react",
});
let contents = `
${compiled.value}
Loading