@workday/canvas-kit-labs-react 8.0.0-alpha.121-next.2 → 8.0.0
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/combobox/lib/Combobox.tsx +1 -1
- package/combobox/package.json +2 -1
- package/common/package.json +2 -1
- package/dist/commonjs/combobox/lib/Combobox.js +1 -1
- package/dist/es6/combobox/lib/Combobox.js +1 -1
- package/drawer/package.json +2 -1
- package/package.json +5 -5
- package/search-form/package.json +2 -1
|
@@ -138,7 +138,7 @@ export const getOptionId = (baseId?: string, index?: number) =>
|
|
|
138
138
|
export const getTextFromElement = (children?: React.ReactNode) => {
|
|
139
139
|
let text = '';
|
|
140
140
|
React.Children.map(children, child => {
|
|
141
|
-
if (child == null || typeof child === 'boolean') {
|
|
141
|
+
if (child == null || typeof child === 'boolean' || child === {}) {
|
|
142
142
|
text += '';
|
|
143
143
|
} else if (typeof child === 'string' || typeof child === 'number') {
|
|
144
144
|
text += child.toString();
|
package/combobox/package.json
CHANGED
package/common/package.json
CHANGED
|
@@ -116,7 +116,7 @@ exports.getOptionId = getOptionId;
|
|
|
116
116
|
var getTextFromElement = function (children) {
|
|
117
117
|
var text = '';
|
|
118
118
|
react_1.default.Children.map(children, function (child) {
|
|
119
|
-
if (child == null || typeof child === 'boolean') {
|
|
119
|
+
if (child == null || typeof child === 'boolean' || child === {}) {
|
|
120
120
|
text += '';
|
|
121
121
|
}
|
|
122
122
|
else if (typeof child === 'string' || typeof child === 'number') {
|
|
@@ -90,7 +90,7 @@ export var getOptionId = function (baseId, index) {
|
|
|
90
90
|
export var getTextFromElement = function (children) {
|
|
91
91
|
var text = '';
|
|
92
92
|
React.Children.map(children, function (child) {
|
|
93
|
-
if (child == null || typeof child === 'boolean') {
|
|
93
|
+
if (child == null || typeof child === 'boolean' || child === {}) {
|
|
94
94
|
text += '';
|
|
95
95
|
}
|
|
96
96
|
else if (typeof child === 'string' || typeof child === 'number') {
|
package/drawer/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-labs-react",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functionality. The Labs modules allow us to do that as needed.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"workday"
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"react": "^
|
|
44
|
+
"react": "^16.8 || ^17.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@emotion/react": "^11.7.1",
|
|
48
48
|
"@emotion/styled": "^11.6.0",
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^8.0.0
|
|
50
|
-
"@workday/canvas-kit-react": "^8.0.0
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^8.0.0",
|
|
50
|
+
"@workday/canvas-kit-react": "^8.0.0",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"chroma-js": "^2.1.0",
|
|
53
53
|
"lodash.flatten": "^4.4.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/lodash.flatten": "^4.4.6"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "433a9d272804ceed26191ac1ef629d61fab4dcb4"
|
|
60
60
|
}
|