@@ -25,16 +25,17 @@ type RootProps =
2525 }
2626
2727x = React.element
28+
2829-- | The foreign component for the Dialog
2930foreign import rootImpl ∷ ∀ a. ReactComponent { | a }
3031
3132-- | A PureScript wrapper for the Dialog component
32−root ∷
33− ∀ p.
34− Coerce p RootProps ⇒
35− p →
36− Array JSX →
37− JSX
33+root
34+ ∷ ∀ p
35+ . Coerce p RootProps
36+ ⇒ p
37+ → Array JSX
38+ → JSX
3839root props kids = React.element rootImpl $
3940 (coerce props ∷ RootProps) # RB.build
4041 ( RB.modify (Proxy ∷ _ "onOpenChange") (pseudoMap mkEffectFn1)
@@ -51,8 +52,8 @@ type DialogTriggerProps =
5152foreign import triggerImpl ∷ ∀ a. ReactComponent { | a }
5253
5354-- | A PureScript wrapper for the DialogTrigger component
54−trigger ∷
55− ∀ p kids. Coerce p DialogTriggerProps ⇒ IsJSX kids ⇒ p → kids → JSX
55+trigger
56+ ∷ ∀ p kids. Coerce p DialogTriggerProps ⇒ IsJSX kids ⇒ p → kids → JSX
5657trigger props kids = React.element triggerImpl $
5758 (coerce props ∷ DialogTriggerProps) # RB.build
5859 ( RB.insert (Proxy ∷ _ "children") kids
@@ -60,18 +61,16 @@ trigger props kids = React.element triggerImpl $
6061
6162-- | The type of the DialogPortal component props
6263type DialogPortalProps =
63− { forceMount ∷
64− Opt Boolean -- ^ Whether to force mount the alert dialog portal in the DOM even when it is not open
65− , container ∷
66− Opt HTMLElement -- ^ The container element to mount the alert dialog portal into
64+ { forceMount ∷ Opt Boolean -- ^ Whether to force mount the alert dialog portal in the DOM even when it is not open
65+ , container ∷ Opt HTMLElement -- ^ The container element to mount the alert dialog portal into
6766 }
6867
6968-- | The foreign component for the DialogPortal
7069foreign import portalImpl ∷ ∀ a. ReactComponent { | a }
7170
7271-- | A PureScript wrapper for the DialogPortal component
73−portal ∷
74− ∀ p kids. Coerce p DialogPortalProps ⇒ IsJSX kids ⇒ p → kids → JSX
72+portal
73+ ∷ ∀ p kids. Coerce p DialogPortalProps ⇒ IsJSX kids ⇒ p → kids → JSX
7574portal props kids = React.element portalImpl $
7675 (coerce props ∷ DialogPortalProps) # RB.build
7776 ( RB.insert (Proxy ∷ _ "children") kids
@@ -91,8 +90,8 @@ type DialogOverlayProps =
9190foreign import overlayImpl ∷ ∀ a. ReactComponent { | a }
9291
9392-- | A PureScript wrapper for the DialogOverlay component
94−overlay ∷
95− ∀ p kids. Coerce p DialogOverlayProps ⇒ IsJSX kids ⇒ p → kids → JSX
93+overlay
94+ ∷ ∀ p kids. Coerce p DialogOverlayProps ⇒ IsJSX kids ⇒ p → kids → JSX
9695overlay props kids = React.element overlayImpl $
9796 (coerce props ∷ DialogOverlayProps) # RB.build
9897 ( RB.insert (Proxy ∷ _ "children") kids
@@ -118,8 +117,8 @@ type DialogContentProps =
118117foreign import contentImpl ∷ ∀ a. ReactComponent { | a }
119118
120119-- | A PureScript wrapper for the DialogContent component
121−content ∷
122− ∀ p kids. Coerce p DialogContentProps ⇒ IsJSX kids ⇒ p → kids → JSX
120+content
121+ ∷ ∀ p kids. Coerce p DialogContentProps ⇒ IsJSX kids ⇒ p → kids → JSX
123122content props kids = React.element contentImpl $
124123 (coerce props ∷ DialogContentProps) # RB.build
125124 (
@@ -136,23 +135,6 @@ type DialogCancelProps =
136135 Opt Boolean -- ^ Whether to render the alert dialog cancel button as a child of the dialog content
137136 }
138137
139−-- | The type of the DialogAction component props
140−type DialogActionProps =
141− { asChild ∷
142− Opt Boolean -- ^ Whether to render the alert dialog action button as a child of the dialog content
143− }
144−
145−-- | The foreign component for the DialogAction
146−foreign import actionImpl ∷ ∀ a. ReactComponent { | a }
147−
148−-- | A PureScript wrapper for the DialogAction component
149−action ∷
150− ∀ p kids. Coerce p DialogActionProps ⇒ IsJSX kids ⇒ p → kids → JSX
151−action props kids = React.element actionImpl $
152− (coerce props ∷ DialogActionProps) # RB.build
153− ( RB.insert (Proxy ∷ _ "children") kids
154− )
155−
156138-- | The type of the DialogTitle component props
157139type DialogTitleProps =
158140 { asChild ∷
@@ -165,8 +147,8 @@ type DialogTitleProps =
165147foreign import titleImpl ∷ ∀ a. ReactComponent { | a }
166148
167149-- | A PureScript wrapper for the DialogTitle component
168−title ∷
169− ∀ p kids. Coerce p DialogTitleProps ⇒ IsJSX kids ⇒ p → kids → JSX
150+title
151+ ∷ ∀ p kids. Coerce p DialogTitleProps ⇒ IsJSX kids ⇒ p → kids → JSX
170152title props kids = React.element titleImpl $
171153 (coerce props ∷ DialogTitleProps) # RB.build
172154 ( RB.insert (Proxy ∷ _ "children") kids
@@ -185,10 +167,29 @@ type DialogDescriptionProps =
185167foreign import descriptionImpl ∷ ∀ a. ReactComponent { | a }
186168
187169-- | A PureScript wrapper for the DialogDescription component
188−description ∷
189− ∀ p kids. Coerce p DialogDescriptionProps ⇒ IsJSX kids ⇒ p → kids → JSX
170+description
171+ ∷ ∀ p kids. Coerce p DialogDescriptionProps ⇒ IsJSX kids ⇒ p → kids → JSX
190172description props kids = React.element descriptionImpl $
191173 (coerce props ∷ DialogDescriptionProps) # RB.build
192174 ( RB.insert (Proxy ∷ _ "children") kids
193175 )
194176
177+-- | The type of the DialogClose component props
178+type DialogCloseProps =
179+ { asChild ∷
180+ Opt Boolean -- ^ Whether to render the alert dialog description as a child of the dialog content
181+ , className ∷
182+ Opt String -- ^ The CSS class name of the alert dialog description
183+ , style ∷ Opt CSS -- ^ The CSS style of the alert dialog description
184+ }
185+
186+-- | The foreign component for the DialogClose
187+foreign import closeImpl ∷ ∀ a. ReactComponent { | a }
188+
189+-- | A PureScript wrapper for the DialogClose component
190+close
191+ ∷ ∀ p kids. Coerce p DialogCloseProps ⇒ IsJSX kids ⇒ p → kids → JSX
192+close props kids = React.element closeImpl $
193+ (coerce props ∷ DialogCloseProps) # RB.build
194+ ( RB.insert (Proxy ∷ _ "children") kids
195+ )