@workday/canvas-kit-react 11.0.0-alpha.715-next.0 → 11.0.0-alpha.718-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.
Files changed (56) hide show
  1. package/collection/lib/ListBox.tsx +50 -19
  2. package/combobox/lib/ComboboxMenuItem.tsx +24 -6
  3. package/combobox/lib/ComboboxMenuList.tsx +11 -10
  4. package/dist/commonjs/collection/lib/ListBox.d.ts.map +1 -1
  5. package/dist/commonjs/collection/lib/ListBox.js +18 -5
  6. package/dist/commonjs/combobox/lib/Combobox.d.ts +77 -5
  7. package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
  8. package/dist/commonjs/combobox/lib/ComboboxMenu.d.ts +77 -5
  9. package/dist/commonjs/combobox/lib/ComboboxMenu.d.ts.map +1 -1
  10. package/dist/commonjs/combobox/lib/ComboboxMenuItem.d.ts +157 -7
  11. package/dist/commonjs/combobox/lib/ComboboxMenuItem.d.ts.map +1 -1
  12. package/dist/commonjs/combobox/lib/ComboboxMenuItem.js +17 -3
  13. package/dist/commonjs/combobox/lib/ComboboxMenuList.d.ts +0 -1
  14. package/dist/commonjs/combobox/lib/ComboboxMenuList.d.ts.map +1 -1
  15. package/dist/commonjs/combobox/lib/ComboboxMenuList.js +8 -3
  16. package/dist/commonjs/menu/index.d.ts +1 -1
  17. package/dist/commonjs/menu/index.d.ts.map +1 -1
  18. package/dist/commonjs/menu/index.js +2 -1
  19. package/dist/commonjs/menu/lib/MenuCard.d.ts +9 -0
  20. package/dist/commonjs/menu/lib/MenuCard.d.ts.map +1 -1
  21. package/dist/commonjs/menu/lib/MenuCard.js +18 -21
  22. package/dist/commonjs/menu/lib/MenuList.d.ts +10 -0
  23. package/dist/commonjs/menu/lib/MenuList.d.ts.map +1 -1
  24. package/dist/commonjs/menu/lib/MenuList.js +14 -3
  25. package/dist/commonjs/select/lib/Select.d.ts +437 -13
  26. package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
  27. package/dist/commonjs/select/lib/Select.js +21 -12
  28. package/dist/es6/collection/lib/ListBox.d.ts.map +1 -1
  29. package/dist/es6/collection/lib/ListBox.js +19 -6
  30. package/dist/es6/combobox/lib/Combobox.d.ts +77 -5
  31. package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
  32. package/dist/es6/combobox/lib/ComboboxMenu.d.ts +77 -5
  33. package/dist/es6/combobox/lib/ComboboxMenu.d.ts.map +1 -1
  34. package/dist/es6/combobox/lib/ComboboxMenuItem.d.ts +157 -7
  35. package/dist/es6/combobox/lib/ComboboxMenuItem.d.ts.map +1 -1
  36. package/dist/es6/combobox/lib/ComboboxMenuItem.js +17 -3
  37. package/dist/es6/combobox/lib/ComboboxMenuList.d.ts +0 -1
  38. package/dist/es6/combobox/lib/ComboboxMenuList.d.ts.map +1 -1
  39. package/dist/es6/combobox/lib/ComboboxMenuList.js +9 -4
  40. package/dist/es6/menu/index.d.ts +1 -1
  41. package/dist/es6/menu/index.d.ts.map +1 -1
  42. package/dist/es6/menu/index.js +1 -1
  43. package/dist/es6/menu/lib/MenuCard.d.ts +9 -0
  44. package/dist/es6/menu/lib/MenuCard.d.ts.map +1 -1
  45. package/dist/es6/menu/lib/MenuCard.js +18 -21
  46. package/dist/es6/menu/lib/MenuList.d.ts +10 -0
  47. package/dist/es6/menu/lib/MenuList.d.ts.map +1 -1
  48. package/dist/es6/menu/lib/MenuList.js +13 -2
  49. package/dist/es6/select/lib/Select.d.ts +437 -13
  50. package/dist/es6/select/lib/Select.d.ts.map +1 -1
  51. package/dist/es6/select/lib/Select.js +21 -12
  52. package/menu/index.ts +1 -1
  53. package/menu/lib/MenuCard.tsx +37 -32
  54. package/menu/lib/MenuList.tsx +24 -8
  55. package/package.json +4 -4
  56. package/select/lib/Select.tsx +45 -31
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAJH;;;;eAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAJH;;;;mBAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgPH,CAAC"}
@@ -5,28 +5,36 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Select = exports.SelectCard = exports.SelectItem = exports.SelectInput = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
- const common_1 = require("@workday/canvas-kit-react/common");
8
+ const canvas_system_icons_web_1 = require("@workday/canvas-system-icons-web");
9
9
  const combobox_1 = require("@workday/canvas-kit-react/combobox");
