@workday/canvas-kit-react 6.5.0-next.0 → 6.6.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.
@@ -10,6 +10,7 @@ export * from './useMount';
10
10
  export * from './components';
11
11
  export * from './models';
12
12
  export * from './elements';
13
+ export * from './useConstant';
13
14
  export * from './useIsFullscreen';
14
15
  export * from './useWindowSize';
15
16
  export * from './useResizeObserver';
@@ -10,6 +10,7 @@ export * from './useMount';
10
10
  export * from './components';
11
11
  export * from './models';
12
12
  export * from './elements';
13
+ export * from './useConstant';
13
14
  export * from './useIsFullscreen';
14
15
  export * from './useWindowSize';
15
16
  export * from './useResizeObserver';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
@@ -15,6 +15,7 @@ __export(require("./useMount"));
15
15
  __export(require("./components"));
16
16
  __export(require("./models"));
17
17
  __export(require("./elements"));
18
+ __export(require("./useConstant"));
18
19
  __export(require("./useIsFullscreen"));
19
20
  __export(require("./useWindowSize"));
20
21
  __export(require("./useResizeObserver"));
@@ -1 +1 @@
1
- {"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sIAsBhC,CAAC"}
1
+ {"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sIAwBhC,CAAC"}
@@ -22,6 +22,8 @@ exports.useDisableBodyScroll = function (model, elemProps) {
22
22
  var overflowX = document.body.style.overflowX;
23
23
  var overflow = document.body.style.overflow;
24
24
  document.body.style.overflow = 'hidden';
25
+ document.body.style.overflowY = 'hidden';
26
+ document.body.style.overflowX = 'hidden';
25
27
  return function () {
26
28
  document.body.style.overflow = overflow;
27
29
  document.body.style.overflowY = overflowY;
@@ -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
  },
@@ -10,6 +10,7 @@ export * from './useMount';
10
10
  export * from './components';
11
11
  export * from './models';
12
12
  export * from './elements';
13
+ export * from './useConstant';
13
14
  export * from './useIsFullscreen';
14
15
  export * from './useWindowSize';
15
16
  export * from './useResizeObserver';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
@@ -10,6 +10,7 @@ export * from './useMount';
10
10
  export * from './components';
11
11
  export * from './models';
12
12
  export * from './elements';
13
+ export * from './useConstant';
13
14
  export * from './useIsFullscreen';
14
15
  export * from './useWindowSize';
15
16
  export * from './useResizeObserver';
@@ -1 +1 @@
1
- {"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sIAsBhC,CAAC"}
1
+ {"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sIAwBhC,CAAC"}
@@ -17,6 +17,8 @@ export var useDisableBodyScroll = function (model, elemProps) {
17
17
  var overflowX = document.body.style.overflowX;
18
18
  var overflow = document.body.style.overflow;
19
19
  document.body.style.overflow = 'hidden';
20
+ document.body.style.overflowY = 'hidden';
21
+ document.body.style.overflowX = 'hidden';
20
22
  return function () {
21
23
  document.body.style.overflow = overflow;
22
24
  document.body.style.overflowY = overflowY;
@@ -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.5.0-next.0+209a7864",
3
+ "version": "6.6.0",
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.5.0-next.0+209a7864",
61
- "@workday/canvas-kit-popup-stack": "^6.5.0-next.0+209a7864",
62
- "@workday/canvas-kit-preview-react": "^6.5.0-next.0+209a7864",
60
+ "@workday/canvas-kit-labs-react": "^6.6.0",
61
+ "@workday/canvas-kit-popup-stack": "^6.6.0",
62
+ "@workday/canvas-kit-preview-react": "^6.6.0",
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": "209a78649cac234a5e4bc08ec1fb87a848ecbd5a"
80
+ "gitHead": "ff77c5bd83e41c3ab2b9c55e41a8b7c1fde33a1b"
81
81
  }
@@ -22,6 +22,8 @@ export const useDisableBodyScroll = (model: PopupModel, elemProps = {}) => {
22
22
  const overflow = document.body.style.overflow;
23
23
 
24
24
  document.body.style.overflow = 'hidden';
25
+ document.body.style.overflowY = 'hidden';
26
+ document.body.style.overflowX = 'hidden';
25
27
 
26
28
  return () => {
27
29
  document.body.style.overflow = overflow;
@@ -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
  >
@@ -10,6 +10,7 @@ export * from './useMount';
10
10
  export * from './components';
11
11
  export * from './models';
12
12
  export * from './elements';
13
+ export * from './useConstant';
13
14
  export * from './useIsFullscreen';
14
15
  export * from './useWindowSize';
15
16
  export * from './useResizeObserver';
@@ -10,6 +10,7 @@ export * from './useMount';
10
10
  export * from './components';
11
11
  export * from './models';
12
12
  export * from './elements';
13
+ export * from './useConstant';
13
14
  export * from './useIsFullscreen';
14
15
  export * from './useWindowSize';
15
16
  export * from './useResizeObserver';