@workday/canvas-kit-preview-react 7.0.0-alpha.78-next.6 → 7.0.0-alpha.81-next.9

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.
@@ -52,7 +52,7 @@ export interface DropdownMenuProps {
52
52
 
53
53
  const StyledDropdownMenu = styled(Box)<BoxProps>({
54
54
  ...type.levels.subtext.large,
55
- ...depth[2],
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[2]), { 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' }));
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 3 depth.
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[3]),
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[2]), { 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' }));
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 3 depth.
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[3]),
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.78-next.6+400ffc0b",
3
+ "version": "7.0.0-alpha.81-next.9+5f4eca7e",
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.78-next.6+400ffc0b",
57
+ "@workday/canvas-kit-react": "^7.0.0-alpha.81-next.9+5f4eca7e",
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.78-next.6+400ffc0b",
63
+ "@workday/canvas-kit-labs-react": "^7.0.0-alpha.81-next.9+5f4eca7e",
64
64
  "formik": "^2.2.9",
65
65
  "yup": "^0.31.1"
66
66
  },
67
- "gitHead": "400ffc0b29c2762180758d9b7c1bdc0562cb01e4"
67
+ "gitHead": "5f4eca7e47351f920cb283c1a1fa16b9ef76b6e5"
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 3 depth.
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[3],
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 3 depth.
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 3 depth.
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
  */