@carto/meridian-ds 4.4.0 → 4.4.1-alpha.024ee4e.329

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 (213) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/components/index.cjs +643 -395
  3. package/dist/components/index.js +572 -324
  4. package/dist/fonts/inter/Inter-Medium.woff2 +0 -0
  5. package/dist/fonts/inter/Inter-Regular.woff2 +0 -0
  6. package/dist/fonts/inter/Inter-SemiBold.woff2 +0 -0
  7. package/dist/fonts/overpass-mono/OverpassMono-Regular.woff2 +0 -0
  8. package/dist/fonts/overpass-mono/OverpassMono-SemiBold.woff2 +0 -0
  9. package/dist/icons-screenshot.webp +0 -0
  10. package/dist/metadata.json +229 -229
  11. package/dist/palette-utils-CGE9j8_H.js +398 -0
  12. package/dist/palette-utils-Cza0wkfu.cjs +414 -0
  13. package/dist/theme/index.cjs +487 -234
  14. package/dist/theme/index.js +465 -212
  15. package/dist/types/components/AccordionGroup/AccordionGroup.stories.d.ts.map +1 -1
  16. package/dist/types/components/Alert/Alert.stories.d.ts.map +1 -1
  17. package/dist/types/components/AppBar/AppBar.stories.d.ts.map +1 -1
  18. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.d.ts +1 -1
  19. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.d.ts.map +1 -1
  20. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.figma.d.ts.map +1 -1
  21. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.metadata.d.ts.map +1 -1
  22. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts +20 -1
  23. package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
  24. package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts +2 -2
  25. package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts.map +1 -1
  26. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts +1 -1
  27. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts.map +1 -1
  28. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts +1 -1
  29. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts.map +1 -1
  30. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts +1 -1
  31. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts.map +1 -1
  32. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts +1 -1
  33. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts.map +1 -1
  34. package/dist/types/components/Autocomplete/MultipleAutocomplete/useMultipleAutocomplete.d.ts +1 -1
  35. package/dist/types/components/Autocomplete/test-utils/autocomplete-test-utils.d.ts +1 -1
  36. package/dist/types/components/Autocomplete/types.d.ts +1 -1
  37. package/dist/types/components/Autocomplete/types.d.ts.map +1 -1
  38. package/dist/types/components/Autocomplete/utils/utils.d.ts +8 -8
  39. package/dist/types/components/Autocomplete/utils/utils.d.ts.map +1 -1
  40. package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -1
  41. package/dist/types/components/Button/Button.d.ts +19 -8
  42. package/dist/types/components/Button/Button.d.ts.map +1 -1
  43. package/dist/types/components/Button/Button.stories.d.ts +3 -1
  44. package/dist/types/components/Button/Button.stories.d.ts.map +1 -1
  45. package/dist/types/components/ChipGroup/ChipGroup.stories.d.ts.map +1 -1
  46. package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.stories.d.ts.map +1 -1
  47. package/dist/types/components/CodeArea/CodeAreaField/CodeAreaField.stories.d.ts.map +1 -1
  48. package/dist/types/components/CodeArea/CodeAreaHeader/CodeAreaHeader.d.ts.map +1 -1
  49. package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts.map +1 -1
  50. package/dist/types/components/CopiableInputText/CopiableInputText.d.ts +2 -2
  51. package/dist/types/components/CopiableInputText/CopiableInputText.d.ts.map +1 -1
  52. package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts +2 -2
  53. package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts.map +1 -1
  54. package/dist/types/components/DatePickers/DateCalendar.stories.d.ts +9 -9
  55. package/dist/types/components/DatePickers/DateCalendar.stories.d.ts.map +1 -1
  56. package/dist/types/components/DatePickers/DatePicker/DatePicker.d.ts +1 -1
  57. package/dist/types/components/DatePickers/DatePicker/DatePicker.d.ts.map +1 -1
  58. package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts +11 -10
  59. package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts.map +1 -1
  60. package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.d.ts +1 -1
  61. package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.d.ts.map +1 -1
  62. package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.stories.d.ts +15 -12
  63. package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.stories.d.ts.map +1 -1
  64. package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.d.ts +1 -1
  65. package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  66. package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts +11 -10
  67. package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
  68. package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.d.ts +1 -1
  69. package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.d.ts.map +1 -1
  70. package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts +12 -12
  71. package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
  72. package/dist/types/components/DatePickers/PickerDay/PickerDay.d.ts +4 -0
  73. package/dist/types/components/DatePickers/PickerDay/PickerDay.d.ts.map +1 -0
  74. package/dist/types/components/DatePickers/PickerDay/PickerDay.test.d.ts +2 -0
  75. package/dist/types/components/DatePickers/PickerDay/PickerDay.test.d.ts.map +1 -0
  76. package/dist/types/components/DatePickers/TimePicker/TimePicker.d.ts +1 -1
  77. package/dist/types/components/DatePickers/TimePicker/TimePicker.d.ts.map +1 -1
  78. package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts +12 -12
  79. package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts.map +1 -1
  80. package/dist/types/components/DatePickers/types.d.ts +23 -17
  81. package/dist/types/components/DatePickers/types.d.ts.map +1 -1
  82. package/dist/types/components/Dialog/Dialog/Dialog.d.ts.map +1 -1
  83. package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts.map +1 -1
  84. package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts.map +1 -1
  85. package/dist/types/components/Dialog/DialogPaper/DialogPaper.d.ts +1 -1
  86. package/dist/types/components/Dialog/DialogPaper/DialogPaper.d.ts.map +1 -1
  87. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +9 -9
  88. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -1
  89. package/dist/types/components/EmptyState/EmptyState.d.ts.map +1 -1
  90. package/dist/types/components/FilterDropdown/FilterDropdown.d.ts +1 -1
  91. package/dist/types/components/FilterDropdown/FilterDropdown.d.ts.map +1 -1
  92. package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts.map +1 -1
  93. package/dist/types/components/FilterDropdown/FilterDropdownMenuItem/FilterDropdownMenuItem.d.ts.map +1 -1
  94. package/dist/types/components/FilterDropdown/types.d.ts +2 -1
  95. package/dist/types/components/FilterDropdown/types.d.ts.map +1 -1
  96. package/dist/types/components/IconButton/IconButton.d.ts.map +1 -1
  97. package/dist/types/components/IconButton/IconButton.stories.d.ts.map +1 -1
  98. package/dist/types/components/IconWrapper/IconWrapper.stories.d.ts.map +1 -1
  99. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.stories.d.ts.map +1 -1
  100. package/dist/types/components/Link/Link.d.ts +18 -4
  101. package/dist/types/components/Link/Link.d.ts.map +1 -1
  102. package/dist/types/components/Link/Link.stories.d.ts +3 -2
  103. package/dist/types/components/Link/Link.stories.d.ts.map +1 -1
  104. package/dist/types/components/List/ListItem/ListItem.stories.d.ts.map +1 -1
  105. package/dist/types/components/List/ListItemRightContent/ListItemRightContent.d.ts.map +1 -1
  106. package/dist/types/components/List/ListItemText/ListItemText.d.ts.map +1 -1
  107. package/dist/types/components/List/ListSubheader/ListSubheader.d.ts.map +1 -1
  108. package/dist/types/components/Loader/Loader.d.ts.map +1 -1
  109. package/dist/types/components/Loader/Loader.stories.d.ts +5 -3
  110. package/dist/types/components/Loader/Loader.stories.d.ts.map +1 -1
  111. package/dist/types/components/Menu/Menu/Menu.d.ts.map +1 -1
  112. package/dist/types/components/Menu/Menu/Menu.stories.d.ts +24 -12
  113. package/dist/types/components/Menu/Menu/Menu.stories.d.ts.map +1 -1
  114. package/dist/types/components/Menu/MenuItem/MenuItem.d.ts +1 -1
  115. package/dist/types/components/Menu/MenuItem/MenuItem.d.ts.map +1 -1
  116. package/dist/types/components/MessageField/MessageField.d.ts.map +1 -1
  117. package/dist/types/components/MessageField/MessageField.stories.d.ts.map +1 -1
  118. package/dist/types/components/MessageField/MessageField.styled.d.ts +1 -1
  119. package/dist/types/components/MessageField/components/MessageFieldFooter.d.ts.map +1 -1
  120. package/dist/types/components/PasswordField/PasswordField.d.ts +2 -2
  121. package/dist/types/components/PasswordField/PasswordField.d.ts.map +1 -1
  122. package/dist/types/components/PasswordField/PasswordField.stories.d.ts +2 -2
  123. package/dist/types/components/PasswordField/PasswordField.stories.d.ts.map +1 -1
  124. package/dist/types/components/SearchField/SearchField.d.ts.map +1 -1
  125. package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -1
  126. package/dist/types/components/SearchField/SearchField.styled.d.ts +2 -2
  127. package/dist/types/components/SearchField/types.d.ts +2 -0
  128. package/dist/types/components/SearchField/types.d.ts.map +1 -1
  129. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
  130. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts.map +1 -1
  131. package/dist/types/components/SelectField/SelectField/SelectField.d.ts +1 -1
  132. package/dist/types/components/SelectField/SelectField/SelectField.d.ts.map +1 -1
  133. package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts +1 -1
  134. package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts.map +1 -1
  135. package/dist/types/components/Snackbar/Snackbar.stories.d.ts.map +1 -1
  136. package/dist/types/components/SplitButton/SplitButton.stories.d.ts.map +1 -1
  137. package/dist/types/components/TablePaginationActions/TablePaginationActions.stories.d.ts.map +1 -1
  138. package/dist/types/components/Tag/Tag.stories.d.ts.map +1 -1
  139. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts.map +1 -1
  140. package/dist/types/components/TooltipData/TooltipData.stories.d.ts.map +1 -1
  141. package/dist/types/components/Typography/Typography.d.ts +16 -4
  142. package/dist/types/components/Typography/Typography.d.ts.map +1 -1
  143. package/dist/types/components/Typography/Typography.stories.d.ts +7 -5
  144. package/dist/types/components/Typography/Typography.stories.d.ts.map +1 -1
  145. package/dist/types/components/UploadField/UploadField.d.ts.map +1 -1
  146. package/dist/types/components/UploadField/UploadField.stories.d.ts.map +1 -1
  147. package/dist/types/components/UploadField/UploadField.styled.d.ts +1 -1
  148. package/dist/types/components/UploadField/UploadFieldBase.d.ts.map +1 -1
  149. package/dist/types/custom-icons/__docs__/CustomIcons.stories.d.ts.map +1 -1
  150. package/dist/types/theme/base-theme-options.d.ts +2 -1764
  151. package/dist/types/theme/base-theme-options.d.ts.map +1 -1
  152. package/dist/types/theme/carto-theme.d.ts +2 -4258
  153. package/dist/types/theme/carto-theme.d.ts.map +1 -1
  154. package/dist/types/theme/components/buttons.d.ts.map +1 -1
  155. package/dist/types/theme/components/data-display.d.ts.map +1 -1
  156. package/dist/types/theme/components/date-pickers.d.ts.map +1 -1
  157. package/dist/types/theme/components/forms.d.ts.map +1 -1
  158. package/dist/types/theme/components/navigation.d.ts.map +1 -1
  159. package/dist/types/theme/components/stories/ButtonGroup.stories.d.ts.map +1 -1
  160. package/dist/types/theme/components/stories/Checkbox.stories.d.ts.map +1 -1
  161. package/dist/types/theme/components/stories/Chip.stories.d.ts.map +1 -1
  162. package/dist/types/theme/components/stories/Divider.stories.d.ts +3 -16
  163. package/dist/types/theme/components/stories/Divider.stories.d.ts.map +1 -1
  164. package/dist/types/theme/components/stories/FAB.stories.d.ts.map +1 -1
  165. package/dist/types/theme/components/stories/InputLabel.stories.d.ts.map +1 -1
  166. package/dist/types/theme/components/stories/LinearProgress.stories.d.ts.map +1 -1
  167. package/dist/types/theme/components/stories/Paper.stories.d.ts.map +1 -1
  168. package/dist/types/theme/components/stories/Radio.stories.d.ts.map +1 -1
  169. package/dist/types/theme/components/stories/Slider.stories.d.ts +1 -1
  170. package/dist/types/theme/components/stories/Slider.stories.d.ts.map +1 -1
  171. package/dist/types/theme/components/stories/Switch.stories.d.ts.map +1 -1
  172. package/dist/types/theme/components/stories/Tabs.stories.d.ts +12 -0
  173. package/dist/types/theme/components/stories/Tabs.stories.d.ts.map +1 -1
  174. package/dist/types/theme/components/stories/TextArea.stories.d.ts.map +1 -1
  175. package/dist/types/theme/components/stories/TextField.stories.d.ts.map +1 -1
  176. package/dist/types/theme/components/stories/ToggleButton.stories.d.ts.map +1 -1
  177. package/dist/types/theme/components/stories/Tooltip.stories.d.ts +10 -0
  178. package/dist/types/theme/components/stories/Tooltip.stories.d.ts.map +1 -1
  179. package/dist/types/theme/css-baseline.d.ts +2 -904
  180. package/dist/types/theme/css-baseline.d.ts.map +1 -1
  181. package/dist/types/theme/tokens/ColorTokens.stories.d.ts.map +1 -1
  182. package/dist/types/theme/tokens/LayoutTokens.stories.d.ts.map +1 -1
  183. package/dist/types/theme/tokens/TypographyTokens.stories.d.ts.map +1 -1
  184. package/dist/types/theme/tokens/typography.d.ts +2 -1705
  185. package/dist/types/theme/tokens/typography.d.ts.map +1 -1
  186. package/dist/types/theme/types.d.ts +29 -9
  187. package/dist/types/theme/types.d.ts.map +1 -1
  188. package/dist/types/utils/palette-path.d.ts +13 -0
  189. package/dist/types/utils/palette-path.d.ts.map +1 -0
  190. package/dist/types/utils/palette-path.test.d.ts +2 -0
  191. package/dist/types/utils/palette-path.test.d.ts.map +1 -0
  192. package/dist/types/utils/slot-props-utils.d.ts +13 -0
  193. package/dist/types/utils/slot-props-utils.d.ts.map +1 -0
  194. package/dist/types/widgets/SkeletonWidgets.d.ts +4 -4
  195. package/dist/types/widgets/legend/LegendLayer.d.ts.map +1 -1
  196. package/dist/types/widgets/legend/LegendLayerTitle.d.ts.map +1 -1
  197. package/dist/types/widgets/legend/LegendLayerVariable.d.ts.map +1 -1
  198. package/dist/types/widgets/legend/LegendOpacityControl.d.ts.map +1 -1
  199. package/dist/types/widgets/legend/LegendWidgetUI.d.ts.map +1 -1
  200. package/dist/types/widgets/legend/LegendWidgetUI.styles.d.ts +2 -2
  201. package/dist/types/widgets/legend/legend-types/LegendCategories.d.ts.map +1 -1
  202. package/dist/types/widgets/legend/legend-types/LegendRamp.d.ts.map +1 -1
  203. package/dist/{TablePaginationActions-BJS_RrOa.cjs → utils-D4zfQQdi.cjs} +16 -14
  204. package/dist/{TablePaginationActions-DQx-xT-a.js → utils-ti8hgJ5Q.js} +16 -14
  205. package/dist/widgets/index.cjs +172 -93
  206. package/dist/widgets/index.js +172 -93
  207. package/package.json +38 -33
  208. package/dist/palette-utils-C8uRrL9Q.cjs +0 -1152
  209. package/dist/palette-utils-nq8gri_k.js +0 -1136
  210. package/dist/types/components/DatePickers/PickersDay/PickersDay.d.ts +0 -4
  211. package/dist/types/components/DatePickers/PickersDay/PickersDay.d.ts.map +0 -1
  212. package/dist/types/components/DatePickers/PickersDay/PickersDay.test.d.ts +0 -2
  213. package/dist/types/components/DatePickers/PickersDay/PickersDay.test.d.ts.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import React, { forwardRef, useState, useRef, useEffect, useMemo, createElement, Fragment as Fragment$1, useCallback, useImperativeHandle, createContext, useContext } from "react";
