@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
@@ -5,11 +5,11 @@ const React = require("react");
5
5
  const reactIntl = require("react-intl");
6
6
  const material = require("@mui/material");
7
7
  const iconsMaterial = require("@mui/icons-material");
8
- const TablePaginationActions = require("../TablePaginationActions-DAMGtIub.cjs");
9
- const Alert$1 = require("../Alert-BdmDjcVc.cjs");
8
+ const cssUtils = require("../css-utils-W9dzgcXq.cjs");
9
+ const Alert$1 = require("../Alert-CaashKPj.cjs");
10
10
  const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
11
11
  const OpenDiagonallyRight = require("../OpenDiagonallyRight-CpL4ROwg.cjs");
12
- const MenuItem = require("../MenuItem-nokUtiks.cjs");
12
+ const MenuItem = require("../MenuItem-BZWWJptW.cjs");
13
13
  require("cartocolor");
14
14
  const reactWindow = require("react-window");
15
15
  const reactCodemirror2 = require("react-codemirror2");
@@ -69,7 +69,7 @@ function _Button({
69
69
  ...otherProps
70
70
  }, ref) {
71
71
  const intl = reactIntl.useIntl();
72
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
72
+ const intlConfig = cssUtils.useImperativeIntl(intl);
73
73
  const defaultIconLoader = /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" });
74
74
  const isDefaultLoading = loading && loadingPosition === void 0;
75
75
  const isExternalLink = otherProps.href && external;
@@ -120,7 +120,7 @@ function _Button({
120
120
  },
121
121
  ref,
122
122
  "aria-describedby": isExternalLink ? "external-hint" : ariaDescribedby,
123
- children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "inherit", color: "inherit", noWrap: true, component: "span", children: renderContent() })
123
+ children: /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "inherit", color: "inherit", noWrap: true, component: "span", children: renderContent() })
124
124
  }
125
125
  );
126
126
  }
@@ -226,7 +226,7 @@ const Root$5 = material.styled(material.Box)(({ theme }) => ({
226
226
  alignItems: "center",
227
227
  gap: theme.spacing(0.5)
228
228
  }));
