@gooddata/sdk-ui-kit 11.64.0-alpha.4 → 11.64.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 (68) hide show
  1. package/esm/@ui/@types/icon.d.ts +1 -1
  2. package/esm/@ui/@types/icon.d.ts.map +1 -1
  3. package/esm/@ui/@utils/matchesSearchQuery.d.ts +8 -0
  4. package/esm/@ui/@utils/matchesSearchQuery.d.ts.map +1 -0
  5. package/esm/@ui/@utils/matchesSearchQuery.js +18 -0
  6. package/esm/@ui/@utils/scrollIntoView.d.ts +13 -0
  7. package/esm/@ui/@utils/scrollIntoView.d.ts.map +1 -0
  8. package/esm/@ui/@utils/scrollIntoView.js +22 -0
  9. package/esm/@ui/UiIcon/icons.d.ts.map +1 -1
  10. package/esm/@ui/UiIcon/icons.js +1 -0
  11. package/esm/@ui/UiListbox/UiListbox.d.ts +15 -2
  12. package/esm/@ui/UiListbox/UiListbox.d.ts.map +1 -1
  13. package/esm/@ui/UiListbox/UiListbox.js +76 -9
  14. package/esm/@ui/UiListbox/types.d.ts +32 -0
  15. package/esm/@ui/UiListbox/types.d.ts.map +1 -1
  16. package/esm/@ui/UiSearchResultsAnnouncement/UiSearchResultsAnnouncement.d.ts +5 -1
  17. package/esm/@ui/UiSearchResultsAnnouncement/UiSearchResultsAnnouncement.d.ts.map +1 -1
  18. package/esm/@ui/UiSearchResultsAnnouncement/UiSearchResultsAnnouncement.js +4 -4
  19. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts +28 -0
  20. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts.map +1 -0
  21. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.js +106 -0
  22. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts +24 -0
  23. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts.map +1 -0
  24. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.js +10 -0
  25. package/esm/@ui/UiSearchableSelect/UiSearchableSelectDivider.d.ts +7 -0
  26. package/esm/@ui/UiSearchableSelect/UiSearchableSelectDivider.d.ts.map +1 -0
  27. package/esm/@ui/UiSearchableSelect/UiSearchableSelectDivider.js +9 -0
  28. package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.d.ts +29 -0
  29. package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.d.ts.map +1 -0
  30. package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.js +18 -0
  31. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.d.ts +18 -0
  32. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.d.ts.map +1 -0
  33. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.js +60 -0
  34. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.d.ts +13 -0
  35. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.d.ts.map +1 -0
  36. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.js +82 -0
  37. package/esm/@ui/UiSearchableSelect/searchableSelectBem.d.ts +2 -0
  38. package/esm/@ui/UiSearchableSelect/searchableSelectBem.d.ts.map +1 -0
  39. package/esm/@ui/UiSearchableSelect/searchableSelectBem.js +3 -0
  40. package/esm/@ui/UiTextInput/UiTextInput.d.ts +8 -2
  41. package/esm/@ui/UiTextInput/UiTextInput.d.ts.map +1 -1
  42. package/esm/@ui/UiTextInput/UiTextInput.js +3 -3
  43. package/esm/Header/Header.d.ts.map +1 -1
  44. package/esm/Header/Header.js +11 -2
  45. package/esm/Header/Header.test.helpers.d.ts +2 -1
  46. package/esm/Header/Header.test.helpers.d.ts.map +1 -1
  47. package/esm/Header/Header.test.helpers.js +34 -26
  48. package/esm/Header/HeaderAccount.js +5 -2
  49. package/esm/Header/generateHeaderAccountMenuItems.d.ts +10 -2
  50. package/esm/Header/generateHeaderAccountMenuItems.d.ts.map +1 -1
  51. package/esm/Header/generateHeaderAccountMenuItems.js +6 -1
  52. package/esm/index.d.ts +7 -1
  53. package/esm/index.d.ts.map +1 -1
  54. package/esm/index.js +7 -1
  55. package/esm/sdk-ui-kit.d.ts +148 -6
  56. package/package.json +11 -11
  57. package/src/@ui/UiChip/UiChip.scss +2 -3
  58. package/src/@ui/UiFloatingPanel/UiFloatingPanel.scss +1 -0
  59. package/src/@ui/UiListbox/UiListbox.scss +15 -4
  60. package/src/@ui/UiModalDialog/UiModalDialog.scss +1 -0
  61. package/src/@ui/UiSearchableSelect/UiSearchableSelect.scss +118 -0
  62. package/src/@ui/UiTextInput/UiTextInput.scss +36 -5
  63. package/src/@ui/index.scss +1 -0
  64. package/styles/css/header.css +35 -0
  65. package/styles/css/header.css.map +1 -1
  66. package/styles/css/main.css +158 -7
  67. package/styles/css/main.css.map +1 -1
  68. package/styles/scss/header.scss +45 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export type IconType = "aiAgent" | "aiAgentDisabled" | "brain" | "brainDisabled" | "check" | "checkCircle" | "certification" | "plus" | "plusCircle" | "sync" | "alert" | "alertPaused" | "close" | "cross" | "edit" | "crossCircle" | "question" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "date" | "navigateUp" | "navigateDown" | "navigateRight" | "navigateLeft" | "download" | "slack" | "expand" | "exclamationCircle" | "infoCircle" | "book" | "visible" | "invisible" | "lock" | "unlock" | "ai" | "aiFill" | "drawer" | "drawerEmpty" | "prohibited" | "dropDown" | "dropRight" | "clock" | "clockPaused" | "questionMark" | "upload" | "expandRectangle" | "file" | "number" | "code" | "user" | "userPlus" | "users" | "magic" | "tab" | "pauseCircle" | "filter" | "timer" | "mail" | "envelope" | "copy" | "rain" | "earth" | "geoCollection" | "geoCollectionUpload" | "minimize" | "shrink" | "copyright" | "ellipsis" | "pencil" | "folder" | "folderSmall" | "folderPlus" | "trash" | "arrowUp" | "arrowRight" | "arrowDown" | "arrowLeft" | "levelUp" | "undo" | "redo" | "trendDown" | "trendUp" | "save" | "minus" | "minusCircle" | "percent" | "enter" | "enterRight" | "money" | "ghost" | "warning" | "home" | "settings" | "search" | "university" | "building" | "printer" | "picture" | "visualization" | "columnGroup" | "visualizationStack" | "richText" | "dashboard" | "metric" | "fact" | "ldmAttribute" | "ldmKey" | "ldmLabel" | "sharp" | "attribute" | "horn" | "cw" | "ccw" | "table" | "directionColumn" | "directionRow" | "alignLeft" | "alignCenter" | "alignRight" | "alignTop" | "alignMiddle" | "alignBottom" | "bold" | "italic" | "imageContain" | "imageCover" | "imageFill" | "header" | "genai" | "genai2" | "explainai" | "hiddenForAi" | "box" | "ellipsisVertical" | "list" | "drillTo" | "hierarchy" | "history" | "history2" | "thumbsUp" | "thumbsDown" | "send" | "visualizationArea" | "visualizationTable" | "visualizationTreemap" | "visualizationScatter" | "visualizationDonut" | "visualizationHeadline" | "visualizationColumn" | "visualizationLine" | "visualizationPyramid" | "visualizationFunnel" | "visualizationHeatmap" | "visualizationBubble" | "visualizationPie" | "visualizationBar" | "visualizationCombo" | "visualizationBullet" | "visualizationWaterfall" | "visualizationDependencywheel" | "visualizationSankey" | "visualizationPushpin" | "visualizationRepeater" | "visualizationXirr" | "link" | "externalLink" | "click" | "fileXlsx" | "filePptx" | "filePdf" | "fileImage" | "fileCsvFormatted" | "fileCsvRaw" | "aiDocument" | "recommendation" | "streamUp" | "streamDown" | "stream" | "density" | "parameter" | "pin" | "unpin" | "speechBubble" | "pieChart" | "timezone" | "sidePanelCollapse" | "sidePanel" | "sidePanelExpand" | "lineStyle" | "lineStyleSolid" | "lineStyleDashed" | "lineStyleDotted" | "lineWidth1" | "lineWidth2" | "lineWidth3" | "lineWidth4" | "linear" | "spline" | "stepped";
