@workday/canvas-kit-preview-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/breadcrumbs/lib/Breadcrumbs/List/index.tsx +5 -3
- package/breadcrumbs/package.json +2 -1
- package/color-picker/package.json +2 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.js +14 -2
- package/dist/commonjs/menu/lib/Menu.js +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +14 -2
- package/dist/es6/menu/lib/Menu.js +1 -1
- package/dist/es6/pill/lib/Pill.d.ts +7 -7
- package/dist/es6/pill/lib/PillAvatar.d.ts +2 -1
- package/dist/es6/pill/lib/PillAvatar.d.ts.map +1 -1
- package/dist/es6/pill/lib/PillIcon.d.ts +2 -1
- package/dist/es6/pill/lib/PillIcon.d.ts.map +1 -1
- package/dist/es6/pill/lib/PillIconButton.d.ts +2 -1
- package/dist/es6/pill/lib/PillIconButton.d.ts.map +1 -1
- package/dist/es6/pill/lib/PillLabel.d.ts +2 -1
- package/dist/es6/pill/lib/PillLabel.d.ts.map +1 -1
- package/dist/es6/pill/lib/usePillModel.d.ts +5 -5
- package/form-field/package.json +2 -1
- package/menu/lib/Menu.tsx +1 -1
- package/menu/package.json +2 -1
- package/package.json +5 -5
- package/pill/package.json +2 -1
- package/select/package.json +2 -1
- package/side-panel/package.json +2 -1
- package/text-area/package.json +2 -1
- package/text-input/package.json +2 -1
|
@@ -6,10 +6,9 @@ export type BreadcrumbsListProps = React.HTMLAttributes<HTMLUListElement>;
|
|
|
6
6
|
|
|
7
7
|
export const BreadcrumbsList = createComponent('ul')({
|
|
8
8
|
displayName: 'BreadcrumbsList',
|
|
9
|
-
Component: (elemProps: BreadcrumbsListProps, ref
|
|
9
|
+
Component: ({children, ...elemProps}: BreadcrumbsListProps, ref) => {
|
|
10
10
|
return (
|
|
11
11
|
<Flex
|
|
12
|
-
as={Element}
|
|
13
12
|
padding="zero"
|
|
14
13
|
margin="zero"
|
|
15
14
|
display="inline-flex"
|
|
@@ -17,10 +16,13 @@ export const BreadcrumbsList = createComponent('ul')({
|
|
|
17
16
|
minHeight={40}
|
|
18
17
|
listStyle="none"
|
|
19
18
|
style={{boxSizing: 'border-box'}}
|
|
19
|
+
as="ul"
|
|
20
20
|
role="list"
|
|
21
21
|
ref={ref}
|
|
22
22
|
{...elemProps}
|
|
23
|
-
|
|
23
|
+
>
|
|
24
|
+
{children}
|
|
25
|
+
</Flex>
|
|
24
26
|
);
|
|
25
27
|
},
|
|
26
28
|
});
|
package/breadcrumbs/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../breadcrumbs/lib/Breadcrumbs/List/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../breadcrumbs/lib/Breadcrumbs/List/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E,eAAO,MAAM,eAAe,yFAqB1B,CAAC"}
|
|
@@ -10,6 +10,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
13
24
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
26
|
};
|
|
@@ -20,7 +31,8 @@ var common_1 = require("@workday/canvas-kit-react/common");
|
|
|
20
31
|
var layout_1 = require("@workday/canvas-kit-react/layout");
|
|
21
32
|
exports.BreadcrumbsList = common_1.createComponent('ul')({
|
|
22
33
|
displayName: 'BreadcrumbsList',
|
|
23
|
-
Component: function (
|
|
24
|
-
|
|
34
|
+
Component: function (_a, ref) {
|
|
35
|
+
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
36
|
+
return (react_1.default.createElement(layout_1.Flex, __assign({ padding: "zero", margin: "zero", display: "inline-flex", alignItems: "center", minHeight: 40, listStyle: "none", style: { boxSizing: 'border-box' }, as: "ul", role: "list", ref: ref }, elemProps), children));
|
|
25
37
|
},
|
|
26
38
|
});
|
|
@@ -184,7 +184,7 @@ var Menu = /** @class */ (function (_super) {
|
|
|
184
184
|
_this.setFirstCharacters = function () {
|
|
185
185
|
var getFirstCharacter = function (child) {
|
|
186
186
|
var character = '';
|
|
187
|
-
if (!child || typeof child === 'boolean') {
|
|
187
|
+
if (!child || typeof child === 'boolean' || child === {}) {
|
|
188
188
|
character = '';
|
|
189
189
|
}
|
|
190
190
|
else if (typeof child === 'string' || typeof child === 'number') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../breadcrumbs/lib/Breadcrumbs/List/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../breadcrumbs/lib/Breadcrumbs/List/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E,eAAO,MAAM,eAAe,yFAqB1B,CAAC"}
|
|
@@ -9,12 +9,24 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
12
23
|
import React from 'react';
|
|
13
24
|
import { createComponent } from '@workday/canvas-kit-react/common';
|
|
14
25
|
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
15
26
|
export var BreadcrumbsList = createComponent('ul')({
|
|
16
27
|
displayName: 'BreadcrumbsList',
|
|
17
|
-
Component: function (
|
|
18
|
-
|
|
28
|
+
Component: function (_a, ref) {
|
|
29
|
+
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
30
|
+
return (React.createElement(Flex, __assign({ padding: "zero", margin: "zero", display: "inline-flex", alignItems: "center", minHeight: 40, listStyle: "none", style: { boxSizing: 'border-box' }, as: "ul", role: "list", ref: ref }, elemProps), children));
|
|
19
31
|
},
|
|
20
32
|
});
|
|
@@ -160,7 +160,7 @@ var Menu = /** @class */ (function (_super) {
|
|
|
160
160
|
_this.setFirstCharacters = function () {
|
|
161
161
|
var getFirstCharacter = function (child) {
|
|
162
162
|
var character = '';
|
|
163
|
-
if (!child || typeof child === 'boolean') {
|
|
163
|
+
if (!child || typeof child === 'boolean' || child === {}) {
|
|
164
164
|
character = '';
|
|
165
165
|
}
|
|
166
166
|
else if (typeof child === 'string' || typeof child === 'number') {
|
|
@@ -8,13 +8,13 @@ export interface PillProps extends BoxProps {
|
|
|
8
8
|
variant?: 'default' | 'readOnly' | 'removable';
|
|
9
9
|
}
|
|
10
10
|
export declare const Pill: import("@workday/canvas-kit-react/common").ElementComponentM<"button", PillProps & Partial<{
|
|
11
|
-
maxWidth:
|
|
11
|
+
maxWidth: React.ReactText;
|
|
12
12
|
disabled: boolean;
|
|
13
13
|
id: string;
|
|
14
14
|
}> & {} & {}, {
|
|
15
15
|
state: {
|
|
16
16
|
id: string;
|
|
17
|
-
maxWidth:
|
|
17
|
+
maxWidth: React.ReactText;
|
|
18
18
|
disabled: boolean;
|
|
19
19
|
};
|
|
20
20
|
events: {};
|
|
@@ -22,7 +22,7 @@ export declare const Pill: import("@workday/canvas-kit-react/common").ElementCom
|
|
|
22
22
|
Context: React.Context<{
|
|
23
23
|
state: {
|
|
24
24
|
id: string;
|
|
25
|
-
maxWidth:
|
|
25
|
+
maxWidth: React.ReactText;
|
|
26
26
|
disabled: boolean;
|
|
27
27
|
};
|
|
28
28
|
events: {};
|
|
@@ -31,7 +31,7 @@ export declare const Pill: import("@workday/canvas-kit-react/common").ElementCom
|
|
|
31
31
|
Icon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("./PillIcon").PillIconProps, {
|
|
32
32
|
state: {
|
|
33
33
|
id: string;
|
|
34
|
-
maxWidth:
|
|
34
|
+
maxWidth: React.ReactText;
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
};
|
|
37
37
|
events: {};
|
|
@@ -39,7 +39,7 @@ export declare const Pill: import("@workday/canvas-kit-react/common").ElementCom
|
|
|
39
39
|
Avatar: import("@workday/canvas-kit-react/common").ElementComponentM<"button", import("./PillAvatar").PillAvatarProps, {
|
|
40
40
|
state: {
|
|
41
41
|
id: string;
|
|
42
|
-
maxWidth:
|
|
42
|
+
maxWidth: React.ReactText;
|
|
43
43
|
disabled: boolean;
|
|
44
44
|
};
|
|
45
45
|
events: {};
|
|
@@ -48,7 +48,7 @@ export declare const Pill: import("@workday/canvas-kit-react/common").ElementCom
|
|
|
48
48
|
Label: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("./PillLabel").PillLabelProps, {
|
|
49
49
|
state: {
|
|
50
50
|
id: string;
|
|
51
|
-
maxWidth:
|
|
51
|
+
maxWidth: React.ReactText;
|
|
52
52
|
disabled: boolean;
|
|
53
53
|
};
|
|
54
54
|
events: {};
|
|
@@ -56,7 +56,7 @@ export declare const Pill: import("@workday/canvas-kit-react/common").ElementCom
|
|
|
56
56
|
IconButton: import("@workday/canvas-kit-react/common").ElementComponentM<"button", import("./PillIconButton").PillIconButtonProps, {
|
|
57
57
|
state: {
|
|
58
58
|
id: string;
|
|
59
|
-
maxWidth:
|
|
59
|
+
maxWidth: React.ReactText;
|
|
60
60
|
disabled: boolean;
|
|
61
61
|
};
|
|
62
62
|
events: {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { AvatarProps } from '@workday/canvas-kit-react/avatar';
|
|
2
3
|
export interface PillAvatarProps extends AvatarProps {
|
|
3
4
|
}
|
|
4
5
|
export declare const PillAvatar: import("@workday/canvas-kit-react/common").ElementComponentM<"button", PillAvatarProps, {
|
|
5
6
|
state: {
|
|
6
7
|
id: string;
|
|
7
|
-
maxWidth:
|
|
8
|
+
maxWidth: React.ReactText;
|
|
8
9
|
disabled: boolean;
|
|
9
10
|
};
|
|
10
11
|
events: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillAvatar.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillAvatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PillAvatar.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAS,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAGrE,MAAM,WAAW,eAAgB,SAAQ,WAAW;CAAG;AAKvD,eAAO,MAAM,UAAU;;;;;;;EAerB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SystemIconProps } from '@workday/canvas-kit-react/icon';
|
|
2
3
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
3
4
|
export interface PillIconProps extends Omit<SystemIconProps, 'icon'> {
|
|
@@ -10,7 +11,7 @@ export interface PillIconProps extends Omit<SystemIconProps, 'icon'> {
|
|
|
10
11
|
export declare const PillIcon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", PillIconProps, {
|
|
11
12
|
state: {
|
|
12
13
|
id: string;
|
|
13
|
-
maxWidth:
|
|
14
|
+
maxWidth: React.ReactText;
|
|
14
15
|
disabled: boolean;
|
|
15
16
|
};
|
|
16
17
|
events: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillIcon.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PillIcon.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAG3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAClE;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,QAAQ;;;;;;;EAenB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SystemIconProps } from '@workday/canvas-kit-react/icon';
|
|
2
3
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
3
4
|
export interface PillIconButtonProps extends Omit<SystemIconProps, 'icon'> {
|
|
@@ -15,7 +16,7 @@ export interface PillIconButtonProps extends Omit<SystemIconProps, 'icon'> {
|
|
|
15
16
|
export declare const PillIconButton: import("@workday/canvas-kit-react/common").ElementComponentM<"button", PillIconButtonProps, {
|
|
16
17
|
state: {
|
|
17
18
|
id: string;
|
|
18
|
-
maxWidth:
|
|
19
|
+
maxWidth: React.ReactText;
|
|
19
20
|
disabled: boolean;
|
|
20
21
|
};
|
|
21
22
|
events: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillIconButton.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillIconButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PillIconButton.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAG3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAI9D,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IACxE;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA6CD,eAAO,MAAM,cAAc;;;;;;;EAgC1B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { BoxProps } from '@workday/canvas-kit-react/layout';
|
|
2
3
|
import { OverflowTooltipProps } from '@workday/canvas-kit-react/tooltip';
|
|
3
4
|
export interface PillLabelProps extends BoxProps {
|
|
@@ -6,7 +7,7 @@ export interface PillLabelProps extends BoxProps {
|
|
|
6
7
|
export declare const PillLabel: import("@workday/canvas-kit-react/common").ElementComponentM<"span", PillLabelProps, {
|
|
7
8
|
state: {
|
|
8
9
|
id: string;
|
|
9
|
-
maxWidth:
|
|
10
|
+
maxWidth: React.ReactText;
|
|
10
11
|
disabled: boolean;
|
|
11
12
|
};
|
|
12
13
|
events: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillLabel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillLabel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PillLabel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAM,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAkB,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AAKxF,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,YAAY,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC;CACvD;AAQD,eAAO,MAAM,SAAS;;;;;;;EAgBpB,CAAC"}
|
|
@@ -3,7 +3,7 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
3
3
|
* Determines the max width of the pill. If the pill text is longer than the max width,
|
|
4
4
|
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
5
5
|
*/
|
|
6
|
-
maxWidth:
|
|
6
|
+
maxWidth: import("react").ReactText;
|
|
7
7
|
/**
|
|
8
8
|
* Use to disable a pill.
|
|
9
9
|
*/
|
|
@@ -20,7 +20,7 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
20
20
|
* Determines the max width of the pill. If the pill text is longer than the max width,
|
|
21
21
|
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
22
22
|
*/
|
|
23
|
-
maxWidth:
|
|
23
|
+
maxWidth: import("react").ReactText;
|
|
24
24
|
/**
|
|
25
25
|
* Use to disable a pill.
|
|
26
26
|
*/
|
|
@@ -32,7 +32,7 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
32
32
|
* Determines the max width of the pill. If the pill text is longer than the max width,
|
|
33
33
|
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
34
34
|
*/
|
|
35
|
-
maxWidth:
|
|
35
|
+
maxWidth: import("react").ReactText;
|
|
36
36
|
/**
|
|
37
37
|
* Use to disable a pill.
|
|
38
38
|
*/
|
|
@@ -48,7 +48,7 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
48
48
|
* Determines the max width of the pill. If the pill text is longer than the max width,
|
|
49
49
|
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
50
50
|
*/
|
|
51
|
-
maxWidth:
|
|
51
|
+
maxWidth: import("react").ReactText;
|
|
52
52
|
/**
|
|
53
53
|
* Use to disable a pill.
|
|
54
54
|
*/
|
|
@@ -60,7 +60,7 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
60
60
|
* Determines the max width of the pill. If the pill text is longer than the max width,
|
|
61
61
|
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
62
62
|
*/
|
|
63
|
-
maxWidth:
|
|
63
|
+
maxWidth: import("react").ReactText;
|
|
64
64
|
/**
|
|
65
65
|
* Use to disable a pill.
|
|
66
66
|
*/
|
package/form-field/package.json
CHANGED
package/menu/lib/Menu.tsx
CHANGED
|
@@ -284,7 +284,7 @@ export default class Menu extends React.Component<MenuProps, MenuState> {
|
|
|
284
284
|
private setFirstCharacters = (): void => {
|
|
285
285
|
const getFirstCharacter = (child: React.ReactNode): string => {
|
|
286
286
|
let character = '';
|
|
287
|
-
if (!child || typeof child === 'boolean') {
|
|
287
|
+
if (!child || typeof child === 'boolean' || child === {}) {
|
|
288
288
|
character = '';
|
|
289
289
|
} else if (typeof child === 'string' || typeof child === 'number') {
|
|
290
290
|
character = child
|
package/menu/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-preview-react",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,20 +41,20 @@
|
|
|
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-react": "^8.0.0
|
|
49
|
+
"@workday/canvas-kit-react": "^8.0.0",
|
|
50
50
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
51
51
|
"@workday/design-assets-types": "^0.2.8"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
55
|
-
"@workday/canvas-kit-labs-react": "^8.0.0
|
|
55
|
+
"@workday/canvas-kit-labs-react": "^8.0.0",
|
|
56
56
|
"formik": "^2.2.9",
|
|
57
57
|
"yup": "^0.31.1"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "433a9d272804ceed26191ac1ef629d61fab4dcb4"
|
|
60
60
|
}
|
package/pill/package.json
CHANGED
package/select/package.json
CHANGED
package/side-panel/package.json
CHANGED
package/text-area/package.json
CHANGED