Skip to content

Commit 0b45890

Browse files
committed
Add shared xml namespace props
1 parent 3106c92 commit 0b45890

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

src/React/Basic/DOM/Internal.purs

+30-17
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,36 @@ foreign import data CSS :: Type
1111
-- The string props are from MDN, and the
1212
-- event handlers are the same as in SharedProps
1313
-- (the same events should work for SVG elements)
14-
type SharedSVGProps specific =
15-
( id :: String
16-
, className :: String
17-
, style :: CSS
18-
, tabIndex :: String
19-
, onBlur :: EventHandler
20-
, onClick :: EventHandler
21-
, onFocus :: EventHandler
22-
, onMouseDown :: EventHandler
23-
, onMouseEnter :: EventHandler
24-
, onMouseLeave :: EventHandler
25-
, onMouseMove :: EventHandler
26-
, onMouseOut :: EventHandler
27-
, onMouseOver :: EventHandler
28-
, onMouseUp :: EventHandler
29-
| specific
30-
)
14+
type SharedSVGProps specific
15+
= ( id :: String
16+
, className :: String
17+
, style :: CSS
18+
, tabIndex :: String
19+
, lang :: String
20+
, xlinkActuate :: String
21+
, xlinkArcrole :: String
22+
, xlinkHref :: String
23+
, xlinkRole :: String
24+
, xlinkShow :: String
25+
, xlinkTitle :: String
26+
, xlinkType :: String
27+
, xmlBase :: String
28+
, xmlLang :: String
29+
, xmlSpace :: String
30+
, xmlns :: String
31+
, xmlnsXlink :: String
32+
, onBlur :: EventHandler
33+
, onClick :: EventHandler
34+
, onFocus :: EventHandler
35+
, onMouseDown :: EventHandler
36+
, onMouseEnter :: EventHandler
37+
, onMouseLeave :: EventHandler
38+
, onMouseMove :: EventHandler
39+
, onMouseOut :: EventHandler
40+
, onMouseOver :: EventHandler
41+
, onMouseUp :: EventHandler
42+
| specific
43+
)
3144

3245
unsafeCreateDOMComponent :: forall props. String -> ReactComponent props
3346
unsafeCreateDOMComponent = unsafeCoerce

0 commit comments

Comments
 (0)