@carto/meridian-ds 2.5.4 → 2.5.5-alpha-ellipsis.2

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 (209) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{Alert-BdmDjcVc.cjs → Alert-CaashKPj.cjs} +8 -8
  3. package/dist/{Alert-lLA0z7fX.js → Alert-wE4A0ify.js} +1 -1
  4. package/dist/{MenuItem-ZNdBUBvt.js → MenuItem-BUe4eJZH.js} +1 -1
  5. package/dist/{MenuItem-nokUtiks.cjs → MenuItem-BZWWJptW.cjs} +6 -6
  6. package/dist/components/index.cjs +288 -103
  7. package/dist/components/index.js +251 -66
  8. package/dist/{TablePaginationActions-C6TVGJM-.js → css-utils-CTJjJR0x.js} +9 -3
  9. package/dist/{TablePaginationActions-DAMGtIub.cjs → css-utils-W9dzgcXq.cjs} +6 -0
  10. package/dist/theme/index.cjs +109 -115
  11. package/dist/theme/index.js +9 -15
  12. package/dist/types/components/Autocomplete/Autocomplete/useAutocomplete.test.d.ts +2 -0
  13. package/dist/types/components/Autocomplete/Autocomplete/useAutocomplete.test.d.ts.map +1 -0
  14. package/dist/types/components/CodeArea/utils/useCodeAreaAutocompletion.test.d.ts +2 -0
  15. package/dist/types/components/CodeArea/utils/useCodeAreaAutocompletion.test.d.ts.map +1 -0
  16. package/dist/types/components/CopiableComponent/CopiableComponent.d.ts.map +1 -1
  17. package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts +1 -0
  18. package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts.map +1 -1
  19. package/dist/types/components/CopiableComponent/types.d.ts +2 -2
  20. package/dist/types/components/CopiableComponent/types.d.ts.map +1 -1
  21. package/dist/types/components/CopiableComponent/useCopyValue.d.ts +2 -2
  22. package/dist/types/components/CopiableComponent/useCopyValue.d.ts.map +1 -1
  23. package/dist/types/components/DatePickers/DateCalendar.stories.d.ts +34 -1
  24. package/dist/types/components/DatePickers/DateCalendar.stories.d.ts.map +1 -1
  25. package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts +10 -0
  26. package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts.map +1 -1
  27. package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts +1 -0
  28. package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
  29. package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
  30. package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts.map +1 -1
  31. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +117 -0
  32. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts.map +1 -0
  33. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +66 -0
  34. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -0
  35. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts +2 -0
  36. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts.map +1 -0
  37. package/dist/types/components/EllipsisWithTooltip/index.d.ts +3 -0
  38. package/dist/types/components/EllipsisWithTooltip/index.d.ts.map +1 -0
  39. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.d.ts +6 -1
  40. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.d.ts.map +1 -1
  41. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.stories.d.ts +8 -2
  42. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.stories.d.ts.map +1 -1
  43. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.test.d.ts +2 -0
  44. package/dist/types/components/LabelWithIndicator/LabelWithIndicator.test.d.ts.map +1 -0
  45. package/dist/types/components/Link/Link.stories.d.ts +0 -7
  46. package/dist/types/components/Link/Link.stories.d.ts.map +1 -1
  47. package/dist/types/components/PasswordField/PasswordField.d.ts.map +1 -1
  48. package/dist/types/components/PasswordField/PasswordField.test.d.ts +2 -0
  49. package/dist/types/components/PasswordField/PasswordField.test.d.ts.map +1 -0
  50. package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts.map +1 -1
  51. package/dist/types/components/Tag/Tag.d.ts +176 -4
  52. package/dist/types/components/Tag/Tag.d.ts.map +1 -1
  53. package/dist/types/components/UploadField/FilesAction.d.ts +1 -2
  54. package/dist/types/components/UploadField/FilesAction.d.ts.map +1 -1
  55. package/dist/types/components/UploadField/FilesAction.test.d.ts +2 -0
  56. package/dist/types/components/UploadField/FilesAction.test.d.ts.map +1 -0
  57. package/dist/types/components/UploadField/UploadField.d.ts +3 -1
  58. package/dist/types/components/UploadField/UploadField.d.ts.map +1 -1
  59. package/dist/types/components/UploadField/UploadField.stories.d.ts +2 -2
  60. package/dist/types/components/UploadField/UploadField.stories.d.ts.map +1 -1
  61. package/dist/types/components/UploadField/{StyledUploadField.d.ts → UploadField.styled.d.ts} +1 -1
  62. package/dist/types/components/UploadField/UploadField.styled.d.ts.map +1 -0
  63. package/dist/types/components/UploadField/UploadField.test.d.ts +2 -0
  64. package/dist/types/components/UploadField/UploadField.test.d.ts.map +1 -0
  65. package/dist/types/components/UploadField/UploadFieldBase.d.ts +3 -2
  66. package/dist/types/components/UploadField/UploadFieldBase.d.ts.map +1 -1
  67. package/dist/types/components/UploadField/UploadFieldBase.test.d.ts +2 -0
  68. package/dist/types/components/UploadField/UploadFieldBase.test.d.ts.map +1 -0
  69. package/dist/types/components/UploadField/useFileUpload.d.ts.map +1 -1
  70. package/dist/types/components/UploadField/useFileUpload.test.d.ts +2 -0
  71. package/dist/types/components/UploadField/useFileUpload.test.d.ts.map +1 -0
  72. package/dist/types/components/index.d.ts +2 -0
  73. package/dist/types/components/index.d.ts.map +1 -1
  74. package/dist/types/theme/carto-theme.d.ts.map +1 -1
  75. package/dist/types/theme/components/forms.d.ts.map +1 -1
  76. package/dist/types/theme/components/stories/Progress.stories.d.ts +8 -0
  77. package/dist/types/theme/components/stories/Progress.stories.d.ts.map +1 -1
  78. package/dist/types/theme/{helpers/css-baseline.d.ts.map → css-baseline.d.ts.map} +1 -1
  79. package/dist/types/theme/index.d.ts +2 -2
  80. package/dist/types/theme/index.d.ts.map +1 -1
  81. package/dist/types/utils/{animationUtils.d.ts → animation-utils.d.ts} +1 -1
  82. package/dist/types/utils/animation-utils.d.ts.map +1 -0
  83. package/dist/types/utils/animation-utils.test.d.ts +2 -0
  84. package/dist/types/utils/animation-utils.test.d.ts.map +1 -0
  85. package/dist/types/utils/{chartConstants.d.ts → chart-constants.d.ts} +1 -1
  86. package/dist/types/utils/chart-constants.d.ts.map +1 -0
  87. package/dist/types/utils/css-utils.d.ts +14 -0
  88. package/dist/types/utils/css-utils.d.ts.map +1 -0
  89. package/dist/types/utils/{detectTouchScreen.d.ts → detect-touch-screen.d.ts} +1 -1
  90. package/dist/types/utils/detect-touch-screen.d.ts.map +1 -0
  91. package/dist/types/utils/detect-touch-screen.test.d.ts +2 -0
  92. package/dist/types/utils/detect-touch-screen.test.d.ts.map +1 -0
  93. package/dist/types/utils/{formatterUtils.d.ts → formatter-utils.d.ts} +1 -1
  94. package/dist/types/utils/formatter-utils.d.ts.map +1 -0
  95. package/dist/types/utils/formatter-utils.test.d.ts +2 -0
  96. package/dist/types/utils/formatter-utils.test.d.ts.map +1 -0
  97. package/dist/types/utils/{legendUtils.d.ts → legend-utils.d.ts} +1 -1
  98. package/dist/types/utils/legend-utils.d.ts.map +1 -0
  99. package/dist/types/utils/{localeUtils.d.ts → locale-utils.d.ts} +1 -1
  100. package/dist/types/utils/locale-utils.d.ts.map +1 -0
  101. package/dist/types/utils/locale-utils.test.d.ts +2 -0
  102. package/dist/types/utils/locale-utils.test.d.ts.map +1 -0
  103. package/dist/types/utils/{paletteUtils.d.ts → palette-utils.d.ts} +2 -2
  104. package/dist/types/utils/palette-utils.d.ts.map +1 -0
  105. package/dist/types/utils/palette-utils.test.d.ts +2 -0
  106. package/dist/types/utils/palette-utils.test.d.ts.map +1 -0
  107. package/dist/types/utils/theme-constants.d.ts.map +1 -0
  108. package/dist/types/utils/theme-utils.d.ts.map +1 -0
  109. package/dist/types/utils/theme-utils.test.d.ts +2 -0
  110. package/dist/types/utils/theme-utils.test.d.ts.map +1 -0
  111. package/dist/types/utils/{uniqueId.d.ts → unique-id.d.ts} +1 -1
  112. package/dist/types/utils/unique-id.d.ts.map +1 -0
  113. package/dist/types/utils/unique-id.test.d.ts +2 -0
  114. package/dist/types/utils/unique-id.test.d.ts.map +1 -0
  115. package/dist/types/widgets/BarWidgetUI/BarWidgetUI.d.ts +1 -1
  116. package/dist/types/widgets/BarWidgetUI/BarWidgetUI.d.ts.map +1 -1
  117. package/dist/types/widgets/BarWidgetUI/useProcessedProps.d.ts +1 -1
  118. package/dist/types/widgets/BarWidgetUI/useProcessedProps.d.ts.map +1 -1
  119. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts +2 -2
  120. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +1 -1
  121. package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.d.ts +1 -1
  122. package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.d.ts.map +1 -1
  123. package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.d.ts +1 -1
  124. package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.d.ts.map +1 -1
  125. package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts +2 -2
  126. package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts.map +1 -1
  127. package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts +1 -1
  128. package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts.map +1 -1
  129. package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.d.ts +1 -1
  130. package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.d.ts.map +1 -1
  131. package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts.map +1 -1
  132. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesContext.d.ts +1 -1
  133. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesContext.d.ts.map +1 -1
  134. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts +1 -1
  135. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts.map +1 -1
  136. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.stories.d.ts +1 -1
  137. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.stories.d.ts.map +1 -1
  138. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts +1 -1
  139. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts.map +1 -1
  140. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesControls.d.ts +1 -1
  141. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesControls.d.ts.map +1 -1
  142. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts +1 -1
  143. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts.map +1 -1
  144. package/dist/types/widgets/TimeSeriesWidgetUI/index.d.ts +4 -4
  145. package/dist/types/widgets/TimeSeriesWidgetUI/index.d.ts.map +1 -1
  146. package/dist/types/widgets/TimeSeriesWidgetUI/{timeSeriesUtils.d.ts → utils/time-series-utils.d.ts} +3 -3
  147. package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.d.ts.map +1 -0
  148. package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.test.d.ts +2 -0
  149. package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.test.d.ts.map +1 -0
  150. package/dist/types/widgets/TimeSeriesWidgetUI/{useTimeSeriesInteractivity.d.ts → utils/useTimeSeriesInteractivity.d.ts} +1 -1
  151. package/dist/types/widgets/TimeSeriesWidgetUI/utils/useTimeSeriesInteractivity.d.ts.map +1 -0
  152. package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.d.ts.map +1 -1
  153. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts +1 -1
  154. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
  155. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts +1 -1
  156. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts.map +1 -1
  157. package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.d.ts +1 -1
  158. package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.d.ts.map +1 -1
  159. package/dist/types/widgets/index.d.ts +1 -1
  160. package/dist/types/widgets/index.d.ts.map +1 -1
  161. package/dist/types/widgets/legend/LegendLayer.d.ts +1 -1
  162. package/dist/types/widgets/legend/LegendLayer.d.ts.map +1 -1
  163. package/dist/types/widgets/legend/LegendLayerVariable.d.ts +1 -1
  164. package/dist/types/widgets/legend/LegendLayerVariable.d.ts.map +1 -1
  165. package/dist/types/widgets/legend/LegendWidgetUI.d.ts +1 -1
  166. package/dist/types/widgets/legend/LegendWidgetUI.d.ts.map +1 -1
  167. package/dist/types/widgets/legend/index.d.ts +2 -2
  168. package/dist/types/widgets/legend/index.d.ts.map +1 -1
  169. package/dist/types/widgets/legend/legend-types/LegendCategories.d.ts +1 -1
  170. package/dist/types/widgets/legend/legend-types/LegendCategories.d.ts.map +1 -1
  171. package/dist/types/widgets/legend/legend-types/LegendIcon.d.ts +1 -1
  172. package/dist/types/widgets/legend/legend-types/LegendIcon.d.ts.map +1 -1
  173. package/dist/types/widgets/legend/legend-types/LegendProportion.d.ts +1 -1
  174. package/dist/types/widgets/legend/legend-types/LegendProportion.d.ts.map +1 -1
  175. package/dist/types/widgets/legend/legend-types/LegendRamp.d.ts +1 -1
  176. package/dist/types/widgets/legend/legend-types/LegendRamp.d.ts.map +1 -1
  177. package/dist/types/widgets/legend/legendFixtures.d.ts +1 -1
  178. package/dist/types/widgets/legend/legendFixtures.d.ts.map +1 -1
  179. package/dist/widgets/index.cjs +113 -118
  180. package/dist/widgets/index.js +5 -10
  181. package/package.json +1 -1
  182. package/dist/types/components/UploadField/StyledUploadField.d.ts.map +0 -1
  183. package/dist/types/theme/helpers/theme-constants.d.ts.map +0 -1
  184. package/dist/types/theme/helpers/theme-utils.d.ts.map +0 -1
  185. package/dist/types/utils/animationUtils.d.ts.map +0 -1
  186. package/dist/types/utils/chartConstants.d.ts.map +0 -1
  187. package/dist/types/utils/detectTouchScreen.d.ts.map +0 -1
  188. package/dist/types/utils/detectTouchScreen.test.d.ts +0 -2
  189. package/dist/types/utils/detectTouchScreen.test.d.ts.map +0 -1
  190. package/dist/types/utils/formatterUtils.d.ts.map +0 -1
  191. package/dist/types/utils/formatterUtils.test.d.ts +0 -2
  192. package/dist/types/utils/formatterUtils.test.d.ts.map +0 -1
  193. package/dist/types/utils/legendUtils.d.ts.map +0 -1
  194. package/dist/types/utils/localeUtils.d.ts.map +0 -1
  195. package/dist/types/utils/localeUtils.test.d.ts +0 -2
  196. package/dist/types/utils/localeUtils.test.d.ts.map +0 -1
  197. package/dist/types/utils/paletteUtils.d.ts.map +0 -1
  198. package/dist/types/utils/uniqueId.d.ts.map +0 -1
  199. package/dist/types/utils/uniqueId.test.d.ts +0 -2
  200. package/dist/types/utils/uniqueId.test.d.ts.map +0 -1
  201. package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts.map +0 -1
  202. package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.test.d.ts +0 -2
  203. package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.test.d.ts.map +0 -1
  204. package/dist/types/widgets/TimeSeriesWidgetUI/useTimeSeriesInteractivity.d.ts.map +0 -1
  205. /package/dist/{paletteUtils-B9ybmwiI.cjs → palette-utils-B9ybmwiI.cjs} +0 -0
  206. /package/dist/{paletteUtils-BHqJlHm9.js → palette-utils-BHqJlHm9.js} +0 -0
  207. /package/dist/types/theme/{helpers/css-baseline.d.ts → css-baseline.d.ts} +0 -0
  208. /package/dist/types/{theme/helpers → utils}/theme-constants.d.ts +0 -0
  209. /package/dist/types/{theme/helpers → utils}/theme-utils.d.ts +0 -0
