@workday/canvas-kit-labs-react 15.0.0-alpha.0064-next.0 → 15.0.0-alpha.0075-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/ai-ingress-button/lib/AIIngressButton.js +5 -5
- package/dist/commonjs/index.d.ts +0 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +0 -2
- package/dist/commonjs/side-panel/lib/SidePanel.js +7 -7
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +11 -11
- package/dist/commonjs/version/lib/version.js +1 -1
- package/dist/es6/ai-ingress-button/lib/AIIngressButton.js +5 -5
- package/dist/es6/index.d.ts +0 -2
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +0 -2
- package/dist/es6/side-panel/lib/SidePanel.js +7 -7
- package/dist/es6/side-panel/lib/SidePanelToggleButton.js +11 -11
- package/dist/es6/version/lib/version.js +1 -1
- package/index.ts +0 -2
- package/package.json +4 -4
- package/combobox/index.ts +0 -1
- package/combobox/lib/AutocompleteList.tsx +0 -137
- package/combobox/lib/Combobox.tsx +0 -505
- package/combobox/lib/Status.tsx +0 -52
- package/combobox/package.json +0 -6
- package/dist/commonjs/combobox/index.d.ts +0 -2
- package/dist/commonjs/combobox/index.d.ts.map +0 -1
- package/dist/commonjs/combobox/index.js +0 -17
- package/dist/commonjs/combobox/lib/AutocompleteList.d.ts +0 -34
- package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +0 -1
- package/dist/commonjs/combobox/lib/AutocompleteList.js +0 -101
- package/dist/commonjs/combobox/lib/Combobox.d.ts +0 -79
- package/dist/commonjs/combobox/lib/Combobox.d.ts.map +0 -1
- package/dist/commonjs/combobox/lib/Combobox.js +0 -349
- package/dist/commonjs/combobox/lib/Status.d.ts +0 -16
- package/dist/commonjs/combobox/lib/Status.d.ts.map +0 -1
- package/dist/commonjs/combobox/lib/Status.js +0 -29
- package/dist/commonjs/search-form/index.d.ts +0 -3
- package/dist/commonjs/search-form/index.d.ts.map +0 -1
- package/dist/commonjs/search-form/index.js +0 -18
- package/dist/commonjs/search-form/lib/SearchForm.d.ts +0 -450
- package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +0 -1
- package/dist/commonjs/search-form/lib/SearchForm.js +0 -236
- package/dist/commonjs/search-form/lib/themes.d.ts +0 -33
- package/dist/commonjs/search-form/lib/themes.d.ts.map +0 -1
- package/dist/commonjs/search-form/lib/themes.js +0 -47
- package/dist/es6/combobox/index.d.ts +0 -2
- package/dist/es6/combobox/index.d.ts.map +0 -1
- package/dist/es6/combobox/index.js +0 -1
- package/dist/es6/combobox/lib/AutocompleteList.d.ts +0 -34
- package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +0 -1
- package/dist/es6/combobox/lib/AutocompleteList.js +0 -71
- package/dist/es6/combobox/lib/Combobox.d.ts +0 -79
- package/dist/es6/combobox/lib/Combobox.d.ts.map +0 -1
- package/dist/es6/combobox/lib/Combobox.js +0 -317
- package/dist/es6/combobox/lib/Status.d.ts +0 -16
- package/dist/es6/combobox/lib/Status.d.ts.map +0 -1
- package/dist/es6/combobox/lib/Status.js +0 -22
- package/dist/es6/search-form/index.d.ts +0 -3
- package/dist/es6/search-form/index.d.ts.map +0 -1
- package/dist/es6/search-form/index.js +0 -2
- package/dist/es6/search-form/lib/SearchForm.d.ts +0 -450
- package/dist/es6/search-form/lib/SearchForm.d.ts.map +0 -1
- package/dist/es6/search-form/lib/SearchForm.js +0 -207
- package/dist/es6/search-form/lib/themes.d.ts +0 -33
- package/dist/es6/search-form/lib/themes.d.ts.map +0 -1
- package/dist/es6/search-form/lib/themes.js +0 -44
- package/search-form/index.ts +0 -2
- package/search-form/lib/SearchForm.tsx +0 -651
- package/search-form/lib/themes.ts +0 -67
- package/search-form/package.json +0 -6
|
@@ -26,20 +26,20 @@ const glowHappyHour = canvas_tokens_web_1.base.orange400; //'#FD7E00';
|
|
|
26
26
|
const glowThumbtack = canvas_tokens_web_1.base.coral500; //'#FC5B05';
|
|
27
27
|
exports.AIIngressButtonStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
28
28
|
extends: button_1.buttonStencil,
|
|
29
|
-
base: { name: "
|
|
29
|
+
base: { name: "2sli0n", styles: "box-sizing:border-box;--background-button-f6d2bd:var(--cnvs-sys-color-bg-ai-strongest);border-radius:var(--cnvs-sys-shape-round);height:calc(var(--cnvs-sys-space-x10) + var(--cnvs-sys-space-x1));width:calc(var(--cnvs-sys-space-x10) + var(--cnvs-sys-space-x1));transition:box-shadow 300ms ease-out, background 300ms ease-out;.wd-icon-ai-ingress-button{.wd-icon-fill{transition:fill 300ms ease-out;}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-inverse);}}&:is(:hover, .hover):not(:disabled, .disabled){.wd-icon-ai-ingress-button{linearGradient > stop:first-child{stop-color:var(--cnvs-base-palette-red-200);}linearGradient > stop:nth-child(2){stop-color:var(--cnvs-base-palette-orange-200);}linearGradient > stop:nth-child(3){stop-color:var(--cnvs-base-palette-orange-200);}linearGradient > stop:nth-child(4){stop-color:var(--cnvs-base-palette-amber-200);}linearGradient > stop:nth-child(5){stop-color:var(--cnvs-base-palette-amber-300);}}}&:disabled, &:disabled:active, &.disabled{opacity:var(--cnvs-sys-opacity-disabled);}&:is(:focus-visible, .focus):not(:disabled, .disabled){box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 2px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}" },
|
|
30
30
|
modifiers: {
|
|
31
31
|
variant: {
|
|
32
|
-
inverse: { name: "
|
|
32
|
+
inverse: { name: "3xbojx", styles: "--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);.wd-icon-ai-ingress-button{.wd-icon-fill{transition:fill 300ms ease-out;}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-ai);}}&:is(:hover, .hover):not(:disabled, .disabled){.wd-icon-ai-ingress-button{linearGradient > stop:first-child{stop-color:var(--cnvs-base-palette-red-200);}linearGradient > stop:nth-child(2){stop-color:var(--cnvs-base-palette-orange-200);}linearGradient > stop:nth-child(3){stop-color:var(--cnvs-base-palette-orange-200);}linearGradient > stop:nth-child(4){stop-color:var(--cnvs-base-palette-amber-200);}linearGradient > stop:nth-child(5){stop-color:var(--cnvs-base-palette-amber-300);}}}&:is(:focus-visible, .focus):not(:disabled, .disabled){box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 2px var(--cnvs-sys-color-fg-inverse);border:2px solid var(--cnvs-sys-color-border-ai) ;}" }
|
|
33
33
|
},
|
|
34
34
|
toggled: {
|
|
35
|
-
true: { name: "
|
|
36
|
-
false: { name: "
|
|
35
|
+
true: { name: "11i7et", styles: "--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);transition:box-shadow 300ms ease-out, background 300ms ease-out;box-shadow:0px 0px 4.9px 0px var(--cnvs-base-palette-magenta-200), 0px 0px 0.98px 0px var(--cnvs-base-palette-amber-100), 0px 0px 1.96px 0px var(--cnvs-base-palette-amber-300), 0px 0px 2.94px 0px var(--cnvs-base-palette-amber-300), 0px 0px 4.9px 0px var(--cnvs-base-palette-orange-400), 0px 0px 7.36px 0px var(--cnvs-base-palette-coral-500), 0px 0px 9.81px 0px var(--cnvs-base-palette-magenta-200), 0px 0px 12.26px 0px rgba(255, 194, 253, 0.50);.wd-icon-ai-ingress-button{.wd-icon-fill{transition:fill 300ms ease-out;}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-ai);}}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-ai);}&:is(:focus-visible, .focus):not(:disabled, .disabled){box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 4px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));border:1px solid var(--cnvs-sys-color-border-container) ;}" },
|
|
36
|
+
false: { name: "2sjx5e", styles: "transition:box-shadow 300ms ease-out, background 300ms ease-out;" }
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
compound: [
|
|
40
40
|
{
|
|
41
41
|
modifiers: { toggled: true, variant: 'inverse' },
|
|
42
|
-
styles: { name: "
|
|
42
|
+
styles: { name: "4646fv", styles: "--background-button-f6d2bd:var(--cnvs-sys-color-bg-ai-strongest);.wd-icon-ai-ingress-button{.wd-icon-fill{transition:fill 300ms ease-out;}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-inverse);}}&:is(:focus-visible, .focus):not(:disabled, .disabled){box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 2px var(--cnvs-sys-color-fg-inverse);border:none;}" }
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
}, "a-i-ingress-button-ea1953");
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -15,7 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai-ingress-button"), exports);
|
|
18
|
-
__exportStar(require("./combobox"), exports);
|
|
19
|
-
__exportStar(require("./search-form"), exports);
|
|
20
18
|
__exportStar(require("./side-panel"), exports);
|
|
21
19
|
__exportStar(require("./version"), exports);
|
|
@@ -23,17 +23,17 @@ exports.panelStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
23
23
|
expandedWidth: '',
|
|
24
24
|
collapsedWidth: '',
|
|
25
25
|
},
|
|
26
|
-
base: { name: "
|
|
26
|
+
base: { name: "3j4a2z", styles: "box-sizing:border-box;overflow:hidden;position:relative;height:100%;outline:0.0625rem solid transparent;transition:width ease-out 200ms, max-width ease-out 200ms;" },
|
|
27
27
|
modifiers: {
|
|
28
28
|
variant: {
|
|
29
|
-
alternate: { name: "
|
|
30
|
-
standard: { name: "
|
|
29
|
+
alternate: { name: "sc829", styles: "background-color:var(--cnvs-sys-color-bg-default);box-shadow:var(--cnvs-sys-depth-5);" },
|
|
30
|
+
standard: { name: "1i5qvp", styles: "background-color:var(--cnvs-sys-color-bg-alt-softer);" }
|
|
31
31
|
},
|
|
32
32
|
expanded: {
|
|
33
|
-
expanded: { name: "
|
|
34
|
-
collapsed: { name: "
|
|
35
|
-
expanding: { name: "
|
|
36
|
-
collapsing: { name: "
|
|
33
|
+
expanded: { name: "3pbz8d", styles: "width:var(--expandedWidth-panel-46751f);max-width:var(--expandedWidth-panel-46751f);" },
|
|
34
|
+
collapsed: { name: "30zh0u", styles: "width:var(--collapsedWidth-panel-46751f);max-width:var(--collapsedWidth-panel-46751f);" },
|
|
35
|
+
expanding: { name: "2thsg1", styles: "width:var(--expandedWidth-panel-46751f);max-width:var(--expandedWidth-panel-46751f);" },
|
|
36
|
+
collapsing: { name: "3kumc", styles: "width:var(--collapsedWidth-panel-46751f);max-width:var(--collapsedWidth-panel-46751f);" }
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}, "panel-46751f");
|
|
@@ -10,35 +10,35 @@ const useSidePanelModel_1 = require("./useSidePanelModel");
|
|
|
10
10
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
11
11
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
12
12
|
exports.sidePanelToggleButtonStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "40bcds", styles: "box-sizing:border-box;position:absolute;top:var(--cnvs-sys-space-x6);width:var(--cnvs-sys-space-x8);inset-inline-end:var(--cnvs-sys-space-x4);" },
|
|
14
14
|
modifiers: {
|
|
15
15
|
state: {
|
|
16
|
-
collapsing: { name: "
|
|
17
|
-
collapsed: { name: "
|
|
18
|
-
expanded: { name: "
|
|
19
|
-
expanding: { name: "
|
|
16
|
+
collapsing: { name: "2k2508", styles: "margin:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
17
|
+
collapsed: { name: "2otu7j", styles: "margin:auto;inset-inline-start:0;inset-inline-end:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
18
|
+
expanded: { name: "866oj", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" },
|
|
19
|
+
expanding: { name: "3777ps", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" }
|
|
20
20
|
},
|
|
21
21
|
origin: {
|
|
22
|
-
start: { name: "
|
|
23
|
-
end: { name: "
|
|
22
|
+
start: { name: "20z40y", styles: "" },
|
|
23
|
+
end: { name: "2m9wck", styles: "transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" }
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
compound: [
|
|
27
27
|
{
|
|
28
28
|
modifiers: { state: 'collapsed', origin: 'end' },
|
|
29
|
-
styles: { name: "
|
|
29
|
+
styles: { name: "2l5kng", styles: "transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" }
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
modifiers: { state: 'collapsing', origin: 'end' },
|
|
33
|
-
styles: { name: "
|
|
33
|
+
styles: { name: "2kglao", styles: "transform:scaleX(-1);inset-inline-start:var(--cnvs-sys-space-x4);:dir(rtl){transform:scaleX(1);inset-inline-end:var(--cnvs-sys-space-x4);}" }
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
modifiers: { state: 'expanded', origin: 'end' },
|
|
37
|
-
styles: { name: "
|
|
37
|
+
styles: { name: "17i1p9", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);:dir(rtl){transform:scaleX(-1);inset-inline-end:var(--cnvs-sys-space-x4);}" }
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
modifiers: { state: 'expanding', origin: 'end' },
|
|
41
|
-
styles: { name: "
|
|
41
|
+
styles: { name: "2efjjb", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);:dir(rtl){transform:scaleX(-1);inset-inline-end:var(--cnvs-sys-space-x4);}" }
|
|
42
42
|
}
|
|
43
43
|
]
|
|
44
44
|
}, "side-panel-toggle-button-2c790f");
|
|
@@ -23,20 +23,20 @@ const glowHappyHour = base.orange400; //'#FD7E00';
|
|
|
23
23
|
const glowThumbtack = base.coral500; //'#FC5B05';
|
|
24
24
|
export const AIIngressButtonStencil = createStencil({
|
|
25
25
|
extends: buttonStencil,
|
|
26
|
-
base: { name: "
|
|
26
|
+
base: { name: "2sli0n", styles: "box-sizing:border-box;--background-button-f6d2bd:var(--cnvs-sys-color-bg-ai-strongest);border-radius:var(--cnvs-sys-shape-round);height:calc(var(--cnvs-sys-space-x10) + var(--cnvs-sys-space-x1));width:calc(var(--cnvs-sys-space-x10) + var(--cnvs-sys-space-x1));transition:box-shadow 300ms ease-out, background 300ms ease-out;.wd-icon-ai-ingress-button{.wd-icon-fill{transition:fill 300ms ease-out;}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-inverse);}}&:is(:hover, .hover):not(:disabled, .disabled){.wd-icon-ai-ingress-button{linearGradient > stop:first-child{stop-color:var(--cnvs-base-palette-red-200);}linearGradient > stop:nth-child(2){stop-color:var(--cnvs-base-palette-orange-200);}linearGradient > stop:nth-child(3){stop-color:var(--cnvs-base-palette-orange-200);}linearGradient > stop:nth-child(4){stop-color:var(--cnvs-base-palette-amber-200);}linearGradient > stop:nth-child(5){stop-color:var(--cnvs-base-palette-amber-300);}}}&:disabled, &:disabled:active, &.disabled{opacity:var(--cnvs-sys-opacity-disabled);}&:is(:focus-visible, .focus):not(:disabled, .disabled){box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 2px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}" },
|
|
27
27
|
modifiers: {
|
|
28
28
|
variant: {
|
|
29
|
-
inverse: { name: "
|
|
29
|
+
inverse: { name: "3xbojx", styles: "--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);.wd-icon-ai-ingress-button{.wd-icon-fill{transition:fill 300ms ease-out;}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-ai);}}&:is(:hover, .hover):not(:disabled, .disabled){.wd-icon-ai-ingress-button{linearGradient > stop:first-child{stop-color:var(--cnvs-base-palette-red-200);}linearGradient > stop:nth-child(2){stop-color:var(--cnvs-base-palette-orange-200);}linearGradient > stop:nth-child(3){stop-color:var(--cnvs-base-palette-orange-200);}linearGradient > stop:nth-child(4){stop-color:var(--cnvs-base-palette-amber-200);}linearGradient > stop:nth-child(5){stop-color:var(--cnvs-base-palette-amber-300);}}}&:is(:focus-visible, .focus):not(:disabled, .disabled){box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 2px var(--cnvs-sys-color-fg-inverse);border:2px solid var(--cnvs-sys-color-border-ai) ;}" }
|
|
30
30
|
},
|
|
31
31
|
toggled: {
|
|
32
|
-
true: { name: "
|
|
33
|
-
false: { name: "
|
|
32
|
+
true: { name: "11i7et", styles: "--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);transition:box-shadow 300ms ease-out, background 300ms ease-out;box-shadow:0px 0px 4.9px 0px var(--cnvs-base-palette-magenta-200), 0px 0px 0.98px 0px var(--cnvs-base-palette-amber-100), 0px 0px 1.96px 0px var(--cnvs-base-palette-amber-300), 0px 0px 2.94px 0px var(--cnvs-base-palette-amber-300), 0px 0px 4.9px 0px var(--cnvs-base-palette-orange-400), 0px 0px 7.36px 0px var(--cnvs-base-palette-coral-500), 0px 0px 9.81px 0px var(--cnvs-base-palette-magenta-200), 0px 0px 12.26px 0px rgba(255, 194, 253, 0.50);.wd-icon-ai-ingress-button{.wd-icon-fill{transition:fill 300ms ease-out;}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-ai);}}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-ai);}&:is(:focus-visible, .focus):not(:disabled, .disabled){box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 4px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));border:1px solid var(--cnvs-sys-color-border-container) ;}" },
|
|
33
|
+
false: { name: "2sjx5e", styles: "transition:box-shadow 300ms ease-out, background 300ms ease-out;" }
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
compound: [
|
|
37
37
|
{
|
|
38
38
|
modifiers: { toggled: true, variant: 'inverse' },
|
|
39
|
-
styles: { name: "
|
|
39
|
+
styles: { name: "4646fv", styles: "--background-button-f6d2bd:var(--cnvs-sys-color-bg-ai-strongest);.wd-icon-ai-ingress-button{.wd-icon-fill{transition:fill 300ms ease-out;}> linearGradient > stop{transition:300ms ease-out;stop-color:var(--cnvs-sys-color-fg-inverse);}}&:is(:focus-visible, .focus):not(:disabled, .disabled){box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 2px var(--cnvs-sys-color-fg-inverse);border:none;}" }
|
|
40
40
|
}
|
|
41
41
|
]
|
|
42
42
|
}, "a-i-ingress-button-ea1953");
|
package/dist/es6/index.d.ts
CHANGED
package/dist/es6/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
package/dist/es6/index.js
CHANGED
|
@@ -20,17 +20,17 @@ export const panelStencil = createStencil({
|
|
|
20
20
|
expandedWidth: '',
|
|
21
21
|
collapsedWidth: '',
|
|
22
22
|
},
|
|
23
|
-
base: { name: "
|
|
23
|
+
base: { name: "3j4a2z", styles: "box-sizing:border-box;overflow:hidden;position:relative;height:100%;outline:0.0625rem solid transparent;transition:width ease-out 200ms, max-width ease-out 200ms;" },
|
|
24
24
|
modifiers: {
|
|
25
25
|
variant: {
|
|
26
|
-
alternate: { name: "
|
|
27
|
-
standard: { name: "
|
|
26
|
+
alternate: { name: "sc829", styles: "background-color:var(--cnvs-sys-color-bg-default);box-shadow:var(--cnvs-sys-depth-5);" },
|
|
27
|
+
standard: { name: "1i5qvp", styles: "background-color:var(--cnvs-sys-color-bg-alt-softer);" }
|
|
28
28
|
},
|
|
29
29
|
expanded: {
|
|
30
|
-
expanded: { name: "
|
|
31
|
-
collapsed: { name: "
|
|
32
|
-
expanding: { name: "
|
|
33
|
-
collapsing: { name: "
|
|
30
|
+
expanded: { name: "3pbz8d", styles: "width:var(--expandedWidth-panel-46751f);max-width:var(--expandedWidth-panel-46751f);" },
|
|
31
|
+
collapsed: { name: "30zh0u", styles: "width:var(--collapsedWidth-panel-46751f);max-width:var(--collapsedWidth-panel-46751f);" },
|
|
32
|
+
expanding: { name: "2thsg1", styles: "width:var(--expandedWidth-panel-46751f);max-width:var(--expandedWidth-panel-46751f);" },
|
|
33
|
+
collapsing: { name: "3kumc", styles: "width:var(--collapsedWidth-panel-46751f);max-width:var(--collapsedWidth-panel-46751f);" }
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}, "panel-46751f");
|
|
@@ -7,35 +7,35 @@ import { useSidePanelModel } from './useSidePanelModel';
|
|
|
7
7
|
import { createStencil, handleCsProp } from '@workday/canvas-kit-styling';
|
|
8
8
|
import { system } from '@workday/canvas-tokens-web';
|
|
9
9
|
export const sidePanelToggleButtonStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "40bcds", styles: "box-sizing:border-box;position:absolute;top:var(--cnvs-sys-space-x6);width:var(--cnvs-sys-space-x8);inset-inline-end:var(--cnvs-sys-space-x4);" },
|
|
11
11
|
modifiers: {
|
|
12
12
|
state: {
|
|
13
|
-
collapsing: { name: "
|
|
14
|
-
collapsed: { name: "
|
|
15
|
-
expanded: { name: "
|
|
16
|
-
expanding: { name: "
|
|
13
|
+
collapsing: { name: "2k2508", styles: "margin:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
14
|
+
collapsed: { name: "2otu7j", styles: "margin:auto;inset-inline-start:0;inset-inline-end:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
15
|
+
expanded: { name: "866oj", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" },
|
|
16
|
+
expanding: { name: "3777ps", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" }
|
|
17
17
|
},
|
|
18
18
|
origin: {
|
|
19
|
-
start: { name: "
|
|
20
|
-
end: { name: "
|
|
19
|
+
start: { name: "20z40y", styles: "" },
|
|
20
|
+
end: { name: "2m9wck", styles: "transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" }
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
compound: [
|
|
24
24
|
{
|
|
25
25
|
modifiers: { state: 'collapsed', origin: 'end' },
|
|
26
|
-
styles: { name: "
|
|
26
|
+
styles: { name: "2l5kng", styles: "transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" }
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
modifiers: { state: 'collapsing', origin: 'end' },
|
|
30
|
-
styles: { name: "
|
|
30
|
+
styles: { name: "2kglao", styles: "transform:scaleX(-1);inset-inline-start:var(--cnvs-sys-space-x4);:dir(rtl){transform:scaleX(1);inset-inline-end:var(--cnvs-sys-space-x4);}" }
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
modifiers: { state: 'expanded', origin: 'end' },
|
|
34
|
-
styles: { name: "
|
|
34
|
+
styles: { name: "17i1p9", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);:dir(rtl){transform:scaleX(-1);inset-inline-end:var(--cnvs-sys-space-x4);}" }
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
modifiers: { state: 'expanding', origin: 'end' },
|
|
38
|
-
styles: { name: "
|
|
38
|
+
styles: { name: "2efjjb", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);:dir(rtl){transform:scaleX(-1);inset-inline-end:var(--cnvs-sys-space-x4);}" }
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
}, "side-panel-toggle-button-2c790f");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '14.2.
|
|
1
|
+
export const version = '14.2.2';
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-labs-react",
|
|
3
|
-
"version": "15.0.0-alpha.
|
|
3
|
+
"version": "15.0.0-alpha.0075-next.0",
|
|
4
4
|
"description": "Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functionality. The Labs modules allow us to do that as needed.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"@emotion/styled": "^11.6.0",
|
|
51
|
-
"@workday/canvas-kit-react": "^15.0.0-alpha.
|
|
52
|
-
"@workday/canvas-kit-styling": "^15.0.0-alpha.
|
|
51
|
+
"@workday/canvas-kit-react": "^15.0.0-alpha.0075-next.0",
|
|
52
|
+
"@workday/canvas-kit-styling": "^15.0.0-alpha.0075-next.0",
|
|
53
53
|
"@workday/canvas-system-icons-web": "^3.0.36",
|
|
54
54
|
"@workday/canvas-tokens-web": "4.0.0-alpha.3",
|
|
55
55
|
"@workday/design-assets-types": "^0.2.10",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/lodash.flatten": "^4.4.6"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "85c5dfa329d29263f96a49be74ef55f551990c7b"
|
|
64
64
|
}
|
package/combobox/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/Combobox';
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import React, {Fragment, useState} from 'react';
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
import {space} from '@workday/canvas-kit-react/tokens';
|
|
4
|
-
import {accessibleHide, generateUniqueId} from '@workday/canvas-kit-react/common';
|
|
5
|
-
import {ComboBoxMenuItemGroup, getOptionId, listBoxIdPart, getTextFromElement} from './Combobox';
|
|
6
|
-
|
|
7
|
-
const Autocomplete = styled('ul')({
|
|
8
|
-
margin: 0,
|
|
9
|
-
maxHeight: 200,
|
|
10
|
-
boxSizing: 'border-box',
|
|
11
|
-
overflowY: 'auto',
|
|
12
|
-
padding: `${space.xxs} 0`,
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
const AccessibleHide = styled('span')(accessibleHide);
|
|
16
|
-
|
|
17
|
-
interface AutocompleteListProps {
|
|
18
|
-
/**
|
|
19
|
-
* The autocomplete items of the Combobox. This array of menu items is shown under the text input.
|
|
20
|
-
*/
|
|
21
|
-
autocompleteItems: React.ReactElement<any>[] | ComboBoxMenuItemGroup[];
|
|
22
|
-
/**
|
|
23
|
-
* Index of the active autocomplete item
|
|
24
|
-
*/
|
|
25
|
-
selectedIndex: number | null;
|
|
26
|
-
/**
|
|
27
|
-
* The function called when an autocomplete item is selected
|
|
28
|
-
*/
|
|
29
|
-
handleAutocompleteClick: (
|
|
30
|
-
event: React.SyntheticEvent<Element, Event>,
|
|
31
|
-
menuItemProps: any
|
|
32
|
-
) => void;
|
|
33
|
-
/**
|
|
34
|
-
* The id of the form field.
|
|
35
|
-
*/
|
|
36
|
-
labelId: string;
|
|
37
|
-
/**
|
|
38
|
-
* The id of the combobox.
|
|
39
|
-
*/
|
|
40
|
-
comboboxId: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* True when group changes via keyboard control
|
|
44
|
-
*/
|
|
45
|
-
showGroupText: boolean;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated ⚠️ `AutocompleteList` in Labs has been deprecated and will be removed in a future major version. Please use [`Combobox` in Main](https://workday.github.io/canvas-kit/?path=/docs/features-combobox--docs) instead.
|
|
50
|
-
*/
|
|
51
|
-
export const AutocompleteList = ({
|
|
52
|
-
autocompleteItems,
|
|
53
|
-
comboboxId,
|
|
54
|
-
selectedIndex,
|
|
55
|
-
handleAutocompleteClick,
|
|
56
|
-
labelId,
|
|
57
|
-
showGroupText,
|
|
58
|
-
}: AutocompleteListProps) => {
|
|
59
|
-
const [randomComponentId] = useState(generateUniqueId); // https://codesandbox.io/s/p2ndq
|
|
60
|
-
|
|
61
|
-
const componentId = comboboxId || randomComponentId;
|
|
62
|
-
|
|
63
|
-
const listBoxProps = {
|
|
64
|
-
role: 'listbox',
|
|
65
|
-
id: `${componentId}-${listBoxIdPart}`,
|
|
66
|
-
'aria-labelledby': labelId,
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const createListItem = (
|
|
70
|
-
listboxItem: React.ReactElement<any>,
|
|
71
|
-
itemIndex: number,
|
|
72
|
-
groupMessage?: string
|
|
73
|
-
) => {
|
|
74
|
-
const children = [
|
|
75
|
-
<AccessibleHide key={`group-message-${itemIndex}`}>{groupMessage}</AccessibleHide>,
|
|
76
|
-
...React.Children.toArray(listboxItem.props.children),
|
|
77
|
-
];
|
|
78
|
-
|
|
79
|
-
return (
|
|
80
|
-
<Fragment key={itemIndex}>
|
|
81
|
-
{React.cloneElement(listboxItem, {
|
|
82
|
-
children: children,
|
|
83
|
-
id: getOptionId(componentId, itemIndex),
|
|
84
|
-
role: 'option',
|
|
85
|
-
isFocused: selectedIndex === itemIndex,
|
|
86
|
-
'aria-selected': selectedIndex === itemIndex ? true : undefined,
|
|
87
|
-
onMouseDown: (event: React.MouseEvent) => {
|
|
88
|
-
// prevent focus from shifting away from the the combobox
|
|
89
|
-
event.preventDefault();
|
|
90
|
-
},
|
|
91
|
-
onClick: (event: React.MouseEvent) => {
|
|
92
|
-
event.preventDefault();
|
|
93
|
-
handleAutocompleteClick(event, listboxItem.props);
|
|
94
|
-
},
|
|
95
|
-
})}
|
|
96
|
-
</Fragment>
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
if (!autocompleteItems.length) {
|
|
101
|
-
return null;
|
|
102
|
-
} else if (autocompleteItems[0].hasOwnProperty('header')) {
|
|
103
|
-
let itemIndex = 0;
|
|
104
|
-
return (
|
|
105
|
-
<Autocomplete {...listBoxProps}>
|
|
106
|
-
{(autocompleteItems as ComboBoxMenuItemGroup[]).map(({header, items}, groupIndex) => {
|
|
107
|
-
const groupLabel = `itemGroup-${componentId}-${groupIndex}`;
|
|
108
|
-
return (
|
|
109
|
-
<Fragment key={groupLabel}>
|
|
110
|
-
{React.cloneElement(header, {
|
|
111
|
-
role: 'presentation',
|
|
112
|
-
style: {pointerEvents: `none`},
|
|
113
|
-
})}
|
|
114
|
-
{items.map((listboxItem: React.ReactElement) => {
|
|
115
|
-
const headerName = getTextFromElement(header);
|
|
116
|
-
const groupMessage = showGroupText
|
|
117
|
-
? `Entering group ${headerName}, with ${items.length} options.`
|
|
118
|
-
: undefined;
|
|
119
|
-
const item = createListItem(listboxItem, itemIndex, groupMessage);
|
|
120
|
-
itemIndex++;
|
|
121
|
-
return item;
|
|
122
|
-
})}
|
|
123
|
-
</Fragment>
|
|
124
|
-
);
|
|
125
|
-
})}
|
|
126
|
-
</Autocomplete>
|
|
127
|
-
);
|
|
128
|
-
} else {
|
|
129
|
-
return (
|
|
130
|
-
<Autocomplete {...listBoxProps}>
|
|
131
|
-
{(autocompleteItems as React.ReactElement<any>[]).map(
|
|
132
|
-
(listboxItem: React.ReactElement, index: number) => createListItem(listboxItem, index)
|
|
133
|
-
)}
|
|
134
|
-
</Autocomplete>
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
};
|