@carto/meridian-ds 1.5.0-alpha-virtual-autocomplete.2 → 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.
- package/CHANGELOG.md +0 -1
- package/dist/{Alert-BzEgeyQJ.cjs → Alert-BiOR9aar.cjs} +1 -1
- package/dist/{Alert-CnaTtNJd.js → Alert-CywtIMOj.js} +1 -1
- package/dist/{MenuItem-lAxlHrDp.cjs → MenuItem-Br2jY2lt.cjs} +5 -9
- package/dist/{MenuItem-D6wJym7Z.js → MenuItem-CXnnE5lK.js} +5 -9
- package/dist/{TablePaginationActions-mbbjzV6Y.cjs → TablePaginationActions-CFGXm44W.cjs} +0 -8
- package/dist/{TablePaginationActions-Cz5Hbi6N.js → TablePaginationActions-KpTvhN4Y.js} +1 -9
- package/dist/components/index.cjs +35 -196
- package/dist/components/index.js +37 -198
- package/dist/theme/index.cjs +9 -13
- package/dist/theme/index.js +10 -14
- package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts +1 -1
- package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts +3 -21
- package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts +1 -1
- package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/index.d.ts +0 -1
- package/dist/types/components/molecules/Autocomplete/index.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/types.d.ts +7 -59
- package/dist/types/components/molecules/Autocomplete/types.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts +1 -26
- package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/utils.d.ts +0 -49
- package/dist/types/components/molecules/Autocomplete/utils.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuList.d.ts.map +1 -1
- package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
- package/dist/types/theme/sections/components/forms.d.ts.map +1 -1
- package/dist/types/theme/sections/components/navigation.d.ts.map +1 -1
- package/dist/types/theme/theme-constants.d.ts +0 -4
- package/dist/types/theme/theme-constants.d.ts.map +1 -1
- package/dist/widgets/index.cjs +2 -2
- package/dist/widgets/index.js +2 -2
- package/package.json +3 -2
package/dist/components/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
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,
|
|
5
|
-
import { a } from "../TablePaginationActions-
|
|
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-
|
|
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-
|
|
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";
|
|
@@ -479,10 +478,10 @@ function ToggleButtonGroup({
|
|
|
479
478
|
}
|
|
480
479
|
const StyledMenu = styled(Menu$2, {
|
|
481
480
|
shouldForwardProp: (prop) => !["extended", "width", "height"].includes(prop)
|
|
482
|
-
})(({ extended, width, height }) => ({
|
|
481
|
+
})(({ theme, extended, width, height }) => ({
|
|
483
482
|
...extended && {
|
|
484
483
|
".MuiMenuItem-root": {
|
|
485
|
-
minHeight:
|
|
484
|
+
minHeight: theme.spacing(6)
|
|
486
485
|
}
|
|
487
486
|
},
|
|
488
487
|
...width && {
|
|
@@ -522,10 +521,10 @@ function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
|
|
|
522
521
|
const Menu$1 = forwardRef(_Menu);
|
|
523
522
|
const StyledMenuList = styled(MenuList$1, {
|
|
524
523
|
shouldForwardProp: (prop) => !["extended", "width", "height"].includes(prop)
|
|
525
|
-
})(({ extended, width, height }) => ({
|
|
524
|
+
})(({ theme, extended, width, height }) => ({
|
|
526
525
|
...extended && {
|
|
527
526
|
".MuiMenuItem-root": {
|
|
528
|
-
minHeight:
|
|
527
|
+
minHeight: theme.spacing(6)
|
|
529
528
|
}
|
|
530
529
|
},
|
|
531
530
|
"&.MuiList-root": {
|
|
@@ -556,8 +555,7 @@ function _MenuList({ extended, width, height, ...otherProps }, ref) {
|
|
|
556
555
|
}
|
|
557
556
|
const MenuList = forwardRef(_MenuList);
|
|
558
557
|
const StyledMenuItem$1 = styled(MenuItem$1)(() => ({
|
|
559
|
-
marginTop: "0 !important"
|
|
560
|
-
marginBottom: "0 !important"
|
|
558
|
+
marginTop: "0 !important"
|
|
561
559
|
}));
|
|
562
560
|
const LinkFilter = styled(Link)(
|
|
563
561
|
({ disabled, theme }) => ({
|
|
@@ -797,20 +795,12 @@ function _MultipleSelectField({
|
|
|
797
795
|
},
|
|
798
796
|
children: [
|
|
799
797
|
showFilters && /* @__PURE__ */ jsx(
|
|
800
|
-
|
|
798
|
+
MenuItemFilter,
|
|
801
799
|
{
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
MenuItemFilter,
|
|
807
|
-
{
|
|
808
|
-
areAllSelected,
|
|
809
|
-
areAnySelected,
|
|
810
|
-
selectAll,
|
|
811
|
-
selectAllDisabled
|
|
812
|
-
}
|
|
813
|
-
)
|
|
800
|
+
areAllSelected,
|
|
801
|
+
areAnySelected,
|
|
802
|
+
selectAll,
|
|
803
|
+
selectAllDisabled
|
|
814
804
|
}
|
|
815
805
|
),
|
|
816
806
|
options == null ? void 0 : options.map((option) => {
|
|
@@ -1144,55 +1134,7 @@ const getDefaultOptionLabel = (option) => {
|
|
|
1144
1134
|
const createOptionWithMultiple = (option, multiple) => {
|
|
1145
1135
|
return typeof option !== "object" || option === null ? { value: option, multiple } : { ...option, multiple };
|
|
1146
1136
|
};
|
|
1147
|
-
const getDefaultLimitTagsText = (more) => /* @__PURE__ */
|
|
1148
|
-
"+",
|
|
1149
|
-
more
|
|
1150
|
-
] });
|
|
1151
|
-
function createCounterRenderTags(formatCounter, options = [], size = "small", getOptionLabel = getDefaultOptionLabel) {
|
|
1152
|
-
const CounterRenderTags = (value) => {
|
|
1153
|
-
if (value.length === 0) {
|
|
1154
|
-
return null;
|
|
1155
|
-
}
|
|
1156
|
-
const selectedCount = value.length;
|
|
1157
|
-
const totalCount = options.length;
|
|
1158
|
-
const text = formatCounter({
|
|
1159
|
-
selectedCount,
|
|
1160
|
-
totalCount,
|
|
1161
|
-
selectedItems: value,
|
|
1162
|
-
allItems: options,
|
|
1163
|
-
getOptionLabel
|
|
1164
|
-
});
|
|
1165
|
-
return /* @__PURE__ */ jsx(
|
|
1166
|
-
Typography,
|
|
1167
|
-
{
|
|
1168
|
-
variant: size === "small" ? "body2" : "body1",
|
|
1169
|
-
component: "span",
|
|
1170
|
-
"data-testid": "counter-tag",
|
|
1171
|
-
sx: {
|
|
1172
|
-
ml: 1
|
|
1173
|
-
},
|
|
1174
|
-
children: text
|
|
1175
|
-
}
|
|
1176
|
-
);
|
|
1177
|
-
};
|
|
1178
|
-
return CounterRenderTags;
|
|
1179
|
-
}
|
|
1180
|
-
function createCounterFormatter(counterText, allText, showSingleItemText = true) {
|
|
1181
|
-
return ({
|
|
1182
|
-
selectedCount,
|
|
1183
|
-
totalCount,
|
|
1184
|
-
selectedItems,
|
|
1185
|
-
getOptionLabel
|
|
1186
|
-
}) => {
|
|
1187
|
-
if (selectedCount === totalCount && totalCount > 0) {
|
|
1188
|
-
return allText;
|
|
1189
|
-
} else if (selectedCount === 1 && showSingleItemText) {
|
|
1190
|
-
return getOptionLabel(selectedItems[0]);
|
|
1191
|
-
} else {
|
|
1192
|
-
return `${selectedCount} ${counterText}`;
|
|
1193
|
-
}
|
|
1194
|
-
};
|
|
1195
|
-
}
|
|
1137
|
+
const getDefaultLimitTagsText = (more) => /* @__PURE__ */ jsx("span", { "data-testid": "more-options-tag", children: `+${more}` });
|
|
1196
1138
|
function useAutocompleteRenderOption() {
|
|
1197
1139
|
const renderOption = (props, option, state, getOptionLabel, customIcon) => {
|
|
1198
1140
|
const {
|
|
@@ -1334,16 +1276,8 @@ function useMultipleAutocomplete({
|
|
|
1334
1276
|
options,
|
|
1335
1277
|
value,
|
|
1336
1278
|
onChange,
|
|
1337
|
-
getOptionLabel
|
|
1338
|
-
size,
|
|
1339
|
-
counterFormatter,
|
|
1340
|
-
counterText,
|
|
1341
|
-
allSelectedText
|
|
1279
|
+
getOptionLabel
|
|
1342
1280
|
}) {
|
|
1343
|
-
const intl = useIntl();
|
|
1344
|
-
const intlConfig = useImperativeIntl(intl);
|
|
1345
|
-
const defaultCounterText = counterText || intlConfig.formatMessage({ id: "c4r.form.selected" });
|
|
1346
|
-
const defaultAllSelectedText = allSelectedText || intlConfig.formatMessage({ id: "c4r.form.allSelected" });
|
|
1347
1281
|
const [multipleValue, setMultipleValue] = useState(
|
|
1348
1282
|
Array.isArray(value) ? value : value ? [value] : []
|
|
1349
1283
|
);
|
|
@@ -1377,23 +1311,13 @@ function useMultipleAutocomplete({
|
|
|
1377
1311
|
getOptionLabel
|
|
1378
1312
|
);
|
|
1379
1313
|
};
|
|
1380
|
-
const getCounterRenderTags = () => {
|
|
1381
|
-
const formatter = counterFormatter || createCounterFormatter(defaultCounterText, defaultAllSelectedText);
|
|
1382
|
-
return createCounterRenderTags(
|
|
1383
|
-
formatter,
|
|
1384
|
-
options,
|
|
1385
|
-
size,
|
|
1386
|
-
getOptionLabel ? (option) => getOptionLabel(option) : void 0
|
|
1387
|
-
);
|
|
1388
|
-
};
|
|
1389
1314
|
return {
|
|
1390
1315
|
multipleValue,
|
|
1391
1316
|
allSelected,
|
|
1392
1317
|
someSelected,
|
|
1393
1318
|
handleSelectAll,
|
|
1394
1319
|
handleChange,
|
|
1395
|
-
multipleRenderOption
|
|
1396
|
-
getCounterRenderTags
|
|
1320
|
+
multipleRenderOption
|
|
1397
1321
|
};
|
|
1398
1322
|
}
|
|
1399
1323
|
function _ListboxWithFilter({
|
|
@@ -1403,50 +1327,15 @@ function _ListboxWithFilter({
|
|
|
1403
1327
|
someSelected,
|
|
1404
1328
|
handleSelectAll = () => void 0,
|
|
1405
1329
|
multiple,
|
|
1406
|
-
extended,
|
|
1407
|
-
itemHeight,
|
|
1408
|
-
maxListHeight = MENU_LIST_MAX_SIZE,
|
|
1409
1330
|
...otherProps
|
|
1410
1331
|
}, ref) {
|
|
1411
|
-
const childrenArray = useMemo(() => {
|
|
1412
|
-
return React.Children.toArray(children);
|
|
1413
|
-
}, [children]);
|
|
1414
|
-
const defaultItemHeight = itemHeight ?? (extended ? MENU_ITEM_SIZE_EXTENDED : MENU_ITEM_SIZE_DEFAULT);
|
|
1415
|
-
const listboxHeight = useMemo(() => {
|
|
1416
|
-
const filterHeight = showFilters && multiple ? MENU_ITEM_SIZE_EXTENDED : 0;
|
|
1417
|
-
const availableHeight = maxListHeight - filterHeight;
|
|
1418
|
-
const calculatedHeight = Math.min(
|
|
1419
|
-
childrenArray.length * defaultItemHeight,
|
|
1420
|
-
availableHeight
|
|
1421
|
-
);
|
|
1422
|
-
return Math.max(calculatedHeight, defaultItemHeight + 8);
|
|
1423
|
-
}, [
|
|
1424
|
-
showFilters,
|
|
1425
|
-
multiple,
|
|
1426
|
-
maxListHeight,
|
|
1427
|
-
childrenArray.length,
|
|
1428
|
-
defaultItemHeight
|
|
1429
|
-
]);
|
|
1430
|
-
const renderItem = ({
|
|
1431
|
-
index,
|
|
1432
|
-
style
|
|
1433
|
-
}) => {
|
|
1434
|
-
const child = childrenArray[index];
|
|
1435
|
-
if (!child) return null;
|
|
1436
|
-
return /* @__PURE__ */ jsx("div", { style, children: child });
|
|
1437
|
-
};
|
|
1438
1332
|
return /* @__PURE__ */ jsxs(
|
|
1439
1333
|
"ul",
|
|
1440
1334
|
{
|
|
1441
1335
|
ref,
|
|
1442
1336
|
...otherProps,
|
|
1443
1337
|
role: "listbox",
|
|
1444
|
-
"data-list-height": listboxHeight,
|
|
1445
|
-
"data-item-height": defaultItemHeight,
|
|
1446
1338
|
"aria-multiselectable": multiple,
|
|
1447
|
-
style: {
|
|
1448
|
-
maxHeight: maxListHeight + defaultItemHeight
|
|
1449
|
-
},
|
|
1450
1339
|
children: [
|
|
1451
1340
|
showFilters && multiple && /* @__PURE__ */ jsx(
|
|
1452
1341
|
MenuItemFilter,
|
|
@@ -1456,16 +1345,7 @@ function _ListboxWithFilter({
|
|
|
1456
1345
|
selectAll: handleSelectAll
|
|
1457
1346
|
}
|
|
1458
1347
|
),
|
|
1459
|
-
|
|
1460
|
-
FixedSizeList,
|
|
1461
|
-
{
|
|
1462
|
-
height: listboxHeight,
|
|
1463
|
-
width: "100%",
|
|
1464
|
-
itemCount: childrenArray.length,
|
|
1465
|
-
itemSize: defaultItemHeight,
|
|
1466
|
-
children: renderItem
|
|
1467
|
-
}
|
|
1468
|
-
)
|
|
1348
|
+
children
|
|
1469
1349
|
]
|
|
1470
1350
|
}
|
|
1471
1351
|
);
|
|
@@ -1480,18 +1360,10 @@ function _CreatableAutocomplete({
|
|
|
1480
1360
|
disabled,
|
|
1481
1361
|
loading,
|
|
1482
1362
|
showFilters,
|
|
1483
|
-
showCounter = false,
|
|
1484
|
-
counterFormatter,
|
|
1485
|
-
counterText,
|
|
1486
|
-
allSelectedText,
|
|
1487
1363
|
options = [],
|
|
1488
1364
|
value,
|
|
1489
1365
|
onChange,
|
|
1490
1366
|
getLimitTagsText,
|
|
1491
|
-
renderTags,
|
|
1492
|
-
itemHeight,
|
|
1493
|
-
maxListHeight,
|
|
1494
|
-
extended,
|
|
1495
1367
|
...props
|
|
1496
1368
|
}, ref) {
|
|
1497
1369
|
const { freeSolo = true, ...otherProps } = props;
|
|
@@ -1500,17 +1372,11 @@ function _CreatableAutocomplete({
|
|
|
1500
1372
|
allSelected,
|
|
1501
1373
|
someSelected,
|
|
1502
1374
|
handleSelectAll,
|
|
1503
|
-
handleChange
|
|
1504
|
-
getCounterRenderTags
|
|
1375
|
+
handleChange
|
|
1505
1376
|
} = useMultipleAutocomplete({
|
|
1506
1377
|
options,
|
|
1507
1378
|
value,
|
|
1508
|
-
onChange
|
|
1509
|
-
getOptionLabel,
|
|
1510
|
-
size: props.size,
|
|
1511
|
-
counterFormatter,
|
|
1512
|
-
counterText,
|
|
1513
|
-
allSelectedText
|
|
1379
|
+
onChange
|
|
1514
1380
|
});
|
|
1515
1381
|
const {
|
|
1516
1382
|
creatableFilterOptions,
|
|
@@ -1522,17 +1388,6 @@ function _CreatableAutocomplete({
|
|
|
1522
1388
|
newItemIcon,
|
|
1523
1389
|
multiple
|
|
1524
1390
|
});
|
|
1525
|
-
const listboxProps = {
|
|
1526
|
-
showFilters,
|
|
1527
|
-
allSelected,
|
|
1528
|
-
someSelected,
|
|
1529
|
-
handleSelectAll,
|
|
1530
|
-
multiple,
|
|
1531
|
-
itemHeight,
|
|
1532
|
-
maxListHeight,
|
|
1533
|
-
extended
|
|
1534
|
-
};
|
|
1535
|
-
const finalRenderTags = showCounter && multiple && !renderTags ? getCounterRenderTags() : renderTags;
|
|
1536
1391
|
return /* @__PURE__ */ jsx(
|
|
1537
1392
|
Autocomplete$1,
|
|
1538
1393
|
{
|
|
@@ -1544,13 +1399,18 @@ function _CreatableAutocomplete({
|
|
|
1544
1399
|
filterOptions: creatableFilterOptions,
|
|
1545
1400
|
getOptionLabel: creatableOptionLabel,
|
|
1546
1401
|
renderOption: creatableRenderOption,
|
|
1547
|
-
renderTags: finalRenderTags,
|
|
1548
1402
|
freeSolo,
|
|
1549
1403
|
forcePopupIcon: true,
|
|
1550
1404
|
multiple,
|
|
1551
1405
|
disableCloseOnSelect: disableCloseOnSelect ?? multiple,
|
|
1552
1406
|
ListboxComponent: ListboxWithFilter,
|
|
1553
|
-
ListboxProps:
|
|
1407
|
+
ListboxProps: {
|
|
1408
|
+
showFilters,
|
|
1409
|
+
allSelected,
|
|
1410
|
+
someSelected,
|
|
1411
|
+
handleSelectAll,
|
|
1412
|
+
multiple
|
|
1413
|
+
},
|
|
1554
1414
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1555
1415
|
disabled: disabled || loading,
|
|
1556
1416
|
popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
|
|
@@ -1565,19 +1425,11 @@ function _MultipleAutocomplete({
|
|
|
1565
1425
|
disabled,
|
|
1566
1426
|
loading,
|
|
1567
1427
|
showFilters,
|
|
1568
|
-
showCounter = false,
|
|
1569
|
-
counterFormatter,
|
|
1570
|
-
counterText,
|
|
1571
|
-
allSelectedText,
|
|
1572
1428
|
options,
|
|
1573
1429
|
value,
|
|
1574
1430
|
onChange,
|
|
1575
1431
|
getOptionLabel,
|
|
1576
1432
|
getLimitTagsText,
|
|
1577
|
-
renderTags,
|
|
1578
|
-
itemHeight,
|
|
1579
|
-
maxListHeight,
|
|
1580
|
-
extended,
|
|
1581
1433
|
...props
|
|
1582
1434
|
}, ref) {
|
|
1583
1435
|
const {
|
|
@@ -1586,29 +1438,13 @@ function _MultipleAutocomplete({
|
|
|
1586
1438
|
someSelected,
|
|
1587
1439
|
handleSelectAll,
|
|
1588
1440
|
handleChange,
|
|
1589
|
-
multipleRenderOption
|
|
1590
|
-
getCounterRenderTags
|
|
1441
|
+
multipleRenderOption
|
|
1591
1442
|
} = useMultipleAutocomplete({
|
|
1592
1443
|
options,
|
|
1593
1444
|
value,
|
|
1594
1445
|
onChange,
|
|
1595
|
-
getOptionLabel
|
|
1596
|
-
size: props.size,
|
|
1597
|
-
counterFormatter,
|
|
1598
|
-
counterText,
|
|
1599
|
-
allSelectedText
|
|
1446
|
+
getOptionLabel
|
|
1600
1447
|
});
|
|
1601
|
-
const listboxProps = {
|
|
1602
|
-
showFilters,
|
|
1603
|
-
allSelected,
|
|
1604
|
-
someSelected,
|
|
1605
|
-
handleSelectAll,
|
|
1606
|
-
multiple: true,
|
|
1607
|
-
itemHeight,
|
|
1608
|
-
maxListHeight,
|
|
1609
|
-
extended
|
|
1610
|
-
};
|
|
1611
|
-
const finalRenderTags = showCounter && !renderTags ? getCounterRenderTags() : renderTags;
|
|
1612
1448
|
return /* @__PURE__ */ jsx(
|
|
1613
1449
|
Autocomplete$1,
|
|
1614
1450
|
{
|
|
@@ -1619,9 +1455,14 @@ function _MultipleAutocomplete({
|
|
|
1619
1455
|
onChange: handleChange,
|
|
1620
1456
|
getOptionLabel,
|
|
1621
1457
|
renderOption: renderOption ?? multipleRenderOption,
|
|
1622
|
-
renderTags: finalRenderTags,
|
|
1623
1458
|
ListboxComponent: ListboxWithFilter,
|
|
1624
|
-
ListboxProps:
|
|
1459
|
+
ListboxProps: {
|
|
1460
|
+
showFilters,
|
|
1461
|
+
allSelected,
|
|
1462
|
+
someSelected,
|
|
1463
|
+
handleSelectAll,
|
|
1464
|
+
multiple: true
|
|
1465
|
+
},
|
|
1625
1466
|
multiple: true,
|
|
1626
1467
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1627
1468
|
disableCloseOnSelect,
|
|
@@ -4903,8 +4744,6 @@ export {
|
|
|
4903
4744
|
UploadField,
|
|
4904
4745
|
UploadFieldBase,
|
|
4905
4746
|
copyString,
|
|
4906
|
-
createCounterFormatter,
|
|
4907
|
-
createCounterRenderTags,
|
|
4908
4747
|
dialogDimensionsBySize,
|
|
4909
4748
|
useCopyValue
|
|
4910
4749
|
};
|
package/dist/theme/index.cjs
CHANGED
|
@@ -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-
|
|
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-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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;
|
package/dist/theme/index.js
CHANGED
|
@@ -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,
|
|
5
|
-
import {
|
|
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-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,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,
|
|
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,
|
|
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"}
|
|
@@ -1,35 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type ListboxWithFilterProps = HTMLAttributes<HTMLElement> & {
|
|
3
3
|
showFilters?: boolean;
|
|
4
4
|
allSelected?: boolean;
|
|
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
|
-
declare const ListboxWithFilter:
|
|
9
|
+
declare const ListboxWithFilter: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
19
10
|
showFilters?: boolean;
|
|
20
11
|
allSelected?: boolean;
|
|
21
12
|
someSelected?: boolean;
|
|
22
13
|
handleSelectAll?: () => void;
|
|
23
14
|
multiple?: boolean;
|
|
24
|
-
|
|
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
|
-
} & React.RefAttributes<HTMLUListElement>>;
|
|
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,
|
|
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,
|
|
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>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleAutocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Autocomplete/MultipleAutocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAc,MAAM,OAAO,CAAA;AAChD,OAAO,EACL,WAAW,EAGZ,MAAM,eAAe,CAAA;AAMtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAGnD,iBAAS,qBAAqB,CAC5B,KAAK,EACL,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EAC3C,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,oBAA2B,EAC3B,QAAQ,EACR,OAAO,EACP,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"MultipleAutocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Autocomplete/MultipleAutocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAc,MAAM,OAAO,CAAA;AAChD,OAAO,EACL,WAAW,EAGZ,MAAM,eAAe,CAAA;AAMtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAGnD,iBAAS,qBAAqB,CAC5B,KAAK,EACL,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EAC3C,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,oBAA2B,EAC3B,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAO,EACP,KAAK,EACL,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,yBAAyB,CAC1B,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,aAAa,CACd,EACD,GAAG,EAAE,YAAY,CAAC,WAAW,CAAC,2CA6C/B;AAID,QAAA,MAAM,oBAAoB,EAAwC,CAChE,KAAK,EACL,QAA2C,SAA1B,OAAO,GAAG,SAAS,GAAG,IAAI,EAC3C,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,yBAAyB,CAC9B,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,qBAAqB,CAAC,CAAA;AAE7C,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as Autocomplete } from './Autocomplete';
|
|
2
2
|
export { default as CreatableAutocomplete } from './CreatableAutocomplete';
|
|
3
3
|
export { default as MultipleAutocomplete } from './MultipleAutocomplete';
|
|
4
|
-
export { createCounterRenderTags, createCounterFormatter } from './utils';
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|