@workday/canvas-kit-react 6.4.0-next.1 → 6.4.2

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":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sIAgBhC,CAAC"}
1
+ {"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sIAsBhC,CAAC"}
@@ -18,10 +18,14 @@ exports.useDisableBodyScroll = function (model, elemProps) {
18
18
  if (!visible) {
19
19
  return;
20
20
  }
21
+ var overflowY = document.body.style.overflowY;
22
+ var overflowX = document.body.style.overflowX;
21
23
  var overflow = document.body.style.overflow;
22
24
  document.body.style.overflow = 'hidden';
23
25
  return function () {
24
26
  document.body.style.overflow = overflow;
27
+ document.body.style.overflowY = overflowY;
28
+ document.body.style.overflowX = overflowX;
25
29
  };
26
30
  }, [visible]);
27
31
  return elemProps;
@@ -43,7 +43,7 @@ exports.TabsList = common_1.createComponent('div')({
43
43
  var children = _a.children, model = _a.model, overflowButton = _a.overflowButton, elemProps = __rest(_a, ["children", "model", "overflowButton"]);
44
44
  var localModel = common_1.useModelContext(Tabs_1.TabsModelContext, model);
45
45
  var props = exports.useTabsList(localModel, elemProps, ref);
46
- return (React.createElement(layout_1.Stack, __assign({ as: Element, position: "relative", borderBottom: "1px solid " + tokens_1.commonColors.divider, marginX: "m", spacing: "xxxs" }, props),
46
+ return (React.createElement(layout_1.Stack, __assign({ as: Element, position: "relative", borderBottom: "1px solid " + tokens_1.commonColors.divider, paddingX: "m", spacing: "xxxs" }, props),
47
47
  list_1.useRenderItems(localModel, children),
48
48
  overflowButton));
49
49
  },
@@ -1 +1 @@
1
- {"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sIAgBhC,CAAC"}
1
+ {"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sIAsBhC,CAAC"}
@@ -13,10 +13,14 @@ export var useDisableBodyScroll = function (model, elemProps) {
13
13
  if (!visible) {
14
14
  return;
15
15
  }
16
+ var overflowY = document.body.style.overflowY;
17
+ var overflowX = document.body.style.overflowX;
16
18
  var overflow = document.body.style.overflow;
17
19
  document.body.style.overflow = 'hidden';
18
20
  return function () {
19
21
  document.body.style.overflow = overflow;
22
+ document.body.style.overflowY = overflowY;
23
+ document.body.style.overflowX = overflowX;
20
24
  };
21
25
  }, [visible]);
22
26
  return elemProps;
@@ -34,7 +34,7 @@ export var TabsList = createComponent('div')({
34
34
  var children = _a.children, model = _a.model, overflowButton = _a.overflowButton, elemProps = __rest(_a, ["children", "model", "overflowButton"]);
35
35
  var localModel = useModelContext(TabsModelContext, model);
36
36
  var props = useTabsList(localModel, elemProps, ref);
37
- return (React.createElement(Stack, __assign({ as: Element, position: "relative", borderBottom: "1px solid " + commonColors.divider, marginX: "m", spacing: "xxxs" }, props),
37
+ return (React.createElement(Stack, __assign({ as: Element, position: "relative", borderBottom: "1px solid " + commonColors.divider, paddingX: "m", spacing: "xxxs" }, props),
38
38
  useRenderItems(localModel, children),
39
39
  overflowButton));
40
40
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "6.4.0-next.1+545f2186",
3
+ "version": "6.4.2",
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",
@@ -57,9 +57,9 @@
57
57
  "@emotion/styled": "^10.0.27",
58
58
  "@popperjs/core": "^2.5.4",
59
59
  "@workday/canvas-colors-web": "^2.0.0",
60
- "@workday/canvas-kit-labs-react": "^6.4.0-next.1+545f2186",
61
- "@workday/canvas-kit-popup-stack": "^6.4.0-next.1+545f2186",
62
- "@workday/canvas-kit-preview-react": "^6.4.0-next.1+545f2186",
60
+ "@workday/canvas-kit-labs-react": "^6.4.2",
61
+ "@workday/canvas-kit-popup-stack": "^6.4.2",
62
+ "@workday/canvas-kit-preview-react": "^6.4.2",
63
63
  "@workday/canvas-system-icons-web": "1.0.41",
64
64
  "@workday/design-assets-types": "^0.2.4",
65
65
  "chroma-js": "^2.1.0",
@@ -77,5 +77,5 @@
77
77
  "@workday/canvas-accent-icons-web": "^1.0.0",
78
78
  "@workday/canvas-applet-icons-web": "^0.17.50"
79
79
  },
80
- "gitHead": "545f2186049e8c733b5f9ecce00d382916a169c6"
80
+ "gitHead": "749f9569230fefe235274bc2817e9406b1dc1275"
81
81
  }
@@ -16,11 +16,17 @@ export const useDisableBodyScroll = (model: PopupModel, elemProps = {}) => {
16
16
  if (!visible) {
17
17
  return;
18
18
  }
19
+
20
+ const overflowY = document.body.style.overflowY;
21
+ const overflowX = document.body.style.overflowX;
19
22
  const overflow = document.body.style.overflow;
23
+
20
24
  document.body.style.overflow = 'hidden';
21
25
 
22
26
  return () => {
23
27
  document.body.style.overflow = overflow;
28
+ document.body.style.overflowY = overflowY;
29
+ document.body.style.overflowX = overflowX;
24
30
  };
25
31
  }, [visible]);
26
32
 
@@ -47,7 +47,7 @@ export const TabsList = createComponent('div')({
47
47
  as={Element}
48
48
  position="relative"
49
49
  borderBottom={`1px solid ${commonColors.divider}`}
50
- marginX="m"
50
+ paddingX="m"
51
51
  spacing="xxxs"
52
52
  {...props}
53
53
  >