@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.
@@ -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();
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/combobox",
3
3
  "module": "../dist/es6/combobox",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/combobox"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/common",
3
3
  "module": "../dist/es6/common",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/common"
5
6
  }
@@ -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') {
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/drawer",
3
3
  "module": "../dist/es6/drawer",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/drawer"
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-labs-react",
3
- "version": "8.0.0-alpha.121-next.2+83e3394d",
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": "^17.0 || ^18.0"
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-alpha.121-next.2+83e3394d",
50
- "@workday/canvas-kit-react": "^8.0.0-alpha.121-next.2+83e3394d",
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": "83e3394d370efc56362ddb4bcc49c65a12a2bc8f"
59
+ "gitHead": "433a9d272804ceed26191ac1ef629d61fab4dcb4"
60
60
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/search-form",
3
3
  "module": "../dist/es6/search-form",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/search-form"
5
6
  }