@carto/meridian-ds 2.15.2-alpha.c8f0dfb.212 → 2.16.0
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 +6 -3
- package/dist/components/index.cjs +22 -51
- package/dist/components/index.js +23 -52
- package/dist/custom-icons/index.cjs +1854 -1414
- package/dist/custom-icons/index.js +1854 -1414
- package/dist/theme/index.cjs +19 -1
- package/dist/theme/index.js +19 -1
- package/dist/types/components/AccordionGroup/AccordionGroup.stories.d.ts +0 -13
- package/dist/types/components/AccordionGroup/AccordionGroup.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts +0 -12
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts +1 -24
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts +2 -56
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/ChipGroup/ChipGroup.stories.d.ts +3 -82
- package/dist/types/components/ChipGroup/ChipGroup.stories.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeArea.stories.d.ts +53 -34
- package/dist/types/components/CodeArea/CodeArea.stories.d.ts.map +1 -1
- package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts +0 -1
- package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts.map +1 -1
- package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts +1 -40
- package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateCalendar.stories.d.ts +0 -18
- package/dist/types/components/DatePickers/DateCalendar.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts +0 -10
- package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts +0 -15
- package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts +0 -12
- package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts +0 -9
- package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts +1 -52
- package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts +0 -19
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts.map +1 -1
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +3 -36
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -1
- package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts +1 -12
- package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts.map +1 -1
- package/dist/types/components/IconButton/IconButton.stories.d.ts +0 -63
- package/dist/types/components/IconButton/IconButton.stories.d.ts.map +1 -1
- package/dist/types/components/MessageField/MessageField.stories.d.ts +0 -10
- package/dist/types/components/MessageField/MessageField.stories.d.ts.map +1 -1
- package/dist/types/components/PasswordField/PasswordField.stories.d.ts +0 -14
- package/dist/types/components/PasswordField/PasswordField.stories.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.stories.d.ts +0 -7
- package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -1
- package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts +0 -52
- package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts.map +1 -1
- package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts +0 -24
- package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts.map +1 -1
- package/dist/types/components/Snackbar/Snackbar.stories.d.ts +4 -20
- package/dist/types/components/Snackbar/Snackbar.stories.d.ts.map +1 -1
- package/dist/types/components/SplitButton/SplitButton.d.ts +1 -6
- package/dist/types/components/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/types/components/SplitButton/SplitButton.stories.d.ts +0 -27
- package/dist/types/components/SplitButton/SplitButton.stories.d.ts.map +1 -1
- package/dist/types/components/TablePaginationActions/TablePaginationActions.stories.d.ts +0 -7
- package/dist/types/components/TablePaginationActions/TablePaginationActions.stories.d.ts.map +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +0 -30
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts.map +1 -1
- package/dist/types/components/UploadField/UploadField.stories.d.ts +1 -25
- package/dist/types/components/UploadField/UploadField.stories.d.ts.map +1 -1
- package/dist/types/custom-icons/LayerTypeCluster.d.ts +4 -0
- package/dist/types/custom-icons/LayerTypeCluster.d.ts.map +1 -0
- package/dist/types/custom-icons/LayerTypeH3.d.ts +4 -0
- package/dist/types/custom-icons/LayerTypeH3.d.ts.map +1 -0
- package/dist/types/custom-icons/LayerTypeHeatmap.d.ts +4 -0
- package/dist/types/custom-icons/LayerTypeHeatmap.d.ts.map +1 -0
- package/dist/types/custom-icons/LayerTypeLine.d.ts +4 -0
- package/dist/types/custom-icons/LayerTypeLine.d.ts.map +1 -0
- package/dist/types/custom-icons/LayerTypePoint.d.ts +4 -0
- package/dist/types/custom-icons/LayerTypePoint.d.ts.map +1 -0
- package/dist/types/custom-icons/LayerTypePolygon.d.ts +4 -0
- package/dist/types/custom-icons/LayerTypePolygon.d.ts.map +1 -0
- package/dist/types/custom-icons/LayersGroup.d.ts +4 -0
- package/dist/types/custom-icons/LayersGroup.d.ts.map +1 -0
- package/dist/types/custom-icons/SelectFeature.d.ts.map +1 -1
- package/dist/types/custom-icons/ShortcutMap.d.ts +4 -0
- package/dist/types/custom-icons/ShortcutMap.d.ts.map +1 -0
- package/dist/types/custom-icons/ShortcutWorkflow.d.ts +4 -0
- package/dist/types/custom-icons/ShortcutWorkflow.d.ts.map +1 -0
- package/dist/types/custom-icons/StarredLayer.d.ts +4 -0
- package/dist/types/custom-icons/StarredLayer.d.ts.map +1 -0
- package/dist/types/custom-icons/StrokeDot.d.ts +4 -0
- package/dist/types/custom-icons/StrokeDot.d.ts.map +1 -0
- package/dist/types/custom-icons/VisibilityOffByGroup.d.ts +4 -0
- package/dist/types/custom-icons/VisibilityOffByGroup.d.ts.map +1 -0
- package/dist/types/custom-icons/XLogo.d.ts +4 -0
- package/dist/types/custom-icons/XLogo.d.ts.map +1 -0
- package/dist/types/custom-icons/__docs__/CustomIcons.stories.d.ts +1 -1
- package/dist/types/custom-icons/index.d.ts +13 -0
- package/dist/types/custom-icons/index.d.ts.map +1 -1
- package/dist/types/theme/components/Slider.test.d.ts +2 -0
- package/dist/types/theme/components/Slider.test.d.ts.map +1 -0
- package/dist/types/theme/components/forms.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Slider.stories.d.ts +66 -3
- package/dist/types/theme/components/stories/Slider.stories.d.ts.map +1 -1
- package/package.json +21 -26
package/CHANGELOG.md
CHANGED
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 2.0
|
|
6
|
+
|
|
7
|
+
### 2.16.0
|
|
8
|
+
|
|
9
|
+
- feat(design system): restyle Slider marks as a thin vertical break in the rail (replacing the default MUI dot), so passing `marks={[{ value }]}` on a range slider acts as a "stop indicator" for a reference value (e.g. a "base size") — visible across both filled and unfilled portions of the track. Applies to all marks; labels still position correctly underneath
|
|
5
10
|
- Feat: add `markLine` prop to `TimeSeriesWidgetUI` for custom reference lines [#409](https://github.com/CartoDB/meridian-ds/pull/409)
|
|
6
11
|
- Chore: remove redundant prepublish lifecycle hook [#404](https://github.com/CartoDB/meridian-ds/pull/404)
|
|
7
12
|
- Test: fill unit testing gaps [#401](https://github.com/CartoDB/meridian-ds/pull/401)
|
|
8
13
|
- Storybook: add pseudo-states addon for CSS state testing and extend `PseudoHover`/`PseudoFocusVisible` coverage across components [#406](https://github.com/CartoDB/meridian-ds/pull/406)
|
|
9
14
|
- Fix: add missing padding on date picker calendar header `labelContainer` to match the design spec [#406](https://github.com/CartoDB/meridian-ds/pull/406)
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
## 2.0
|
|
15
|
+
- Add new custom icons: LayerTypeCluster, LayerTypeH3, LayerTypeHeatmap, LayerTypeLine, LayerTypePoint, LayerTypePolygon, LayersGroup, ShortcutMap, ShortcutWorkflow, StarredLayer, StrokeDot, VisibilityOffByGroup, XLogo, and update SelectFeature [#413](https://github.com/CartoDB/meridian-ds/pull/413)
|
|
13
16
|
|
|
14
17
|
### 2.15.1
|
|
15
18
|
|
|
@@ -144,17 +144,6 @@ function _Button({
|
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
const Button = React.forwardRef(_Button);
|
|
147
|
-
const idCounter = {};
|
|
148
|
-
function uniqueId(prefix = "$lodash$") {
|
|
149
|
-
if (!idCounter[prefix]) {
|
|
150
|
-
idCounter[prefix] = 0;
|
|
151
|
-
}
|
|
152
|
-
const id = ++idCounter[prefix];
|
|
153
|
-
if (prefix === "$lodash$") {
|
|
154
|
-
return `${id}`;
|
|
155
|
-
}
|
|
156
|
-
return `${prefix}${id}`;
|
|
157
|
-
}
|
|
158
147
|
const ButtonGroup = material.styled(material.ButtonGroup)(({ theme, size }) => ({
|
|
159
148
|
"& .MuiButton-root:last-child": {
|
|
160
149
|
padding: 0,
|
|
@@ -171,17 +160,9 @@ function SplitButton({
|
|
|
171
160
|
size,
|
|
172
161
|
color,
|
|
173
162
|
defaultOpen,
|
|
174
|
-
toggleAriaLabel,
|
|
175
163
|
...otherProps
|
|
176
164
|
}) {
|
|
177
165
|
var _a;
|
|
178
|
-
const toggleLabel = paletteUtils.useTranslationWithFallback(
|
|
179
|
-
"c4r.button.showOptions",
|
|
180
|
-
toggleAriaLabel
|
|
181
|
-
);
|
|
182
|
-
const [baseId] = React.useState(() => uniqueId("split-button-"));
|
|
183
|
-
const toggleId = `${baseId}-toggle`;
|
|
184
|
-
const menuId = `${baseId}-menu`;
|
|
185
166
|
const [open, setOpen] = React.useState(defaultOpen ?? false);
|
|
186
167
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
187
168
|
const [selectedIndex, setSelectedIndex] = React.useState(0);
|
|
@@ -224,19 +205,7 @@ function SplitButton({
|
|
|
224
205
|
children: (_a = options[selectedIndex]) == null ? void 0 : _a.label
|
|
225
206
|
}
|
|
226
207
|
),
|
|
227
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
228
|
-
Button,
|
|
229
|
-
{
|
|
230
|
-
id: toggleId,
|
|
231
|
-
disabled: loading || disabled,
|
|
232
|
-
onClick: handleToggle,
|
|
233
|
-
"aria-label": toggleLabel,
|
|
234
|
-
"aria-haspopup": "menu",
|
|
235
|
-
"aria-expanded": open,
|
|
236
|
-
"aria-controls": open ? menuId : void 0,
|
|
237
|
-
children: open ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {})
|
|
238
|
-
}
|
|
239
|
-
) }) })
|
|
208
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { disabled: loading || disabled, onClick: handleToggle, children: open ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}) })
|
|
240
209
|
]
|
|
241
210
|
}
|
|
242
211
|
),
|
|
@@ -244,7 +213,7 @@ function SplitButton({
|
|
|
244
213
|
material.Popper,
|
|
245
214
|
{
|
|
246
215
|
sx: { zIndex: 1 },
|
|
247
|
-
open
|
|
216
|
+
open,
|
|
248
217
|
anchorEl,
|
|
249
218
|
role: void 0,
|
|
250
219
|
transition: true,
|
|
@@ -257,25 +226,16 @@ function SplitButton({
|
|
|
257
226
|
style: {
|
|
258
227
|
transformOrigin: placement === "bottom" ? "center top" : "center bottom"
|
|
259
228
|
},
|
|
260
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(material.Paper, { elevation: 8, children: /* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
261
|
-
material.
|
|
229
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(material.Paper, { elevation: 8, children: /* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxRuntime.jsx(material.MenuList, { autoFocusItem: menuAutoFocus, sx: { paddingY: 1 }, children: options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
+
material.MenuItem,
|
|
262
231
|
{
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
disabled: option.disabled,
|
|
271
|
-
selected: index === selectedIndex,
|
|
272
|
-
onClick: (event) => handleMenuItemClick(event, index),
|
|
273
|
-
children: option.label
|
|
274
|
-
},
|
|
275
|
-
option.label
|
|
276
|
-
))
|
|
277
|
-
}
|
|
278
|
-
) }) })
|
|
232
|
+
disabled: option.disabled,
|
|
233
|
+
selected: index === selectedIndex,
|
|
234
|
+
onClick: (event) => handleMenuItemClick(event, index),
|
|
235
|
+
children: option.label
|
|
236
|
+
},
|
|
237
|
+
option.label
|
|
238
|
+
)) }) }) })
|
|
279
239
|
}
|
|
280
240
|
)
|
|
281
241
|
}
|
|
@@ -393,6 +353,17 @@ function _PasswordField({
|
|
|
393
353
|
);
|
|
394
354
|
}
|
|
395
355
|
const PasswordField = React.forwardRef(_PasswordField);
|
|
356
|
+
const idCounter = {};
|
|
357
|
+
function uniqueId(prefix = "$lodash$") {
|
|
358
|
+
if (!idCounter[prefix]) {
|
|
359
|
+
idCounter[prefix] = 0;
|
|
360
|
+
}
|
|
361
|
+
const id = ++idCounter[prefix];
|
|
362
|
+
if (prefix === "$lodash$") {
|
|
363
|
+
return `${id}`;
|
|
364
|
+
}
|
|
365
|
+
return `${prefix}${id}`;
|
|
366
|
+
}
|
|
396
367
|
const StyledSelect = material.styled(material.Select)(({ theme }) => ({
|
|
397
368
|
"& .MuiInputAdornment-positionStart": {
|
|
398
369
|
paddingLeft: theme.spacing(2),
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { styled, Box, Button as Button$1, CircularProgress as CircularProgress$1,
|
|
3
|
+
import { styled, Box, Button as Button$1, CircularProgress as CircularProgress$1, 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 as ListItemText$1, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon as ListItemIcon$1, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar as Toolbar$1, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip as Chip$1, 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, ListSubheader as ListSubheader$1, Typography as Typography$1, Popover } from "@mui/material";
|
|
4
4
|
import { ListItemAvatar, ListItemSecondaryAction } from "@mui/material";
|
|
5
5
|
import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, ArrowBackOutlined, Check, TodayOutlined, StopCircleOutlined, ArrowUpwardOutlined } from "@mui/icons-material";
|
|
6
6
|
import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, o as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, l as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, p as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles, r as resolvePalettePath } from "../palette-utils-gZwK5wCD.js";
|
|
@@ -128,17 +128,6 @@ function _Button({
|
|
|
128
128
|
);
|
|
129
129
|
}
|
|
130
130
|
const Button = forwardRef(_Button);
|
|
131
|
-
const idCounter = {};
|
|
132
|
-
function uniqueId(prefix = "$lodash$") {
|
|
133
|
-
if (!idCounter[prefix]) {
|
|
134
|
-
idCounter[prefix] = 0;
|
|
135
|
-
}
|
|
136
|
-
const id = ++idCounter[prefix];
|
|
137
|
-
if (prefix === "$lodash$") {
|
|
138
|
-
return `${id}`;
|
|
139
|
-
}
|
|
140
|
-
return `${prefix}${id}`;
|
|
141
|
-
}
|
|
142
131
|
const ButtonGroup = styled(ButtonGroup$1)(({ theme, size }) => ({
|
|
143
132
|
"& .MuiButton-root:last-child": {
|
|
144
133
|
padding: 0,
|
|
@@ -155,17 +144,9 @@ function SplitButton({
|
|
|
155
144
|
size,
|
|
156
145
|
color,
|
|
157
146
|
defaultOpen,
|
|
158
|
-
toggleAriaLabel,
|
|
159
147
|
...otherProps
|
|
160
148
|
}) {
|
|
161
149
|
var _a;
|
|
162
|
-
const toggleLabel = useTranslationWithFallback(
|
|
163
|
-
"c4r.button.showOptions",
|
|
164
|
-
toggleAriaLabel
|
|
165
|
-
);
|
|
166
|
-
const [baseId] = useState(() => uniqueId("split-button-"));
|
|
167
|
-
const toggleId = `${baseId}-toggle`;
|
|
168
|
-
const menuId = `${baseId}-menu`;
|
|
169
150
|
const [open, setOpen] = useState(defaultOpen ?? false);
|
|
170
151
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
171
152
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
@@ -208,19 +189,7 @@ function SplitButton({
|
|
|
208
189
|
children: (_a = options[selectedIndex]) == null ? void 0 : _a.label
|
|
209
190
|
}
|
|
210
191
|
),
|
|
211
|
-
/* @__PURE__ */ jsx(
|
|
212
|
-
Button,
|
|
213
|
-
{
|
|
214
|
-
id: toggleId,
|
|
215
|
-
disabled: loading || disabled,
|
|
216
|
-
onClick: handleToggle,
|
|
217
|
-
"aria-label": toggleLabel,
|
|
218
|
-
"aria-haspopup": "menu",
|
|
219
|
-
"aria-expanded": open,
|
|
220
|
-
"aria-controls": open ? menuId : void 0,
|
|
221
|
-
children: open ? /* @__PURE__ */ jsx(ForwardedComponent, {}) : /* @__PURE__ */ jsx(ForwardedComponent$1, {})
|
|
222
|
-
}
|
|
223
|
-
) }) })
|
|
192
|
+
/* @__PURE__ */ jsx(Button, { disabled: loading || disabled, onClick: handleToggle, children: open ? /* @__PURE__ */ jsx(ForwardedComponent, {}) : /* @__PURE__ */ jsx(ForwardedComponent$1, {}) })
|
|
224
193
|
]
|
|
225
194
|
}
|
|
226
195
|
),
|
|
@@ -228,7 +197,7 @@ function SplitButton({
|
|
|
228
197
|
Popper,
|
|
229
198
|
{
|
|
230
199
|
sx: { zIndex: 1 },
|
|
231
|
-
open
|
|
200
|
+
open,
|
|
232
201
|
anchorEl,
|
|
233
202
|
role: void 0,
|
|
234
203
|
transition: true,
|
|
@@ -241,25 +210,16 @@ function SplitButton({
|
|
|
241
210
|
style: {
|
|
242
211
|
transformOrigin: placement === "bottom" ? "center top" : "center bottom"
|
|
243
212
|
},
|
|
244
|
-
children: /* @__PURE__ */ jsx(Paper, { elevation: 8, children: /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsx(
|
|
245
|
-
|
|
213
|
+
children: /* @__PURE__ */ jsx(Paper, { elevation: 8, children: /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsx(MenuList$1, { autoFocusItem: menuAutoFocus, sx: { paddingY: 1 }, children: options.map((option, index) => /* @__PURE__ */ jsx(
|
|
214
|
+
MenuItem,
|
|
246
215
|
{
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
disabled: option.disabled,
|
|
255
|
-
selected: index === selectedIndex,
|
|
256
|
-
onClick: (event) => handleMenuItemClick(event, index),
|
|
257
|
-
children: option.label
|
|
258
|
-
},
|
|
259
|
-
option.label
|
|
260
|
-
))
|
|
261
|
-
}
|
|
262
|
-
) }) })
|
|
216
|
+
disabled: option.disabled,
|
|
217
|
+
selected: index === selectedIndex,
|
|
218
|
+
onClick: (event) => handleMenuItemClick(event, index),
|
|
219
|
+
children: option.label
|
|
220
|
+
},
|
|
221
|
+
option.label
|
|
222
|
+
)) }) }) })
|
|
263
223
|
}
|
|
264
224
|
)
|
|
265
225
|
}
|
|
@@ -377,6 +337,17 @@ function _PasswordField({
|
|
|
377
337
|
);
|
|
378
338
|
}
|
|
379
339
|
const PasswordField = forwardRef(_PasswordField);
|
|
340
|
+
const idCounter = {};
|
|
341
|
+
function uniqueId(prefix = "$lodash$") {
|
|
342
|
+
if (!idCounter[prefix]) {
|
|
343
|
+
idCounter[prefix] = 0;
|
|
344
|
+
}
|
|
345
|
+
const id = ++idCounter[prefix];
|
|
346
|
+
if (prefix === "$lodash$") {
|
|
347
|
+
return `${id}`;
|
|
348
|
+
}
|
|
349
|
+
return `${prefix}${id}`;
|
|
350
|
+
}
|
|
380
351
|
const StyledSelect = styled(Select)(({ theme }) => ({
|
|
381
352
|
"& .MuiInputAdornment-positionStart": {
|
|
382
353
|
paddingLeft: theme.spacing(2),
|