baseui 0.0.0-next-4ebff86 → 0.0.0-next-9bbebbb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/utils.js +1 -1
- package/badge/utils.js.flow +1 -1
- package/es/badge/utils.js +1 -1
- package/esm/badge/utils.js +1 -1
- package/package.json +4 -4
package/badge/utils.js
CHANGED
|
@@ -22,7 +22,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
22
22
|
var getAnchorFromChildren = function getAnchorFromChildren(children) {
|
|
23
23
|
var childArray = React.Children.toArray(children);
|
|
24
24
|
|
|
25
|
-
if (childArray.length
|
|
25
|
+
if (childArray.length > 1) {
|
|
26
26
|
// eslint-disable-next-line no-console
|
|
27
27
|
console.error("[baseui] No more than 1 child may be passed to Badge, found ".concat(childArray.length, " children"));
|
|
28
28
|
}
|
package/badge/utils.js.flow
CHANGED
|
@@ -9,7 +9,7 @@ import * as React from 'react';
|
|
|
9
9
|
|
|
10
10
|
export const getAnchorFromChildren = (children: ?React.Node) => {
|
|
11
11
|
const childArray = React.Children.toArray(children);
|
|
12
|
-
if (childArray.length
|
|
12
|
+
if (childArray.length > 1) {
|
|
13
13
|
// eslint-disable-next-line no-console
|
|
14
14
|
console.error(
|
|
15
15
|
`[baseui] No more than 1 child may be passed to Badge, found ${childArray.length} children`
|
package/es/badge/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as React from 'react';
|
|
|
8
8
|
export const getAnchorFromChildren = children => {
|
|
9
9
|
const childArray = React.Children.toArray(children);
|
|
10
10
|
|
|
11
|
-
if (childArray.length
|
|
11
|
+
if (childArray.length > 1) {
|
|
12
12
|
// eslint-disable-next-line no-console
|
|
13
13
|
console.error(`[baseui] No more than 1 child may be passed to Badge, found ${childArray.length} children`);
|
|
14
14
|
}
|
package/esm/badge/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as React from 'react';
|
|
|
8
8
|
export var getAnchorFromChildren = function getAnchorFromChildren(children) {
|
|
9
9
|
var childArray = React.Children.toArray(children);
|
|
10
10
|
|
|
11
|
-
if (childArray.length
|
|
11
|
+
if (childArray.length > 1) {
|
|
12
12
|
// eslint-disable-next-line no-console
|
|
13
13
|
console.error("[baseui] No more than 1 child may be passed to Badge, found ".concat(childArray.length, " children"));
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baseui",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-9bbebbb",
|
|
4
4
|
"description": "A React Component library implementing the Base design language",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -190,9 +190,9 @@
|
|
|
190
190
|
"semver": "^6.2.0",
|
|
191
191
|
"shx": "^0.3.2",
|
|
192
192
|
"static-server": "^2.2.1",
|
|
193
|
-
"styletron-engine-atomic": "^1.5.0-beta.
|
|
194
|
-
"styletron-react": "^6.1.0-beta.
|
|
195
|
-
"styletron-standard": "^3.1.0-beta.
|
|
193
|
+
"styletron-engine-atomic": "^1.5.0-beta.2",
|
|
194
|
+
"styletron-react": "^6.1.0-beta.2",
|
|
195
|
+
"styletron-standard": "^3.1.0-beta.2",
|
|
196
196
|
"tar": "^5.0.0",
|
|
197
197
|
"tsconfig-paths": "^3.9.0",
|
|
198
198
|
"typescript": "^4.7.2",
|