@workday/canvas-kit-preview-react 7.0.0-alpha.78-next.6 → 7.0.0-alpha.79-next.7
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/Dropdown/Menu.tsx +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +1 -1
- package/dist/commonjs/menu/lib/Menu.js +1 -1
- package/dist/commonjs/side-panel/lib/SidePanel.d.ts +1 -1
- package/dist/commonjs/side-panel/lib/SidePanel.js +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +1 -1
- package/dist/es6/menu/lib/Menu.js +1 -1
- package/dist/es6/side-panel/lib/SidePanel.d.ts +1 -1
- package/dist/es6/side-panel/lib/SidePanel.js +1 -1
- package/menu/lib/Menu.tsx +1 -1
- package/package.json +4 -4
- package/side-panel/lib/SidePanel.tsx +2 -2
- package/ts3.5/dist/commonjs/side-panel/lib/SidePanel.d.ts +1 -1
- package/ts3.5/dist/es6/side-panel/lib/SidePanel.d.ts +1 -1
|
@@ -52,7 +52,7 @@ export interface DropdownMenuProps {
|
|
|
52
52
|
|
|
53
53
|
const StyledDropdownMenu = styled(Box)<BoxProps>({
|
|
54
54
|
...type.levels.subtext.large,
|
|
55
|
-
...depth[
|
|
55
|
+
...depth[3],
|
|
56
56
|
backgroundColor: commonColors.background,
|
|
57
57
|
border: `1px solid ${colors.soap500}`,
|
|
58
58
|
borderRadius: borderRadius.m,
|
|
@@ -32,7 +32,7 @@ var tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
|
32
32
|
// local components
|
|
33
33
|
var MenuItemLink_1 = require("./MenuItemLink");
|
|
34
34
|
var layout_1 = require("@workday/canvas-kit-react/layout");
|
|
35
|
-
var StyledDropdownMenu = common_1.styled(layout_1.Box)(__assign(__assign(__assign({}, tokens_1.type.levels.subtext.large), tokens_1.depth[
|
|
35
|
+
var StyledDropdownMenu = common_1.styled(layout_1.Box)(__assign(__assign(__assign({}, tokens_1.type.levels.subtext.large), tokens_1.depth[3]), { backgroundColor: tokens_1.commonColors.background, border: "1px solid " + tokens_1.colors.soap500, borderRadius: tokens_1.borderRadius.m, boxSizing: 'border-box', display: 'inline-block', marginTop: tokens_1.space.xxxs, maxHeight: 200, outline: 'none', overflowY: 'auto', position: 'relative', width: 'max-content' }));
|
|
36
36
|
var StyledMenuList = common_1.styled('ul')({
|
|
37
37
|
boxSizing: 'border-box',
|
|
38
38
|
listStyle: 'none',
|
|
@@ -268,7 +268,7 @@ var Menu = /** @class */ (function (_super) {
|
|
|
268
268
|
var _a = this.props, _b = _a.id, id = _b === void 0 ? this.id : _b, _c = _a.isOpen, isOpen = _c === void 0 ? true : _c, children = _a.children, ariaLabelledby = _a["aria-labelledby"], grow = _a.grow, width = _a.width, onSelect = _a.onSelect, onClose = _a.onClose, initialSelectedItem = _a.initialSelectedItem, elemProps = __rest(_a, ["id", "isOpen", "children", 'aria-labelledby', "grow", "width", "onSelect", "onClose", "initialSelectedItem"]);
|
|
269
269
|
var selectedItemIndex = this.state.selectedItemIndex;
|
|
270
270
|
var cardWidth = grow ? '100%' : width;
|
|
271
|
-
return (React.createElement(card_1.Card, { style: { display: 'inline-block' }, padding: tokens_1.space.zero, width: cardWidth },
|
|
271
|
+
return (React.createElement(card_1.Card, { style: { display: 'inline-block' }, padding: tokens_1.space.zero, width: cardWidth, depth: 3 },
|
|
272
272
|
React.createElement(card_1.Card.Body, null,
|
|
273
273
|
React.createElement(List, __assign({ role: "menu", tabIndex: 0, id: id, "aria-labelledby": ariaLabelledby, "aria-activedescendant": id + "-" + selectedItemIndex, onKeyDown: this.handleKeyboardShortcuts, ref: this.menuRef }, elemProps), React.Children.map(children, function (menuItem, index) {
|
|
274
274
|
if (!React.isValidElement(menuItem)) {
|
|
@@ -50,7 +50,7 @@ export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
*/
|
|
51
51
|
onStateTransition?: (state?: SidePanelTransitionStates) => void;
|
|
52
52
|
/**
|
|
53
|
-
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level
|
|
53
|
+
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level 6 depth.
|
|
54
54
|
*
|
|
55
55
|
* @default 'standard'
|
|
56
56
|
*/
|
|
@@ -63,7 +63,7 @@ var createKeyframes = function (from, to) {
|
|
|
63
63
|
return react_1.keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n } to {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n }\n "], ["\n from {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n } to {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n }\n "])), normalized.from, normalized.from, normalized.from, normalized.to, normalized.to, normalized.to);
|
|
64
64
|
};
|
|
65
65
|
var containerVariantStyle = {
|
|
66
|
-
alternate: __assign({ backgroundColor: tokens_1.colors.frenchVanilla100 }, tokens_1.depth[
|
|
66
|
+
alternate: __assign({ backgroundColor: tokens_1.colors.frenchVanilla100 }, tokens_1.depth[5]),
|
|
67
67
|
standard: {
|
|
68
68
|
backgroundColor: tokens_1.colors.soap100,
|
|
69
69
|
},
|
|
@@ -26,7 +26,7 @@ import { borderRadius, colors, commonColors, depth, space, type, } from '@workda
|
|
|
26
26
|
// local components
|
|
27
27
|
import { DropdownMenuItemLink } from './MenuItemLink';
|
|
28
28
|
import { Box } from '@workday/canvas-kit-react/layout';
|
|
29
|
-
var StyledDropdownMenu = styled(Box)(__assign(__assign(__assign({}, type.levels.subtext.large), depth[
|
|
29
|
+
var StyledDropdownMenu = styled(Box)(__assign(__assign(__assign({}, type.levels.subtext.large), depth[3]), { backgroundColor: commonColors.background, border: "1px solid " + colors.soap500, borderRadius: borderRadius.m, boxSizing: 'border-box', display: 'inline-block', marginTop: space.xxxs, maxHeight: 200, outline: 'none', overflowY: 'auto', position: 'relative', width: 'max-content' }));
|
|
30
30
|
var StyledMenuList = styled('ul')({
|
|
31
31
|
boxSizing: 'border-box',
|
|
32
32
|
listStyle: 'none',
|
|
@@ -244,7 +244,7 @@ var Menu = /** @class */ (function (_super) {
|
|
|
244
244
|
var _a = this.props, _b = _a.id, id = _b === void 0 ? this.id : _b, _c = _a.isOpen, isOpen = _c === void 0 ? true : _c, children = _a.children, ariaLabelledby = _a["aria-labelledby"], grow = _a.grow, width = _a.width, onSelect = _a.onSelect, onClose = _a.onClose, initialSelectedItem = _a.initialSelectedItem, elemProps = __rest(_a, ["id", "isOpen", "children", 'aria-labelledby', "grow", "width", "onSelect", "onClose", "initialSelectedItem"]);
|
|
245
245
|
var selectedItemIndex = this.state.selectedItemIndex;
|
|
246
246
|
var cardWidth = grow ? '100%' : width;
|
|
247
|
-
return (React.createElement(Card, { style: { display: 'inline-block' }, padding: space.zero, width: cardWidth },
|
|
247
|
+
return (React.createElement(Card, { style: { display: 'inline-block' }, padding: space.zero, width: cardWidth, depth: 3 },
|
|
248
248
|
React.createElement(Card.Body, null,
|
|
249
249
|
React.createElement(List, __assign({ role: "menu", tabIndex: 0, id: id, "aria-labelledby": ariaLabelledby, "aria-activedescendant": id + "-" + selectedItemIndex, onKeyDown: this.handleKeyboardShortcuts, ref: this.menuRef }, elemProps), React.Children.map(children, function (menuItem, index) {
|
|
250
250
|
if (!React.isValidElement(menuItem)) {
|
|
@@ -50,7 +50,7 @@ export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
*/
|
|
51
51
|
onStateTransition?: (state?: SidePanelTransitionStates) => void;
|
|
52
52
|
/**
|
|
53
|
-
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level
|
|
53
|
+
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level 6 depth.
|
|
54
54
|
*
|
|
55
55
|
* @default 'standard'
|
|
56
56
|
*/
|
|
@@ -41,7 +41,7 @@ var createKeyframes = function (from, to) {
|
|
|
41
41
|
return keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n } to {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n }\n "], ["\n from {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n } to {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n }\n "])), normalized.from, normalized.from, normalized.from, normalized.to, normalized.to, normalized.to);
|
|
42
42
|
};
|
|
43
43
|
var containerVariantStyle = {
|
|
44
|
-
alternate: __assign({ backgroundColor: colors.frenchVanilla100 }, depth[
|
|
44
|
+
alternate: __assign({ backgroundColor: colors.frenchVanilla100 }, depth[5]),
|
|
45
45
|
standard: {
|
|
46
46
|
backgroundColor: colors.soap100,
|
|
47
47
|
},
|
package/menu/lib/Menu.tsx
CHANGED
|
@@ -121,7 +121,7 @@ export default class Menu extends React.Component<MenuProps, MenuState> {
|
|
|
121
121
|
const cardWidth = grow ? '100%' : width;
|
|
122
122
|
|
|
123
123
|
return (
|
|
124
|
-
<Card style={{display: 'inline-block'}} padding={space.zero} width={cardWidth}>
|
|
124
|
+
<Card style={{display: 'inline-block'}} padding={space.zero} width={cardWidth} depth={3}>
|
|
125
125
|
<Card.Body>
|
|
126
126
|
<List
|
|
127
127
|
role="menu"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-preview-react",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.79-next.7+578f91ad",
|
|
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",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
56
56
|
"@emotion/styled": "^11.6.0",
|
|
57
|
-
"@workday/canvas-kit-react": "^7.0.0-alpha.
|
|
57
|
+
"@workday/canvas-kit-react": "^7.0.0-alpha.79-next.7+578f91ad",
|
|
58
58
|
"@workday/canvas-system-icons-web": "1.0.41",
|
|
59
59
|
"@workday/design-assets-types": "^0.2.4"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@workday/canvas-accent-icons-web": "^1.0.0",
|
|
63
|
-
"@workday/canvas-kit-labs-react": "^7.0.0-alpha.
|
|
63
|
+
"@workday/canvas-kit-labs-react": "^7.0.0-alpha.79-next.7+578f91ad",
|
|
64
64
|
"formik": "^2.2.9",
|
|
65
65
|
"yup": "^0.31.1"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "578f91adfde267929daf4f55b7a6463f8739421e"
|
|
68
68
|
}
|
|
@@ -56,7 +56,7 @@ export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
56
56
|
*/
|
|
57
57
|
onStateTransition?: (state?: SidePanelTransitionStates) => void;
|
|
58
58
|
/**
|
|
59
|
-
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level
|
|
59
|
+
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level 6 depth.
|
|
60
60
|
*
|
|
61
61
|
* @default 'standard'
|
|
62
62
|
*/
|
|
@@ -91,7 +91,7 @@ const createKeyframes = (from: number | string, to: number | string) => {
|
|
|
91
91
|
const containerVariantStyle: Record<SidePanelVariant, CSSObject> = {
|
|
92
92
|
alternate: {
|
|
93
93
|
backgroundColor: colors.frenchVanilla100,
|
|
94
|
-
...depth[
|
|
94
|
+
...depth[5],
|
|
95
95
|
},
|
|
96
96
|
standard: {
|
|
97
97
|
backgroundColor: colors.soap100,
|
|
@@ -50,7 +50,7 @@ export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
*/
|
|
51
51
|
onStateTransition?: (state?: SidePanelTransitionStates) => void;
|
|
52
52
|
/**
|
|
53
|
-
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level
|
|
53
|
+
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level 6 depth.
|
|
54
54
|
*
|
|
55
55
|
* @default 'standard'
|
|
56
56
|
*/
|
|
@@ -50,7 +50,7 @@ export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
*/
|
|
51
51
|
onStateTransition?: (state?: SidePanelTransitionStates) => void;
|
|
52
52
|
/**
|
|
53
|
-
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level
|
|
53
|
+
* The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level 6 depth.
|
|
54
54
|
*
|
|
55
55
|
* @default 'standard'
|
|
56
56
|
*/
|