File tree Expand file tree Collapse file tree 3 files changed +53
-2
lines changed
@plotly/dash-test-components/src Expand file tree Collapse file tree 3 files changed +53
-2
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import PropTypes from 'prop-types' ;
3
+
4
+ const ShapeOrExactKeepOrderComponent = ( props ) => {
5
+ const { id } = props ;
6
+
7
+ return (
8
+ < div id = { id } />
9
+ ) ;
10
+ }
11
+ ShapeOrExactKeepOrderComponent . propTypes = {
12
+ id : PropTypes . string ,
13
+ /**
14
+ * test prop for shape
15
+ */
16
+ shape_test_prop : PropTypes . shape ( {
17
+ /**
18
+ * z
19
+ */
20
+ z : PropTypes . string ,
21
+ /**
22
+ * a
23
+ */
24
+ a : PropTypes . string ,
25
+ /**
26
+ * y
27
+ */
28
+ y : PropTypes . string
29
+ } ) ,
30
+ /**
31
+ * test prop for exact
32
+ */
33
+ exact_test_prop : PropTypes . exact ( {
34
+ /**
35
+ * z
36
+ */
37
+ z : PropTypes . string ,
38
+ /**
39
+ * a
40
+ */
41
+ a : PropTypes . string ,
42
+ /**
43
+ * y
44
+ */
45
+ y : PropTypes . string
46
+ } ) ,
47
+ }
48
+
49
+ export default ShapeOrExactKeepOrderComponent ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import ComponentAsProp from './components/ComponentAsProp';
11
11
import DrawCounter from './components/DrawCounter' ;
12
12
import AddPropsComponent from "./components/AddPropsComponent" ;
13
13
import ReceivePropsComponent from "./components/ReceivePropsComponent" ;
14
+ import ShapeOrExactKeepOrderComponent from "./components/ShapeOrExactKeepOrderComponent" ;
14
15
15
16
16
17
export {
@@ -25,5 +26,6 @@ export {
25
26
ComponentAsProp ,
26
27
DrawCounter ,
27
28
AddPropsComponent ,
28
- ReceivePropsComponent
29
+ ReceivePropsComponent ,
30
+ ShapeOrExactKeepOrderComponent
29
31
} ;
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ def shape_or_exact():
557
557
default = prop .get ("defaultValue" ),
558
558
indent_num = indent_num + 2 ,
559
559
)
560
- for prop_name , prop in sorted ( list (type_object ["value" ].items () ))
560
+ for prop_name , prop in list (type_object ["value" ].items ())
561
561
)
562
562
563
563
def array_of ():
You can’t perform that action at this time.
0 commit comments