@@ -1,15 +1,15 @@
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 } from "react";
3
3
  import { useIntl } from "react-intl";
4
- import { styled, Box, Button as Button$1, CircularProgress, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, IconButton, Tooltip, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, ListItemText, ToggleButtonGroup as ToggleButtonGroup$1, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, alpha, useTheme, Toolbar, AppBar as AppBar$1, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade } from "@mui/material";
4
+ import { styled, Box, Button as Button$1, CircularProgress, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, alpha, useTheme, Toolbar, AppBar as AppBar$1, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade } from "@mui/material";
5
5
  import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, Check, TodayOutlined } from "@mui/icons-material";
6
- import { u as useImperativeIntl, T as Typography, c as ICON_SIZE_SMALL, e as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, f as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, N as NOTIFICATION_DURATION_IN_MS } from "../TablePaginationActions-C6TVGJM-.js";
7
- import { a } from "../TablePaginationActions-C6TVGJM-.js";
8
- import { S as ScreenReaderOnly, I as IconButton$1, A as Alert$1 } from "../Alert-lLA0z7fX.js";
9
- import { L } from "../Alert-lLA0z7fX.js";
6
+ import { u as useImperativeIntl, T as Typography, c as ICON_SIZE_SMALL, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, h as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles } from "../css-utils-CTJjJR0x.js";
7
+ import { a } from "../css-utils-CTJjJR0x.js";
8
+ import { S as ScreenReaderOnly, I as IconButton, A as Alert$1 } from "../Alert-wE4A0ify.js";
9
+ import { L } from "../Alert-wE4A0ify.js";
10
10
  import { A as ArrowDown } from "../ArrowDown-d6bxUL0F.js";
