@carto/meridian-ds 1.5.0-alpha-virtual-autocomplete.1 → 1.5.0-alpha.split

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 (37) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/{Alert-BzEgeyQJ.cjs → Alert-BiOR9aar.cjs} +1 -1
  3. package/dist/{Alert-CnaTtNJd.js → Alert-CywtIMOj.js} +1 -1
  4. package/dist/{MenuItem-lAxlHrDp.cjs → MenuItem-Br2jY2lt.cjs} +5 -9
  5. package/dist/{MenuItem-D6wJym7Z.js → MenuItem-CXnnE5lK.js} +5 -9
  6. package/dist/{TablePaginationActions-mbbjzV6Y.cjs → TablePaginationActions-CFGXm44W.cjs} +0 -8
  7. package/dist/{TablePaginationActions-Cz5Hbi6N.js → TablePaginationActions-KpTvhN4Y.js} +1 -9
  8. package/dist/components/index.cjs +49 -162
  9. package/dist/components/index.js +50 -163
  10. package/dist/theme/index.cjs +9 -13
  11. package/dist/theme/index.js +10 -14
  12. package/dist/types/components/atoms/SplitButton.d.ts +9 -5
  13. package/dist/types/components/atoms/SplitButton.d.ts.map +1 -1
  14. package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts +1 -1
  15. package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts.map +1 -1
  16. package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts +0 -18
  17. package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts.map +1 -1
  18. package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts +1 -1
  19. package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts.map +1 -1
  20. package/dist/types/components/molecules/Autocomplete/types.d.ts +3 -61
  21. package/dist/types/components/molecules/Autocomplete/types.d.ts.map +1 -1
  22. package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts +1 -3
  23. package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts.map +1 -1
  24. package/dist/types/components/molecules/Autocomplete/utils.d.ts +0 -9
  25. package/dist/types/components/molecules/Autocomplete/utils.d.ts.map +1 -1
  26. package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -1
  27. package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
  28. package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts.map +1 -1
  29. package/dist/types/components/molecules/Menu/MenuList.d.ts.map +1 -1
  30. package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
  31. package/dist/types/theme/sections/components/forms.d.ts.map +1 -1
  32. package/dist/types/theme/sections/components/navigation.d.ts.map +1 -1
  33. package/dist/types/theme/theme-constants.d.ts +0 -4
  34. package/dist/types/theme/theme-constants.d.ts.map +1 -1
  35. package/dist/widgets/index.cjs +2 -2
  36. package/dist/widgets/index.js +2 -2
  37. package/package.json +3 -2
@@ -1,16 +1,15 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { forwardRef, useState, useRef, useEffect, useMemo, Fragment as Fragment$1, useImperativeHandle, useCallback } from "react";
3
3
  import { styled, Box, Button as Button$1, CircularProgress, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, IconButton, Tooltip, Select, FormControl, InputLabel, FormHelperText, ToggleButtonGroup as ToggleButtonGroup$1, Menu as Menu$2, Link, Checkbox, ListItemText, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Snackbar as Snackbar$1, Portal, Fade, Slide, alpha, useTheme, Toolbar, AppBar as AppBar$1, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1 } from "@mui/material";
4
- import { T as Typography, c as ICON_SIZE_SMALL, u as useImperativeIntl, f as MENU_ITEM_SIZE_EXTENDED, d as MENU_LIST_MAX_SIZE, M as MENU_ITEM_SIZE_DEFAULT, N as NOTIFICATION_DURATION_IN_MS, A as APPBAR_SIZE } from "../TablePaginationActions-Cz5Hbi6N.js";
5
- import { a } from "../TablePaginationActions-Cz5Hbi6N.js";
4
+ import { T as Typography, c as ICON_SIZE_SMALL, u as useImperativeIntl, N as NOTIFICATION_DURATION_IN_MS, A as APPBAR_SIZE } from "../TablePaginationActions-KpTvhN4Y.js";
5
+ import { a } from "../TablePaginationActions-KpTvhN4Y.js";
6
6
  import { A as ArrowDown } from "../ArrowDown-CY_wMVJT.js";
7
7
  import { A as ArrowUp, O as OpenDiagonallyRight, C as CloseDiagonallyRight } from "../OpenDiagonallyRight-CSm5GYYJ.js";
8
8
  import { useIntl } from "react-intl";
9
9
  import { VisibilityOffOutlined, VisibilityOutlined, Cancel, AddCircleOutlineOutlined, ContentCopyOutlined, CloseOutlined, MenuOutlined, HelpOutline, TodayOutlined, MoreVertOutlined, ErrorOutline, Check } from "@mui/icons-material";
10
- import { I as IconButton$1, A as Alert$1 } from "../Alert-CnaTtNJd.js";
10
+ import { I as IconButton$1, A as Alert$1 } from "../Alert-CywtIMOj.js";
11
11
  import "cartocolor";
12
- import { M as MenuItem$1 } from "../MenuItem-D6wJym7Z.js";
13
- import { FixedSizeList } from "react-window";
12
+ import { M as MenuItem$1 } from "../MenuItem-CXnnE5lK.js";
14
13
  import { DatePicker as DatePicker$1 } from "@mui/x-date-pickers/DatePicker";
