@workday/canvas-kit-preview-react 12.0.5 → 13.0.0-alpha.938-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/dist/commonjs/divider/lib/Divider.js +1 -1
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.js +3 -3
- package/dist/commonjs/multi-select/lib/MultiSelectInput.js +1 -1
- package/dist/commonjs/radio/lib/RadioGroup.js +3 -3
- package/dist/commonjs/radio/lib/RadioLabel.js +1 -1
- package/dist/commonjs/radio/lib/RadioText.js +4 -4
- package/dist/commonjs/radio/lib/StyledRadioButton.js +5 -5
- package/dist/commonjs/status-indicator/lib/StatusIndicator.js +13 -13
- package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/dist/es6/divider/lib/Divider.js +1 -1
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.js +3 -3
- package/dist/es6/multi-select/lib/MultiSelectInput.js +1 -1
- package/dist/es6/radio/lib/RadioGroup.js +3 -3
- package/dist/es6/radio/lib/RadioLabel.js +1 -1
- package/dist/es6/radio/lib/RadioText.js +4 -4
- package/dist/es6/radio/lib/StyledRadioButton.js +5 -5
- package/dist/es6/status-indicator/lib/StatusIndicator.js +13 -13
- package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/package.json +4 -4
|
@@ -32,7 +32,7 @@ exports.dividerStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
32
32
|
vars: {
|
|
33
33
|
space: (0, canvas_kit_styling_1.cssVar)(canvas_tokens_web_1.system.space.x4),
|
|
34
34
|
},
|
|
35
|
-
base: { name: "
|
|
35
|
+
base: { name: "hxxb2", styles: "--space-divider-156e29:var(--cnvs-sys-space-x4);box-sizing:border-box;display:block;height:0.0625rem;border:none;border-top:1px solid var(--cnvs-sys-color-border-divider);margin:calc(var(--space-divider-156e29) / 2) 0;" }
|
|
36
36
|
}, "divider-156e29");
|
|
37
37
|
/**
|
|
38
38
|
* # Divider
|
|
@@ -49,15 +49,15 @@ const AI_COLORS = {
|
|
|
49
49
|
/**
|
|
50
50
|
* The animation for the sparkle.
|
|
51
51
|
*/
|
|
52
|
-
const LOADING_ANIMATION = (0, canvas_kit_styling_1.keyframes)({ name: "
|
|
53
|
-
const loadingSparklesIconStyles = (0, canvas_kit_styling_1.createStyles)({ name: "
|
|
52
|
+
const LOADING_ANIMATION = (0, canvas_kit_styling_1.keyframes)({ name: "hxxb3", styles: "0%, 79%, 100%{opacity:0.2;transform:scale(0.55);}27%{opacity:1;transform:scale(1);}53%{opacity:0.6;transform:scale(0.7);}" });
|
|
53
|
+
const loadingSparklesIconStyles = (0, canvas_kit_styling_1.createStyles)({ name: "hxxb4", styles: "animation-duration:1230ms;animation-fill-mode:both;animation-iteration-count:infinite;animation-name:animation-hxxb3;animation-timing-function:ease-in-out;.wd-sparkle-fill{fill:#8C17D2;}&:nth-child(1){animation-delay:0ms;}&:nth-child(2){animation-delay:calc(1230ms * (1/3));}&:nth-child(3){animation-delay:calc(1230ms * (2/3));}" });
|
|
54
54
|
/**
|
|
55
55
|
* An individual loading sparkle. ✨
|
|
56
56
|
*/
|
|
57
57
|
const Sparkle = () => {
|
|
58
58
|
return (React.createElement(icon_1.SystemIcon, { icon: sparkleIcon_1.sparkleIcon, cs: [loadingSparklesIconStyles], size: (0, canvas_kit_styling_1.cssVar)(canvas_tokens_web_1.system.space.x3) }));
|
|
59
59
|
};
|
|
60
|
-
const loadingSparklesStyles = (0, canvas_kit_styling_1.createStyles)({ name: "
|
|
60
|
+
const loadingSparklesStyles = (0, canvas_kit_styling_1.createStyles)({ name: "hxxb5", styles: "display:inline-flex;gap:0.0625rem;" });
|
|
61
61
|
/**
|
|
62
62
|
* A simple component that displays three horizontal sparkles, to be used when an AI operation is in progress.
|
|
63
63
|
*/
|
|
@@ -16,7 +16,7 @@ const combobox_1 = require("@workday/canvas-kit-react/combobox");
|
|
|
16
16
|
const pill_1 = require("@workday/canvas-kit-preview-react/pill");
|
|
17
17
|
const useMultiSelectModel_1 = require("./useMultiSelectModel");
|
|
18
18
|
exports.multiSelectStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
19
|
-
base: { name: "
|
|
19
|
+
base: { name: "hxxb1w", styles: "box-sizing:border-box;border:1px solid var(--cnvs-sys-color-border-input-default);display:flex;flex-direction:column;background-color:var(--cnvs-sys-color-bg-default);border-radius:var(--cnvs-sys-shape-x1);min-height:var(--cnvs-sys-space-x10);transition:0.2s box-shadow, 0.2s border-color;margin:0;&:hover, &.hover{border-color:var(--cnvs-sys-color-border-input-strong);}&:focus-within{border-color:var(--cnvs-sys-color-border-primary-default);box-shadow:inset 0 0 0 1px var(--cnvs-sys-color-border-primary-default);}& [data-part=\"user-input\"]{font-family:var(--cnvs-base-font-family-50);font-weight:var(--cnvs-base-font-weight-400);line-height:var(--cnvs-base-line-height-100);font-size:var(--cnvs-base-font-size-75);letter-spacing:var(--cnvs-base-letter-spacing-150);background-color:var(--cnvs-sys-color-bg-transparent);border-radius:var(--cnvs-sys-shape-x1);border:none !important;box-shadow:none !important;outline-width:0px;&:where(:not([aria-autocomplete])){caret-color:transparent;cursor:default;&::selection{background-color:transparent;}}}& :where([data-part=\"form-input\"]){position:absolute;top:var(--cnvs-sys-space-zero);bottom:var(--cnvs-sys-space-zero);left:var(--cnvs-sys-space-zero);right:var(--cnvs-sys-space-zero);opacity:var(--cnvs-sys-opacity-zero);cursor:default;pointer-events:none;}& :where([data-part=\"separator\"]){background-color:var(--cnvs-sys-color-border-divider);height:1px;margin:var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x2);}& :where([data-part=\"list\"]){display:flex;gap:var(--cnvs-sys-space-x2);padding:var(--cnvs-sys-space-x2);flex-wrap:wrap;}" }
|
|
20
20
|
}, "multi-select-012ac9");
|
|
21
21
|
exports.useMultiSelectInput = (0, common_1.composeHooks)((0, common_1.createElemPropsHook)(useMultiSelectModel_1.useMultiSelectModel)((model, ref) => {
|
|
22
22
|
return {
|
|
@@ -16,11 +16,11 @@ const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
|
16
16
|
* Styles for RadioGroup
|
|
17
17
|
*/
|
|
18
18
|
const radioGroupStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
19
|
-
base: { name: "
|
|
19
|
+
base: { name: "hxxbw", styles: "box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--cnvs-sys-shape-x1);gap:var(--cnvs-sys-space-x2);padding:0.625rem var(--cnvs-sys-space-x3) var(--cnvs-sys-space-x2);margin:0 calc(var(--cnvs-sys-space-x3) * -1);transition:100ms box-shadow;width:fit-content;" },
|
|
20
20
|
modifiers: {
|
|
21
21
|
error: {
|
|
22
|
-
error: { name: "
|
|
23
|
-
alert: { name: "
|
|
22
|
+
error: { name: "hxxbx", styles: "box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-error-base);" },
|
|
23
|
+
alert: { name: "hxxby", styles: "box-shadow:inset 0 0 0 0.0625rem var(--cnvs-brand-alert-darkest), inset 0 0 0 0.1875rem var(--cnvs-brand-alert-base);" }
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}, "radio-group-ce2b62");
|
|
@@ -13,7 +13,7 @@ const RadioText_1 = require("./RadioText");
|
|
|
13
13
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
14
14
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
15
15
|
const radioLabelStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
16
|
-
base: { name: "
|
|
16
|
+
base: { name: "hxxbv", styles: "box-sizing:border-box;align-items:flex-start;min-height:var(--cnvs-sys-space-x6);position:relative;gap:var(--cnvs-sys-space-x3);" }
|
|
17
17
|
}, "radio-label-0cca27");
|
|
18
18
|
exports.RadioLabelContext = react_1.default.createContext({});
|
|
19
19
|
exports.RadioLabel = (0, common_1.createSubcomponent)('label')({
|
|
@@ -14,19 +14,19 @@ const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
|
14
14
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
15
15
|
const radioTextStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
16
16
|
extends: text_1.textStencil,
|
|
17
|
-
base: { name: "
|
|
17
|
+
base: { name: "hxxbr", styles: "box-sizing:border-box;cursor:pointer;" },
|
|
18
18
|
modifiers: {
|
|
19
19
|
variant: {
|
|
20
|
-
inverse: { name: "
|
|
20
|
+
inverse: { name: "hxxbs", styles: "color:var(--cnvs-sys-color-text-inverse);" }
|
|
21
21
|
},
|
|
22
22
|
disabled: {
|
|
23
|
-
true: { name: "
|
|
23
|
+
true: { name: "hxxbt", styles: "cursor:default;color:var(--cnvs-sys-color-text-disabled);" }
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
compound: [
|
|
27
27
|
{
|
|
28
28
|
modifiers: { variant: 'inverse', disabled: true },
|
|
29
|
-
styles: { name: "
|
|
29
|
+
styles: { name: "hxxbu", styles: "color:var(--cnvs-sys-color-text-inverse);opacity:var(--cnvs-sys-opacity-disabled);" }
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
defaultModifiers: {
|
|
@@ -13,10 +13,10 @@ const RadioLabel_1 = require("./RadioLabel");
|
|
|
13
13
|
const radioWidth = 18;
|
|
14
14
|
const radioHeight = 18;
|
|
15
15
|
const radioInputStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
16
|
-
base: { name: "
|
|
16
|
+
base: { name: "hxxb6", styles: "box-sizing:border-box;cursor:pointer;height:1.125rem;width:1.125rem;border-radius:var(--cnvs-sys-shape-round);position:absolute;margin:var(--cnvs-sys-space-zero);&:focus-visible, &.focus, &:active{outline:transparent;}&:disabled, &.disabled{cursor:auto;+ .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-disabled);background-color:var(--cnvs-sys-color-bg-alt-softer);}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-disabled);}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-accent);border:0.3125rem solid var(--cnvs-brand-primary-base);}}+ .cnvs-radio-check{display:flex;flex-direction:column;align-items:center;background-color:var(--cnvs-sys-color-bg-default);border-radius:var(--cnvs-sys-shape-round);box-sizing:border-box;border:0.0625rem solid var(--cnvs-sys-color-border-input-default);height:1.125rem;width:1.125rem;justify-content:center;pointer-events:none;position:absolute;transition:border 200ms ease, background 200ms;opacity:var(--cnvs-sys-opacity-full);}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-strong);}&:focus-visible + .cnvs-radio-check, &.focus + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-primary-default);box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse), 0 0 0 1px var(--cnvs-brand-common-focus-outline);}&:focus-visible:hover + .cnvs-radio-check, &.focus:hover + .cnvs-radio-check{outline:transparent;}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-accent);border:0.3125rem solid var(--cnvs-brand-primary-base);}&:focus-visible:checked + .cnvs-radio-check, &:focus-visible:hover:checked + .cnvs-radio-check, &.focus:checked + .cnvs-radio-check, &.focus:hover:checked + .cnvs-radio-check{outline:transparent;box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse), 0 0 0 4px var(--cnvs-brand-common-focus-outline);}" },
|
|
17
17
|
modifiers: {
|
|
18
18
|
variant: {
|
|
19
|
-
inverse: { name: "
|
|
19
|
+
inverse: { name: "hxxb7", styles: "+ .cnvs-radio-check{background-color:var(--cnvs-sys-color-bg-alt-softer);border-color:var(--cnvs-sys-color-border-input-inverse);}&:disabled, &.disabled{opacity:var(--cnvs-sys-opacity-disabled);+ .cnvs-radio-check{background-color:var(--cnvs-sys-color-bg-alt-softer);border-color:var(--cnvs-sys-color-border-input-disabled);opacity:var(--cnvs-sys-opacity-disabled);}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-base);border-color:var(--cnvs-sys-color-border-inverse);}}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-inverse);}&:focus-visible + .cnvs-radio-check, &.focus + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-inverse);}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-base);border-color:var(--cnvs-sys-color-border-inverse);}&:focus-visible + .cnvs-radio-check, &:focus-visible:hover + .cnvs-radio-check, &.focus + .cnvs-radio-check, &.focus:hover + .cnvs-radio-check{box-shadow:0 0 0 0px var(--cnvs-sys-color-border-contrast-default), 0 0 0 2px var(--cnvs-sys-color-border-inverse);}&:focus-visible:checked + .cnvs-radio-check, &:focus-visible:hover:checked + .cnvs-radio-check, &.focus:checked + .cnvs-radio-check, &.focus:hover:checked + .cnvs-radio-check{box-shadow:0 0 0 2px var(--cnvs-sys-color-border-contrast-default), 0 0 0 4px var(--cnvs-sys-color-border-inverse);}" }
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}, "radio-input-f05aaa");
|
|
@@ -27,13 +27,13 @@ const StyledRadioInput = (0, common_1.createComponent)('input')({
|
|
|
27
27
|
},
|
|
28
28
|
});
|
|
29
29
|
const radioInputWrapperStyles = (0, canvas_kit_styling_1.createStencil)({
|
|
30
|
-
base: { name: "
|
|
30
|
+
base: { name: "hxxb8", styles: "box-sizing:border-box;height:1.125rem;width:1.125rem;flex:0 0 auto;::before{content:'';position:absolute;border-radius:var(--cnvs-sys-shape-round);height:1.125rem;transition:box-shadow 150ms ease-out;width:1.125rem;pointer-events:none;opacity:var(--cnvs-sys-opacity-full);}&:hover:before, &.hover:before{box-shadow:0 0 0 calc(var(--cnvs-sys-space-x2) - 0.0625rem) var(--cnvs-sys-color-bg-alt-soft);}" },
|
|
31
31
|
modifiers: {
|
|
32
32
|
variant: {
|
|
33
|
-
inverse: { name: "
|
|
33
|
+
inverse: { name: "hxxb9", styles: "::before{opacity:var(--cnvs-sys-opacity-disabled);}" }
|
|
34
34
|
},
|
|
35
35
|
disabled: {
|
|
36
|
-
true: { name: "
|
|
36
|
+
true: { name: "hxxba", styles: "&:hover:before, &.hover:before{box-shadow:none;cursor:auto;}" }
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}, "radio-input-wrapper-styles-fce2c4");
|
|
@@ -13,31 +13,31 @@ const icon_1 = require("@workday/canvas-kit-react/icon");
|
|
|
13
13
|
const StatusIndicatorIcon_1 = require("./StatusIndicatorIcon");
|
|
14
14
|
const StatusIndicatorLabel_1 = require("./StatusIndicatorLabel");
|
|
15
15
|
const statusIndicatorStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
16
|
-
base: { name: "
|
|
16
|
+
base: { name: "hxxb1g", styles: "box-sizing:border-box;display:inline-flex;gap:var(--cnvs-sys-space-x1);max-width:12.5rem;align-items:center;border-radius:var(--cnvs-sys-shape-half);height:1.25rem;padding:var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x1);" },
|
|
17
17
|
modifiers: {
|
|
18
18
|
gray: {
|
|
19
|
-
high: { name: "
|
|
20
|
-
low: { name: "
|
|
19
|
+
high: { name: "hxxb1k", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-gray-default);" },
|
|
20
|
+
low: { name: "hxxb1l", styles: "color:var(--cnvs-sys-color-static-gray-strong);--color-system-icon-583fae:var(--cnvs-sys-color-static-gray-strong);background:var(--cnvs-sys-color-static-gray-soft);" }
|
|
21
21
|
},
|
|
22
22
|
orange: {
|
|
23
|
-
high: { name: "
|
|
24
|
-
low: { name: "
|
|
23
|
+
high: { name: "hxxb1m", styles: "color:var(--cnvs-sys-color-static-gray-stronger);--color-system-icon-583fae:var(--cnvs-sys-color-static-gray-stronger);background:var(--cnvs-sys-color-static-orange-default);" },
|
|
24
|
+
low: { name: "hxxb1n", styles: "color:var(--cnvs-sys-color-static-gold-stronger);--color-system-icon-583fae:var(--cnvs-sys-color-static-gold-stronger);background:var(--cnvs-sys-color-static-orange-soft);" }
|
|
25
25
|
},
|
|
26
26
|
blue: {
|
|
27
|
-
high: { name: "
|
|
28
|
-
low: { name: "
|
|
27
|
+
high: { name: "hxxb1o", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-blue-default);" },
|
|
28
|
+
low: { name: "hxxb1p", styles: "color:var(--cnvs-sys-color-static-blue-strong);--color-system-icon-583fae:var(--cnvs-sys-color-static-blue-strong);background:var(--cnvs-sys-color-static-blue-soft);" }
|
|
29
29
|
},
|
|
30
30
|
green: {
|
|
31
|
-
high: { name: "
|
|
32
|
-
low: { name: "
|
|
31
|
+
high: { name: "hxxb1q", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-green-strong);" },
|
|
32
|
+
low: { name: "hxxb1r", styles: "color:var(--cnvs-sys-color-static-green-strong);--color-system-icon-583fae:var(--cnvs-sys-color-static-green-strong);background:var(--cnvs-sys-color-static-green-soft);" }
|
|
33
33
|
},
|
|
34
34
|
red: {
|
|
35
|
-
high: { name: "
|
|
36
|
-
low: { name: "
|
|
35
|
+
high: { name: "hxxb1s", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-red-default);" },
|
|
36
|
+
low: { name: "hxxb1t", styles: "color:var(--cnvs-sys-color-static-red-strong);--color-system-icon-583fae:var(--cnvs-sys-color-static-red-strong);background:var(--cnvs-sys-color-static-red-soft);" }
|
|
37
37
|
},
|
|
38
38
|
transparent: {
|
|
39
|
-
high: { name: "
|
|
40
|
-
low: { name: "
|
|
39
|
+
high: { name: "hxxb1u", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-bg-translucent);" },
|
|
40
|
+
low: { name: "hxxb1v", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-bg-translucent);" }
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}, "status-indicator-1a565e");
|
|
@@ -12,7 +12,7 @@ const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
|
12
12
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
13
13
|
const statusIndicatorLabelStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
14
14
|
extends: text_1.textStencil,
|
|
15
|
-
base: { name: "
|
|
15
|
+
base: { name: "hxxb1f", styles: "box-sizing:border-box;font-weight:var(--cnvs-sys-font-weight-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;color:inherit;" },
|
|
16
16
|
defaultModifiers: { typeLevel: 'subtext.large' }
|
|
17
17
|
}, "status-indicator-label-fbd39a");
|
|
18
18
|
exports.StatusIndicatorLabel = (0, common_1.createComponent)('span')({
|
|
@@ -6,7 +6,7 @@ export const dividerStencil = createStencil({
|
|
|
6
6
|
vars: {
|
|
7
7
|
space: cssVar(system.space.x4),
|
|
8
8
|
},
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "i4d62", styles: "--space-divider-156e29:var(--cnvs-sys-space-x4);box-sizing:border-box;display:block;height:0.0625rem;border:none;border-top:1px solid var(--cnvs-sys-color-border-divider);margin:calc(var(--space-divider-156e29) / 2) 0;" }
|
|
10
10
|
}, "divider-156e29");
|
|
11
11
|
/**
|
|
12
12
|
* # Divider
|
|
@@ -23,15 +23,15 @@ const AI_COLORS = {
|
|
|
23
23
|
/**
|
|
24
24
|
* The animation for the sparkle.
|
|
25
25
|
*/
|
|
26
|
-
const LOADING_ANIMATION = keyframes({ name: "
|
|
27
|
-
const loadingSparklesIconStyles = createStyles({ name: "
|
|
26
|
+
const LOADING_ANIMATION = keyframes({ name: "i4d63", styles: "0%, 79%, 100%{opacity:0.2;transform:scale(0.55);}27%{opacity:1;transform:scale(1);}53%{opacity:0.6;transform:scale(0.7);}" });
|
|
27
|
+
const loadingSparklesIconStyles = createStyles({ name: "i4d64", styles: "animation-duration:1230ms;animation-fill-mode:both;animation-iteration-count:infinite;animation-name:animation-i4d63;animation-timing-function:ease-in-out;.wd-sparkle-fill{fill:#8C17D2;}&:nth-child(1){animation-delay:0ms;}&:nth-child(2){animation-delay:calc(1230ms * (1/3));}&:nth-child(3){animation-delay:calc(1230ms * (2/3));}" });
|
|
28
28
|
/**
|
|
29
29
|
* An individual loading sparkle. ✨
|
|
30
30
|
*/
|
|
31
31
|
const Sparkle = () => {
|
|
32
32
|
return (React.createElement(SystemIcon, { icon: sparkleIcon, cs: [loadingSparklesIconStyles], size: cssVar(system.space.x3) }));
|
|
33
33
|
};
|
|
34
|
-
const loadingSparklesStyles = createStyles({ name: "
|
|
34
|
+
const loadingSparklesStyles = createStyles({ name: "i4d65", styles: "display:inline-flex;gap:0.0625rem;" });
|
|
35
35
|
/**
|
|
36
36
|
* A simple component that displays three horizontal sparkles, to be used when an AI operation is in progress.
|
|
37
37
|
*/
|
|
@@ -10,7 +10,7 @@ import { useComboboxInput, useComboboxInputConstrained } from '@workday/canvas-k
|
|
|
10
10
|
import { Pill } from '@workday/canvas-kit-preview-react/pill';
|
|
11
11
|
import { useMultiSelectModel } from './useMultiSelectModel';
|
|
12
12
|
export const multiSelectStencil = createStencil({
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "i4d61w", styles: "box-sizing:border-box;border:1px solid var(--cnvs-sys-color-border-input-default);display:flex;flex-direction:column;background-color:var(--cnvs-sys-color-bg-default);border-radius:var(--cnvs-sys-shape-x1);min-height:var(--cnvs-sys-space-x10);transition:0.2s box-shadow, 0.2s border-color;margin:0;&:hover, &.hover{border-color:var(--cnvs-sys-color-border-input-strong);}&:focus-within{border-color:var(--cnvs-sys-color-border-primary-default);box-shadow:inset 0 0 0 1px var(--cnvs-sys-color-border-primary-default);}& [data-part=\"user-input\"]{font-family:var(--cnvs-base-font-family-50);font-weight:var(--cnvs-base-font-weight-400);line-height:var(--cnvs-base-line-height-100);font-size:var(--cnvs-base-font-size-75);letter-spacing:var(--cnvs-base-letter-spacing-150);background-color:var(--cnvs-sys-color-bg-transparent);border-radius:var(--cnvs-sys-shape-x1);border:none !important;box-shadow:none !important;outline-width:0px;&:where(:not([aria-autocomplete])){caret-color:transparent;cursor:default;&::selection{background-color:transparent;}}}& :where([data-part=\"form-input\"]){position:absolute;top:var(--cnvs-sys-space-zero);bottom:var(--cnvs-sys-space-zero);left:var(--cnvs-sys-space-zero);right:var(--cnvs-sys-space-zero);opacity:var(--cnvs-sys-opacity-zero);cursor:default;pointer-events:none;}& :where([data-part=\"separator\"]){background-color:var(--cnvs-sys-color-border-divider);height:1px;margin:var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x2);}& :where([data-part=\"list\"]){display:flex;gap:var(--cnvs-sys-space-x2);padding:var(--cnvs-sys-space-x2);flex-wrap:wrap;}" }
|
|
14
14
|
}, "multi-select-012ac9");
|
|
15
15
|
export const useMultiSelectInput = composeHooks(createElemPropsHook(useMultiSelectModel)((model, ref) => {
|
|
16
16
|
return {
|
|
@@ -10,11 +10,11 @@ import { brand, system } from '@workday/canvas-tokens-web';
|
|
|
10
10
|
* Styles for RadioGroup
|
|
11
11
|
*/
|
|
12
12
|
const radioGroupStencil = createStencil({
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "i4d6w", styles: "box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--cnvs-sys-shape-x1);gap:var(--cnvs-sys-space-x2);padding:0.625rem var(--cnvs-sys-space-x3) var(--cnvs-sys-space-x2);margin:0 calc(var(--cnvs-sys-space-x3) * -1);transition:100ms box-shadow;width:fit-content;" },
|
|
14
14
|
modifiers: {
|
|
15
15
|
error: {
|
|
16
|
-
error: { name: "
|
|
17
|
-
alert: { name: "
|
|
16
|
+
error: { name: "i4d6x", styles: "box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-error-base);" },
|
|
17
|
+
alert: { name: "i4d6y", styles: "box-shadow:inset 0 0 0 0.0625rem var(--cnvs-brand-alert-darkest), inset 0 0 0 0.1875rem var(--cnvs-brand-alert-base);" }
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}, "radio-group-ce2b62");
|
|
@@ -7,7 +7,7 @@ import { RadioText } from './RadioText';
|
|
|
7
7
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
8
8
|
import { system } from '@workday/canvas-tokens-web';
|
|
9
9
|
const radioLabelStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "i4d6v", styles: "box-sizing:border-box;align-items:flex-start;min-height:var(--cnvs-sys-space-x6);position:relative;gap:var(--cnvs-sys-space-x3);" }
|
|
11
11
|
}, "radio-label-0cca27");
|
|
12
12
|
export const RadioLabelContext = React.createContext({});
|
|
13
13
|
export const RadioLabel = createSubcomponent('label')({
|
|
@@ -8,19 +8,19 @@ import { system } from '@workday/canvas-tokens-web';
|
|
|
8
8
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
9
9
|
const radioTextStencil = createStencil({
|
|
10
10
|
extends: textStencil,
|
|
11
|
-
base: { name: "
|
|
11
|
+
base: { name: "i4d6r", styles: "box-sizing:border-box;cursor:pointer;" },
|
|
12
12
|
modifiers: {
|
|
13
13
|
variant: {
|
|
14
|
-
inverse: { name: "
|
|
14
|
+
inverse: { name: "i4d6s", styles: "color:var(--cnvs-sys-color-text-inverse);" }
|
|
15
15
|
},
|
|
16
16
|
disabled: {
|
|
17
|
-
true: { name: "
|
|
17
|
+
true: { name: "i4d6t", styles: "cursor:default;color:var(--cnvs-sys-color-text-disabled);" }
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
compound: [
|
|
21
21
|
{
|
|
22
22
|
modifiers: { variant: 'inverse', disabled: true },
|
|
23
|
-
styles: { name: "
|
|
23
|
+
styles: { name: "i4d6u", styles: "color:var(--cnvs-sys-color-text-inverse);opacity:var(--cnvs-sys-opacity-disabled);" }
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
defaultModifiers: {
|
|
@@ -7,10 +7,10 @@ import { RadioLabelContext } from './RadioLabel';
|
|
|
7
7
|
const radioWidth = 18;
|
|
8
8
|
const radioHeight = 18;
|
|
9
9
|
const radioInputStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "i4d66", styles: "box-sizing:border-box;cursor:pointer;height:1.125rem;width:1.125rem;border-radius:var(--cnvs-sys-shape-round);position:absolute;margin:var(--cnvs-sys-space-zero);&:focus-visible, &.focus, &:active{outline:transparent;}&:disabled, &.disabled{cursor:auto;+ .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-disabled);background-color:var(--cnvs-sys-color-bg-alt-softer);}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-disabled);}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-accent);border:0.3125rem solid var(--cnvs-brand-primary-base);}}+ .cnvs-radio-check{display:flex;flex-direction:column;align-items:center;background-color:var(--cnvs-sys-color-bg-default);border-radius:var(--cnvs-sys-shape-round);box-sizing:border-box;border:0.0625rem solid var(--cnvs-sys-color-border-input-default);height:1.125rem;width:1.125rem;justify-content:center;pointer-events:none;position:absolute;transition:border 200ms ease, background 200ms;opacity:var(--cnvs-sys-opacity-full);}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-strong);}&:focus-visible + .cnvs-radio-check, &.focus + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-primary-default);box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse), 0 0 0 1px var(--cnvs-brand-common-focus-outline);}&:focus-visible:hover + .cnvs-radio-check, &.focus:hover + .cnvs-radio-check{outline:transparent;}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-accent);border:0.3125rem solid var(--cnvs-brand-primary-base);}&:focus-visible:checked + .cnvs-radio-check, &:focus-visible:hover:checked + .cnvs-radio-check, &.focus:checked + .cnvs-radio-check, &.focus:hover:checked + .cnvs-radio-check{outline:transparent;box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse), 0 0 0 4px var(--cnvs-brand-common-focus-outline);}" },
|
|
11
11
|
modifiers: {
|
|
12
12
|
variant: {
|
|
13
|
-
inverse: { name: "
|
|
13
|
+
inverse: { name: "i4d67", styles: "+ .cnvs-radio-check{background-color:var(--cnvs-sys-color-bg-alt-softer);border-color:var(--cnvs-sys-color-border-input-inverse);}&:disabled, &.disabled{opacity:var(--cnvs-sys-opacity-disabled);+ .cnvs-radio-check{background-color:var(--cnvs-sys-color-bg-alt-softer);border-color:var(--cnvs-sys-color-border-input-disabled);opacity:var(--cnvs-sys-opacity-disabled);}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-base);border-color:var(--cnvs-sys-color-border-inverse);}}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-inverse);}&:focus-visible + .cnvs-radio-check, &.focus + .cnvs-radio-check{border-color:var(--cnvs-sys-color-border-input-inverse);}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-base);border-color:var(--cnvs-sys-color-border-inverse);}&:focus-visible + .cnvs-radio-check, &:focus-visible:hover + .cnvs-radio-check, &.focus + .cnvs-radio-check, &.focus:hover + .cnvs-radio-check{box-shadow:0 0 0 0px var(--cnvs-sys-color-border-contrast-default), 0 0 0 2px var(--cnvs-sys-color-border-inverse);}&:focus-visible:checked + .cnvs-radio-check, &:focus-visible:hover:checked + .cnvs-radio-check, &.focus:checked + .cnvs-radio-check, &.focus:hover:checked + .cnvs-radio-check{box-shadow:0 0 0 2px var(--cnvs-sys-color-border-contrast-default), 0 0 0 4px var(--cnvs-sys-color-border-inverse);}" }
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}, "radio-input-f05aaa");
|
|
@@ -21,13 +21,13 @@ const StyledRadioInput = createComponent('input')({
|
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
23
|
const radioInputWrapperStyles = createStencil({
|
|
24
|
-
base: { name: "
|
|
24
|
+
base: { name: "i4d68", styles: "box-sizing:border-box;height:1.125rem;width:1.125rem;flex:0 0 auto;::before{content:'';position:absolute;border-radius:var(--cnvs-sys-shape-round);height:1.125rem;transition:box-shadow 150ms ease-out;width:1.125rem;pointer-events:none;opacity:var(--cnvs-sys-opacity-full);}&:hover:before, &.hover:before{box-shadow:0 0 0 calc(var(--cnvs-sys-space-x2) - 0.0625rem) var(--cnvs-sys-color-bg-alt-soft);}" },
|
|
25
25
|
modifiers: {
|
|
26
26
|
variant: {
|
|
27
|
-
inverse: { name: "
|
|
27
|
+
inverse: { name: "i4d69", styles: "::before{opacity:var(--cnvs-sys-opacity-disabled);}" }
|
|
28
28
|
},
|
|
29
29
|
disabled: {
|
|
30
|
-
true: { name: "
|
|
30
|
+
true: { name: "i4d6a", styles: "&:hover:before, &.hover:before{box-shadow:none;cursor:auto;}" }
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}, "radio-input-wrapper-styles-fce2c4");
|
|
@@ -7,31 +7,31 @@ import { systemIconStencil } from '@workday/canvas-kit-react/icon';
|
|
|
7
7
|
import { StatusIndicatorIcon } from './StatusIndicatorIcon';
|
|
8
8
|
import { StatusIndicatorLabel } from './StatusIndicatorLabel';
|
|
9
9
|
const statusIndicatorStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "i4d61g", styles: "box-sizing:border-box;display:inline-flex;gap:var(--cnvs-sys-space-x1);max-width:12.5rem;align-items:center;border-radius:var(--cnvs-sys-shape-half);height:1.25rem;padding:var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x1);" },
|
|
11
11
|
modifiers: {
|
|
12
12
|
gray: {
|
|
13
|
-
high: { name: "
|
|
14
|
-
low: { name: "
|
|
13
|
+
high: { name: "i4d61k", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-gray-default);" },
|
|
14
|
+
low: { name: "i4d61l", styles: "color:var(--cnvs-sys-color-static-gray-strong);--color-system-icon-583fae:var(--cnvs-sys-color-static-gray-strong);background:var(--cnvs-sys-color-static-gray-soft);" }
|
|
15
15
|
},
|
|
16
16
|
orange: {
|
|
17
|
-
high: { name: "
|
|
18
|
-
low: { name: "
|
|
17
|
+
high: { name: "i4d61m", styles: "color:var(--cnvs-sys-color-static-gray-stronger);--color-system-icon-583fae:var(--cnvs-sys-color-static-gray-stronger);background:var(--cnvs-sys-color-static-orange-default);" },
|
|
18
|
+
low: { name: "i4d61n", styles: "color:var(--cnvs-sys-color-static-gold-stronger);--color-system-icon-583fae:var(--cnvs-sys-color-static-gold-stronger);background:var(--cnvs-sys-color-static-orange-soft);" }
|
|
19
19
|
},
|
|
20
20
|
blue: {
|
|
21
|
-
high: { name: "
|
|
22
|
-
low: { name: "
|
|
21
|
+
high: { name: "i4d61o", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-blue-default);" },
|
|
22
|
+
low: { name: "i4d61p", styles: "color:var(--cnvs-sys-color-static-blue-strong);--color-system-icon-583fae:var(--cnvs-sys-color-static-blue-strong);background:var(--cnvs-sys-color-static-blue-soft);" }
|
|
23
23
|
},
|
|
24
24
|
green: {
|
|
25
|
-
high: { name: "
|
|
26
|
-
low: { name: "
|
|
25
|
+
high: { name: "i4d61q", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-green-strong);" },
|
|
26
|
+
low: { name: "i4d61r", styles: "color:var(--cnvs-sys-color-static-green-strong);--color-system-icon-583fae:var(--cnvs-sys-color-static-green-strong);background:var(--cnvs-sys-color-static-green-soft);" }
|
|
27
27
|
},
|
|
28
28
|
red: {
|
|
29
|
-
high: { name: "
|
|
30
|
-
low: { name: "
|
|
29
|
+
high: { name: "i4d61s", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-red-default);" },
|
|
30
|
+
low: { name: "i4d61t", styles: "color:var(--cnvs-sys-color-static-red-strong);--color-system-icon-583fae:var(--cnvs-sys-color-static-red-strong);background:var(--cnvs-sys-color-static-red-soft);" }
|
|
31
31
|
},
|
|
32
32
|
transparent: {
|
|
33
|
-
high: { name: "
|
|
34
|
-
low: { name: "
|
|
33
|
+
high: { name: "i4d61u", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-bg-translucent);" },
|
|
34
|
+
low: { name: "i4d61v", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-583fae:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-bg-translucent);" }
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}, "status-indicator-1a565e");
|
|
@@ -6,7 +6,7 @@ import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
6
6
|
import { system } from '@workday/canvas-tokens-web';
|
|
7
7
|
const statusIndicatorLabelStencil = createStencil({
|
|
8
8
|
extends: textStencil,
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "i4d61f", styles: "box-sizing:border-box;font-weight:var(--cnvs-sys-font-weight-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;color:inherit;" },
|
|
10
10
|
defaultModifiers: { typeLevel: 'subtext.large' }
|
|
11
11
|
}, "status-indicator-label-fbd39a");
|
|
12
12
|
export const StatusIndicatorLabel = createComponent('span')({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-preview-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0-alpha.938-next.0",
|
|
4
4
|
"description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@emotion/react": "^11.7.1",
|
|
48
48
|
"@emotion/styled": "^11.6.0",
|
|
49
|
-
"@workday/canvas-kit-react": "^
|
|
50
|
-
"@workday/canvas-kit-styling": "^
|
|
49
|
+
"@workday/canvas-kit-react": "^13.0.0-alpha.938-next.0",
|
|
50
|
+
"@workday/canvas-kit-styling": "^13.0.0-alpha.938-next.0",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"@workday/canvas-tokens-web": "^2.0.1",
|
|
53
53
|
"@workday/design-assets-types": "^0.2.8"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"react-hook-form": "7.36.1",
|
|
59
59
|
"yup": "^0.32.11"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "2ad2b087dc7ee7b1c0a737ebcee42b927dca7806"
|
|
62
62
|
}
|