229
- const Indicator = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
229
+ const Indicator = material.styled(cssUtils.Typography)(({ theme }) => ({
230
230
  ".Mui-disabled &": {
231
231
  color: theme.palette.text.disabled
232
232
  }
@@ -234,9 +234,9 @@ const Indicator = material.styled(TablePaginationActions.Typography)(({ theme })
234
234
  const Icon = material.styled(material.Box)(({ theme }) => ({
235
235
  display: "flex",
236
236
  svg: {
237
- width: TablePaginationActions.ICON_SIZE_SMALL,
238
- height: TablePaginationActions.ICON_SIZE_SMALL,
239
- fontSize: TablePaginationActions.ICON_SIZE_SMALL,
237
+ width: cssUtils.ICON_SIZE_SMALL,
238
+ height: cssUtils.ICON_SIZE_SMALL,
239
+ fontSize: cssUtils.ICON_SIZE_SMALL,
240
240
  path: {
241
241
  fill: theme.palette.text.secondary,
242
242
  ".Mui-disabled &": {
@@ -245,32 +245,50 @@ const Icon = material.styled(material.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__ */ jsxRuntime.jsxs(Root$5, { children: [
255
- label,
256
- type && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(Icon, { children: icon })
267
- ] });
252
+ inheritSize,
253
+ "data-testid": dataTestId,
254
+ "aria-label": ariaLabel,
255
+ typographyProps
256
+ }, ref) {
257
+ return /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.jsx(Icon, { children: icon })
279
+ ]
280
+ }
281
+ );
268
282
  }
269
- function _PasswordField({ InputProps, size = "small", ...otherProps }, ref) {
283
+ const LabelWithIndicator = React.forwardRef(_LabelWithIndicator);
284
+ function _PasswordField({ InputProps, size = "small", disabled, ...otherProps }, ref) {
270
285
  const intl = reactIntl.useIntl();
271
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
286
+ const intlConfig = cssUtils.useImperativeIntl(intl);
272
287
  const [showPassword, setShowPassword] = React.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__ */ jsxRuntime.jsx(
275
293
  material.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__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size, onClick: handleClickShowPassword, children: /* @__PURE__ */ jsxRuntime.jsx(
284
- material.Tooltip,
302
+ inputProps: {
303
+ ...InputProps == null ? void 0 : InputProps.inputProps,
304
+ role: "textbox"
305
+ },
306
+ endAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
307
+ Alert$1.IconButton,
285
308
  {
286
- title: intlConfig.formatMessage({
287
- id: `c4r.form.${showPassword ? "hidePassword" : "showPassword"}`
288
- }),
289
- children: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.VisibilityOffOutlined, {}) : /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.VisibilityOutlined, {})
309
+ size,
310
+ disabled,
311
+ onClick: handleClickShowPassword,
312
+ icon: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.VisibilityOffOutlined, {}) : /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.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
  }
@@ -394,7 +420,7 @@ function _SelectField({
394
420
  },
395
421
  children: [
396
422
  placeholder && /* @__PURE__ */ jsxRuntime.jsx(PlaceholderItem, { disabled: true, value: "", children: /* @__PURE__ */ jsxRuntime.jsx(
397
- TablePaginationActions.Typography,
423
+ cssUtils.Typography,
398
424
  {
399
425
  variant: isSmall ? "body2" : "body1",
400
426
  color: "text.hint",
@@ -499,7 +525,7 @@ function _MenuItemFilter({
499
525
  "data-testid": dataTestId
500
526
  }, ref) {
501
527
  const intl = reactIntl.useIntl();
502
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
528
+ const intlConfig = cssUtils.useImperativeIntl(intl);
503
529
  return /* @__PURE__ */ jsxRuntime.jsx(
504
530
  StyledMenuItem$1,
505
531
  {
@@ -591,14 +617,14 @@ function _MultipleSelectField({
591
617
  const isSmall = size === "small";
592
618
  const paddingSize = isSmall || variant === "standard" ? 0 : 2;
593
619
  const intl = reactIntl.useIntl();
594
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
620
+ const intlConfig = cssUtils.useImperativeIntl(intl);
595
621
  const counterText = `${currentOptions.length} ${intlConfig.formatMessage({
596
622
  id: "c4r.form.selected"
597
623
  })}`;
598
624
  const renderValue = React.useMemo(() => {
599
625
  if (areAllSelected) {
600
626
  return /* @__PURE__ */ jsxRuntime.jsx(
601
- TablePaginationActions.Typography,
627
+ cssUtils.Typography,
602
628
  {
603
629
  component: "span",
604
630
  variant: isSmall ? "body2" : "body1",
@@ -610,7 +636,7 @@ function _MultipleSelectField({
610
636
  }
611
637
  if (areAnySelected) {
612
638
  return /* @__PURE__ */ jsxRuntime.jsx(
613
- TablePaginationActions.Typography,
639
+ cssUtils.Typography,
614
640
  {
615
641
  component: "span",
616
642
  variant: isSmall ? "body2" : "body1",
@@ -621,7 +647,7 @@ function _MultipleSelectField({
621
647
  );
622
648
  }
623
649
  return /* @__PURE__ */ jsxRuntime.jsx(
624
- TablePaginationActions.Typography,
650
+ cssUtils.Typography,
625
651
  {
626
652
  component: "span",
627
653
  variant: isSmall ? "body2" : "body1",
@@ -840,8 +866,8 @@ const _CopiableComponent = ({
840
866
  }, ref) => {
841
867
  const [open, setOpen] = React.useState(false);
842
868
  const intl = reactIntl.useIntl();
843
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
844
- const copyTooltipText = copyText || intlConfig.formatMessage({ id: "c4r.button.copy" });
869
+ const intlConfig = cssUtils.useImperativeIntl(intl);
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
  });
@@ -877,7 +903,7 @@ const _CopiableComponent = ({
877
903
  disabled,
878
904
  icon: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.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
  }
@@ -941,7 +967,7 @@ function _CopiableInputText({
941
967
  ...rest
942
968
  }, ref) {
943
969
  const intl = reactIntl.useIntl();
944
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
970
+ const intlConfig = cssUtils.useImperativeIntl(intl);
945
971
  const [showText, setShowText] = React.useState(false);
946
972
  const [isInputFocused, setIsInputFocused] = React.useState(false);
947
973
  const inputType = !password ? "text" : showText ? "text" : "password";
@@ -1042,7 +1068,7 @@ function createCounterRenderTags({
1042
1068
  getOptionLabel
1043
1069
  });
1044
1070
  return /* @__PURE__ */ jsxRuntime.jsx(
1045
- TablePaginationActions.Typography,
1071
+ cssUtils.Typography,
1046
1072
  {
1047
1073
  variant: size === "small" ? "body2" : "body1",
1048
1074
  component: "span",
@@ -1211,7 +1237,7 @@ function useAutocompleteRenderOption() {
1211
1237
  title
1212
1238
  ),
1213
1239
  secondaryText && /* @__PURE__ */ jsxRuntime.jsx(
1214
- TablePaginationActions.Typography,
1240
+ cssUtils.Typography,
1215
1241
  {
1216
1242
  component: "p",
1217
1243
  variant: "caption",
@@ -1235,7 +1261,7 @@ function useCreatableAutocomplete({
1235
1261
  multiple
1236
1262
  }) {
1237
1263
  const intl = reactIntl.useIntl();
1238
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
1264
+ const intlConfig = cssUtils.useImperativeIntl(intl);
1239
1265
  const filter = material.createFilterOptions();
1240
1266
  const { renderOption: autocompleteRenderOption } = useAutocompleteRenderOption();
1241
1267
  const creatableFilterOptions = (options, params) => {
@@ -1300,7 +1326,7 @@ function useMultipleAutocomplete({
1300
1326
  allSelectedText
1301
1327
  }) {
1302
1328
  const intl = reactIntl.useIntl();
1303
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
1329
+ const intlConfig = cssUtils.useImperativeIntl(intl);
1304
1330
  const defaultCounterText = counterText || intlConfig.formatMessage({ id: "c4r.form.selected" });
1305
1331
  const defaultAllSelectedText = allSelectedText || intlConfig.formatMessage({ id: "c4r.form.allSelected" });
1306
1332
  const [multipleValue, setMultipleValue] = React.useState(
@@ -1378,8 +1404,8 @@ const List = material.styled("ul")(
1378
1404
  const ItemWrapper = material.styled("div")(({ style, theme, isSubtitle, isExtended, isMultiple }) => {
1379
1405
  const getSubtitleStyles = () => {
1380
1406
  const baseStyles = {
1381
- height: TablePaginationActions.MENU_ITEM_SIZE_DENSE,
1382
- minHeight: TablePaginationActions.MENU_ITEM_SIZE_DENSE,
1407
+ height: cssUtils.MENU_ITEM_SIZE_DENSE,
1408
+ minHeight: cssUtils.MENU_ITEM_SIZE_DENSE,
1383
1409
  marginTop: `${theme.spacing(1)} !important`,
1384
1410
  alignItems: "flex-end",
1385
1411
  ...theme.typography.caption,
@@ -1436,7 +1462,7 @@ function _AutocompleteList({
1436
1462
  multiple,
1437
1463
  extended,
1438
1464
  itemHeight,
1439
- maxListHeight = TablePaginationActions.MENU_LIST_MAX_SIZE,
1465
+ maxListHeight = cssUtils.MENU_LIST_MAX_SIZE,
1440
1466
  ...otherProps
1441
1467
  }, ref) {
1442
1468
  const childrenArray = React.useMemo(() => {
@@ -1458,9 +1484,9 @@ function _AutocompleteList({
1458
1484
  };
1459
1485
  });
1460
1486
  }, [children, multiple]);
1461
- const defaultItemHeight = itemHeight ?? (extended ? TablePaginationActions.MENU_ITEM_SIZE_EXTENDED : TablePaginationActions.MENU_ITEM_SIZE_DEFAULT);
1487
+ const defaultItemHeight = itemHeight ?? (extended ? cssUtils.MENU_ITEM_SIZE_EXTENDED : cssUtils.MENU_ITEM_SIZE_DEFAULT);
1462
1488
  const listboxHeight = React.useMemo(() => {
1463
- const filterHeight = showFilters && multiple ? TablePaginationActions.MENU_ITEM_SIZE_EXTENDED : 0;
1489
+ const filterHeight = showFilters && multiple ? cssUtils.MENU_ITEM_SIZE_EXTENDED : 0;
1464
1490
  const availableHeight = maxListHeight - filterHeight;
1465
1491
  const calculatedHeight = Math.min(
1466
1492
  childrenArray.length * defaultItemHeight,
@@ -1726,7 +1752,7 @@ function useAutocomplete({
1726
1752
  const Menu$1 = material.styled("div")(({ theme }) => ({
1727
1753
  display: "flex",
1728
1754
  alignItems: "center",
1729
- height: TablePaginationActions.APPBAR_SIZE,
1755
+ height: cssUtils.APPBAR_SIZE,
1730
1756
  marginRight: theme.spacing(1.5)
1731
1757
  }));
1732
1758
  const MenuButton = material.styled(material.IconButton)(({ theme }) => ({
@@ -1772,7 +1798,7 @@ const Logo = material.styled("div")(({ theme }) => ({
1772
1798
  function BrandLogo({ logo }) {
1773
1799
  return /* @__PURE__ */ jsxRuntime.jsx(Logo, { children: logo });
1774
1800
  }
1775
- const Text$1 = material.styled(TablePaginationActions.Typography)({
1801
+ const Text$1 = material.styled(cssUtils.Typography)({
1776
1802
  display: "flex",
1777
1803
  alignItems: "center",
1778
1804
  whiteSpace: "nowrap"
@@ -1789,7 +1815,7 @@ function BrandText({ text }) {
1789
1815
  }
1790
1816
  );
1791
1817
  }
1792
- const Text = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
1818
+ const Text = material.styled(cssUtils.Typography)(({ theme }) => ({
1793
1819
  display: "flex",
1794
1820
  alignItems: "center",
1795
1821
  "&::before": {
@@ -1830,7 +1856,7 @@ const BrandElements = material.styled("div")(({ theme }) => ({
1830
1856
  minWidth: "192px"
1831
1857
  }
1832
1858
  }));
1833
- const Content$4 = material.styled("div")(({ theme }) => ({
1859
+ const Content$5 = material.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__ */ jsxRuntime.jsx(BrandText, { text: brandText }),
1854
1880
  secondaryText && /* @__PURE__ */ jsxRuntime.jsx(SecondaryText, { text: secondaryText })
1855
1881
  ] }),
1856
- /* @__PURE__ */ jsxRuntime.jsx(Content$4, { children })
1882
+ /* @__PURE__ */ jsxRuntime.jsx(Content$5, { children })
1857
1883
  ] }) });
1858
1884
  }
1859
1885
  const Footer = material.styled(material.Box, {
@@ -1887,7 +1913,7 @@ function CodeAreaFooter({
1887
1913
  ...props
1888
1914
  }) {
1889
1915
  const intl = reactIntl.useIntl();
1890
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
1916
+ const intlConfig = cssUtils.useImperativeIntl(intl);
1891
1917
  if (!onClickFooter) return null;
1892
1918
  return /* @__PURE__ */ jsxRuntime.jsxs(
1893
1919
  Footer,
@@ -1945,7 +1971,7 @@ function CodeAreaHeader({
1945
1971
  size
1946
1972
  }) {
1947
1973
  const intl = reactIntl.useIntl();
1948
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
1974
+ const intlConfig = cssUtils.useImperativeIntl(intl);
1949
1975
  const showExpandButton = !!onClickExpand;
1950
1976
  const showCopyButton = copyValue !== void 0;
1951
1977
  const showMenu = showExpandButton && showCopyButton;
@@ -2660,8 +2686,8 @@ const InputWrapper = material.styled(material.Box, {
2660
2686
  }
2661
2687
  }));
2662
2688
  const HelpIcon = material.styled(iconsMaterial.HelpOutline)(({ theme }) => ({
2663
- width: TablePaginationActions.ICON_SIZE_SMALL,
2664
- height: TablePaginationActions.ICON_SIZE_SMALL,
2689
+ width: cssUtils.ICON_SIZE_SMALL,
2690
+ height: cssUtils.ICON_SIZE_SMALL,
2665
2691
  fill: theme.palette.text.secondary
2666
2692
  }));
2667
2693
  function CodeAreaField({
@@ -3097,13 +3123,13 @@ function DialogHeader({
3097
3123
  ...otherProps
3098
3124
  }) {
3099
3125
  const intl = reactIntl.useIntl();
3100
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
3126
+ const intlConfig = cssUtils.useImperativeIntl(intl);
3101
3127
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3102
3128
  /* @__PURE__ */ jsxRuntime.jsxs(DialogTitle, { component: "div", "data-name": "dialog-header", ...otherProps, children: [
3103
3129
  /* @__PURE__ */ jsxRuntime.jsxs(Main$1, { children: [
3104
3130
  /* @__PURE__ */ jsxRuntime.jsxs(ItemsWrapper$1, { flex: 1, maxWidth: 0.8, children: [
3105
3131
  /* @__PURE__ */ jsxRuntime.jsx(
3106
- TablePaginationActions.Typography,
3132
+ cssUtils.Typography,
3107
3133
  {
3108
3134
  component: "h2",
3109
3135
  variant: "inherit",
@@ -3132,7 +3158,7 @@ function DialogHeader({
3132
3158
  children && /* @__PURE__ */ jsxRuntime.jsx(DividerBottom, {})
3133
3159
  ] });
3134
3160
  }
3135
- const Content$3 = material.styled(material.DialogContent, {
3161
+ const Content$4 = material.styled(material.DialogContent, {
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__ */ jsxRuntime.jsx(
3212
- Content$3,
3238
+ Content$4,
3213
3239
  {
3214
3240
  ref: setContentRef,
3215
3241
  onScroll: handleScroll,
@@ -3501,14 +3527,14 @@ function DialogStepper({
3501
3527
  "data-state": isCompleted ? "completed" : isCurrent ? "current" : "uncompleted",
3502
3528
  children: [
3503
3529
  /* @__PURE__ */ jsxRuntime.jsx(StepNumber, { completed: isCompleted, current: isCurrent, children: isCompleted ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.Check, { fontSize: "small", "aria-label": "Completed step" }) : step }),
3504
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", component: "div", color: labelColor, children: stepLabel })
3530
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", component: "div", color: labelColor, children: stepLabel })
3505
3531
  ]
3506
3532
  },
3507
3533
  idx
3508
3534
  );
3509
3535
  }) }) });
3510
3536
  }
3511
- const Content$2 = material.styled(DialogContent, {
3537
+ const Content$3 = material.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__ */ jsxRuntime.jsx(Content$2, { withGutter, error, withBorder, children });
3566
+ return /* @__PURE__ */ jsxRuntime.jsx(Content$3, { withGutter, error, withBorder, children });
3541
3567
  }
3542
3568
  function CodeAreaDialogConfirmation({
3543
3569
  onClose,
@@ -3551,7 +3577,7 @@ function CodeAreaDialogConfirmation({
3551
3577
  content
3552
3578
  }) {
3553
3579
  const intl = reactIntl.useIntl();
3554
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
3580
+ const intlConfig = cssUtils.useImperativeIntl(intl);
3555
3581
  if (!onClose || !onCancel) {
3556
3582
  return null;
3557
3583
  }
@@ -3752,7 +3778,7 @@ function ClearButton({
3752
3778
  ...props
3753
3779
  }) {
3754
3780
  const intl = reactIntl.useIntl();
3755
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
3781
+ const intlConfig = cssUtils.useImperativeIntl(intl);
3756
3782
  return /* @__PURE__ */ jsxRuntime.jsx(Container, { size, variant, children: /* @__PURE__ */ jsxRuntime.jsx(
3757
3783
  material.IconButton,
3758
3784
  {
@@ -3825,7 +3851,7 @@ function DatePicker({
3825
3851
  ...props
3826
3852
  }) {
3827
3853
  const intl = reactIntl.useIntl();
3828
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
3854
+ const intlConfig = cssUtils.useImperativeIntl(intl);
3829
3855
  return (
3830
3856
  // Don't remove className, it's used for styling
3831
3857
  /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -4113,7 +4139,7 @@ function DateRangePicker({
4113
4139
  ...props
4114
4140
  }) {
4115
4141
  const intl = reactIntl.useIntl();
4116
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
4142
+ const intlConfig = cssUtils.useImperativeIntl(intl);
4117
4143
  const [isEndDateOpen, setIsEndDateOpen] = React.useState(false);
4118
4144
  const [isStartDateOpen, setIsStartDateOpen] = React.useState(false);
4119
4145
  const [startDate, setStartDate] = React.useState(
@@ -4301,7 +4327,7 @@ function TimePicker({
4301
4327
  ...props
4302
4328
  }) {
4303
4329
  const intl = reactIntl.useIntl();
4304
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
4330
+ const intlConfig = cssUtils.useImperativeIntl(intl);
4305
4331
  const inputRef = React.useRef(null);
4306
4332
  const [inputWidth, setInputWidth] = React.useState(0);
4307
4333
  React.useEffect(() => {
@@ -4412,7 +4438,7 @@ function DateTimePicker({
4412
4438
  ...props
4413
4439
  }) {
4414
4440
  const intl = reactIntl.useIntl();
4415
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
4441
+ const intlConfig = cssUtils.useImperativeIntl(intl);
4416
4442
  return /* @__PURE__ */ jsxRuntime.jsx(
4417
4443
  DateFieldContainer,
4418
4444
  {
@@ -4477,7 +4503,7 @@ function DateTimePicker({
4477
4503
  );
4478
4504
  }
4479
4505
  const DEFAULT_ITEMS = [{ outlinedBullet: false, value: "" }];
4480
- const Content$1 = material.styled("ul")(({ theme }) => ({
4506
+ const Content$2 = material.styled("ul")(({ theme }) => ({
4481
4507
  listStyle: "none",
4482
4508
  paddingLeft: 0,
4483
4509
  margin: theme.spacing(0.5, 0, 0, 0)
@@ -4498,7 +4524,7 @@ const Bullet = material.styled("span")(({ theme }) => ({
4498
4524
  borderRadius: "50%",
4499
4525
  backgroundColor: theme.palette.qualitative.bold[1]
4500
4526
  }));
4501
- const Category = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
4527
+ const Category = material.styled(cssUtils.Typography)(({ theme }) => ({
4502
4528
  minWidth: theme.spacing(10),
4503
4529
  marginRight: theme.spacing(1.5)
4504
4530
  }));
@@ -4507,8 +4533,8 @@ function TooltipData({
4507
4533
  title
4508
4534
  }) {
4509
4535
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4510
- title && /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { color: "inherit", variant: "caption", weight: "medium", children: title }),
4511
- /* @__PURE__ */ jsxRuntime.jsx(Content$1, { children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(Entry, { children: [
4536
+ title && /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { color: "inherit", variant: "caption", weight: "medium", children: title }),
4537
+ /* @__PURE__ */ jsxRuntime.jsx(Content$2, { children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(Entry, { children: [
4512
4538
  /* @__PURE__ */ jsxRuntime.jsx(
4513
4539
  Bullet,
4514
4540
  {
@@ -4519,7 +4545,7 @@ function TooltipData({
4519
4545
  }
4520
4546
  ),
4521
4547
  item.category && /* @__PURE__ */ jsxRuntime.jsx(Category, { color: "inherit", variant: "caption", children: item.category }),
4522
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { color: "inherit", variant: "caption", weight: "medium", children: item.value })
4548
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { color: "inherit", variant: "caption", weight: "medium", children: item.value })
4523
4549
  ] }, index)) })
4524
4550
  ] });
4525
4551
  }
@@ -4582,8 +4608,8 @@ const StyledAvatar = material.styled(material.Avatar, {
4582
4608
  ...theme.typography.caption,
4583
4609
  fontWeight: 500,
4584
4610
  svg: {
4585
- width: TablePaginationActions.ICON_SIZE_SMALL,
4586
- height: TablePaginationActions.ICON_SIZE_SMALL
4611
+ width: cssUtils.ICON_SIZE_SMALL,
4612
+ height: cssUtils.ICON_SIZE_SMALL
4587
4613
  }
4588
4614
  },
4589
4615
  ...disabled && {
@@ -4598,7 +4624,7 @@ const StyledMenu = material.styled(material.Menu, {
4598
4624
  })(({ extended, width, height }) => ({
4599
4625
  ...extended && {
4600
4626
  ".MuiMenuItem-root": {
4601
- minHeight: TablePaginationActions.MENU_ITEM_SIZE_EXTENDED
4627
+ minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED
4602
4628
  }
4603
4629
  },
4604
4630
  ...width && {
@@ -4641,7 +4667,7 @@ const StyledMenuList = material.styled(material.MenuList, {
4641
4667
  })(({ extended, width, height }) => ({
4642
4668
  ...extended && {
4643
4669
  ".MuiMenuItem-root": {
4644
- minHeight: TablePaginationActions.MENU_ITEM_SIZE_EXTENDED
4670
+ minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED
4645
4671
  }
4646
4672
  },
4647
4673
  "&.MuiList-root": {
@@ -4882,7 +4908,7 @@ const SnackbarRoot = material.styled(material.Snackbar)(({ theme }) => ({
4882
4908
  maxWidth: `${MAX_WIDTH}px`
4883
4909
  }
4884
4910
  }));
4885
- const Content = material.styled(material.Box, {
4911
+ const Content$1 = material.styled(material.Box, {
4886
4912
  shouldForwardProp: (prop) => prop !== "autoWidth"
4887
4913
  })(({ autoWidth, theme }) => ({
4888
4914
  minWidth: "100%",
@@ -4964,7 +4990,7 @@ const CloseButtonWrapper = material.styled(material.Box)(({ theme }) => ({
4964
4990
  }));
4965
4991
  function Snackbar({
4966
4992
  severity = "neutral",
4967
- autoHideDuration = TablePaginationActions.NOTIFICATION_DURATION_IN_MS,
4993
+ autoHideDuration = cssUtils.NOTIFICATION_DURATION_IN_MS,
4968
4994
  closeable = true,
4969
4995
  children,
4970
4996
  title,
@@ -4976,11 +5002,11 @@ function Snackbar({
4976
5002
  ...rest
4977
5003
  }) {
4978
5004
  const intl = reactIntl.useIntl();
4979
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
5005
+ const intlConfig = cssUtils.useImperativeIntl(intl);
4980
5006
  const isNeutral = severity === "neutral";
4981
5007
  const disabledIcon = icon === false || isNeutral && !icon;
4982
5008
  const disabledAutoHide = autoHideDuration === null;
4983
- const duration = disabledAutoHide ? null : autoHideDuration || TablePaginationActions.NOTIFICATION_DURATION_IN_MS;
5009
+ const duration = disabledAutoHide ? null : autoHideDuration || cssUtils.NOTIFICATION_DURATION_IN_MS;
4984
5010
  return /* @__PURE__ */ jsxRuntime.jsx(material.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
4985
5011
  SnackbarRoot,
4986
5012
  {
@@ -4991,7 +5017,7 @@ function Snackbar({
4991
5017
  TransitionComponent: autoWidth ? material.Fade : material.Slide,
4992
5018
  "data-auto-width": autoWidth,
4993
5019
  children: /* @__PURE__ */ jsxRuntime.jsxs(
4994
- Content,
5020
+ Content$1,
4995
5021
  {
4996
5022
  sx: {
4997
5023
  position: "relative"
@@ -5140,6 +5166,7 @@ const TagRoot = material.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",
@@ -5158,8 +5185,8 @@ const TagIcon = material.styled("div")(({ theme }) => ({
5158
5185
  justifyContent: "center",
5159
5186
  alignItems: "center",
5160
5187
  "& svg": {
5161
- width: theme.spacing(TablePaginationActions.ICON_SIZE_SMALL),
5162
- height: theme.spacing(TablePaginationActions.ICON_SIZE_SMALL),
5188
+ width: theme.spacing(cssUtils.ICON_SIZE_SMALL),
5189
+ height: theme.spacing(cssUtils.ICON_SIZE_SMALL),
5163
5190
  "& g": {
5164
5191
  fill: "currentColor"
5165
5192
  }
@@ -5170,6 +5197,7 @@ const TagLabel = material.styled("div", {
5170
5197
  })(({ type, theme }) => ({
5171
5198
  display: "flex",
5172
5199
  alignItems: "center",
5200
+ ...cssUtils.ellipsisStyles,
5173
5201
  paddingTop: type === "code" ? theme.spacing(0.25) : void 0
5174
5202
  }));
5175
5203
  function _Tag({
@@ -5201,7 +5229,7 @@ function _Tag({
5201
5229
  children: [
5202
5230
  icon && /* @__PURE__ */ jsxRuntime.jsx(TagIcon, { children: icon }),
5203
5231
  /* @__PURE__ */ jsxRuntime.jsx(TagLabel, { type, children: /* @__PURE__ */ jsxRuntime.jsx(
5204
- TablePaginationActions.Typography,
5232
+ cssUtils.Typography,
5205
5233
  {
5206
5234
  component: "span",
5207
5235
  color: "inherit",
@@ -5263,6 +5291,7 @@ 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__ */ jsxRuntime.jsx(
@@ -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__ */ jsxRuntime.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 = React.forwardRef(_UploadFieldBase);
5330
5366
  function useFileUpload({
5331
5367
  onChange,
5332
5368
  files,
@@ -5335,7 +5371,7 @@ function useFileUpload({
5335
5371
  uploadInputRef
5336
5372
  }) {
5337
5373
  const intl = reactIntl.useIntl();
5338
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
5374
+ const intlConfig = cssUtils.useImperativeIntl(intl);
5339
5375
  const [filesText, setFilesText] = React.useState("");
5340
5376
  const [dragOver, setDragOver] = React.useState(false);
5341
5377
  React.useEffect(() => {
@@ -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 = React.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 = React.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__ */ jsxRuntime.jsx(
@@ -5485,8 +5525,152 @@ function UploadField({
5485
5525
  )
5486
5526
  ] });
5487
5527
  }
5488
- exports.TablePaginationActions = TablePaginationActions.TablePaginationActions;
5489
- exports.Typography = TablePaginationActions.Typography;
5528
+ const UploadField = React.forwardRef(_UploadField);
5529
+ const TooltipRoot = material.styled(material.Tooltip)(() => ({
5530
+ whiteSpace: "nowrap",
5531
+ maxWidth: 999,
5532
+ pointerEvents: "auto"
5533
+ }));
5534
+ const Content = material.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
+ ...cssUtils.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
+ ...cssUtils.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
+ ...cssUtils.ellipsisStyles
5567
+ }
5568
+ };
5569
+ }
5570
+ return {
5571
+ display: "block",
5572
+ ...cssUtils.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 = React.useRef(null);
5591
+ const [overflowing, setOverflowing] = React.useState(false);
5592
+ const textRef = React.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
+ React.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
+ React.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__ */ jsxRuntime.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__ */ jsxRuntime.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 = React.forwardRef(_EllipsisWithTooltip);
5672
+ exports.TablePaginationActions = cssUtils.TablePaginationActions;
5673
+ exports.Typography = cssUtils.Typography;
5490
5674
  exports.Alert = Alert$1.Alert;
5491
5675
  exports.IconButton = Alert$1.IconButton;
5492
5676
  exports.Link = Alert$1.Link;
@@ -5524,6 +5708,7 @@ exports.DialogFooter = DialogFooter;
5524
5708
  exports.DialogHeader = DialogHeader;
5525
5709
  exports.DialogPaper = DialogPaper;
5526
5710
  exports.DialogStepper = DialogStepper;
5711
+ exports.EllipsisWithTooltip = EllipsisWithTooltip;
5527
5712
  exports.FilterDropdown = FilterDropdown;
5528
5713
  exports.FilterDropdownMenuItem = FilterDropdownMenuItem;
5529
5714
  exports.LabelWithIndicator = LabelWithIndicator;