11
11
  import { A as ArrowUp, O as OpenDiagonallyRight, C as CloseDiagonallyRight } from "../OpenDiagonallyRight-CGdCEXlF.js";
12
- import { M as MenuItem$1 } from "../MenuItem-ZNdBUBvt.js";
12
+ import { M as MenuItem$1 } from "../MenuItem-BUe4eJZH.js";
13
13
  import "cartocolor";
14
14
  import { FixedSizeList } from "react-window";
15
15
  import { Controlled, UnControlled } from "react-codemirror2";
@@ -245,32 +245,50 @@ const Icon = styled(Box)(({ theme }) => ({
245
245
  }
246
246
  }
247
247
  }));
248
- function LabelWithIndicator({
248
+ function _LabelWithIndicator({
249
249
  label,
250
250
  type,
251
251
  icon,
252
- inheritSize
253
- }) {
254
- return /* @__PURE__ */ jsxs(Root$5, { children: [
255
- label,
256
- type && /* @__PURE__ */ jsx(
257
- Indicator,
258
- {
259
- component: "span",
260
- variant: inheritSize ? "inherit" : "caption",
261
- color: "textSecondary",
262
- weight: "regular",
263
- children: type === "required" ? "(required)" : "(optional)"
264
- }
265
- ),
266
- icon && /* @__PURE__ */ jsx(Icon, { children: icon })
267
- ] });
252
+ inheritSize,
253
+ "data-testid": dataTestId,
254
+ "aria-label": ariaLabel,
255
+ typographyProps
256
+ }, ref) {
257
+ return /* @__PURE__ */ jsxs(
258
+ Root$5,
259
+ {
260
+ ref,
261
+ "data-testid": dataTestId,
262
+ "aria-label": ariaLabel,
263
+ "data-icon": !!icon,
264
+ "data-name": "label-with-indicator",
265
+ children: [
266
+ label,
267
+ type && /* @__PURE__ */ jsx(
268
+ Indicator,
269
+ {
270
+ component: "span",
271
+ variant: inheritSize ? "inherit" : "caption",
272
+ color: "textSecondary",
273
+ weight: "regular",
274
+ ...typographyProps,
275
+ children: type === "required" ? "(required)" : "(optional)"
276
+ }
277
+ ),
278
+ icon && /* @__PURE__ */ jsx(Icon, { children: icon })
279
+ ]
280
+ }
281
+ );
268
282
  }
269
- function _PasswordField({ InputProps, size = "small", ...otherProps }, ref) {
283
+ const LabelWithIndicator = forwardRef(_LabelWithIndicator);
284
+ function _PasswordField({ InputProps, size = "small", disabled, ...otherProps }, ref) {
270
285
  const intl = useIntl();
271
286
  const intlConfig = useImperativeIntl(intl);
272
287
  const [showPassword, setShowPassword] = useState(false);
273
288
  const handleClickShowPassword = () => setShowPassword(!showPassword);
289
+ const showPasswordLabel = intlConfig.formatMessage({
290
+ id: `c4r.form.${showPassword ? "hidePassword" : "showPassword"}`
291
+ });
274
292
  return /* @__PURE__ */ jsx(
275
293
  TextField,
276
294
  {
@@ -278,18 +296,26 @@ function _PasswordField({ InputProps, size = "small", ...otherProps }, ref) {
278
296
  ref,
279
297
  type: showPassword ? "text" : "password",
280
298
  size,
299
+ disabled,
281
300
  InputProps: {
282
301
  ...InputProps,
283
- endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(IconButton, { size, onClick: handleClickShowPassword, children: /* @__PURE__ */ jsx(
284
- Tooltip,
302
+ inputProps: {
303
+ ...InputProps == null ? void 0 : InputProps.inputProps,
304
+ role: "textbox"
305
+ },
306
+ endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
307
+ IconButton,
285
308
  {
286
- title: intlConfig.formatMessage({
287
- id: `c4r.form.${showPassword ? "hidePassword" : "showPassword"}`
288
- }),
289
- children: showPassword ? /* @__PURE__ */ jsx(VisibilityOffOutlined, {}) : /* @__PURE__ */ jsx(VisibilityOutlined, {})
309
+ size,
310
+ disabled,
311
+ onClick: handleClickShowPassword,
312
+ icon: showPassword ? /* @__PURE__ */ jsx(VisibilityOffOutlined, {}) : /* @__PURE__ */ jsx(VisibilityOutlined, {}),
313
+ tooltip: showPasswordLabel,
314
+ "aria-label": showPasswordLabel
290
315
  }
291
- ) }) })
292
- }
316
+ ) })
317
+ },
318
+ "data-name": "password-field"
293
319
  }
