@workday/canvas-kit-react 11.0.11 → 11.0.13
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/avatar/lib/Avatar.tsx +7 -3
- package/button/lib/DeleteButton.tsx +7 -7
- package/button/lib/PrimaryButton.tsx +30 -12
- package/button/lib/SecondaryButton.tsx +36 -12
- package/button/lib/TertiaryButton.tsx +71 -22
- package/common/lib/theming/index.ts +1 -1
- package/common/lib/theming/styled.ts +23 -16
- package/dist/commonjs/avatar/lib/Avatar.d.ts.map +1 -1
- package/dist/commonjs/avatar/lib/Avatar.js +6 -2
- package/dist/commonjs/button/lib/DeleteButton.js +2 -2
- package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.js +3 -3
- package/dist/commonjs/button/lib/SecondaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/SecondaryButton.js +3 -3
- package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/TertiaryButton.js +19 -19
- package/dist/commonjs/common/lib/theming/index.d.ts +1 -1
- package/dist/commonjs/common/lib/theming/index.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/index.js +2 -1
- package/dist/commonjs/common/lib/theming/styled.d.ts +1 -0
- package/dist/commonjs/common/lib/theming/styled.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/styled.js +7 -2
- package/dist/commonjs/skeleton/lib/parts/skeletonText.d.ts.map +1 -1
- package/dist/commonjs/skeleton/lib/parts/skeletonText.js +3 -1
- package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsList.js +3 -1
- package/dist/es6/avatar/lib/Avatar.d.ts.map +1 -1
- package/dist/es6/avatar/lib/Avatar.js +7 -3
- package/dist/es6/button/lib/DeleteButton.js +4 -4
- package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/PrimaryButton.js +5 -5
- package/dist/es6/button/lib/SecondaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/SecondaryButton.js +5 -5
- package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/TertiaryButton.js +21 -21
- package/dist/es6/common/lib/theming/index.d.ts +1 -1
- package/dist/es6/common/lib/theming/index.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/index.js +1 -1
- package/dist/es6/common/lib/theming/styled.d.ts +1 -0
- package/dist/es6/common/lib/theming/styled.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/styled.js +5 -2
- package/dist/es6/skeleton/lib/parts/skeletonText.d.ts.map +1 -1
- package/dist/es6/skeleton/lib/parts/skeletonText.js +4 -2
- package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsList.js +4 -2
- package/package.json +4 -4
- package/skeleton/lib/parts/skeletonText.tsx +4 -2
- package/tabs/lib/TabsList.tsx +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeletonText.d.ts","sourceRoot":"","sources":["../../../../../skeleton/lib/parts/skeletonText.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;
|
|
1
|
+
{"version":3,"file":"skeletonText.d.ts","sourceRoot":"","sources":["../../../../../skeleton/lib/parts/skeletonText.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA+BD,eAAO,MAAM,YAAY,uFAYvB,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import { createComponent } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { createComponent, filterOutProps } from '@workday/canvas-kit-react/common';
|
|
4
4
|
import { borderRadius, colors, space } from '@workday/canvas-kit-react/tokens';
|
|
5
5
|
const TextContainer = styled('div')({
|
|
6
6
|
marginBottom: space.m,
|
|
7
7
|
});
|
|
8
|
-
const Line = styled('div'
|
|
8
|
+
const Line = styled('div', {
|
|
9
|
+
shouldForwardProp: filterOutProps(['backgroundColor', 'width']),
|
|
10
|
+
})(({ backgroundColor, width }) => {
|
|
9
11
|
return {
|
|
10
12
|
backgroundColor,
|
|
11
13
|
width,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/TabsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAIL,YAAY,
|
|
1
|
+
{"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/TabsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAIL,YAAY,EAKb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAStD,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAC/F;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IAC3D,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUvB,CAAC;AAQF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BnB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;CA+B7B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { commonColors } from '@workday/canvas-kit-react/tokens';
|
|
3
|
-
import { composeHooks, createSubcomponent, createElemPropsHook, useModalityType, styled, } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { composeHooks, createSubcomponent, createElemPropsHook, useModalityType, styled, filterOutProps, } from '@workday/canvas-kit-react/common';
|
|
4
4
|
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
5
5
|
import { useOverflowListMeasure, useListRenderItems, useListResetCursorOnBlur, } from '@workday/canvas-kit-react/collection';
|
|
6
6
|
import { useTabsModel } from './useTabsModel';
|
|
@@ -11,7 +11,9 @@ export const useTabsList = composeHooks(createElemPropsHook(useTabsModel)(() =>
|
|
|
11
11
|
overflowX: modality === 'touch' ? 'auto' : undefined,
|
|
12
12
|
};
|
|
13
13
|
}), useOverflowListMeasure, useListResetCursorOnBlur);
|
|
14
|
-
const StyledStack = styled(Flex
|
|
14
|
+
const StyledStack = styled(Flex, {
|
|
15
|
+
shouldForwardProp: filterOutProps(['maskImage']),
|
|
16
|
+
})(({ maskImage }) => ({
|
|
15
17
|
maskImage: maskImage,
|
|
16
18
|
}));
|
|
17
19
|
export const TabsList = createSubcomponent('div')({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.13",
|
|
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,8 +49,8 @@
|
|
|
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": "^11.0.
|
|
53
|
-
"@workday/canvas-kit-styling": "^11.0.
|
|
52
|
+
"@workday/canvas-kit-popup-stack": "^11.0.13",
|
|
53
|
+
"@workday/canvas-kit-styling": "^11.0.13",
|
|
54
54
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
55
55
|
"@workday/canvas-tokens-web": "^2.0.0",
|
|
56
56
|
"@workday/design-assets-types": "^0.2.8",
|
|
@@ -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": "
|
|
70
|
+
"gitHead": "f6d83142c8ccd9edbad52077f6df02a1296e2787"
|
|
71
71
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
|
|
4
|
-
import {createComponent, StyledType} from '@workday/canvas-kit-react/common';
|
|
4
|
+
import {createComponent, filterOutProps, StyledType} from '@workday/canvas-kit-react/common';
|
|
5
5
|
import {borderRadius, colors, space} from '@workday/canvas-kit-react/tokens';
|
|
6
6
|
|
|
7
7
|
const TextContainer = styled('div')<StyledType>({
|
|
@@ -21,7 +21,9 @@ export interface SkeletonTextProps {
|
|
|
21
21
|
backgroundColor?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const Line = styled('div'
|
|
24
|
+
const Line = styled('div', {
|
|
25
|
+
shouldForwardProp: filterOutProps(['backgroundColor', 'width']),
|
|
26
|
+
})<
|
|
25
27
|
{
|
|
26
28
|
backgroundColor: string;
|
|
27
29
|
width: number | string;
|
package/tabs/lib/TabsList.tsx
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
useModalityType,
|
|
10
10
|
styled,
|
|
11
11
|
StyledType,
|
|
12
|
+
filterOutProps,
|
|
12
13
|
} from '@workday/canvas-kit-react/common';
|
|
13
14
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
14
15
|
import {
|
|
@@ -45,7 +46,9 @@ export const useTabsList = composeHooks(
|
|
|
45
46
|
useListResetCursorOnBlur
|
|
46
47
|
);
|
|
47
48
|
|
|
48
|
-
const StyledStack = styled(Flex
|
|
49
|
+
const StyledStack = styled(Flex, {
|
|
50
|
+
shouldForwardProp: filterOutProps(['maskImage']),
|
|
51
|
+
})<StyledType & {maskImage?: string}>(({maskImage}) => ({
|
|
49
52
|
maskImage: maskImage,
|
|
50
53
|
}));
|
|
51
54
|
|
|
@@ -84,7 +87,7 @@ export const useTouchDirection = () => {
|
|
|
84
87
|
|
|
85
88
|
React.useEffect(() => {
|
|
86
89
|
let prevXPos = window.pageXOffset;
|
|
87
|
-
const handleTouchMove = function(e: TouchEvent) {
|
|
90
|
+
const handleTouchMove = function (e: TouchEvent) {
|
|
88
91
|
const currXPos = e.touches[0].clientX;
|
|
89
92
|
setIsDragging(true);
|
|
90
93
|
if (currXPos > prevXPos) {
|
|
@@ -95,7 +98,7 @@ export const useTouchDirection = () => {
|
|
|
95
98
|
prevXPos = currXPos;
|
|
96
99
|
e.preventDefault();
|
|
97
100
|
};
|
|
98
|
-
const handleDragEnd = function() {
|
|
101
|
+
const handleDragEnd = function () {
|
|
99
102
|
setIsDragging(false);
|
|
100
103
|
};
|
|
101
104
|
window.addEventListener('touchmove', handleTouchMove);
|