@workday/canvas-kit-react 8.0.0-alpha.236-next.7 → 8.0.0-alpha.238-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.
@@ -1 +1 @@
1
- {"version":3,"file":"PopupCloseButton.d.ts","sourceRoot":"","sources":["../../../../popup/lib/PopupCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EAM3B,CAAC"}
1
+ {"version":3,"file":"PopupCloseButton.d.ts","sourceRoot":"","sources":["../../../../popup/lib/PopupCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EAU3B,CAAC"}
@@ -52,5 +52,5 @@ exports.PopupCloseButton = common_1.createSubcomponent(button_1.SecondaryButton)
52
52
  elemPropsHook: hooks_1.usePopupCloseButton,
53
53
  })(function (_a, Element) {
54
54
  var children = _a.children, elemProps = __rest(_a, ["children"]);
55
- return React.createElement(Element, __assign({}, elemProps), children);
55
+ return (React.createElement(Element, __assign({ type: "button" }, elemProps), children));
56
56
  });
@@ -43,5 +43,5 @@ exports.PopupCloseIcon = common_1.createSubcomponent('button')({
43
43
  elemPropsHook: hooks_1.usePopupCloseButton,
44
44
  })(function (_a, Element) {
45
45
  var children = _a.children, elemProps = __rest(_a, ["children"]);
46
- return react_1.default.createElement(StyledCloseIcon, __assign({ as: Element, size: "medium", icon: canvas_system_icons_web_1.xIcon }, elemProps));
46
+ return react_1.default.createElement(StyledCloseIcon, __assign({ as: Element, size: "medium", icon: canvas_system_icons_web_1.xIcon, type: "button" }, elemProps));
47
47
  });
@@ -1 +1 @@
1
- {"version":3,"file":"PopupCloseButton.d.ts","sourceRoot":"","sources":["../../../../popup/lib/PopupCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EAM3B,CAAC"}
1
+ {"version":3,"file":"PopupCloseButton.d.ts","sourceRoot":"","sources":["../../../../popup/lib/PopupCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EAU3B,CAAC"}
@@ -30,5 +30,5 @@ export var PopupCloseButton = createSubcomponent(SecondaryButton)({
30
30
  elemPropsHook: usePopupCloseButton,
31
31
  })(function (_a, Element) {
32
32
  var children = _a.children, elemProps = __rest(_a, ["children"]);
33
- return React.createElement(Element, __assign({}, elemProps), children);
33
+ return (React.createElement(Element, __assign({ type: "button" }, elemProps), children));
34
34
  });
@@ -37,5 +37,5 @@ export var PopupCloseIcon = createSubcomponent('button')({
37
37
  elemPropsHook: usePopupCloseButton,
38
38
  })(function (_a, Element) {
39
39
  var children = _a.children, elemProps = __rest(_a, ["children"]);
40
- return React.createElement(StyledCloseIcon, __assign({ as: Element, size: "medium", icon: xIcon }, elemProps));
40
+ return React.createElement(StyledCloseIcon, __assign({ as: Element, size: "medium", icon: xIcon, type: "button" }, elemProps));
41
41
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "8.0.0-alpha.236-next.7+6ee4e86f",
3
+ "version": "8.0.0-alpha.238-next.9+ed51bff2",
4
4
  "description": "The parent module that contains all Workday Canvas Kit React components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
49
49
  "@emotion/styled": "^11.6.0",
50
50
  "@popperjs/core": "^2.5.4",
51
51
  "@workday/canvas-colors-web": "^2.0.0",
52
- "@workday/canvas-kit-popup-stack": "^8.0.0-alpha.236-next.7+6ee4e86f",
52
+ "@workday/canvas-kit-popup-stack": "^8.0.0-alpha.238-next.9+ed51bff2",
53
53
  "@workday/canvas-system-icons-web": "^3.0.0",
54
54
  "@workday/design-assets-types": "^0.2.8",
55
55
  "chroma-js": "^2.1.0",
@@ -67,5 +67,5 @@
67
67
  "@workday/canvas-accent-icons-web": "^3.0.0",
68
68
  "@workday/canvas-applet-icons-web": "^2.0.0"
69
69
  },
70
- "gitHead": "6ee4e86f85a18107871202f651e3b820762abfd4"
70
+ "gitHead": "ed51bff281e4b31e4c7d6fd9e6f08f887afc7e34"
71
71
  }
@@ -14,5 +14,9 @@ export const PopupCloseButton = createSubcomponent(SecondaryButton)({
14
14
  modelHook: usePopupModel,
15
15
  elemPropsHook: usePopupCloseButton,
16
16
  })<PopupCloseButtonProps>(({children, ...elemProps}: PopupCloseButtonProps, Element) => {
17
- return <Element {...elemProps}>{children}</Element>;
17
+ return (
18
+ <Element type="button" {...elemProps}>
19
+ {children}
20
+ </Element>
21
+ );
18
22
  });
@@ -26,5 +26,5 @@ export const PopupCloseIcon = createSubcomponent('button')({
26
26
  modelHook: usePopupModel,
27
27
  elemPropsHook: usePopupCloseButton,
28
28
  })<PopupCloseIconProps>(({children, ...elemProps}, Element) => {
29
- return <StyledCloseIcon as={Element} size="medium" icon={xIcon} {...elemProps} />;
29
+ return <StyledCloseIcon as={Element} size="medium" icon={xIcon} type="button" {...elemProps} />;
30
30
  });