@react-ui-org/react-ui 0.44.0-alpha.0 → 0.44.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-ui-org/react-ui",
3
3
  "description": "React UI is a themeable UI library for React apps.",
4
- "version": "0.44.0-alpha.0",
4
+ "version": "0.44.0",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",
@@ -52,10 +52,7 @@ CTA.propTypes = {
52
52
  * * `CTACenter`
53
53
  * * `CTAEnd`
54
54
  */
55
- children: PropTypes.oneOfType([
56
- PropTypes.element,
57
- PropTypes.arrayOf(PropTypes.element),
58
- ]).isRequired,
55
+ children: PropTypes.node.isRequired,
59
56
  };
60
57
 
61
58
  export const CTAWithContext = withProviderContext(CTA, 'CTA');
@@ -41,10 +41,7 @@ Card.propTypes = {
41
41
  * * `CardFooter`
42
42
  * * `ScrollView`
43
43
  */
44
- children: PropTypes.oneOfType([
45
- PropTypes.element,
46
- PropTypes.arrayOf(PropTypes.element),
47
- ]).isRequired,
44
+ children: PropTypes.node.isRequired,
48
45
  /**
49
46
  * [Color variant](/foundation/colors#component-colors) to clarify importance and meaning of the card.
50
47
  */
@@ -89,10 +89,7 @@ FormLayout.propTypes = {
89
89
  * * `TextField`
90
90
  * * `Toggle`
91
91
  */
92
- children: PropTypes.oneOfType([
93
- PropTypes.element,
94
- PropTypes.arrayOf(PropTypes.element),
95
- ]),
92
+ children: PropTypes.node,
96
93
  /**
97
94
  * Layout that is forced on children form fields.
98
95
  */
@@ -21,10 +21,7 @@ Media.propTypes = {
21
21
  * * `MediaBody`
22
22
  * * `MediaObject`
23
23
  */
24
- children: PropTypes.oneOfType([
25
- PropTypes.element,
26
- PropTypes.arrayOf(PropTypes.element),
27
- ]).isRequired,
24
+ children: PropTypes.node.isRequired,
28
25
  };
29
26
 
30
27
  export const MediaWithContext = withProviderContext(Media, 'Media');
@@ -26,10 +26,7 @@ Tabs.propTypes = {
26
26
  /**
27
27
  * Nested `TabsItem` elements.
28
28
  */
29
- children: PropTypes.oneOfType([
30
- PropTypes.element,
31
- PropTypes.arrayOf(PropTypes.element),
32
- ]),
29
+ children: PropTypes.node,
33
30
  /**
34
31
  * ID of the root HTML element. It also serves as base for nested element:
35
32
  * * `<ID>__list`