@workday/canvas-kit-react 10.1.2 → 10.1.4
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/common/lib/CanvasProvider.tsx +56 -14
- package/common/lib/utils/elements.ts +10 -1
- package/dist/commonjs/button/lib/BaseButton.js +17 -17
- 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/common/lib/CanvasProvider.d.ts +258 -0
- package/dist/commonjs/common/lib/CanvasProvider.d.ts.map +1 -1
- package/dist/commonjs/common/lib/CanvasProvider.js +17 -8
- package/dist/commonjs/common/lib/utils/elements.d.ts +3 -1
- package/dist/commonjs/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/elements.js +6 -0
- package/dist/commonjs/popup/lib/hooks/usePopupStack.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/usePopupStack.js +30 -0
- package/dist/commonjs/select/lib/Select.js +1 -1
- package/dist/es6/button/lib/BaseButton.js +17 -17
- package/dist/es6/button/lib/DeleteButton.js +1 -1
- package/dist/es6/button/lib/PrimaryButton.js +2 -2
- package/dist/es6/button/lib/SecondaryButton.js +2 -2
- package/dist/es6/button/lib/TertiaryButton.js +15 -15
- package/dist/es6/common/lib/CanvasProvider.d.ts +258 -0
- package/dist/es6/common/lib/CanvasProvider.d.ts.map +1 -1
- package/dist/es6/common/lib/CanvasProvider.js +15 -7
- package/dist/es6/common/lib/utils/elements.d.ts +3 -1
- package/dist/es6/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/elements.js +6 -0
- package/dist/es6/popup/lib/hooks/usePopupStack.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/usePopupStack.js +31 -1
- package/dist/es6/select/lib/Select.js +1 -1
- package/package.json +4 -4
- package/popup/lib/hooks/usePopupStack.ts +33 -1
|
@@ -5,11 +5,51 @@ import {defaultCanvasTheme, PartialEmotionCanvasTheme, useTheme} from './theming
|
|
|
5
5
|
import {brand} from '@workday/canvas-tokens-web';
|
|
6
6
|
// eslint-disable-next-line @emotion/no-vanilla
|
|
7
7
|
import {cache} from '@emotion/css';
|
|
8
|
+
import {createStyles} from '@workday/canvas-kit-styling';
|
|
8
9
|
|
|
9
10
|
export interface CanvasProviderProps {
|
|
10
11
|
theme?: PartialEmotionCanvasTheme;
|
|
11
12
|
}
|
|
12
13
|
|
|
14
|
+
// copied from brand/_variables.css
|
|
15
|
+
const defaultBranding = createStyles({
|
|
16
|
+
'--cnvs-brand-error-darkest': 'rgba(128,22,14,1)',
|
|
17
|
+
'--cnvs-brand-common-alert-inner': 'var(--cnvs-base-palette-cantaloupe-400)',
|
|
18
|
+
'--cnvs-brand-common-error-inner': 'var(--cnvs-base-palette-cinnamon-500)',
|
|
19
|
+
'--cnvs-brand-common-focus-outline': 'var(--cnvs-base-palette-blueberry-400)',
|
|
20
|
+
'--cnvs-brand-neutral-accent': 'var(--cnvs-base-palette-french-vanilla-100)',
|
|
21
|
+
'--cnvs-brand-neutral-darkest': 'var(--cnvs-base-palette-licorice-400)',
|
|
22
|
+
'--cnvs-brand-neutral-dark': 'var(--cnvs-base-palette-licorice-300)',
|
|
23
|
+
'--cnvs-brand-neutral-base': 'var(--cnvs-base-palette-soap-600)',
|
|
24
|
+
'--cnvs-brand-neutral-light': 'var(--cnvs-base-palette-soap-300)',
|
|
25
|
+
'--cnvs-brand-neutral-lightest': 'var(--cnvs-base-palette-soap-200)',
|
|
26
|
+
'--cnvs-brand-success-accent': 'var(--cnvs-base-palette-french-vanilla-100)',
|
|
27
|
+
'--cnvs-brand-success-darkest': 'var(--cnvs-base-palette-green-apple-600)',
|
|
28
|
+
'--cnvs-brand-success-dark': 'var(--cnvs-base-palette-green-apple-500)',
|
|
29
|
+
'--cnvs-brand-success-base': 'var(--cnvs-base-palette-green-apple-400)',
|
|
30
|
+
'--cnvs-brand-success-light': 'var(--cnvs-base-palette-green-apple-300)',
|
|
31
|
+
'--cnvs-brand-success-lightest': 'var(--cnvs-base-palette-green-apple-100)',
|
|
32
|
+
'--cnvs-brand-error-accent': 'var(--cnvs-base-palette-french-vanilla-100)',
|
|
33
|
+
'--cnvs-brand-error-dark': 'var(--cnvs-base-palette-cinnamon-600)',
|
|
34
|
+
'--cnvs-brand-error-base': 'var(--cnvs-base-palette-cinnamon-500)',
|
|
35
|
+
'--cnvs-brand-error-light': 'var(--cnvs-base-palette-cinnamon-200)',
|
|
36
|
+
'--cnvs-brand-error-lightest': 'var(--cnvs-base-palette-cinnamon-100)',
|
|
37
|
+
'--cnvs-brand-alert-accent': 'var(--cnvs-base-palette-french-vanilla-100)',
|
|
38
|
+
'--cnvs-brand-alert-darkest': 'var(--cnvs-base-palette-cantaloupe-600)',
|
|
39
|
+
'--cnvs-brand-alert-dark': 'var(--cnvs-base-palette-cantaloupe-500)',
|
|
40
|
+
'--cnvs-brand-alert-base': 'var(--cnvs-base-palette-cantaloupe-400)',
|
|
41
|
+
'--cnvs-brand-alert-light': 'var(--cnvs-base-palette-cantaloupe-200)',
|
|
42
|
+
'--cnvs-brand-alert-lightest': 'var(--cnvs-base-palette-cantaloupe-100)',
|
|
43
|
+
'--cnvs-brand-primary-accent': 'var(--cnvs-base-palette-french-vanilla-100)',
|
|
44
|
+
'--cnvs-brand-primary-darkest': 'var(--cnvs-base-palette-blueberry-600)',
|
|
45
|
+
'--cnvs-brand-primary-dark': 'var(--cnvs-base-palette-blueberry-500)',
|
|
46
|
+
'--cnvs-brand-primary-base': 'var(--cnvs-base-palette-blueberry-400)',
|
|
47
|
+
'--cnvs-brand-primary-light': 'var(--cnvs-base-palette-blueberry-200)',
|
|
48
|
+
'--cnvs-brand-primary-lightest': 'var(--cnvs-base-palette-blueberry-100)',
|
|
49
|
+
'--cnvs-brand-gradient-primary':
|
|
50
|
+
'linear-gradient(90deg, var(--cnvs-brand-primary-base) 0%, var(--cnvs-brand-primary-dark) 100%)',
|
|
51
|
+
});
|
|
52
|
+
|
|
13
53
|
const mappedKeys = {
|
|
14
54
|
lightest: 'lightest',
|
|
15
55
|
light: 'light',
|
|
@@ -19,27 +59,29 @@ const mappedKeys = {
|
|
|
19
59
|
contrast: 'accent',
|
|
20
60
|
};
|
|
21
61
|
|
|
22
|
-
const useCanvasThemeToCssVars = (
|
|
62
|
+
export const useCanvasThemeToCssVars = (
|
|
23
63
|
theme: PartialEmotionCanvasTheme | undefined,
|
|
24
64
|
elemProps: React.HTMLAttributes<HTMLElement>
|
|
25
65
|
) => {
|
|
26
66
|
const filledTheme = useTheme(theme);
|
|
67
|
+
const className = (elemProps.className || '').split(' ').concat(defaultBranding).join(' ');
|
|
68
|
+
const style = elemProps.style || {};
|
|
27
69
|
const {palette} = filledTheme.canvas;
|
|
28
|
-
|
|
29
|
-
(
|
|
30
|
-
|
|
70
|
+
(['common', 'primary', 'error', 'alert', 'success', 'neutral'] as const).forEach(color => {
|
|
71
|
+
if (color === 'common') {
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
style[brand.common.focusOutline] = palette.common.focusOutline;
|
|
74
|
+
}
|
|
75
|
+
(['lightest', 'light', 'main', 'dark', 'darkest', 'contrast'] as const).forEach(key => {
|
|
76
|
+
// We only want to set custom colors if they do not match the default. The `defaultBranding` class will take care of the rest.
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
if (palette[color][key] !== defaultCanvasTheme.palette[color][key]) {
|
|
31
79
|
// @ts-ignore
|
|
32
|
-
|
|
80
|
+
style[brand[color][mappedKeys[key]]] = palette[color][key];
|
|
33
81
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
});
|
|
38
|
-
return result;
|
|
39
|
-
},
|
|
40
|
-
elemProps.style || {}
|
|
41
|
-
);
|
|
42
|
-
return {...elemProps, style};
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
return {...elemProps, className, style};
|
|
43
85
|
};
|
|
44
86
|
|
|
45
87
|
export const CanvasProvider = ({
|
|
@@ -29,13 +29,22 @@ export const isFocusable = (element: Element): boolean => {
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Get the first focusable element in a container.
|
|
32
|
+
*
|
|
33
|
+
* Returns an array of elements if the first focusable element is a radio group
|
|
32
34
|
*/
|
|
33
|
-
export const getFirstFocusableElement = (
|
|
35
|
+
export const getFirstFocusableElement = (
|
|
36
|
+
container: HTMLElement
|
|
37
|
+
): Element[] | HTMLElement | null => {
|
|
34
38
|
const elements = container.querySelectorAll('*');
|
|
35
39
|
|
|
36
40
|
for (let i = 0; i < elements.length; i++) {
|
|
37
41
|
const element = elements.item(i);
|
|
38
42
|
if (element && isFocusable(element) && element.getAttribute('tabindex') !== '-1') {
|
|
43
|
+
if (isRadioInput(element)) {
|
|
44
|
+
const radioGroup = getRadioGroup(container, element);
|
|
45
|
+
|
|
46
|
+
return radioGroup.length > 1 ? Array.from(radioGroup) : element;
|
|
47
|
+
}
|
|
39
48
|
return element as HTMLElement;
|
|
40
49
|
}
|
|
41
50
|
}
|
|
@@ -40,7 +40,7 @@ exports.buttonVars = {
|
|
|
40
40
|
/**
|
|
41
41
|
* Base styles for Buttons.
|
|
42
42
|
*/
|
|
43
|
-
const baseButtonStyles = canvas_kit_styling_1.createStyles({ name: "
|
|
43
|
+
const baseButtonStyles = canvas_kit_styling_1.createStyles({ name: "haoi1", styles: "font-family:\"Roboto\", \"Helvetica Neue\", \"Helvetica\", Arial, sans-serif;font-size:0.875rem;line-height:normal;letter-spacing:0.015rem;font-weight:bold;background-color:var(--css-button-vars-default-background, transparent);color:var(--css-button-vars-default-label-emotion-safe, var(--cnvs-base-palette-black-pepper-400, #333333));border-width:1px;border-style:solid;gap:var(--cnvs-sys-space-x2, 0.5rem);border-color:var(--css-button-vars-default-border, transparent);cursor:pointer;display:inline-flex;box-shadow:none;align-items:center;justify-content:center;box-sizing:border-box;outline:2px transparent;white-space:nowrap;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--css-button-vars-default-borderRadius, var(--cnvs-sys-shape-round, 62.5rem));position:relative;vertical-align:middle;overflow:hidden;transition:box-shadow 120ms linear, border 120ms linear, background-color 120ms linear, color 120ms linear;&:disabled, &:disabled:active, &.disabled{cursor:default;box-shadow:none;opacity:var(--css-button-vars-disabled-opacity, 1);}& span .wd-icon-fill{transition-duration:40ms;fill:var(--css-button-vars-default-icon, var(--cnvs-base-palette-black-pepper-400, #333333));}.wd-icon-background ~ .wd-icon-accent, .wd-icon-background ~ .wd-icon-accent2{fill:var(--css-button-vars-default-icon, var(--cnvs-base-palette-black-pepper-400, #333333));}&:focus-visible, &.focus{background-color:var(--css-button-vars-focus-background, transparent);border-color:var(--css-button-vars-focus-border, transparent);color:var(--css-button-vars-focus-label-emotion-safe, var(--cnvs-base-palette-black-pepper-400, #333333));& span .wd-icon-fill{fill:var(--css-button-vars-focus-icon, var(--cnvs-base-palette-black-pepper-400, #333333));}.wd-icon-background ~ .wd-icon-accent, .wd-icon-background ~ .wd-icon-accent2{fill:var(--css-button-vars-focus-icon, var(--cnvs-base-palette-black-pepper-400, #333333));}box-shadow:0 0 0 2px var(--css-button-vars-focus-boxShadowInner, var(--cnvs-base-palette-french-vanilla-100, #fff)), 0 0 0 calc(2px + 2px) var(--css-button-vars-focus-boxShadowOuter, var(--cnvs-brand-primary-base, rgba(0,92,184,1)));}&:hover, &.hover{background-color:var(--css-button-vars-hover-background, var(--cnvs-base-palette-black-pepper-500, #1e1e1e));border-color:var(--css-button-vars-hover-border, transparent);color:var(--css-button-vars-hover-label-emotion-safe, var(--cnvs-base-palette-black-pepper-500, #1e1e1e));& span .wd-icon-fill{fill:var(--css-button-vars-hover-icon, var(--cnvs-base-palette-black-pepper-500, #1e1e1e));}.wd-icon-background ~ .wd-icon-accent, .wd-icon-background ~ .wd-icon-accent2{fill:var(--css-button-vars-hover-icon, var(--cnvs-base-palette-black-pepper-500, #1e1e1e));}}&:hover:active{transition-duration:40ms;}&:active, &.active{background-color:var(--css-button-vars-active-background, transparent);border-color:var(--css-button-vars-active-border, transparent);color:var(--css-button-vars-active-label-emotion-safe, var(--cnvs-base-palette-black-pepper-400, #333333));& span .wd-icon-fill{fill:var(--css-button-vars-active-icon, var(--cnvs-base-palette-black-pepper-400, #333333));}.wd-icon-background ~ .wd-icon-accent, .wd-icon-background ~ .wd-icon-accent2{fill:var(--css-button-vars-active-icon);}}&:disabled, &.disabled{background-color:var(--css-button-vars-disabled-background, transparent);border-color:var(--css-button-vars-disabled-border, transparent);color:var(--css-button-vars-disabled-label-emotion-safe, var(--cnvs-base-palette-black-pepper-400, #333333));& span .wd-icon-fill{fill:var(--css-button-vars-disabled-icon, var(--cnvs-base-palette-black-pepper-400, #333333));}.wd-icon-background ~ .wd-icon-accent, .wd-icon-background ~ .wd-icon-accent2{fill:var(--css-button-vars-disabled-icon, var(--cnvs-base-palette-black-pepper-400, #333333));}}" });
|
|
44
44
|
/**
|
|
45
45
|
* Button modifiers that will overwrite the base styles of Buttons.
|
|
46
46
|
* - `Size`: These modifiers will dictate a size of a Button and has a set of styles to associated with it.
|
|
@@ -49,24 +49,24 @@ const baseButtonStyles = canvas_kit_styling_1.createStyles({ name: "q9t50", styl
|
|
|
49
49
|
*/
|
|
50
50
|
exports.buttonModifiers = canvas_kit_styling_1.createModifiers({
|
|
51
51
|
size: {
|
|
52
|
-
large: canvas_kit_styling_1.createStyles({ name: "
|
|
53
|
-
medium: canvas_kit_styling_1.createStyles({ name: "
|
|
54
|
-
small: canvas_kit_styling_1.createStyles({ name: "
|
|
55
|
-
extraSmall: canvas_kit_styling_1.createStyles({ name: "
|
|
52
|
+
large: canvas_kit_styling_1.createStyles({ name: "haoi2", styles: "font-size:var(--cnvs-sys-space-x4, 1rem);line-height:var(--cnvs-sys-space-x6, 1.5rem);letter-spacing:0.01rem;height:48px;padding-inline:var(--cnvs-sys-space-x8, 2rem);min-width:112px;" }),
|
|
53
|
+
medium: canvas_kit_styling_1.createStyles({ name: "haoi3", styles: "font-size:0.875rem;letter-spacing:0.015rem;min-width:96px;padding-inline:var(--cnvs-sys-space-x6, 1.5rem);height:var(--cnvs-sys-space-x10, 2.5rem);" }),
|
|
54
|
+
small: canvas_kit_styling_1.createStyles({ name: "haoi4", styles: "font-size:0.875rem;letter-spacing:0.015rem;height:var(--cnvs-sys-space-x8, 2rem);min-width:var(--cnvs-sys-space-x20, 5rem);padding-inline:var(--cnvs-sys-space-x4, 1rem);gap:var(--cnvs-sys-space-x1, 0.25rem);" }),
|
|
55
|
+
extraSmall: canvas_kit_styling_1.createStyles({ name: "haoi5", styles: "font-size:0.75rem;line-height:var(--cnvs-sys-space-x4, 1rem);letter-spacing:0.02rem;height:var(--cnvs-sys-space-x6, 1.5rem);min-width:auto;padding-inline:var(--cnvs-sys-space-x3, 0.75rem);gap:var(--cnvs-sys-space-x1, 0.25rem);" }),
|
|
56
56
|
},
|
|
57
57
|
iconPosition: {
|
|
58
|
-
largeOnly: canvas_kit_styling_1.createStyles({ name: "
|
|
59
|
-
largeStart: canvas_kit_styling_1.createStyles({ name: "
|
|
60
|
-
largeEnd: canvas_kit_styling_1.createStyles({ name: "
|
|
61
|
-
mediumOnly: canvas_kit_styling_1.createStyles({ name: "
|
|
62
|
-
mediumStart: canvas_kit_styling_1.createStyles({ name: "
|
|
63
|
-
mediumEnd: canvas_kit_styling_1.createStyles({ name: "
|
|
64
|
-
smallOnly: canvas_kit_styling_1.createStyles({ name: "
|
|
65
|
-
smallStart: canvas_kit_styling_1.createStyles({ name: "
|
|
66
|
-
smallEnd: canvas_kit_styling_1.createStyles({ name: "
|
|
67
|
-
extraSmallOnly: canvas_kit_styling_1.createStyles({ name: "
|
|
68
|
-
extraSmallStart: canvas_kit_styling_1.createStyles({ name: "
|
|
69
|
-
extraSmallEnd: canvas_kit_styling_1.createStyles({ name: "
|
|
58
|
+
largeOnly: canvas_kit_styling_1.createStyles({ name: "haoi6", styles: "padding:0;min-width:calc(var(--cnvs-sys-space-x4, 1rem) * 3);" }),
|
|
59
|
+
largeStart: canvas_kit_styling_1.createStyles({ name: "haoi7", styles: "padding-inline-start:var(--cnvs-sys-space-x6, 1.5rem);padding-inline-end:var(--cnvs-sys-space-x8, 2rem);" }),
|
|
60
|
+
largeEnd: canvas_kit_styling_1.createStyles({ name: "haoi8", styles: "padding-inline-start:var(--cnvs-sys-space-x8, 2rem);padding-inline-end:var(--cnvs-sys-space-x6, 1.5rem);" }),
|
|
61
|
+
mediumOnly: canvas_kit_styling_1.createStyles({ name: "haoi9", styles: "padding:0;min-width:var(--cnvs-sys-space-x10, 2.5rem);" }),
|
|
62
|
+
mediumStart: canvas_kit_styling_1.createStyles({ name: "haoia", styles: "padding-inline-start:calc(var(--cnvs-sys-space-x1, 0.25rem) * 5);padding-inline-end:var(--cnvs-sys-space-x6, 1.5rem);" }),
|
|
63
|
+
mediumEnd: canvas_kit_styling_1.createStyles({ name: "haoib", styles: "padding-inline-start:var(--cnvs-sys-space-x6, 1.5rem);padding-inline-end:calc(var(--cnvs-sys-space-x1, 0.25rem) * 5);" }),
|
|
64
|
+
smallOnly: canvas_kit_styling_1.createStyles({ name: "haoic", styles: "padding:0;min-width:var(--cnvs-sys-space-x8, 2rem);" }),
|
|
65
|
+
smallStart: canvas_kit_styling_1.createStyles({ name: "haoid", styles: "padding-inline-start:var(--cnvs-sys-space-x3, 0.75rem);padding-inline-end:var(--cnvs-sys-space-x4, 1rem);" }),
|
|
66
|
+
smallEnd: canvas_kit_styling_1.createStyles({ name: "haoie", styles: "padding-inline-start:var(--cnvs-sys-space-x4, 1rem);padding-inline-end:var(--cnvs-sys-space-x3, 0.75rem);" }),
|
|
67
|
+
extraSmallOnly: canvas_kit_styling_1.createStyles({ name: "haoif", styles: "padding:0;min-width:var(--cnvs-sys-space-x6, 1.5rem);" }),
|
|
68
|
+
extraSmallStart: canvas_kit_styling_1.createStyles({ name: "haoig", styles: "padding-inline-start:var(--cnvs-sys-space-x2, 0.5rem);padding-inline-end:var(--cnvs-sys-space-x3, 0.75rem);" }),
|
|
69
|
+
extraSmallEnd: canvas_kit_styling_1.createStyles({ name: "haoih", styles: "padding-inline-start:var(--cnvs-sys-space-x3, 0.75rem);padding-inline-end:var(--cnvs-sys-space-x2, 0.5rem);" }),
|
|
70
70
|
},
|
|
71
71
|
});
|
|
72
72
|
function capitalize(string = '') {
|
|
@@ -27,7 +27,7 @@ const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
|
27
27
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
28
28
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
29
29
|
const Button_1 = require("./Button");
|
|
30
|
-
const deleteStyles = canvas_kit_styling_1.createStyles({ name: "
|
|
30
|
+
const deleteStyles = canvas_kit_styling_1.createStyles({ name: "haoi11", styles: "--css-button-vars-default-background:var(--cnvs-brand-error-base, #de2e21);--css-button-vars-default-border:transparent;--css-button-vars-default-borderRadius:var(--cnvs-sys-shape-round, 62.5rem);--css-button-vars-default-label-emotion-safe:var(--cnvs-brand-error-accent, #ffffff);--css-button-vars-default-icon:var(--cnvs-brand-error-accent, #ffffff);&:hover, &.hover{--css-button-vars-hover-background:var(--cnvs-brand-error-dark, #a31b12);--css-button-vars-hover-border:transparent;--css-button-vars-hover-label-emotion-safe:var(--cnvs-brand-error-accent, #ffffff);--css-button-vars-hover-icon:var(--cnvs-brand-error-accent, #ffffff);}&:focus-visible, &.focus{--css-button-vars-focus-background:var(--cnvs-brand-error-base, #de2e21);--css-button-vars-focus-border:transparent;--css-button-vars-focus-label-emotion-safe:var(--cnvs-brand-error-accent, #ffffff);--css-button-vars-focus-icon:var(--cnvs-brand-error-accent, #ffffff);--css-button-vars-focus-boxShadowInner:var(--cnvs-base-palette-french-vanilla-100, #ffffff);--css-button-vars-focus-boxShadowOuter:var(--cnvs-brand-common-focus-outline, #0875e1);}&:active, &.active{--css-button-vars-active-background:var(--cnvs-brand-error-darkest, rgba(128,22,14,1));--css-button-vars-active-border:transparent;--css-button-vars-active-label-emotion-safe:var(--cnvs-brand-error-accent, #ffffff);--css-button-vars-active-icon:var(--cnvs-brand-error-accent, #ffffff);}&:disabled, &:active:disabled, &:focus:disabled, &:hover:disabled{--css-button-vars-disabled-background:var(--cnvs-brand-error-light, #fcc9c5);--css-button-vars-disabled-label-emotion-safe:var(--cnvs-brand-error-accent, #ffffff);--css-button-vars-disabled-icon:var(--cnvs-brand-error-accent, #ffffff);opacity:1px;}" });
|
|
31
31
|
/**
|
|
32
32
|
* Use sparingly for destructive actions that will result in data loss, can’t be undone, or will
|
|
33
33
|
* have significant consequences. They commonly appear in confirmation dialogs as the final
|
|
@@ -27,10 +27,10 @@ const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
|
27
27
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
28
28
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
29
29
|
const Button_1 = require("./Button");
|
|
30
|
-
const primaryStyles = canvas_kit_styling_1.createStyles({ name: "
|
|
30
|
+
const primaryStyles = canvas_kit_styling_1.createStyles({ name: "haoix", styles: "--css-button-vars-default-background:var(--cnvs-brand-primary-base, var(--cnvs-base-palette-blueberry-400, #0875e1));--css-button-vars-default-border:transparent;--css-button-vars-default-borderRadius:var(--cnvs-sys-shape-round, 62.5rem);--css-button-vars-default-label-emotion-safe:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-default-icon:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-hover-background:var(--cnvs-brand-primary-dark, rgba(0,92,184,1));--css-button-vars-hover-border:transparent;--css-button-vars-hover-label-emotion-safe:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-hover-icon:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-focus-background:var(--cnvs-brand-primary-base, rgba(8,117,226,1));--css-button-vars-focus-border:transparent;--css-button-vars-focus-label-emotion-safe:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-focus-icon:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-focus-boxShadowInner:var(--cnvs-base-palette-french-vanilla-100, #ffffff);--css-button-vars-focus-boxShadowOuter:var(--cnvs-brand-common-focus-outline, rgba(8,117,226,1));--css-button-vars-active-background:var(--cnvs-brand-primary-darkest, rgba(0,66,133,1));--css-button-vars-active-border:transparent;--css-button-vars-active-label-emotion-safe:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-active-icon:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-disabled-background:var(--cnvs-brand-primary-base, rgba(8,117,226,1));--css-button-vars-disabled-border:transparent;--css-button-vars-disabled-label-emotion-safe:var(--cnvs-brand-primary-accent, #ffffff);--css-button-vars-disabled-opacity:0.4;--css-button-vars-disabled-icon:var(--cnvs-brand-primary-accent, #ffffff);" });
|
|
31
31
|
exports.primaryButtonModifiers = canvas_kit_styling_1.createModifiers({
|
|
32
32
|
variant: {
|
|
33
|
-
inverse: canvas_kit_styling_1.createStyles({ name: "
|
|
33
|
+
inverse: canvas_kit_styling_1.createStyles({ name: "haoiy", styles: "--css-button-vars-default-background:var(--cnvs-base-palette-french-vanilla-100, #ffffff);--css-button-vars-default-borderRadius:var(--cnvs-sys-shape-round, 62.5rem);--css-button-vars-default-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-default-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-hover-background:var(--cnvs-base-palette-soap-300, rgba(232,235,237,1));--css-button-vars-hover-label-emotion-safe:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-hover-icon:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-focus-background:var(--cnvs-base-palette-french-vanilla-100, #ffffff);--css-button-vars-focus-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-focus-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-focus-boxShadowInner:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-focus-boxShadowOuter:var(--cnvs-base-palette-french-vanilla-100, #ffffff);--css-button-vars-active-background:var(--cnvs-base-palette-soap-400, rgba(224,227,230,1));--css-button-vars-active-label-emotion-safe:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-active-icon:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-disabled-background:var(--cnvs-base-palette-french-vanilla-100, #ffffff);--css-button-vars-disabled-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-disabled-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" }),
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
36
|
exports.PrimaryButton = common_1.createComponent('button')({
|
|
@@ -27,10 +27,10 @@ const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
|
27
27
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
28
28
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
29
29
|
const Button_1 = require("./Button");
|
|
30
|
-
const secondaryStyles = canvas_kit_styling_1.createStyles({ name: "
|
|
30
|
+
const secondaryStyles = canvas_kit_styling_1.createStyles({ name: "haoiz", styles: "--css-button-vars-default-background:transparent;--css-button-vars-default-border:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-default-borderRadius:var(--cnvs-sys-shape-round, 62.5rem);--css-button-vars-default-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-default-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-hover-background:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-hover-border:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-hover-label-emotion-safe:var(--cnvs-brand-primary-accent, rgba(255,255,255,1));--css-button-vars-hover-icon:var(--cnvs-brand-primary-accent, rgba(255,255,255,1));--css-button-vars-focus-background:transparent;--css-button-vars-focus-border:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-focus-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-focus-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-focus-boxShadowInner:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-focus-boxShadowOuter:var(--cnvs-brand-common-focus-outline, rgba(8,117,226,1));--css-button-vars-active-background:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-active-border:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-active-label-emotion-safe:var(--cnvs-brand-primary-accent, rgba(255,255,255,1));--css-button-vars-active-icon:var(--cnvs-brand-primary-accent, rgba(255,255,255,1));--css-button-vars-disabled-background:transparent;--css-button-vars-disabled-border:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-disabled-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));--css-button-vars-disabled-opacity:0.4;--css-button-vars-disabled-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" });
|
|
31
31
|
exports.secondaryButtonModifiers = canvas_kit_styling_1.createModifiers({
|
|
32
32
|
variant: {
|
|
33
|
-
inverse: canvas_kit_styling_1.createStyles({ name: "
|
|
33
|
+
inverse: canvas_kit_styling_1.createStyles({ name: "haoi10", styles: "--css-button-vars-default-background:transparent;--css-button-vars-default-border:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-default-label-emotion-safe:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-default-icon:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-hover-background:var(--cnvs-base-palette-soap-300, rgba(232,235,237,1));--css-button-vars-hover-border:var(--cnvs-base-palette-soap-300, rgba(232,235,237,1));--css-button-vars-hover-label-emotion-safe:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-hover-icon:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-focus-background:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-focus-border:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-focus-label-emotion-safe:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-focus-icon:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-focus-boxShadowInner:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-focus-boxShadowOuter:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-active-background:var(--cnvs-base-palette-soap-400, rgba(224,227,230,1));--css-button-vars-active-border:var(--cnvs-base-palette-soap-400, rgba(224,227,230,1));--css-button-vars-active-label-emotion-safe:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-active-icon:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-disabled-background:transparent;--css-button-vars-disabled-border:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-disabled-label-emotion-safe:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));--css-button-vars-disabled-icon:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));" }),
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
36
|
exports.SecondaryButton = common_1.createComponent('button')({
|
|
@@ -28,27 +28,27 @@ const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
|
28
28
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
29
29
|
const tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
30
30
|
const Button_1 = require("./Button");
|
|
31
|
-
const tertiaryStyles = canvas_kit_styling_1.createStyles({ name: "
|
|
31
|
+
const tertiaryStyles = canvas_kit_styling_1.createStyles({ name: "haoii", styles: "padding-inline:var(--cnvs-sys-space-x2, 0.5rem);min-width:auto;text-decoration:underline;border:0px;--css-button-vars-default-background:transparent;--css-button-vars-default-border:transparent;--css-button-vars-default-borderRadius:var(--cnvs-sys-shape-x1, 0.25rem);--css-button-vars-default-label-emotion-safe:var(--cnvs-brand-primary-base, rgba(8,117,226,1));--css-button-vars-default-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51, 51, 51, 1));--css-button-vars-hover-background:var(--cnvs-base-palette-soap-200, rgba(241, 242, 243, 1));--css-button-vars-hover-border:transparent;--css-button-vars-hover-label-emotion-safe:var(--cnvs-brand-primary-dark, rgba(0,92,184,1));--css-button-vars-hover-icon:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-focus-background:transparent;--css-button-vars-focus-border:transparent;--css-button-vars-focus-label-emotion-safe:var(--cnvs-brand-primary-base, rgba(8,117,226,1));--css-button-vars-focus-icon:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-focus-boxShadowInner:var(--cnvs-brand-common-focus-outline, rgba(8,117,226,1));--css-button-vars-focus-boxShadowOuter:var(--cnvs-brand-common-focus-outline, rgba(8,117,226,1));--css-button-vars-active-background:var(--cnvs-base-palette-soap-300, rgba(232,235,237,1));--css-button-vars-active-border:transparent;--css-button-vars-active-label-emotion-safe:var(--cnvs-brand-primary-dark, rgba(0,92,184,1));--css-button-vars-active-icon:var(--cnvs-base-palette-black-pepper-500, rgba(31,31,31,1));--css-button-vars-disabled-background:transparent;--css-button-vars-disabled-border:var(--cnvs-base-palette-french-vanilla-100, #fff);--css-button-vars-disabled-label-emotion-safe:var(--cnvs-brand-primary-base, rgba(8,117,226,1));--css-button-vars-disabled-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51, 51, 51, 1));--css-button-vars-disabled-opacity:0.4;&:focus-visible, &.focus{box-shadow:0 0 0 0px var(--cnvs-base-palette-french-vanilla-100, var(--css-button-vars-focus-boxShadowInner)), 0 0 0 calc(2px + 0px) var(--cnvs-brand-common-focus-outline, var(--css-button-vars-focus-boxShadowOuter));}" });
|
|
32
32
|
exports.tertiaryButtonModifiers = canvas_kit_styling_1.createModifiers({
|
|
33
33
|
isThemeable: {
|
|
34
|
-
true: canvas_kit_styling_1.createStyles({ name: "
|
|
34
|
+
true: canvas_kit_styling_1.createStyles({ name: "haoij", styles: "--css-button-vars-default-icon:var(--cnvs-brand-primary-base, rgba(8,117,226,1));--css-button-vars-hover-icon:var(--cnvs-brand-primary-dark, rgba(0,92,184,1));--css-button-vars-focus-icon:var(--cnvs-brand-primary-base, rgba(8,117,226,1));--css-button-vars-active-icon:var(--cnvs-brand-primary-dark, rgba(0,92,184,1));--css-button-vars-disabled-icon:var(--cnvs-brand-primary-base, rgba(8,117,226,1));" }),
|
|
35
35
|
},
|
|
36
36
|
variant: {
|
|
37
|
-
inverse: canvas_kit_styling_1.createStyles({ name: "
|
|
37
|
+
inverse: canvas_kit_styling_1.createStyles({ name: "haoik", styles: "--css-button-vars-default-background:transparent;--css-button-vars-default-border:transparent;--css-button-vars-default-label-emotion-safe:var(--cnvs-base-palette-french-vanilla-100, #fff);--css-button-vars-default-icon:var(--cnvs-base-palette-french-vanilla-100, #fff);--css-button-vars-hover-background:var(--cnvs-base-palette-french-vanilla-100, #fff);--css-button-vars-hover-border:transparent;--css-button-vars-hover-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51, 51, 51, 1));--css-button-vars-hover-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51, 51, 51, 1));--css-button-vars-focus-background:var(--cnvs-base-palette-french-vanilla-100, #fff);--css-button-vars-focus-border:transparent;--css-button-vars-focus-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51, 51, 51, 1));--css-button-vars-focus-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51, 51, 51, 1));--css-button-vars-active-background:var(--cnvs-base-palette-soap-200, rgba(241, 242, 243, 1));--css-button-vars-active-border:transparent;--css-button-vars-active-label-emotion-safe:var(--cnvs-base-palette-black-pepper-400, rgba(51, 51, 51, 1));--css-button-vars-active-icon:var(--cnvs-base-palette-black-pepper-400, rgba(51, 51, 51, 1));--css-button-vars-disabled-background:transparent;--css-button-vars-disabled-border:var(--cnvs-base-palette-french-vanilla-100, #fff);--css-button-vars-disabled-label-emotion-safe:var(--cnvs-base-palette-french-vanilla-100, #fff);--css-button-vars-disabled-icon:var(--cnvs-base-palette-french-vanilla-100, #fff);&:focus-visible, &.focus{box-shadow:inset 0 0 0 2px var(--cnvs-base-palette-black-pepper-400, var(--css-button-vars-focus-boxShadowInner)), 0 0 0 2px var(--cnvs-base-palette-french-vanilla-100, var(--css-button-vars-focus-boxShadowOuter));}" }),
|
|
38
38
|
},
|
|
39
39
|
iconPosition: {
|
|
40
|
-
largeOnly: canvas_kit_styling_1.createStyles({ name: "
|
|
41
|
-
largeStart: canvas_kit_styling_1.createStyles({ name: "
|
|
42
|
-
largeEnd: canvas_kit_styling_1.createStyles({ name: "
|
|
43
|
-
mediumOnly: canvas_kit_styling_1.createStyles({ name: "
|
|
44
|
-
mediumStart: canvas_kit_styling_1.createStyles({ name: "
|
|
45
|
-
mediumEnd: canvas_kit_styling_1.createStyles({ name: "
|
|
46
|
-
smallOnly: canvas_kit_styling_1.createStyles({ name: "
|
|
47
|
-
smallStart: canvas_kit_styling_1.createStyles({ name: "
|
|
48
|
-
smallEnd: canvas_kit_styling_1.createStyles({ name: "
|
|
49
|
-
extraSmallOnly: canvas_kit_styling_1.createStyles({ name: "
|
|
50
|
-
extraSmallStart: canvas_kit_styling_1.createStyles({ name: "
|
|
51
|
-
extraSmallEnd: canvas_kit_styling_1.createStyles({ name: "
|
|
40
|
+
largeOnly: canvas_kit_styling_1.createStyles({ name: "haoil", styles: "border-radius:999px;padding:0;min-width:calc(var(--cnvs-sys-space-x4, 1rem) * 3);" }),
|
|
41
|
+
largeStart: canvas_kit_styling_1.createStyles({ name: "haoim", styles: "padding-inline-start:0.5rem;padding-inline-end:0.75rem;" }),
|
|
42
|
+
largeEnd: canvas_kit_styling_1.createStyles({ name: "haoin", styles: "padding-inline-start:0.75rem;padding-inline-end:0.5rem;" }),
|
|
43
|
+
mediumOnly: canvas_kit_styling_1.createStyles({ name: "haoio", styles: "padding:0;min-width:2.5rem;border-radius:999px;" }),
|
|
44
|
+
mediumStart: canvas_kit_styling_1.createStyles({ name: "haoip", styles: "padding-inline-start:0.5rem;padding-inline-end:0.75rem;" }),
|
|
45
|
+
mediumEnd: canvas_kit_styling_1.createStyles({ name: "haoiq", styles: "padding-inline-start:0.75rem;padding-inline-end:0.5rem;" }),
|
|
46
|
+
smallOnly: canvas_kit_styling_1.createStyles({ name: "haoir", styles: "padding:0;min-width:2rem;border-radius:999px;" }),
|
|
47
|
+
smallStart: canvas_kit_styling_1.createStyles({ name: "haois", styles: "padding-inline-start:0.5rem;padding-inline-end:0.75rem;" }),
|
|
48
|
+
smallEnd: canvas_kit_styling_1.createStyles({ name: "haoit", styles: "padding-inline-start:0.75rem;padding-inline-end:0.5rem;" }),
|
|
49
|
+
extraSmallOnly: canvas_kit_styling_1.createStyles({ name: "haoiu", styles: "padding:0;min-width:1.5rem;border-radius:999px;" }),
|
|
50
|
+
extraSmallStart: canvas_kit_styling_1.createStyles({ name: "haoiv", styles: "padding-inline-start:0.25rem;padding-inline-end:0.5rem;" }),
|
|
51
|
+
extraSmallEnd: canvas_kit_styling_1.createStyles({ name: "haoiw", styles: "padding-inline-start:0.5rem;padding-inline-end:0.25rem;" }),
|
|
52
52
|
},
|
|
53
53
|
});
|
|
54
54
|
exports.TertiaryButton = common_1.createComponent('button')({
|
|
@@ -3,5 +3,263 @@ import { PartialEmotionCanvasTheme } from './theming';
|
|
|
3
3
|
export interface CanvasProviderProps {
|
|
4
4
|
theme?: PartialEmotionCanvasTheme;
|
|
5
5
|
}
|
|
6
|
+
export declare const useCanvasThemeToCssVars: (theme: PartialEmotionCanvasTheme | undefined, elemProps: React.HTMLAttributes<HTMLElement>) => {
|
|
7
|
+
className: string;
|
|
8
|
+
style: React.CSSProperties;
|
|
9
|
+
defaultChecked?: boolean | undefined;
|
|
10
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
11
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
12
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
13
|
+
accessKey?: string | undefined;
|
|
14
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
15
|
+
contextMenu?: string | undefined;
|
|
16
|
+
dir?: string | undefined;
|
|
17
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
lang?: string | undefined;
|
|
21
|
+
placeholder?: string | undefined;
|
|
22
|
+
slot?: string | undefined;
|
|
23
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
24
|
+
tabIndex?: number | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
translate?: "no" | "yes" | undefined;
|
|
27
|
+
radioGroup?: string | undefined;
|
|
28
|
+
role?: React.AriaRole | undefined;
|
|
29
|
+
about?: string | undefined;
|
|
30
|
+
datatype?: string | undefined;
|
|
31
|
+
inlist?: any;
|
|
32
|
+
prefix?: string | undefined;
|
|
33
|
+
property?: string | undefined;
|
|
34
|
+
resource?: string | undefined;
|
|
35
|
+
typeof?: string | undefined;
|
|
36
|
+
vocab?: string | undefined;
|
|
37
|
+
autoCapitalize?: string | undefined;
|
|
38
|
+
autoCorrect?: string | undefined;
|
|
39
|
+
autoSave?: string | undefined;
|
|
40
|
+
color?: string | undefined;
|
|
41
|
+
itemProp?: string | undefined;
|
|
42
|
+
itemScope?: boolean | undefined;
|
|
43
|
+
itemType?: string | undefined;
|
|
44
|
+
itemID?: string | undefined;
|
|
45
|
+
itemRef?: string | undefined;
|
|
46
|
+
results?: number | undefined;
|
|
47
|
+
security?: string | undefined;
|
|
48
|
+
unselectable?: "on" | "off" | undefined;
|
|
49
|
+
inputMode?: "search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
50
|
+
is?: string | undefined;
|
|
51
|
+
'aria-activedescendant'?: string | undefined;
|
|
52
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
53
|
+
'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
|
|
54
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
55
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
56
|
+
'aria-colcount'?: number | undefined;
|
|
57
|
+
'aria-colindex'?: number | undefined;
|
|
58
|
+
'aria-colspan'?: number | undefined;
|
|
59
|
+
'aria-controls'?: string | undefined;
|
|
60
|
+
'aria-current'?: boolean | "time" | "date" | "true" | "false" | "page" | "step" | "location" | undefined;
|
|
61
|
+
'aria-describedby'?: string | undefined;
|
|
62
|
+
'aria-details'?: string | undefined;
|
|
63
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
64
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
65
|
+
'aria-errormessage'?: string | undefined;
|
|
66
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
67
|
+
'aria-flowto'?: string | undefined;
|
|
68
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
69
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
70
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
71
|
+
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
72
|
+
'aria-keyshortcuts'?: string | undefined;
|
|
73
|
+
'aria-label'?: string | undefined;
|
|
74
|
+
'aria-labelledby'?: string | undefined;
|
|
75
|
+
'aria-level'?: number | undefined;
|
|
76
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
77
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
78
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
80
|
+
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
81
|
+
'aria-owns'?: string | undefined;
|
|
82
|
+
'aria-placeholder'?: string | undefined;
|
|
83
|
+
'aria-posinset'?: number | undefined;
|
|
84
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
85
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
86
|
+
'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
87
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
88
|
+
'aria-roledescription'?: string | undefined;
|
|
89
|
+
'aria-rowcount'?: number | undefined;
|
|
90
|
+
'aria-rowindex'?: number | undefined;
|
|
91
|
+
'aria-rowspan'?: number | undefined;
|
|
92
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
93
|
+
'aria-setsize'?: number | undefined;
|
|
94
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
95
|
+
'aria-valuemax'?: number | undefined;
|
|
96
|
+
'aria-valuemin'?: number | undefined;
|
|
97
|
+
'aria-valuenow'?: number | undefined;
|
|
98
|
+
'aria-valuetext'?: string | undefined;
|
|
99
|
+
children?: React.ReactNode;
|
|
100
|
+
dangerouslySetInnerHTML?: {
|
|
101
|
+
__html: string;
|
|
102
|
+
} | undefined;
|
|
103
|
+
onCopy?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
104
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
105
|
+
onCut?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
106
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
107
|
+
onPaste?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
108
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
109
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
110
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
111
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
112
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
113
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
114
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
115
|
+
onFocus?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
116
|
+
onFocusCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
117
|
+
onBlur?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
118
|
+
onBlurCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
119
|
+
onChange?: React.FormEventHandler<HTMLElement> | undefined;
|
|
120
|
+
onChangeCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
121
|
+
onBeforeInput?: React.FormEventHandler<HTMLElement> | undefined;
|
|
122
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
123
|
+
onInput?: React.FormEventHandler<HTMLElement> | undefined;
|
|
124
|
+
onInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
125
|
+
onReset?: React.FormEventHandler<HTMLElement> | undefined;
|
|
126
|
+
onResetCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
127
|
+
onSubmit?: React.FormEventHandler<HTMLElement> | undefined;
|
|
128
|
+
onSubmitCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
129
|
+
onInvalid?: React.FormEventHandler<HTMLElement> | undefined;
|
|
130
|
+
onInvalidCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
131
|
+
onLoad?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
132
|
+
onLoadCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
133
|
+
onError?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
134
|
+
onErrorCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
135
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
136
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
137
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
138
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
139
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
140
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
141
|
+
onAbort?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
142
|
+
onAbortCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
143
|
+
onCanPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
144
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
145
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
146
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
147
|
+
onDurationChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
148
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
149
|
+
onEmptied?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
150
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
151
|
+
onEncrypted?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
152
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
153
|
+
onEnded?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
154
|
+
onEndedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
155
|
+
onLoadedData?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
156
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
157
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
158
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
159
|
+
onLoadStart?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
160
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
161
|
+
onPause?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
162
|
+
onPauseCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
163
|
+
onPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
164
|
+
onPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
165
|
+
onPlaying?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
166
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
167
|
+
onProgress?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
168
|
+
onProgressCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
169
|
+
onRateChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
170
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
171
|
+
onSeeked?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
172
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
173
|
+
onSeeking?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
174
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
175
|
+
onStalled?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
176
|
+
onStalledCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
177
|
+
onSuspend?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
178
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
179
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
180
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
181
|
+
onVolumeChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
182
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
183
|
+
onWaiting?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
184
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
185
|
+
onAuxClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
186
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
187
|
+
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
188
|
+
onClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
189
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
190
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
191
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
192
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
193
|
+
onDrag?: React.DragEventHandler<HTMLElement> | undefined;
|
|
194
|
+
onDragCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
195
|
+
onDragEnd?: React.DragEventHandler<HTMLElement> | undefined;
|
|
196
|
+
onDragEndCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
197
|
+
onDragEnter?: React.DragEventHandler<HTMLElement> | undefined;
|
|
198
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
199
|
+
onDragExit?: React.DragEventHandler<HTMLElement> | undefined;
|
|
200
|
+
onDragExitCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
201
|
+
onDragLeave?: React.DragEventHandler<HTMLElement> | undefined;
|
|
202
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
203
|
+
onDragOver?: React.DragEventHandler<HTMLElement> | undefined;
|
|
204
|
+
onDragOverCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
205
|
+
onDragStart?: React.DragEventHandler<HTMLElement> | undefined;
|
|
206
|
+
onDragStartCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
207
|
+
onDrop?: React.DragEventHandler<HTMLElement> | undefined;
|
|
208
|
+
onDropCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
209
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
210
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
211
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
212
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
213
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
214
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
215
|
+
onMouseOut?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
216
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
217
|
+
onMouseOver?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
218
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
219
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
220
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
221
|
+
onSelect?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
222
|
+
onSelectCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
223
|
+
onTouchCancel?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
224
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
225
|
+
onTouchEnd?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
226
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
227
|
+
onTouchMove?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
228
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
229
|
+
onTouchStart?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
230
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
231
|
+
onPointerDown?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
232
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
233
|
+
onPointerMove?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
234
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
235
|
+
onPointerUp?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
236
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
237
|
+
onPointerCancel?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
238
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
239
|
+
onPointerEnter?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
240
|
+
onPointerEnterCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
241
|
+
onPointerLeave?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
242
|
+
onPointerLeaveCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
243
|
+
onPointerOver?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
244
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
245
|
+
onPointerOut?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
246
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
247
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
248
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
249
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
250
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
251
|
+
onScroll?: React.UIEventHandler<HTMLElement> | undefined;
|
|
252
|
+
onScrollCapture?: React.UIEventHandler<HTMLElement> | undefined;
|
|
253
|
+
onWheel?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
254
|
+
onWheelCapture?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
255
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
256
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
257
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
258
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
259
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
260
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
261
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
262
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
263
|
+
};
|
|
6
264
|
export declare const CanvasProvider: ({ children, theme, ...props }: CanvasProviderProps & React.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
7
265
|
//# sourceMappingURL=CanvasProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasProvider.d.ts","sourceRoot":"","sources":["../../../../common/lib/CanvasProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAqB,yBAAyB,EAAW,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"CanvasProvider.d.ts","sourceRoot":"","sources":["../../../../common/lib/CanvasProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAqB,yBAAyB,EAAW,MAAM,WAAW,CAAC;AAMlF,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACnC;AAkDD,eAAO,MAAM,uBAAuB,UAC3B,yBAAyB,GAAG,SAAS,aACjC,MAAM,cAAc,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB7C,CAAC;AAEF,eAAO,MAAM,cAAc,kCAIxB,mBAAmB,GAAG,MAAM,cAAc,CAAC,WAAW,CAAC,gBAezD,CAAC"}
|