@carto/meridian-ds 3.0.3-alpha.cdb2a4e.260 → 3.0.3-alpha.cfb4fdd.279

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 (227) hide show
  1. package/dist/{ListItem-BOr1gyyO.cjs → ListItem-CLIaUyDV.cjs} +1 -1
  2. package/dist/{ListItem-CW7C1948.js → ListItem-CRSS7jTs.js} +1 -1
  3. package/dist/bin/meridian-ds-mcp.js +95 -38
  4. package/dist/components/index.cjs +191 -13
  5. package/dist/components/index.js +193 -15
  6. package/dist/conventions.md +58 -0
  7. package/dist/metadata.json +2751 -171
  8. package/dist/{palette-utils-gZwK5wCD.js → palette-utils-B2CZD7oM.js} +1 -0
  9. package/dist/{palette-utils-CfP0zi6X.cjs → palette-utils-Ou97WiuF.cjs} +1 -0
  10. package/dist/theme/index.cjs +2 -2
  11. package/dist/theme/index.js +3 -3
  12. package/dist/types/components/Alert/Alert.d.ts +20 -0
  13. package/dist/types/components/Alert/Alert.d.ts.map +1 -1
  14. package/dist/types/components/Alert/Alert.metadata.d.ts +21 -0
  15. package/dist/types/components/Alert/Alert.metadata.d.ts.map +1 -0
  16. package/dist/types/components/Alert/Alert.stories.d.ts +14 -0
  17. package/dist/types/components/Alert/Alert.stories.d.ts.map +1 -1
  18. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.metadata.d.ts +1 -7
  19. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.metadata.d.ts.map +1 -1
  20. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts +3 -6
  21. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
  22. package/dist/types/components/Autocomplete/Autocomplete/useAutocomplete.d.ts +1 -0
  23. package/dist/types/components/Autocomplete/Autocomplete/useAutocomplete.d.ts.map +1 -1
  24. package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts +1 -0
  25. package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts.map +1 -1
  26. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts +1 -0
  27. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts.map +1 -1
  28. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.metadata.d.ts +22 -0
  29. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.metadata.d.ts.map +1 -0
  30. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts +10 -0
  31. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts.map +1 -1
  32. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts +1 -0
  33. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts.map +1 -1
  34. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.metadata.d.ts +22 -0
  35. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.metadata.d.ts.map +1 -0
  36. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts +13 -0
  37. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts.map +1 -1
  38. package/dist/types/components/Autocomplete/types.d.ts +3 -3
  39. package/dist/types/components/Autocomplete/utils/useAutocompleteRenderOption.d.ts +1 -0
  40. package/dist/types/components/Autocomplete/utils/useAutocompleteRenderOption.d.ts.map +1 -1
  41. package/dist/types/components/Avatar/Avatar.d.ts +3 -0
  42. package/dist/types/components/Avatar/Avatar.d.ts.map +1 -1
  43. package/dist/types/components/Avatar/Avatar.metadata.d.ts +20 -0
  44. package/dist/types/components/Avatar/Avatar.metadata.d.ts.map +1 -0
  45. package/dist/types/components/Avatar/Avatar.stories.d.ts +12 -0
  46. package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -1
  47. package/dist/types/components/Button/Button.stories.d.ts +9 -0
  48. package/dist/types/components/Button/Button.stories.d.ts.map +1 -1
  49. package/dist/types/components/ChipGroup/ChipGroup.d.ts +1 -0
  50. package/dist/types/components/ChipGroup/ChipGroup.d.ts.map +1 -1
  51. package/dist/types/components/ChipGroup/ChipGroup.metadata.d.ts +22 -0
  52. package/dist/types/components/ChipGroup/ChipGroup.metadata.d.ts.map +1 -0
  53. package/dist/types/components/ChipGroup/ChipGroup.stories.d.ts +10 -0
  54. package/dist/types/components/ChipGroup/ChipGroup.stories.d.ts.map +1 -1
  55. package/dist/types/components/ChipGroup/types.d.ts +3 -1
  56. package/dist/types/components/ChipGroup/types.d.ts.map +1 -1
  57. package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +1 -0
  58. package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -1
  59. package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts +1 -0
  60. package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts.map +1 -1
  61. package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogContent.d.ts +1 -0
  62. package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogContent.d.ts.map +1 -1
  63. package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogError.d.ts +1 -0
  64. package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogError.d.ts.map +1 -1
  65. package/dist/types/components/CodeArea/CodeAreaField/CodeAreaField.d.ts +1 -0
  66. package/dist/types/components/CodeArea/CodeAreaField/CodeAreaField.d.ts.map +1 -1
  67. package/dist/types/components/CodeArea/CodeAreaFooter/CodeAreaFooter.d.ts +1 -0
  68. package/dist/types/components/CodeArea/CodeAreaFooter/CodeAreaFooter.d.ts.map +1 -1
  69. package/dist/types/components/CodeArea/CodeAreaHeader/CodeAreaHeader.d.ts +1 -0
  70. package/dist/types/components/CodeArea/CodeAreaHeader/CodeAreaHeader.d.ts.map +1 -1
  71. package/dist/types/components/CodeArea/CodeAreaInput/CodeAreaInput.d.ts +1 -0
  72. package/dist/types/components/CodeArea/CodeAreaInput/CodeAreaInput.d.ts.map +1 -1
  73. package/dist/types/components/Dialog/Dialog/Dialog.metadata.d.ts.map +1 -1
  74. package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts +0 -5
  75. package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts.map +1 -1
  76. package/dist/types/components/Dialog/DialogAlert/DialogAlert.d.ts +1 -0
  77. package/dist/types/components/Dialog/DialogAlert/DialogAlert.d.ts.map +1 -1
  78. package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.d.ts +1 -0
  79. package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.d.ts.map +1 -1
  80. package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.metadata.d.ts +11 -0
  81. package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.metadata.d.ts.map +1 -0
  82. package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts +9 -0
  83. package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts.map +1 -1
  84. package/dist/types/components/Dialog/DialogContent/DialogContent.d.ts +2 -0
  85. package/dist/types/components/Dialog/DialogContent/DialogContent.d.ts.map +1 -1
  86. package/dist/types/components/Dialog/DialogFooter/DialogFooter.d.ts +2 -0
  87. package/dist/types/components/Dialog/DialogFooter/DialogFooter.d.ts.map +1 -1
  88. package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts +1 -0
  89. package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  90. package/dist/types/components/Dialog/DialogPaper/DialogPaper.d.ts +2 -0
  91. package/dist/types/components/Dialog/DialogPaper/DialogPaper.d.ts.map +1 -1
  92. package/dist/types/components/Dialog/DialogStepper/DialogStepper.d.ts +1 -0
  93. package/dist/types/components/Dialog/DialogStepper/DialogStepper.d.ts.map +1 -1
  94. package/dist/types/components/Dialog/types.d.ts +27 -11
  95. package/dist/types/components/Dialog/types.d.ts.map +1 -1
  96. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +2 -6
  97. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts.map +1 -1
  98. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.metadata.d.ts +12 -0
  99. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.metadata.d.ts.map +1 -0
  100. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +9 -0
  101. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -1
  102. package/dist/types/components/FilterDropdown/FilterDropdown.d.ts +1 -0
  103. package/dist/types/components/FilterDropdown/FilterDropdown.d.ts.map +1 -1
  104. package/dist/types/components/FilterDropdown/FilterDropdown.metadata.d.ts +11 -0
  105. package/dist/types/components/FilterDropdown/FilterDropdown.metadata.d.ts.map +1 -0
  106. package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts +14 -0
  107. package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts.map +1 -1
  108. package/dist/types/components/FilterDropdown/FilterDropdownMenuItem/FilterDropdownMenuItem.d.ts +1 -0
  109. package/dist/types/components/FilterDropdown/FilterDropdownMenuItem/FilterDropdownMenuItem.d.ts.map +1 -1
  110. package/dist/types/components/FilterDropdown/types.d.ts +37 -0
  111. package/dist/types/components/FilterDropdown/types.d.ts.map +1 -1
  112. package/dist/types/components/IconButton/IconButton.metadata.d.ts.map +1 -1
  113. package/dist/types/components/IconButton/IconButton.stories.d.ts +9 -0
  114. package/dist/types/components/IconButton/IconButton.stories.d.ts.map +1 -1
  115. package/dist/types/components/IconWrapper/IconWrapper.d.ts +70 -0
  116. package/dist/types/components/IconWrapper/IconWrapper.d.ts.map +1 -0
  117. package/dist/types/components/IconWrapper/IconWrapper.figma.d.ts +11 -0
  118. package/dist/types/components/IconWrapper/IconWrapper.figma.d.ts.map +1 -0
  119. package/dist/types/components/IconWrapper/IconWrapper.metadata.d.ts +11 -0
  120. package/dist/types/components/IconWrapper/IconWrapper.metadata.d.ts.map +1 -0
  121. package/dist/types/components/IconWrapper/IconWrapper.stories.d.ts +232 -0
  122. package/dist/types/components/IconWrapper/IconWrapper.stories.d.ts.map +1 -0
  123. package/dist/types/components/IconWrapper/IconWrapper.test.d.ts +2 -0
  124. package/dist/types/components/IconWrapper/IconWrapper.test.d.ts.map +1 -0
  125. package/dist/types/components/IconWrapper/index.d.ts +3 -0
  126. package/dist/types/components/IconWrapper/index.d.ts.map +1 -0
  127. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.d.ts +9 -0
  128. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.d.ts.map +1 -1
  129. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.metadata.d.ts +10 -0
  130. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.metadata.d.ts.map +1 -0
  131. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.stories.d.ts +9 -0
  132. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.stories.d.ts.map +1 -1
  133. package/dist/types/components/Link/Link.d.ts +4 -0
  134. package/dist/types/components/Link/Link.d.ts.map +1 -1
  135. package/dist/types/components/Link/Link.metadata.d.ts +19 -0
  136. package/dist/types/components/Link/Link.metadata.d.ts.map +1 -0
  137. package/dist/types/components/Link/Link.stories.d.ts +11 -0
  138. package/dist/types/components/Link/Link.stories.d.ts.map +1 -1
  139. package/dist/types/components/List/List.d.ts +2 -0
  140. package/dist/types/components/List/List.d.ts.map +1 -1
  141. package/dist/types/components/List/List.metadata.d.ts +15 -0
  142. package/dist/types/components/List/List.metadata.d.ts.map +1 -0
  143. package/dist/types/components/List/List.stories.d.ts +15 -0
  144. package/dist/types/components/List/List.stories.d.ts.map +1 -1
  145. package/dist/types/components/List/ListItem/ListItem.d.ts +1 -0
  146. package/dist/types/components/List/ListItem/ListItem.d.ts.map +1 -1
  147. package/dist/types/components/List/ListItem/ListItem.metadata.d.ts +20 -0
  148. package/dist/types/components/List/ListItem/ListItem.metadata.d.ts.map +1 -0
  149. package/dist/types/components/List/ListItem/ListItem.stories.d.ts +17 -0
  150. package/dist/types/components/List/ListItem/ListItem.stories.d.ts.map +1 -1
  151. package/dist/types/components/List/ListItemButton/ListItemButton.d.ts +1 -0
  152. package/dist/types/components/List/ListItemButton/ListItemButton.d.ts.map +1 -1
  153. package/dist/types/components/List/ListItemIcon/ListItemIcon.d.ts +1 -0
  154. package/dist/types/components/List/ListItemIcon/ListItemIcon.d.ts.map +1 -1
  155. package/dist/types/components/List/ListItemRightContent/ListItemRightContent.d.ts +1 -3
  156. package/dist/types/components/List/ListItemRightContent/ListItemRightContent.d.ts.map +1 -1
  157. package/dist/types/components/List/ListItemText/ListItemText.d.ts +6 -2
  158. package/dist/types/components/List/ListItemText/ListItemText.d.ts.map +1 -1
  159. package/dist/types/components/List/ListSubheader/ListSubheader.d.ts +1 -0
  160. package/dist/types/components/List/ListSubheader/ListSubheader.d.ts.map +1 -1
  161. package/dist/types/components/Menu/Menu/Menu.d.ts +1 -0
  162. package/dist/types/components/Menu/Menu/Menu.d.ts.map +1 -1
  163. package/dist/types/components/Menu/Menu/Menu.metadata.d.ts +16 -0
  164. package/dist/types/components/Menu/Menu/Menu.metadata.d.ts.map +1 -0
  165. package/dist/types/components/Menu/Menu/Menu.stories.d.ts +16 -0
  166. package/dist/types/components/Menu/Menu/Menu.stories.d.ts.map +1 -1
  167. package/dist/types/components/Menu/MenuItem/MenuItem.d.ts +1 -0
  168. package/dist/types/components/Menu/MenuItem/MenuItem.d.ts.map +1 -1
  169. package/dist/types/components/Menu/MenuItemFilter/MenuItemFilter.d.ts +1 -0
  170. package/dist/types/components/Menu/MenuItemFilter/MenuItemFilter.d.ts.map +1 -1
  171. package/dist/types/components/Menu/MenuList/MenuList.d.ts +1 -0
  172. package/dist/types/components/Menu/MenuList/MenuList.d.ts.map +1 -1
  173. package/dist/types/components/Menu/types.d.ts +19 -0
  174. package/dist/types/components/Menu/types.d.ts.map +1 -1
  175. package/dist/types/components/ScreenReaderOnly/ScreenReaderOnly.d.ts +1 -0
  176. package/dist/types/components/ScreenReaderOnly/ScreenReaderOnly.d.ts.map +1 -1
  177. package/dist/types/components/ScreenReaderOnly/ScreenReaderOnly.metadata.d.ts +10 -0
  178. package/dist/types/components/ScreenReaderOnly/ScreenReaderOnly.metadata.d.ts.map +1 -0
  179. package/dist/types/components/ScreenReaderOnly/ScreenReaderOnly.stories.d.ts +38 -0
  180. package/dist/types/components/ScreenReaderOnly/ScreenReaderOnly.stories.d.ts.map +1 -0
  181. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.d.ts +1 -0
  182. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
  183. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.metadata.d.ts +27 -0
  184. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.metadata.d.ts.map +1 -0
  185. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts +9 -0
  186. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts.map +1 -1
  187. package/dist/types/components/SelectField/SelectField/SelectField.metadata.d.ts +1 -0
  188. package/dist/types/components/SelectField/SelectField/SelectField.metadata.d.ts.map +1 -1
  189. package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts +0 -5
  190. package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts.map +1 -1
  191. package/dist/types/components/SelectField/types.d.ts +12 -0
  192. package/dist/types/components/SelectField/types.d.ts.map +1 -1
  193. package/dist/types/components/Snackbar/Snackbar.d.ts +13 -0
  194. package/dist/types/components/Snackbar/Snackbar.d.ts.map +1 -1
  195. package/dist/types/components/Snackbar/Snackbar.metadata.d.ts +20 -0
  196. package/dist/types/components/Snackbar/Snackbar.metadata.d.ts.map +1 -0
  197. package/dist/types/components/Snackbar/Snackbar.stories.d.ts +12 -0
  198. package/dist/types/components/Snackbar/Snackbar.stories.d.ts.map +1 -1
  199. package/dist/types/components/SplitButton/SplitButton.stories.d.ts +0 -5
  200. package/dist/types/components/SplitButton/SplitButton.stories.d.ts.map +1 -1
  201. package/dist/types/components/Tag/Tag.metadata.d.ts +5 -0
  202. package/dist/types/components/Tag/Tag.metadata.d.ts.map +1 -1
  203. package/dist/types/components/Tag/Tag.stories.d.ts +9 -0
  204. package/dist/types/components/Tag/Tag.stories.d.ts.map +1 -1
  205. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -0
  206. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -1
  207. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.metadata.d.ts +19 -0
  208. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.metadata.d.ts.map +1 -0
  209. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +9 -0
  210. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts.map +1 -1
  211. package/dist/types/components/Typography/Typography.d.ts +2 -0
  212. package/dist/types/components/Typography/Typography.d.ts.map +1 -1
  213. package/dist/types/components/Typography/Typography.metadata.d.ts +5 -5
  214. package/dist/types/components/Typography/Typography.metadata.d.ts.map +1 -1
  215. package/dist/types/components/Typography/Typography.stories.d.ts +9 -0
  216. package/dist/types/components/Typography/Typography.stories.d.ts.map +1 -1
  217. package/dist/types/components/UploadField/UploadFieldBase.d.ts +1 -0
  218. package/dist/types/components/UploadField/UploadFieldBase.d.ts.map +1 -1
  219. package/dist/types/components/index.d.ts +2 -0
  220. package/dist/types/components/index.d.ts.map +1 -1
  221. package/dist/types/theme/types.d.ts +39 -0
  222. package/dist/types/theme/types.d.ts.map +1 -1
  223. package/dist/{utils-CD2XnHzC.js → utils-BnqQIMbU.js} +1 -1
  224. package/dist/{utils-BfSr53C0.cjs → utils-DtB4pKaP.cjs} +1 -1
  225. package/dist/widgets/index.cjs +2 -2
  226. package/dist/widgets/index.js +2 -2
  227. package/package.json +7 -2