4
+ export type IconType = "aiAgent" | "aiAgentDisabled" | "brain" | "brainDisabled" | "check" | "checkCircle" | "certification" | "plus" | "plusCircle" | "sync" | "alert" | "alertPaused" | "close" | "cross" | "edit" | "crossCircle" | "question" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "date" | "navigateUp" | "navigateDown" | "navigateRight" | "navigateLeft" | "download" | "slack" | "expand" | "exclamationCircle" | "infoCircle" | "book" | "visible" | "invisible" | "lock" | "unlock" | "ai" | "aiFill" | "drawer" | "drawerEmpty" | "prohibited" | "dropDown" | "dropRight" | "clock" | "clockPaused" | "questionMark" | "upload" | "expandRectangle" | "file" | "number" | "code" | "user" | "userPlus" | "users" | "magic" | "tab" | "pauseCircle" | "filter" | "timer" | "mail" | "envelope" | "copy" | "rain" | "earth" | "globe" | "geoCollection" | "geoCollectionUpload" | "minimize" | "shrink" | "copyright" | "ellipsis" | "pencil" | "folder" | "folderSmall" | "folderPlus" | "trash" | "arrowUp" | "arrowRight" | "arrowDown" | "arrowLeft" | "levelUp" | "undo" | "redo" | "trendDown" | "trendUp" | "save" | "minus" | "minusCircle" | "percent" | "enter" | "enterRight" | "money" | "ghost" | "warning" | "home" | "settings" | "search" | "university" | "building" | "printer" | "picture" | "visualization" | "columnGroup" | "visualizationStack" | "richText" | "dashboard" | "metric" | "fact" | "ldmAttribute" | "ldmKey" | "ldmLabel" | "sharp" | "attribute" | "horn" | "cw" | "ccw" | "table" | "directionColumn" | "directionRow" | "alignLeft" | "alignCenter" | "alignRight" | "alignTop" | "alignMiddle" | "alignBottom" | "bold" | "italic" | "imageContain" | "imageCover" | "imageFill" | "header" | "genai" | "genai2" | "explainai" | "hiddenForAi" | "box" | "ellipsisVertical" | "list" | "drillTo" | "hierarchy" | "history" | "history2" | "thumbsUp" | "thumbsDown" | "send" | "visualizationArea" | "visualizationTable" | "visualizationTreemap" | "visualizationScatter" | "visualizationDonut" | "visualizationHeadline" | "visualizationColumn" | "visualizationLine" | "visualizationPyramid" | "visualizationFunnel" | "visualizationHeatmap" | "visualizationBubble" | "visualizationPie" | "visualizationBar" | "visualizationCombo" | "visualizationBullet" | "visualizationWaterfall" | "visualizationDependencywheel" | "visualizationSankey" | "visualizationPushpin" | "visualizationRepeater" | "visualizationXirr" | "link" | "externalLink" | "click" | "fileXlsx" | "filePptx" | "filePdf" | "fileImage" | "fileCsvFormatted" | "fileCsvRaw" | "aiDocument" | "recommendation" | "streamUp" | "streamDown" | "stream" | "density" | "parameter" | "pin" | "unpin" | "speechBubble" | "pieChart" | "timezone" | "sidePanelCollapse" | "sidePanel" | "sidePanelExpand" | "lineStyle" | "lineStyleSolid" | "lineStyleDashed" | "lineStyleDotted" | "lineWidth1" | "lineWidth2" | "lineWidth3" | "lineWidth4" | "linear" | "spline" | "stepped";
5
5
  //# sourceMappingURL=icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/@ui/@types/icon.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GACd,SAAS,GACT,iBAAiB,GACjB,OAAO,GACP,eAAe,GACf,OAAO,GACP,aAAa,GACb,eAAe,GACf,MAAM,GACN,YAAY,GACZ,MAAM,GACN,OAAO,GACP,aAAa,GACb,OAAO,GACP,OAAO,GACP,MAAM,GACN,aAAa,GACb,UAAU,GACV,WAAW,GACX,cAAc,GACd,aAAa,GACb,aAAa,GACb,MAAM,GACN,YAAY,GACZ,cAAc,GACd,eAAe,GACf,cAAc,GACd,UAAU,GACV,OAAO,GACP,QAAQ,GACR,mBAAmB,GACnB,YAAY,GACZ,MAAM,GACN,SAAS,GACT,WAAW,GACX,MAAM,GACN,QAAQ,GACR,IAAI,GACJ,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,UAAU,GACV,WAAW,GACX,OAAO,GACP,aAAa,GACb,cAAc,GACd,QAAQ,GACR,iBAAiB,GACjB,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,OAAO,GACP,KAAK,GACL,aAAa,GACb,QAAQ,GACR,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,UAAU,GACV,QAAQ,GACR,WAAW,GACX,U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ACX,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,WAAW,GACX,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,GACV,mBAAmB,GACnB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/@ui/@types/icon.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GACd,SAAS,GACT,iBAAiB,GACjB,OAAO,GACP,eAAe,GACf,OAAO,GACP,aAAa,GACb,eAAe,GACf,MAAM,GACN,YAAY,GACZ,MAAM,GACN,OAAO,GACP,aAAa,GACb,OAAO,GACP,OAAO,GACP,MAAM,GACN,aAAa,GACb,UAAU,GACV,WAAW,GACX,cAAc,GACd,aAAa,GACb,aAAa,GACb,MAAM,GACN,YAAY,GACZ,cAAc,GACd,eAAe,GACf,cAAc,GACd,UAAU,GACV,OAAO,GACP,QAAQ,GACR,mBAAmB,GACnB,YAAY,GACZ,MAAM,GACN,SAAS,GACT,WAAW,GACX,MAAM,GACN,QAAQ,GACR,IAAI,GACJ,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,UAAU,GACV,WAAW,GACX,OAAO,GACP,aAAa,GACb,cAAc,GACd,QAAQ,GACR,iBAAiB,GACjB,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,OAAO,GACP,KAAK,GACL,aAAa,GACb,QAAQ,GACR,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,UAAU,GACV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U,GACV,SAAS,GACT,WAAW,GACX,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,WAAW,GACX,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,GACV,mBAAmB,GACnB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Whether the text contains the query, ignoring case and diacritics ("zlta" finds "Žltá"), e.g. for the `filter`