15
14
  import { PickersDay as PickersDay$1 } from "@mui/x-date-pickers";
16
15
  import { TimePicker as TimePicker$1 } from "@mui/x-date-pickers/TimePicker";
@@ -108,6 +107,9 @@ const ButtonGroup = styled(ButtonGroup$1)(({ theme, size }) => ({
108
107
  }));
109
108
  function SplitButton({
110
109
  options,
110
+ disabled,
111
+ loading,
112
+ loadingPosition,
111
113
  onClick,
112
114
  variant,
113
115
  size,
@@ -146,8 +148,17 @@ function SplitButton({
146
148
  color,
147
149
  ...otherProps,
148
150
  children: [
149
- /* @__PURE__ */ jsx(Button$1, { onClick: handleClick, children: (_a = options[selectedIndex]) == null ? void 0 : _a.label }),
150
- /* @__PURE__ */ jsx(Button$1, { onClick: handleToggle, children: open ? /* @__PURE__ */ jsx(ArrowUp, {}) : /* @__PURE__ */ jsx(ArrowDown, {}) })
151
+ /* @__PURE__ */ jsx(
152
+ Button,
153
+ {
154
+ disabled,
155
+ loading,
156
+ loadingPosition,
157
+ onClick: handleClick,
158
+ children: (_a = options[selectedIndex]) == null ? void 0 : _a.label
159
+ }
160
+ ),
161
+ /* @__PURE__ */ jsx(Button, { disabled: loading || disabled, onClick: handleToggle, children: open ? /* @__PURE__ */ jsx(ArrowUp, {}) : /* @__PURE__ */ jsx(ArrowDown, {}) })
151
162
  ]
152
163
  }
153
164
  ),
@@ -467,10 +478,10 @@ function ToggleButtonGroup({
467
478
  }
468
479
  const StyledMenu = styled(Menu$2, {
469
480
  shouldForwardProp: (prop) => !["extended", "width", "height"].includes(prop)
470
- })(({ extended, width, height }) => ({
481
+ })(({ theme, extended, width, height }) => ({
471
482
  ...extended && {
472
483
  ".MuiMenuItem-root": {
473
- minHeight: MENU_ITEM_SIZE_EXTENDED
484
+ minHeight: theme.spacing(6)
474
485
  }
475
486
  },
476
487
  ...width && {
@@ -510,10 +521,10 @@ function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
510
521
  const Menu$1 = forwardRef(_Menu);
511
522
  const StyledMenuList = styled(MenuList$1, {
512
523
  shouldForwardProp: (prop) => !["extended", "width", "height"].includes(prop)
513
- })(({ extended, width, height }) => ({
524
+ })(({ theme, extended, width, height }) => ({
514
525
  ...extended && {
515
526
  ".MuiMenuItem-root": {
516
- minHeight: MENU_ITEM_SIZE_EXTENDED
527
+ minHeight: theme.spacing(6)
517
528
  }
518
529
  },
519
530
  "&.MuiList-root": {
@@ -544,8 +555,7 @@ function _MenuList({ extended, width, height, ...otherProps }, ref) {
544
555
  }
545
556
  const MenuList = forwardRef(_MenuList);
546
557
  const StyledMenuItem$1 = styled(MenuItem$1)(() => ({
547
- marginTop: "0 !important",
548
- marginBottom: "0 !important"
558
+ marginTop: "0 !important"
549
559
  }));
550
560
  const LinkFilter = styled(Link)(
551
561
  ({ disabled, theme }) => ({
@@ -785,20 +795,12 @@ function _MultipleSelectField({
785
795
  },
786
796
  children: [
787
797
  showFilters && /* @__PURE__ */ jsx(
788
- Box,
798
+ MenuItemFilter,
789
799
  {
790
- sx: {
791
- mb: 1
792
- },
793
- children: /* @__PURE__ */ jsx(
794
- MenuItemFilter,
795
- {
796
- areAllSelected,
797
- areAnySelected,
798
- selectAll,
799
- selectAllDisabled
800
- }
801
- )
800
+ areAllSelected,
801
+ areAnySelected,
802
+ selectAll,
803
+ selectAllDisabled
802
804
  }
803
805
  ),
804
806
  options == null ? void 0 : options.map((option) => {
@@ -1132,40 +1134,7 @@ const getDefaultOptionLabel = (option) => {
1132
1134
  const createOptionWithMultiple = (option, multiple) => {
1133
1135
  return typeof option !== "object" || option === null ? { value: option, multiple } : { ...option, multiple };
1134
1136
  };
1135
- const getDefaultLimitTagsText = (more) => /* @__PURE__ */ jsxs("span", { "data-testid": "more-options-tag", children: [
1136
- "+",
1137
- more
1138
- ] });
1139
- function createCounterRenderTags(counterText = "selected", options = [], size = "small", getOptionLabel = getDefaultOptionLabel) {
1140
- const CounterRenderTags = (value) => {
1141
- if (value.length === 0) {
1142
- return null;
1143
- }
1144
- const totalCount = options.length;
1145
- const selectedCount = value.length;
1146
- let text;
1147
- if (selectedCount === totalCount && totalCount > 0) {
1148
- text = `All ${counterText}`;
1149
- } else if (selectedCount === 1) {
1150
- text = getOptionLabel(value[0]);
1151
- } else {
1152
- text = `${selectedCount} ${counterText}`;
1153
- }
1154
- return /* @__PURE__ */ jsx(
1155
- Typography,
1156
- {
1157
- variant: size === "small" ? "body2" : "body1",
1158
- component: "span",
1159
- "data-testid": "counter-tag",
1160
- sx: {
1161
- ml: 1
1162
- },
1163
- children: text
1164
- }
1165
- );
1166
- };
1167
- return CounterRenderTags;
1168
- }
1137
+ const getDefaultLimitTagsText = (more) => /* @__PURE__ */ jsx("span", { "data-testid": "more-options-tag", children: `+${more}` });
1169
1138
  function useAutocompleteRenderOption() {
1170
1139
  const renderOption = (props, option, state, getOptionLabel, customIcon) => {
1171
1140
  const {
@@ -1307,8 +1276,7 @@ function useMultipleAutocomplete({
1307
1276
  options,
1308
1277
  value,
1309
1278
  onChange,
1310
- getOptionLabel,
1311
- size
1279
+ getOptionLabel
1312
1280
  }) {
1313
1281
  const [multipleValue, setMultipleValue] = useState(
1314
1282
  Array.isArray(value) ? value : value ? [value] : []
@@ -1343,20 +1311,13 @@ function useMultipleAutocomplete({
1343
1311
  getOptionLabel
1344
1312
  );
1345
1313
  };
1346
- const getCounterRenderTags = () => createCounterRenderTags(
1347
- "selected",
1348
- options,
1349
- size,
1350
- getOptionLabel ? (option) => getOptionLabel(option) : void 0
1351
- );
1352
1314
  return {
1353
1315
  multipleValue,
1354
1316
  allSelected,
1355
1317
  someSelected,
1356
1318
  handleSelectAll,
1357
1319
  handleChange,
1358
- multipleRenderOption,
1359
- getCounterRenderTags
1320
+ multipleRenderOption
1360
1321
  };
1361
1322
  }
1362
1323
  function _ListboxWithFilter({
@@ -1366,53 +1327,15 @@ function _ListboxWithFilter({
1366
1327
  someSelected,
1367
1328
  handleSelectAll = () => void 0,
1368
1329
  multiple,
1369
- extended,
1370
- itemHeight,
1371
- maxListHeight = MENU_LIST_MAX_SIZE,
1372
1330
  ...otherProps
1373
1331
  }, ref) {
1374
- const childrenArray = useMemo(() => {
1375
- if (Array.isArray(children)) {
1376
- return children;
1377
- }
1378
- return children ? [children] : [];
1379
- }, [children]);
1380
- const defaultItemHeight = itemHeight ?? (extended ? MENU_ITEM_SIZE_EXTENDED : MENU_ITEM_SIZE_DEFAULT);
1381
- const listboxHeight = useMemo(() => {
1382
- const filterHeight = showFilters && multiple ? MENU_ITEM_SIZE_EXTENDED : 0;
1383
- const availableHeight = maxListHeight - filterHeight;
1384
- const calculatedHeight = Math.min(
1385
- childrenArray.length * defaultItemHeight,
1386
- availableHeight
1387
- );
1388
- return Math.max(calculatedHeight, defaultItemHeight + 8);
1389
- }, [
1390
- showFilters,
1391
- multiple,
1392
- maxListHeight,
1393
- childrenArray.length,
1394
- defaultItemHeight
1395
- ]);
1396
- const renderItem = ({
1397
- index,
1398
- style
1399
- }) => {
1400
- const child = childrenArray[index];
1401
- if (!child) return null;
1402
- return /* @__PURE__ */ jsx("div", { style, children: child });
1403
- };
1404
1332
  return /* @__PURE__ */ jsxs(
1405
1333
  "ul",
1406
1334
  {
1407
1335
  ref,
1408
1336
  ...otherProps,
1409
1337
  role: "listbox",
1410
- "data-list-height": listboxHeight,
1411
- "data-item-height": defaultItemHeight,
1412
1338
  "aria-multiselectable": multiple,
1413
- style: {
1414
- maxHeight: maxListHeight + defaultItemHeight
1415
- },
1416
1339
  children: [
1417
1340
  showFilters && multiple && /* @__PURE__ */ jsx(
1418
1341
  MenuItemFilter,
@@ -1422,16 +1345,7 @@ function _ListboxWithFilter({
1422
1345
  selectAll: handleSelectAll
1423
1346
  }
1424
1347
  ),
1425
- /* @__PURE__ */ jsx(
1426
- FixedSizeList,
1427
- {
1428
- height: listboxHeight,
1429
- width: "100%",
1430
- itemCount: childrenArray.length,
1431
- itemSize: defaultItemHeight,
1432
- children: renderItem
1433
- }
1434
- )
1348
+ children
1435
1349
  ]
1436
1350
  }
1437
1351
  );
@@ -1446,15 +1360,10 @@ function _CreatableAutocomplete({
1446
1360
  disabled,
1447
1361
  loading,
1448
1362
  showFilters,
1449
- showCounter = false,
1450
1363
  options = [],
1451
1364
  value,
1452
1365
  onChange,
1453
1366
  getLimitTagsText,
1454
- renderTags,
1455
- itemHeight,
1456
- maxListHeight,
1457
- extended,
1458
1367
  ...props
1459
1368
  }, ref) {
1460
1369
  const { freeSolo = true, ...otherProps } = props;
@@ -1463,14 +1372,11 @@ function _CreatableAutocomplete({
1463
1372
  allSelected,
1464
1373
  someSelected,
1465
1374
  handleSelectAll,
1466
- handleChange,
1467
- getCounterRenderTags
1375
+ handleChange
1468
1376
  } = useMultipleAutocomplete({
1469
1377
  options,
1470
1378
  value,
1471
- onChange,
1472
- getOptionLabel,
1473
- size: props.size
1379
+ onChange
1474
1380
  });
1475
1381
  const {
1476
1382
  creatableFilterOptions,
@@ -1482,17 +1388,6 @@ function _CreatableAutocomplete({
1482
1388
  newItemIcon,
1483
1389
  multiple
1484
1390
  });
1485
- const listboxProps = {
1486
- showFilters,
1487
- allSelected,
1488
- someSelected,
1489
- handleSelectAll,
1490
- multiple,
1491
- itemHeight,
1492
- maxListHeight,
1493
- extended
1494
- };
1495
- const finalRenderTags = showCounter && multiple && !renderTags ? getCounterRenderTags() : renderTags;
1496
1391
  return /* @__PURE__ */ jsx(
1497
1392
  Autocomplete$1,
1498
1393
  {
@@ -1504,13 +1399,18 @@ function _CreatableAutocomplete({
1504
1399
  filterOptions: creatableFilterOptions,
1505
1400
  getOptionLabel: creatableOptionLabel,
1506
1401
  renderOption: creatableRenderOption,
1507
- renderTags: finalRenderTags,
1508
1402
  freeSolo,
1509
1403
  forcePopupIcon: true,
1510
1404
  multiple,
1511
1405
  disableCloseOnSelect: disableCloseOnSelect ?? multiple,
1512
1406
  ListboxComponent: ListboxWithFilter,
1513
- ListboxProps: listboxProps,
1407
+ ListboxProps: {
1408
+ showFilters,
1409
+ allSelected,
1410
+ someSelected,
1411
+ handleSelectAll,
1412
+ multiple
1413
+ },
1514
1414
  getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
1515
1415
  disabled: disabled || loading,
1516
1416
  popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
@@ -1525,16 +1425,11 @@ function _MultipleAutocomplete({
1525
1425
  disabled,
1526
1426
  loading,
1527
1427
  showFilters,
1528
- showCounter = false,
1529
1428
  options,
1530
1429
  value,
1531
1430
  onChange,
1532
1431
  getOptionLabel,
1533
1432
  getLimitTagsText,
1534
- renderTags,
1535
- itemHeight,
1536
- maxListHeight,
1537
- extended,
1538
1433
  ...props
1539
1434
  }, ref) {
1540
1435
  const {
@@ -1543,26 +1438,13 @@ function _MultipleAutocomplete({
1543
1438
  someSelected,
1544
1439
  handleSelectAll,
1545
1440
  handleChange,
1546
- multipleRenderOption,
1547
- getCounterRenderTags
1441
+ multipleRenderOption
1548
1442
  } = useMultipleAutocomplete({
1549
1443
  options,
1550
1444
  value,
1551
1445
  onChange,
1552
- getOptionLabel,
1553
- size: props.size
1446
+ getOptionLabel
1554
1447
  });
1555
- const listboxProps = {
1556
- showFilters,
1557
- allSelected,
1558
- someSelected,
1559
- handleSelectAll,
1560
- multiple: true,
1561
- itemHeight,
1562
- maxListHeight,
1563
- extended
1564
- };
1565
- const finalRenderTags = showCounter && !renderTags ? getCounterRenderTags() : renderTags;
1566
1448
  return /* @__PURE__ */ jsx(
1567
1449
  Autocomplete$1,
1568
1450
  {
@@ -1573,9 +1455,14 @@ function _MultipleAutocomplete({
1573
1455
  onChange: handleChange,
1574
1456
  getOptionLabel,
1575
1457
  renderOption: renderOption ?? multipleRenderOption,
1576
- renderTags: finalRenderTags,
1577
1458
  ListboxComponent: ListboxWithFilter,
1578
- ListboxProps: listboxProps,
1459
+ ListboxProps: {
1460
+ showFilters,
1461
+ allSelected,
1462
+ someSelected,
1463
+ handleSelectAll,
1464
+ multiple: true
1465
+ },
1579
1466
  multiple: true,
1580
1467
  getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
1581
1468
  disableCloseOnSelect,
@@ -3,11 +3,11 @@ var _a, _b, _c, _d, _e, _f, _g, _h;
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const material = require("@mui/material");
5
5
  const jsxRuntime = require("react/jsx-runtime");
6
- const TablePaginationActions = require("../TablePaginationActions-mbbjzV6Y.cjs");
6
+ const TablePaginationActions = require("../TablePaginationActions-CFGXm44W.cjs");
7
7
  const iconsMaterial = require("@mui/icons-material");
8
8
  const ArrowDown = require("../ArrowDown-8fLj23Ge.cjs");
9
9
  const xDatePickers = require("@mui/x-date-pickers");
10
- const MenuItem = require("../MenuItem-lAxlHrDp.cjs");
10
+ const MenuItem = require("../MenuItem-Br2jY2lt.cjs");
11
11
  const paletteUtils = require("../paletteUtils-B9ybmwiI.cjs");
12
12
  const tooltipArrowSize = 1;
13
13
  const tooltipSeparation = 0.5;
@@ -1834,7 +1834,7 @@ const formsOverrides = {
1834
1834
  }),
1835
1835
  option: ({ ownerState, theme: theme2 }) => ({
1836
1836
  "&.MuiAutocomplete-option": {
1837
- minHeight: TablePaginationActions.MENU_ITEM_SIZE_DEFAULT,
1837
+ minHeight: theme2.spacing(4),
1838
1838
  padding: theme2.spacing(0.5, 2),
1839
1839
  ...theme2.typography.body2,
1840
1840
  transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
@@ -2044,7 +2044,7 @@ const navigationOverrides = {
2044
2044
  "&.MuiMenu-paper": {
2045
2045
  minWidth: theme2.spacing(8),
2046
2046
  // 64px, defined by design
2047
- maxHeight: TablePaginationActions.MENU_LIST_MAX_SIZE,
2047
+ maxHeight: theme2.spacing(39),
2048
2048
  // 312px, defined by design
2049
2049
  "&:focus-visible": {
2050
2050
  outline: "none !important",
@@ -2060,14 +2060,14 @@ const navigationOverrides = {
2060
2060
  root: ({ theme: theme2 }) => ({
2061
2061
  ...theme2.typography.body2,
2062
2062
  columnGap: theme2.spacing(1),
2063
- minHeight: TablePaginationActions.MENU_ITEM_SIZE_DEFAULT,
2063
+ minHeight: theme2.spacing(4),
2064
2064
  padding: theme2.spacing(0.75, 1, 0.75, 1.5),
2065
2065
  whiteSpace: "normal",
2066
2066
  transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
2067
2067
  [theme2.breakpoints.up("sm")]: {
2068
2068
  // Overrides an unwanted Mui default style
2069
2069
  "&.MuiButtonBase-root": {
2070
- minHeight: TablePaginationActions.MENU_ITEM_SIZE_DEFAULT
2070
+ minHeight: theme2.spacing(4)
2071
2071
  }
2072
2072
  },
2073
2073
  "&:hover": {
@@ -2134,7 +2134,7 @@ const navigationOverrides = {
2134
2134
  }
2135
2135
  }),
2136
2136
  dense: ({ theme: theme2 }) => ({
2137
- minHeight: TablePaginationActions.MENU_ITEM_SIZE_DENSE,
2137
+ minHeight: theme2.spacing(3),
2138
2138
  paddingTop: 0,
2139
2139
  paddingBottom: 0,
2140
2140
  ".MuiTypography-root": {
@@ -2144,7 +2144,7 @@ const navigationOverrides = {
2144
2144
  [theme2.breakpoints.up("sm")]: {
2145
2145
  // Overrides an unwanted Mui default style
2146
2146
  "&.MuiButtonBase-root": {
2147
- minHeight: TablePaginationActions.MENU_ITEM_SIZE_DENSE
2147
+ minHeight: theme2.spacing(3)
2148
2148
  }
2149
2149
  }
2150
2150
  })
@@ -2158,7 +2158,7 @@ const navigationOverrides = {
2158
2158
  ".MuiPopover-root &, .MuiPopper-root &, .base-Popper-root &": {
2159
2159
  minWidth: theme2.spacing(8),
2160
2160
  // 64px, defined by design
2161
- maxHeight: TablePaginationActions.MENU_LIST_MAX_SIZE,
2161
+ maxHeight: theme2.spacing(39),
2162
2162
  // 312px, defined by design
2163
2163
  overflowY: "auto",
2164
2164
  "&:focus-visible": {
@@ -3127,10 +3127,6 @@ exports.BREAKPOINTS = TablePaginationActions.BREAKPOINTS;
3127
3127
  exports.ICON_SIZE_LARGE = TablePaginationActions.ICON_SIZE_LARGE;
3128
3128
  exports.ICON_SIZE_MEDIUM = TablePaginationActions.ICON_SIZE_MEDIUM;
3129
3129
  exports.ICON_SIZE_SMALL = TablePaginationActions.ICON_SIZE_SMALL;
3130
- exports.MENU_ITEM_SIZE_DEFAULT = TablePaginationActions.MENU_ITEM_SIZE_DEFAULT;
3131
- exports.MENU_ITEM_SIZE_DENSE = TablePaginationActions.MENU_ITEM_SIZE_DENSE;
3132
- exports.MENU_ITEM_SIZE_EXTENDED = TablePaginationActions.MENU_ITEM_SIZE_EXTENDED;
3133
- exports.MENU_LIST_MAX_SIZE = TablePaginationActions.MENU_LIST_MAX_SIZE;
3134
3130
  exports.NOTIFICATION_DURATION_IN_MS = TablePaginationActions.NOTIFICATION_DURATION_IN_MS;
3135
3131
  exports.SPACING = TablePaginationActions.SPACING;
3136
3132
  exports.getSpacing = TablePaginationActions.getSpacing;
@@ -1,12 +1,12 @@
1
1
  var _a, _b, _c, _d, _e, _f, _g, _h;
2
2
  import { alpha, Tooltip, responsiveFontSizes, createTheme } from "@mui/material";
3
3
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
4
- import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE, e as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../TablePaginationActions-Cz5Hbi6N.js";
5
- import { f, N } from "../TablePaginationActions-Cz5Hbi6N.js";
4
+ import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../TablePaginationActions-KpTvhN4Y.js";
5
+ import { N } from "../TablePaginationActions-KpTvhN4Y.js";
6
6
  import { Cancel, EventOutlined, ChevronRightOutlined, ChevronLeftOutlined, ExpandMoreOutlined, CheckCircleOutlined } from "@mui/icons-material";
7
7
  import { A as ArrowDown } from "../ArrowDown-CY_wMVJT.js";
8
8
  import { renderDigitalClockTimeView } from "@mui/x-date-pickers";
9
- import { M as MenuItem } from "../MenuItem-D6wJym7Z.js";
9
+ import { M as MenuItem } from "../MenuItem-CXnnE5lK.js";
10
10
  import { c as commonPalette } from "../paletteUtils-BHqJlHm9.js";
11
11
  import { g } from "../paletteUtils-BHqJlHm9.js";
12
12
  const tooltipArrowSize = 1;
@@ -1834,7 +1834,7 @@ const formsOverrides = {
1834
1834
  }),
1835
1835
  option: ({ ownerState, theme: theme2 }) => ({
1836
1836
  "&.MuiAutocomplete-option": {
1837
- minHeight: MENU_ITEM_SIZE_DEFAULT,
1837
+ minHeight: theme2.spacing(4),
1838
1838
  padding: theme2.spacing(0.5, 2),
1839
1839
  ...theme2.typography.body2,
1840
1840
  transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
@@ -2044,7 +2044,7 @@ const navigationOverrides = {
2044
2044
  "&.MuiMenu-paper": {
2045
2045
  minWidth: theme2.spacing(8),
2046
2046
  // 64px, defined by design
2047
- maxHeight: MENU_LIST_MAX_SIZE,
2047
+ maxHeight: theme2.spacing(39),
2048
2048
  // 312px, defined by design
2049
2049
  "&:focus-visible": {
2050
2050
  outline: "none !important",
@@ -2060,14 +2060,14 @@ const navigationOverrides = {
2060
2060
  root: ({ theme: theme2 }) => ({
2061
2061
  ...theme2.typography.body2,
2062
2062
  columnGap: theme2.spacing(1),
2063
- minHeight: MENU_ITEM_SIZE_DEFAULT,
2063
+ minHeight: theme2.spacing(4),
2064
2064
  padding: theme2.spacing(0.75, 1, 0.75, 1.5),
2065
2065
  whiteSpace: "normal",
2066
2066
  transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
2067
2067
  [theme2.breakpoints.up("sm")]: {
2068
2068
  // Overrides an unwanted Mui default style
2069
2069
  "&.MuiButtonBase-root": {
2070
- minHeight: MENU_ITEM_SIZE_DEFAULT
2070
+ minHeight: theme2.spacing(4)
2071
2071
  }
2072
2072
  },
2073
2073
  "&:hover": {
@@ -2134,7 +2134,7 @@ const navigationOverrides = {
2134
2134
  }
2135
2135
  }),
2136
2136
  dense: ({ theme: theme2 }) => ({
2137
- minHeight: MENU_ITEM_SIZE_DENSE,
2137
+ minHeight: theme2.spacing(3),
2138
2138
  paddingTop: 0,
2139
2139
  paddingBottom: 0,
2140
2140
  ".MuiTypography-root": {
@@ -2144,7 +2144,7 @@ const navigationOverrides = {
2144
2144
  [theme2.breakpoints.up("sm")]: {
2145
2145
  // Overrides an unwanted Mui default style
2146
2146
  "&.MuiButtonBase-root": {
2147
- minHeight: MENU_ITEM_SIZE_DENSE
2147
+ minHeight: theme2.spacing(3)
2148
2148
  }
2149
2149
  }
2150
2150
  })
@@ -2158,7 +2158,7 @@ const navigationOverrides = {
2158
2158
  ".MuiPopover-root &, .MuiPopper-root &, .base-Popper-root &": {
2159
2159
  minWidth: theme2.spacing(8),
2160
2160
  // 64px, defined by design
2161
- maxHeight: MENU_LIST_MAX_SIZE,
2161
+ maxHeight: theme2.spacing(39),
2162
2162
  // 312px, defined by design
2163
2163
  overflowY: "auto",
2164
2164
  "&:focus-visible": {
@@ -3128,10 +3128,6 @@ export {
3128
3128
  ICON_SIZE_LARGE,
3129
3129
  ICON_SIZE_MEDIUM,
3130
3130
  ICON_SIZE_SMALL,
3131
- MENU_ITEM_SIZE_DEFAULT,
3132
- MENU_ITEM_SIZE_DENSE,
3133
- f as MENU_ITEM_SIZE_EXTENDED,
3134
- MENU_LIST_MAX_SIZE,
3135
3131
  N as NOTIFICATION_DURATION_IN_MS,
3136
3132
  SPACING,
3137
3133
  cartoThemeOptions,
@@ -1,17 +1,21 @@
1
- import { ButtonProps } from '@mui/material';
1
+ import { ButtonProps } from './Button';
2
2
  type SplitButtonOption = {
3
3
  label: string;
4
4
  disabled?: boolean;
5
+ [key: string]: any;
5
6
  };
6
- export type SplitButtonProps = {
7
- options: SplitButtonOption[];
8
- onClick: (option: SplitButtonOption) => void;
7
+ export type SplitButtonProps<T extends SplitButtonOption = SplitButtonOption> = {
8
+ options: T[];
9
+ onClick: (option: T) => void;
10
+ loading?: boolean;
11
+ loadingPosition?: ButtonProps['loadingPosition'];
12
+ disabled?: boolean;
9
13
  variant?: ButtonProps['variant'];
10
14
  size?: ButtonProps['size'];
11
15
  color?: ButtonProps['color'];
12
16
  'data-testid'?: string;
13
17
  'aria-label'?: string;
14
18
  };
15
- export default function SplitButton({ options, onClick, variant, size, color, ...otherProps }: SplitButtonProps): import("react/jsx-runtime").JSX.Element;
19
+ export default function SplitButton<T extends SplitButtonOption = SplitButtonOption>({ options, disabled, loading, loadingPosition, onClick, variant, size, color, ...otherProps }: SplitButtonProps<T>): import("react/jsx-runtime").JSX.Element;
16
20
  export {};
17
21
  //# sourceMappingURL=SplitButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SplitButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/SplitButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,WAAW,EAOZ,MAAM,eAAe,CAAA;AAetB,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,OAAO,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAA;IAC5C,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,GAAG,UAAU,EACd,EAAE,gBAAgB,2CAkFlB"}
1
+ {"version":3,"file":"SplitButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/SplitButton.tsx"],"names":[],"mappings":"AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAe9C,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,IAC1E;IACE,OAAO,EAAE,CAAC,EAAE,CAAA;IACZ,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,eAAe,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAA;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAEH,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,EAC/C,EACA,OAAO,EACP,QAAQ,EACR,OAAO,EACP,eAAe,EACf,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,GAAG,UAAU,EACd,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CAyFrB"}
@@ -1,7 +1,7 @@
1
1
  import { ForwardedRef } from 'react';
2
2
  import { ChipTypeMap } from '@mui/material';
3
3
  import { CreatableAutocompleteProps } from './types';
4
- declare function _CreatableAutocomplete<Value, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ newItemLabel, newItemIcon, getOptionLabel, multiple, disableCloseOnSelect, disabled, loading, showFilters, showCounter, options, value, onChange, getLimitTagsText, renderTags, itemHeight, maxListHeight, extended, ...props }: CreatableAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>, ref: ForwardedRef<HTMLElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare function _CreatableAutocomplete<Value, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ newItemLabel, newItemIcon, getOptionLabel, multiple, disableCloseOnSelect, disabled, loading, showFilters, options, value, onChange, getLimitTagsText, ...props }: CreatableAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>, ref: ForwardedRef<HTMLElement>): import("react/jsx-runtime").JSX.Element;
5
5
  declare const CreatableAutocomplete: <Value, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]>(props: CreatableAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent> & {
6
6
  ref?: ForwardedRef<HTMLElement>;
7
7
  }) => ReturnType<typeof _CreatableAutocomplete>;
@@ -1 +1 @@
1
- {"version":3,"file":"CreatableAutocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Autocomplete/CreatableAutocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAc,MAAM,OAAO,CAAA;AAChD,OAAO,EACL,WAAW,EAGZ,MAAM,eAAe,CAAA;AAOtB,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAGpD,iBAAS,sBAAsB,CAC7B,KAAK,EACL,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,gBAAgB,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EACxD,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,aAAa,SAAS,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC,kBAAkB,CAAC,EAEzE,EACE,YAAY,EACZ,WAAW,EACX,cAAsC,EACtC,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,WAAmB,EACnB,OAAY,EACZ,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,aAAa,EACb,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,0BAA0B,CAC3B,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,aAAa,CACd,EACD,GAAG,EAAE,YAAY,CAAC,WAAW,CAAC,2CAqE/B;AAID,QAAA,MAAM,qBAAqB,EAAyC,CAClE,KAAK,EACL,QAAgD,SAA/B,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,gBAAwD,SAA/B,OAAO,GAAG,SAAS,GAAG,SAAS,EACxD,QAAgD,SAA/B,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,aAAyE,SAAnD,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC,kBAAkB,CAAC,EAEzE,KAAK,EAAE,0BAA0B,CAC/B,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,aAAa,CACd,GAAG;IAAE,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;CAAE,KACpC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE9C,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"CreatableAutocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Autocomplete/CreatableAutocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAc,MAAM,OAAO,CAAA;AAChD,OAAO,EACL,WAAW,EAGZ,MAAM,eAAe,CAAA;AAOtB,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAGpD,iBAAS,sBAAsB,CAC7B,KAAK,EACL,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,gBAAgB,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EACxD,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,aAAa,SAAS,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC,kBAAkB,CAAC,EAEzE,EACE,YAAY,EACZ,WAAW,EACX,cAAsC,EACtC,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAY,EACZ,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,0BAA0B,CAC3B,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,aAAa,CACd,EACD,GAAG,EAAE,YAAY,CAAC,WAAW,CAAC,2CA2D/B;AAID,QAAA,MAAM,qBAAqB,EAAyC,CAClE,KAAK,EACL,QAAgD,SAA/B,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,gBAAwD,SAA/B,OAAO,GAAG,SAAS,GAAG,SAAS,EACxD,QAAgD,SAA/B,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,aAAyE,SAAnD,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC,kBAAkB,CAAC,EAEzE,KAAK,EAAE,0BAA0B,CAC/B,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,aAAa,CACd,GAAG;IAAE,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;CAAE,KACpC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE9C,eAAe,qBAAqB,CAAA"}
@@ -5,15 +5,6 @@ export type ListboxWithFilterProps = HTMLAttributes<HTMLElement> & {
5
5
  someSelected?: boolean;
6
6
  handleSelectAll?: () => void;
7
7
  multiple?: boolean;
8
- extended?: boolean;
9
- /**
10
- * Height of each item in pixels
11
- */
12
- itemHeight?: number;
13
- /**
14
- * Maximum height of the listbox in pixels
15
- */
16
- maxListHeight?: number;
17
8
  };
18
9
  declare const ListboxWithFilter: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
19
10
  showFilters?: boolean;
@@ -21,15 +12,6 @@ declare const ListboxWithFilter: import('react').ForwardRefExoticComponent<HTMLA
21
12
  someSelected?: boolean;
22
13
  handleSelectAll?: () => void;
23
14
  multiple?: boolean;
24
- extended?: boolean;
25
- /**
26
- * Height of each item in pixels
27
- */
28
- itemHeight?: number;
29
- /**
30
- * Maximum height of the listbox in pixels
31
- */
32
- maxListHeight?: number;
33
15
  } & import('react').RefAttributes<HTMLUListElement>>;
34
16
  export default ListboxWithFilter;
35
17
  //# sourceMappingURL=ListBoxWithFilter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListBoxWithFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Autocomplete/ListBoxWithFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAW,MAAM,OAAO,CAAA;AAUzE,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACjE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AA2FD,QAAA,MAAM,iBAAiB;kBAzGP,OAAO;kBACP,OAAO;mBACN,OAAO;sBACJ,MAAM,IAAI;eACjB,OAAO;eACP,OAAO;IAClB;;OAEG;iBACU,MAAM;IACnB;;OAEG;oBACa,MAAM;oDA4FgC,CAAA;AACxD,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"ListBoxWithFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Autocomplete/ListBoxWithFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAE,MAAM,OAAO,CAAA;AAGhE,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACjE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAmCD,QAAA,MAAM,iBAAiB;kBAxCP,OAAO;kBACP,OAAO;mBACN,OAAO;sBACJ,MAAM,IAAI;eACjB,OAAO;oDAoCoC,CAAA;AACxD,eAAe,iBAAiB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ForwardedRef } from 'react';
2
2
  import { ChipTypeMap } from '@mui/material';
3
3
  import { MultipleAutocompleteProps } from './types';
4
- declare function _MultipleAutocomplete<Value, Multiple extends boolean | undefined = true, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ renderOption, disableCloseOnSelect, disabled, loading, showFilters, showCounter, options, value, onChange, getOptionLabel, getLimitTagsText, renderTags, itemHeight, maxListHeight, extended, ...props }: MultipleAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>, ref: ForwardedRef<HTMLElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare function _MultipleAutocomplete<Value, Multiple extends boolean | undefined = true, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ renderOption, disableCloseOnSelect, disabled, loading, showFilters, options, value, onChange, getOptionLabel, getLimitTagsText, ...props }: MultipleAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>, ref: ForwardedRef<HTMLElement>): import("react/jsx-runtime").JSX.Element;
5
5
  declare const MultipleAutocomplete: <Value, Multiple extends boolean | undefined = true, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]>(props: MultipleAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent> & {
6
6
  ref?: ForwardedRef<HTMLElement>;
7
7
  }) => ReturnType<typeof _MultipleAutocomplete>;