@@ -4,7 +4,7 @@ const React = require("react");
4
4
  const material = require("@mui/material");
5
5
  const iconsMaterial = require("@mui/icons-material");
6
6
  require("cartocolor");
7
- const paletteUtils = require("./palette-utils-CfP0zi6X.cjs");
7
+ const paletteUtils = require("./palette-utils-Ou97WiuF.cjs");
8
8
  const ReactWindow = require("react-window");
9
9
  function _interopNamespaceDefault(e) {
10
10
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -3,7 +3,7 @@ import React, { forwardRef, useState, createContext, useMemo, useContext } from
3
3
  import { styled, Link as Link$1, Alert as Alert$1, Fade, AlertTitle, List as List$1, ListItemButton as ListItemButton$1, ListItem as ListItem$1 } from "@mui/material";
4
4
  import { OpenInNewOutlined } from "@mui/icons-material";
5
5
  import "cartocolor";
6
- import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography, m as LIST_MAX_SIZE, n as LIST_OVERSCAN_ITEMS_COUNT, h as LIST_ITEM_SIZE_DENSE, i as LIST_ITEM_SIZE_DEFAULT } from "./palette-utils-gZwK5wCD.js";
6
+ import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography, m as LIST_MAX_SIZE, n as LIST_OVERSCAN_ITEMS_COUNT, h as LIST_ITEM_SIZE_DENSE, i as LIST_ITEM_SIZE_DEFAULT } from "./palette-utils-B2CZD7oM.js";
7
7
  import * as ReactWindow from "react-window";