3
+ * of UiSearchableSelect.
4
+ *
5
+ * @internal
6
+ */
7
+ export declare function matchesSearchQuery(textValue: string, query: string): boolean;
8
+ //# sourceMappingURL=matchesSearchQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchesSearchQuery.d.ts","sourceRoot":"","sources":["../../../src/@ui/@utils/matchesSearchQuery.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAS5E"}
@@ -0,0 +1,18 @@
1
+ // (C) 2026 GoodData Corporation
2
+ // "base" sensitivity compares letters only, so "a", "A" and "á" are equal
3
+ const collator = new Intl.Collator(undefined, { usage: "search", sensitivity: "base" });
4
+ /**
5
+ * Whether the text contains the query, ignoring case and diacritics ("zlta" finds "Žltá"), e.g. for the `filter`
6
+ * of UiSearchableSelect.
7
+ *
8
+ * @internal
9
+ */
10
+ export function matchesSearchQuery(textValue, query) {
11
+ // Intl.Collator compares whole strings, so compare every part of the text that is as long as the query
12
+ for (let start = 0; start + query.length <= textValue.length; start++) {
13
+ if (collator.compare(textValue.slice(start, start + query.length), query) === 0) {
14
+ return true;
15
+ }
16
+ }
17
+ return false;
18
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Scrolls `container` so that `element` is visible in it, like `element.scrollIntoView({ block: "nearest" })`, but
3
+ * without scrolling anything above `container`, such as the whole page. The native `element.scrollIntoView()` scrolls
4
+ * by default every scrollable ancestor.
5
+ *
6
+ * This can be replaced by `element.scrollIntoView({ block: "nearest", container: "nearest" })` in the future, once
7
+ * all the relevant browsers support the `container` option. As of October 2026, Chrome and Edge 140+ have it, Firefox
8
+ * and Safari don't.
9
+ *
10
+ * @internal
11
+ */
12
+ export declare function scrollIntoView(container: HTMLElement, element: HTMLElement): void;
13
+ //# sourceMappingURL=scrollIntoView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollIntoView.d.ts","sourceRoot":"","sources":["../../../src/@ui/@utils/scrollIntoView.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CASjF"}
@@ -0,0 +1,22 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /**
3
+ * Scrolls `container` so that `element` is visible in it, like `element.scrollIntoView({ block: "nearest" })`, but
4
+ * without scrolling anything above `container`, such as the whole page. The native `element.scrollIntoView()` scrolls
5
+ * by default every scrollable ancestor.
6
+ *
7
+ * This can be replaced by `element.scrollIntoView({ block: "nearest", container: "nearest" })` in the future, once
8
+ * all the relevant browsers support the `container` option. As of October 2026, Chrome and Edge 140+ have it, Firefox
9
+ * and Safari don't.
10
+ *
11
+ * @internal
12
+ */
13
+ export function scrollIntoView(container, element) {
14
+ const containerRect = container.getBoundingClientRect();
15
+ const elementRect = element.getBoundingClientRect();
16
+ if (elementRect.top < containerRect.top) {
17
+ container.scrollTop -= containerRect.top - elementRect.top;
18
+ }
19
+ else if (elementRect.bottom > containerRect.bottom) {
20
+ container.scrollTop += elementRect.bottom - containerRect.bottom;
21
+ }
22
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiIcon/icons.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAisCjD,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiIcon/icons.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAusCjD,CAAC"}
@@ -78,6 +78,7 @@ export const iconPaths = {
78
78
  copy: (_jsx("path", { d: "M17.0068 4.00391C17.417 4.00391 17.7686 4.15039 18.0615 4.44336C18.3545 4.73633 18.501 5.09115 18.501 5.50781V18.5059C18.501 18.916 18.3545 19.2676 18.0615 19.5605C17.7686 19.8535 17.417 20 17.0068 20H7.00684C6.59017 20 6.23535 19.8535 5.94238 19.5605C5.64941 19.2676 5.50293 18.916 5.50293 18.5059V16.0059H3.00293C2.58626 16.0059 2.23145 15.8594 1.93848 15.5664C1.64551 15.2734 1.49902 14.9186 1.49902 14.502V4.00391C1.49902 3.9388 1.51204 3.87695 1.53809 3.81836C1.56413 3.75326 1.59993 3.69792 1.64551 3.65234L5.15137 0.146484C5.19694 0.100911 5.24902 0.0651042 5.30762 0.0390625C5.37272 0.0130208 5.43783 0 5.50293 0H13.0029C13.4196 0 13.7744 0.146484 14.0674 0.439453C14.3604 0.732422 14.5068 1.08724 14.5068 1.50391V4.00391H17.0068ZM5.50293 1.21094L2.70996 4.00391H5.00488C5.1416 4.00391 5.25879 3.95508 5.35645 3.85742C5.4541 3.75977 5.50293 3.64258 5.50293 3.50586V1.21094ZM3.00293 15H5.50293V8.00781C5.50293 7.9362 5.51595 7.87109 5.54199 7.8125C5.56803 7.75391 5.60384 7.69857 5.64941 7.64648L9.14551 4.15039C9.19759 4.10482 9.25293 4.06901 9.31152 4.04297C9.37012 4.01693 9.43522 4.00391 9.50684 4.00391H13.501V1.50391C13.501 1.36719 13.4521 1.25 13.3545 1.15234C13.2568 1.05469 13.1396 1.00586 13.0029 1.00586H6.49902V3.50586C6.49902 3.91602 6.35254 4.26758 6.05957 4.56055C5.7666 4.85352 5.41504 5 5.00488 5H2.50488V14.502C2.50488 14.6387 2.55371 14.7559 2.65137 14.8535C2.74902 14.9512 2.86621 15 3.00293 15ZM9.50684 5.21484L6.71387 8.00781H8.99902C9.14225 8.00781 9.2627 7.95898 9.36035 7.86133C9.45801 7.76367 9.50684 7.64323 9.50684 7.5V5.21484ZM17.5049 18.5059V5.50781C17.5049 5.36458 17.4561 5.24414 17.3584 5.14648C17.2607 5.04883 17.1436 5 17.0068 5H10.5029V7.5C10.5029 7.91667 10.3564 8.27148 10.0635 8.56445C9.77051 8.85742 9.41569 9.00391 8.99902 9.00391H6.49902V18.5059C6.49902 18.6426 6.54785 18.7598 6.64551 18.8574C6.74316 18.9551 6.86361 19.0039 7.00684 19.0039H17.0068C17.1436 19.0039 17.2607 18.9551 17.3584 18.8574C17.4561 18.7598 17.5049 18.6426 17.5049 18.5059Z" })),
79
79
  rain: (_jsx("path", { d: "M16.0156 13.5059H5.99609C5.17578 13.5059 4.40104 13.3496 3.67188 13.0371C2.94271 12.7116 2.30469 12.2819 1.75781 11.748C1.21094 11.2012 0.78125 10.5632 0.46875 9.83398C0.15625 9.10482 0 8.33008 0 7.50977C0 6.67643 0.15625 5.89518 0.46875 5.16602C0.78125 4.43685 1.21094 3.80534 1.75781 3.27148C2.30469 2.72461 2.94271 2.29492 3.67188 1.98242C4.40104 1.6569 5.17578 1.49414 5.99609 1.49414C6.80339 1.49414 7.57161 1.65039 8.30078 1.96289C9.04297 2.27539 9.69401 2.71159 10.2539 3.27148C10.306 3.18034 10.3581 3.08919 10.4102 2.99805C10.4622 2.9069 10.5208 2.81576 10.5859 2.72461C10.8724 2.34701 11.224 2.04753 11.6406 1.82617C12.0703 1.60482 12.526 1.49414 13.0078 1.49414C13.8281 1.49414 14.5312 1.78711 15.1172 2.37305C15.7031 2.95898 15.9961 3.66862 15.9961 4.50195C15.9961 4.67122 15.9831 4.84701 15.957 5.0293C15.931 5.19857 15.8854 5.36133 15.8203 5.51758C15.8464 5.51758 15.8724 5.51758 15.8984 5.51758C15.9375 5.51758 15.9766 5.51758 16.0156 5.51758C16.5625 5.51758 17.0768 5.62174 17.5586 5.83008C18.0404 6.03841 18.4635 6.32487 18.8281 6.68945C19.1927 7.05404 19.4792 7.47721 19.6875 7.95898C19.8958 8.44076 20 8.95508 20 9.50195C20 10.0618 19.8958 10.5827 19.6875 11.0645C19.4792 11.5462 19.1927 11.9694 18.8281 12.334C18.4635 12.6986 18.0404 12.985 17.5586 13.1934C17.0768 13.4017 16.5625 13.5059 16.0156 13.5059ZM5.99609 2.50977C5.30599 2.50977 4.65495 2.63997 4.04297 2.90039C3.44401 3.16081 2.91667 3.51888 2.46094 3.97461C2.00521 4.41732 1.64714 4.94466 1.38672 5.55664C1.1263 6.16862 0.996094 6.81966 0.996094 7.50977C0.996094 8.19987 1.1263 8.85091 1.38672 9.46289C1.64714 10.0618 2.00521 10.5892 2.46094 11.0449C2.91667 11.4876 3.44401 11.8457 4.04297 12.1191C4.65495 12.3796 5.30599 12.5098 5.99609 12.5098H16.0156C16.8359 12.5098 17.5391 12.2168 18.125 11.6309C18.7109 11.0449 19.0039 10.3353 19.0039 9.50195C19.0039 8.68164 18.7109 7.97852 18.125 7.39258C17.5391 6.80664 16.8359 6.51367 16.0156 6.51367C15.8333 6.51367 15.6576 6.5332 15.4883 6.57227C15.319 6.59831 15.1497 6.63737 14.9805 6.68945C14.8763 6.72852 14.7656 6.73503 14.6484 6.70898C14.5443 6.66992 14.4596 6.59831 14.3945 6.49414C14.3294 6.40299 14.3034 6.29883 14.3164 6.18164C14.3294 6.06445 14.375 5.9668 14.4531 5.88867C14.6224 5.69336 14.7526 5.47852 14.8438 5.24414C14.9479 5.00977 15 4.76237 15 4.50195C15 3.95508 14.8047 3.48633 14.4141 3.0957C14.0234 2.70508 13.5547 2.50977 13.0078 2.50977C12.6823 2.50977 12.3763 2.58138 12.0898 2.72461C11.8164 2.85482 11.582 3.05013 11.3867 3.31055C11.2695 3.4668 11.1784 3.63607 11.1133 3.81836C11.0482 4.00065 11.0091 4.18294 10.9961 4.36523C10.9961 4.48242 10.9635 4.58008 10.8984 4.6582C10.8333 4.73633 10.7487 4.78841 10.6445 4.81445C10.5404 4.85352 10.4362 4.85352 10.332 4.81445C10.2279 4.77539 10.1497 4.7168 10.0977 4.63867C10.0456 4.56055 9.98698 4.48242 9.92188 4.4043C9.85677 4.32617 9.79818 4.25456 9.74609 4.18945C9.26432 3.6556 8.69792 3.24544 8.04688 2.95898C7.39583 2.65951 6.71224 2.50977 5.99609 2.50977ZM2.5 16.4941C2.35677 16.4941 2.23307 16.4486 2.12891 16.3574C2.03776 16.2533 1.99219 16.1361 1.99219 16.0059V15.0098C1.99219 14.8665 2.03776 14.7493 2.12891 14.6582C2.23307 14.554 2.35677 14.502 2.5 14.502C2.64323 14.502 2.76042 14.554 2.85156 14.6582C2.95573 14.7493 3.00781 14.8665 3.00781 15.0098V16.0059C3.00781 16.1361 2.95573 16.2533 2.85156 16.3574C2.76042 16.4486 2.64323 16.4941 2.5 16.4941ZM6.50391 16.4941C6.36068 16.4941 6.23698 16.4486 6.13281 16.3574C6.04167 16.2533 5.99609 16.1361 5.99609 16.0059V15.0098C5.99609 14.8665 6.04167 14.7493 6.13281 14.6582C6.23698 14.554 6.36068 14.502 6.50391 14.502C6.63411 14.502 6.74479 14.554 6.83594 14.6582C6.9401 14.7493 6.99219 14.8665 6.99219 15.0098V16.0059C6.99219 16.1361 6.9401 16.2533 6.83594 16.3574C6.74479 16.4486 6.63411 16.4941 6.50391 16.4941ZM10.5078 16.4941C10.3646 16.4941 10.2409 16.4486 10.1367 16.3574C10.0456 16.2533 10 16.1361 10 16.0059V15.0098C10 14.8665 10.0456 14.7493 10.1367 14.6582C10.2409 14.554 10.3646 14.502 10.5078 14.502C10.638 14.502 10.7487 14.554 10.8398 14.6582C10.944 14.7493 10.9961 14.8665 10.9961 15.0098V16.0059C10.9961 16.1361 10.944 16.2533 10.8398 16.3574C10.7487 16.4486 10.638 16.4941 10.5078 16.4941ZM14.4922 16.4941C14.362 16.4941 14.2448 16.4486 14.1406 16.3574C14.0495 16.2533 14.0039 16.1361 14.0039 16.0059V15.0098C14.0039 14.8665 14.0495 14.7493 14.1406 14.6582C14.2448 14.554 14.362 14.502 14.4922 14.502C14.6354 14.502 14.7526 14.554 14.8438 14.6582C14.9479 14.7493 15 14.8665 15 15.0098V16.0059C15 16.1361 14.9479 16.2533 14.8438 16.3574C14.7526 16.4486 14.6354 16.4941 14.4922 16.4941ZM18.4961 16.4941C18.3659 16.4941 18.2487 16.4486 18.1445 16.3574C18.0534 16.2533 18.0078 16.1361 18.0078 16.0059V15.0098C18.0078 14.8665 18.0534 14.7493 18.1445 14.6582C18.2487 14.554 18.3659 14.502 18.4961 14.502C18.6393 14.502 18.7565 14.554 18.8477 14.6582C18.9518 14.7493 19.0039 14.8665 19.0039 15.0098V16.0059C19.0039 16.1361 18.9518 16.2533 18.8477 16.3574C18.7565 16.4486 18.6393 16.4941 18.4961 16.4941ZM16.5039 18.5059C16.3607 18.5059 16.237 18.4603 16.1328 18.3691C16.0417 18.265 15.9961 18.1413 15.9961 17.998V17.002C15.9961 16.8587 16.0417 16.7415 16.1328 16.6504C16.237 16.5462 16.3607 16.4941 16.5039 16.4941C16.6341 16.4941 16.7448 16.5462 16.8359 16.6504C16.9401 16.7415 16.9922 16.8587 16.9922 17.002V17.998C16.9922 18.1413 16.9401 18.265 16.8359 18.3691C16.7448 18.4603 16.6341 18.5059 16.5039 18.5059ZM12.5 18.5059C12.3568 18.5059 12.2331 18.4603 12.1289 18.3691C12.0378 18.265 11.9922 18.1413 11.9922 17.998V17.002C11.9922 16.8587 12.0378 16.7415 12.1289 16.6504C12.2331 16.5462 12.3568 16.4941 12.5 16.4941C12.6432 16.4941 12.7604 16.5462 12.8516 16.6504C12.9557 16.7415 13.0078 16.8587 13.0078 17.002V17.998C13.0078 18.1413 12.9557 18.265 12.8516 18.3691C12.7604 18.4603 12.6432 18.5059 12.5 18.5059ZM8.49609 18.5059C8.36589 18.5059 8.2487 18.4603 8.14453 18.3691C8.05339 18.265 8.00781 18.1413 8.00781 17.998V17.002C8.00781 16.8587 8.05339 16.7415 8.14453 16.6504C8.2487 16.5462 8.36589 16.4941 8.49609 16.4941C8.63932 16.4941 8.75651 16.5462 8.84766 16.6504C8.95182 16.7415 9.00391 16.8587 9.00391 17.002V17.998C9.00391 18.1413 8.95182 18.265 8.84766 18.3691C8.75651 18.4603 8.63932 18.5059 8.49609 18.5059ZM4.49219 18.5059C4.36198 18.5059 4.24479 18.4603 4.14062 18.3691C4.04948 18.265 4.00391 18.1413 4.00391 17.998V17.002C4.00391 16.8587 4.04948 16.7415 4.14062 16.6504C4.24479 16.5462 4.36198 16.4941 4.49219 16.4941C4.63542 16.4941 4.7526 16.5462 4.84375 16.6504C4.94792 16.7415 5 16.8587 5 17.002V17.998C5 18.1413 4.94792 18.265 4.84375 18.3691C4.7526 18.4603 4.63542 18.5059 4.49219 18.5059Z" })),
80
80
  earth: (_jsx("path", { d: "M10 0C10.6706 0 11.3249 0.0651042 11.9629 0.195312C12.6074 0.325521 13.2292 0.514323 13.8281 0.761719C14.4271 1.00911 15 1.3151 15.5469 1.67969C16.0938 2.04427 16.6016 2.46094 17.0703 2.92969C17.5456 3.40495 17.9622 3.91602 18.3203 4.46289C18.6849 5.00326 18.9909 5.57292 19.2383 6.17188C19.4922 6.77083 19.681 7.39258 19.8047 8.03711C19.9349 8.68164 20 9.33594 20 10C20 10.6706 19.9349 11.3281 19.8047 11.9727C19.681 12.6107 19.4922 13.2292 19.2383 13.8281C18.9909 14.4271 18.6849 15 18.3203 15.5469C17.9622 16.0938 17.5456 16.6016 17.0703 17.0703C16.6016 17.5456 16.0938 17.9655 15.5469 18.3301C15 18.6947 14.4271 19.0007 13.8281 19.248C13.2292 19.4954 12.6074 19.681 11.9629 19.8047C11.3249 19.9349 10.6706 20 10 20C9.32943 20 8.67188 19.9349 8.02734 19.8047C7.38932 19.681 6.77083 19.4954 6.17188 19.248C5.57292 19.0007 5 18.6947 4.45312 18.3301C3.90625 17.9655 3.39844 17.5456 2.92969 17.0703C2.45443 16.6016 2.03451 16.0938 1.66992 15.5469C1.31185 15 1.00586 14.4271 0.751953 13.8281C0.504557 13.2292 0.315755 12.6107 0.185547 11.9727C0.061849 11.3281 0 10.6706 0 10C0 9.33594 0.061849 8.68164 0.185547 8.03711C0.315755 7.39258 0.504557 6.77083 0.751953 6.17188C1.00586 5.57292 1.31185 5.00326 1.66992 4.46289C2.03451 3.91602 2.45443 3.40495 2.92969 2.92969C3.39844 2.46094 3.90625 2.04427 4.45312 1.67969C5 1.3151 5.57292 1.00911 6.17188 0.761719C6.77083 0.514323 7.38932 0.325521 8.02734 0.195312C8.67188 0.0651042 9.32943 0 10 0ZM10 1.00586C8.84766 1.00586 7.76042 1.21094 6.73828 1.62109C5.71615 2.02474 4.80469 2.58138 4.00391 3.29102C3.20964 4.00065 2.55534 4.84049 2.04102 5.81055C1.52669 6.77409 1.20117 7.8125 1.06445 8.92578C1.1556 8.9388 1.25 8.95508 1.34766 8.97461C1.45182 8.99414 1.55599 9.01693 1.66016 9.04297C2.1224 9.14714 2.47721 9.26432 2.72461 9.39453C2.97201 9.51823 3.14128 9.66797 3.23242 9.84375C3.35612 10.0977 3.35938 10.3418 3.24219 10.5762C3.13151 10.8105 3.00781 11.0221 2.87109 11.2109C2.81901 11.2826 2.76042 11.3672 2.69531 11.4648C2.63672 11.5625 2.60091 11.6374 2.58789 11.6895C2.70508 12.1712 2.67904 12.6595 2.50977 13.1543C2.34701 13.6426 2.20052 14.0104 2.07031 14.2578C2.44792 14.9609 2.91341 15.6055 3.4668 16.1914C4.02018 16.7708 4.63867 17.2689 5.32227 17.6855C6.00586 18.1022 6.74154 18.4277 7.5293 18.6621C8.31706 18.89 9.14062 19.0039 10 19.0039C11.2435 19.0039 12.4089 18.7695 13.4961 18.3008C14.5898 17.8255 15.5436 17.181 16.3574 16.3672C17.1777 15.5534 17.8223 14.5996 18.291 13.5059C18.7663 12.4121 19.0039 11.2435 19.0039 10C19.0039 9.46615 18.9583 8.94531 18.8672 8.4375C18.7783 7.94237 18.6478 7.46321 18.4785 6.99902C18.51 7.19029 18.4786 7.36024 18.3789 7.50977C18.2747 7.65951 18.1934 7.76693 18.1348 7.83203C18.0436 7.9362 17.9297 8.05013 17.793 8.17383C17.6628 8.29102 17.5065 8.43099 17.3242 8.59375C17.2396 8.67188 17.1484 8.75326 17.0508 8.83789C16.9531 8.92253 16.8522 9.01367 16.748 9.11133C16.6374 9.21549 16.5723 9.33268 16.5527 9.46289C16.5397 9.5931 16.5495 9.80143 16.582 10.0879C16.6081 10.2767 16.6243 10.485 16.6309 10.7129C16.6439 10.9408 16.6243 11.1849 16.5723 11.4453C16.5267 11.6992 16.4323 11.9727 16.2891 12.2656C16.1458 12.5586 15.9342 12.8646 15.6543 13.1836C15.6022 13.2422 15.5501 13.3366 15.498 13.4668C15.446 13.5905 15.3939 13.7207 15.3418 13.8574C15.2507 14.0853 15.1432 14.3359 15.0195 14.6094C14.9023 14.8763 14.7396 15.127 14.5312 15.3613C14.2708 15.6413 13.9648 15.8529 13.6133 15.9961C13.2617 16.1393 12.8678 16.2109 12.4316 16.2109C12.2689 16.2109 12.1159 16.1719 11.9727 16.0938C11.8359 16.0156 11.7188 15.9017 11.6211 15.752C11.5495 15.6543 11.4876 15.5404 11.4355 15.4102C11.3835 15.2734 11.3379 15.1172 11.2988 14.9414C11.2337 14.6484 11.1816 14.3197 11.1426 13.9551C11.1035 13.584 11.0677 13.1966 11.0352 12.793C11.0156 12.5456 10.9961 12.2949 10.9766 12.041C10.957 11.7871 10.931 11.5332 10.8984 11.2793C10.8724 11.0254 10.8366 10.778 10.791 10.5371C10.752 10.2962 10.7031 10.0684 10.6445 9.85352C10.5339 9.41732 10.3971 9.07552 10.2344 8.82812C10.0716 8.58073 9.87956 8.42122 9.6582 8.34961C9.53451 8.31055 9.41081 8.28125 9.28711 8.26172C9.16992 8.24219 9.04297 8.23242 8.90625 8.23242C8.79557 8.23242 8.68815 8.23893 8.58398 8.25195C8.47982 8.25846 8.37565 8.26823 8.27148 8.28125C8.16732 8.29427 8.06641 8.30404 7.96875 8.31055C7.87109 8.31706 7.77344 8.32031 7.67578 8.32031C7.27865 8.32031 6.9401 8.21289 6.66016 7.99805C6.38021 7.7832 6.13932 7.44141 5.9375 6.97266C5.76172 6.58203 5.66732 6.15885 5.6543 5.70312C5.64128 5.24089 5.70638 4.7819 5.84961 4.32617C5.99935 3.85091 6.2207 3.41797 6.51367 3.02734C6.80664 2.63021 7.15495 2.29818 7.55859 2.03125C8.02083 1.72526 8.43424 1.50391 8.79883 1.36719C9.16341 1.23047 9.51172 1.16211 9.84375 1.16211C10.1172 1.16211 10.3971 1.20443 10.6836 1.28906C10.9701 1.3737 11.2956 1.51367 11.6602 1.70898C11.8945 1.83268 12.1029 1.91081 12.2852 1.94336C12.4674 1.97591 12.6302 1.99219 12.7734 1.99219H12.9492L13.3203 1.97266C13.3854 1.96615 13.4505 1.96289 13.5156 1.96289C13.6263 1.96289 13.7533 1.97266 13.8965 1.99219C14.0397 2.01172 14.1927 2.05729 14.3555 2.12891C14.0299 1.94661 13.6947 1.78711 13.3496 1.65039C13.0046 1.51367 12.6497 1.39648 12.2852 1.29883C11.9206 1.20117 11.5462 1.12956 11.1621 1.08398C10.7845 1.0319 10.3971 1.00586 10 1.00586ZM9.84375 2.1582C9.61589 2.1582 9.36198 2.2168 9.08203 2.33398C8.80859 2.44466 8.48307 2.6237 8.10547 2.87109C7.76042 3.09896 7.47721 3.36914 7.25586 3.68164C7.04102 3.99414 6.88477 4.31966 6.78711 4.6582C6.68945 4.99674 6.64714 5.33529 6.66016 5.67383C6.67318 6.00586 6.73828 6.30859 6.85547 6.58203C7.01823 6.95312 7.16471 7.17122 7.29492 7.23633C7.43164 7.29492 7.55859 7.32422 7.67578 7.32422C7.7474 7.32422 7.82227 7.32096 7.90039 7.31445C7.98503 7.30794 8.06966 7.29818 8.1543 7.28516C8.26497 7.27214 8.38216 7.25911 8.50586 7.24609C8.63607 7.23307 8.76953 7.22656 8.90625 7.22656C9.09505 7.22656 9.27734 7.24284 9.45312 7.27539C9.62891 7.30143 9.80143 7.34375 9.9707 7.40234C10.3678 7.53255 10.6999 7.77995 10.9668 8.14453C11.2402 8.5026 11.4551 8.98763 11.6113 9.59961C11.6764 9.83398 11.7318 10.0814 11.7773 10.3418C11.8229 10.6022 11.8587 10.8659 11.8848 11.1328C11.9173 11.3997 11.9434 11.6667 11.9629 11.9336C11.9889 12.2005 12.0117 12.4577 12.0312 12.7051C12.0573 13.0371 12.0833 13.3561 12.1094 13.6621C12.1419 13.9616 12.181 14.2318 12.2266 14.4727C12.2721 14.7331 12.3177 14.9154 12.3633 15.0195C12.4089 15.1237 12.4414 15.1855 12.4609 15.2051C13.112 15.1986 13.5579 15.0228 13.7988 14.6777C14.0397 14.3327 14.2415 13.9421 14.4043 13.5059C14.4759 13.3171 14.5475 13.138 14.6191 12.9688C14.6973 12.793 14.7917 12.6432 14.9023 12.5195C15.3255 12.0443 15.5534 11.6243 15.5859 11.2598C15.625 10.8887 15.625 10.5339 15.5859 10.1953C15.5534 9.90234 15.5469 9.59635 15.5664 9.27734C15.5924 8.95833 15.7617 8.6556 16.0742 8.36914C16.1849 8.27148 16.2891 8.18034 16.3867 8.0957C16.4844 8.00456 16.5755 7.92318 16.6602 7.85156C16.7904 7.72786 16.9173 7.61068 17.041 7.5C17.1712 7.38281 17.2786 7.2819 17.3633 7.19727C17.2656 7.1582 17.1582 7.11914 17.041 7.08008C16.9238 7.03451 16.8262 6.9987 16.748 6.97266C16.4616 6.875 16.2174 6.74154 16.0156 6.57227C15.8203 6.39648 15.6543 6.20117 15.5176 5.98633C15.3809 5.77148 15.2669 5.54688 15.1758 5.3125C15.0846 5.07161 14.9967 4.83398 14.9121 4.59961C14.8079 4.29362 14.6973 4.00716 14.5801 3.74023C14.4629 3.47331 14.3099 3.27148 14.1211 3.13477C14.0169 3.06315 13.916 3.01758 13.8184 2.99805C13.7272 2.97852 13.6263 2.96875 13.5156 2.96875C13.4635 2.96875 13.4115 2.97201 13.3594 2.97852H13.1934C13.1283 2.98503 13.0599 2.99154 12.9883 2.99805H12.7734C12.5846 2.99805 12.3568 2.97526 12.0898 2.92969C11.8294 2.88411 11.5299 2.77018 11.1914 2.58789C10.9049 2.43815 10.6543 2.33073 10.4395 2.26562C10.2311 2.19401 10.0326 2.1582 9.84375 2.1582ZM0.996094 10C0.996094 10.5273 1.03841 11.0417 1.12305 11.543C1.21419 12.0443 1.3444 12.5293 1.51367 12.998C1.57227 12.8158 1.61458 12.6302 1.64062 12.4414C1.66667 12.2461 1.6569 12.0671 1.61133 11.9043C1.55273 11.6634 1.57878 11.4355 1.68945 11.2207C1.80664 11.0059 1.92708 10.8105 2.05078 10.6348C2.08984 10.5892 2.13216 10.5339 2.17773 10.4688C2.22331 10.3971 2.25911 10.3353 2.28516 10.2832C2.22656 10.2507 2.12565 10.2116 1.98242 10.166C1.83919 10.1139 1.6276 10.0553 1.34766 9.99023C1.28906 9.97721 1.23047 9.96745 1.17188 9.96094C1.11328 9.94792 1.05794 9.93815 1.00586 9.93164H0.996094V10ZM14.7656 2.37305C15.0651 2.60091 15.2897 2.88737 15.4395 3.23242C15.5957 3.57096 15.7357 3.91602 15.8594 4.26758C16.0026 4.67773 16.1523 5.04557 16.3086 5.37109C16.4714 5.6901 16.7253 5.9082 17.0703 6.02539C17.3893 6.13607 17.666 6.24349 17.9004 6.34766C18.1348 6.45182 18.3008 6.5918 18.3984 6.76758C18.2227 6.31185 18.0111 5.87565 17.7637 5.45898C17.5163 5.03581 17.2396 4.63867 16.9336 4.26758C16.6276 3.89648 16.2923 3.55143 15.9277 3.23242C15.5632 2.91341 15.1758 2.62695 14.7656 2.37305Z" })),
81
+ globe: (_jsx("path", { transform: "translate(1 1)", d: "M15.3638 2.63753C15.7893 3.06324 16.1655 3.52288 16.4923 4.01645C16.8191 4.50386 17.0935 5.01902 17.3155 5.56195C17.5375 6.09871 17.7071 6.65707 17.8243 7.23702C17.9414 7.8108 18 8.4 18 9.00463C18 9.60308 17.9414 10.1923 17.8243 10.7722C17.7071 11.3522 17.5375 11.9105 17.3155 12.4473C17.0935 12.9841 16.8191 13.4992 16.4923 13.9928C16.1655 14.4864 15.7893 14.9429 15.3638 15.3625C14.9383 15.7882 14.4789 16.1676 13.9856 16.5008C13.4985 16.8278 12.9836 17.1023 12.4409 17.3244C11.9044 17.5465 11.3464 17.7131 10.7667 17.8242C10.1871 17.9414 9.59815 18 9 18C8.39568 18 7.8037 17.9414 7.22405 17.8242C6.65057 17.7131 6.0925 17.5465 5.54985 17.3244C5.01336 17.1023 4.49846 16.8278 4.00514 16.5008C3.51799 16.1676 3.06167 15.7882 2.63618 15.3625C2.21069 14.9429 1.83453 14.4864 1.50771 13.9928C1.18088 13.4992 0.903392 12.9841 0.675231 12.4473C0.453237 11.9105 0.283659 11.3522 0.166495 10.7722C0.0554985 10.1923 0 9.60308 0 9.00463C0 8.4 0.0554985 7.8108 0.166495 7.23702C0.283659 6.65707 0.453237 6.09871 0.675231 5.56195C0.903392 5.01902 1.18088 4.50386 1.50771 4.01645C1.83453 3.52288 2.21069 3.06324 2.63618 2.63753C3.06167 2.21183 3.51799 1.83548 4.00514 1.50848C4.49846 1.18149 5.01336 0.906941 5.54985 0.684833C6.0925 0.456555 6.65057 0.286889 7.22405 0.175835C7.8037 0.0586118 8.39568 0 9 0C9.59815 0 10.1871 0.0586118 10.7667 0.175835C11.3464 0.286889 11.9044 0.456555 12.4409 0.684833C12.9836 0.906941 13.4985 1.18149 13.9856 1.50848C14.4789 1.83548 14.9383 2.21183 15.3638 2.63753ZM14.1984 8.52339H17.001C16.9517 8.29512 16.8654 8.07301 16.742 7.85707C16.6249 7.63496 16.4738 7.42211 16.2888 7.21851C16.1038 7.00874 15.8849 6.80823 15.6321 6.61697C15.3854 6.41954 15.1079 6.23445 14.7996 6.0617C14.6454 5.98149 14.4882 5.90437 14.3279 5.83033C14.1675 5.75013 14.001 5.67609 13.8284 5.60823C13.8839 5.8365 13.9332 6.07095 13.9764 6.31157C14.0195 6.54602 14.0565 6.78663 14.0874 7.03342C14.1182 7.27404 14.1429 7.52082 14.1614 7.77378C14.1799 8.02057 14.1922 8.27044 14.1984 8.52339ZM13.2549 8.52339C13.2425 8.23342 13.224 7.94653 13.1994 7.66273C13.1747 7.37892 13.1408 7.10129 13.0976 6.82982C13.0606 6.55219 13.0113 6.28072 12.9496 6.01542C12.8941 5.75013 12.8294 5.491 12.7554 5.23805C12.5026 5.16401 12.2436 5.09923 11.9784 5.0437C11.7194 4.98817 11.4512 4.93882 11.1737 4.89563C10.8962 4.85244 10.6156 4.81851 10.332 4.79383C10.0483 4.76915 9.76156 4.75373 9.47174 4.74756V8.52339H13.2549ZM9.47174 3.79434C9.72456 3.80051 9.97431 3.81594 10.221 3.84062C10.4738 3.85913 10.7205 3.8838 10.9609 3.91465C11.2076 3.9455 11.4481 3.98252 11.6824 4.02571C11.9229 4.06273 12.1603 4.109 12.3947 4.16452C12.3207 3.99794 12.2467 3.83445 12.1727 3.67404C12.0987 3.50746 12.0185 3.35013 11.9322 3.20206C11.7595 2.89357 11.5776 2.61594 11.3864 2.36915C11.1953 2.1162 10.9949 1.89717 10.7852 1.71208C10.5755 1.52082 10.3597 1.36658 10.1377 1.24936C9.92189 1.13213 9.6999 1.04884 9.47174 0.999486V3.79434ZM8.52826 0.999486C8.3001 1.04884 8.07503 1.13213 7.85303 1.24936C7.63104 1.36658 7.41521 1.52082 7.20555 1.71208C7.00206 1.89717 6.80164 2.1162 6.60432 2.36915C6.41316 2.61594 6.23433 2.89357 6.06783 3.20206C5.9815 3.35013 5.89825 3.50746 5.81809 3.67404C5.74409 3.83445 5.67318 3.99794 5.60534 4.16452C5.8335 4.109 6.06475 4.06273 6.29908 4.02571C6.53957 3.98252 6.78315 3.9455 7.02981 3.91465C7.27646 3.8838 7.52312 3.85913 7.76978 3.84062C8.01644 3.81594 8.26927 3.80051 8.52826 3.79434V0.999486ZM8.52826 4.74756C8.23227 4.75373 7.94245 4.76915 7.65879 4.79383C7.37513 4.81851 7.09455 4.85244 6.81706 4.89563C6.54574 4.93882 6.27749 4.98817 6.01233 5.0437C5.74717 5.09923 5.48818 5.16401 5.23535 5.23805C5.16136 5.491 5.09661 5.75013 5.04111 6.01542C4.98561 6.28072 4.93628 6.55219 4.89311 6.82982C4.85612 7.10129 4.8222 7.37892 4.79137 7.66273C4.7667 7.94653 4.75128 8.23342 4.74512 8.52339H8.52826V4.74756ZM3.79239 8.52339C3.80473 8.27044 3.82014 8.02057 3.83864 7.77378C3.85714 7.52082 3.88181 7.27404 3.91264 7.03342C3.94347 6.78663 3.98047 6.54602 4.02364 6.31157C4.0668 6.07095 4.11305 5.8365 4.16238 5.60823C3.99589 5.67609 3.83248 5.75013 3.67215 5.83033C3.51182 5.90437 3.35457 5.98149 3.20041 6.0617C2.89209 6.23445 2.61151 6.41954 2.35868 6.61697C2.11202 6.80823 1.8962 7.00874 1.7112 7.21851C1.52621 7.42211 1.37205 7.63496 1.24872 7.85707C1.13155 8.07301 1.0483 8.29512 0.998972 8.52339H3.79239ZM3.79239 9.47661H0.998972C1.0483 9.70488 1.13155 9.93008 1.24872 10.1522C1.37205 10.3681 1.52621 10.581 1.7112 10.7907C1.8962 11.0005 2.11202 11.201 2.35868 11.3923C2.61151 11.5835 2.89209 11.7656 3.20041 11.9383C3.35457 12.0247 3.51182 12.1049 3.67215 12.1789C3.83248 12.253 3.99589 12.3239 4.16238 12.3918C4.11305 12.1635 4.0668 11.9321 4.02364 11.6977C3.98047 11.4571 3.94347 11.2165 3.91264 10.9758C3.88181 10.729 3.85714 10.4823 3.83864 10.2355C3.82014 9.98252 3.80473 9.72956 3.79239 9.47661ZM4.74512 9.47661C4.75128 9.76658 4.7667 10.0535 4.79137 10.3373C4.8222 10.6211 4.85612 10.9018 4.89311 11.1794C4.93628 11.4509 4.98561 11.7193 5.04111 11.9846C5.09661 12.2499 5.16136 12.509 5.23535 12.762C5.48818 12.836 5.74717 12.9008 6.01233 12.9563C6.27749 13.0118 6.54574 13.0612 6.81706 13.1044C7.09455 13.1476 7.37513 13.1815 7.65879 13.2062C7.94245 13.2308 8.23227 13.2494 8.52826 13.2617V9.47661H4.74512ZM8.52826 14.2057C8.26927 14.1995 8.01644 14.1871 7.76978 14.1686C7.52312 14.1501 7.27646 14.1255 7.02981 14.0946C6.78315 14.0638 6.53957 14.0267 6.29908 13.9835C6.06475 13.9404 5.8335 13.891 5.60534 13.8355C5.67318 14.0082 5.74409 14.1748 5.81809 14.3352C5.89825 14.4956 5.9815 14.6499 6.06783 14.7979C6.23433 15.1126 6.41316 15.3964 6.60432 15.6494C6.80164 15.8961 7.00206 16.1121 7.20555 16.2972C7.41521 16.4823 7.63104 16.6334 7.85303 16.7506C8.07503 16.8679 8.3001 16.9512 8.52826 17.0005V14.2057ZM9.47174 17.0005C9.6999 16.9512 9.92189 16.8679 10.1377 16.7506C10.3597 16.6334 10.5755 16.4823 10.7852 16.2972C10.9949 16.1121 11.1953 15.8961 11.3864 15.6494C11.5776 15.3964 11.7595 15.1126 11.9322 14.7979C12.0185 14.6499 12.0987 14.4956 12.1727 14.3352C12.2528 14.1748 12.3268 14.0082 12.3947 13.8355C12.1603 13.891 11.9229 13.9404 11.6824 13.9835C11.4481 14.0267 11.2076 14.0638 10.9609 14.0946C10.7205 14.1255 10.4738 14.1501 10.221 14.1686C9.97431 14.1871 9.72456 14.1995 9.47174 14.2057V17.0005ZM9.47174 13.2617C9.76156 13.2494 10.0483 13.2308 10.332 13.2062C10.6156 13.1815 10.8962 13.1476 11.1737 13.1044C11.4512 13.0612 11.7194 13.0118 11.9784 12.9563C12.2436 12.9008 12.5026 12.836 12.7554 12.762C12.8294 12.509 12.8941 12.2499 12.9496 11.9846C13.0113 11.7193 13.0606 11.4509 13.0976 11.1794C13.1408 10.9018 13.1747 10.6211 13.1994 10.3373C13.224 10.0535 13.2425 9.76658 13.2549 9.47661H9.47174V13.2617ZM14.1984 9.47661C14.1922 9.72956 14.1799 9.98252 14.1614 10.2355C14.1429 10.4823 14.1182 10.729 14.0874 10.9758C14.0565 11.2165 14.0195 11.4571 13.9764 11.6977C13.9332 11.9321 13.8839 12.1635 13.8284 12.3918C14.001 12.3239 14.1675 12.253 14.3279 12.1789C14.4882 12.1049 14.6454 12.0247 14.7996 11.9383C15.1079 11.7656 15.3854 11.5835 15.6321 11.3923C15.8849 11.201 16.1038 11.0005 16.2888 10.7907C16.4738 10.581 16.6249 10.3681 16.742 10.1522C16.8654 9.93008 16.9517 9.70488 17.001 9.47661H14.1984ZM16.5108 6.10797C16.3073 5.57738 16.0514 5.07763 15.7431 4.60874C15.4347 4.13368 15.0832 3.7018 14.6886 3.31311C14.2939 2.91825 13.8592 2.56658 13.3844 2.2581C12.9157 1.94961 12.4193 1.69049 11.8952 1.48072C12.0493 1.65964 12.1973 1.85398 12.3392 2.06375C12.4872 2.27352 12.629 2.49871 12.7646 2.73933C12.9065 3.00463 13.0391 3.28226 13.1624 3.57224C13.2919 3.86221 13.409 4.16452 13.5139 4.47918C13.8284 4.58406 14.1305 4.70129 14.4204 4.83085C14.7102 4.95424 14.9877 5.08997 15.2528 5.23805C15.4933 5.36761 15.7184 5.50643 15.9281 5.6545C16.1377 5.7964 16.332 5.94756 16.5108 6.10797ZM6.10483 1.48072C5.57451 1.69049 5.07503 1.94961 4.60637 2.2581C4.13772 2.56658 3.70606 2.91825 3.31141 3.31311C2.91675 3.7018 2.56526 4.13368 2.25694 4.60874C1.94861 5.07763 1.6927 5.57738 1.48921 6.10797C1.66804 5.94756 1.86228 5.7964 2.07194 5.6545C2.2816 5.50643 2.5036 5.36761 2.73792 5.23805C3.00308 5.08997 3.28058 4.95424 3.5704 4.83085C3.86639 4.70129 4.16855 4.58406 4.47688 4.47918C4.58171 4.16452 4.69579 3.86221 4.81912 3.57224C4.94861 3.28226 5.08736 3.00463 5.23535 2.73933C5.37102 2.49871 5.50976 2.27352 5.65159 2.06375C5.79959 1.85398 5.95067 1.65964 6.10483 1.48072ZM1.48921 11.892C1.6927 12.4226 1.94861 12.9255 2.25694 13.4005C2.56526 13.8694 2.91675 14.3013 3.31141 14.6961C3.70606 15.091 4.13772 15.4427 4.60637 15.7512C5.07503 16.0596 5.57451 16.3157 6.10483 16.5193C5.95067 16.3404 5.79959 16.146 5.65159 15.9362C5.50976 15.7265 5.37102 15.5013 5.23535 15.2607C5.08736 14.9954 4.94861 14.7177 4.81912 14.4278C4.69579 14.1378 4.58171 13.8355 4.47688 13.5208C4.16855 13.4159 3.86639 13.3018 3.5704 13.1784C3.28058 13.0488 3.00308 12.91 2.73792 12.762C2.5036 12.6324 2.2816 12.4967 2.07194 12.3548C1.86228 12.2067 1.66804 12.0524 1.48921 11.892ZM11.8952 16.5193C12.4193 16.3157 12.9157 16.0596 13.3844 15.7512C13.8592 15.4427 14.2939 15.091 14.6886 14.6961C15.0832 14.3013 15.4347 13.8694 15.7431 13.4005C16.0514 12.9255 16.3073 12.4226 16.5108 11.892C16.332 12.0524 16.1377 12.2067 15.9281 12.3548C15.7184 12.4967 15.4933 12.6324 15.2528 12.762C14.9877 12.91 14.7102 13.0488 14.4204 13.1784C14.1305 13.3018 13.8284 13.4159 13.5139 13.5208C13.409 13.8355 13.2919 14.1378 13.1624 14.4278C13.0391 14.7177 12.9065 14.9954 12.7646 15.2607C12.629 15.5013 12.4872 15.7265 12.3392 15.9362C12.1973 16.146 12.0493 16.3404 11.8952 16.5193Z" })),
81
82
  geoCollection: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M6 9H0.200195L0 8.5V5.65918L1.50098 3H6V9Z" }), _jsx("path", { d: "M10 16H8.5L8 15L7.5 14.5L7 15H6V14H4L3 13.0166L1.5 12.5L0 13.0166L1.00098 11L0.600586 10H10V16Z", fillOpacity: "0.6" }), _jsx("path", { d: "M10.4473 3.5752H11.501L12.001 4L13.001 3.5L14.4502 5.5L15.001 6.5H16.001L16.501 6.44922L17.001 6L18.501 5.5L19.001 4H20.001L19.501 5L20.001 6L18.791 6.84473V7.81445L17.6211 8.20996L17.5469 9H7V3H10L10.4473 3.5752Z", fillOpacity: "0.6" }), _jsx("path", { d: "M17.4541 10L17.375 10.8418L16.8818 11.5244L17.1289 12.1357L15.042 14.376L16 16.5L15.042 18H14.0342V17.0938L13 16V15L12.6641 14.7588L12 15L11 14V10H17.4541Z" })] })),
82
83
  minimize: (_jsx("path", { d: "M7.5 12.002C7.63672 12.002 7.75391 12.0508 7.85156 12.1484C7.94922 12.2461 7.99805 12.3633 7.99805 12.5V16.5039C7.99805 16.6406 7.94922 16.7578 7.85156 16.8555C7.75391 16.9531 7.63672 17.002 7.5 17.002C7.36328 17.002 7.24609 16.9531 7.14844 16.8555C7.05078 16.7578 7.00195 16.6406 7.00195 16.5039V13.7109L0.849609 19.8535C0.804036 19.9056 0.748698 19.9414 0.683594 19.9609C0.625 19.987 0.563151 20 0.498047 20C0.432943 20 0.367839 19.987 0.302734 19.9609C0.244141 19.9414 0.192057 19.9056 0.146484 19.8535C0.0488281 19.7559 0 19.6387 0 19.502C0 19.3652 0.0488281 19.248 0.146484 19.1504L6.28906 13.0078H3.49609C3.35938 13.0078 3.24219 12.959 3.14453 12.8613C3.04688 12.7637 2.99805 12.6432 2.99805 12.5C2.99805 12.3633 3.04688 12.2461 3.14453 12.1484C3.24219 12.0508 3.35938 12.002 3.49609 12.002H7.5ZM19.502 0C19.6387 0 19.7559 0.0488281 19.8535 0.146484C19.9512 0.244141 20 0.364583 20 0.507812C20 0.644531 19.9512 0.761719 19.8535 0.859375L13.7109 7.00195H16.5039C16.6406 7.00195 16.7578 7.05078 16.8555 7.14844C16.9531 7.24609 17.002 7.36328 17.002 7.5C17.002 7.64323 16.9531 7.76367 16.8555 7.86133C16.7578 7.95898 16.6406 8.00781 16.5039 8.00781H12.5C12.3633 8.00781 12.2461 7.95898 12.1484 7.86133C12.0508 7.76367 12.002 7.64323 12.002 7.5V3.50586C12.002 3.36914 12.0508 3.25195 12.1484 3.1543C12.2461 3.05664 12.3633 3.00781 12.5 3.00781C12.6367 3.00781 12.7539 3.05664 12.8516 3.1543C12.9492 3.25195 12.998 3.36914 12.998 3.50586V6.29883L19.1504 0.146484C19.248 0.0488281 19.3652 0 19.502 0Z" })),
83
84
  shrink: _jsx("path", { d: "M2 14H18V15H2V14Z" }),
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import { type IUiListboxProps } from "./types.js";
2
+ import { type IUiListboxItem, type IUiListboxProps } from "./types.js";
3
3
  /**
4
4
  * An accessible listbox component that can be navigated by keyboard.
5
5
  * Usable in a <Dropdown /> component.
@@ -7,5 +7,18 @@ import { type IUiListboxProps } from "./types.js";
7
7
  *
8
8
  * @internal
9
9
  */
10
- export declare function UiListbox<InteractiveItemData, StaticItemData>({ items: rawItems, dataTestId, itemDataTestId, width, maxWidth, maxHeight, onSelect, onClose, onUnhandledKeyDown, selectedItemId, InteractiveItemComponent, StaticItemComponent, shouldKeyboardActionPreventDefault, shouldKeyboardActionStopPropagation, shouldCloseOnSelect, isDisabledFocusable, isCompact, supportedViews, reference, ariaAttributes, }: IUiListboxProps<InteractiveItemData, StaticItemData>): ReactNode;
10
+ export declare function UiListbox<InteractiveItemData, StaticItemData>({ items: rawItems, dataTestId, itemDataTestId, width, maxWidth, maxHeight, onSelect, onClose, onUnhandledKeyDown, selectedItemId, InteractiveItemComponent, StaticItemComponent, shouldKeyboardActionPreventDefault, shouldKeyboardActionStopPropagation, shouldCloseOnSelect, shouldSelectOnOptionClick, isDisabledFocusable, focusedItemId, onFocusedItemIdChange, isCompact, padding, supportedViews, reference, ariaAttributes, }: IUiListboxProps<InteractiveItemData, StaticItemData>): ReactNode;
11
+ export declare const makeItemId: (listboxId: string, item?: IUiListboxItem<unknown, unknown>) => string | undefined;
12
+ /**
13
+ * The next focusable item of the list in a direction; at the first and the last item, it stays there. Without
14
+ * a current item, down starts at the first item and up at the last. Dividers, static and disabled items are
15
+ * skipped. For moving the focusedItemId of a list with virtual focus.
16
+ *
17
+ * @internal
18
+ */
19
+ export declare function getNextFocusableItemId({ items, focusedItemId, direction, }: {
20
+ items: IUiListboxItem<unknown, unknown>[];
21
+ focusedItemId: string | null;
22
+ direction: "down" | "up";
23
+ }): string | null;
11
24
  //# sourceMappingURL=UiListbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UiListbox.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiListbox/UiListbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAqD,MAAM,OAAO,CAAC;AAa1F,OAAO,EAIH,KAAK,eAAe,EAEvB,MAAM,YAAY,CAAC;AAIpB;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,mBAAmB,EAAE,cAAc,EAAE,EAC3D,KAAK,EAAE,QAAQ,EAEf,UAAU,EACV,cAAc,EACd,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,OAAO,EACP,kBAAyC,EAEzC,cAAc,EAEd,wBAAmE,EACnE,mBAAyD,EAEzD,kCAAkC,EAClC,mCAAmC,EACnC,mBAA0B,EAC1B,mBAA2B,EAC3B,SAAiB,EACjB,cAAwC,EAExC,SAAS,EACT,cAAc,GACjB,EAAE,eAAe,CAAC,mBAAmB,EAAE,cAAc,CAAC,GAAG,SAAS,CAsNlE"}
1
+ {"version":3,"file":"UiListbox.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiListbox/UiListbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,SAAS,EAAqD,MAAM,OAAO,CAAC;AAc3G,OAAO,EAGH,KAAK,cAAc,EACnB,KAAK,eAAe,EAEvB,MAAM,YAAY,CAAC;AAIpB;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,mBAAmB,EAAE,cAAc,EAAE,EAC3D,KAAK,EAAE,QAAQ,EAEf,UAAU,EACV,cAAc,EACd,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,OAAO,EACP,kBAAyC,EAEzC,cAAc,EAEd,wBAAmE,EACnE,mBAAyD,EAEzD,kCAAkC,EAClC,mCAAmC,EACnC,mBAA0B,EAC1B,yBAAiC,EACjC,mBAA2B,EAC3B,aAAa,EACb,qBAAqB,EACrB,SAAiB,EACjB,OAAmB,EACnB,cAAwC,EAExC,SAAS,EACT,cAAc,GACjB,EAAE,eAAe,CAAC,mBAAmB,EAAE,cAAc,CAAC,GAAG,SAAS,CAuRlE;AAED,eAAO,MAAM,UAAU,cAAe,MAAM,SAAS,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,uBACR,CAAC;AAE9E;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,KAAK,EACL,aAAa,EACb,SAAS,GACZ,EAAE;IACC,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;IAC1C,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,GAAG,MAAM,GAAG,IAAI,CAShB"}
@@ -4,6 +4,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
4
4
  import { useAutoupdateRef } from "@gooddata/sdk-ui";
5
5
  import { useMediaQuery } from "../../responsive/useMediaQuery.js";
6
6
  import { makeMenuKeyboardNavigation } from "../@utils/keyboardNavigation.js";
7
+ import { scrollIntoView } from "../@utils/scrollIntoView.js";
7
8
  import { MenuDivider } from "../UiMenu/components/MenuDivider.js";
8
9
  import { collapseSeparators } from "../UiMenu/itemUtils.js";
9
10
  import { DefaultUiListboxInteractiveItemComponent } from "./defaults/DefaultUiListboxInteractiveItemComponent.js";
@@ -18,7 +19,7 @@ const DEFAULT_SUPPORTED_VIEWS = ["mobile", "desktop"];
18
19
  *
19
20
  * @internal
20
21
  */
21
- export function UiListbox({ items: rawItems, dataTestId, itemDataTestId, width, maxWidth, maxHeight, onSelect, onClose, onUnhandledKeyDown = firstCharacterSearch, selectedItemId, InteractiveItemComponent = DefaultUiListboxInteractiveItemComponent, StaticItemComponent = DefaultUiListboxStaticItemComponent, shouldKeyboardActionPreventDefault, shouldKeyboardActionStopPropagation, shouldCloseOnSelect = true, isDisabledFocusable = false, isCompact = false, supportedViews = DEFAULT_SUPPORTED_VIEWS, reference, ariaAttributes, }) {
22
+ export function UiListbox({ items: rawItems, dataTestId, itemDataTestId, width, maxWidth, maxHeight, onSelect, onClose, onUnhandledKeyDown = firstCharacterSearch, selectedItemId, InteractiveItemComponent = DefaultUiListboxInteractiveItemComponent, StaticItemComponent = DefaultUiListboxStaticItemComponent, shouldKeyboardActionPreventDefault, shouldKeyboardActionStopPropagation, shouldCloseOnSelect = true, shouldSelectOnOptionClick = false, isDisabledFocusable = false, focusedItemId, onFocusedItemIdChange, isCompact = false, padding = "default", supportedViews = DEFAULT_SUPPORTED_VIEWS, reference, ariaAttributes, }) {
22
23
  const items = useMemo(() => collapseSeparators(rawItems), [rawItems]);
23
24
  const isMobileDevice = useMediaQuery("mobileDevice");
24
25
  const isMobile = isMobileDevice && supportedViews.includes("mobile");
@@ -43,15 +44,50 @@ export function UiListbox({ items: rawItems, dataTestId, itemDataTestId, width,
43
44
  useEffect(() => {
44
45
  itemRefs.current = itemRefs.current.slice(0, items.length);
45
46
  }, [items]);
47
+ // with virtual focus, the highlight comes from the focusedItemId prop instead of the list's own focus
48
+ const isVirtualFocus = focusedItemId !== undefined;
49
+ const virtualFocusedIndex = items.findIndex((item) => item.type === "interactive" && item.id === focusedItemId);
50
+ const shownFocusedIndex = isVirtualFocus
51
+ ? virtualFocusedIndex >= 0
52
+ ? virtualFocusedIndex
53
+ : undefined
54
+ : focusedIndex;
46
55
  const focusedItem = focusedIndex == null ? undefined : items[focusedIndex];
47
56
  const focusedItemNode = focusedIndex == null ? undefined : itemRefs.current[focusedIndex];
48
- // Scroll focused item into view
57
+ // where the mouse last moved over the list, and the item it reported there
58
+ const lastMouseRef = useRef({ x: NaN, y: NaN });
59
+ const hoveredItemIdRef = useRef(null);
60
+ // Browsers also report mouse events when the items move under a resting mouse, e.g. when the arrow keys
61
+ // scroll the list or a search filters it; such an event, at the same position, must not take the
62
+ // highlight from the keyboard
63
+ const handleItemMouseMove = (event, itemId) => {
64
+ const { x, y } = lastMouseRef.current;
65
+ if (event.clientX !== x || event.clientY !== y) {
66
+ lastMouseRef.current = { x: event.clientX, y: event.clientY };
67
+ hoveredItemIdRef.current = itemId;
68
+ onFocusedItemIdChange?.(itemId);
69
+ }
70
+ };
71
+ // With virtual focus, scroll to the highlight, also when the list mounts; only the list scrolls, see
72
+ // scrollIntoView. A highlight moved by the mouse is under the mouse already, so it isn't scrolled to,
73
+ // like in React Aria.
74
+ const listRef = useRef(null);
75
+ useEffect(() => {
76
+ const isHovered = focusedItemId === hoveredItemIdRef.current;
77
+ hoveredItemIdRef.current = null;
78
+ const list = listRef.current;
79
+ const item = shownFocusedIndex === undefined ? null : itemRefs.current[shownFocusedIndex];
80
+ if (isVirtualFocus && list && item && !isHovered) {
81
+ scrollIntoView(list, item);
82
+ }
83
+ }, [isVirtualFocus, shownFocusedIndex, focusedItemId]);
84
+ // Scroll focused item into view (with virtual focus, the effect above scrolls to the outside highlight instead)
49
85
  useEffect(() => {
50
- if (!focusedItemNode) {
86
+ if (isVirtualFocus || !focusedItemNode) {
51
87
  return;
52
88
  }
53
89
  focusedItemNode.scrollIntoView({ block: "nearest" });
54
- }, [focusedItemNode]);
90
+ }, [isVirtualFocus, focusedItemNode]);
55
91
  const handleSelectItem = useCallback((item, mods) => {
56
92
  if (!item || item.isDisabled) {
57
93
  return;
@@ -133,7 +169,9 @@ export function UiListbox({ items: rawItems, dataTestId, itemDataTestId, width,
133
169
  shouldKeyboardActionPreventDefault,
134
170
  shouldKeyboardActionStopPropagation,
135
171
  ]);
136
- return (_jsx("div", { className: b({ mobile: isMobile }), style: { width, maxWidth, maxHeight }, "data-testid": dataTestId, children: _jsx("ul", { className: e("items"), ref: reference, tabIndex: 0, onKeyDown: handleKeyDown, "aria-activedescendant": makeItemId(ariaAttributes.id, focusedItem), ...ariaAttributes, role: "listbox", children: items.map((item, index) => {
172
+ return (_jsx("div", { className: b({ mobile: isMobile, padding: padding === "none" && "none" }), style: { width, maxWidth, maxHeight }, "data-testid": dataTestId, ref: listRef, children: _jsx("ul", { className: e("items", { virtualFocus: isVirtualFocus }), ref: reference,
173
+ // with virtual focus, the focus and the keys stay with the outside owner
174
+ tabIndex: isVirtualFocus ? undefined : 0, onKeyDown: isVirtualFocus ? undefined : handleKeyDown, "aria-activedescendant": isVirtualFocus ? undefined : makeItemId(ariaAttributes.id, focusedItem), ...ariaAttributes, role: "listbox", children: items.map((item, index) => {
137
175
  const testId = item.type === "separator"
138
176
  ? undefined
139
177
  : typeof itemDataTestId === "function"
@@ -141,14 +179,43 @@ export function UiListbox({ items: rawItems, dataTestId, itemDataTestId, width,
141
179
  : itemDataTestId;
142
180
  return item.type === "interactive" ? (_jsx("li", { ref: (el) => {
143
181
  itemRefs.current[index] = el;
144
- }, id: makeItemId(ariaAttributes.id, item), role: "option", "aria-selected": item.id === selectedItemId, "aria-disabled": item.isDisabled, "data-testid": testId, "aria-controls": ariaAttributes["aria-controls"], children: _jsx(InteractiveItemComponent, { onSelect: (e) => {
182
+ }, id: makeItemId(ariaAttributes.id, item), role: "option", lang: item.lang, "aria-selected": item.id === selectedItemId, "aria-disabled": item.isDisabled, "data-testid": testId, "aria-controls": ariaAttributes["aria-controls"], onMouseMove: isVirtualFocus && isItemFocusable(item)
183
+ ? (event) => handleItemMouseMove(event, item.id)
184
+ : undefined,
185
+ // clicks anywhere in the option, also those dispatched on the option element itself
186
+ onClick: shouldSelectOnOptionClick
187
+ ? (event) => {
145
188
  handleSelectItem(item, {
146
189
  type: "mouse",
147
- newTab: e.ctrlKey || e.metaKey || e.button === 1,
190
+ newTab: event.ctrlKey || event.metaKey || event.button === 1,
148
191
  });
149
- }, item: item, isFocused: index === focusedIndex, isSelected: item.id === selectedItemId, isCompact: isCompact }) }, item.id)) : (_jsx("li", { ref: (el) => {
192
+ }
193
+ : undefined, children: _jsx(InteractiveItemComponent, { onSelect: shouldSelectOnOptionClick
194
+ ? // the click bubbles to the listbox, which selects the item
195
+ () => { }
196
+ : (e) => {
197
+ handleSelectItem(item, {
198
+ type: "mouse",
199
+ newTab: e.ctrlKey || e.metaKey || e.button === 1,
200
+ });
201
+ }, item: item, isFocused: index === shownFocusedIndex, isSelected: item.id === selectedItemId, isCompact: isCompact }) }, item.id)) : (_jsx("li", { ref: (el) => {
150
202
  itemRefs.current[index] = el;
151
203
  }, role: "presentation", "data-testid": testId, children: item.type === "separator" ? (_jsx(MenuDivider, {})) : (_jsx(StaticItemComponent, { item: item })) }, item.id ?? index));
152
204
  }) }) }));
153
205
  }
154
- const makeItemId = (listboxId, item) => item?.type === "interactive" ? `item-${listboxId}-${item.id}` : undefined;
206
+ export const makeItemId = (listboxId, item) => item?.type === "interactive" ? `item-${listboxId}-${item.id}` : undefined;
207
+ /**
208
+ * The next focusable item of the list in a direction; at the first and the last item, it stays there. Without
209
+ * a current item, down starts at the first item and up at the last. Dividers, static and disabled items are
210
+ * skipped. For moving the focusedItemId of a list with virtual focus.
211
+ *
212
+ * @internal
213
+ */
214
+ export function getNextFocusableItemId({ items, focusedItemId, direction, }) {
215
+ const itemIds = items.flatMap((item) => item.type === "interactive" && !item.isDisabled ? [item.id] : []);
216
+ const index = focusedItemId === null ? -1 : itemIds.indexOf(focusedItemId);
217
+ if (index < 0) {
218
+ return (direction === "down" ? itemIds[0] : itemIds.at(-1)) ?? null;
219
+ }
220
+ return itemIds[direction === "down" ? index + 1 : index - 1] ?? focusedItemId;
221
+ }
@@ -29,6 +29,10 @@ export interface IUiListboxInteractiveItem<T> {
29
29
  * `tooltip` still provides the plain text for screen readers.
30
30
  */
31
31
  tooltipContent?: ReactNode;
32
+ /**
33
+ * The language of the title when it differs from the page, rendered as the option's `lang` attribute.
34
+ */
35
+ lang?: string;
32
36
  }
33
37
  /**
34
38
  * @internal
@@ -102,8 +106,36 @@ export interface IUiListboxProps<InteractiveItemData, StaticItemData = ReactNode
102
106
  shouldKeyboardActionPreventDefault?: boolean;
103
107
  shouldKeyboardActionStopPropagation?: boolean;
104
108
  shouldCloseOnSelect?: boolean;
109
+ /**
110
+ * Selects an item on a click anywhere in its option (`<li role="option">`), including the option element
111
+ * itself, so that clicks dispatched on the option (tests, assistive technologies) select it too. The listbox
112
+ * handles the click; the `onSelect` passed to `InteractiveItemComponent` then does nothing, so item
113
+ * components that still attach it don't select twice. Controls nested in an option (buttons, links) select
114
+ * the item too unless they stop the click from propagating.
115
+ *
116
+ * Defaults to `false`: the item component attaches `onSelect` itself.
117
+ */
118
+ shouldSelectOnOptionClick?: boolean;
105
119
  isDisabledFocusable?: boolean;
120
+ /**
121
+ * The following option enables highlighting items by parent (such as when pressing arrow down and arrow up).
122
+ * Listbox manages (real) focus itself only if the list is focused also. Sometimes though, we need for real focus
123
+ * to stay at a different place (like a search bar above the list), but still have the ability to highlight elements
124
+ * using "virtual focus" and aria attributes like `aria-activedescendant` on the element outside of listbox component.
125
+ */
126
+ focusedItemId?: string | null;
127
+ /**
128
+ * When using virtual focus (`focusedItemId`), there can be a double highlight if the arrow keys and hover
129
+ * are used at the same time. Reports the id of the hovered item, so that the parent can resolve the double
130
+ * highlight.
131
+ */
132
+ onFocusedItemIdChange?: (itemId: string) => void;
106
133
  isCompact?: boolean;
134
+ /**
135
+ * Vertical padding of the list: `"default"` is `6px 0`, `"none"` lets the surrounding popup own the spacing.
136
+ * Defaults to `"default"`.
137
+ */
138
+ padding?: "default" | "none";
107
139
  supportedViews?: UiListboxView[];
108
140
  ariaAttributes: UiListboxAriaAttributes;
109
141
  reference?: RefObject<HTMLUListElement | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiListbox/types.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,cAAc,EACtB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACnC,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,CAAC,CAAC;CACX;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB,CAAC,CAAC;IACxC,IAAI,EAAE,aAAa,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC;IACR;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,cAA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EAAE,MAAM,CAAC;IAExB,wBAAwB,CAAC,EAAE,aAAa,CAAC,8BAA8B,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC9F,mBAAmB,CAAC,EAAE,aAAa,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC,CAAC;IAE/E,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C,mCAAmC,CAAC,EAAE,OAAO,CAAC;IAC9C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;OAQG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IAEjC,cAAc,EAAE,uBAAuB,CAAC;IAExC,SAAS,CAAC,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAClD"}
@@ -15,6 +15,10 @@ export interface ISearchResultsAnnouncementProps {
15
15
  * Announcement delay in milliseconds.
16
16
  */
17
17
  announcementDelay?: number;
18
+ /**
19
+ * Text to announce when there are no results. Defaults to a translated "No results match.".
20
+ */
21
+ noResultsText?: string;
18
22
  }
19
23
  /**
20
24
  * A threshold for the number of results to announce in a detailed way.
@@ -27,5 +31,5 @@ export declare const DETAILED_ANNOUNCEMENT_THRESHOLD = 3;
27
31
  *
28
32
  * @internal
29
33
  */
30
- export declare function UiSearchResultsAnnouncement({ totalResults, resultValues, announcementDelay, }: ISearchResultsAnnouncementProps): import("react/jsx-runtime").JSX.Element;
34
+ export declare function UiSearchResultsAnnouncement({ totalResults, resultValues, announcementDelay, noResultsText, }: ISearchResultsAnnouncementProps): import("react/jsx-runtime").JSX.Element;
31
35
  //# sourceMappingURL=UiSearchResultsAnnouncement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UiSearchResultsAnnouncement.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiSearchResultsAnnouncement/UiSearchResultsAnnouncement.tsx"],"names":[],"mappings":"AAaA;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAIjD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,EACxC,YAAY,EACZ,YAAkC,EAClC,iBAAkC,GACrC,EAAE,+BAA+B,2CAkCjC"}
1
+ {"version":3,"file":"UiSearchResultsAnnouncement.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiSearchResultsAnnouncement/UiSearchResultsAnnouncement.tsx"],"names":[],"mappings":"AAaA;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAIjD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,EACxC,YAAY,EACZ,YAAkC,EAClC,iBAAkC,EAClC,aAAa,GAChB,EAAE,+BAA+B,2CAkCjC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // (C) 2025 GoodData Corporation
2
+ // (C) 2025-2026 GoodData Corporation
3
3
  import { useEffect } from "react";
4
4
  import { useIntl } from "react-intl";
5
5
  import { useDebouncedState } from "@gooddata/sdk-ui";
@@ -18,7 +18,7 @@ const DEBOUNCE_DELAY = 1000;
18
18
  *
19
19
  * @internal
20
20
  */
21
- export function UiSearchResultsAnnouncement({ totalResults, resultValues = EMPTY_RESULT_VALUES, announcementDelay = DEBOUNCE_DELAY, }) {
21
+ export function UiSearchResultsAnnouncement({ totalResults, resultValues = EMPTY_RESULT_VALUES, announcementDelay = DEBOUNCE_DELAY, noResultsText, }) {
22
22
  const intl = useIntl();
23
23
  const [_, setMessage, message] = useDebouncedState(null, announcementDelay); // postpone message change to let SR read letters typed in input
24
24
  useEffect(() => {
@@ -27,7 +27,7 @@ export function UiSearchResultsAnnouncement({ totalResults, resultValues = EMPTY
27
27
  return;
28
28
  }
29
29
  if (totalResults === 0) {
30
- setMessage(intl.formatMessage(messages["searchResultsNone"]));
30
+ setMessage(noResultsText ?? intl.formatMessage(messages["searchResultsNone"]));
31
31
  return;
32
32
  }
33
33
  if (totalResults <= DETAILED_ANNOUNCEMENT_THRESHOLD && resultValues.length > 0) {
@@ -38,6 +38,6 @@ export function UiSearchResultsAnnouncement({ totalResults, resultValues = EMPTY
38
38
  return;
39
39
  }
40
40
  setMessage(intl.formatMessage(messages["searchResultsMany"], { count: totalResults }));
41
- }, [totalResults, resultValues, intl, setMessage]);
41
+ }, [totalResults, resultValues, noResultsText, intl, setMessage]);
42
42
  return (_jsx("div", { className: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: message }));
43
43
  }
@@ -0,0 +1,28 @@
1
+ import { type ReactNode } from "react";
2
+ import { type IAccessibilityConfigBase } from "../../typings/accessibility.js";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface IUiSearchableSelectProps<T> {
7
+ accessibilityConfig: IAccessibilityConfigBase;
8
+ children: ReactNode;
9
+ /**
10
+ * Whether the dropdown is open when it mounts (uncontrolled, like `defaultOpen` in React Aria).
11
+ * Defaults to `false`.
12
+ */
13
+ defaultOpen?: boolean;
14
+ /**
15
+ * Whether an item matches the search query. Defaults to the item's title containing the query. Called only
16
+ * while searching: without a query, all items show.
17
+ */
18
+ filter?: (item: T, query: string) => boolean;
19
+ items: T[];
20
+ onChange: (value: string) => void;
21
+ placeholder: string;
22
+ value: string | null;
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare function UiSearchableSelect<T>({ accessibilityConfig, children, items, filter, placeholder, defaultOpen, value, onChange, }: IUiSearchableSelectProps<T>): import("react/jsx-runtime").JSX.Element;
28
+ //# sourceMappingURL=UiSearchableSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiSearchableSelect.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiSearchableSelect/UiSearchableSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAmC,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAgB/E;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACvC,mBAAmB,EAAE,wBAAwB,CAAC;IAC9C,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7C,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EAClC,mBAAmB,EACnB,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAmB,EACnB,KAAK,EACL,QAAQ,GACX,EAAE,wBAAwB,CAAC,CAAC,CAAC,2CA2H7B"}