@carto/meridian-ds 1.4.8-alpha-external-link.5 → 1.5.0-alpha-virtual-autocomplete.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -4
- package/dist/{Alert-CmDToT57.cjs → Alert-BzEgeyQJ.cjs} +1 -72
- package/dist/{Alert-2L0Hy8lT.js → Alert-CnaTtNJd.js} +3 -74
- package/dist/{MenuItem-CXnnE5lK.js → MenuItem-D6wJym7Z.js} +9 -5
- package/dist/{MenuItem-Br2jY2lt.cjs → MenuItem-lAxlHrDp.cjs} +9 -5
- package/dist/{TablePaginationActions-b5wP_uRE.js → TablePaginationActions-Cz5Hbi6N.js} +12 -7
- package/dist/{TablePaginationActions-CAmwcyTy.cjs → TablePaginationActions-mbbjzV6Y.cjs} +11 -6
- package/dist/components/index.cjs +163 -55
- package/dist/components/index.js +164 -57
- package/dist/theme/index.cjs +13 -9
- package/dist/theme/index.js +14 -10
- package/dist/types/components/atoms/Button.d.ts +0 -11
- package/dist/types/components/atoms/Button.d.ts.map +1 -1
- package/dist/types/components/atoms/index.d.ts +0 -2
- package/dist/types/components/atoms/index.d.ts.map +1 -1
- 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 +18 -0
- 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/types.d.ts +61 -3
- package/dist/types/components/molecules/Autocomplete/types.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts +3 -1
- package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/utils.d.ts +9 -0
- 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/localization/en.d.ts +0 -1
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +0 -1
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +0 -1
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +0 -3
- package/dist/types/localization/index.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 +4 -0
- package/dist/types/theme/theme-constants.d.ts.map +1 -1
- package/dist/types/theme/types.d.ts +0 -6
- package/dist/types/theme/types.d.ts.map +1 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts +1 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
- package/dist/widgets/index.cjs +5 -5
- package/dist/widgets/index.js +5 -5
- package/package.json +1 -1
- package/dist/types/components/atoms/Link.d.ts +0 -14
- package/dist/types/components/atoms/Link.d.ts.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
import { useIntl } from "react-intl";
|
|
4
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";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a } from "../TablePaginationActions-b5wP_uRE.js";
|
|
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";
|
|
8
6
|
import { A as ArrowDown } from "../ArrowDown-CY_wMVJT.js";
|
|
9
7
|
import { A as ArrowUp, O as OpenDiagonallyRight, C as CloseDiagonallyRight } from "../OpenDiagonallyRight-CSm5GYYJ.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { useIntl } from "react-intl";
|
|
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";
|
|
12
11
|
import "cartocolor";
|
|
13
|
-
import { M as MenuItem$1 } from "../MenuItem-
|
|
12
|
+
import { M as MenuItem$1 } from "../MenuItem-D6wJym7Z.js";
|
|
13
|
+
import { FixedSizeList } from "react-window";
|
|
14
14
|
import { DatePicker as DatePicker$1 } from "@mui/x-date-pickers/DatePicker";
|
|
15
15
|
import { PickersDay as PickersDay$1 } from "@mui/x-date-pickers";
|
|
16
16
|
import { TimePicker as TimePicker$1 } from "@mui/x-date-pickers/TimePicker";
|
|
@@ -61,13 +61,8 @@ function _Button({
|
|
|
61
61
|
startIcon,
|
|
62
62
|
endIcon,
|
|
63
63
|
loadingPosition,
|
|
64
|
-
external,
|
|
65
|
-
showExternalIcon = true,
|
|
66
|
-
"aria-label": ariaLabel,
|
|
67
64
|
...otherProps
|
|
68
65
|
}, ref) {
|
|
69
|
-
const intl = useIntl();
|
|
70
|
-
const intlConfig = useImperativeIntl(intl);
|
|
71
66
|
const defaultIconLoader = /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" });
|
|
72
67
|
const isDefaultLoading = loading && loadingPosition === void 0;
|
|
73
68
|
const renderContent = () => {
|
|
@@ -89,11 +84,7 @@ function _Button({
|
|
|
89
84
|
}
|
|
90
85
|
return void 0;
|
|
91
86
|
}
|
|
92
|
-
|
|
93
|
-
return startIcon;
|
|
94
|
-
} else {
|
|
95
|
-
return endIcon || (external && showExternalIcon && otherProps.href ? /* @__PURE__ */ jsx(OpenInNewOutlined, {}) : void 0);
|
|
96
|
-
}
|
|
87
|
+
return position === "start" ? startIcon : endIcon;
|
|
97
88
|
};
|
|
98
89
|
return /* @__PURE__ */ jsx(
|
|
99
90
|
Button$1,
|
|
@@ -103,13 +94,6 @@ function _Button({
|
|
|
103
94
|
endIcon: getIconForPosition("end"),
|
|
104
95
|
...otherProps,
|
|
105
96
|
role: otherProps.href ? "link" : "button",
|
|
106
|
-
...otherProps.href && external && {
|
|
107
|
-
target: "_blank",
|
|
108
|
-
rel: "noopener noreferrer"
|
|
109
|
-
},
|
|
110
|
-
"aria-label": ariaLabel || (external && otherProps.href ? `${children == null ? void 0 : children.toString()} (${intlConfig.formatMessage({
|
|
111
|
-
id: "c4r.button.opensInNewTab"
|
|
112
|
-
})})` : void 0),
|
|
113
97
|
ref,
|
|
114
98
|
children: /* @__PURE__ */ jsx(Typography, { variant: "inherit", color: "inherit", noWrap: true, component: "span", children: renderContent() })
|
|
115
99
|
}
|
|
@@ -483,10 +467,10 @@ function ToggleButtonGroup({
|
|
|
483
467
|
}
|
|
484
468
|
const StyledMenu = styled(Menu$2, {
|
|
485
469
|
shouldForwardProp: (prop) => !["extended", "width", "height"].includes(prop)
|
|
486
|
-
})(({
|
|
470
|
+
})(({ extended, width, height }) => ({
|
|
487
471
|
...extended && {
|
|
488
472
|
".MuiMenuItem-root": {
|
|
489
|
-
minHeight:
|
|
473
|
+
minHeight: MENU_ITEM_SIZE_EXTENDED
|
|
490
474
|
}
|
|
491
475
|
},
|
|
492
476
|
...width && {
|
|
@@ -526,10 +510,10 @@ function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
|
|
|
526
510
|
const Menu$1 = forwardRef(_Menu);
|
|
527
511
|
const StyledMenuList = styled(MenuList$1, {
|
|
528
512
|
shouldForwardProp: (prop) => !["extended", "width", "height"].includes(prop)
|
|
529
|
-
})(({
|
|
513
|
+
})(({ extended, width, height }) => ({
|
|
530
514
|
...extended && {
|
|
531
515
|
".MuiMenuItem-root": {
|
|
532
|
-
minHeight:
|
|
516
|
+
minHeight: MENU_ITEM_SIZE_EXTENDED
|
|
533
517
|
}
|
|
534
518
|
},
|
|
535
519
|
"&.MuiList-root": {
|
|
@@ -560,7 +544,8 @@ function _MenuList({ extended, width, height, ...otherProps }, ref) {
|
|
|
560
544
|
}
|
|
561
545
|
const MenuList = forwardRef(_MenuList);
|
|
562
546
|
const StyledMenuItem$1 = styled(MenuItem$1)(() => ({
|
|
563
|
-
marginTop: "0 !important"
|
|
547
|
+
marginTop: "0 !important",
|
|
548
|
+
marginBottom: "0 !important"
|
|
564
549
|
}));
|
|
565
550
|
const LinkFilter = styled(Link)(
|
|
566
551
|
({ disabled, theme }) => ({
|
|
@@ -800,12 +785,20 @@ function _MultipleSelectField({
|
|
|
800
785
|
},
|
|
801
786
|
children: [
|
|
802
787
|
showFilters && /* @__PURE__ */ jsx(
|
|
803
|
-
|
|
788
|
+
Box,
|
|
804
789
|
{
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
790
|
+
sx: {
|
|
791
|
+
mb: 1
|
|
792
|
+
},
|
|
793
|
+
children: /* @__PURE__ */ jsx(
|
|
794
|
+
MenuItemFilter,
|
|
795
|
+
{
|
|
796
|
+
areAllSelected,
|
|
797
|
+
areAnySelected,
|
|
798
|
+
selectAll,
|
|
799
|
+
selectAllDisabled
|
|
800
|
+
}
|
|
801
|
+
)
|
|
809
802
|
}
|
|
810
803
|
),
|
|
811
804
|
options == null ? void 0 : options.map((option) => {
|
|
@@ -1139,7 +1132,40 @@ const getDefaultOptionLabel = (option) => {
|
|
|
1139
1132
|
const createOptionWithMultiple = (option, multiple) => {
|
|
1140
1133
|
return typeof option !== "object" || option === null ? { value: option, multiple } : { ...option, multiple };
|
|
1141
1134
|
};
|
|
1142
|
-
const getDefaultLimitTagsText = (more) => /* @__PURE__ */
|
|
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
|
+
}
|
|
1143
1169
|
function useAutocompleteRenderOption() {
|
|
1144
1170
|
const renderOption = (props, option, state, getOptionLabel, customIcon) => {
|
|
1145
1171
|
const {
|
|
@@ -1281,7 +1307,8 @@ function useMultipleAutocomplete({
|
|
|
1281
1307
|
options,
|
|
1282
1308
|
value,
|
|
1283
1309
|
onChange,
|
|
1284
|
-
getOptionLabel
|
|
1310
|
+
getOptionLabel,
|
|
1311
|
+
size
|
|
1285
1312
|
}) {
|
|
1286
1313
|
const [multipleValue, setMultipleValue] = useState(
|
|
1287
1314
|
Array.isArray(value) ? value : value ? [value] : []
|
|
@@ -1316,13 +1343,20 @@ function useMultipleAutocomplete({
|
|
|
1316
1343
|
getOptionLabel
|
|
1317
1344
|
);
|
|
1318
1345
|
};
|
|
1346
|
+
const getCounterRenderTags = () => createCounterRenderTags(
|
|
1347
|
+
"selected",
|
|
1348
|
+
options,
|
|
1349
|
+
size,
|
|
1350
|
+
getOptionLabel ? (option) => getOptionLabel(option) : void 0
|
|
1351
|
+
);
|
|
1319
1352
|
return {
|
|
1320
1353
|
multipleValue,
|
|
1321
1354
|
allSelected,
|
|
1322
1355
|
someSelected,
|
|
1323
1356
|
handleSelectAll,
|
|
1324
1357
|
handleChange,
|
|
1325
|
-
multipleRenderOption
|
|
1358
|
+
multipleRenderOption,
|
|
1359
|
+
getCounterRenderTags
|
|
1326
1360
|
};
|
|
1327
1361
|
}
|
|
1328
1362
|
function _ListboxWithFilter({
|
|
@@ -1332,15 +1366,53 @@ function _ListboxWithFilter({
|
|
|
1332
1366
|
someSelected,
|
|
1333
1367
|
handleSelectAll = () => void 0,
|
|
1334
1368
|
multiple,
|
|
1369
|
+
extended,
|
|
1370
|
+
itemHeight,
|
|
1371
|
+
maxListHeight = MENU_LIST_MAX_SIZE,
|
|
1335
1372
|
...otherProps
|
|
1336
1373
|
}, 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
|
+
};
|
|
1337
1404
|
return /* @__PURE__ */ jsxs(
|
|
1338
1405
|
"ul",
|
|
1339
1406
|
{
|
|
1340
1407
|
ref,
|
|
1341
1408
|
...otherProps,
|
|
1342
1409
|
role: "listbox",
|
|
1410
|
+
"data-list-height": listboxHeight,
|
|
1411
|
+
"data-item-height": defaultItemHeight,
|
|
1343
1412
|
"aria-multiselectable": multiple,
|
|
1413
|
+
style: {
|
|
1414
|
+
maxHeight: maxListHeight + defaultItemHeight
|
|
1415
|
+
},
|
|
1344
1416
|
children: [
|
|
1345
1417
|
showFilters && multiple && /* @__PURE__ */ jsx(
|
|
1346
1418
|
MenuItemFilter,
|
|
@@ -1350,7 +1422,16 @@ function _ListboxWithFilter({
|
|
|
1350
1422
|
selectAll: handleSelectAll
|
|
1351
1423
|
}
|
|
1352
1424
|
),
|
|
1353
|
-
|
|
1425
|
+
/* @__PURE__ */ jsx(
|
|
1426
|
+
FixedSizeList,
|
|
1427
|
+
{
|
|
1428
|
+
height: listboxHeight,
|
|
1429
|
+
width: "100%",
|
|
1430
|
+
itemCount: childrenArray.length,
|
|
1431
|
+
itemSize: defaultItemHeight,
|
|
1432
|
+
children: renderItem
|
|
1433
|
+
}
|
|
1434
|
+
)
|
|
1354
1435
|
]
|
|
1355
1436
|
}
|
|
1356
1437
|
);
|
|
@@ -1365,10 +1446,15 @@ function _CreatableAutocomplete({
|
|
|
1365
1446
|
disabled,
|
|
1366
1447
|
loading,
|
|
1367
1448
|
showFilters,
|
|
1449
|
+
showCounter = false,
|
|
1368
1450
|
options = [],
|
|
1369
1451
|
value,
|
|
1370
1452
|
onChange,
|
|
1371
1453
|
getLimitTagsText,
|
|
1454
|
+
renderTags,
|
|
1455
|
+
itemHeight,
|
|
1456
|
+
maxListHeight,
|
|
1457
|
+
extended,
|
|
1372
1458
|
...props
|
|
1373
1459
|
}, ref) {
|
|
1374
1460
|
const { freeSolo = true, ...otherProps } = props;
|
|
@@ -1377,11 +1463,14 @@ function _CreatableAutocomplete({
|
|
|
1377
1463
|
allSelected,
|
|
1378
1464
|
someSelected,
|
|
1379
1465
|
handleSelectAll,
|
|
1380
|
-
handleChange
|
|
1466
|
+
handleChange,
|
|
1467
|
+
getCounterRenderTags
|
|
1381
1468
|
} = useMultipleAutocomplete({
|
|
1382
1469
|
options,
|
|
1383
1470
|
value,
|
|
1384
|
-
onChange
|
|
1471
|
+
onChange,
|
|
1472
|
+
getOptionLabel,
|
|
1473
|
+
size: props.size
|
|
1385
1474
|
});
|
|
1386
1475
|
const {
|
|
1387
1476
|
creatableFilterOptions,
|
|
@@ -1393,6 +1482,17 @@ function _CreatableAutocomplete({
|
|
|
1393
1482
|
newItemIcon,
|
|
1394
1483
|
multiple
|
|
1395
1484
|
});
|
|
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;
|
|
1396
1496
|
return /* @__PURE__ */ jsx(
|
|
1397
1497
|
Autocomplete$1,
|
|
1398
1498
|
{
|
|
@@ -1404,18 +1504,13 @@ function _CreatableAutocomplete({
|
|
|
1404
1504
|
filterOptions: creatableFilterOptions,
|
|
1405
1505
|
getOptionLabel: creatableOptionLabel,
|
|
1406
1506
|
renderOption: creatableRenderOption,
|
|
1507
|
+
renderTags: finalRenderTags,
|
|
1407
1508
|
freeSolo,
|
|
1408
1509
|
forcePopupIcon: true,
|
|
1409
1510
|
multiple,
|
|
1410
1511
|
disableCloseOnSelect: disableCloseOnSelect ?? multiple,
|
|
1411
1512
|
ListboxComponent: ListboxWithFilter,
|
|
1412
|
-
ListboxProps:
|
|
1413
|
-
showFilters,
|
|
1414
|
-
allSelected,
|
|
1415
|
-
someSelected,
|
|
1416
|
-
handleSelectAll,
|
|
1417
|
-
multiple
|
|
1418
|
-
},
|
|
1513
|
+
ListboxProps: listboxProps,
|
|
1419
1514
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1420
1515
|
disabled: disabled || loading,
|
|
1421
1516
|
popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
|
|
@@ -1430,11 +1525,16 @@ function _MultipleAutocomplete({
|
|
|
1430
1525
|
disabled,
|
|
1431
1526
|
loading,
|
|
1432
1527
|
showFilters,
|
|
1528
|
+
showCounter = false,
|
|
1433
1529
|
options,
|
|
1434
1530
|
value,
|
|
1435
1531
|
onChange,
|
|
1436
1532
|
getOptionLabel,
|
|
1437
1533
|
getLimitTagsText,
|
|
1534
|
+
renderTags,
|
|
1535
|
+
itemHeight,
|
|
1536
|
+
maxListHeight,
|
|
1537
|
+
extended,
|
|
1438
1538
|
...props
|
|
1439
1539
|
}, ref) {
|
|
1440
1540
|
const {
|
|
@@ -1443,13 +1543,26 @@ function _MultipleAutocomplete({
|
|
|
1443
1543
|
someSelected,
|
|
1444
1544
|
handleSelectAll,
|
|
1445
1545
|
handleChange,
|
|
1446
|
-
multipleRenderOption
|
|
1546
|
+
multipleRenderOption,
|
|
1547
|
+
getCounterRenderTags
|
|
1447
1548
|
} = useMultipleAutocomplete({
|
|
1448
1549
|
options,
|
|
1449
1550
|
value,
|
|
1450
1551
|
onChange,
|
|
1451
|
-
getOptionLabel
|
|
1552
|
+
getOptionLabel,
|
|
1553
|
+
size: props.size
|
|
1452
1554
|
});
|
|
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;
|
|
1453
1566
|
return /* @__PURE__ */ jsx(
|
|
1454
1567
|
Autocomplete$1,
|
|
1455
1568
|
{
|
|
@@ -1460,14 +1573,9 @@ function _MultipleAutocomplete({
|
|
|
1460
1573
|
onChange: handleChange,
|
|
1461
1574
|
getOptionLabel,
|
|
1462
1575
|
renderOption: renderOption ?? multipleRenderOption,
|
|
1576
|
+
renderTags: finalRenderTags,
|
|
1463
1577
|
ListboxComponent: ListboxWithFilter,
|
|
1464
|
-
ListboxProps:
|
|
1465
|
-
showFilters,
|
|
1466
|
-
allSelected,
|
|
1467
|
-
someSelected,
|
|
1468
|
-
handleSelectAll,
|
|
1469
|
-
multiple: true
|
|
1470
|
-
},
|
|
1578
|
+
ListboxProps: listboxProps,
|
|
1471
1579
|
multiple: true,
|
|
1472
1580
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1473
1581
|
disableCloseOnSelect,
|
|
@@ -4730,7 +4838,6 @@ export {
|
|
|
4730
4838
|
DialogStepper,
|
|
4731
4839
|
IconButton$1 as IconButton,
|
|
4732
4840
|
LabelWithIndicator,
|
|
4733
|
-
L as Link,
|
|
4734
4841
|
Menu$1 as Menu,
|
|
4735
4842
|
MenuItem$1 as MenuItem,
|
|
4736
4843
|
MenuItemFilter,
|
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-mbbjzV6Y.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-lAxlHrDp.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: TablePaginationActions.MENU_ITEM_SIZE_DEFAULT,
|
|
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: TablePaginationActions.MENU_LIST_MAX_SIZE,
|
|
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: TablePaginationActions.MENU_ITEM_SIZE_DEFAULT,
|
|
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: TablePaginationActions.MENU_ITEM_SIZE_DEFAULT
|
|
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: TablePaginationActions.MENU_ITEM_SIZE_DENSE,
|
|
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: TablePaginationActions.MENU_ITEM_SIZE_DENSE
|
|
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: TablePaginationActions.MENU_LIST_MAX_SIZE,
|
|
2162
2162
|
// 312px, defined by design
|
|
2163
2163
|
overflowY: "auto",
|
|
2164
2164
|
"&:focus-visible": {
|
|
@@ -3127,6 +3127,10 @@ 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;
|
|
3130
3134
|
exports.NOTIFICATION_DURATION_IN_MS = TablePaginationActions.NOTIFICATION_DURATION_IN_MS;
|
|
3131
3135
|
exports.SPACING = TablePaginationActions.SPACING;
|
|
3132
3136
|
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, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../TablePaginationActions-
|
|
5
|
-
import { N } from "../TablePaginationActions-
|
|
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";
|
|
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-D6wJym7Z.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: MENU_ITEM_SIZE_DEFAULT,
|
|
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: MENU_LIST_MAX_SIZE,
|
|
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: MENU_ITEM_SIZE_DEFAULT,
|
|
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: MENU_ITEM_SIZE_DEFAULT
|
|
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: MENU_ITEM_SIZE_DENSE,
|
|
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: MENU_ITEM_SIZE_DENSE
|
|
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: MENU_LIST_MAX_SIZE,
|
|
2162
2162
|
// 312px, defined by design
|
|
2163
2163
|
overflowY: "auto",
|
|
2164
2164
|
"&:focus-visible": {
|
|
@@ -3128,6 +3128,10 @@ 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,
|
|
3131
3135
|
N as NOTIFICATION_DURATION_IN_MS,
|
|
3132
3136
|
SPACING,
|
|
3133
3137
|
cartoThemeOptions,
|
|
@@ -9,17 +9,6 @@ export type ButtonProps = MUIButtonProps<React.ElementType, {
|
|
|
9
9
|
* - 'end': Shows spinner at the end position, replacing the endIcon
|
|
10
10
|
*/
|
|
11
11
|
loadingPosition?: 'start' | 'end';
|
|
12
|
-
/**
|
|
13
|
-
* Whether the button is external. If true, the button will open in a new tab.
|
|
14
|
-
* Needs to have a href prop to be considered external.
|
|
15
|
-
*/
|
|
16
|
-
external?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Whether to show the external icon. If true, the button will show an external icon.
|
|
19
|
-
* Needs to have a href prop to be considered external.
|
|
20
|
-
*/
|
|
21
|
-
showExternalIcon?: boolean;
|
|
22
|
-
'aria-label'?: string;
|
|
23
12
|
}>;
|
|
24
13
|
declare const Button: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
25
14
|
export default Button;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,IAAI,cAAc,EAK9B,MAAM,eAAe,CAAA;AAmBtB,MAAM,MAAM,WAAW,GAAG,cAAc,CACtC,KAAK,CAAC,WAAW,EACjB;IACE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CAClC,CACF,CAAA;AAoED,QAAA,MAAM,MAAM,wHAAsB,CAAA;AAClC,eAAe,MAAM,CAAA"}
|
|
@@ -6,7 +6,6 @@ export { default as SelectField } from './SelectField';
|
|
|
6
6
|
export { default as ToggleButtonGroup } from './ToggleButtonGroup';
|
|
7
7
|
export { default as Typography } from './Typography';
|
|
8
8
|
export { default as IconButton } from './IconButton';
|
|
9
|
-
export { default as Link } from './Link';
|
|
10
9
|
export type * from './Button';
|
|
11
10
|
export type * from './SplitButton';
|
|
12
11
|
export type * from './LabelWithIndicator';
|
|
@@ -15,5 +14,4 @@ export type * from './SelectField';
|
|
|
15
14
|
export type * from './ToggleButtonGroup';
|
|
16
15
|
export type * from './Typography';
|
|
17
16
|
export type * from './IconButton';
|
|
18
|
-
export type * from './Link';
|
|
19
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AAEpD,mBAAmB,UAAU,CAAA;AAC7B,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,sBAAsB,CAAA;AACzC,mBAAmB,iBAAiB,CAAA;AACpC,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,qBAAqB,CAAA;AACxC,mBAAmB,cAAc,CAAA;AACjC,mBAAmB,cAAc,CAAA"}
|
|
@@ -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, options, value, onChange, getLimitTagsText, ...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, 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;
|
|
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,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,
|
|
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"}
|