3
- import { styled, Button as Button$1, Box, CircularProgress as CircularProgress$1, Tooltip, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, FormControl, InputLabel, FormHelperText, Select, Checkbox, Link as Link$1, ListItemText as ListItemText$1, IconButton as IconButton$1, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon as ListItemIcon$1, createFilterOptions, alpha, useTheme, Toolbar as Toolbar$1, AppBar as AppBar$1, Dialog as Dialog$1, Chip as Chip$1, DialogTitle as DialogTitle$1, DialogContent as DialogContent$1, Fade, AlertTitle, Alert as Alert$2, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Portal, Snackbar as Snackbar$1, List as List$2, ListItemButton as ListItemButton$1, ListItem as ListItem$1, ListSubheader as ListSubheader$1, Typography as Typography$1, Popover } from "@mui/material";
3
+ import { styled, Button as Button$1, CircularProgress as CircularProgress$1, Tooltip, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, Box, TextField, InputAdornment, FormControl, InputLabel, FormHelperText, Select, Checkbox, Link as Link$1, ListItemText as ListItemText$1, IconButton as IconButton$1, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon as ListItemIcon$1, createFilterOptions, alpha, useTheme, Toolbar as Toolbar$1, AppBar as AppBar$1, Dialog as Dialog$1, Chip as Chip$1, DialogTitle as DialogTitle$1, DialogContent as DialogContent$1, Fade, AlertTitle, Alert as Alert$2, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Portal, Snackbar as Snackbar$1, List as List$2, ListItemButton as ListItemButton$1, ListItem as ListItem$1, ListSubheader as ListSubheader$1, Popover } from "@mui/material";
4
4
  import { ListItemAvatar, ListItemSecondaryAction } from "@mui/material";
5
- import { T as Typography, I as ICON_SIZE_SMALL, a as ICON_SIZE_MEDIUM, M as MENU_ITEM_SIZE_EXTENDED, b as MENU_ITEM_SIZE_DEFAULT, c as MENU_LIST_MAX_SIZE, d as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, e as ICON_SIZE_LARGE, N as NOTIFICATION_DURATION_IN_MS, L as LIST_MAX_SIZE, f as LIST_ITEM_SIZE_DENSE, g as LIST_ITEM_SIZE_DEFAULT, h as LIST_OVERSCAN_ITEMS_COUNT, F as FontWeight, r as resolvePalettePath } from "../palette-utils-nq8gri_k.js";
6
- import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, ArrowBackOutlined, CloseOutlined, Check, TodayOutlined, StopCircleOutlined, ArrowUpwardOutlined } from "@mui/icons-material";
5
+ import { T as Typography, I as ICON_SIZE_SMALL, m as mergeSx, a as ICON_SIZE_MEDIUM, i as isPalettePath, M as MENU_ITEM_SIZE_EXTENDED, b as MENU_ITEM_SIZE_DEFAULT, c as MENU_LIST_MAX_SIZE, d as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, e as ICON_SIZE_LARGE, N as NOTIFICATION_DURATION_IN_MS, L as LIST_MAX_SIZE, f as LIST_ITEM_SIZE_DENSE, g as LIST_ITEM_SIZE_DEFAULT, h as LIST_OVERSCAN_ITEMS_COUNT, F as FontWeight, r as resolvePalettePath } from "../palette-utils-CGE9j8_H.js";
6
+ import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutlineOutlined, ErrorOutlineOutlined, ArrowBackOutlined, CloseOutlined, Check, TodayOutlined, StopCircleOutlined, ArrowUpwardOutlined } from "@mui/icons-material";
7
7
  import { F as ForwardedComponent$1 } from "../ArrowDown-Bho9Ssnw.js";
8
8
  import * as ReactWindow from "react-window";
9
- import { u as useTranslationWithFallback, I as IconButton, M as MenuItem$1, g as getThemeColor, e as ellipsisStyles, S as SVG_SELECTOR } from "../TablePaginationActions-DQx-xT-a.js";
10
- import { T } from "../TablePaginationActions-DQx-xT-a.js";
9
+ import { u as useTranslationWithFallback, I as IconButton, M as MenuItem$1, g as getThemeColor, e as ellipsisStyles, S as SVG_SELECTOR } from "../utils-ti8hgJ5Q.js";
10
+ import { T } from "../utils-ti8hgJ5Q.js";
11
11
  import { F as ForwardedComponent, a as ForwardedComponent$2, b as ForwardedComponent$3, c as ForwardedComponent$4 } from "../Search-DXfTNnxj.js";
12
12
  import "cartocolor";
13
13
  import { Controlled, UnControlled } from "react-codemirror2";
@@ -40,7 +40,7 @@ import { DatePicker as DatePicker$1 } from "@mui/x-date-pickers/DatePicker";
40
40
  import { useIntl } from "react-intl";
41
41
  import { u as useImperativeIntl } from "../useImperativeIntl-DXeh_Eda.js";
42
42
  import { DateCalendar } from "@mui/x-date-pickers/DateCalendar";
43
- import { PickersDay as PickersDay$1 } from "@mui/x-date-pickers";
43
+ import { PickerDay as PickerDay$1 } from "@mui/x-date-pickers";
44
44
  import { DateTimePicker as DateTimePicker$1 } from "@mui/x-date-pickers/DateTimePicker";
45
45
  import { TimePicker as TimePicker$1 } from "@mui/x-date-pickers/TimePicker";
46
46
  import DOMPurify from "dompurify";
@@ -55,20 +55,7 @@ const ScreenReaderOnly = styled("span")(() => ({
55
55
  whiteSpace: "nowrap",
56
56
  border: 0
57
57
  }));