8
8
  const ScreenReaderOnly = styled("span")(() => ({
9
9
  position: "absolute",
@@ -5,6 +5,16 @@ import * as fs from "fs";
5
5
  import * as path from "path";
6
6
  import { fileURLToPath } from "url";
7
7
  import { createRequire } from "module";
8
+
9
+ // ai-metadata/types.ts
10
+ function subName(s) {
11
+ return typeof s === "string" ? s : s.name;
12
+ }
13
+ function relatedName(e) {
14
+ return typeof e === "string" ? e : e.name;
15
+ }
16
+
17
+ // ai-metadata/mcp/server.ts
8
18
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
9
19
  function resolveBundlePath() {
10
20
  if (process.env.MERIDIAN_DS_METADATA) return process.env.MERIDIAN_DS_METADATA;
@@ -21,12 +31,13 @@ function resolveBundlePath() {
21
31
  }
22
32
  }
23
33
  var DOCS = [];
34
+ var KNOWN = [];
24
35
  var CONVENTIONS = "";
25
36
  var VERSION = "0.0.0";
26
37
  var TOOLS = [
27
38
  {
28
39
  name: "meridian_list_components",
29
- description: "List all Meridian components with their description, keywords, and example count, plus a family signal where relevant (`subComponents` for a compound component, `variants` for sibling components chosen between). Start here: the catalog is small, so read it and pick the component whose description/keywords match your need.",
40
+ description: "List all Meridian components with their description and keywords, plus a family signal where relevant (`subComponents` for a compound component, `variants` for sibling components chosen between \u2014 each with a one-line description). Start here: the catalog is small, so read it and pick the component whose description/keywords match your need. Rows flagged `documented: false` are not yet curated (no when-to-use/decisionTree/prop guidance): most still have example stories via get_examples; a few are known-only \u2014 real, importable components with no stories yet, for which get_component/get_examples just point at the type declarations.",
30
41
  inputSchema: {
31
42
  type: "object",
32
43
  properties: {},
@@ -35,7 +46,7 @@ var TOOLS = [
35
46
  },
36
47
  {
37
48
  name: "meridian_get_component",
38
- description: "Curation for one component: when to use it, its decisionTree (when to reach for a different component), any limitations (capabilities it lacks vs. similar components \u2014 check before downgrading from one), and the high-value inherited MUI props (curation.mui, some with an aiHint). Own props, types, and JSDoc are NOT here \u2014 read the shipped .d.ts (the propTypes field gives the exact command).",
49
+ description: "Curation for one component: when to use it, its decisionTree (when to reach for a different component), any limitations (capabilities it lacks vs. similar components \u2014 check before downgrading from one), and the high-value inherited MUI props (curation.mui, some with an aiHint). Own props, types, and JSDoc are NOT here \u2014 read the shipped .d.ts (the propTypes field gives the exact command). For a not-yet-curated component (`documented: false`) it returns a note + .d.ts pointer in place of curation \u2014 plus its example stories when any exist (a known-only component has none, so rely on the .d.ts). Sub-components and variants (`DialogHeader`, `MultipleAutocomplete`, \u2026) have no standalone catalog entry \u2014 `meridian_get_component`/`meridian_get_examples` on them return a pointer to the parent (check its `curation.subComponents`/`curation.variants`).",
39
50
  inputSchema: {
40
51
  type: "object",
41
52
  properties: {
@@ -47,7 +58,7 @@ var TOOLS = [
47
58
  },
48
59
  {
49
60
  name: "meridian_get_examples",
50
- description: "Real, copy-able example code (per Storybook story, with imports), shipped in the package. With no storyId: the lead usage story and the notable stories in full, plus an 'Other Stories' list (name + id) of the rest. Pass a storyId (from that list or meridian_get_component) to get just that story's full code.",
61
+ description: "Real, copy-able example code (per Storybook story, with imports), shipped in the package. With no storyId: the lead usage story and the notable stories in full, plus an 'Other Stories' list (name + id) of the rest. Pass a storyId (from that list or meridian_get_component) to get just that story's full code. Sub-components and variants (`DialogHeader`, `MultipleAutocomplete`, \u2026) have no standalone catalog entry \u2014 `meridian_get_component`/`meridian_get_examples` on them return a pointer to the parent (check its `curation.subComponents`/`curation.variants`).",
51
62
  inputSchema: {
52
63
  type: "object",
53
64
  properties: {
@@ -72,71 +83,113 @@ var TOOLS = [
72
83
  }
73
84
  ];
74
85
  var find = (name) => DOCS.find((d) => d.name.toLowerCase() === String(name).toLowerCase());
75
- var notFound = (name) => ({
76
- error: `Unknown component "${name}". Available: ${DOCS.map((d) => d.name).join(", ")}`
77
- });
78
- function familyRedirect(name) {
79
- const lc = String(name).toLowerCase();
80
- for (const d of DOCS) {
81
- const isPart = d.curation.subComponents?.some((s) => s.toLowerCase() === lc);
82
- const isVariant = d.curation.variants?.some((v) => v.toLowerCase() === lc);
83
- if (!isPart && !isVariant) continue;
84
- const rel = isPart ? `a sub-component of ${d.name} (a compound component)` : `a variant of ${d.name}`;
86
+ function notFound(name) {
87
+ const canonical = KNOWN.find((c) => c.toLowerCase() === String(name).toLowerCase());
88
+ if (canonical)
85
89
  return {
86
- note: `"${name}" is ${rel} and has no standalone catalog entry. See meridian_get_examples('${d.name}') for usage/composition and meridian_get_component('${d.name}') for its curation. Read ${name}'s own props from its type declarations: find node_modules/@carto/meridian-ds/dist/types -name '${name}.d.ts'.`
90
+ note: `"${canonical}" is a Meridian component but isn't individually documented or listed in this catalog. If it's part of the public API, import it from '@carto/meridian-ds/components' and read its props from its type declarations: ${dtsFindRecipe(canonical)}. Prefer a documented component (see meridian_list_components) when one fits.`
87
91
  };
92
+ return {
93
+ error: `No Meridian component named "${name}" (check the spelling). See meridian_list_components for the catalog.`
94
+ };
95
+ }
96
+ function dtsFindRecipe(...names) {
97
+ const root = "find node_modules/@carto/meridian-ds/dist/types";
98
+ const clauses = names.map((n) => `-name '${n}.d.ts'`);
99
+ return names.length > 1 ? `${root} \\( ${clauses.join(" -o ")} \\)` : `${root} ${clauses[0]}`;
100
+ }
101
+ function familyParent(name) {
102
+ const lc = String(name).toLowerCase();
103
+ for (const d of DOCS) {
104
+ const part = d.curation.subComponents?.map(subName).find((s) => s.toLowerCase() === lc);
105
+ if (part) return { parent: d.name, canonical: part, role: "sub-component" };
106
+ const variant = d.curation.variants?.map(subName).find((v) => v.toLowerCase() === lc);
107
+ if (variant) return { parent: d.name, canonical: variant, role: "variant" };
88
108
  }
89
109
  return void 0;
90
110
  }
111
+ function familyRedirect(name) {
112
+ const f = familyParent(name);
113
+ if (!f) return void 0;
114
+ const note = f.role === "sub-component" ? `"${f.canonical}" is a sub-component of ${f.parent} (a compound component) \u2014 it has no standalone catalog entry. See meridian_get_examples('${f.parent}') for how it's composed, and read its own props from its type declarations: ${dtsFindRecipe(f.canonical)}.` : `"${f.canonical}" is a variant of ${f.parent} \u2014 a full component in its own right, not yet individually documented in this catalog. For now use meridian_get_component('${f.parent}') / meridian_get_examples('${f.parent}'), and read ${f.canonical}'s own props from its type declarations: ${dtsFindRecipe(f.canonical)}.`;
115
+ return { note };
116
+ }
91
117
  function partitionExamples(examples) {
92
118
  const usage = examples.filter((e) => e.isUsage);
93
119
  const summarized = examples.filter((e) => !e.isUsage && e.summary);
94
- let shown = [...usage, ...summarized];
95
- if (!shown.length) shown = examples.slice(0, 1);
120
+ const shown = usage.length ? usage : summarized.length ? summarized : examples.slice(0, 1);
96
121
  const inShown = new Set(shown);
97
122
  return { shown, rest: examples.filter((e) => !inShown.has(e)) };
98
123
  }
124
+ function exampleStories(examples) {
125
+ const { shown, rest } = partitionExamples(examples);
126
+ const leadId = shown[0]?.id;
127
+ const ordered = [
128
+ ...shown,
129
+ ...rest.filter((e) => e.summary),
130
+ ...rest.filter((e) => !e.summary)
131
+ ];
132
+ return ordered.map((e) => ({
133
+ id: e.id,
134
+ name: titleize(e.name),
135
+ ...e.id === leadId ? { lead: true } : {},
136
+ ...e.summary ? { summary: e.summary } : {}
137
+ }));
138
+ }
99
139
  function listComponents() {
100
140
  return DOCS.map((d) => ({
101
141
  name: d.name,
102
142
  description: d.description,
143
+ // LISTED-only components (no metadata file): flagged so an agent knows
144
+ // get_component won't carry when-to-use/decisionTree/mui guidance for them —
145
+ // examples + the .d.ts are still available. Documented rows omit the flag.
146
+ ...d.documented ? {} : { documented: false },
103
147
  keywords: d.curation.keywords ?? [],
104
- examples: d.examples.length,
105
148
  // Family signal: the parts a compound component is composed with, and the
106
- // sibling variants chosen between — so relationships are visible while scanning.
149
+ // sibling variants chosen between — each as { name, description } (same shape
150
+ // as get_component) so an agent can pick a family member while scanning.
107
151
  ...d.curation.subComponents?.length ? { subComponents: d.curation.subComponents } : {},
108
- ...d.curation.variants?.length ? { variants: d.curation.variants } : {}
152
+ ...d.curation.variants?.length ? { variants: d.curation.variants } : {},
153
+ // The public hooks/utils/constants that ship with this component — name,
154
+ // kind, and description (same as subComponents/variants, so an agent can pick
155
+ // one while scanning without a get_component round-trip). get_component adds
156
+ // `import` (the entry point — constant across the family, so omitted here).
157
+ ...d.curation.relatedExports?.length ? {
158
+ relatedExports: d.curation.relatedExports.map((e) => ({
159
+ name: relatedName(e),
160
+ ...typeof e === "object" && e.kind ? { kind: e.kind } : {},
161
+ ...typeof e === "object" && e.description ? { description: e.description } : {}
162
+ }))
163
+ } : {}
109
164
  }));
110
165
  }
111
166
  function getComponent(name) {
112
167
  const doc = find(name);
113
168
  if (!doc) return familyRedirect(name) ?? notFound(name);
114
- const parts = doc.curation.subComponents ?? [];
115
- const dtsGlob = parts.length > 0 ? `find node_modules/@carto/meridian-ds/dist/types \\( ${[doc.name, ...parts].map((n) => `-name '${n}.d.ts'`).join(" -o ")} \\)` : `find node_modules/@carto/meridian-ds/dist/types -name '${doc.name}.d.ts'`;
169
+ const parts = (doc.curation.subComponents ?? []).map(subName);
170
+ const dtsGlob = dtsFindRecipe(doc.name, ...parts);
116
171
  const compound = parts.length > 0 ? `${doc.name} is a compound component \u2014 compose it with its parts: ${parts.join(", ")}. ` : "";
172
+ const parent = doc.documented ? void 0 : familyParent(doc.name);
173
+ const sourceHint = doc.examples.length ? "Use the examples below and its type declarations" : "No example stories ship for it either \u2014 rely on its type declarations (the propTypes recipe below)";
174
+ const note = doc.documented ? void 0 : `${parent ? `${doc.name} is a ${parent.role} of ${parent.parent} \u2014 compose it within ${parent.parent} (see meridian_get_component('${parent.parent}')). ` : ""}Not yet curated: no when-to-use / decisionTree / keywords / promoted-prop guidance for this component. ${sourceHint} \u2014 and still prefer it over a bare MUI equivalent.`;
117
175
  return {
118
176
  name: doc.name,
119
177
  description: doc.description,
120
- reminder: "Apply the session conventions when using this \u2014 call meridian_get_conventions first if you have not this session.",
178
+ documented: doc.documented,
179
+ ...note ? { note } : {},
121
180
  curation: doc.curation,
122
181
  // Own props/types/JSDoc aren't in the bundle by design; point a headless
123
182
  // agent at the shipped .d.ts (no IDE/hover assumed) — for the root and, for a
124
183
  // compound component, every part. Promoted inherited MUI props, when curated,
125
184
  // are already in `curation.mui` above.
126
185
  propTypes: `${compound}Own props, exact types, and JSDoc are not in this payload \u2014 they ship as TypeScript declarations. Read them from the installed package: \`${dtsGlob}\`. Import from '@carto/meridian-ds/components'.`,
127
- examples: (() => {
128
- const { shown, rest } = partitionExamples(doc.examples);
129
- const leadId = shown[0]?.id;
130
- return {
131
- note: "Stories are ordered by copy-value; the flagged lead is the starting point. Call meridian_get_examples(name) for the lead and the summarized stories in full plus an index of the rest; pass a storyId for any specific one.",
132
- stories: [...shown, ...rest].map((e) => ({
133
- id: e.id,
134
- name: titleize(e.name),
135
- ...e.id === leadId ? { lead: true } : {},
136
- ...e.summary ? { summary: e.summary } : {}
137
- }))
138
- };
139
- })()
186
+ examples: doc.examples.length ? {
187
+ note: "Stories are ordered by copy-value; the flagged lead is the starting point. Call meridian_get_examples(name) for the lead in full plus an index of the rest; pass a storyId for any specific one.",
188
+ stories: exampleStories(doc.examples)
189
+ } : {
190
+ note: "No example stories ship for this component yet \u2014 read its props from the .d.ts (see propTypes above).",
191
+ stories: []
192
+ }
140
193
  };
141
194
  }
142
195
  function titleize(name) {
@@ -158,9 +211,10 @@ function getComponentExamples(name, storyId) {
158
211
 
159
212
  ${summary}${ex.code}`;
160
213
  }
161
- if (!doc.examples.length) return `# ${doc.name}
214
+ if (!doc.examples.length)
215
+ return `# ${doc.name}
162
216
 
163
- No examples available.`;
217
+ No example stories ship for ${doc.name} yet. It's a real Meridian component \u2014 import it from '@carto/meridian-ds/components' and read its props from its type declarations: ${dtsFindRecipe(doc.name)}.`;
164
218
  const componentId = doc.examples[0].id.split("--")[0];
165
219
  const { shown, rest } = partitionExamples(doc.examples);
166
220
  let md = `# ${doc.name}
@@ -208,7 +262,7 @@ function callTool(name, args) {
208
262
  args.storyId ? String(args.storyId) : void 0
209
263
  );
210
264
  case "meridian_get_conventions":
211
- return { conventions: CONVENTIONS };
265
+ return CONVENTIONS;
212
266
  default:
213
267
  throw new Error(`Unknown tool: ${name}`);
214
268
  }
@@ -223,6 +277,8 @@ Flow:
223
277
  3. meridian_get_component(name) \u2014 when to use it, its decisionTree (conditions that point to a different component), and the high-value inherited MUI props worth knowing (curation.mui; some carry an aiHint). It also returns the example story ids.
224
278
  4. meridian_get_examples(name[, storyId]) \u2014 real, copy-able example code. With no storyId: the lead usage story and the notable stories in full plus a list of the rest; pass a storyId for one story's full code.
225
279
 
280
+ Three tiers of components, by how much each carries (all are real and importable \u2014 always prefer one over a bare MUI equivalent): CURATED (most) have full when-to-use / decisionTree / promoted-prop guidance; LISTED (flagged "documented": false, with example stories) carry no curation yet \u2014 lean on get_examples + the .d.ts; KNOWN (flagged "documented": false, no stories) are real components not yet documented \u2014 get_component/get_examples point you at their type declarations (.d.ts).
281
+
226
282
  Exact own props, types, and JSDoc are NOT served here \u2014 they ship as TypeScript declarations in the installed package. Read them with: find node_modules/@carto/meridian-ds/dist/types -name '<Component>.d.ts'. Import the component from '@carto/meridian-ds/components'. Prefer a Meridian component over a bare MUI one whenever one exists.`;
227
283
  function send(msg) {
228
284
  process.stdout.write(JSON.stringify(msg) + "\n");
@@ -277,6 +333,7 @@ function load() {
277
333
  fs.readFileSync(bundlePath, "utf8")
278
334
  );
279
335
  DOCS = bundle.components;
336
+ KNOWN = bundle.knownComponents ?? [];
280
337
  CONVENTIONS = bundle.conventions;
281
338
  VERSION = bundle.version;
282
339
  process.stderr.write(
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const material = require("@mui/material");
6
6
  const iconsMaterial = require("@mui/icons-material");
7
- const paletteUtils = require("../palette-utils-CfP0zi6X.cjs");
8
- const ListItem = require("../ListItem-BOr1gyyO.cjs");
7
+ const paletteUtils = require("../palette-utils-Ou97WiuF.cjs");
8
+ const ListItem = require("../ListItem-CLIaUyDV.cjs");
9
9
  const ArrowDown = require("../ArrowDown-84Oc8r9k.cjs");
10
10
  const OpenDiagonallyRight = require("../OpenDiagonallyRight-BUZBgnkY.cjs");
11
- const utils = require("../utils-BfSr53C0.cjs");
11
+ const utils = require("../utils-DtB4pKaP.cjs");
12
12
  require("cartocolor");
13
13
  const ReactWindow = require("react-window");
14
14
  const reactCodemirror2 = require("react-codemirror2");
@@ -4758,7 +4758,7 @@ const Root$1 = material.styled(material.Stack, {
4758
4758
  height: contentHeight,
4759
4759
  minHeight: contentHeight
4760
4760
  }));
4761
- const IconWrapper = material.styled(material.Box, {
4761
+ const IconWrapper$1 = material.styled(material.Box, {
4762
4762
  shouldForwardProp: (prop) => prop !== "size" && prop !== "iconSize" && prop !== "iconColor"
4763
4763
  })(({ size, iconSize, iconColor, theme }) => {
4764
4764
  const finalIconSize = iconSize ?? (size === "small" ? theme.spacing(5) : theme.spacing(6));
@@ -4833,7 +4833,7 @@ function _EmptyState({
4833
4833
  "data-icon-size": iconSize,
4834
4834
  "data-icon-color": iconColor ?? "null",
4835
4835
  children: [
4836
- icon && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper, { size, iconSize, iconColor, children: icon }),
4836
+ icon && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$1, { size, iconSize, iconColor, children: icon }),
4837
4837
  hasAnyTextContent && /* @__PURE__ */ jsxRuntime.jsxs(TextContent, { contentWidth, children: [
4838
4838
  title && /* @__PURE__ */ jsxRuntime.jsx(
4839
4839
  paletteUtils.Typography,
@@ -4989,6 +4989,173 @@ function _Avatar({
4989
4989
  );
4990
4990
  }
4991
4991
  const Avatar = React.forwardRef(_Avatar);
4992
+ function colorStyles({
4993
+ color,
4994
+ background,
4995
+ backgroundAlpha,
4996
+ disabled,
4997
+ theme
4998
+ }) {
4999
+ let iconColor;
5000
+ let derivedBackground;
5001
+ if (disabled) {
5002
+ iconColor = theme.palette.text.disabled;
5003
+ derivedBackground = theme.palette.action.disabledBackground;
5004
+ } else if (color === "inherit") {
5005
+ iconColor = "inherit";
5006
+ derivedBackground = void 0;
5007
+ } else if (color === "default") {
5008
+ iconColor = theme.palette.text.secondary;
5009
+ derivedBackground = theme.palette.default.background;
5010
+ } else if (color === "primary") {
5011
+ iconColor = theme.palette.primary.main;
5012
+ derivedBackground = theme.palette.primary.background;
5013
+ } else if (color === "secondary") {
5014
+ iconColor = theme.palette.secondary.dark;
5015
+ derivedBackground = theme.palette.secondary.background;
5016
+ } else {
5017
+ iconColor = color;
5018
+ derivedBackground = material.alpha(color, backgroundAlpha);
5019
+ }
5020
+ const customBackground = !disabled && typeof background === "string" ? background : void 0;
5021
+ const backgroundColor = customBackground ?? derivedBackground;
5022
+ const isExplicitColor = color !== "inherit" && color !== "default";
5023
+ return {
5024
+ color: iconColor,
5025
+ ...!!background && backgroundColor && { backgroundColor },
5026
+ // Monochrome icon paths follow the wrapper color via `currentColor`. The
5027
+ // tripled `&&&` (0,3,2) reliably outranks ambient container rules that fill
5028
+ // the icon directly — e.g. an extended MenuItem's `.MuiMenuItem-root
5029
+ // .MuiListItemIcon-root svg path { fill }` (0,2,2) — so a `default` icon
5030
+ // consistently follows the wrapper color (and a selected container's
5031
+ // recolor, via `currentColor`). Multi-color/brand icons keep their own
5032
+ // fills under `color="inherit"`, which skips this rule entirely.
5033
+ ...color !== "inherit" && {
5034
+ "&&& svg path": { fill: "currentColor" }
5035
+ },
5036
+ // An explicit color must win over EVERY container style, including ones that
5037
+ // recolor via `svg { color }` (e.g. the selected-list rule
5038
+ // `[aria-selected="true"] .MuiListItemIcon-root …:not(:has()) svg`, 0,4,1)
5039
+ // or that set the path fill directly. `!important` on both guarantees it
5040
+ // without a specificity arms race. `default` is intentionally NOT pinned, so
5041
+ // a selected container can still recolor a default icon as usual.
5042
+ ...isExplicitColor && {
5043
+ "& svg": { color: `${iconColor} !important` },
5044
+ "& svg path": { fill: `${iconColor} !important` }
5045
+ }
5046
+ };
5047
+ }
5048
+ const IconWrapperRoot = material.styled(material.Box, {
5049
+ shouldForwardProp: (prop) => ![
5050
+ "size",
5051
+ "variant",
5052
+ "color",
5053
+ "background",
5054
+ "backgroundAlpha",
5055
+ "disablePadding",
5056
+ "withBorder"
5057
+ ].includes(prop)
5058
+ // The styling props (everything except children + the tooltip pass-through),
5059
+ // required since all are defaulted by the time they reach the root.
5060
+ })(({
5061
+ theme,
5062
+ size,
5063
+ variant,
5064
+ color,
5065
+ background,
5066
+ backgroundAlpha,
5067
+ disablePadding,
5068
+ withBorder,
5069
+ disabled
5070
+ }) => {
5071
+ let iconSize;
5072
+ if (disablePadding) iconSize = `${size}px`;
5073
+ else if (size <= 12) iconSize = `${size - 2}px`;
5074
+ else if (size <= 18) iconSize = paletteUtils.ICON_SIZE_SMALL;
5075
+ else if (size <= 32) iconSize = paletteUtils.ICON_SIZE_MEDIUM;
5076
+ else iconSize = paletteUtils.ICON_SIZE_LARGE;
5077
+ const borderRadius = variant === "circular" ? "50%" : variant === "rounded" ? theme.spacing(size <= 12 ? 0.25 : 0.5) : 0;
5078
+ return {
5079
+ display: "inline-flex",
5080
+ alignItems: "center",
5081
+ justifyContent: "center",
5082
+ boxSizing: "border-box",
5083
+ flexShrink: 0,
5084
+ width: size,
5085
+ height: size,
5086
+ borderRadius,
5087
+ ...withBorder && { border: `1px solid ${theme.palette.divider}` },
5088
+ ...colorStyles({ color, background, backgroundAlpha, disabled, theme }),
5089
+ // Size the icon. `!important` guarantees the wrapper's `size` wins over
5090
+ // high-specificity container rules that size descendant svgs — e.g.
5091
+ // ListItemIcon's `[data-icon-size] …:not(:has()) svg { width }` (0,5,1) or a
5092
+ // MenuItem forcing `svg { width: 18px }`. (Path fill is in `colorStyles`.)
5093
+ "&& svg": {
5094
+ fontSize: `${iconSize} !important`,
5095
+ width: `${iconSize} !important`,
5096
+ minWidth: `${iconSize} !important`,
5097
+ height: `${iconSize} !important`,
5098
+ // Dim + desaturate when disabled — also covers multi-color icons, which
5099
+ // don't react to `text.disabled`. `grayscale` is a no-op on monochrome
5100
+ // (currentColor) icons.
5101
+ ...disabled && color === "inherit" && {
5102
+ opacity: 0.4,
5103
+ filter: "grayscale(1)"
5104
+ }
5105
+ }
5106
+ };
5107
+ });
5108
+ function _IconWrapper({
5109
+ children,
5110
+ size = 24,
5111
+ variant = "rounded",
5112
+ color = "default",
5113
+ withBorder = false,
5114
+ background = false,
5115
+ backgroundAlpha = 0.2,
5116
+ disablePadding = false,
5117
+ disabled = false,
5118
+ tooltip,
5119
+ tooltipProps,
5120
+ ...otherProps
5121
+ }, ref) {
5122
+ const ariaLabel = typeof tooltip === "string" ? tooltip : void 0;
5123
+ const root = /* @__PURE__ */ jsxRuntime.jsx(
5124
+ IconWrapperRoot,
5125
+ {
5126
+ ref,
5127
+ size,
5128
+ variant,
5129
+ color,
5130
+ background,
5131
+ backgroundAlpha,
5132
+ disablePadding,
5133
+ withBorder,
5134
+ disabled,
5135
+ "aria-disabled": disabled,
5136
+ "aria-label": ariaLabel,
5137
+ tabIndex: tooltip ? 0 : void 0,
5138
+ "data-name": "icon-wrapper",
5139
+ "data-size": size,
5140
+ "data-variant": variant,
5141
+ "data-color": color,
5142
+ ...otherProps,
5143
+ children
5144
+ }
5145
+ );
5146
+ if (!tooltip) return root;
5147
+ return /* @__PURE__ */ jsxRuntime.jsx(
5148
+ material.Tooltip,
5149
+ {
5150
+ title: tooltip,
5151
+ describeChild: Boolean(ariaLabel),
5152
+ ...tooltipProps,
5153
+ children: root
5154
+ }
5155
+ );
5156
+ }
5157
+ const IconWrapper = React.forwardRef(_IconWrapper);
5158
+ IconWrapper.displayName = "IconWrapper";
4992
5159
  const StyledMenu = material.styled(material.Menu, {
4993
5160
  shouldForwardProp: (prop) => !["extended", "width", "height"].includes(prop)
4994
5161
  })(({ extended, width, height }) => ({
@@ -6650,16 +6817,26 @@ const DEFAULT_SECONDARY_TYPOGRAPHY_PROPS = {
6650
6817
  color: "text.secondary",
6651
6818
  noWrap: true
6652
6819
  };
6653
- function mergeTypographyProps$1(defaultProps, userProps) {
6654
- if (!userProps) return defaultProps;
6655
- const { sx: userSx, ...userRest } = userProps;
6820
+ function resolveTypographyProps(defaultProps, userProps) {
6821
+ const {
6822
+ weight,
6823
+ italic,
6824
+ sx: userSx,
6825
+ ...userRest
6826
+ } = userProps ?? {};
6656
6827
  const { sx: defaultSx, ...defaultRest } = defaultProps;
6828
+ const fontSx = {};
6829
+ if (weight) fontSx.fontWeight = paletteUtils.FontWeight[weight];
6830
+ if (italic) fontSx.fontStyle = "italic";
6831
+ const sxParts = [
6832
+ defaultSx,
6833
+ userSx,
6834
+ Object.keys(fontSx).length ? fontSx : void 0
6835
+ ].filter(Boolean);
6657
6836
  return {
6658
6837
  ...defaultRest,
6659
6838
  ...userRest,
6660
- ...(defaultSx || userSx) && {
6661
- sx: [defaultSx, userSx].filter(Boolean)
6662
- }
6839
+ ...sxParts.length > 0 && { sx: sxParts }
6663
6840
  };
6664
6841
  }
6665
6842
  function _ListItemText({
@@ -6671,11 +6848,11 @@ function _ListItemText({
6671
6848
  material.ListItemText,
6672
6849
  {
6673
6850
  ...props,
6674
- primaryTypographyProps: mergeTypographyProps$1(
6851
+ primaryTypographyProps: resolveTypographyProps(
6675
6852
  DEFAULT_PRIMARY_TYPOGRAPHY_PROPS,
6676
6853
  primaryTypographyProps
6677
6854
  ),
6678
- secondaryTypographyProps: mergeTypographyProps$1(
6855
+ secondaryTypographyProps: resolveTypographyProps(
6679
6856
  DEFAULT_SECONDARY_TYPOGRAPHY_PROPS,
6680
6857
  secondaryTypographyProps
6681
6858
  ),
@@ -7053,6 +7230,7 @@ exports.EllipsisWithTooltip = EllipsisWithTooltip;
7053
7230
  exports.EmptyState = EmptyState;
7054
7231
  exports.FilterDropdown = FilterDropdown;
7055
7232
  exports.FilterDropdownMenuItem = FilterDropdownMenuItem;
7233
+ exports.IconWrapper = IconWrapper;
7056
7234
  exports.LabelWithIndicator = LabelWithIndicator;
7057
7235
  exports.ListItemIcon = ListItemIcon;
7058
7236
  exports.ListItemRightContent = ListItemRightContent;