|
1 | | -import { Fragment, jsx, jsxs } from "react/jsx-runtime"; |
| 1 | +// Generated by ReScript, PLEASE EDIT WITH CARE |
| 2 | + |
2 | 3 | import * as Primitive_option from "rescript/lib/es6/Primitive_option.js"; |
3 | 4 | import * as JsxRuntime from "react/jsx-runtime"; |
| 5 | + |
4 | 6 | let React = {}; |
| 7 | + |
5 | 8 | let ReactDOM = {}; |
| 9 | + |
6 | 10 | function Preserve_jsx_test$Icon(props) { |
7 | | - return /* @__PURE__ */ jsx("strong", {}); |
| 11 | + return <strong/>; |
8 | 12 | } |
| 13 | + |
9 | 14 | let Icon = { |
10 | 15 | make: Preserve_jsx_test$Icon |
11 | 16 | }; |
12 | | -let _single_element_child = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("h1", { children: "Hello, world!" }) }); |
13 | | -let _multiple_element_children = /* @__PURE__ */ jsxs("div", { children: [ |
14 | | - /* @__PURE__ */ jsx("h1", { children: "Hello, world!" }), |
15 | | - /* @__PURE__ */ jsx(Preserve_jsx_test$Icon, {}) |
16 | | -] }); |
17 | | -let _single_element_fragment = /* @__PURE__ */ jsx(Fragment, { children: Primitive_option.some(/* @__PURE__ */ jsx("input", {})) }); |
18 | | -let _multiple_element_fragment = /* @__PURE__ */ jsxs(Fragment, { children: [ |
19 | | - /* @__PURE__ */ jsx("input", { type: "text" }), |
20 | | - /* @__PURE__ */ jsx("input", { type: "number" }) |
21 | | -] }); |
22 | | -let _unary_element_with_props = /* @__PURE__ */ jsx("input", { className: "foo", type: "text" }); |
23 | | -let _container_element_with_props_and_children = /* @__PURE__ */ jsx("div", { className: "foo", title: "foo", children: "Hello, world!" }); |
| 17 | + |
| 18 | +let _single_element_child = <div> |
| 19 | +<h1> |
| 20 | +{"Hello, world!"} |
| 21 | +</h1> |
| 22 | +</div>; |
| 23 | + |
| 24 | +let _multiple_element_children = <div> |
| 25 | +<h1> |
| 26 | +{"Hello, world!"} |
| 27 | +</h1> |
| 28 | +<Preserve_jsx_test$Icon/> |
| 29 | +</div>; |
| 30 | + |
| 31 | +let _single_element_fragment = <> |
| 32 | +{Primitive_option.some(<input/>)} |
| 33 | +</>; |
| 34 | + |
| 35 | +let _multiple_element_fragment = <> |
| 36 | +<input type={"text"}/> |
| 37 | +<input type={"number"}/> |
| 38 | +</>; |
| 39 | + |
| 40 | +let _unary_element_with_props = <input className={"foo"} type={"text"}/>; |
| 41 | + |
| 42 | +let _container_element_with_props_and_children = <div className={"foo"} title={"foo"}> |
| 43 | +{"Hello, world!"} |
| 44 | +</div>; |
| 45 | + |
24 | 46 | let baseProps = { |
25 | 47 | className: "foo", |
26 | 48 | title: "foo" |
27 | 49 | }; |
28 | | -let newrecord = { ...baseProps }; |
29 | | -let _unary_element_with_spread_props = /* @__PURE__ */ jsx("input", { ...newrecord, type: "text" }); |
30 | | -let newrecord$1 = { ...baseProps }; |
31 | | -let _container_with_spread_props = /* @__PURE__ */ jsxs("div", { ...newrecord$1, title: "barry", className: "barry", children: [ |
32 | | - "Hello, world!", |
33 | | - /* @__PURE__ */ jsx("input", { type: "text" }) |
34 | | -] }); |
| 50 | + |
| 51 | +let newrecord = {...baseProps}; |
| 52 | + |
| 53 | +let _unary_element_with_spread_props = <input {...newrecord} type={"text"}/>; |
| 54 | + |
| 55 | +let newrecord$1 = {...baseProps}; |
| 56 | + |
| 57 | +let _container_with_spread_props = <div {...newrecord$1} title={"barry"} className={"barry"}> |
| 58 | +{"Hello, world!"} |
| 59 | +<input type={"text"}/> |
| 60 | +</div>; |
| 61 | + |
35 | 62 | let baseChildren = [ |
36 | | - /* @__PURE__ */ jsx("span", { children: "Hello, world!" }), |
37 | | - /* @__PURE__ */ jsx("span", { children: "Hello, world!" }) |
| 63 | + <span> |
| 64 | + {"Hello, world!"} |
| 65 | + </span>, |
| 66 | + <span> |
| 67 | + {"Hello, world!"} |
| 68 | + </span> |
38 | 69 | ]; |
39 | | -let _container_with_spread_children = /* @__PURE__ */ jsx("div", { className: "barry", title: "barry", children: baseChildren }); |
40 | | -let newrecord$2 = { ...baseProps }; |
41 | | -let _container_with_spread_props_and_children = /* @__PURE__ */ jsx("div", { ...newrecord$2, title: "barry", className: "barry", children: baseChildren }); |
42 | | -let newrecord$3 = { ...baseProps }; |
43 | | -let _unary_element_with_spread_props_keyed = /* @__PURE__ */ jsx("input", { ...newrecord$3, type: "text" }, "barry-key"); |
44 | | -let newrecord$4 = { ...baseProps }; |
45 | | -let _container_with_spread_props_keyed = /* @__PURE__ */ jsxs("div", { ...newrecord$4, title: "barry", className: "barry", children: [ |
46 | | - "Hello, world!", |
47 | | - /* @__PURE__ */ jsx("input", { type: "text" }) |
48 | | -] }, "barry-key"); |
49 | | -let _unary_element_with_only_spread_props = /* @__PURE__ */ jsx("input", { ...baseProps }); |
50 | | -function QueryClientProvider(props) { |
51 | | - return props.children; |
52 | | -} |
| 70 | + |
| 71 | +let _container_with_spread_children = <div className={"barry"} title={"barry"}> |
| 72 | +{baseChildren} |
| 73 | +</div>; |
| 74 | + |
| 75 | +let newrecord$2 = {...baseProps}; |
| 76 | + |
| 77 | +let _container_with_spread_props_and_children = <div {...newrecord$2} title={"barry"} className={"barry"}> |
| 78 | +{baseChildren} |
| 79 | +</div>; |
| 80 | + |
| 81 | +let newrecord$3 = {...baseProps}; |
| 82 | + |
| 83 | +let _unary_element_with_spread_props_keyed = <input key={"barry-key"} {...newrecord$3} type={"text"}/>; |
| 84 | + |
| 85 | +let newrecord$4 = {...baseProps}; |
| 86 | + |
| 87 | +let _container_with_spread_props_keyed = <div key={"barry-key"} {...newrecord$4} title={"barry"} className={"barry"}> |
| 88 | +{"Hello, world!"} |
| 89 | +<input type={"text"}/> |
| 90 | +</div>; |
| 91 | + |
| 92 | +let _unary_element_with_only_spread_props = <input {...baseProps} />; |
| 93 | + |
| 94 | +function QueryClientProvider(props) { return props.children } |
53 | 95 | ; |
| 96 | + |
54 | 97 | let A = {}; |
| 98 | + |
55 | 99 | function Preserve_jsx_test$B(props) { |
56 | | - return /* @__PURE__ */ jsx("p", { children: "Hello, world!" }); |
| 100 | + return <p> |
| 101 | + {"Hello, world!"} |
| 102 | + </p>; |
57 | 103 | } |
| 104 | + |
58 | 105 | let B = { |
59 | 106 | make: Preserve_jsx_test$B |
60 | 107 | }; |
61 | | -let _external_component_with_children = /* @__PURE__ */ jsxs(QueryClientProvider, { children: [ |
62 | | - /* @__PURE__ */ jsx("strong", {}), |
63 | | - /* @__PURE__ */ jsx(Preserve_jsx_test$B, {}) |
64 | | -] }); |
| 108 | + |
| 109 | +let _external_component_with_children = <QueryClientProvider> |
| 110 | +<strong/> |
| 111 | +<Preserve_jsx_test$B/> |
| 112 | +</QueryClientProvider>; |
| 113 | + |
65 | 114 | export { |
66 | | - A, |
67 | | - B, |
68 | | - Icon, |
69 | 115 | React, |
70 | 116 | ReactDOM, |
71 | | - _container_element_with_props_and_children, |
72 | | - _container_with_spread_children, |
73 | | - _container_with_spread_props, |
74 | | - _container_with_spread_props_and_children, |
75 | | - _container_with_spread_props_keyed, |
76 | | - _external_component_with_children, |
77 | | - _multiple_element_children, |
78 | | - _multiple_element_fragment, |
| 117 | + Icon, |
79 | 118 | _single_element_child, |
| 119 | + _multiple_element_children, |
80 | 120 | _single_element_fragment, |
81 | | - _unary_element_with_only_spread_props, |
| 121 | + _multiple_element_fragment, |
82 | 122 | _unary_element_with_props, |
| 123 | + _container_element_with_props_and_children, |
| 124 | + baseProps, |
83 | 125 | _unary_element_with_spread_props, |
84 | | - _unary_element_with_spread_props_keyed, |
| 126 | + _container_with_spread_props, |
85 | 127 | baseChildren, |
86 | | - baseProps |
87 | | -}; |
| 128 | + _container_with_spread_children, |
| 129 | + _container_with_spread_props_and_children, |
| 130 | + _unary_element_with_spread_props_keyed, |
| 131 | + _container_with_spread_props_keyed, |
| 132 | + _unary_element_with_only_spread_props, |
| 133 | + A, |
| 134 | + B, |
| 135 | + _external_component_with_children, |
| 136 | +} |
| 137 | +/* _single_element_child Not a pure module */ |
0 commit comments