294
320
  );
295
321
  }
@@ -654,7 +680,7 @@ function _MultipleSelectField({
654
680
  onChange: handleChange,
655
681
  size,
656
682
  variant,
657
- endAdornment: showFilters && areAnySelected && /* @__PURE__ */ jsx(UnselectButton, { position: "end", size, children: /* @__PURE__ */ jsx(IconButton, { onClick: unselectAll, size, children: /* @__PURE__ */ jsx(Cancel, {}) }) }),
683
+ endAdornment: showFilters && areAnySelected && /* @__PURE__ */ jsx(UnselectButton, { position: "end", size, children: /* @__PURE__ */ jsx(IconButton$1, { onClick: unselectAll, size, children: /* @__PURE__ */ jsx(Cancel, {}) }) }),
658
684
  menuProps: {
659
685
  PaperProps: {
660
686
  sx: {
@@ -841,7 +867,7 @@ const _CopiableComponent = ({
841
867
  const [open, setOpen] = useState(false);
842
868
  const intl = useIntl();
843
869
  const intlConfig = useImperativeIntl(intl);
844
- const copyTooltipText = copyText || intlConfig.formatMessage({ id: "c4r.button.copy" });
870
+ const copyTooltipText = copyText === null ? null : copyText || intlConfig.formatMessage({ id: "c4r.button.copy" });
845
871
  const copySuccessMessage = copiedText || intlConfig.formatMessage({
846
872
  id: "c4r.notifications.copiedToClipboard"
847
873
  });
@@ -871,13 +897,13 @@ const _CopiableComponent = ({
871
897
  children: [
872
898
  children,
873
899
  button && /* @__PURE__ */ jsx(
874
- IconButton$1,
900
+ IconButton,
875
901
  {
876
902
  ...buttonProps,
877
903
  disabled,
878
904
  icon: /* @__PURE__ */ jsx(ContentCopyOutlined, {}),
879
905
  "data-testid": dataTestId,
880
- "aria-label": ariaLabel || buttonLabel || copyTooltipText,
906
+ "aria-label": ariaLabel || buttonLabel || copyTooltipText || intlConfig.formatMessage({ id: "c4r.button.copy" }),
881
907
  sx: {
882
908
  display: "flex"
883
909
  }
@@ -957,7 +983,7 @@ function _CopiableInputText({
957
983
  onBlur == null ? void 0 : onBlur(event);
958
984
  };
959
985
  const passwordAdornment = /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
960
- IconButton$1,
986
+ IconButton,
961
987
  {
962
988
  edge: variant !== "standard" ? "end" : void 0,
963
989
  onClick: () => setShowText(!showText),
@@ -1729,7 +1755,7 @@ const Menu$1 = styled("div")(({ theme }) => ({
1729
1755
  height: APPBAR_SIZE,
1730
1756
  marginRight: theme.spacing(1.5)
1731
1757
  }));
1732
- const MenuButton = styled(IconButton)(({ theme }) => ({
1758
+ const MenuButton = styled(IconButton$1)(({ theme }) => ({
1733
1759
  marginRight: theme.spacing(1),
1734
1760
  "&.MuiButtonBase-root svg path": {
1735
1761
  fill: theme.palette.brand.appBarContrastText
@@ -1830,7 +1856,7 @@ const BrandElements = styled("div")(({ theme }) => ({
1830
1856
  minWidth: "192px"
1831
1857
  }
1832
1858
  }));
1833
- const Content$4 = styled("div")(({ theme }) => ({
1859
+ const Content$5 = styled("div")(({ theme }) => ({
1834
1860
  display: "flex",
1835
1861
  alignItems: "center",
1836
1862
  justifyContent: "space-between",
@@ -1853,7 +1879,7 @@ function AppBar({
1853
1879
  brandText && /* @__PURE__ */ jsx(BrandText, { text: brandText }),
1854
1880
  secondaryText && /* @__PURE__ */ jsx(SecondaryText, { text: secondaryText })
1855
1881
  ] }),
1856
- /* @__PURE__ */ jsx(Content$4, { children })
1882
+ /* @__PURE__ */ jsx(Content$5, { children })
1857
1883
  ] }) });
1858
1884
  }
1859
1885
  const Footer = styled(Box, {
@@ -1974,7 +2000,7 @@ function CodeAreaHeader({
1974
2000
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1975
2001
  /* @__PURE__ */ jsxs(Header, { size, "data-size": size, "data-name": "code-area-header", children: [
1976
2002
  /* @__PURE__ */ jsx(
1977
- IconButton$1,
2003
+ IconButton,
1978
2004
  {
1979
2005
  color: "default",
1980
2006
  size,
@@ -2038,7 +2064,7 @@ function CodeAreaHeader({
2038
2064
  }
2039
2065
  ),
2040
2066
  showExpandButton && /* @__PURE__ */ jsx(
2041
- IconButton$1,
2067
+ IconButton,
2042
2068
  {
2043
2069
  color: "default",
2044
2070
  size,
@@ -3122,7 +3148,7 @@ function DialogHeader({
3122
3148
  {
3123
3149
  title: intlConfig.formatMessage({ id: "c4r.button.close" }),
3124
3150
  placement: "left",
3125
- children: /* @__PURE__ */ jsx(IconButton, { onClick: onClose, children: closeIcon || /* @__PURE__ */ jsx(CloseIcon, { "data-testid": "CloseIcon" }) })
3151
+ children: /* @__PURE__ */ jsx(IconButton$1, { onClick: onClose, children: closeIcon || /* @__PURE__ */ jsx(CloseIcon, { "data-testid": "CloseIcon" }) })
3126
3152
  }
3127
3153
  )
3128
3154
  ] })
@@ -3132,7 +3158,7 @@ function DialogHeader({
3132
3158
  children && /* @__PURE__ */ jsx(DividerBottom, {})
3133
3159
  ] });
3134
3160
  }
3135
- const Content$3 = styled(DialogContent$1, {
3161
+ const Content$4 = styled(DialogContent$1, {
3136
3162
  shouldForwardProp: (prop) => !["scrollableContent", "withGutter", "withBottomGutter"].includes(prop)
3137
3163
  })(({ theme, scrollableContent, withGutter, withBottomGutter }) => ({
3138
3164
  display: "flex",
@@ -3209,7 +3235,7 @@ function _DialogContent({
3209
3235
  return () => resizeObserver.disconnect();
3210
3236
  }, [contentRef, updateBorders]);
3211
3237
  return /* @__PURE__ */ jsx(
3212
- Content$3,
3238
+ Content$4,
3213
3239
  {
3214
3240
  ref: setContentRef,
3215
3241
  onScroll: handleScroll,
@@ -3508,7 +3534,7 @@ function DialogStepper({
3508
3534
  );
3509
3535
  }) }) });
3510
3536
  }
3511
- const Content$2 = styled(DialogContent, {
3537
+ const Content$3 = styled(DialogContent, {
3512
3538
  shouldForwardProp: (prop) => !["error", "withBorder"].includes(prop)
3513
3539
  })(
3514
3540
  ({ error, withBorder, theme }) => ({
@@ -3537,7 +3563,7 @@ function CodeAreaDialogContent({
3537
3563
  withGutter = false
3538
3564
  }) {
3539
3565
  if (!children) return null;
3540
- return /* @__PURE__ */ jsx(Content$2, { withGutter, error, withBorder, children });
3566
+ return /* @__PURE__ */ jsx(Content$3, { withGutter, error, withBorder, children });
3541
3567
  }
3542
3568
  function CodeAreaDialogConfirmation({
3543
3569
  onClose,
@@ -3754,7 +3780,7 @@ function ClearButton({
3754
3780
  const intl = useIntl();
3755
3781
  const intlConfig = useImperativeIntl(intl);
3756
3782
  return /* @__PURE__ */ jsx(Container, { size, variant, children: /* @__PURE__ */ jsx(
3757
- IconButton,
3783
+ IconButton$1,
3758
3784
  {
3759
3785
  ...props,
3760
3786
  size,
@@ -3871,7 +3897,7 @@ function DatePicker({
3871
3897
  slots: {
3872
3898
  clearButton: (props2) => /* @__PURE__ */ jsx(ClearButton, { ...props2, size, variant }),
3873
3899
  openPickerButton: (props2) => /* @__PURE__ */ jsx(
3874
- IconButton,
3900
+ IconButton$1,
3875
3901
  {
3876
3902
  ...props2,
3877
3903
  size,
@@ -4371,7 +4397,7 @@ function TimePicker({
4371
4397
  slots: {
4372
4398
  clearButton: (props2) => /* @__PURE__ */ jsx(ClearButton, { ...props2, size, variant }),
4373
4399
  openPickerButton: (props2) => /* @__PURE__ */ jsx(
4374
- IconButton,
4400
+ IconButton$1,
4375
4401
  {
4376
4402
  ...props2,
4377
4403
  size,
@@ -4457,7 +4483,7 @@ function DateTimePicker({
4457
4483
  slots: {
4458
4484
  clearButton: (props2) => /* @__PURE__ */ jsx(ClearButton, { ...props2, size, variant }),
4459
4485
  openPickerButton: (props2) => /* @__PURE__ */ jsx(
4460
- IconButton,
4486
+ IconButton$1,
4461
4487
  {
4462
4488
  ...props2,
4463
4489
  size,
@@ -4477,7 +4503,7 @@ function DateTimePicker({
4477
4503
  );
4478
4504
  }
4479
4505
  const DEFAULT_ITEMS = [{ outlinedBullet: false, value: "" }];
4480
- const Content$1 = styled("ul")(({ theme }) => ({
4506
+ const Content$2 = styled("ul")(({ theme }) => ({
4481
4507
  listStyle: "none",
4482
4508
  paddingLeft: 0,
4483
4509
  margin: theme.spacing(0.5, 0, 0, 0)
@@ -4508,7 +4534,7 @@ function TooltipData({
4508
4534
  }) {
4509
4535
  return /* @__PURE__ */ jsxs(Fragment, { children: [
4510
4536
  title && /* @__PURE__ */ jsx(Typography, { color: "inherit", variant: "caption", weight: "medium", children: title }),
4511
- /* @__PURE__ */ jsx(Content$1, { children: items.map((item, index) => /* @__PURE__ */ jsxs(Entry, { children: [
4537
+ /* @__PURE__ */ jsx(Content$2, { children: items.map((item, index) => /* @__PURE__ */ jsxs(Entry, { children: [
4512
4538
  /* @__PURE__ */ jsx(
4513
4539
  Bullet,
4514
4540
  {
@@ -4812,7 +4838,7 @@ function _FilterDropdown({
4812
4838
  "data-color": buttonColor
4813
4839
  };
4814
4840
  return /* @__PURE__ */ jsxs(Fragment, { children: [
4815
- /* @__PURE__ */ jsx(Tooltip, { title: tooltipLabel, placement: tooltipPlacement, children: /* @__PURE__ */ jsx(ButtonWrapper, { isOpen, buttonColor, ref, children: isIcon ? /* @__PURE__ */ jsx(IconButton$1, { ...commonButtonProps, icon }) : /* @__PURE__ */ jsx(
4841
+ /* @__PURE__ */ jsx(Tooltip, { title: tooltipLabel, placement: tooltipPlacement, children: /* @__PURE__ */ jsx(ButtonWrapper, { isOpen, buttonColor, ref, children: isIcon ? /* @__PURE__ */ jsx(IconButton, { ...commonButtonProps, icon }) : /* @__PURE__ */ jsx(
4816
4842
  Button,
4817
4843
  {
4818
4844
  ...commonButtonProps,
@@ -4882,7 +4908,7 @@ const SnackbarRoot = styled(Snackbar$1)(({ theme }) => ({
4882
4908
  maxWidth: `${MAX_WIDTH}px`
4883
4909
  }
4884
4910
  }));
4885
- const Content = styled(Box, {
4911
+ const Content$1 = styled(Box, {
4886
4912
  shouldForwardProp: (prop) => prop !== "autoWidth"
4887
4913
  })(({ autoWidth, theme }) => ({
4888
4914
  minWidth: "100%",
@@ -4991,7 +5017,7 @@ function Snackbar({
4991
5017
  TransitionComponent: autoWidth ? Fade : Slide,
4992
5018
  "data-auto-width": autoWidth,
4993
5019
  children: /* @__PURE__ */ jsxs(
4994
- Content,
5020
+ Content$1,
4995
5021
  {
4996
5022
  sx: {
4997
5023
  position: "relative"
@@ -5012,7 +5038,7 @@ function Snackbar({
5012
5038
  }
5013
5039
  ),
5014
5040
  closeable && /* @__PURE__ */ jsx(CloseButtonWrapper, { children: /* @__PURE__ */ jsx(
5015
- IconButton$1,
5041
+ IconButton,
5016
5042
  {
5017
5043
  color: "default",
5018
5044
  onClick: (e) => onClose(e, "timeout"),
@@ -5140,6 +5166,7 @@ const TagRoot = styled("div", {
5140
5166
  padding: theme.spacing(0, 0.5),
5141
5167
  borderRadius: theme.spacing(0.25),
5142
5168
  gap: theme.spacing(0.5),
5169
+ maxWidth: "100%",
5143
5170
  height: theme.spacing(2),
5144
5171
  borderWidth: "1px",
5145
5172
  borderStyle: "solid",
@@ -5170,6 +5197,7 @@ const TagLabel = styled("div", {
5170
5197
  })(({ type, theme }) => ({
5171
5198
  display: "flex",
5172
5199
  alignItems: "center",
5200
+ ...ellipsisStyles,
5173
5201
  paddingTop: type === "code" ? theme.spacing(0.25) : void 0
5174
5202
  }));
5175
5203
  function _Tag({
@@ -5255,7 +5283,7 @@ function FilesAction({
5255
5283
  handleOpen,
5256
5284
  inProgress
5257
5285
  }) {
5258
- return /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: inProgress ? /* @__PURE__ */ jsx(IconButton, { "aria-label": "Loading", disabled: true, size, children: /* @__PURE__ */ jsx(CircularProgress, { size: 18 }) }) : !hasFiles ? /* @__PURE__ */ jsx(
5286
+ return /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: inProgress ? /* @__PURE__ */ jsx(IconButton$1, { "aria-label": "Loading", disabled: true, size, children: /* @__PURE__ */ jsx(CircularProgress, { size: 18 }) }) : !hasFiles ? /* @__PURE__ */ jsx(
5259
5287
  Button$1,
5260
5288
  {
5261
5289
  onClick: handleOpen,
@@ -5263,10 +5291,11 @@ function FilesAction({
5263
5291
  variant: "text",
5264
5292
  color: error ? "default" : "primary",
5265
5293
  disabled,
5294
+ "data-error": error,
5266
5295
  children: buttonText
5267
5296
  }
5268
5297
  ) : /* @__PURE__ */ jsx(
5269
- IconButton,
5298
+ IconButton$1,
5270
5299
  {
5271
5300
  onClick: handleReset,
5272
5301
  size,
@@ -5276,7 +5305,7 @@ function FilesAction({
5276
5305
  }
5277
5306
  ) });
5278
5307
  }
5279
- function UploadFieldBase({
5308
+ function _UploadFieldBase({
5280
5309
  name,
5281
5310
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5282
5311
  multiple,
@@ -5293,17 +5322,20 @@ function UploadFieldBase({
5293
5322
  size = "small",
5294
5323
  hasFiles,
5295
5324
  cursor = "pointer",
5325
+ "data-testid": dataTestId,
5296
5326
  ...props
5297
- }) {
5327
+ }, ref) {
5298
5328
  return /* @__PURE__ */ jsx(
5299
5329
  StyledUploadField,
5300
5330
  {
5301
5331
  ...props,
5332
+ ref,
5302
5333
  size,
5303
5334
  error,
5304
5335
  placeholder,
5305
5336
  focused: focused ?? dragOver,
5306
5337
  cursor,
5338
+ "data-testid": dataTestId,
5307
5339
  InputProps: {
5308
5340
  ...InputProps,
5309
5341
  name,
@@ -5323,10 +5355,14 @@ function UploadFieldBase({
5323
5355
  inProgress
5324
5356
  }
5325
5357
  )
5326
- }
5358
+ },
5359
+ "data-cursor": cursor,
5360
+ "data-drag-over": dragOver,
5361
+ "data-name": "upload-field-base"
5327
5362
  }
5328
5363
  );
5329
5364
  }
5365
+ const UploadFieldBase = forwardRef(_UploadFieldBase);
5330
5366
  function useFileUpload({
5331
5367
  onChange,
5332
5368
  files,
@@ -5388,6 +5424,7 @@ function useFileUpload({
5388
5424
  const handleReset = (event) => {
5389
5425
  event.stopPropagation();
5390
5426
  setFilesText("");
5427
+ onChange == null ? void 0 : onChange([]);
5391
5428
  };
5392
5429
  const getPlaceholder = useMemo(() => {
5393
5430
  const defaultPlaceholder = intlConfig.formatMessage(
@@ -5422,7 +5459,7 @@ function useFileUpload({
5422
5459
  };
5423
5460
  }
5424
5461
  const DEFAULT_ACCEPT = ["application/JSON"];
5425
- function UploadField({
5462
+ function _UploadField({
5426
5463
  name,
5427
5464
  buttonText,
5428
5465
  accept: _accept,
@@ -5434,8 +5471,9 @@ function UploadField({
5434
5471
  error,
5435
5472
  focused,
5436
5473
  nativeInputProps,
5474
+ "data-testid": dataTestId,
5437
5475
  ...props
5438
- }) {
5476
+ }, ref) {
5439
5477
  const accept = _accept ?? DEFAULT_ACCEPT;
5440
5478
  const uploadInputRef = useRef(null);
5441
5479
  const {
@@ -5457,6 +5495,7 @@ function UploadField({
5457
5495
  UploadFieldBase,
5458
5496
  {
5459
5497
  ...props,
5498
+ ref,
5460
5499
  placeholder: getPlaceholder,
5461
5500
  value: filesText,
5462
5501
  error,
@@ -5466,7 +5505,8 @@ function UploadField({
5466
5505
  inProgress,
5467
5506
  hasFiles: Boolean(filesText),
5468
5507
  InputProps: inputEvents,
5469
- buttonText
5508
+ buttonText,
5509
+ "data-testid": dataTestId
5470
5510
  }
5471
5511
  ),
5472
5512
  /* @__PURE__ */ jsx(
@@ -5485,6 +5525,150 @@ function UploadField({
5485
5525
  )
5486
5526
  ] });
5487
5527
  }
5528
+ const UploadField = forwardRef(_UploadField);
5529
+ const TooltipRoot = styled(Tooltip)(() => ({
5530
+ whiteSpace: "nowrap",
5531
+ maxWidth: 999,
5532
+ pointerEvents: "auto"
5533
+ }));
5534
+ const Content = styled("span", {
5535
+ shouldForwardProp: (prop) => !["ellipsisTarget", "lines", "content"].includes(prop)
5536
+ })(({ ellipsisTarget = "all", lines = 1, content = "block" }) => {
5537
+ if (lines > 1) {
5538
+ return {
5539
+ display: "-webkit-box",
5540
+ ...ellipsisStyles,
5541
+ whiteSpace: "initial !important",
5542
+ WebkitLineClamp: lines,
5543
+ WebkitBoxOrient: "vertical",
5544
+ "& > *": { display: "block" }
5545
+ };
5546
+ }
5547
+ if (ellipsisTarget === "first-child") {
5548
+ return {
5549
+ display: "flex",
5550
+ flex: "1",
5551
+ overflow: "hidden",
5552
+ "& > *:nth-of-type(1)": {
5553
+ display: "block",
5554
+ ...ellipsisStyles,
5555
+ marginRight: "-0.15em"
5556
+ // Prevent ellipsis separation
5557
+ }
5558
+ };
5559
+ }
5560
+ if (content === "flex") {
5561
+ return {
5562
+ display: "flex",
5563
+ flex: "1",
5564
+ "& > *": {
5565
+ display: "block",
5566
+ ...ellipsisStyles
5567
+ }
5568
+ };
5569
+ }
5570
+ return {
5571
+ display: "block",
5572
+ ...ellipsisStyles,
5573
+ fontWeight: "inherit",
5574
+ "& > *": { display: "inline" }
5575
+ };
5576
+ });
5577
+ function _EllipsisWithTooltip({
5578
+ children,
5579
+ tooltipText,
5580
+ alwaysShowTooltip,
5581
+ content = "block",
5582
+ textRef: inputTextRef,
5583
+ ellipsisTarget = "all",
5584
+ lines = 1,
5585
+ "aria-label": ariaLabel,
5586
+ contentProps,
5587
+ ...otherProps
5588
+ }, ref) {
5589
+ var _a;
5590
+ const textElementRef = useRef(null);
5591
+ const [overflowing, setOverflowing] = useState(false);
5592
+ const textRef = useMemo(
5593
+ () => inputTextRef || textElementRef,
5594
+ [inputTextRef, textElementRef]
5595
+ );
5596
+ const getTextContent = (node) => {
5597
+ if (typeof node === "string") return node;
5598
+ if (typeof node === "number") return String(node);
5599
+ if (React.isValidElement(node)) {
5600
+ const props = node.props;
5601
+ if (props.children) {
5602
+ return getTextContent(props.children);
5603
+ }
5604
+ }
5605
+ return "";
5606
+ };
5607
+ const elementTitle = tooltipText || ((_a = textElementRef.current) == null ? void 0 : _a.innerText) || (alwaysShowTooltip || overflowing ? getTextContent(children) : "");
5608
+ useEffect(() => {
5609
+ const container = textRef.current;
5610
+ if (!container || !children) return;
5611
+ if (alwaysShowTooltip) {
5612
+ setOverflowing(true);
5613
+ return;
5614
+ }
5615
+ let isOverflowing = false;
5616
+ if (lines > 1) {
5617
+ isOverflowing = container.scrollHeight > container.clientHeight;
5618
+ } else if (ellipsisTarget === "first-child") {
5619
+ const children2 = Array.from(container.children);
5620
+ const totalWidth = children2.reduce(
5621
+ (sum, child) => sum + ((child == null ? void 0 : child.scrollWidth) || 0),
5622
+ 0
5623
+ );
5624
+ isOverflowing = totalWidth > container.clientWidth;
5625
+ } else {
5626
+ const hasContainerOverflow = container.scrollWidth > container.clientWidth;
5627
+ const children2 = Array.from(container.children);
5628
+ const hasChildOverflow = children2.some(
5629
+ (child) => child.scrollWidth > child.clientWidth
5630
+ );
5631
+ isOverflowing = hasContainerOverflow || hasChildOverflow;
5632
+ }
5633
+ setOverflowing(isOverflowing);
5634
+ }, [textRef, alwaysShowTooltip, children, ellipsisTarget, lines, content]);
5635
+ useEffect(() => {
5636
+ if (typeof ref === "function") {
5637
+ ref(textElementRef.current);
5638
+ } else if (ref) {
5639
+ ref.current = textElementRef.current;
5640
+ }
5641
+ }, [ref]);
5642
+ return /* @__PURE__ */ jsx(
5643
+ TooltipRoot,
5644
+ {
5645
+ disableFocusListener: !overflowing && !alwaysShowTooltip,
5646
+ disableHoverListener: !overflowing && !alwaysShowTooltip,
5647
+ disableTouchListener: !overflowing && !alwaysShowTooltip,
5648
+ title: elementTitle,
5649
+ describeChild: true,
5650
+ ...otherProps,
5651
+ children: /* @__PURE__ */ jsx(
5652
+ Content,
5653
+ {
5654
+ "aria-label": ariaLabel ?? elementTitle,
5655
+ ref: textElementRef,
5656
+ ellipsisTarget,
5657
+ lines,
5658
+ content,
5659
+ "data-name": "ellipsis-with-tooltip",
5660
+ "data-overflowing": overflowing,
5661
+ "data-lines": lines,
5662
+ "data-content": content,
5663
+ "data-ellipsis-target": ellipsisTarget,
5664
+ ...contentProps,
5665
+ children
5666
+ }
5667
+ )
5668
+ }
5669
+ );
5670
+ }
5671
+ const EllipsisWithTooltip = forwardRef(_EllipsisWithTooltip);
5488
5672
  export {
5489
5673
  AUTOCOMPLETE_GROUP_HEADER_PROPERTY,
5490
5674
  AccordionGroup,
@@ -5519,9 +5703,10 @@ export {
5519
5703
  DialogHeader,
5520
5704
  DialogPaper,
5521
5705
  DialogStepper,
5706
+ EllipsisWithTooltip,
5522
5707
  FilterDropdown,
5523
5708
  FilterDropdownMenuItem,
5524
- IconButton$1 as IconButton,
5709
+ IconButton,
5525
5710
  LabelWithIndicator,
5526
5711
  L as Link,
5527
5712
  Menu,
@@ -5653,6 +5653,11 @@ function TablePaginationActions({
5653
5653
  )
5654
5654
  ] });
5655
5655
  }
5656
+ const ellipsisStyles = {
5657
+ textOverflow: "ellipsis",
5658
+ overflow: "hidden",
5659
+ whiteSpace: "nowrap"
5660
+ };
5656
5661
  export {
5657
5662
  APPBAR_SIZE as A,
5658
5663
  BREAKPOINTS as B,
@@ -5665,9 +5670,10 @@ export {
5665
5670
  ICON_SIZE_MEDIUM as b,
5666
5671
  ICON_SIZE_SMALL as c,
5667
5672
  MENU_LIST_MAX_SIZE as d,
5668
- MENU_ITEM_SIZE_DENSE as e,
5669
- MENU_ITEM_SIZE_EXTENDED as f,
5673
+ ellipsisStyles as e,
5674
+ MENU_ITEM_SIZE_DENSE as f,
5670
5675
  getSpacing as g,
5671
- getDefaultExportFromCjs as h,
5676
+ MENU_ITEM_SIZE_EXTENDED as h,
5677
+ getDefaultExportFromCjs as i,
5672
5678
  useImperativeIntl as u
5673
5679
  };
@@ -5654,6 +5654,11 @@ function TablePaginationActions({
5654
5654
  )
5655
5655
  ] });
5656
5656
  }
5657
+ const ellipsisStyles = {
5658
+ textOverflow: "ellipsis",
5659
+ overflow: "hidden",
5660
+ whiteSpace: "nowrap"
5661
+ };
5657
5662
  exports.APPBAR_SIZE = APPBAR_SIZE;
5658
5663
  exports.BREAKPOINTS = BREAKPOINTS;
5659
5664
  exports.ICON_SIZE_LARGE = ICON_SIZE_LARGE;
@@ -5667,6 +5672,7 @@ exports.NOTIFICATION_DURATION_IN_MS = NOTIFICATION_DURATION_IN_MS;
5667
5672
  exports.SPACING = SPACING;
5668
5673
  exports.TablePaginationActions = TablePaginationActions;
5669
5674
  exports.Typography = Typography;
5675
+ exports.ellipsisStyles = ellipsisStyles;
5670
5676
  exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
5671
5677
  exports.getSpacing = getSpacing;
5672
5678
  exports.useImperativeIntl = useImperativeIntl;