10
+ const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
10
11
  const text_input_1 = require("@workday/canvas-kit-react/text-input");
11
12
  const layout_1 = require("@workday/canvas-kit-react/layout");
12
13
  const icon_1 = require("@workday/canvas-kit-react/icon");
13
- const canvas_system_icons_web_1 = require("@workday/canvas-system-icons-web");
14
- const useSelectModel_1 = require("./hooks/useSelectModel");
15
14
  const useSelectCard_1 = require("./hooks/useSelectCard");
16
15
  const useSelectInput_1 = require("./hooks/useSelectInput");
17
- const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
18
- const selectInputStyles = canvas_kit_styling_1.createStyles({ name: "1gpclr4", styles: "caret-color:transparent;cursor:default;&::selection{background-color:transparent;}" });
19
- const hiddenSelectStyles = canvas_kit_styling_1.createStyles({ name: "skcwps", styles: "position:absolute;top:0;bottom:0;left:0;right:0;opacity:0;cursor:default;pointer-events:none;" });
16
+ const useSelectModel_1 = require("./hooks/useSelectModel");
17
+ const common_1 = require("@workday/canvas-kit-react/common");
18
+ const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
19
+ const selectInputStencil = canvas_kit_styling_1.createStencil({
20
+ base: { name: "1gpclr4", styles: "caret-color:transparent;cursor:default;&::selection{background-color:transparent;}" }
21
+ }, "select-input");
22
+ const selectIconsStencil = canvas_kit_styling_1.createStencil({
23
+ base: { name: "1isip6o", styles: "position:absolute;pointer-events:none;" }
24
+ }, "select-icons");
25
+ const hiddenSelectInputStencil = canvas_kit_styling_1.createStencil({
26
+ base: { name: "1xuodxn", styles: "position:absolute;top:var(--cnvs-sys-space-zero, 0);bottom:var(--cnvs-sys-space-zero, 0);left:var(--cnvs-sys-space-zero, 0);right:var(--cnvs-sys-space-zero, 0);opacity:0;cursor:default;pointer-events:none;" }
27
+ }, "hidden-select-input");
20
28
  exports.SelectInput = common_1.createSubcomponent(text_input_1.TextInput)({
21
29
  modelHook: useSelectModel_1.useSelectModel,
22
30
  elemPropsHook: useSelectInput_1.useSelectInput,
23
31
  })(({ placeholder = 'Choose an option', inputStartIcon, error, textInputProps, disabled, width, ref, onChange, onInput, onFocus, value, name, ...elemProps }, Element, model) => {
24
- return (react_1.default.createElement(text_input_1.InputGroup, { width: width, "data-width": "ck-formfield-width" },
25
- inputStartIcon && model.state.selectedIds.length > 0 && (react_1.default.createElement(text_input_1.InputGroup.InnerStart, { pointerEvents: "none" },
32
+ return (react_1.default.createElement(text_input_1.InputGroup, { "data-width": "ck-formfield-width" },
33
+ inputStartIcon && model.state.selectedIds.length > 0 && (react_1.default.createElement(text_input_1.InputGroup.InnerStart, Object.assign({}, selectIconsStencil()),
26
34
  react_1.default.createElement(icon_1.SystemIcon, { icon: inputStartIcon }))),
27
- react_1.default.createElement(text_input_1.InputGroup.Input, { error: error, disabled: disabled, className: hiddenSelectStyles, tabIndex: -1, "aria-hidden": true, onChange: onChange, onInput: onInput, value: value, onFocus: onFocus, name: name, ref: ref }),
28
- react_1.default.createElement(text_input_1.InputGroup.Input, Object.assign({ as: Element, disabled: disabled, placeholder: placeholder, error: error }, textInputProps, layout_1.mergeStyles(elemProps, [selectInputStyles]))),
29
- react_1.default.createElement(text_input_1.InputGroup.InnerEnd, { position: "absolute", pointerEvents: "none" },
35
+ react_1.default.createElement(text_input_1.InputGroup.Input, Object.assign({ error: error, disabled: disabled, tabIndex: -1, "aria-hidden": true, onChange: onChange, onInput: onInput, value: value, onFocus: onFocus, name: name, ref: ref }, hiddenSelectInputStencil())),
36
+ react_1.default.createElement(text_input_1.InputGroup.Input, Object.assign({ as: Element, disabled: disabled, placeholder: placeholder, error: error }, textInputProps, layout_1.mergeStyles(elemProps, selectInputStencil()))),
37
+ react_1.default.createElement(text_input_1.InputGroup.InnerEnd, Object.assign({}, selectIconsStencil()),
30
38
  react_1.default.createElement(icon_1.SystemIcon, { icon: canvas_system_icons_web_1.caretDownSmallIcon }))));
31
39
  });
32
40
  exports.SelectItem = common_1.createSubcomponent('li')({
@@ -37,11 +45,12 @@ exports.SelectItem = common_1.createSubcomponent('li')({
37
45
  })(({ children, ...elemProps }, Element, _model) => {
38
46
  return (react_1.default.createElement(combobox_1.Combobox.Menu.Item, Object.assign({ role: "option", as: Element }, elemProps), children));
39
47
  });
48
+ const selectCardStyles = canvas_kit_styling_1.createStyles({ name: "1621qa2", styles: "max-height:18.75rem;" });
40
49
  exports.SelectCard = common_1.createSubcomponent('div')({
41
50
  modelHook: useSelectModel_1.useSelectModel,
42
51
  elemPropsHook: useSelectCard_1.useSelectCard,
43
52
  })(({ children, ...elemProps }, Element) => {
44
- return (react_1.default.createElement(combobox_1.Combobox.Menu.Card, Object.assign({ maxHeight: 300, as: Element }, elemProps), children));
53
+ return (react_1.default.createElement(combobox_1.Combobox.Menu.Card, Object.assign({ as: Element }, layout_1.mergeStyles(elemProps, selectCardStyles)), children));
45
54
  });
46
55
  /**
47
56
  * Use `Select` to allow users to choose an option from a list or type characters to select a matching option.
@@ -1 +1 @@
1
- {"version":3,"file":"ListBox.d.ts","sourceRoot":"","sources":["../../../../collection/lib/ListBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKhB;;;;;;;;OAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBN,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { createContainer, createElemPropsHook, createSubcomponent, } from '@workday/canvas-kit-react/common';
3
- import { Box, Flex } from '@workday/canvas-kit-react/layout';
3
+ import { Box, Flex, mergeStyles } from '@workday/canvas-kit-react/layout';
4
+ import { createStencil } from '@workday/canvas-kit-styling';
5
+ import { system } from '@workday/canvas-tokens-web';
4
6
  import { useListModel } from './useListModel';
5
7
  import { useListRenderItems } from './useListRenderItem';
6
8
  import { useListItemRegister } from './useListItemRegister';
@@ -19,6 +21,18 @@ export const useListBox = createElemPropsHook(useListModel)(model => {
19
21
  },
20
22
  };
21
23
  });
24
+ const listBoxContainerStencil = createStencil({
25
+ base: { name: "roynbj", styles: "box-sizing:border-box;" },
26
+ modifiers: {
27
+ modifiers: {
28
+ vertical: { name: "13v3rg8", styles: "overflow-y:auto;" },
29
+ horizontal: { name: "mru7yp", styles: "overflow-y:undefined;" }
30
+ }
31
+ }
32
+ }, "list-box-container");
33
+ const listBoxStencil = createStencil({
34
+ base: { name: "1rhzmpl", styles: "flex-direction:column;margin-top:var(--cnvs-sys-space-zero, 0);margin-bottom:var(--cnvs-sys-space-zero, 0);" }
35
+ }, "list-box");
22
36
  /**
23
37
  * The `ListBox` component that offers vertical rendering of a collection in the form of a
24
38
  * 2-dimension list. It supports virtualization, rendering only visible items in the DOM while also
@@ -52,10 +66,9 @@ export const ListBox = createContainer('ul')({
52
66
  */
53
67
  Item: ListBoxItem,
54
68
  },
55
- })(({ height, maxHeight, marginY, ...elemProps }, Element, model) => {
56
- // We're moving `marginY` to the container to not interfere with the virtualization size. We set
69
+ })(({ height, maxHeight, marginY, marginBottom, overflowY, marginTop, ...elemProps }, Element, model) => {
70
+ // We're removing `marginY, marginBottom, overflowY, marginTo` from elemProps and applying them to the container as to not interfere with the virtualization size. We set
57
71
  // the `marginY` on the Flex to `0` to avoid inaccurate scrollbars
58
- // TODO figure out what style props should go to which `Box`
59
- return (React.createElement(Box, { ref: model.state.containerRef, marginY: marginY, maxHeight: maxHeight, overflowY: model.state.orientation === 'vertical' ? 'auto' : undefined },
60
- React.createElement(Flex, Object.assign({ as: Element, flexDirection: "column" }, elemProps, { marginY: 0 }), useListRenderItems(model, elemProps.children))));
72
+ return (React.createElement("div", Object.assign({ ref: model.state.containerRef }, mergeStyles({ maxHeight, marginBottom: marginY, marginTop: marginY }, listBoxContainerStencil({ orientation: model.state.orientation }))),
73
+ React.createElement(Flex, Object.assign({ as: Element }, mergeStyles(elemProps, listBoxStencil())), useListRenderItems(model, elemProps.children))));
61
74
  });
@@ -1992,11 +1992,83 @@ export declare const Combobox: import("@workday/canvas-kit-react/common").Compon
1992
1992
  navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
1993
1993
  getId: (item: any) => string;
1994
1994
  }> & {
1995
- Icon: import("@emotion/styled").StyledComponent<import("../..").SystemIconProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "as" | keyof import("../..").SystemIconProps> & {
1996
- ref?: React.Ref<HTMLSpanElement> | undefined;
1997
- } & {
1998
- theme?: import("@emotion/react").Theme | undefined;
1999
- }, {}, {}>;
1995
+ Icon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("../..").SystemIconProps & React.HTMLAttributes<HTMLSpanElement>, {
1996
+ state: {
1997
+ stackRef: React.RefObject<HTMLDivElement>;
1998
+ targetRef: React.RefObject<HTMLButtonElement>;
1999
+ initialFocusRef: React.RefObject<any> | undefined;
2000
+ returnFocusRef: React.RefObject<any> | undefined;
2001
+ placement: import("@popperjs/core").Placement;
2002
+ id: string;
2003
+ visibility: "hidden" | "visible";
2004
+ selectedIds: string[] | "all";
2005
+ unselectedIds: string[];
2006
+ cursorId: string;
2007
+ columnCount: number;
2008
+ pageSizeRef: React.MutableRefObject<number>;
2009
+ cursorIndexRef: {
2010
+ readonly current: number;
2011
+ };
2012
+ UNSTABLE_virtual: {
2013
+ virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
2014
+ totalSize: number;
2015
+ scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
2016
+ scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
2017
+ measure: () => void;
2018
+ };
2019
+ UNSTABLE_defaultItemHeight: number;
2020
+ containerRef: React.RefObject<HTMLDivElement>;
2021
+ orientation: "horizontal" | "vertical";
2022
+ indexRef: React.MutableRefObject<number>;
2023
+ nonInteractiveIds: string[];
2024
+ isVirtualized: boolean;
2025
+ items: import("../..").Item<any>[];
2026
+ mode: "multiple" | "single";
2027
+ value: string | undefined;
2028
+ inputRef: React.RefObject<HTMLInputElement>;
2029
+ width: number;
2030
+ };
2031
+ events: {
2032
+ setWidth(width: number): void;
2033
+ updatePlacement(data: {
2034
+ placement: import("@popperjs/core").Placement;
2035
+ }): void;
2036
+ show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
2037
+ hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
2038
+ select(data: {
2039
+ id: string;
2040
+ }): void;
2041
+ selectAll(): void;
2042
+ unselectAll(): void;
2043
+ goTo(data: {
2044
+ id: string;
2045
+ }): void;
2046
+ goToNext(): void;
2047
+ goToPrevious(): void;
2048
+ goToPreviousRow(): void;
2049
+ goToNextRow(): void;
2050
+ goToFirst(): void;
2051
+ goToLast(): void;
2052
+ goToFirstOfRow(): void;
2053
+ goToLastOfRow(): void;
2054
+ goToNextPage(): void;
2055
+ goToPreviousPage(): void;
2056
+ registerItem(data: {
2057
+ item: any;
2058
+ textValue: string;
2059
+ }): void;
2060
+ unregisterItem(data: {
2061
+ id: string;
2062
+ }): void;
2063
+ updateItemHeight(data: {
2064
+ value: number;
2065
+ }): void;
2066
+ };
2067
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
2068
+ selection: import("../../collection/lib/useSelectionListModel").SelectionManager;
2069
+ navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
2070
+ getId: (item: any) => string;
2071
+ }>;
2000
2072
  };
2001
2073
  Card: import("@workday/canvas-kit-react/common").ElementComponentM<"div", import("./ComboboxCard").ComboboxCardProps, {
2002
2074
  state: {
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIjB;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKL,CAAC"}
@@ -341,11 +341,83 @@ export declare const ComboboxMenu: import("@workday/canvas-kit-react/common").El
341
341
  navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
342
342
  getId: (item: any) => string;
343
343
  }> & {
344
- Icon: import("@emotion/styled").StyledComponent<import("../..").SystemIconProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "as" | keyof import("../..").SystemIconProps> & {
345
- ref?: React.Ref<HTMLSpanElement> | undefined;
346
- } & {
347
- theme?: import("@emotion/react").Theme | undefined;
348
- }, {}, {}>;
344
+ Icon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("../..").SystemIconProps & React.HTMLAttributes<HTMLSpanElement>, {
345
+ state: {
346
+ stackRef: React.RefObject<HTMLDivElement>;
347
+ targetRef: React.RefObject<HTMLButtonElement>;
348
+ initialFocusRef: React.RefObject<any> | undefined;
349
+ returnFocusRef: React.RefObject<any> | undefined;
350
+ placement: import("@popperjs/core").Placement;
351
+ id: string;
352
+ visibility: "hidden" | "visible";
353
+ selectedIds: string[] | "all";
354
+ unselectedIds: string[];
355
+ cursorId: string;
356
+ columnCount: number;
357
+ pageSizeRef: React.MutableRefObject<number>;
358
+ cursorIndexRef: {
359
+ readonly current: number;
360
+ };
361
+ UNSTABLE_virtual: {
362
+ virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
363
+ totalSize: number;
364
+ scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
365
+ scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
366
+ measure: () => void;
367
+ };
368
+ UNSTABLE_defaultItemHeight: number;
369
+ containerRef: React.RefObject<HTMLDivElement>;
370
+ orientation: "horizontal" | "vertical";
371
+ indexRef: React.MutableRefObject<number>;
372
+ nonInteractiveIds: string[];
373
+ isVirtualized: boolean;
374
+ items: import("../..").Item<any>[];
375
+ mode: "multiple" | "single";
376
+ value: string | undefined;
377
+ inputRef: React.RefObject<HTMLInputElement>;
378
+ width: number;
379
+ };
380
+ events: {
381
+ setWidth(width: number): void;
382
+ updatePlacement(data: {
383
+ placement: import("@popperjs/core").Placement;
384
+ }): void;
385
+ show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
386
+ hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
387
+ select(data: {
388
+ id: string;
389
+ }): void;
390
+ selectAll(): void;
391
+ unselectAll(): void;
392
+ goTo(data: {
393
+ id: string;
394
+ }): void;
395
+ goToNext(): void;
396
+ goToPrevious(): void;
397
+ goToPreviousRow(): void;
398
+ goToNextRow(): void;
399
+ goToFirst(): void;
400
+ goToLast(): void;
401
+ goToFirstOfRow(): void;
402
+ goToLastOfRow(): void;
403
+ goToNextPage(): void;
404
+ goToPreviousPage(): void;
405
+ registerItem(data: {
406
+ item: any;
407
+ textValue: string;
408
+ }): void;
409
+ unregisterItem(data: {
410
+ id: string;
411
+ }): void;
412
+ updateItemHeight(data: {
413
+ value: number;
414
+ }): void;
415
+ };
416
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
417
+ selection: import("../../collection/lib/useSelectionListModel").SelectionManager;
418
+ navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
419
+ getId: (item: any) => string;
420
+ }>;
349
421
  };
350
422
  /**
351
423
  * `Combobox.Menu.Card` is a non-semantic element used to give the dropdown menu its distinct visual
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxMenu.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/ComboboxMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGrB;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;;;;;;;;;;;;;;OAoBG;;;;;;;;;;;;;;;;;;;;;;;;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
- export interface ComboboxMenuItemProps {
3
- children: React.ReactNode;
2
+ import { ExtractProps } from '@workday/canvas-kit-react/common';
3
+ import { StyledMenuItem } from '@workday/canvas-kit-react/menu';
4
+ export interface ComboboxMenuItemProps extends ExtractProps<typeof StyledMenuItem, never> {
4
5
  }
5
6
  /**
6
7
  * This hook sets up accessibility and behavior of a {@link ComboboxMenuItem Combobox.Menu.Item}
@@ -98,6 +99,83 @@ export declare const useComboboxMenuItem: import("@workday/canvas-kit-react/comm
98
99
  } & {
99
100
  'data-id'?: string | undefined;
100
101
  }>;
102
+ export declare const ComboboxMenuItemIcon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("@workday/canvas-kit-react/icon").SystemIconProps & React.HTMLAttributes<HTMLSpanElement>, {
103
+ state: {
104
+ stackRef: React.RefObject<HTMLDivElement>;
105
+ targetRef: React.RefObject<HTMLButtonElement>;
106
+ initialFocusRef: React.RefObject<any> | undefined;
107
+ returnFocusRef: React.RefObject<any> | undefined;
108
+ placement: import("@popperjs/core").Placement;
109
+ id: string;
110
+ visibility: "hidden" | "visible";
111
+ selectedIds: string[] | "all";
112
+ unselectedIds: string[];
113
+ cursorId: string;
114
+ columnCount: number;
115
+ pageSizeRef: React.MutableRefObject<number>;
116
+ cursorIndexRef: {
117
+ readonly current: number;
118
+ };
119
+ UNSTABLE_virtual: {
120
+ virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
121
+ totalSize: number;
122
+ scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
123
+ scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
124
+ measure: () => void;
125
+ };
126
+ UNSTABLE_defaultItemHeight: number;
127
+ containerRef: React.RefObject<HTMLDivElement>;
128
+ orientation: "horizontal" | "vertical";
129
+ indexRef: React.MutableRefObject<number>;
130
+ nonInteractiveIds: string[];
131
+ isVirtualized: boolean;
132
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
133
+ mode: "multiple" | "single";
134
+ value: string | undefined;
135
+ inputRef: React.RefObject<HTMLInputElement>;
136
+ width: number;
137
+ };
138
+ events: {
139
+ setWidth(width: number): void;
140
+ updatePlacement(data: {
141
+ placement: import("@popperjs/core").Placement;
142
+ }): void;
143
+ show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
144
+ hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
145
+ select(data: {
146
+ id: string;
147
+ }): void;
148
+ selectAll(): void;
149
+ unselectAll(): void;
150
+ goTo(data: {
151
+ id: string;
152
+ }): void;
153
+ goToNext(): void;
154
+ goToPrevious(): void;
155
+ goToPreviousRow(): void;
156
+ goToNextRow(): void;
157
+ goToFirst(): void;
158
+ goToLast(): void;
159
+ goToFirstOfRow(): void;
160
+ goToLastOfRow(): void;
161
+ goToNextPage(): void;
162
+ goToPreviousPage(): void;
163
+ registerItem(data: {
164
+ item: any;
165
+ textValue: string;
166
+ }): void;
167
+ unregisterItem(data: {
168
+ id: string;
169
+ }): void;
170
+ updateItemHeight(data: {
171
+ value: number;
172
+ }): void;
173
+ };
174
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
175
+ selection: import("../../collection/lib/useSelectionListModel").SelectionManager;
176
+ navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
177
+ getId: (item: any) => string;
178
+ }>;
101
179
  export declare const ComboboxMenuItem: import("@workday/canvas-kit-react/common").ElementComponentM<"li", ComboboxMenuItemProps, {
102
180
  state: {
103
181
  stackRef: React.RefObject<HTMLDivElement>;
@@ -175,10 +253,82 @@ export declare const ComboboxMenuItem: import("@workday/canvas-kit-react/common"
175
253
  navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
176
254
  getId: (item: any) => string;
177
255
  }> & {
178
- Icon: import("@emotion/styled").StyledComponent<import("@workday/canvas-kit-react/icon").SystemIconProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "as" | keyof import("@workday/canvas-kit-react/icon").SystemIconProps> & {
179
- ref?: React.Ref<HTMLSpanElement> | undefined;
180
- } & {
181
- theme?: import("@emotion/react").Theme | undefined;
182
- }, {}, {}>;
256
+ Icon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("@workday/canvas-kit-react/icon").SystemIconProps & React.HTMLAttributes<HTMLSpanElement>, {
257
+ state: {
258
+ stackRef: React.RefObject<HTMLDivElement>;
259
+ targetRef: React.RefObject<HTMLButtonElement>;
260
+ initialFocusRef: React.RefObject<any> | undefined;
261
+ returnFocusRef: React.RefObject<any> | undefined;
262
+ placement: import("@popperjs/core").Placement;
263
+ id: string;
264
+ visibility: "hidden" | "visible";
265
+ selectedIds: string[] | "all";
266
+ unselectedIds: string[];
267
+ cursorId: string;
268
+ columnCount: number;
269
+ pageSizeRef: React.MutableRefObject<number>;
270
+ cursorIndexRef: {
271
+ readonly current: number;
272
+ };
273
+ UNSTABLE_virtual: {
274
+ virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
275
+ totalSize: number;
276
+ scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
277
+ scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
278
+ measure: () => void;
279
+ };
280
+ UNSTABLE_defaultItemHeight: number;
281
+ containerRef: React.RefObject<HTMLDivElement>;
282
+ orientation: "horizontal" | "vertical";
283
+ indexRef: React.MutableRefObject<number>;
284
+ nonInteractiveIds: string[];
285
+ isVirtualized: boolean;
286
+ items: import("@workday/canvas-kit-react/collection").Item<any>[];
287
+ mode: "multiple" | "single";
288
+ value: string | undefined;
289
+ inputRef: React.RefObject<HTMLInputElement>;
290
+ width: number;
291
+ };
292
+ events: {
293
+ setWidth(width: number): void;
294
+ updatePlacement(data: {
295
+ placement: import("@popperjs/core").Placement;
296
+ }): void;
297
+ show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
298
+ hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
299
+ select(data: {
300
+ id: string;
301
+ }): void;
302
+ selectAll(): void;
303
+ unselectAll(): void;
304
+ goTo(data: {
305
+ id: string;
306
+ }): void;
307
+ goToNext(): void;
308
+ goToPrevious(): void;
309
+ goToPreviousRow(): void;
310
+ goToNextRow(): void;
311
+ goToFirst(): void;
312
+ goToLast(): void;
313
+ goToFirstOfRow(): void;
314
+ goToLastOfRow(): void;
315
+ goToNextPage(): void;
316
+ goToPreviousPage(): void;
317
+ registerItem(data: {
318
+ item: any;
319
+ textValue: string;
320
+ }): void;
321
+ unregisterItem(data: {
322
+ id: string;
323
+ }): void;
324
+ updateItemHeight(data: {
325
+ value: number;
326
+ }): void;
327
+ };
328
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
329
+ selection: import("../../collection/lib/useSelectionListModel").SelectionManager;
330
+ navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
331
+ getId: (item: any) => string;
332
+ }>;
183
333
  };
184
334
  //# sourceMappingURL=ComboboxMenuItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxMenuItem.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/ComboboxMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAIA,gBAAgB,CAAC,WAAW,CAAC;;;;;;;;;;;;;;EAyB5D,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc3B,CAAC"}
1
+ {"version":3,"file":"ComboboxMenuItem.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/ComboboxMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAIL,YAAY,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,cAAc,EAAe,MAAM,gCAAgC,CAAC;AAa5E,MAAM,WAAW,qBAAsB,SAAQ,YAAY,CAAC,OAAO,cAAc,EAAE,KAAK,CAAC;CAAG;AAE5F;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAIA,gBAAgB,CAAC,WAAW,CAAC;;;;;;;;;;;;;;EAyB5D,CAAC;AAOF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AAQH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc3B,CAAC"}
@@ -1,10 +1,13 @@
1
1
  import React from 'react';
2
- import { composeHooks, createElemPropsHook, createSubcomponent, styled, } from '@workday/canvas-kit-react/common';
2
+ import { composeHooks, createElemPropsHook, createSubcomponent, } from '@workday/canvas-kit-react/common';
3
3
  import { StyledMenuItem, useMenuModel } from '@workday/canvas-kit-react/menu';
4
4
  import { SystemIcon } from '@workday/canvas-kit-react/icon';
5
5
  import { useListItemAllowChildStrings, useListItemRegister, } from '@workday/canvas-kit-react/collection';
6
6
  import { OverflowTooltip } from '@workday/canvas-kit-react/tooltip';
7
7
  import { useComboboxModel } from './hooks/useComboboxModel';
8
+ import { createStencil } from '@workday/canvas-kit-styling';
9
+ import { system } from '@workday/canvas-tokens-web';
10
+ import { mergeStyles } from '@workday/canvas-kit-react/layout';
8
11
  /**
9
12
  * This hook sets up accessibility and behavior of a {@link ComboboxMenuItem Combobox.Menu.Item}
10
13
  * component. It prevents focus when clicking so the focus stays on the
@@ -32,13 +35,24 @@ export const useComboboxMenuItem = composeHooks(createElemPropsHook(useMenuModel
32
35
  className: model.state.cursorId && model.state.cursorId === elemProps['data-id'] ? 'focus' : '',
33
36
  };
34
37
  }), useListItemRegister, useListItemAllowChildStrings);
38
+ const comboboxMenuItemIconStencil = createStencil({
39
+ base: { name: "1hcehcy", styles: "align-self:start;" }
40
+ }, "combobox-menu-item-icon");
41
+ export const ComboboxMenuItemIcon = createSubcomponent('span')({
42
+ modelHook: useComboboxModel,
43
+ })((elemProps, Element) => {
44
+ return React.createElement(SystemIcon, Object.assign({ as: Element }, mergeStyles(elemProps, comboboxMenuItemIconStencil())));
45
+ });
46
+ const comboboxMenuItemStencil = createStencil({
47
+ base: { name: "4xv1tq", styles: "min-height:var(--cnvs-sys-space-x10, calc(0.25rem * 10));" }
48
+ }, "combobox-menu-item");
35
49
  export const ComboboxMenuItem = createSubcomponent('li')({
36
50
  modelHook: useComboboxModel,
37
51
  elemPropsHook: useComboboxMenuItem,
38
52
  subComponents: {
39
- Icon: styled(SystemIcon)({ alignSelf: 'start' }),
53
+ Icon: ComboboxMenuItemIcon,
40
54
  },
41
55
  })(({ children, ...elemProps }, Element) => {
42
56
  return (React.createElement(OverflowTooltip, { placement: "left" },
43
- React.createElement(StyledMenuItem, Object.assign({ minHeight: "xl", as: Element }, elemProps), children)));
57
+ React.createElement(StyledMenuItem, Object.assign({ as: Element }, mergeStyles(elemProps, comboboxMenuItemStencil())), children)));
44
58
  });
@@ -82,7 +82,6 @@ export declare const useComboboxMenuList: import("@workday/canvas-kit-react/comm
82
82
  readonly role: "listbox";
83
83
  readonly 'aria-labelledby': string;
84
84
  readonly id: `${string}-list`;
85
- readonly flexDirection: "row" | "column";
86
85
  }>;
87
86
  export declare const ComboboxMenuList: import("@workday/canvas-kit-react/common").ElementComponentM<"ul", ComboboxMenuListProps<any>, {
88
87
  state: {
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxMenuList.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/ComboboxMenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAU,YAAY,EAAC,MAAM,sCAAsC,CAAC;AAI3E,MAAM,WAAW,qBAAqB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;CAAG;AAE1E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB3B,CAAC"}
1
+ {"version":3,"file":"ComboboxMenuList.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/ComboboxMenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAU,YAAY,EAAC,MAAM,sCAAsC,CAAC;AAO3E,MAAM,WAAW,qBAAqB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;CAAG;AAE1E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAOH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc3B,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
- import { commonColors } from '@workday/canvas-kit-react/tokens';
3
2
  import { createElemPropsHook, createSubcomponent } from '@workday/canvas-kit-react/common';
4
- import { useMenuModel } from '@workday/canvas-kit-react/menu';
3
+ import { useMenuModel, menuListStencil } from '@workday/canvas-kit-react/menu';
5
4
  import { ListBox } from '@workday/canvas-kit-react/collection';
5
+ import { system } from '@workday/canvas-tokens-web';
6
6
  import { useComboboxModel } from './hooks/useComboboxModel';
7
+ import { createStencil, cssVar } from '@workday/canvas-kit-styling';
8
+ import { mergeStyles } from '@workday/canvas-kit-react/layout';
7
9
  /**
8
10
  * The `listbox` uses `aria-labelledby` pointing to the {@link ComboboxInput Combobox.Input}. This
9
11
  * input should be labelled by a form field label for proper accessibility. Use {@link FormField} to
@@ -14,12 +16,15 @@ export const useComboboxMenuList = createElemPropsHook(useMenuModel)(model => {
14
16
  role: 'listbox',
15
17
  'aria-labelledby': model.state.id,
16
18
  id: `${model.state.id}-list`,
17
- flexDirection: model.state.orientation === 'vertical' ? 'column' : 'row',
18
19
  };
19
20
  });
21
+ const comoboxMenuListStencil = createStencil({
22
+ base: { name: "0", styles: "" },
23
+ extends: menuListStencil
24
+ }, "comobox-menu-list");
20
25
  export const ComboboxMenuList = createSubcomponent('ul')({
21
26
  modelHook: useComboboxModel,
22
27
  elemPropsHook: useComboboxMenuList,
23
28
  })(({ children, ...elemProps }, Element, model) => {
24
- return (React.createElement(ListBox, Object.assign({ as: Element, model: model, background: commonColors.background, borderRadius: "zero", padding: "zero", marginY: "xxs", gap: "zero", overflowY: "auto" }, elemProps), children));
29
+ return (React.createElement(ListBox, Object.assign({ as: Element, model: model, marginY: cssVar(system.space.x2) }, mergeStyles(elemProps, comoboxMenuListStencil({ orientation: model.state.orientation }))), children));
25
30
  });