@workday/canvas-kit-react 10.2.4 → 10.3.0-646-next.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.
- package/button/lib/BaseButton.tsx +53 -56
- package/button/lib/DeleteButton.tsx +19 -19
- package/button/lib/PrimaryButton.tsx +37 -37
- package/button/lib/SecondaryButton.tsx +41 -41
- package/button/lib/TertiaryButton.tsx +42 -42
- package/button/lib/ToolbarDropdownButton.tsx +1 -2
- package/button/lib/ToolbarIconButton.tsx +1 -2
- package/common/lib/styles/focusRing.ts +9 -0
- package/dist/commonjs/avatar/lib/Avatar.js +1 -1
- package/dist/commonjs/banner/lib/Banner.js +1 -1
- package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/BaseButton.js +22 -22
- package/dist/commonjs/button/lib/DeleteButton.js +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.js +2 -2
- package/dist/commonjs/button/lib/SecondaryButton.js +2 -2
- package/dist/commonjs/button/lib/TertiaryButton.js +15 -15
- package/dist/commonjs/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/ToolbarDropdownButton.js +1 -7
- package/dist/commonjs/button/lib/ToolbarIconButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/ToolbarIconButton.js +1 -7
- package/dist/commonjs/button/lib/deprecated_Button.js +2 -2
- package/dist/commonjs/checkbox/lib/Checkbox.js +2 -14
- package/dist/commonjs/common/lib/CanvasProvider.js +1 -1
- package/dist/commonjs/common/lib/styles/focusRing.d.ts.map +1 -1
- package/dist/commonjs/common/lib/styles/focusRing.js +9 -0
- package/dist/commonjs/radio/lib/Radio.js +3 -17
- package/dist/commonjs/select/lib/Select.js +1 -1
- package/dist/commonjs/switch/lib/Switch.js +2 -2
- package/dist/commonjs/tabs/lib/TabsItem.js +1 -1
- package/dist/es6/avatar/lib/Avatar.js +1 -1
- package/dist/es6/banner/lib/Banner.js +1 -1
- package/dist/es6/button/lib/BaseButton.d.ts.map +1 -1
- package/dist/es6/button/lib/BaseButton.js +22 -22
- package/dist/es6/button/lib/DeleteButton.js +2 -2
- package/dist/es6/button/lib/PrimaryButton.js +3 -3
- package/dist/es6/button/lib/SecondaryButton.js +3 -3
- package/dist/es6/button/lib/TertiaryButton.js +16 -16
- package/dist/es6/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
- package/dist/es6/button/lib/ToolbarDropdownButton.js +1 -7
- package/dist/es6/button/lib/ToolbarIconButton.d.ts.map +1 -1
- package/dist/es6/button/lib/ToolbarIconButton.js +1 -7
- package/dist/es6/button/lib/deprecated_Button.js +2 -2
- package/dist/es6/checkbox/lib/Checkbox.js +2 -14
- package/dist/es6/common/lib/CanvasProvider.js +1 -1
- package/dist/es6/common/lib/styles/focusRing.d.ts.map +1 -1
- package/dist/es6/common/lib/styles/focusRing.js +9 -0
- package/dist/es6/radio/lib/Radio.js +3 -17
- package/dist/es6/select/lib/Select.js +1 -1
- package/dist/es6/switch/lib/Switch.js +2 -2
- package/dist/es6/tabs/lib/TabsItem.js +1 -1
- package/package.json +4 -4
|
@@ -85,31 +85,17 @@ const RadioInput = styled('input')({
|
|
|
85
85
|
borderWidth: '2px',
|
|
86
86
|
borderColor: variant === 'inverse' ? colors.blackPepper400 : themeFocusOutline,
|
|
87
87
|
boxShadow: 'none',
|
|
88
|
-
...
|
|
89
|
-
width: variant === 'inverse' ? 2 : 0,
|
|
90
|
-
separation: 0,
|
|
91
|
-
animate: false,
|
|
92
|
-
innerColor: variant === 'inverse' ? colors.blackPepper400 : undefined,
|
|
93
|
-
outerColor: variant === 'inverse' ? colors.frenchVanilla100 : undefined,
|
|
94
|
-
}),
|
|
88
|
+
...{ boxShadow: `0 0 0 ${0} ${variant === 'inverse' ? colors.blackPepper400 : undefined}, 0 0 0 calc(${variant === 'inverse' ? 2 : 0} + ${0}) ${variant === 'inverse' ? colors.frenchVanilla100 : undefined}` },
|
|
95
89
|
},
|
|
96
90
|
},
|
|
97
91
|
'&:checked:focus ~ div:first-of-type': {
|
|
98
|
-
...
|
|
99
|
-
separation: 2,
|
|
100
|
-
width: 2,
|
|
101
|
-
innerColor: variant === 'inverse' ? colors.blackPepper400 : undefined,
|
|
102
|
-
outerColor: variant === 'inverse' ? colors.frenchVanilla100 : themeFocusOutline,
|
|
103
|
-
}),
|
|
92
|
+
...{ boxShadow: `0 0 0 ${2} ${variant === 'inverse' ? colors.blackPepper400 : undefined}, 0 0 0 calc(${2} + ${2}) ${variant === 'inverse' ? colors.frenchVanilla100 : themeFocusOutline}` },
|
|
104
93
|
borderColor: variant === 'inverse' ? colors.frenchVanilla100 : themePrimary.main,
|
|
105
94
|
borderWidth: '2px',
|
|
106
95
|
},
|
|
107
96
|
...mouseFocusBehavior({
|
|
108
97
|
'&:focus ~ div:first-of-type': {
|
|
109
|
-
...
|
|
110
|
-
width: 0,
|
|
111
|
-
outerColor: variant === 'inverse' ? colors.frenchVanilla100 : themeFocusOutline,
|
|
112
|
-
}),
|
|
98
|
+
...{ boxShadow: `0 0 0 ${"0px"} ${"--cnvs-base-palette-french-vanilla-100"}, 0 0 0 calc(${0} + ${"0px"}) ${variant === 'inverse' ? colors.frenchVanilla100 : themeFocusOutline}` },
|
|
113
99
|
borderWidth: '1px',
|
|
114
100
|
borderColor: checked
|
|
115
101
|
? variant === 'inverse'
|
|
@@ -9,7 +9,7 @@ import { useSelectModel } from './hooks/useSelectModel';
|
|
|
9
9
|
import { useSelectCard } from './hooks/useSelectCard';
|
|
10
10
|
import { useSelectInput } from './hooks/useSelectInput';
|
|
11
11
|
import { createStyles } from '@workday/canvas-kit-styling';
|
|
12
|
-
const selectInputStyles = createStyles({ name: "
|
|
12
|
+
const selectInputStyles = createStyles({ name: "l2q812", styles: "caret-color:transparent;cursor:default;&::selection{background-color:transparent;}" });
|
|
13
13
|
export const SelectInput = createSubcomponent(TextInput)({
|
|
14
14
|
modelHook: useSelectModel,
|
|
15
15
|
elemPropsHook: useSelectInput,
|
|
@@ -31,7 +31,7 @@ const SwitchInput = styled('input')({
|
|
|
31
31
|
'&:focus': {
|
|
32
32
|
outline: 'none',
|
|
33
33
|
'& ~ div:first-of-type': {
|
|
34
|
-
...
|
|
34
|
+
...{ boxShadow: `0 0 0 ${2} ${"--cnvs-base-palette-french-vanilla-100"}, 0 0 0 calc(${"2px"} + ${2}) ${"--cnvs-brand-common-focus-outline"}` },
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
'& ~ div:first-of-type': {
|
|
@@ -41,7 +41,7 @@ const SwitchInput = styled('input')({
|
|
|
41
41
|
0 0 0 5px ${errorColors.outer}`,
|
|
42
42
|
},
|
|
43
43
|
'&:focus ~ div:first-of-type': {
|
|
44
|
-
...
|
|
44
|
+
...{ boxShadow: `0 0 0 ${2} ${"--cnvs-base-palette-french-vanilla-100"}, 0 0 0 calc(${"2px"} + ${2}) ${"--cnvs-brand-common-focus-outline"}` },
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
return {
|
|
@@ -31,7 +31,7 @@ export const StyledTabItem = styled(Box.as('button'))(({ theme }) => ({
|
|
|
31
31
|
},
|
|
32
32
|
'&:focus': {
|
|
33
33
|
outline: `none`,
|
|
34
|
-
...
|
|
34
|
+
...{ boxShadow: `inset 0 0 0 ${2} ${"--cnvs-brand-common-focus-outline"} inset 0 0 0 calc(${0} + ${2}) ${"--cnvs-base-palette-french-vanilla-100"}` },
|
|
35
35
|
},
|
|
36
36
|
'&:disabled, &[aria-disabled]': {
|
|
37
37
|
color: colors.licorice100,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0-646-next.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",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@emotion/styled": "^11.6.0",
|
|
51
51
|
"@popperjs/core": "^2.5.4",
|
|
52
52
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
53
|
-
"@workday/canvas-kit-popup-stack": "^10.
|
|
54
|
-
"@workday/canvas-kit-styling": "^10.
|
|
53
|
+
"@workday/canvas-kit-popup-stack": "^10.3.0-646-next.0",
|
|
54
|
+
"@workday/canvas-kit-styling": "^10.3.0-646-next.0",
|
|
55
55
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
56
56
|
"@workday/canvas-tokens-web": "^1.0.0",
|
|
57
57
|
"@workday/design-assets-types": "^0.2.8",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
70
70
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "99b5f95ef4d26c34b68bfb57d27a74bd468948e5"
|
|
73
73
|
}
|