@carto/meridian-ds 2.5.4 → 2.5.5-alpha-ellipsis.1
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.
- package/CHANGELOG.md +9 -0
- package/dist/{Alert-BdmDjcVc.cjs → Alert-CaashKPj.cjs} +8 -8
- package/dist/{Alert-lLA0z7fX.js → Alert-wE4A0ify.js} +1 -1
- package/dist/{MenuItem-ZNdBUBvt.js → MenuItem-BUe4eJZH.js} +1 -1
- package/dist/{MenuItem-nokUtiks.cjs → MenuItem-BZWWJptW.cjs} +6 -6
- package/dist/components/index.cjs +289 -103
- package/dist/components/index.js +252 -66
- package/dist/{TablePaginationActions-C6TVGJM-.js → css-utils-CTJjJR0x.js} +9 -3
- package/dist/{TablePaginationActions-DAMGtIub.cjs → css-utils-W9dzgcXq.cjs} +6 -0
- package/dist/theme/index.cjs +109 -115
- package/dist/theme/index.js +9 -15
- package/dist/types/components/Autocomplete/Autocomplete/useAutocomplete.test.d.ts +2 -0
- package/dist/types/components/Autocomplete/Autocomplete/useAutocomplete.test.d.ts.map +1 -0
- package/dist/types/components/CodeArea/utils/useCodeAreaAutocompletion.test.d.ts +2 -0
- package/dist/types/components/CodeArea/utils/useCodeAreaAutocompletion.test.d.ts.map +1 -0
- package/dist/types/components/CopiableComponent/CopiableComponent.d.ts.map +1 -1
- package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts +1 -0
- package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts.map +1 -1
- package/dist/types/components/CopiableComponent/types.d.ts +2 -2
- package/dist/types/components/CopiableComponent/types.d.ts.map +1 -1
- package/dist/types/components/CopiableComponent/useCopyValue.d.ts +2 -2
- package/dist/types/components/CopiableComponent/useCopyValue.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateCalendar.stories.d.ts +34 -1
- package/dist/types/components/DatePickers/DateCalendar.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts +10 -0
- package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts +1 -0
- package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts.map +1 -1
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +117 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +66 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts +2 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/index.d.ts +3 -0
- package/dist/types/components/EllipsisWithTooltip/index.d.ts.map +1 -0
- package/dist/types/components/LabelWithIndicator/LabelWithIndicator.d.ts +6 -1
- package/dist/types/components/LabelWithIndicator/LabelWithIndicator.d.ts.map +1 -1
- package/dist/types/components/LabelWithIndicator/LabelWithIndicator.stories.d.ts +8 -2
- package/dist/types/components/LabelWithIndicator/LabelWithIndicator.stories.d.ts.map +1 -1
- package/dist/types/components/LabelWithIndicator/LabelWithIndicator.test.d.ts +2 -0
- package/dist/types/components/LabelWithIndicator/LabelWithIndicator.test.d.ts.map +1 -0
- package/dist/types/components/PasswordField/PasswordField.d.ts.map +1 -1
- package/dist/types/components/PasswordField/PasswordField.test.d.ts +2 -0
- package/dist/types/components/PasswordField/PasswordField.test.d.ts.map +1 -0
- package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts.map +1 -1
- package/dist/types/components/Tag/Tag.d.ts +176 -4
- package/dist/types/components/Tag/Tag.d.ts.map +1 -1
- package/dist/types/components/UploadField/FilesAction.d.ts +1 -2
- package/dist/types/components/UploadField/FilesAction.d.ts.map +1 -1
- package/dist/types/components/UploadField/FilesAction.test.d.ts +2 -0
- package/dist/types/components/UploadField/FilesAction.test.d.ts.map +1 -0
- package/dist/types/components/UploadField/UploadField.d.ts +3 -1
- package/dist/types/components/UploadField/UploadField.d.ts.map +1 -1
- package/dist/types/components/UploadField/UploadField.stories.d.ts +2 -2
- package/dist/types/components/UploadField/UploadField.stories.d.ts.map +1 -1
- package/dist/types/components/UploadField/{StyledUploadField.d.ts → UploadField.styled.d.ts} +1 -1
- package/dist/types/components/UploadField/UploadField.styled.d.ts.map +1 -0
- package/dist/types/components/UploadField/UploadField.test.d.ts +2 -0
- package/dist/types/components/UploadField/UploadField.test.d.ts.map +1 -0
- package/dist/types/components/UploadField/UploadFieldBase.d.ts +3 -2
- package/dist/types/components/UploadField/UploadFieldBase.d.ts.map +1 -1
- package/dist/types/components/UploadField/UploadFieldBase.test.d.ts +2 -0
- package/dist/types/components/UploadField/UploadFieldBase.test.d.ts.map +1 -0
- package/dist/types/components/UploadField/useFileUpload.d.ts.map +1 -1
- package/dist/types/components/UploadField/useFileUpload.test.d.ts +2 -0
- package/dist/types/components/UploadField/useFileUpload.test.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/theme/carto-theme.d.ts.map +1 -1
- package/dist/types/theme/components/forms.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Progress.stories.d.ts +8 -0
- package/dist/types/theme/components/stories/Progress.stories.d.ts.map +1 -1
- package/dist/types/theme/{helpers/css-baseline.d.ts.map → css-baseline.d.ts.map} +1 -1
- package/dist/types/theme/index.d.ts +2 -2
- package/dist/types/theme/index.d.ts.map +1 -1
- package/dist/types/utils/{animationUtils.d.ts → animation-utils.d.ts} +1 -1
- package/dist/types/utils/animation-utils.d.ts.map +1 -0
- package/dist/types/utils/animation-utils.test.d.ts +2 -0
- package/dist/types/utils/animation-utils.test.d.ts.map +1 -0
- package/dist/types/utils/{chartConstants.d.ts → chart-constants.d.ts} +1 -1
- package/dist/types/utils/chart-constants.d.ts.map +1 -0
- package/dist/types/utils/css-utils.d.ts +14 -0
- package/dist/types/utils/css-utils.d.ts.map +1 -0
- package/dist/types/utils/{detectTouchScreen.d.ts → detect-touch-screen.d.ts} +1 -1
- package/dist/types/utils/detect-touch-screen.d.ts.map +1 -0
- package/dist/types/utils/detect-touch-screen.test.d.ts +2 -0
- package/dist/types/utils/detect-touch-screen.test.d.ts.map +1 -0
- package/dist/types/utils/{formatterUtils.d.ts → formatter-utils.d.ts} +1 -1
- package/dist/types/utils/formatter-utils.d.ts.map +1 -0
- package/dist/types/utils/formatter-utils.test.d.ts +2 -0
- package/dist/types/utils/formatter-utils.test.d.ts.map +1 -0
- package/dist/types/utils/{legendUtils.d.ts → legend-utils.d.ts} +1 -1
- package/dist/types/utils/legend-utils.d.ts.map +1 -0
- package/dist/types/utils/{localeUtils.d.ts → locale-utils.d.ts} +1 -1
- package/dist/types/utils/locale-utils.d.ts.map +1 -0
- package/dist/types/utils/locale-utils.test.d.ts +2 -0
- package/dist/types/utils/locale-utils.test.d.ts.map +1 -0
- package/dist/types/utils/{paletteUtils.d.ts → palette-utils.d.ts} +2 -2
- package/dist/types/utils/palette-utils.d.ts.map +1 -0
- package/dist/types/utils/palette-utils.test.d.ts +2 -0
- package/dist/types/utils/palette-utils.test.d.ts.map +1 -0
- package/dist/types/utils/theme-constants.d.ts.map +1 -0
- package/dist/types/utils/theme-utils.d.ts.map +1 -0
- package/dist/types/utils/theme-utils.test.d.ts +2 -0
- package/dist/types/utils/theme-utils.test.d.ts.map +1 -0
- package/dist/types/utils/{uniqueId.d.ts → unique-id.d.ts} +1 -1
- package/dist/types/utils/unique-id.d.ts.map +1 -0
- package/dist/types/utils/unique-id.test.d.ts +2 -0
- package/dist/types/utils/unique-id.test.d.ts.map +1 -0
- package/dist/types/widgets/BarWidgetUI/BarWidgetUI.d.ts +1 -1
- package/dist/types/widgets/BarWidgetUI/BarWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/BarWidgetUI/useProcessedProps.d.ts +1 -1
- package/dist/types/widgets/BarWidgetUI/useProcessedProps.d.ts.map +1 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts +2 -2
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.d.ts +1 -1
- package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.d.ts +1 -1
- package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts +2 -2
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts +1 -1
- package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts.map +1 -1
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.d.ts +1 -1
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesContext.d.ts +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesContext.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.stories.d.ts +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.stories.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesControls.d.ts +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesControls.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/index.d.ts +4 -4
- package/dist/types/widgets/TimeSeriesWidgetUI/index.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/{timeSeriesUtils.d.ts → utils/time-series-utils.d.ts} +3 -3
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.d.ts.map +1 -0
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.test.d.ts +2 -0
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.test.d.ts.map +1 -0
- package/dist/types/widgets/TimeSeriesWidgetUI/{useTimeSeriesInteractivity.d.ts → utils/useTimeSeriesInteractivity.d.ts} +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/useTimeSeriesInteractivity.d.ts.map +1 -0
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.d.ts +1 -1
- package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/index.d.ts +1 -1
- package/dist/types/widgets/index.d.ts.map +1 -1
- package/dist/types/widgets/legend/LegendLayer.d.ts +1 -1
- package/dist/types/widgets/legend/LegendLayer.d.ts.map +1 -1
- package/dist/types/widgets/legend/LegendLayerVariable.d.ts +1 -1
- package/dist/types/widgets/legend/LegendLayerVariable.d.ts.map +1 -1
- package/dist/types/widgets/legend/LegendWidgetUI.d.ts +1 -1
- package/dist/types/widgets/legend/LegendWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/legend/index.d.ts +2 -2
- package/dist/types/widgets/legend/index.d.ts.map +1 -1
- package/dist/types/widgets/legend/legend-types/LegendCategories.d.ts +1 -1
- package/dist/types/widgets/legend/legend-types/LegendCategories.d.ts.map +1 -1
- package/dist/types/widgets/legend/legend-types/LegendIcon.d.ts +1 -1
- package/dist/types/widgets/legend/legend-types/LegendIcon.d.ts.map +1 -1
- package/dist/types/widgets/legend/legend-types/LegendProportion.d.ts +1 -1
- package/dist/types/widgets/legend/legend-types/LegendProportion.d.ts.map +1 -1
- package/dist/types/widgets/legend/legend-types/LegendRamp.d.ts +1 -1
- package/dist/types/widgets/legend/legend-types/LegendRamp.d.ts.map +1 -1
- package/dist/types/widgets/legend/legendFixtures.d.ts +1 -1
- package/dist/types/widgets/legend/legendFixtures.d.ts.map +1 -1
- package/dist/widgets/index.cjs +113 -118
- package/dist/widgets/index.js +5 -10
- package/package.json +1 -1
- package/dist/types/components/UploadField/StyledUploadField.d.ts.map +0 -1
- package/dist/types/theme/helpers/theme-constants.d.ts.map +0 -1
- package/dist/types/theme/helpers/theme-utils.d.ts.map +0 -1
- package/dist/types/utils/animationUtils.d.ts.map +0 -1
- package/dist/types/utils/chartConstants.d.ts.map +0 -1
- package/dist/types/utils/detectTouchScreen.d.ts.map +0 -1
- package/dist/types/utils/detectTouchScreen.test.d.ts +0 -2
- package/dist/types/utils/detectTouchScreen.test.d.ts.map +0 -1
- package/dist/types/utils/formatterUtils.d.ts.map +0 -1
- package/dist/types/utils/formatterUtils.test.d.ts +0 -2
- package/dist/types/utils/formatterUtils.test.d.ts.map +0 -1
- package/dist/types/utils/legendUtils.d.ts.map +0 -1
- package/dist/types/utils/localeUtils.d.ts.map +0 -1
- package/dist/types/utils/localeUtils.test.d.ts +0 -2
- package/dist/types/utils/localeUtils.test.d.ts.map +0 -1
- package/dist/types/utils/paletteUtils.d.ts.map +0 -1
- package/dist/types/utils/uniqueId.d.ts.map +0 -1
- package/dist/types/utils/uniqueId.test.d.ts +0 -2
- package/dist/types/utils/uniqueId.test.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.test.d.ts +0 -2
- package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.test.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/useTimeSeriesInteractivity.d.ts.map +0 -1
- /package/dist/{paletteUtils-B9ybmwiI.cjs → palette-utils-B9ybmwiI.cjs} +0 -0
- /package/dist/{paletteUtils-BHqJlHm9.js → palette-utils-BHqJlHm9.js} +0 -0
- /package/dist/types/theme/{helpers/css-baseline.d.ts → css-baseline.d.ts} +0 -0
- /package/dist/types/{theme/helpers → utils}/theme-constants.d.ts +0 -0
- /package/dist/types/{theme/helpers → utils}/theme-utils.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- New EllipsisWithTooltip component [#299](https://github.com/CartoDB/meridian-ds/pull/299)
|
|
6
|
+
|
|
5
7
|
## 2.0
|
|
6
8
|
|
|
9
|
+
### 2.5.5
|
|
10
|
+
|
|
11
|
+
- Utils files: rename to kebab-case for better naming convention [#291](https://github.com/CartoDB/meridian-ds/pull/291)
|
|
12
|
+
- Add unit tests for utils and hooks [#285](https://github.com/CartoDB/meridian-ds/pull/285)
|
|
13
|
+
- Add unit tests for field components [#287](https://github.com/CartoDB/meridian-ds/pull/287)
|
|
14
|
+
- Support `copyText={null}` in `CopiableComponent` [#296](https://github.com/CartoDB/meridian-ds/pull/296)
|
|
15
|
+
|
|
7
16
|
### 2.5.4
|
|
8
17
|
|
|
9
18
|
- Custom Icons: BulletPointAlt,BulletPointCheckedAlt,ShowNodeResults [#288](https://github.com/CartoDB/meridian-ds/pull/288)
|
|
@@ -4,7 +4,7 @@ const React = require("react");
|
|
|
4
4
|
const material = require("@mui/material");
|
|
5
5
|
const reactIntl = require("react-intl");
|
|
6
6
|
const iconsMaterial = require("@mui/icons-material");
|
|
7
|
-
const
|
|
7
|
+
const cssUtils = require("./css-utils-W9dzgcXq.cjs");
|
|
8
8
|
require("cartocolor");
|
|
9
9
|
const ScreenReaderOnly = material.styled("span")(() => ({
|
|
10
10
|
position: "absolute",
|
|
@@ -94,7 +94,7 @@ const Icon = material.styled("span", {
|
|
|
94
94
|
},
|
|
95
95
|
svg: {
|
|
96
96
|
// Size adapts to the text size, but make sure the icon size is at least 12px
|
|
97
|
-
fontSize: `max(1em, ${
|
|
97
|
+
fontSize: `max(1em, ${cssUtils.ICON_SIZE_SMALL})`,
|
|
98
98
|
color: "inherit !important",
|
|
99
99
|
"> path": {
|
|
100
100
|
color: "inherit !important"
|
|
@@ -105,7 +105,7 @@ const Icon = material.styled("span", {
|
|
|
105
105
|
top: "calc(1em * 1/5)",
|
|
106
106
|
// 20% offset ratio
|
|
107
107
|
svg: {
|
|
108
|
-
fontSize:
|
|
108
|
+
fontSize: cssUtils.ICON_SIZE_SMALL
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
// Button and body2 variants use medium-sized icons
|
|
@@ -113,7 +113,7 @@ const Icon = material.styled("span", {
|
|
|
113
113
|
top: "calc(1em * 1/4)",
|
|
114
114
|
// 25% offset ratio
|
|
115
115
|
svg: {
|
|
116
|
-
fontSize:
|
|
116
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
// Body1 variant uses large icons
|
|
@@ -121,7 +121,7 @@ const Icon = material.styled("span", {
|
|
|
121
121
|
top: "calc(1em * 1/3)",
|
|
122
122
|
// 33% offset ratio
|
|
123
123
|
svg: {
|
|
124
|
-
fontSize:
|
|
124
|
+
fontSize: cssUtils.ICON_SIZE_LARGE
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
})
|
|
@@ -141,7 +141,7 @@ function _Link({
|
|
|
141
141
|
...otherProps
|
|
142
142
|
}, ref) {
|
|
143
143
|
const intl = reactIntl.useIntl();
|
|
144
|
-
const intlConfig =
|
|
144
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
145
145
|
const isButtonLink = otherProps.component === "button";
|
|
146
146
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
147
147
|
StyledLink,
|
|
@@ -196,7 +196,7 @@ const StyledAlert = material.styled(material.Alert, {
|
|
|
196
196
|
"icon message"
|
|
197
197
|
"icon actions"
|
|
198
198
|
`,
|
|
199
|
-
gridTemplateColumns: hasCloseButton ? `${
|
|
199
|
+
gridTemplateColumns: hasCloseButton ? `${cssUtils.ICON_SIZE_MEDIUM} 1fr ${theme.spacing(3)}` : `${cssUtils.ICON_SIZE_MEDIUM}`
|
|
200
200
|
},
|
|
201
201
|
...isNeutral && {
|
|
202
202
|
backgroundColor: theme.palette.default.background,
|
|
@@ -290,7 +290,7 @@ function _Alert({
|
|
|
290
290
|
...otherProps,
|
|
291
291
|
children: [
|
|
292
292
|
title && /* @__PURE__ */ jsxRuntime.jsx(material.AlertTitle, { children: title }),
|
|
293
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
293
|
+
/* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", color: "inherit", component: "div", children })
|
|
294
294
|
]
|
|
295
295
|
}
|
|
296
296
|
) });
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useState } from "react";
|
|
|
3
3
|
import { styled, IconButton as IconButton$1, Tooltip, CircularProgress, Link as Link$1, Alert as Alert$1, Fade, AlertTitle } from "@mui/material";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { OpenInNewOutlined } from "@mui/icons-material";
|
|
6
|
-
import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, I as ICON_SIZE_LARGE, u as useImperativeIntl, T as Typography } from "./
|
|
6
|
+
import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, I as ICON_SIZE_LARGE, u as useImperativeIntl, T as Typography } from "./css-utils-CTJjJR0x.js";
|
|
7
7
|
import "cartocolor";
|
|
8
8
|
const ScreenReaderOnly = styled("span")(() => ({
|
|
9
9
|
position: "absolute",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { styled, MenuItem as MenuItem$1 } from "@mui/material";
|
|
4
|
-
import {
|
|
4
|
+
import { f as MENU_ITEM_SIZE_DENSE, h as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-CTJjJR0x.js";
|
|
5
5
|
const StyledMenuItem = styled(MenuItem$1, {
|
|
6
6
|
shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
7
7
|
prop
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const material = require("@mui/material");
|
|
5
|
-
const
|
|
5
|
+
const cssUtils = require("./css-utils-W9dzgcXq.cjs");
|
|
6
6
|
const StyledMenuItem = material.styled(material.MenuItem, {
|
|
7
7
|
shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
8
8
|
prop
|
|
@@ -29,7 +29,7 @@ const StyledMenuItem = material.styled(material.MenuItem, {
|
|
|
29
29
|
color: theme.palette.text.secondary
|
|
30
30
|
},
|
|
31
31
|
"&.MuiMenuItem-root": {
|
|
32
|
-
minHeight:
|
|
32
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_DENSE,
|
|
33
33
|
paddingTop: 0,
|
|
34
34
|
paddingBottom: 0,
|
|
35
35
|
marginTop: theme.spacing(1),
|
|
@@ -96,7 +96,7 @@ const StyledMenuItem = material.styled(material.MenuItem, {
|
|
|
96
96
|
},
|
|
97
97
|
...extended && {
|
|
98
98
|
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
99
|
-
minHeight:
|
|
99
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
...fixed && {
|
|
@@ -107,14 +107,14 @@ const StyledMenuItem = material.styled(material.MenuItem, {
|
|
|
107
107
|
bottom: 0,
|
|
108
108
|
right: 0,
|
|
109
109
|
zIndex: 2,
|
|
110
|
-
minHeight:
|
|
110
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED,
|
|
111
111
|
marginBottom: theme.spacing(1),
|
|
112
112
|
padding: theme.spacing(0.5, 1.5),
|
|
113
113
|
backgroundColor: `${theme.palette.background.paper} !important`,
|
|
114
114
|
borderBottom: `1px solid ${theme.palette.divider}`
|
|
115
115
|
},
|
|
116
116
|
".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {
|
|
117
|
-
minHeight:
|
|
117
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED,
|
|
118
118
|
marginTop: 0,
|
|
119
119
|
"&:hover": {
|
|
120
120
|
backgroundColor: theme.palette.background.paper
|
|
@@ -128,7 +128,7 @@ const StyledMenuItem = material.styled(material.MenuItem, {
|
|
|
128
128
|
},
|
|
129
129
|
...dense && {
|
|
130
130
|
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
131
|
-
minHeight:
|
|
131
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_DENSE,
|
|
132
132
|
padding: theme.spacing(0.25, 1.5)
|
|
133
133
|
}
|
|
134
134
|
}
|