58
- const IndicatorIcon = styled(Box)({
59
- position: "absolute",
60
- top: 0,
61
- left: 0,
62
- right: 0,
63
- bottom: 0,
64
- display: "flex",
65
- alignItems: "center",
66
- justifyContent: "center"
67
- });
68
- const HiddenText = styled(Box)({
69
- visibility: "hidden",
70
- pointerEvents: "none"
71
- });
58
+ const loadingIndicator = /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" });
72
59
  function _Button({
73
60
  children,
74
61
  loading,
@@ -86,46 +73,17 @@ function _Button({
86
73
  "c4r.button.opensInNewTab",
87
74
  screenReaderText
88
75
  );
89
- const defaultIconLoader = /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" });
90
- const isDefaultLoading = loading && loadingPosition === void 0;
91
76
  const isExternalLink = otherProps.href && external;
92
- const renderContent = () => {
93
- if (isDefaultLoading) {
94
- return /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
95
- /* @__PURE__ */ jsx(IndicatorIcon, { children: defaultIconLoader }),
96
- /* @__PURE__ */ jsx(HiddenText, { children })
97
- ] });
98
- }
99
- if (isExternalLink) {
100
- return /* @__PURE__ */ jsxs(Fragment, { children: [
101
- children,
102
- /* @__PURE__ */ jsx(ScreenReaderOnly, { id: "external-hint", children: screenReaderTextValue })
103
- ] });
104
- }
105
- return children;
106
- };
107
- const getIconForPosition = (position) => {
108
- if (isDefaultLoading) {
109
- return void 0;
110
- }
111
- if (loading && loadingPosition !== void 0) {
112
- if (loadingPosition === position) {
113
- return defaultIconLoader;
114
- }
115
- return void 0;
116
- }
117
- if (position === "start") {
118
- return startIcon;
119
- } else {
120
- return endIcon || (isExternalLink && showExternalIcon ? /* @__PURE__ */ jsx(OpenInNewOutlined, {}) : void 0);
121
- }
122
- };
77
+ const isCenterLoading = loading && loadingPosition === void 0;
123
78
  return /* @__PURE__ */ jsx(
124
79
  Button$1,
125
80
  {
126
- disabled: loading || disabled,
127
- startIcon: getIconForPosition("start"),
128
- endIcon: getIconForPosition("end"),
81
+ loading,
82
+ loadingPosition,
83
+ loadingIndicator,
84
+ disabled,
85
+ startIcon: loading ? void 0 : startIcon,
86
+ endIcon: loading ? void 0 : endIcon || (isExternalLink && showExternalIcon ? /* @__PURE__ */ jsx(OpenInNewOutlined, {}) : void 0),
129
87
  ...otherProps,
130
88
  role: otherProps.href ? "link" : "button",
131
89
  ...isExternalLink && {
@@ -134,11 +92,25 @@ function _Button({
134
92
  },
135
93
  ref,
136
94
  "aria-describedby": isExternalLink ? "external-hint" : ariaDescribedby,
137
- children: /* @__PURE__ */ jsx(Typography, { variant: "inherit", color: "inherit", noWrap: true, component: "span", children: renderContent() })
95
+ children: /* @__PURE__ */ jsxs(
96
+ Typography,
97
+ {
98
+ variant: "inherit",
99
+ color: "inherit",
100
+ noWrap: true,
101
+ component: "span",
102
+ sx: isCenterLoading ? { visibility: "hidden" } : void 0,
103
+ children: [
104
+ children,
105
+ isExternalLink && /* @__PURE__ */ jsx(ScreenReaderOnly, { id: "external-hint", children: screenReaderTextValue })
106
+ ]
107
+ }
108
+ )
138
109
  }
139
110
  );
140
111
  }
141
112
  const Button = forwardRef(_Button);
113
+ Button.displayName = "Button";
142
114
  const idCounter = {};
143
115
  function uniqueId(prefix = "$lodash$") {
144
116
  if (!idCounter[prefix]) {
@@ -339,11 +311,11 @@ function _LabelWithIndicator({
339
311
  }
340
312
  const LabelWithIndicator = forwardRef(_LabelWithIndicator);
341
313
  function _PasswordField({
342
- InputProps,
343
314
  size = "small",
344
315
  disabled,
345
316
  showPasswordText,
346
317
  hidePasswordText,
318
+ slotProps,
347
319
  ...otherProps
348
320
  }, ref) {
349
321
  const showPasswordLabel = useTranslationWithFallback(
@@ -357,6 +329,38 @@ function _PasswordField({
357
329
  const [showPassword, setShowPassword] = useState(false);
358
330
  const handleClickShowPassword = () => setShowPassword(!showPassword);
359
331
  const label = showPassword ? hidePasswordLabel : showPasswordLabel;
332
+ const consumerInput = slotProps == null ? void 0 : slotProps.input;
333
+ const consumerHtmlInput = slotProps == null ? void 0 : slotProps.htmlInput;
334
+ const buildInputSlotProps = ({
335
+ input,
336
+ htmlInput
337
+ }) => ({
338
+ ...input,
339
+ inputProps: {
340
+ ...htmlInput,
341
+ ...input == null ? void 0 : input.inputProps,
342
+ role: "textbox"
343
+ },
344
+ endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
345
+ IconButton,
346
+ {
347
+ size,
348
+ disabled,
349
+ onClick: handleClickShowPassword,
350
+ icon: showPassword ? /* @__PURE__ */ jsx(VisibilityOffOutlined, {}) : /* @__PURE__ */ jsx(VisibilityOutlined, {}),
351
+ tooltip: label,
352
+ "aria-label": label
353
+ }
354
+ ) })
355
+ });
356
+ const resolve = (value, ownerState) => typeof value === "function" ? value(ownerState) : value;
357
+ const inputSlotProps = typeof consumerInput === "function" || typeof consumerHtmlInput === "function" ? (ownerState) => buildInputSlotProps({
358
+ input: resolve(consumerInput, ownerState),
359
+ htmlInput: resolve(consumerHtmlInput, ownerState)
360
+ }) : buildInputSlotProps({
361
+ input: consumerInput,
362
+ htmlInput: consumerHtmlInput
363
+ });
360
364
  return /* @__PURE__ */ jsx(
361
365
  TextField,
362
366
  {
@@ -365,25 +369,11 @@ function _PasswordField({
365
369
  type: showPassword ? "text" : "password",
366
370
  size,
367
371
  disabled,
368
- InputProps: {
369
- ...InputProps,
370
- inputProps: {
371
- ...InputProps == null ? void 0 : InputProps.inputProps,
372
- role: "textbox"
373
- },
374
- endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
375
- IconButton,
376
- {
377
- size,
378
- disabled,
379
- onClick: handleClickShowPassword,
380
- icon: showPassword ? /* @__PURE__ */ jsx(VisibilityOffOutlined, {}) : /* @__PURE__ */ jsx(VisibilityOutlined, {}),
381
- tooltip: label,
382
- "aria-label": label
383
- }
384
- ) })
385
- },
386
- "data-name": "password-field"
372
+ "data-name": "password-field",
373
+ slotProps: {
374
+ ...slotProps,
375
+ input: inputSlotProps
376
+ }
387
377
  }
388
378
  );
389
379
  }
@@ -395,7 +385,7 @@ const StyledSelect = styled(Select)(({ theme }) => ({
395
385
  paddingLeft: theme.spacing(1.5)
396
386
  }
397
387
  },
398
- "& .MuiInputBase-inputAdornedStart": {
388
+ "&.MuiInputBase-adornedStart > .MuiInputBase-input": {
399
389
  paddingLeft: "0px !important"
400
390
  },
401
391
  "& .MuiSelect-select .MuiMenuItem-root:hover": {
@@ -426,11 +416,16 @@ function _SelectField({
426
416
  fullWidth,
427
417
  required,
428
418
  "aria-label": ariaLabel,
419
+ SelectDisplayProps,
429
420
  ...otherProps
430
421
  }, ref) {
431
422
  const isSmall = size === "small";
432
423
  const [defaultId] = useState(() => uniqueId("select-label-"));
433
424
  const ariaLabelledBy = label ? labelId ?? defaultId : void 0;
425
+ const [fallbackDisplayId] = useState(() => uniqueId("select-value-"));
426
+ const displayId = (SelectDisplayProps == null ? void 0 : SelectDisplayProps.id) ?? (name ? `mui-component-select-${name}` : fallbackDisplayId);
427
+ const isUnnamed = !ariaLabelledBy && !ariaLabel;
428
+ const selfLabelProps = isUnnamed ? { id: displayId, "aria-labelledby": displayId } : void 0;
434
429
  return /* @__PURE__ */ jsxs(
435
430
  FormControl,
436
431
  {
@@ -443,23 +438,49 @@ function _SelectField({
443
438
  "data-name": "select-field",
444
439
  "data-size": size,
445
440
  children: [
446
- /* @__PURE__ */ jsxs(Box, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
447
- label && /* @__PURE__ */ jsx(InputLabel, { shrink: true, id: ariaLabelledBy, children: label }),
448
- labelSecondary && /* @__PURE__ */ jsx(Box, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: labelSecondary })
449
- ] }),
441
+ /* @__PURE__ */ jsxs(
442
+ Box,
443
+ {
444
+ sx: {
445
+ display: "flex",
446
+ alignItems: "center",
447
+ justifyContent: "space-between"
448
+ },
449
+ children: [
450
+ label && /* @__PURE__ */ jsx(InputLabel, { shrink: true, id: ariaLabelledBy, children: label }),
451
+ labelSecondary && /* @__PURE__ */ jsx(
452
+ Box,
453
+ {
454
+ sx: {
455
+ display: "flex",
456
+ alignItems: "center",
457
+ ml: 2,
458
+ mb: 0.5
459
+ },
460
+ children: labelSecondary
461
+ }
462
+ )
463
+ ]
464
+ }
465
+ ),
450
466
  /* @__PURE__ */ jsxs(
451
467
  StyledSelect,
452
468
  {
453
469
  ...otherProps,
454
470
  labelId: ariaLabelledBy,
455
471
  name,
472
+ SelectDisplayProps: { ...selfLabelProps, ...SelectDisplayProps },
456
473
  ref,
457
474
  size,
458
475
  fullWidth,
459
476
  displayEmpty: displayEmpty ?? !!placeholder,
460
477
  inputProps: {
461
478
  ...inputProps,
462
- "aria-label": ariaLabel
479
+ // Written only when set: an unconditional key means an *absent*
480
+ // `aria-label` prop overwrites one the caller put in `inputProps`.
481
+ // When both are given the dedicated prop still wins — it is the
482
+ // documented API, and that ranking is unchanged.
483
+ ...ariaLabel !== void 0 && { "aria-label": ariaLabel }
463
484
  },
464
485
  MenuProps: {
465
486
  ...menuProps,
@@ -480,7 +501,7 @@ function _SelectField({
480
501
  Typography,
481
502
  {
482
503
  variant: isSmall ? "body2" : "body1",
483
- color: "text.hint",
504
+ color: "textHint",
484
505
  component: "span",
485
506
  children: placeholder
486
507
  }
@@ -634,7 +655,9 @@ const UnselectButton = styled(InputAdornment, {
634
655
  })(({ theme, size }) => ({
635
656
  display: "none",
636
657
  position: "absolute",
637
- top: theme.spacing(2),
658
+ // Center vertically regardless of the input's height.
659
+ top: "50%",
660
+ transform: "translateY(-50%)",
638
661
  right: theme.spacing(3.5),
639
662
  ".MuiInputBase-root:hover &, .MuiInputBase-root.Mui-focused &": {
640
663
  display: "flex"
@@ -643,7 +666,6 @@ const UnselectButton = styled(InputAdornment, {
643
666
  color: theme.palette.text.hint
644
667
  },
645
668
  ...size === "medium" && {
646
- top: theme.spacing(3),
647
669
  right: theme.spacing(5)
648
670
  }
649
671
  }));
@@ -716,7 +738,7 @@ function _MultipleSelectField({
716
738
  return { content: currentOptions.join(", ") };
717
739
  }
718
740
  return {
719
- color: "text.hint",
741
+ color: "textHint",
720
742
  content: placeholder ?? noneSelectedLabel
721
743
  };
722
744
  })();
@@ -726,7 +748,9 @@ function _MultipleSelectField({
726
748
  component: "span",
727
749
  variant: isSmall ? "body2" : "body1",
728
750
  color,
729
- ml: paddingSize,
751
+ sx: {
752
+ ml: paddingSize
753
+ },
730
754
  children: content
731
755
  }
732
756
  );
@@ -759,10 +783,12 @@ function _MultipleSelectField({
759
783
  variant,
760
784
  endAdornment: showFilters && areAnySelected && /* @__PURE__ */ jsx(UnselectButton, { position: "end", size, children: /* @__PURE__ */ jsx(IconButton$1, { onClick: unselectAll, size, children: /* @__PURE__ */ jsx(Cancel, {}) }) }),
761
785
  menuProps: {
762
- PaperProps: {
763
- sx: {
764
- ".MuiList-root": {
765
- paddingTop: 0
786
+ slotProps: {
787
+ paper: {
788
+ sx: {
789
+ ".MuiList-root": {
790
+ paddingTop: 0
791
+ }
766
792
  }
767
793
  }
768
794
  }
@@ -855,8 +881,12 @@ function _ToggleButtonGroup({
855
881
  );
856
882
  }
857
883
  const ToggleButtonGroup = forwardRef(_ToggleButtonGroup);
858
- const StyledLink = styled(Link$1)(() => ({
859
- display: "inline-block"
884
+ const StyledLink = styled(Link$1)(({ theme }) => ({
885
+ display: "inline-block",
886
+ // Meridian's default weight. Kept here rather than in the MuiLink theme key,
887
+ // which would also restyle raw MUI Links, and out of `sx` so a consumer's
888
+ // `sx`/`className` can still win.
889
+ fontWeight: theme.typography.fontWeightMedium
860
890
  }));
861
891
  const Icon = styled("span", {
862
892
  shouldForwardProp: (prop) => prop !== "variant" && prop !== "iconPosition"
@@ -907,7 +937,7 @@ function _Link({
907
937
  external,
908
938
  showExternalIcon = true,
909
939
  screenReaderText,
910
- fontWeight = 500,
940
+ fontWeight,
911
941
  target,
912
942
  rel,
913
943
  "aria-describedby": ariaDescribedby,
@@ -918,16 +948,24 @@ function _Link({
918
948
  screenReaderText
919
949
  );
920
950
  const isButtonLink = otherProps.component === "button";
951
+ const { sx: consumerSx } = otherProps;
952
+ const usesPalettePath = isPalettePath(color);
921
953
  return /* @__PURE__ */ jsxs(
922
954
  StyledLink,
923
955
  {
924
956
  ...otherProps,
925
957
  variant,
926
- fontWeight,
927
- "data-color": color,
958
+ sx: mergeSx({
959
+ own: [
960
+ fontWeight !== void 0 && { fontWeight },
961
+ usesPalettePath && { color }
962
+ ],
963
+ consumer: consumerSx
964
+ }),
965
+ "data-color": usesPalettePath ? void 0 : color,
928
966
  "data-name": isButtonLink ? "button-link" : "link",
929
967
  role: isButtonLink ? "button" : "link",
930
- color,
968
+ color: usesPalettePath ? void 0 : color,
931
969
  ref,
932
970
  target: external ? "_blank" : target,
933
971
  rel: external ? "noopener noreferrer" : rel,
@@ -942,6 +980,7 @@ function _Link({
942
980
  );
943
981
  }
944
982
  const Link = forwardRef(_Link);
983
+ Link.displayName = "Link";
945
984
  function _CircularProgress({
946
985
  color = "primary",
947
986
  size = 40,
@@ -1011,28 +1050,37 @@ function _Loader({
1011
1050
  "aria-labelledby": hasAnyLabel ? "loader-label" : void 0
1012
1051
  }
1013
1052
  ),
1014
- hasAnyLabel && /* @__PURE__ */ jsxs(Stack, { direction: "column", alignItems: "center", children: [
1015
- labelText && /* @__PURE__ */ jsx(
1016
- Typography,
1017
- {
1018
- variant: "body2",
1019
- color: "textSecondary",
1020
- ...labelProps,
1021
- id: "loader-label",
1022
- children: labelText
1023
- }
1024
- ),
1025
- secondLabel && /* @__PURE__ */ jsx(
1026
- Typography,
1027
- {
1028
- variant: "caption",
1029
- color: "textSecondary",
1030
- ...secondLabelProps,
1031
- id: labelText ? void 0 : "loader-label",
1032
- children: secondLabel
1033
- }
1034
- )
1035
- ] })
1053
+ hasAnyLabel && /* @__PURE__ */ jsxs(
1054
+ Stack,
1055
+ {
1056
+ direction: "column",
1057
+ sx: {
1058
+ alignItems: "center"
1059
+ },
1060
+ children: [
1061
+ labelText && /* @__PURE__ */ jsx(
1062
+ Typography,
1063
+ {
1064
+ variant: "body2",
1065
+ color: "textSecondary",
1066
+ ...labelProps,
1067
+ id: "loader-label",
1068
+ children: labelText
1069
+ }
1070
+ ),
1071
+ secondLabel && /* @__PURE__ */ jsx(
1072
+ Typography,
1073
+ {
1074
+ variant: "caption",
1075
+ color: "textSecondary",
1076
+ ...secondLabelProps,
1077
+ id: labelText ? void 0 : "loader-label",
1078
+ children: secondLabel
1079
+ }
1080
+ )
1081
+ ]
1082
+ }
1083
+ )
1036
1084
  ]
1037
1085
  }
1038
1086
  );
@@ -1138,6 +1186,19 @@ const _CopiableComponent = ({
1138
1186
  ] });
1139
1187
  };
1140
1188
  const CopiableComponent = forwardRef(_CopiableComponent);
1189
+ function mergeSlotProps({
1190
+ ownProps,
1191
+ consumerProps
1192
+ }) {
1193
+ if (typeof consumerProps === "function") {
1194
+ const resolveConsumerProps = consumerProps;
1195
+ return (ownerState) => ({
1196
+ ...ownProps,
1197
+ ...resolveConsumerProps(ownerState)
1198
+ });
1199
+ }
1200
+ return { ...ownProps, ...consumerProps };
1201
+ }
1141
1202
  const StyledTextField = styled(TextField, {
1142
1203
  shouldForwardProp: (prop) => !["isInputFocused"].includes(prop)
1143
1204
  })(({ isInputFocused }) => ({
@@ -1167,7 +1228,7 @@ const AdornmentWrapper = styled(Box, {
1167
1228
  function _CopiableInputText({
1168
1229
  value,
1169
1230
  variant,
1170
- InputProps,
1231
+ slotProps,
1171
1232
  extraEndAdornment,
1172
1233
  onCopied,
1173
1234
  password,
@@ -1217,28 +1278,33 @@ function _CopiableInputText({
1217
1278
  size,
1218
1279
  value,
1219
1280
  variant,
1220
- InputProps: {
1221
- readOnly: true,
1222
- onFocus: handleFocus,
1223
- onBlur: handleBlur,
1224
- endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
1225
- password ? passwordAdornment : extraEndAdornment,
1226
- /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(AdornmentWrapper, { size, variant, children: /* @__PURE__ */ jsx(
1227
- CopiableComponent,
1228
- {
1229
- value,
1230
- onCopied,
1231
- button: true,
1232
- buttonProps: {
1233
- size
1234
- }
1281
+ slotProps: {
1282
+ ...slotProps,
1283
+ input: mergeSlotProps({
1284
+ ownProps: {
1285
+ readOnly: true,
1286
+ onFocus: handleFocus,
1287
+ onBlur: handleBlur,
1288
+ endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
1289
+ password ? passwordAdornment : extraEndAdornment,
1290
+ /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(AdornmentWrapper, { size, variant, children: /* @__PURE__ */ jsx(
1291
+ CopiableComponent,
1292
+ {
1293
+ value,
1294
+ onCopied,
1295
+ button: true,
1296
+ buttonProps: {
1297
+ size
1298
+ }
1299
+ }
1300
+ ) }) })
1301
+ ] }),
1302
+ ...variant === "filled" && {
1303
+ disableUnderline: true
1235
1304
  }
1236
- ) }) })
1237
- ] }),
1238
- ...variant === "filled" && {
1239
- disableUnderline: true
1240
- },
1241
- ...InputProps
1305
+ },
1306
+ consumerProps: slotProps == null ? void 0 : slotProps.input
1307
+ })
1242
1308
  },
1243
1309
  type: inputType,
1244
1310
  "data-name": "copiable-input-text",
@@ -1248,13 +1314,19 @@ function _CopiableInputText({
1248
1314
  }
1249
1315
  const CopiableInputText = forwardRef(_CopiableInputText);
1250
1316
  const { FixedSizeList: FixedSizeList$1 } = ReactWindow;
1251
- const List$1 = styled("ul")(
1252
- ({ theme, hasFilters }) => ({
1253
- ...!hasFilters && {
1254
- paddingTop: `${theme.spacing(1)} !important`
1255
- }
1256
- })
1257
- );
1317
+ const List$1 = styled(MenuList$1, {
1318
+ // MenuList is a component, so emotion forwards every prop to it (unlike a
1319
+ // string tag, where invalid HTML attributes are dropped) — `hasFilters` would
1320
+ // reach the underlying <ul>. `ownerState`/`theme`/`sx`/`as` mirror MUI's own
1321
+ // `slotShouldForwardProp`, which a custom `shouldForwardProp` replaces rather
1322
+ // than extends: as Autocomplete's `listbox` slot this receives the
1323
+ // Autocomplete's ownerState, which must not reach MenuList.
1324
+ shouldForwardProp: (prop) => !["ownerState", "theme", "sx", "as", "hasFilters"].includes(prop)
1325
+ })(({ theme, hasFilters }) => ({
1326
+ ...!hasFilters && {
1327
+ paddingTop: `${theme.spacing(1)} !important`
1328
+ }
1329
+ }));
1258
1330
  const ItemWrapper = styled("div")(({ style, theme, isSubtitle, isExtended, isMultiple }) => {
1259
1331
  const getSubtitleStyles = () => {
1260
1332
  const baseStyles = {
@@ -1276,9 +1348,15 @@ const ItemWrapper = styled("div")(({ style, theme, isSubtitle, isExtended, isMul
1276
1348
  return {
1277
1349
  pointerEvents: "none",
1278
1350
  // To avoid the extra div to receive the click event
1351
+ // Whatever the row renders as must take the click back. Scoping this to
1352
+ // `.MuiMenuItem-root` only worked when a `renderOption` produced a Meridian
1353
+ // MenuItem; the documented bare usage (`slots={{ listbox: AutocompleteList }}`
1354
+ // with no renderOption) leaves MUI's own `.MuiAutocomplete-option`, which
1355
+ // then inherited `pointer-events: none` and could not be clicked.
1356
+ "& > *": {
1357
+ pointerEvents: "auto"
1358
+ },
1279
1359
  "& .MuiMenuItem-root": {
1280
- pointerEvents: "auto",
1281
- // Allow pointer events for the menu item
1282
1360
  marginTop: 0,
1283
1361
  "&:first-of-type": {
1284
1362
  marginTop: "0 !important"
@@ -1433,10 +1511,11 @@ function createCounterRenderTags({
1433
1511
  getOptionLabel = getDefaultOptionLabel
1434
1512
  }) {
1435
1513
  const CounterRenderTags = (value) => {
1436
- if (value.length === 0) {
1514
+ const selectedItems = Array.isArray(value) ? value : value == null ? [] : [value];
1515
+ if (selectedItems.length === 0) {
1437
1516
  return null;
1438
1517
  }
1439
- const selectedCount = value.length;
1518
+ const selectedCount = selectedItems.length;
1440
1519
  const selectableOptions = options.filter(
1441
1520
  (option) => !isAutocompleteListGroupHeader(option)
1442
1521
  );
@@ -1444,7 +1523,7 @@ function createCounterRenderTags({
1444
1523
  const text = formatCounter({
1445
1524
  selectedCount,
1446
1525
  totalCount,
1447
- selectedItems: value,
1526
+ selectedItems,
1448
1527
  allItems: selectableOptions,
1449
1528
  getOptionLabel
1450
1529
  });
@@ -1523,9 +1602,11 @@ const warnDeprecatedGroupBy = /* @__PURE__ */ (() => {
1523
1602
  function _Autocomplete({
1524
1603
  disabled,
1525
1604
  loading,
1605
+ slots,
1606
+ slotProps,
1526
1607
  ...props
1527
1608
  }, ref) {
1528
- if (props.groupBy && props.ListboxComponent === AutocompleteList) {
1609
+ if (props.groupBy && (slots == null ? void 0 : slots.listbox) === AutocompleteList) {
1529
1610
  warnDeprecatedGroupBy("Autocomplete");
1530
1611
  }
1531
1612
  return /* @__PURE__ */ jsx(
@@ -1536,9 +1617,20 @@ function _Autocomplete({
1536
1617
  disabled: disabled || loading,
1537
1618
  popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ForwardedComponent$1, {}),
1538
1619
  "data-name": "autocomplete",
1539
- ListboxProps: {
1540
- "aria-multiselectable": false,
1541
- ...props.ListboxProps
1620
+ slots,
1621
+ slotProps: {
1622
+ ...slotProps,
1623
+ listbox: mergeSlotProps({
1624
+ ownProps: {
1625
+ "aria-multiselectable": false,
1626
+ component: MenuList$1
1627
+ // `useAutocomplete`'s `singleRenderOption` emits Meridian MenuItems,
1628
+ // and on v9 a MenuItem throws without a MenuListContext. Set through
1629
+ // `component` rather than `slots.listbox`: swapping the slot would
1630
+ // drop the listbox's own styles (max-height/overflow) with it.
1631
+ },
1632
+ consumerProps: slotProps == null ? void 0 : slotProps.listbox
1633
+ })
1542
1634
  }
1543
1635
  }
1544
1636
  );
@@ -1816,11 +1908,12 @@ function _CreatableAutocomplete({
1816
1908
  value,
1817
1909
  onChange,
1818
1910
  getLimitTagsText,
1819
- renderTags,
1911
+ renderValue,
1820
1912
  itemHeight,
1821
1913
  maxListHeight,
1822
1914
  extended,
1823
1915
  groupBy,
1916
+ slotProps,
1824
1917
  ...props
1825
1918
  }, ref) {
1826
1919
  if (groupBy) {
@@ -1870,7 +1963,7 @@ function _CreatableAutocomplete({
1870
1963
  extended,
1871
1964
  selectAllText
1872
1965
  };
1873
- const finalRenderTags = showCounter && multiple && !renderTags ? getCounterRenderTags() : renderTags;
1966
+ const finalRenderValue = showCounter && multiple && !renderValue ? getCounterRenderTags() : renderValue;
1874
1967
  return /* @__PURE__ */ jsx(
1875
1968
  Autocomplete$1,
1876
1969
  {
@@ -1883,17 +1976,25 @@ function _CreatableAutocomplete({
1883
1976
  getOptionLabel: creatableOptionLabel,
1884
1977
  renderOption: creatableRenderOption,
1885
1978
  getOptionDisabled: isOptionDisabled,
1886
- renderTags: finalRenderTags,
1979
+ renderValue: finalRenderValue,
1887
1980
  freeSolo,
1888
1981
  forcePopupIcon: true,
1889
1982
  multiple,
1890
1983
  disableCloseOnSelect: disableCloseOnSelect ?? multiple,
1891
- ListboxComponent: AutocompleteList,
1892
- ListboxProps: listboxProps,
1893
1984
  getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
1894
1985
  disabled: disabled || loading,
1895
1986
  popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ForwardedComponent$1, {}),
1896
- "data-name": "creatable-autocomplete"
1987
+ "data-name": "creatable-autocomplete",
1988
+ slotProps: {
1989
+ ...slotProps,
1990
+ listbox: mergeSlotProps({
1991
+ ownProps: {
1992
+ component: AutocompleteList,
1993
+ ...listboxProps
1994
+ },
1995
+ consumerProps: slotProps == null ? void 0 : slotProps.listbox
1996
+ })
1997
+ }
1897
1998
  }
1898
1999
  );
1899
2000
  }
@@ -1914,11 +2015,12 @@ function _MultipleAutocomplete({
1914
2015
  onChange,
1915
2016
  getOptionLabel,
1916
2017
  getLimitTagsText,
1917
- renderTags,
2018
+ renderValue,
1918
2019
  itemHeight,
1919
2020
  maxListHeight,
1920
2021
  extended,
1921
2022
  groupBy,
2023
+ slotProps,
1922
2024
  ...props
1923
2025
  }, ref) {
1924
2026
  if (groupBy) {
@@ -1953,7 +2055,7 @@ function _MultipleAutocomplete({
1953
2055
  extended,
1954
2056
  selectAllText
1955
2057
  };
1956
- const finalRenderTags = showCounter && !renderTags ? getCounterRenderTags() : renderTags;
2058
+ const finalRenderValue = showCounter && !renderValue ? getCounterRenderTags() : renderValue;
1957
2059
  return /* @__PURE__ */ jsx(
1958
2060
  Autocomplete$1,
1959
2061
  {
@@ -1964,15 +2066,23 @@ function _MultipleAutocomplete({
1964
2066
  onChange: handleChange,
1965
2067
  getOptionLabel,
1966
2068
  renderOption: renderOption ?? multipleRenderOption,
1967
- renderTags: finalRenderTags,
1968
- ListboxComponent: AutocompleteList,
1969
- ListboxProps: listboxProps,
2069
+ renderValue: finalRenderValue,
1970
2070
  multiple: true,
1971
2071
  getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
1972
2072
  disableCloseOnSelect,
1973
2073
  disabled: disabled || loading,
1974
2074
  popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ForwardedComponent$1, {}),
1975
- "data-name": "multiple-autocomplete"
2075
+ "data-name": "multiple-autocomplete",
2076
+ slotProps: {
2077
+ ...slotProps,
2078
+ listbox: mergeSlotProps({
2079
+ ownProps: {
2080
+ component: AutocompleteList,
2081
+ ...listboxProps
2082
+ },
2083
+ consumerProps: slotProps == null ? void 0 : slotProps.listbox
2084
+ })
2085
+ }
1976
2086
  }
1977
2087
  );
1978
2088
  }
@@ -2294,10 +2404,12 @@ function CodeAreaHeader({
2294
2404
  open,
2295
2405
  onClose: closeDropdown,
2296
2406
  id: "menu",
2297
- MenuListProps: { "aria-labelledby": "menu-button" },
2298
2407
  "aria-label": "Code area actions",
2299
2408
  transformOrigin: { vertical: "top", horizontal: "right" },
2300
2409
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
2410
+ slotProps: {
2411
+ list: { "aria-labelledby": "menu-button" }
2412
+ },
2301
2413
  children: [
2302
2414
  /* @__PURE__ */ jsxs(MenuItem$1, { onClick: handleCopy, disabled, id: "copy", children: [
2303
2415
  /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(ContentCopyOutlined, {}) }),
@@ -2961,7 +3073,7 @@ const InputWrapper$1 = styled(Box, {
2961
3073
  }
2962
3074
  }
2963
3075
  }));
2964
- const HelpIcon = styled(HelpOutline)(({ theme }) => ({
3076
+ const HelpIcon = styled(HelpOutlineOutlined)(({ theme }) => ({
2965
3077
  width: ICON_SIZE_SMALL,
2966
3078
  height: ICON_SIZE_SMALL,
2967
3079
  fill: theme.palette.text.secondary
@@ -3149,7 +3261,7 @@ function CodeAreaDialogError({
3149
3261
  if (!children) return null;
3150
3262
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3151
3263
  /* @__PURE__ */ jsx(ErrorWrapper, { children: /* @__PURE__ */ jsxs(ErrorContent, { children: [
3152
- /* @__PURE__ */ jsx(ErrorOutline, { htmlColor: theme.palette.error.main }),
3264
+ /* @__PURE__ */ jsx(ErrorOutlineOutlined, { htmlColor: theme.palette.error.main }),
3153
3265
  /* @__PURE__ */ jsx(FormHelperText, { error: true, children })
3154
3266
  ] }) }),
3155
3267
  hasDivider && /* @__PURE__ */ jsx(Divider, {})
@@ -3206,7 +3318,25 @@ const dialogDimensionsBySize = {
3206
3318
  }
3207
3319
  };
3208
3320
  const DialogPaper = styled(Paper, {
3209
- shouldForwardProp: (prop) => !["fullScreen", "height", "width", "hasForm"].includes(prop)
3321
+ // `as` must stay with emotion: MUI renders the paper slot as
3322
+ // `<PaperSlot as={Paper} …>`, so forwarding `as` to Paper shadows a
3323
+ // consumer's `slotProps.paper.component` and a form dialog renders a div.
3324
+ //
3325
+ // `ownerState`/`theme`/`sx` mirror MUI's own `slotShouldForwardProp`, which a
3326
+ // custom `shouldForwardProp` replaces rather than extends. As the Dialog's
3327
+ // `paper` slot this receives the *Dialog's* ownerState; Paper spreads it over
3328
+ // its own, so `variant: 'elevation'` stops matching and neither the elevation
3329
+ // shadow nor the `outlined` border is emitted.
3330
+ shouldForwardProp: (prop) => ![
3331
+ "ownerState",
3332
+ "theme",
3333
+ "sx",
3334
+ "as",
3335
+ "fullScreen",
3336
+ "height",
3337
+ "width",
3338
+ "hasForm"
3339
+ ].includes(prop)
3210
3340
  })(
3211
3341
  ({
3212
3342
  fullScreen,
@@ -3218,6 +3348,16 @@ const DialogPaper = styled(Paper, {
3218
3348
  }) => ({
3219
3349
  "&.MuiPaper-root": {
3220
3350
  position: "relative",
3351
+ // MUI's Dialog paper styles are replaced, not composed, once this is the
3352
+ // `paper` slot — so carry the ones consumers depend on. Without
3353
+ // `overflowY` a fullScreen dialog cannot scroll and overflowing content is
3354
+ // unreachable.
3355
+ overflowY: "auto",
3356
+ outline: 0,
3357
+ "@media print": {
3358
+ overflowY: "visible",
3359
+ boxShadow: "none"
3360
+ },
3221
3361
  display: "flex",
3222
3362
  flexDirection: "column",
3223
3363
  margin: theme.spacing(5),
@@ -3305,20 +3445,31 @@ const DialogPaper = styled(Paper, {
3305
3445
  }
3306
3446
  })
3307
3447
  );
3448
+ function splitSurfaceAttributes({ props }) {
3449
+ const surfaceAttributes = {};
3450
+ const rootProps = {};
3451
+ for (const [key, value] of Object.entries(props)) {
3452
+ const target = key.startsWith("data-") ? surfaceAttributes : rootProps;
3453
+ target[key] = value;
3454
+ }
3455
+ return { surfaceAttributes, rootProps };
3456
+ }
3308
3457
  function _Dialog({
3309
3458
  nonModal,
3310
3459
  children,
3311
3460
  size = "small",
3312
- PaperProps,
3313
3461
  fullScreen,
3314
3462
  height,
3315
3463
  width,
3316
3464
  hasForm,
3317
3465
  "aria-label": ariaLabel,
3318
3466
  "data-testid": dataTestId,
3467
+ slots,
3468
+ slotProps,
3319
3469
  ...props
3320
3470
  }, ref) {
3321
3471
  if (nonModal) {
3472
+ const nonModalPaperProps = typeof (slotProps == null ? void 0 : slotProps.paper) === "function" ? void 0 : slotProps == null ? void 0 : slotProps.paper;
3322
3473
  return /* @__PURE__ */ jsx(
3323
3474
  DialogPaper,
3324
3475
  {
@@ -3331,32 +3482,46 @@ function _Dialog({
3331
3482
  "data-testid": dataTestId,
3332
3483
  "data-name": "dialog",
3333
3484
  ...props,
3485
+ ...nonModalPaperProps,
3334
3486
  ref,
3335
3487
  children
3336
3488
  }
3337
3489
  );
3338
3490
  }
3491
+ const { surfaceAttributes, rootProps } = splitSurfaceAttributes({ props });
3492
+ const paperProps = {
3493
+ "data-name": "dialog",
3494
+ "data-size": size,
3495
+ ...width && { "data-width": width },
3496
+ ...height && { "data-height": height },
3497
+ size,
3498
+ fullScreen,
3499
+ height,
3500
+ width,
3501
+ hasForm,
3502
+ ...dataTestId && { "data-testid": dataTestId },
3503
+ // Standard accname precedence is kept deliberately: `aria-labelledby` wins
3504
+ // over this when a DialogHeader title renders. Consumers pass `aria-label`
3505
+ // as a test hook often enough that making it authoritative would rename
3506
+ // titled dialogs after the hook.
3507
+ ...ariaLabel && { "aria-label": ariaLabel },
3508
+ // Consumer-supplied data-* wins over the defaults above, as it did when
3509
+ // they all spread onto the root.
3510
+ ...surfaceAttributes
3511
+ };
3339
3512
  return /* @__PURE__ */ jsx(
3340
3513
  Dialog$1,
3341
3514
  {
3342
- PaperComponent: DialogPaper,
3343
- PaperProps: {
3344
- ...PaperProps,
3345
- size,
3346
- fullScreen,
3347
- height,
3348
- width,
3349
- hasForm
3515
+ slots: { ...slots, paper: DialogPaper },
3516
+ slotProps: {
3517
+ ...slotProps,
3518
+ paper: mergeSlotProps({
3519
+ ownProps: paperProps,
3520
+ consumerProps: slotProps == null ? void 0 : slotProps.paper
3521
+ })
3350
3522
  },
3351
3523
  fullScreen,
3352
- role: "section",
3353
- "aria-label": ariaLabel,
3354
- "data-testid": dataTestId,
3355
- "data-size": size,
3356
- "data-width": width,
3357
- "data-height": height,
3358
- "data-name": "dialog",
3359
- ...props,
3524
+ ...rootProps,
3360
3525
  ref,
3361
3526
  children
3362
3527
  }
@@ -3416,7 +3581,7 @@ function DialogHeader({
3416
3581
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3417
3582
  /* @__PURE__ */ jsxs(DialogTitle, { component: "div", "data-name": "dialog-header", ...otherProps, children: [
3418
3583
  /* @__PURE__ */ jsxs(Main$1, { children: [
3419
- /* @__PURE__ */ jsxs(ItemsWrapper$1, { flex: 1, maxWidth: 0.8, children: [
3584
+ /* @__PURE__ */ jsxs(ItemsWrapper$1, { sx: { flex: 1, maxWidth: 0.8 }, children: [
3420
3585
  onBack && /* @__PURE__ */ jsx(
3421
3586
  IconButton,
3422
3587
  {
@@ -4303,6 +4468,10 @@ function DatePicker({
4303
4468
  "c4r.form.chooseDate",
4304
4469
  chooseDateAriaLabel
4305
4470
  );
4471
+ const htmlInputProps = {
4472
+ "data-testid": "date-picker-input",
4473
+ placeholder
4474
+ };
4306
4475
  return (
4307
4476
  // Don't remove className, it's used for styling
4308
4477
  /* @__PURE__ */ jsx(Box, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ jsx(
@@ -4323,7 +4492,7 @@ function DatePicker({
4323
4492
  {
4324
4493
  label,
4325
4494
  type,
4326
- icon: labelHelpTooltip && /* @__PURE__ */ jsx(Tooltip, { title: labelHelpTooltip, children: /* @__PURE__ */ jsx(HelpOutline, { htmlColor: "text.secondary" }) })
4495
+ icon: labelHelpTooltip && /* @__PURE__ */ jsx(Tooltip, { title: labelHelpTooltip, children: /* @__PURE__ */ jsx(HelpOutlineOutlined, { htmlColor: "text.secondary" }) })
4327
4496
  }
4328
4497
  ),
4329
4498
  slotProps: {
@@ -4331,13 +4500,12 @@ function DatePicker({
4331
4500
  textField: {
4332
4501
  variant,
4333
4502
  helperText,
4334
- placeholder,
4335
4503
  size,
4336
4504
  error: error ?? void 0,
4337
4505
  // undefined is needed to allow the component to control the error state for the default validation
4338
- inputProps: {
4339
- "data-testid": "date-picker-input"
4340
- }
4506
+ // v9: legacy inputProps/placeholder are dropped on Picker fields;
4507
+ // they live under the textField slot's own slotProps now.
4508
+ slotProps: { htmlInput: htmlInputProps }
4341
4509
  },
4342
4510
  field: {
4343
4511
  clearable: !!handleClear,
@@ -4358,7 +4526,7 @@ function DatePicker({
4358
4526
  ) })
4359
4527
  );
4360
4528
  }
4361
- const PickersDayWrapper = styled(Box, {
4529
+ const PickerDayWrapper = styled(Box, {
4362
4530
  shouldForwardProp: (prop) => ![
4363
4531
  "isSelected",
4364
4532
  "isStartDate",
@@ -4381,7 +4549,7 @@ const PickersDayWrapper = styled(Box, {
4381
4549
  }) => ({
4382
4550
  position: "relative",
4383
4551
  margin: theme.spacing(0.25),
4384
- "& .MuiPickersDay-root": {
4552
+ "& .MuiPickerDay-root": {
4385
4553
  margin: 0
4386
4554
  },
4387
4555
  // Highlight the selected date range
@@ -4434,7 +4602,7 @@ const PickersDayWrapper = styled(Box, {
4434
4602
  borderRadius: theme.shape.borderRadius
4435
4603
  }
4436
4604
  },
4437
- "& .MuiPickersDay-today": {
4605
+ "& .MuiPickerDay-today": {
4438
4606
  borderColor: `${theme.palette.default.outlinedBorder} !important`,
4439
4607
  ...(isStartDate || isEndDate) && {
4440
4608
  boxShadow: `0 0 0 1px inset ${theme.palette.background.paper}`
@@ -4461,11 +4629,11 @@ const PickersDayWrapper = styled(Box, {
4461
4629
  }
4462
4630
  })
4463
4631
  );
4464
- const CustomPickersDay = styled(PickersDay$1, {
4632
+ const CustomPickerDay = styled(PickerDay$1, {
4465
4633
  shouldForwardProp: (prop) => !["isDateRangeLimit", "isPreview"].includes(prop)
4466
4634
  })(
4467
4635
  ({ theme, isDateRangeLimit, isPreview }) => ({
4468
- "&.MuiPickersDay-root": {
4636
+ "&.MuiPickerDay-root": {
4469
4637
  position: "relative",
4470
4638
  zIndex: 1,
4471
4639
  "&.Mui-selected": {
@@ -4496,7 +4664,7 @@ const isSameDay = (d1, d2) => {
4496
4664
  if (!d1 || !d2) return false;
4497
4665
  return d1.getFullYear() === d2.getFullYear() && d1.getMonth() === d2.getMonth() && d1.getDate() === d2.getDate();
4498
4666
  };
4499
- function PickersDay({
4667
+ function PickerDay({
4500
4668
  day,
4501
4669
  startDate,
4502
4670
  endDate,
@@ -4523,7 +4691,7 @@ function PickersDay({
4523
4691
  selectedMonth && day.getMonth() === selectedMonth.getMonth()
4524
4692
  );
4525
4693
  return /* @__PURE__ */ jsx(
4526
- PickersDayWrapper,
4694
+ PickerDayWrapper,
4527
4695
  {
4528
4696
  isSelected: isInsideRange,
4529
4697
  isStartDate: isRangeStart,
@@ -4533,7 +4701,7 @@ function PickersDay({
4533
4701
  isFirstDay: isFirstDayOfMonth,
4534
4702
  isPreview,
4535
4703
  children: /* @__PURE__ */ jsx(
4536
- CustomPickersDay,
4704
+ CustomPickerDay,
4537
4705
  {
4538
4706
  ...otherProps,
4539
4707
  day,
@@ -4551,15 +4719,21 @@ const FieldsWrapper = styled(Box, {
4551
4719
  })(({ variant, theme }) => ({
4552
4720
  display: "flex",
4553
4721
  gap: variant === "standard" ? theme.spacing(1) : "1px",
4722
+ // v9's field is a row of section spans instead of an <input>: an input can
4723
+ // shrink below its content width, spans cannot, so the flex children need
4724
+ // `min-width: 0` or two side-by-side fields overflow their container.
4725
+ "& .CartoDatePicker-root, & .CartoDatePicker-root .MuiFormControl-root": {
4726
+ minWidth: 0
4727
+ },
4554
4728
  "& .CartoDatePicker-root": {
4555
4729
  // Start date field
4556
4730
  "&:first-of-type": {
4557
- ".MuiInputBase-root": {
4731
+ ".MuiInputBase-root, .MuiPickersInputBase-root": {
4558
4732
  borderRadius: theme.spacing(0.5, 0, 0, 0.5),
4559
4733
  boxShadow: `1px 0 0 0 ${theme.palette.default.outlinedBorder}`,
4560
4734
  ...variant === "outlined" && {
4561
4735
  // Remove border from the right side only in its default state. Nested negation selector to target only specific Mui rules, otherwise it would force us to rewrite the state styles.
4562
- "&:not(:hover):not(.Mui-focused):not(.Mui-error) .MuiOutlinedInput-notchedOutline": {
4736
+ "&:not(:hover):not(.Mui-focused):not(.Mui-error) .MuiOutlinedInput-notchedOutline, &:not(:hover):not(.Mui-focused):not(.Mui-error) .MuiPickersOutlinedInput-notchedOutline": {
4563
4737
  borderRightColor: "transparent"
4564
4738
  }
4565
4739
  },
@@ -4576,11 +4750,11 @@ const FieldsWrapper = styled(Box, {
4576
4750
  },
4577
4751
  // End date field
4578
4752
  "&:last-of-type": {
4579
- ".MuiInputBase-root": {
4753
+ ".MuiInputBase-root, .MuiPickersInputBase-root": {
4580
4754
  borderRadius: theme.spacing(0, 0.5, 0.5, 0),
4581
4755
  ...variant === "outlined" && {
4582
4756
  // Remove border from the left side only in its default state
4583
- "&:not(:hover):not(.Mui-focused):not(.Mui-error) .MuiOutlinedInput-notchedOutline": {
4757
+ "&:not(:hover):not(.Mui-focused):not(.Mui-error) .MuiOutlinedInput-notchedOutline, &:not(:hover):not(.Mui-focused):not(.Mui-error) .MuiPickersOutlinedInput-notchedOutline": {
4584
4758
  borderLeftColor: "transparent"
4585
4759
  }
4586
4760
  },
@@ -4692,7 +4866,7 @@ function DateRangePicker({
4692
4866
  slots: {
4693
4867
  openPickerIcon: TodayOutlined,
4694
4868
  day: (props2) => /* @__PURE__ */ jsx(
4695
- PickersDay,
4869
+ PickerDay,
4696
4870
  {
4697
4871
  ...props2,
4698
4872
  startDate,
@@ -4726,7 +4900,7 @@ function DateRangePicker({
4726
4900
  },
4727
4901
  slots: {
4728
4902
  day: (props2) => /* @__PURE__ */ jsx(
4729
- PickersDay,
4903
+ PickerDay,
4730
4904
  {
4731
4905
  ...props2,
4732
4906
  startDate,
@@ -4826,7 +5000,7 @@ function DateRangeCalendar({
4826
5000
  "aria-label": ariaLabel,
4827
5001
  "data-testid": dataTestId,
4828
5002
  onMouseLeave: () => setHoveredDate(null),
4829
- sx: isSelectingEnd || isCommitting ? { "& .MuiPickersDay-root": { transition: "none" } } : void 0,
5003
+ sx: isSelectingEnd || isCommitting ? { "& .MuiPickerDay-root": { transition: "none" } } : void 0,
4830
5004
  children: /* @__PURE__ */ jsx(
4831
5005
  DateCalendar,
4832
5006
  {
@@ -4835,7 +5009,7 @@ function DateRangeCalendar({
4835
5009
  value: endDate ?? startDate,
4836
5010
  onChange: handleChange,
4837
5011
  onMonthChange: handleMonthChange,
4838
- slots: { day: PickersDay, ...slots },
5012
+ slots: { day: PickerDay, ...slots },
4839
5013
  slotProps: {
4840
5014
  ...slotProps,
4841
5015
  // Merge the consumer's day slotProps (ours win on conflict, since
@@ -4917,6 +5091,10 @@ function TimePicker({
4917
5091
  resizeObserver.disconnect();
4918
5092
  };
4919
5093
  }, []);
5094
+ const htmlInputProps = {
5095
+ "data-testid": "time-picker-input",
5096
+ placeholder
5097
+ };
4920
5098
  return /* @__PURE__ */ jsx(
4921
5099
  DateFieldContainer,
4922
5100
  {
@@ -4936,7 +5114,7 @@ function TimePicker({
4936
5114
  {
4937
5115
  label: fieldLabel,
4938
5116
  type,
4939
- icon: labelHelpTooltip && /* @__PURE__ */ jsx(Tooltip, { title: labelHelpTooltip, children: /* @__PURE__ */ jsx(HelpOutline, { htmlColor: "text.secondary" }) })
5117
+ icon: labelHelpTooltip && /* @__PURE__ */ jsx(Tooltip, { title: labelHelpTooltip, children: /* @__PURE__ */ jsx(HelpOutlineOutlined, { htmlColor: "text.secondary" }) })
4940
5118
  }
4941
5119
  ),
4942
5120
  views: ["hours"],
@@ -4945,13 +5123,12 @@ function TimePicker({
4945
5123
  textField: {
4946
5124
  variant,
4947
5125
  helperText,
4948
- placeholder,
4949
5126
  size,
4950
5127
  error: error ?? void 0,
4951
5128
  // undefined is needed to allow the component to control the error state for the default validation
4952
- inputProps: {
4953
- "data-testid": "time-picker-input"
4954
- }
5129
+ // v9: legacy inputProps/placeholder are dropped on Picker fields;
5130
+ // they live under the textField slot's own slotProps now.
5131
+ slotProps: { htmlInput: htmlInputProps }
4955
5132
  },
4956
5133
  field: {
4957
5134
  clearable: !!handleClear,
@@ -5014,6 +5191,10 @@ function DateTimePicker({
5014
5191
  "c4r.form.chooseDate",
5015
5192
  openPickerAriaLabel
5016
5193
  );
5194
+ const htmlInputProps = {
5195
+ "data-testid": "date-time-picker-input",
5196
+ placeholder
5197
+ };
5017
5198
  return /* @__PURE__ */ jsx(
5018
5199
  DateFieldContainer,
5019
5200
  {
@@ -5032,7 +5213,7 @@ function DateTimePicker({
5032
5213
  {
5033
5214
  label: fieldLabel,
5034
5215
  type,
5035
- icon: labelHelpTooltip && /* @__PURE__ */ jsx(Tooltip, { title: labelHelpTooltip, children: /* @__PURE__ */ jsx(HelpOutline, { htmlColor: "text.secondary" }) })
5216
+ icon: labelHelpTooltip && /* @__PURE__ */ jsx(Tooltip, { title: labelHelpTooltip, children: /* @__PURE__ */ jsx(HelpOutlineOutlined, { htmlColor: "text.secondary" }) })
5036
5217
  }
5037
5218
  ),
5038
5219
  views: ["year", "month", "day", "hours"],
@@ -5041,13 +5222,12 @@ function DateTimePicker({
5041
5222
  textField: {
5042
5223
  variant,
5043
5224
  helperText,
5044
- placeholder,
5045
5225
  size,
5046
5226
  error: error ?? void 0,
5047
5227
  // undefined is needed to allow the component to control the error state for the default validation
5048
- inputProps: {
5049
- "data-testid": "date-time-picker-input"
5050
- }
5228
+ // v9: legacy inputProps/placeholder are dropped on Picker fields;
5229
+ // they live under the textField slot's own slotProps now.
5230
+ slotProps: { htmlInput: htmlInputProps }
5051
5231
  },
5052
5232
  field: {
5053
5233
  clearable: !!handleClear,
@@ -5147,7 +5327,6 @@ function _EmptyState({
5147
5327
  Root$1,
5148
5328
  {
5149
5329
  ref,
5150
- alignItems: "center",
5151
5330
  size,
5152
5331
  spacing,
5153
5332
  contentHeight,
@@ -5222,7 +5401,7 @@ function TooltipData({
5222
5401
  title
5223
5402
  }) {
5224
5403
  return /* @__PURE__ */ jsxs(Fragment, { children: [
5225
- title && /* @__PURE__ */ jsx(Typography, { color: "inherit", variant: "caption", weight: "medium", children: title }),
5404
+ title && /* @__PURE__ */ jsx(Typography, { variant: "caption", weight: "medium", color: "inherit", children: title }),
5226
5405
  /* @__PURE__ */ jsx(Content$3, { children: items.map((item, index) => /* @__PURE__ */ jsxs(Entry, { children: [
5227
5406
  /* @__PURE__ */ jsx(
5228
5407
  Bullet,
@@ -5236,7 +5415,7 @@ function TooltipData({
5236
5415
  }
5237
5416
  ),
5238
5417
  item.category && /* @__PURE__ */ jsx(Category, { color: "inherit", variant: "caption", children: item.category }),
5239
- /* @__PURE__ */ jsx(Typography, { color: "inherit", variant: "caption", weight: "medium", children: item.value })
5418
+ /* @__PURE__ */ jsx(Typography, { variant: "caption", weight: "medium", color: "inherit", children: item.value })
5240
5419
  ] }, index)) })
5241
5420
  ] });
5242
5421
  }
@@ -5526,7 +5705,7 @@ const StyledMenu = styled(Menu$2, {
5526
5705
  }
5527
5706
  }
5528
5707
  }));
5529
- function _Menu({ extended, width, height, MenuListProps: MenuListProps2, ...otherProps }, ref) {
5708
+ function _Menu({ extended, width, height, slotProps, ...otherProps }, ref) {
5530
5709
  return /* @__PURE__ */ jsx(
5531
5710
  StyledMenu,
5532
5711
  {
@@ -5536,11 +5715,17 @@ function _Menu({ extended, width, height, MenuListProps: MenuListProps2, ...othe
5536
5715
  width,
5537
5716
  height,
5538
5717
  extended,
5539
- MenuListProps: {
5540
- ...MenuListProps2,
5541
- "data-width": width,
5542
- "data-height": height,
5543
- "data-extended": extended
5718
+ slotProps: {
5719
+ ...slotProps,
5720
+ // v9 replaced MenuListProps with slotProps.list.
5721
+ list: mergeSlotProps({
5722
+ ownProps: {
5723
+ "data-width": width,
5724
+ "data-height": height,
5725
+ "data-extended": extended
5726
+ },
5727
+ consumerProps: slotProps == null ? void 0 : slotProps.list
5728
+ })
5544
5729
  }
5545
5730
  }
5546
5731
  );
@@ -5639,9 +5824,11 @@ const FilterDropdownMenuItem = ({
5639
5824
  {
5640
5825
  primary: label,
5641
5826
  secondary: description,
5642
- primaryTypographyProps: {
5643
- variant: "body2",
5644
- id: menuItemId
5827
+ slotProps: {
5828
+ primary: {
5829
+ variant: "body2",
5830
+ id: menuItemId
5831
+ }
5645
5832
  }
5646
5833
  }
5647
5834
  ),
@@ -5689,7 +5876,6 @@ function _FilterDropdown({
5689
5876
  buttonProps,
5690
5877
  iconButtonProps,
5691
5878
  slotProps,
5692
- MenuListProps,
5693
5879
  ...props
5694
5880
  }, ref) {
5695
5881
  const [selected_, setSelected] = useState(defaultValue || void 0);
@@ -5764,16 +5950,19 @@ function _FilterDropdown({
5764
5950
  paper: {
5765
5951
  "data-name": "filter-dropdown",
5766
5952
  ...slotProps == null ? void 0 : slotProps.paper
5767
- }
5768
- },
5769
- MenuListProps: {
5770
- "aria-labelledby": buttonId,
5771
- ...dense && {
5772
- "data-dense": dense
5773
5953
  },
5774
- autoFocus: true,
5775
- // To allow keyboard navigation
5776
- ...MenuListProps
5954
+ // v9 replaced MenuListProps with slotProps.list.
5955
+ list: mergeSlotProps({
5956
+ ownProps: {
5957
+ "aria-labelledby": buttonId,
5958
+ ...dense && {
5959
+ "data-dense": dense
5960
+ },
5961
+ autoFocus: true
5962
+ // To allow keyboard navigation
5963
+ },
5964
+ consumerProps: slotProps == null ? void 0 : slotProps.list
5965
+ })
5777
5966
  },
5778
5967
  children: [
5779
5968
  menuTitle && /* @__PURE__ */ jsx(MenuItem$1, { subtitle: true, children: menuTitle }),
@@ -5939,17 +6128,25 @@ const MessageFieldFooter = ({
5939
6128
  Tooltip,
5940
6129
  {
5941
6130
  title: buttonIsDisabled && !disabled ? typeToSendLabel : void 0,
5942
- children: /* @__PURE__ */ jsx(Box, { display: "flex", children: /* @__PURE__ */ jsx(
5943
- Button,
6131
+ children: /* @__PURE__ */ jsx(
6132
+ Box,
5944
6133
  {
5945
- onClick,
5946
- variant: "contained",
5947
- color: "primary",
5948
- disabled: buttonIsDisabled,
5949
- size,
5950
- children: labelButton
6134
+ sx: {
6135
+ display: "flex"
6136
+ },
6137
+ children: /* @__PURE__ */ jsx(
6138
+ Button,
6139
+ {
6140
+ onClick,
6141
+ variant: "contained",
6142
+ color: "primary",
6143
+ disabled: buttonIsDisabled,
6144
+ size,
6145
+ children: labelButton
6146
+ }
6147
+ )
5951
6148
  }
5952
- ) })
6149
+ )
5953
6150
  }
5954
6151
  )
5955
6152
  ] }) })
@@ -5987,6 +6184,7 @@ function _MessageField({
5987
6184
  "aria-label": ariaLabel,
5988
6185
  ...otherProps
5989
6186
  }, ref) {
6187
+ var _a, _b;
5990
6188
  const stopLabel = useTranslationWithFallback("c4r.button.stop", stopText);
5991
6189
  const typeToSendLabel = useTranslationWithFallback(
5992
6190
  "c4r.button.typeToSend",
@@ -6058,9 +6256,16 @@ function _MessageField({
6058
6256
  size,
6059
6257
  fullWidth,
6060
6258
  required: validationType === "required",
6061
- inputProps: { "aria-invalid": !!error },
6062
6259
  ...otherProps,
6063
6260
  ...textFieldProps,
6261
+ slotProps: {
6262
+ ...otherProps.slotProps,
6263
+ ...textFieldProps == null ? void 0 : textFieldProps.slotProps,
6264
+ htmlInput: mergeSlotProps({
6265
+ ownProps: { "aria-invalid": !!error },
6266
+ consumerProps: ((_a = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _a.htmlInput) ?? ((_b = otherProps.slotProps) == null ? void 0 : _b.htmlInput)
6267
+ })
6268
+ },
6064
6269
  onKeyDown: handleKeyDown
6065
6270
  }
6066
6271
  ),
@@ -6295,8 +6500,8 @@ function _SearchField({
6295
6500
  variant = "filled",
6296
6501
  size = "small",
6297
6502
  dense = false,
6503
+ slotProps,
6298
6504
  InputProps,
6299
- inputProps,
6300
6505
  startAdornment,
6301
6506
  endAdornment,
6302
6507
  onFocus,
@@ -6343,36 +6548,47 @@ function _SearchField({
6343
6548
  disabled,
6344
6549
  minimized,
6345
6550
  dense,
6346
- InputProps: {
6347
- onFocus: handleFocus,
6348
- onBlur: handleBlur,
6349
- startAdornment: /* @__PURE__ */ jsx(
6350
- SearchFieldStartAdornment,
6351
- {
6352
- minimized,
6353
- loading,
6354
- disabled,
6355
- startAdornment
6356
- }
6357
- ),
6358
- endAdornment: !minimized && /* @__PURE__ */ jsx(
6359
- SearchFieldEndAdornment,
6360
- {
6361
- disabled,
6362
- loading,
6363
- showClearButton: clearButtonVisibility,
6364
- clearButton,
6365
- clearButtonLabel: clearButtonLabelValue,
6366
- onClear: handleClear,
6367
- size,
6368
- endAdornment
6369
- }
6370
- ),
6371
- ...InputProps
6372
- },
6373
- inputProps: {
6374
- role: "searchbox",
6375
- ...inputProps
6551
+ slotProps: {
6552
+ ...slotProps,
6553
+ input: mergeSlotProps({
6554
+ ownProps: {
6555
+ onFocus: handleFocus,
6556
+ onBlur: handleBlur,
6557
+ startAdornment: /* @__PURE__ */ jsx(
6558
+ SearchFieldStartAdornment,
6559
+ {
6560
+ minimized,
6561
+ loading,
6562
+ disabled,
6563
+ startAdornment
6564
+ }
6565
+ ),
6566
+ endAdornment: !minimized && /* @__PURE__ */ jsx(
6567
+ SearchFieldEndAdornment,
6568
+ {
6569
+ disabled,
6570
+ loading,
6571
+ showClearButton: clearButtonVisibility,
6572
+ clearButton,
6573
+ clearButtonLabel: clearButtonLabelValue,
6574
+ onClear: handleClear,
6575
+ size,
6576
+ endAdornment
6577
+ }
6578
+ )
6579
+ },
6580
+ // The deprecated `InputProps` feeds the same slot, ranked below
6581
+ // `slotProps.input` so the modern form wins. Without this it rode
6582
+ // `otherProps` onto the DOM once v9 stopped accepting it on TextField.
6583
+ consumerProps: mergeSlotProps({
6584
+ ownProps: InputProps ?? {},
6585
+ consumerProps: slotProps == null ? void 0 : slotProps.input
6586
+ })
6587
+ }),
6588
+ htmlInput: mergeSlotProps({
6589
+ ownProps: { role: "searchbox" },
6590
+ consumerProps: slotProps == null ? void 0 : slotProps.htmlInput
6591
+ })
6376
6592
  },
6377
6593
  role: "search",
6378
6594
  "data-variant": variant,
@@ -6447,7 +6663,7 @@ const Alert = styled(Alert$1, {
6447
6663
  width: theme.spacing(3),
6448
6664
  marginTop: theme.spacing(0.5)
6449
6665
  },
6450
- "&.MuiAlert-standardError": {
6666
+ "&.MuiAlert-standard.MuiAlert-colorError": {
6451
6667
  backgroundColor: theme.palette.error.main
6452
6668
  },
6453
6669
  ...icon !== false && {
@@ -6507,7 +6723,7 @@ function Snackbar({
6507
6723
  open,
6508
6724
  autoHideDuration: duration,
6509
6725
  onClose,
6510
- TransitionComponent: autoWidth ? Fade : Slide,
6726
+ slots: { transition: autoWidth ? Fade : Slide, ...rest.slots },
6511
6727
  "data-auto-width": autoWidth,
6512
6728
  children: /* @__PURE__ */ jsxs(
6513
6729
  Content$1,
@@ -6810,7 +7026,7 @@ function _UploadFieldBase({
6810
7026
  focused,
6811
7027
  buttonText = "Browse",
6812
7028
  inProgress,
6813
- InputProps,
7029
+ slotProps,
6814
7030
  size = "small",
6815
7031
  hasFiles,
6816
7032
  cursor = "pointer",
@@ -6828,25 +7044,30 @@ function _UploadFieldBase({
6828
7044
  focused: focused ?? dragOver,
6829
7045
  cursor,
6830
7046
  "data-testid": dataTestId,
6831
- InputProps: {
6832
- ...InputProps,
6833
- name,
6834
- // multiple prop cannot be used here because it is not a valid prop for TextField InputProps
6835
- // not used for any UI logic
6836
- readOnly: true,
6837
- endAdornment: /* @__PURE__ */ jsx(
6838
- FilesAction,
6839
- {
6840
- buttonText,
6841
- hasFiles,
6842
- size,
6843
- error,
6844
- disabled: !!dragOver,
6845
- handleReset,
6846
- handleOpen,
6847
- inProgress
6848
- }
6849
- )
7047
+ slotProps: {
7048
+ ...slotProps,
7049
+ // Own props are spread last on purpose: name/readOnly/endAdornment are
7050
+ // this component's contract and must win over the consumer's.
7051
+ input: (ownerState) => ({
7052
+ ...typeof (slotProps == null ? void 0 : slotProps.input) === "function" ? slotProps.input(ownerState) : slotProps == null ? void 0 : slotProps.input,
7053
+ name,
7054
+ // multiple prop cannot be used here because it is not a valid prop for TextField InputProps
7055
+ // not used for any UI logic
7056
+ readOnly: true,
7057
+ endAdornment: /* @__PURE__ */ jsx(
7058
+ FilesAction,
7059
+ {
7060
+ buttonText,
7061
+ hasFiles,
7062
+ size,
7063
+ error,
7064
+ disabled: !!dragOver,
7065
+ handleReset,
7066
+ handleOpen,
7067
+ inProgress
7068
+ }
7069
+ )
7070
+ })
6850
7071
  },
6851
7072
  "data-cursor": cursor,
6852
7073
  "data-drag-over": dragOver,
@@ -6964,6 +7185,7 @@ function _UploadField({
6964
7185
  focused,
6965
7186
  nativeInputProps,
6966
7187
  "data-testid": dataTestId,
7188
+ slotProps,
6967
7189
  ...props
6968
7190
  }, ref) {
6969
7191
  const accept = _accept ?? DEFAULT_ACCEPT;
@@ -6996,7 +7218,13 @@ function _UploadField({
6996
7218
  dragOver,
6997
7219
  inProgress,
6998
7220
  hasFiles: Boolean(filesText),
6999
- InputProps: inputEvents,
7221
+ slotProps: {
7222
+ ...slotProps,
7223
+ input: mergeSlotProps({
7224
+ ownProps: inputEvents,
7225
+ consumerProps: slotProps == null ? void 0 : slotProps.input
7226
+ })
7227
+ },
7000
7228
  buttonText,
7001
7229
  "data-testid": dataTestId
7002
7230
  }
@@ -7417,13 +7645,13 @@ const ListItem = forwardRef(_ListItem);
7417
7645
  ListItem.displayName = "ListItem";
7418
7646
  const DEFAULT_PRIMARY_TYPOGRAPHY_PROPS = {
7419
7647
  variant: "body2",
7420
- color: "text.primary",
7648
+ color: "textPrimary",
7421
7649
  noWrap: true,
7422
7650
  component: "span"
7423
7651
  };
7424
7652
  const DEFAULT_SECONDARY_TYPOGRAPHY_PROPS = {
7425
7653
  variant: "caption",
7426
- color: "text.secondary",
7654
+ color: "textSecondary",
7427
7655
  noWrap: true
7428
7656
  };
7429
7657
  function resolveTypographyProps(defaultProps, userProps) {
@@ -7451,22 +7679,32 @@ function resolveTypographyProps(defaultProps, userProps) {
7451
7679
  function _ListItemText({
7452
7680
  primaryTypographyProps,
7453
7681
  secondaryTypographyProps,
7682
+ slotProps,
7454
7683
  ...props
7455
7684
  }, ref) {
7456
7685
  return /* @__PURE__ */ jsx(
7457
7686
  ListItemText$1,
7458
7687
  {
7459
7688
  ...props,
7460
- primaryTypographyProps: resolveTypographyProps(
7461
- DEFAULT_PRIMARY_TYPOGRAPHY_PROPS,
7462
- primaryTypographyProps
7463
- ),
7464
- secondaryTypographyProps: resolveTypographyProps(
7465
- DEFAULT_SECONDARY_TYPOGRAPHY_PROPS,
7466
- secondaryTypographyProps
7467
- ),
7468
7689
  ref,
7469
- "data-name": "list-item-text"
7690
+ "data-name": "list-item-text",
7691
+ slotProps: {
7692
+ ...slotProps,
7693
+ primary: mergeSlotProps({
7694
+ ownProps: resolveTypographyProps(
7695
+ DEFAULT_PRIMARY_TYPOGRAPHY_PROPS,
7696
+ primaryTypographyProps
7697
+ ),
7698
+ consumerProps: slotProps == null ? void 0 : slotProps.primary
7699
+ }),
7700
+ secondary: mergeSlotProps({
7701
+ ownProps: resolveTypographyProps(
7702
+ DEFAULT_SECONDARY_TYPOGRAPHY_PROPS,
7703
+ secondaryTypographyProps
7704
+ ),
7705
+ consumerProps: slotProps == null ? void 0 : slotProps.secondary
7706
+ })
7707
+ }
7470
7708
  }
7471
7709
  );
7472
7710
  }
@@ -7487,13 +7725,23 @@ function ListItemRightContent({
7487
7725
  Root,
7488
7726
  {
7489
7727
  direction: "row",
7490
- alignItems: "center",
7491
7728
  spacing: 1.5,
7729
+ sx: { alignItems: "center" },
7492
7730
  ...props,
7493
7731
  "data-name": "list-item-right-content",
7494
7732
  children: [
7495
7733
  children,
7496
- actions && /* @__PURE__ */ jsx(Stack, { direction: "row", alignItems: "center", spacing: 0.5, children: actions })
7734
+ actions && /* @__PURE__ */ jsx(
7735
+ Stack,
7736
+ {
7737
+ direction: "row",
7738
+ spacing: 0.5,
7739
+ sx: {
7740
+ alignItems: "center"
7741
+ },
7742
+ children: actions
7743
+ }
7744
+ )
7497
7745
  ]
7498
7746
  }
7499
7747
  );
@@ -7501,7 +7749,7 @@ function ListItemRightContent({
7501
7749
  ListItemRightContent.displayName = "ListItemRightContent";
7502
7750
  const DEFAULT_TYPOGRAPHY_PROPS = {
7503
7751
  variant: "caption",
7504
- color: "text.secondary",
7752
+ color: "textSecondary",
7505
7753
  component: "span"
7506
7754
  };
7507
7755
  function mergeTypographyProps(defaultProps, userProps) {
@@ -7552,7 +7800,7 @@ function _ListSubheader({
7552
7800
  "data-disable-gutters": effectiveDisableGutters,
7553
7801
  "data-disable-padding": effectiveDisablePadding,
7554
7802
  children: /* @__PURE__ */ jsx(
7555
- Typography$1,
7803
+ Typography,
7556
7804
  {
7557
7805
  ...mergeTypographyProps(
7558
7806
  DEFAULT_TYPOGRAPHY_PROPS,