@workday/canvas-kit-preview-react 16.2.15 → 16.2.16
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/color-picker/lib/ColorPicker.js +1 -1
- package/dist/commonjs/color-picker/lib/parts/ColorReset.js +1 -1
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +1 -1
- package/dist/commonjs/divider/lib/Divider.js +3 -3
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.js +2 -2
- package/dist/commonjs/multi-select/lib/MultiSelect.d.ts +50 -0
- package/dist/commonjs/multi-select/lib/MultiSelect.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectCard.d.ts +2 -0
- package/dist/commonjs/multi-select/lib/MultiSelectCard.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectInput.d.ts +4 -1
- package/dist/commonjs/multi-select/lib/MultiSelectInput.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectInput.js +7 -7
- package/dist/commonjs/multi-select/lib/MultiSelectItem.d.ts +2 -0
- package/dist/commonjs/multi-select/lib/MultiSelectItem.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectedItem.d.ts +4 -3
- package/dist/commonjs/multi-select/lib/MultiSelectedItem.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectedItem.js +2 -6
- package/dist/commonjs/multi-select/lib/MultiSelectedList.d.ts +1 -0
- package/dist/commonjs/multi-select/lib/MultiSelectedList.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectedList.js +2 -2
- package/dist/commonjs/multi-select/lib/useMultiSelectItemRemove.d.ts +2 -0
- package/dist/commonjs/multi-select/lib/useMultiSelectItemRemove.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/useMultiSelectItemRemove.js +6 -2
- package/dist/commonjs/multi-select/lib/useMultiSelectModel.d.ts +49 -0
- package/dist/commonjs/multi-select/lib/useMultiSelectModel.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/useMultiSelectModel.js +5 -2
- 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 +3 -3
- package/dist/commonjs/radio/lib/StyledRadioButton.js +5 -5
- package/dist/commonjs/side-panel/lib/SidePanel.js +7 -7
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +11 -11
- package/dist/commonjs/status-indicator/lib/StatusIndicator.js +14 -14
- package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/dist/commonjs/switch/lib/SwitchBackground.js +1 -1
- package/dist/commonjs/switch/lib/SwitchCircle.js +2 -2
- package/dist/commonjs/switch/lib/SwitchContainer.js +1 -1
- package/dist/commonjs/switch/lib/SwitchIcon.js +2 -2
- package/dist/commonjs/switch/lib/SwitchInput.js +3 -3
- package/dist/commonjs/tabs/lib/TabsItem.js +3 -3
- package/dist/commonjs/tabs/lib/TabsList.js +8 -8
- package/dist/commonjs/tabs/lib/TabsOverflowButton.js +1 -1
- package/dist/commonjs/version/lib/version.js +1 -1
- package/dist/es6/color-picker/lib/ColorPicker.js +1 -1
- package/dist/es6/color-picker/lib/parts/ColorReset.js +1 -1
- package/dist/es6/color-picker/lib/parts/SwatchBook.js +1 -1
- package/dist/es6/divider/lib/Divider.js +3 -3
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.js +2 -2
- package/dist/es6/multi-select/lib/MultiSelect.d.ts +50 -0
- package/dist/es6/multi-select/lib/MultiSelect.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectCard.d.ts +2 -0
- package/dist/es6/multi-select/lib/MultiSelectCard.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectInput.d.ts +4 -1
- package/dist/es6/multi-select/lib/MultiSelectInput.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectInput.js +7 -7
- package/dist/es6/multi-select/lib/MultiSelectItem.d.ts +2 -0
- package/dist/es6/multi-select/lib/MultiSelectItem.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectedItem.d.ts +4 -3
- package/dist/es6/multi-select/lib/MultiSelectedItem.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectedItem.js +3 -7
- package/dist/es6/multi-select/lib/MultiSelectedList.d.ts +1 -0
- package/dist/es6/multi-select/lib/MultiSelectedList.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectedList.js +2 -2
- package/dist/es6/multi-select/lib/useMultiSelectItemRemove.d.ts +2 -0
- package/dist/es6/multi-select/lib/useMultiSelectItemRemove.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/useMultiSelectItemRemove.js +6 -2
- package/dist/es6/multi-select/lib/useMultiSelectModel.d.ts +49 -0
- package/dist/es6/multi-select/lib/useMultiSelectModel.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/useMultiSelectModel.js +5 -2
- 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 +3 -3
- package/dist/es6/radio/lib/StyledRadioButton.js +5 -5
- package/dist/es6/side-panel/lib/SidePanel.js +7 -7
- package/dist/es6/side-panel/lib/SidePanelToggleButton.js +11 -11
- package/dist/es6/status-indicator/lib/StatusIndicator.js +14 -14
- package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/dist/es6/switch/lib/SwitchBackground.js +1 -1
- package/dist/es6/switch/lib/SwitchCircle.js +2 -2
- package/dist/es6/switch/lib/SwitchContainer.js +1 -1
- package/dist/es6/switch/lib/SwitchIcon.js +2 -2
- package/dist/es6/switch/lib/SwitchInput.js +3 -3
- package/dist/es6/tabs/lib/TabsItem.js +3 -3
- package/dist/es6/tabs/lib/TabsList.js +8 -8
- package/dist/es6/tabs/lib/TabsOverflowButton.js +1 -1
- package/dist/es6/version/lib/version.js +1 -1
- package/multi-select/lib/MultiSelectInput.tsx +18 -3
- package/multi-select/lib/MultiSelectedItem.tsx +1 -7
- package/multi-select/lib/MultiSelectedList.tsx +7 -3
- package/multi-select/lib/useMultiSelectItemRemove.ts +6 -2
- package/multi-select/lib/useMultiSelectModel.ts +6 -2
- package/package.json +4 -4
|
@@ -42,7 +42,7 @@ exports.colorPickerStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
42
42
|
hexInput: 'color-picker-hex-input',
|
|
43
43
|
inputWrapper: 'color-picker-input-wrapper',
|
|
44
44
|
},
|
|
45
|
-
base: { name: "
|
|
45
|
+
base: { name: "2t04ec", styles: "box-sizing:border-box;width:13.5rem;[data-part=\"color-picker-form\"]{width:100%;display:flex;flex-direction:row;justify-content:space-between;margin-block-start:var(--cnvs-sys-gap-md, var(--cnvs-sys-space-x4, 1rem));}[data-part=\"color-picker-input-wrapper\"]{display:flex;flex-direction:column;margin:0;}[data-part=\"color-picker-button\"]{align-self:flex-end;}[data-part=\"color-picker-hex-input\"]{width:10.5rem;}" }
|
|
46
46
|
}, "color-picker-a530b2");
|
|
47
47
|
const isCustomColor = (colors, hexCode) => {
|
|
48
48
|
if (!hexCode) {
|
|
@@ -11,7 +11,7 @@ exports.resetButtonStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
11
11
|
parts: {
|
|
12
12
|
label: 'reset-button-label',
|
|
13
13
|
},
|
|
14
|
-
base: { name: "
|
|
14
|
+
base: { name: "86bgm", styles: "box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;width:calc(100% + var(--cnvs-sys-size-sm, var(--cnvs-sys-space-x8, 2rem)));height:var(--cnvs-sys-size-sm, var(--cnvs-sys-space-x8, 2rem));margin:calc(var(--cnvs-base-size-100, 0.5rem) * -1) calc(var(--cnvs-sys-size-xxxs, var(--cnvs-sys-space-x4, 1rem)) * -1) var(--cnvs-base-size-100, 0.5rem);padding:0 var(--cnvs-sys-padding-md, var(--cnvs-sys-space-x4, 1rem));white-space:nowrap;border:none;outline:none;background:none;cursor:pointer;transition:color 120ms ease, background-color 120ms ease;&:hover, &.hover{background-color:var(--cnvs-sys-color-bg-alt-default);}&:active, &.active{background-color:var(--cnvs-sys-color-surface-default, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));}&:focus-visible, &.focus{box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse-default, var(--cnvs-base-palette-neutral-0)), 0 0 0 2px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}[data-part=\"reset-button-label\"]{margin-inline-start:var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem));}" }
|
|
15
15
|
}, "reset-button-531e85");
|
|
16
16
|
const ResetButton = ({ onClick, resetColor, label }) => {
|
|
17
17
|
const handleResetColor = () => onClick(resetColor);
|
|
@@ -13,7 +13,7 @@ const colorPickerSwatchBookStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
13
13
|
parts: {
|
|
14
14
|
tile: 'color-picker-swatch-book-tile',
|
|
15
15
|
},
|
|
16
|
-
base: { name: "
|
|
16
|
+
base: { name: "5staa", styles: "--shadow-color-picker-swatch-book-915ea6:var(--cnvs-sys-color-border-inverse-default, var(--cnvs-sys-color-border-inverse, oklch(1 0 0 / 1))) 0 0 0 0.125rem, var(--cnvs-sys-color-border-input-default) 0 0 0 0.1875rem;box-sizing:border-box;display:flex;flex-wrap:wrap;margin:0 calc(var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem)) * -1) calc(var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem)) * -1) 0;[data-part=\"color-picker-swatch-book-tile\"]{display:flex;width:var(--cnvs-sys-size-xxs, var(--cnvs-sys-space-x5, 1.25rem));height:var(--cnvs-sys-size-xxs, var(--cnvs-sys-space-x5, 1.25rem));cursor:pointer;border-radius:var(--cnvs-sys-shape-sm, var(--cnvs-sys-shape-x1, 0.25rem));transition:box-shadow 120ms ease;margin:0px var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem)) var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem)) 0px;&:hover{box-shadow:var(--shadow-color-picker-swatch-book-915ea6);}&:focus-visible{outline:none;box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse-default, var(--cnvs-base-palette-neutral-0)), 0 0 0 4px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}&[aria-selected=\"true\"]{box-shadow:var(--shadow-color-picker-swatch-book-915ea6);&:focus-visible{animation:none;box-shadow:none;}&:hover{box-shadow:var(--shadow-color-picker-swatch-book-915ea6);}}}" }
|
|
17
17
|
}, "color-picker-swatch-book-915ea6");
|
|
18
18
|
const SwatchBook = ({ colors, value, onSelect }) => {
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)("div", { ...colorPickerSwatchBookStencil(), children: colors.map((color, index) => {
|
|
@@ -9,7 +9,7 @@ exports.dividerStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
9
9
|
vars: {
|
|
10
10
|
space: '',
|
|
11
11
|
},
|
|
12
|
-
base: { name: "
|
|
12
|
+
base: { name: "2n39y0", styles: "box-sizing:border-box;border:none;" },
|
|
13
13
|
modifiers: {
|
|
14
14
|
/**
|
|
15
15
|
* Sets the orientation of the `Divider`.
|
|
@@ -21,8 +21,8 @@ exports.dividerStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
21
21
|
* @default 'horizontal'
|
|
22
22
|
*/
|
|
23
23
|
orientation: {
|
|
24
|
-
horizontal: { name: "
|
|
25
|
-
vertical: { name: "
|
|
24
|
+
horizontal: { name: "3kqtqi", styles: "display:block;height:0.0625rem;border-block-start:1px solid var(--cnvs-sys-color-border-default, var(--cnvs-sys-color-border-divider, oklch(0.3057 0.079 256.22 / 0.13)));margin:calc(var(--space-divider-a2c50d, var(--cnvs-sys-gap-xs, var(--cnvs-sys-space-x1, 0.25rem))) / 2) 0;" },
|
|
25
|
+
vertical: { name: "3i5nci", styles: "display:inline-block;align-self:stretch;width:0.0625rem;height:auto;border-inline-start:1px solid var(--cnvs-sys-color-border-default, var(--cnvs-sys-color-border-divider, oklch(0.3057 0.079 256.22 / 0.13)));margin:0 calc(var(--space-divider-a2c50d, var(--cnvs-sys-gap-xs, var(--cnvs-sys-space-x1, 0.25rem))) / 2);" }
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}, "divider-a2c50d");
|
|
@@ -14,7 +14,7 @@ const ANIMATION_DURATION_MS = 1230;
|
|
|
14
14
|
/**
|
|
15
15
|
* The animation for the sparkle.
|
|
16
16
|
*/
|
|
17
|
-
const LOADING_ANIMATION = (0, canvas_kit_styling_1.keyframes)({ name: "
|
|
17
|
+
const LOADING_ANIMATION = (0, canvas_kit_styling_1.keyframes)({ name: "393r84", 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);}" });
|
|
18
18
|
/**
|
|
19
19
|
* An individual loading sparkle. ✨
|
|
20
20
|
*/
|
|
@@ -22,7 +22,7 @@ const Sparkle = () => {
|
|
|
22
22
|
return (0, jsx_runtime_1.jsx)(icon_1.SystemIcon, { "data-part": "sparkle", icon: sparkleIcon_1.sparkleIcon, size: (0, canvas_kit_styling_1.px2rem)(12) });
|
|
23
23
|
};
|
|
24
24
|
exports.loadingSparklesStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
25
|
-
base: { name: "
|
|
25
|
+
base: { name: "4fskmd", styles: "box-sizing:border-box;display:inline-flex;gap:0.0625rem;& [data-part=\"sparkle\"]{animation-duration:1230ms;animation-fill-mode:both;animation-iteration-count:infinite;animation-name:animation-393r84;animation-timing-function:ease-in-out;--color-system-icon-c9acc3:var(--cnvs-sys-color-fg-ai);&:nth-child(1){animation-delay:0ms;}&:nth-child(2){animation-delay:calc(1230ms * (1/3));}&:nth-child(3){animation-delay:calc(1230ms * (2/3));}}" }
|
|
26
26
|
}, "loading-sparkles-9c48ef");
|
|
27
27
|
/**
|
|
28
28
|
* A simple component that displays three horizontal sparkles, to be used when an AI operation is in progress.
|
|
@@ -87,6 +87,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
87
87
|
onChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
88
88
|
}> & {
|
|
89
89
|
onSetWidth?: ((data: number, prevState: {
|
|
90
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
90
91
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
91
92
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
92
93
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -118,6 +119,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
118
119
|
onUpdatePlacement?: ((data: {
|
|
119
120
|
placement: import("@popperjs/core").Placement;
|
|
120
121
|
}, prevState: {
|
|
122
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
121
123
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
122
124
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
123
125
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -147,6 +149,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
147
149
|
width: number;
|
|
148
150
|
}) => void) | undefined;
|
|
149
151
|
onShow?: ((data: Event | React.SyntheticEvent<Element, Event> | undefined, prevState: {
|
|
152
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
150
153
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
151
154
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
152
155
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -176,6 +179,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
176
179
|
width: number;
|
|
177
180
|
}) => void) | undefined;
|
|
178
181
|
onHide?: ((data: Event | React.SyntheticEvent<Element, Event> | undefined, prevState: {
|
|
182
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
179
183
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
180
184
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
181
185
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -207,6 +211,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
207
211
|
onSelect?: ((data: {
|
|
208
212
|
id: string;
|
|
209
213
|
}, prevState: {
|
|
214
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
210
215
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
211
216
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
212
217
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -236,6 +241,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
236
241
|
width: number;
|
|
237
242
|
}) => void) | undefined;
|
|
238
243
|
onSelectAll?: ((data: undefined, prevState: {
|
|
244
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
239
245
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
240
246
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
241
247
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -265,6 +271,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
265
271
|
width: number;
|
|
266
272
|
}) => void) | undefined;
|
|
267
273
|
onUnselectAll?: ((data: undefined, prevState: {
|
|
274
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
268
275
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
269
276
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
270
277
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -294,6 +301,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
294
301
|
width: number;
|
|
295
302
|
}) => void) | undefined;
|
|
296
303
|
onSetSelectedIds?: ((data: string[] | "all", prevState: {
|
|
304
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
297
305
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
298
306
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
299
307
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -327,6 +335,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
327
335
|
nextId?: string | undefined;
|
|
328
336
|
event?: Event | React.SyntheticEvent<Element, Event> | undefined;
|
|
329
337
|
}, prevState: {
|
|
338
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
330
339
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
331
340
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
332
341
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -358,6 +367,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
358
367
|
onGoTo?: ((data: {
|
|
359
368
|
id: string;
|
|
360
369
|
}, prevState: {
|
|
370
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
361
371
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
362
372
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
363
373
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -387,6 +397,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
387
397
|
width: number;
|
|
388
398
|
}) => void) | undefined;
|
|
389
399
|
onGoToNext?: ((data: undefined, prevState: {
|
|
400
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
390
401
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
391
402
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
392
403
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -416,6 +427,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
416
427
|
width: number;
|
|
417
428
|
}) => void) | undefined;
|
|
418
429
|
onGoToPrevious?: ((data: undefined, prevState: {
|
|
430
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
419
431
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
420
432
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
421
433
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -445,6 +457,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
445
457
|
width: number;
|
|
446
458
|
}) => void) | undefined;
|
|
447
459
|
onGoToPreviousRow?: ((data: undefined, prevState: {
|
|
460
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
448
461
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
449
462
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
450
463
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -474,6 +487,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
474
487
|
width: number;
|
|
475
488
|
}) => void) | undefined;
|
|
476
489
|
onGoToNextRow?: ((data: undefined, prevState: {
|
|
490
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
477
491
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
478
492
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
479
493
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -503,6 +517,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
503
517
|
width: number;
|
|
504
518
|
}) => void) | undefined;
|
|
505
519
|
onGoToFirst?: ((data: undefined, prevState: {
|
|
520
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
506
521
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
507
522
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
508
523
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -532,6 +547,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
532
547
|
width: number;
|
|
533
548
|
}) => void) | undefined;
|
|
534
549
|
onGoToLast?: ((data: undefined, prevState: {
|
|
550
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
535
551
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
536
552
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
537
553
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -561,6 +577,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
561
577
|
width: number;
|
|
562
578
|
}) => void) | undefined;
|
|
563
579
|
onGoToFirstOfRow?: ((data: undefined, prevState: {
|
|
580
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
564
581
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
565
582
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
566
583
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -590,6 +607,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
590
607
|
width: number;
|
|
591
608
|
}) => void) | undefined;
|
|
592
609
|
onGoToLastOfRow?: ((data: undefined, prevState: {
|
|
610
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
593
611
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
594
612
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
595
613
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -619,6 +637,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
619
637
|
width: number;
|
|
620
638
|
}) => void) | undefined;
|
|
621
639
|
onGoToNextPage?: ((data: undefined, prevState: {
|
|
640
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
622
641
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
623
642
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
624
643
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -648,6 +667,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
648
667
|
width: number;
|
|
649
668
|
}) => void) | undefined;
|
|
650
669
|
onGoToPreviousPage?: ((data: undefined, prevState: {
|
|
670
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
651
671
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
652
672
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
653
673
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -680,6 +700,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
680
700
|
id: string;
|
|
681
701
|
textValue: string;
|
|
682
702
|
}, prevState: {
|
|
703
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
683
704
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
684
705
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
685
706
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -711,6 +732,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
711
732
|
onUnregisterItem?: ((data: {
|
|
712
733
|
id: string;
|
|
713
734
|
}, prevState: {
|
|
735
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
714
736
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
715
737
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
716
738
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -742,6 +764,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
742
764
|
onUpdateItemHeight?: ((data: {
|
|
743
765
|
value: number;
|
|
744
766
|
}, prevState: {
|
|
767
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
745
768
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
746
769
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
747
770
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -772,6 +795,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
772
795
|
}) => void) | undefined;
|
|
773
796
|
} & {
|
|
774
797
|
shouldSetWidth?: ((data: number, state: {
|
|
798
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
775
799
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
776
800
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
777
801
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -803,6 +827,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
803
827
|
shouldUpdatePlacement?: ((data: {
|
|
804
828
|
placement: import("@popperjs/core").Placement;
|
|
805
829
|
}, state: {
|
|
830
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
806
831
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
807
832
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
808
833
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -832,6 +857,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
832
857
|
width: number;
|
|
833
858
|
}) => boolean) | undefined;
|
|
834
859
|
shouldShow?: ((data: Event | React.SyntheticEvent<Element, Event> | undefined, state: {
|
|
860
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
835
861
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
836
862
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
837
863
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -861,6 +887,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
861
887
|
width: number;
|
|
862
888
|
}) => boolean) | undefined;
|
|
863
889
|
shouldHide?: ((data: Event | React.SyntheticEvent<Element, Event> | undefined, state: {
|
|
890
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
864
891
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
865
892
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
866
893
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -892,6 +919,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
892
919
|
shouldSelect?: ((data: {
|
|
893
920
|
id: string;
|
|
894
921
|
}, state: {
|
|
922
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
895
923
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
896
924
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
897
925
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -921,6 +949,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
921
949
|
width: number;
|
|
922
950
|
}) => boolean) | undefined;
|
|
923
951
|
shouldSelectAll?: ((data: undefined, state: {
|
|
952
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
924
953
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
925
954
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
926
955
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -950,6 +979,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
950
979
|
width: number;
|
|
951
980
|
}) => boolean) | undefined;
|
|
952
981
|
shouldUnselectAll?: ((data: undefined, state: {
|
|
982
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
953
983
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
954
984
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
955
985
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -979,6 +1009,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
979
1009
|
width: number;
|
|
980
1010
|
}) => boolean) | undefined;
|
|
981
1011
|
shouldSetSelectedIds?: ((data: string[] | "all", state: {
|
|
1012
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
982
1013
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
983
1014
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
984
1015
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1012,6 +1043,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1012
1043
|
nextId?: string | undefined;
|
|
1013
1044
|
event?: Event | React.SyntheticEvent<Element, Event> | undefined;
|
|
1014
1045
|
}, state: {
|
|
1046
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1015
1047
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1016
1048
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1017
1049
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1043,6 +1075,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1043
1075
|
shouldGoTo?: ((data: {
|
|
1044
1076
|
id: string;
|
|
1045
1077
|
}, state: {
|
|
1078
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1046
1079
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1047
1080
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1048
1081
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1072,6 +1105,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1072
1105
|
width: number;
|
|
1073
1106
|
}) => boolean) | undefined;
|
|
1074
1107
|
shouldGoToNext?: ((data: undefined, state: {
|
|
1108
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1075
1109
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1076
1110
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1077
1111
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1101,6 +1135,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1101
1135
|
width: number;
|
|
1102
1136
|
}) => boolean) | undefined;
|
|
1103
1137
|
shouldGoToPrevious?: ((data: undefined, state: {
|
|
1138
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1104
1139
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1105
1140
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1106
1141
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1130,6 +1165,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1130
1165
|
width: number;
|
|
1131
1166
|
}) => boolean) | undefined;
|
|
1132
1167
|
shouldGoToPreviousRow?: ((data: undefined, state: {
|
|
1168
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1133
1169
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1134
1170
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1135
1171
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1159,6 +1195,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1159
1195
|
width: number;
|
|
1160
1196
|
}) => boolean) | undefined;
|
|
1161
1197
|
shouldGoToNextRow?: ((data: undefined, state: {
|
|
1198
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1162
1199
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1163
1200
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1164
1201
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1188,6 +1225,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1188
1225
|
width: number;
|
|
1189
1226
|
}) => boolean) | undefined;
|
|
1190
1227
|
shouldGoToFirst?: ((data: undefined, state: {
|
|
1228
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1191
1229
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1192
1230
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1193
1231
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1217,6 +1255,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1217
1255
|
width: number;
|
|
1218
1256
|
}) => boolean) | undefined;
|
|
1219
1257
|
shouldGoToLast?: ((data: undefined, state: {
|
|
1258
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1220
1259
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1221
1260
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1222
1261
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1246,6 +1285,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1246
1285
|
width: number;
|
|
1247
1286
|
}) => boolean) | undefined;
|
|
1248
1287
|
shouldGoToFirstOfRow?: ((data: undefined, state: {
|
|
1288
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1249
1289
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1250
1290
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1251
1291
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1275,6 +1315,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1275
1315
|
width: number;
|
|
1276
1316
|
}) => boolean) | undefined;
|
|
1277
1317
|
shouldGoToLastOfRow?: ((data: undefined, state: {
|
|
1318
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1278
1319
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1279
1320
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1280
1321
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1304,6 +1345,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1304
1345
|
width: number;
|
|
1305
1346
|
}) => boolean) | undefined;
|
|
1306
1347
|
shouldGoToNextPage?: ((data: undefined, state: {
|
|
1348
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1307
1349
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1308
1350
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1309
1351
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1333,6 +1375,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1333
1375
|
width: number;
|
|
1334
1376
|
}) => boolean) | undefined;
|
|
1335
1377
|
shouldGoToPreviousPage?: ((data: undefined, state: {
|
|
1378
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1336
1379
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1337
1380
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1338
1381
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1365,6 +1408,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1365
1408
|
id: string;
|
|
1366
1409
|
textValue: string;
|
|
1367
1410
|
}, state: {
|
|
1411
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1368
1412
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1369
1413
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1370
1414
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1396,6 +1440,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1396
1440
|
shouldUnregisterItem?: ((data: {
|
|
1397
1441
|
id: string;
|
|
1398
1442
|
}, state: {
|
|
1443
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1399
1444
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1400
1445
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1401
1446
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1427,6 +1472,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1427
1472
|
shouldUpdateItemHeight?: ((data: {
|
|
1428
1473
|
value: number;
|
|
1429
1474
|
}, state: {
|
|
1475
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1430
1476
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1431
1477
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1432
1478
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1457,6 +1503,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1457
1503
|
}) => boolean) | undefined;
|
|
1458
1504
|
}, {
|
|
1459
1505
|
state: {
|
|
1506
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1460
1507
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1461
1508
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1462
1509
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1782,6 +1829,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
1782
1829
|
ErrorType: typeof import("@workday/canvas-kit-react/common").ErrorType;
|
|
1783
1830
|
}, import("./MultiSelectInput").MultiSelectInputProps, {
|
|
1784
1831
|
state: {
|
|
1832
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
1785
1833
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1786
1834
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
1787
1835
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -2107,6 +2155,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
2107
2155
|
ErrorType: typeof import("@workday/canvas-kit-react/common").ErrorType;
|
|
2108
2156
|
}, import("./MultiSelectInput").MultiSelectInputProps, {
|
|
2109
2157
|
state: {
|
|
2158
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
2110
2159
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
2111
2160
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
2112
2161
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -2625,6 +2674,7 @@ export declare const MultiSelect: import("@workday/canvas-kit-react/common").Com
|
|
|
2625
2674
|
}>;
|
|
2626
2675
|
Card: import("@workday/canvas-kit-react/common").ElementComponentM<"div", import("./MultiSelectCard").MultiSelectCardProps, {
|
|
2627
2676
|
state: {
|
|
2677
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
2628
2678
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
2629
2679
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
2630
2680
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../multi-select/lib/MultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,iBAAiB;CAAG;AAEpE,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../multi-select/lib/MultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,iBAAiB;CAAG;AAEpE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBtB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export interface MultiSelectCardProps extends ExtractProps<typeof Menu.Card> {
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const useMultiSelectCard: import("@workday/canvas-kit-react/common").BehaviorHook<{
|
|
10
10
|
state: {
|
|
11
|
+
searchInputRef: import("react").RefObject<HTMLInputElement>;
|
|
11
12
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
12
13
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
13
14
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -333,6 +334,7 @@ export declare const useMultiSelectCard: import("@workday/canvas-kit-react/commo
|
|
|
333
334
|
}>;
|
|
334
335
|
export declare const MultiSelectCard: import("@workday/canvas-kit-react/common").ElementComponentM<"div", MultiSelectCardProps, {
|
|
335
336
|
state: {
|
|
337
|
+
searchInputRef: import("react").RefObject<HTMLInputElement>;
|
|
336
338
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
337
339
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
338
340
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectCard.d.ts","sourceRoot":"","sources":["../../../../multi-select/lib/MultiSelectCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,gCAAgC,CAAC;AAKpD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC;CAAG;AAE/E;;;GAGG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"MultiSelectCard.d.ts","sourceRoot":"","sources":["../../../../multi-select/lib/MultiSelectCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,gCAAgC,CAAC;AAKpD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC;CAAG;AAE/E;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAC"}
|
|
@@ -77,6 +77,7 @@ export declare const multiSelectStencil: import("@workday/canvas-kit-styling").S
|
|
|
77
77
|
}, never, never>, never>;
|
|
78
78
|
export declare const useMultiSelectInput: import("@workday/canvas-kit-react/common").BehaviorHook<{
|
|
79
79
|
state: {
|
|
80
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
80
81
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
81
82
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
82
83
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -437,13 +438,14 @@ export declare const useMultiSelectInput: import("@workday/canvas-kit-react/comm
|
|
|
437
438
|
readonly ref: (instance: unknown) => void;
|
|
438
439
|
readonly onClick: (event: React.MouseEvent<Element, MouseEvent>) => void;
|
|
439
440
|
}, {}>>>>>>>, import("@workday/canvas-kit-react/common").MergeProps<{}, import("@workday/canvas-kit-react/common").MergeProps<{}, import("@workday/canvas-kit-react/common").MergeProps<{}, {}>>>>>>>>;
|
|
440
|
-
export interface MultiSelectInputProps extends CSProps, Pick<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'className' | 'style' | 'aria-labelledby'>, Pick<MultiSelectedItemProps, 'removeLabel'> {
|
|
441
|
+
export interface MultiSelectInputProps extends CSProps, Pick<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'className' | 'style' | 'aria-label' | 'aria-labelledby'>, Pick<MultiSelectedItemProps, 'removeLabel'> {
|
|
441
442
|
error?: ErrorType;
|
|
442
443
|
}
|
|
443
444
|
export declare const MultiSelectInput: import("@workday/canvas-kit-react/common").ElementComponentM<import("@workday/canvas-kit-react/common").ElementComponent<"input", import("@workday/canvas-kit-react/text-input").TextInputProps> & {
|
|
444
445
|
ErrorType: typeof ErrorType;
|
|
445
446
|
}, MultiSelectInputProps, {
|
|
446
447
|
state: {
|
|
448
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
447
449
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
448
450
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
449
451
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -769,6 +771,7 @@ export declare const MultiSelectSearchInput: import("@workday/canvas-kit-react/c
|
|
|
769
771
|
ErrorType: typeof ErrorType;
|
|
770
772
|
}, MultiSelectInputProps, {
|
|
771
773
|
state: {
|
|
774
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
772
775
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
773
776
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
774
777
|
initialFocusRef: React.RefObject<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectInput.d.ts","sourceRoot":"","sources":["../../../../multi-select/lib/MultiSelectInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAC,OAAO,EAAsC,MAAM,6BAA6B,CAAC;AAQzF,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAI3D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiIlC,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA0B,CAAC;AAE1D,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"MultiSelectInput.d.ts","sourceRoot":"","sources":["../../../../multi-select/lib/MultiSelectInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAC,OAAO,EAAsC,MAAM,6BAA6B,CAAC;AAQzF,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAI3D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiIlC,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA0B,CAAC;AAE1D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAGT,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sMA2BzC,CAAC;AAmBF,MAAM,WAAW,qBACf,SAAQ,OAAO,EACb,IAAI,CACF,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,iBAAiB,CACtE,EACD,IAAI,CAAC,sBAAsB,EAAE,aAAa,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoD5B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+DlC,CAAC"}
|
|
@@ -14,11 +14,11 @@ const MultiSelectedList_1 = require("./MultiSelectedList");
|
|
|
14
14
|
const useMultiSelectModel_1 = require("./useMultiSelectModel");
|
|
15
15
|
exports.multiSelectInputStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
16
16
|
extends: common_1.cornerShapeStencil,
|
|
17
|
-
base: { name: "
|
|
17
|
+
base: { name: "1gszy0", styles: "box-sizing:border-box;border:0.0625rem solid var(--cnvs-sys-color-border-input-default);display:flex;flex-direction:column;background-color:var(--cnvs-sys-color-surface-default, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));--shape-corner-shape-ccab68:var(--cnvs-sys-shape-lg, 0.75rem);min-height:var(--cnvs-sys-size-md, var(--cnvs-sys-space-x10, 2.5rem));transition:0.2s box-shadow, 0.2s border-color;margin:0;--width-text-input-7c8776:100%;--color-system-icon-c9acc3:var(--cnvs-sys-color-fg-default);&:hover, &.hover{border-color:var(--cnvs-sys-color-border-input-hover, var(--cnvs-sys-color-border-input-strong, oklch(0.1595 0.0431 250.87 / 0.7)));}&:has(:focus-visible:not([disabled])), &.focus{border-color:var(--cnvs-sys-color-brand-border-primary, oklch(0.6023 0.2032 255.68 / 1));box-shadow:inset 0 0 0 1px var(--cnvs-sys-color-brand-focus-primary, var(--cnvs-brand-common-focus-outline, oklch(0.6023 0.2032 255.68 / 1)));}& [data-part=\"user-input\"]{font-family:var(--cnvs-sys-font-family-default);font-size:var(--cnvs-sys-font-size-subtext-lg, var(--cnvs-sys-font-size-subtext-large, 0.875rem));font-weight:var(--cnvs-sys-font-weight-normal);line-height:var(--cnvs-sys-line-height-subtext-lg, var(--cnvs-sys-line-height-subtext-large, 1.25rem));background-color:var(--cnvs-sys-color-surface-transparent, var(--cnvs-sys-color-bg-transparent-default, oklch(0 0 0 / 0)));border-radius:var(--cnvs-sys-shape-md, var(--cnvs-sys-shape-x2, 0.5rem));&:where([data-part=\"user-input\"], [data-part=\"form-input\"]){height:2.375rem;}border:none !important;box-shadow:none !important;outline-width:0px;&:where(:not([aria-autocomplete])){caret-color:transparent;cursor:default;&::selection{background-color:transparent;}}}&:has(:disabled, .disabled) :where([data-part=\"user-input\"]){opacity:var(--cnvs-sys-opacity-disabled);--color-system-icon-c9acc3:var(--cnvs-sys-color-fg-disabled);}&:has(:disabled, .disabled){opacity:var(--cnvs-sys-opacity-disabled);--color-system-icon-c9acc3:var(--cnvs-sys-color-fg-disabled);}&:has(:disabled, .disabled) :where([data-part=\"form-input\"]){opacity:0;--color-system-icon-c9acc3:var(--cnvs-sys-color-fg-disabled);}& :where([data-part=\"form-input\"]){position:absolute;top:0;bottom:0;left:0;right:0;opacity:0;cursor:default;pointer-events:none;}& :where([data-part=\"separator\"]){background-color:var(--cnvs-sys-color-border-default, var(--cnvs-sys-color-border-divider, oklch(0.3057 0.079 256.22 / 0.13)));height:1px;margin:0 var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem));}& :where([data-part=\"list\"]){display:flex;gap:var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem));padding:var(--cnvs-sys-padding-xs, var(--cnvs-sys-space-x2, 0.5rem));flex-wrap:wrap;}" },
|
|
18
18
|
modifiers: {
|
|
19
19
|
error: {
|
|
20
|
-
error: { name: "
|
|
21
|
-
caution: { name: "
|
|
20
|
+
error: { name: "w6c93", styles: "border-color:var(--cnvs-sys-color-brand-border-critical, oklch(0.6495 0.2369 30.04 / 1));box-shadow:inset 0 0 0 0.125rem var(--cnvs-sys-color-brand-focus-critical, var(--cnvs-brand-common-error-inner, oklch(0.6495 0.2369 30.04 / 1)));background-color:var(--cnvs-sys-color-brand-surface-critical-default, oklch(0.6289 0.2567 29.11 / 0.04));&:has(:hover, :disabled, :focus-visible), &:is(.hover, .disabled, .focus){border-color:var(--cnvs-sys-color-brand-border-critical, oklch(0.6495 0.2369 30.04 / 1));}&:has(:focus-visible:not([disabled])), &.focus{border-color:var(--cnvs-sys-color-brand-border-critical, oklch(0.6495 0.2369 30.04 / 1));box-shadow:inset 0 0 0 0.125rem var(--cnvs-sys-color-brand-focus-critical, var(--cnvs-brand-common-error-inner, oklch(0.6495 0.2369 30.04 / 1))), 0 0 0 2px var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1))), 0 0 0 4px var(--cnvs-sys-color-brand-border-primary, oklch(0.6023 0.2032 255.68 / 1));outline-offset:0.125rem;}" },
|
|
21
|
+
caution: { name: "1n6huw", styles: "border-color:var(--cnvs-sys-color-brand-border-caution, var(--cnvs-brand-alert-dark, oklch(0.6601 0.1537 60.7 / 1)));box-shadow:inset 0 0 0 0.125rem var(--cnvs-sys-color-brand-focus-caution-inner, var(--cnvs-brand-common-alert-inner, oklch(0.7909 0.1711 70.15 / 1)));background-color:var(--cnvs-sys-color-brand-surface-caution-default, oklch(0.7982 0.159 92.57 / 0.1));&:has(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled])), .focus:not(:has([disabled])){border-color:var(--cnvs-sys-color-brand-border-caution, var(--cnvs-brand-alert-dark, oklch(0.6601 0.1537 60.7 / 1)));}&:hover, &.hover{border-color:var(--cnvs-sys-color-brand-border-caution, var(--cnvs-brand-alert-dark, oklch(0.6601 0.1537 60.7 / 1)));}&:has(:focus-visible, .focus):not(:has([disabled])){box-shadow:inset 0 0 0 0.125rem var(--cnvs-sys-color-brand-focus-caution-inner, var(--cnvs-brand-common-alert-inner, oklch(0.7909 0.1711 70.15 / 1))),\n 0 0 0 2px var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1))),\n 0 0 0 4px var(--cnvs-sys-color-brand-border-primary, oklch(0.6023 0.2032 255.68 / 1));}outline-offset:0.125rem;" }
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}, "multi-select-input-5cacc4");
|
|
@@ -62,12 +62,12 @@ const useMultiSelectSearchInput = (0, common_1.composeHooks)((0, common_1.create
|
|
|
62
62
|
exports.MultiSelectInput = (0, common_1.createSubcomponent)(text_input_1.TextInput)({
|
|
63
63
|
modelHook: useMultiSelectModel_1.useMultiSelectModel,
|
|
64
64
|
elemPropsHook: exports.useMultiSelectInput,
|
|
65
|
-
})(({ className, cs, style, error, 'aria-labelledby': ariaLabelledBy, removeLabel, disabled, formInputProps, ...elemProps }, Element, model) => {
|
|
66
|
-
return ((0, jsx_runtime_1.jsxs)("div", { ...(0, canvas_kit_styling_1.handleCsProp)({ className, cs, style }, (0, exports.multiSelectInputStencil)({ error })), children: [(0, jsx_runtime_1.jsxs)(text_input_1.InputGroup, { children: [(0, jsx_runtime_1.jsx)(text_input_1.InputGroup.Input, { "data-part": "form-input", ...formInputProps }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.Input, { "data-part": "user-input", as: Element, "aria-labelledby": ariaLabelledBy, readOnly: true, disabled: disabled, error: error, ...elemProps }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.InnerEnd, { pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(icon_1.SystemIcon, { size: "md", icon: model.state.visibility === 'visible' ? canvas_system_icons_web_1.chevronUpSmallIcon : canvas_system_icons_web_1.chevronDownSmallIcon }) })] }), (0, jsx_runtime_1.jsx)(MultiSelectedList_1.MultiSelectedList, { disabled: disabled, removeLabel: removeLabel })] }));
|
|
65
|
+
})(({ className, cs, style, error, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, removeLabel, disabled, formInputProps, ...elemProps }, Element, model) => {
|
|
66
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ...(0, canvas_kit_styling_1.handleCsProp)({ className, cs, style }, (0, exports.multiSelectInputStencil)({ error })), children: [(0, jsx_runtime_1.jsxs)(text_input_1.InputGroup, { children: [(0, jsx_runtime_1.jsx)(text_input_1.InputGroup.Input, { "data-part": "form-input", ...formInputProps }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.Input, { "data-part": "user-input", as: Element, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, readOnly: true, disabled: disabled, error: error, ...elemProps }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.InnerEnd, { pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(icon_1.SystemIcon, { size: "md", icon: model.state.visibility === 'visible' ? canvas_system_icons_web_1.chevronUpSmallIcon : canvas_system_icons_web_1.chevronDownSmallIcon }) })] }), (0, jsx_runtime_1.jsx)(MultiSelectedList_1.MultiSelectedList, { disabled: disabled, removeLabel: removeLabel, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy })] }));
|
|
67
67
|
});
|
|
68
68
|
exports.MultiSelectSearchInput = (0, common_1.createSubcomponent)(text_input_1.TextInput)({
|
|
69
69
|
modelHook: useMultiSelectModel_1.useMultiSelectModel,
|
|
70
70
|
elemPropsHook: useMultiSelectSearchInput,
|
|
71
|
-
})(({ className, cs, style, 'aria-labelledby': ariaLabelledBy, removeLabel, formInputProps, ref, disabled, error, ...elemProps }, Element, model) => {
|
|
72
|
-
return ((0, jsx_runtime_1.jsxs)("div", { ...(0, canvas_kit_styling_1.handleCsProp)({ className, cs, style }, (0, exports.multiSelectInputStencil)({})), children: [(0, jsx_runtime_1.jsxs)(text_input_1.InputGroup, { children: [(0, jsx_runtime_1.jsx)(text_input_1.InputGroup.InnerStart, { pointerEvents: "none", width: canvas_tokens_web_1.system.legacy.size.sm, children: (0, jsx_runtime_1.jsx)(icon_1.SystemIcon, { icon: canvas_system_icons_web_1.searchIcon, size: "xs" }) }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.Input, { "data-part": "form-input", placeholder: null, ...formInputProps }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.Input, { "data-part": "user-input", as: Element, "aria-labelledby": ariaLabelledBy, disabled: disabled, error: error, ...elemProps }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.InnerEnd, { width: canvas_tokens_web_1.system.legacy.size.xxxs, children: (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.ClearButton, {}) }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.InnerEnd, { pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(icon_1.SystemIcon, { size: "md", icon: model.state.visibility === 'visible' ? canvas_system_icons_web_1.chevronUpSmallIcon : canvas_system_icons_web_1.chevronDownSmallIcon }) })] }), (0, jsx_runtime_1.jsx)(MultiSelectedList_1.MultiSelectedList, { removeLabel: removeLabel, disabled: disabled })] }));
|
|
71
|
+
})(({ className, cs, style, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, removeLabel, formInputProps, ref, disabled, error, ...elemProps }, Element, model) => {
|
|
72
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ...(0, canvas_kit_styling_1.handleCsProp)({ className, cs, style }, (0, exports.multiSelectInputStencil)({})), children: [(0, jsx_runtime_1.jsxs)(text_input_1.InputGroup, { children: [(0, jsx_runtime_1.jsx)(text_input_1.InputGroup.InnerStart, { pointerEvents: "none", width: canvas_tokens_web_1.system.legacy.size.sm, children: (0, jsx_runtime_1.jsx)(icon_1.SystemIcon, { icon: canvas_system_icons_web_1.searchIcon, size: "xs" }) }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.Input, { "data-part": "form-input", placeholder: null, ...formInputProps }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.Input, { "data-part": "user-input", as: Element, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, disabled: disabled, error: error, ref: model.state.searchInputRef, ...elemProps }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.InnerEnd, { width: canvas_tokens_web_1.system.legacy.size.xxxs, children: (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.ClearButton, {}) }), (0, jsx_runtime_1.jsx)(text_input_1.InputGroup.InnerEnd, { pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(icon_1.SystemIcon, { size: "md", icon: model.state.visibility === 'visible' ? canvas_system_icons_web_1.chevronUpSmallIcon : canvas_system_icons_web_1.chevronDownSmallIcon }) })] }), (0, jsx_runtime_1.jsx)(MultiSelectedList_1.MultiSelectedList, { removeLabel: removeLabel, disabled: disabled, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy })] }));
|
|
73
73
|
});
|