@carto/meridian-ds 2.8.0 → 2.9.1-alpha-lists.2
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 +13 -2
- package/dist/{Alert-C4W0H_uN.cjs → Alert-BDpjbOOk.cjs} +1 -1
- package/dist/{Alert-BZPM5zpX.js → Alert-BWe4a9zW.js} +1 -1
- package/dist/{MenuItem-CgF4QdGi.cjs → MenuItem-DrvPgr-r.cjs} +15 -1
- package/dist/{MenuItem-DRUK149i.js → MenuItem-zaH11xyj.js} +16 -2
- package/dist/components/index.cjs +223 -21
- package/dist/components/index.js +226 -24
- package/dist/{css-utils-CjUBRJVK.js → css-utils-BzztxQJk.js} +8 -4
- package/dist/{css-utils-CH7es90t.cjs → css-utils-Do3X_yIr.cjs} +4 -0
- package/dist/custom-icons/index.cjs +666 -538
- package/dist/custom-icons/index.js +666 -538
- package/dist/theme/index.cjs +267 -47
- package/dist/theme/index.js +253 -33
- package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/types/components/EmptyState/EmptyState.d.ts +4 -0
- package/dist/types/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/types/components/EmptyState/EmptyState.stories.d.ts +188 -0
- package/dist/types/components/EmptyState/EmptyState.stories.d.ts.map +1 -0
- package/dist/types/components/EmptyState/EmptyState.styled.d.ts +38 -0
- package/dist/types/components/EmptyState/EmptyState.styled.d.ts.map +1 -0
- package/dist/types/components/EmptyState/EmptyState.test.d.ts +2 -0
- package/dist/types/components/EmptyState/EmptyState.test.d.ts.map +1 -0
- package/dist/types/components/EmptyState/index.d.ts +3 -0
- package/dist/types/components/EmptyState/index.d.ts.map +1 -0
- package/dist/types/components/EmptyState/types.d.ts +82 -0
- package/dist/types/components/EmptyState/types.d.ts.map +1 -0
- package/dist/types/components/List/List.d.ts +18 -0
- package/dist/types/components/List/List.d.ts.map +1 -0
- package/dist/types/components/List/List.stories.d.ts +80 -0
- package/dist/types/components/List/List.stories.d.ts.map +1 -0
- package/dist/types/components/List/List.test.d.ts +2 -0
- package/dist/types/components/List/List.test.d.ts.map +1 -0
- package/dist/types/components/List/ListSubheader/ListSubheader.d.ts +14 -0
- package/dist/types/components/List/ListSubheader/ListSubheader.d.ts.map +1 -0
- package/dist/types/components/List/ListSubheader/ListSubheader.test.d.ts +2 -0
- package/dist/types/components/List/ListSubheader/ListSubheader.test.d.ts.map +1 -0
- package/dist/types/components/List/index.d.ts +5 -0
- package/dist/types/components/List/index.d.ts.map +1 -0
- package/dist/types/components/ListItem/ListItem.d.ts +33 -0
- package/dist/types/components/ListItem/ListItem.d.ts.map +1 -0
- package/dist/types/components/ListItem/ListItem.stories.d.ts +235 -0
- package/dist/types/components/ListItem/ListItem.stories.d.ts.map +1 -0
- package/dist/types/components/ListItem/ListItem.test.d.ts +2 -0
- package/dist/types/components/ListItem/ListItem.test.d.ts.map +1 -0
- package/dist/types/components/ListItem/ListItemRightContent/ListItemRightContent.d.ts +14 -0
- package/dist/types/components/ListItem/ListItemRightContent/ListItemRightContent.d.ts.map +1 -0
- package/dist/types/components/ListItem/ListItemRightContent/ListItemRightContent.test.d.ts +2 -0
- package/dist/types/components/ListItem/ListItemRightContent/ListItemRightContent.test.d.ts.map +1 -0
- package/dist/types/components/ListItem/index.d.ts +5 -0
- package/dist/types/components/ListItem/index.d.ts.map +1 -0
- package/dist/types/components/Loader/Loader.stories.d.ts +3 -3
- package/dist/types/components/Loader/Loader.stories.d.ts.map +1 -1
- package/dist/types/components/Menu/Menu/Menu.stories.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +6 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/custom-icons/GroupOff.d.ts +4 -0
- package/dist/types/custom-icons/GroupOff.d.ts.map +1 -0
- package/dist/types/custom-icons/RunReuse.d.ts +4 -0
- package/dist/types/custom-icons/RunReuse.d.ts.map +1 -0
- package/dist/types/custom-icons/SearchMap.d.ts +4 -0
- package/dist/types/custom-icons/SearchMap.d.ts.map +1 -0
- package/dist/types/custom-icons/SwitchAccessShortcut.d.ts +4 -0
- package/dist/types/custom-icons/SwitchAccessShortcut.d.ts.map +1 -0
- package/dist/types/custom-icons/__docs__/CustomIcons.stories.d.ts +8 -0
- package/dist/types/custom-icons/__docs__/CustomIcons.stories.d.ts.map +1 -1
- package/dist/types/custom-icons/index.d.ts +4 -0
- package/dist/types/custom-icons/index.d.ts.map +1 -1
- package/dist/types/theme/components/data-display.d.ts.map +1 -1
- package/dist/types/theme/components/navigation.d.ts.map +1 -1
- package/dist/types/theme/types.d.ts +86 -0
- package/dist/types/theme/types.d.ts.map +1 -1
- package/dist/types/utils/theme-constants.d.ts +2 -0
- package/dist/types/utils/theme-constants.d.ts.map +1 -1
- package/dist/types/utils/theme-utils.d.ts +16 -0
- package/dist/types/utils/theme-utils.d.ts.map +1 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.test.d.ts +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.test.d.ts.map +1 -1
- package/dist/widgets/index.cjs +2 -2
- package/dist/widgets/index.js +2 -2
- package/package.json +1 -1
- package/dist/types/theme/components/stories/List.stories.d.ts +0 -62
- package/dist/types/theme/components/stories/List.stories.d.ts.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React, { forwardRef, useState, useRef, useEffect, useMemo, createElement, Fragment as Fragment$1, useCallback, useImperativeHandle } from "react";
|
|
3
|
-
import { styled, Box, Button as Button$1, CircularProgress as CircularProgress$1, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade } from "@mui/material";
|
|
3
|
+
import { styled, Box, Button as Button$1, CircularProgress as CircularProgress$1, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade, List as List$2, ListSubheader as ListSubheader$1, ListItemButton, ListItem as ListItem$1 } from "@mui/material";
|
|
4
4
|
import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, Check, TodayOutlined } from "@mui/icons-material";
|
|
5
|
-
import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL,
|
|
6
|
-
import { a } from "../css-utils-
|
|
7
|
-
import { S as ScreenReaderOnly, A as Alert$1 } from "../Alert-
|
|
8
|
-
import { L } from "../Alert-
|
|
5
|
+
import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, j as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, i as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, k as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles } from "../css-utils-BzztxQJk.js";
|
|
6
|
+
import { a } from "../css-utils-BzztxQJk.js";
|
|
7
|
+
import { S as ScreenReaderOnly, A as Alert$1 } from "../Alert-BWe4a9zW.js";
|
|
8
|
+
import { L } from "../Alert-BWe4a9zW.js";
|
|
9
9
|
import { A as ArrowDown } from "../ArrowDown-d6bxUL0F.js";
|
|
10
10
|
import { A as ArrowUp, O as OpenDiagonallyRight, C as CloseDiagonallyRight } from "../OpenDiagonallyRight-CGdCEXlF.js";
|
|
11
|
-
import { M as MenuItem$1 } from "../MenuItem-
|
|
11
|
+
import { M as MenuItem$1, a as getThemeColor } from "../MenuItem-zaH11xyj.js";
|
|
12
12
|
import "cartocolor";
|
|
13
13
|
import { FixedSizeList } from "react-window";
|
|
14
14
|
import { Controlled, UnControlled } from "react-codemirror2";
|
|
@@ -223,7 +223,7 @@ function SplitButton({
|
|
|
223
223
|
)
|
|
224
224
|
] });
|
|
225
225
|
}
|
|
226
|
-
const Root$
|
|
226
|
+
const Root$6 = styled(Box)(({ theme }) => ({
|
|
227
227
|
display: "flex",
|
|
228
228
|
alignItems: "center",
|
|
229
229
|
gap: theme.spacing(0.5)
|
|
@@ -257,7 +257,7 @@ function _LabelWithIndicator({
|
|
|
257
257
|
typographyProps
|
|
258
258
|
}, ref) {
|
|
259
259
|
return /* @__PURE__ */ jsxs(
|
|
260
|
-
Root$
|
|
260
|
+
Root$6,
|
|
261
261
|
{
|
|
262
262
|
ref,
|
|
263
263
|
"data-testid": dataTestId,
|
|
@@ -776,7 +776,7 @@ function _MultipleSelectField({
|
|
|
776
776
|
const MultipleSelectField = forwardRef(_MultipleSelectField);
|
|
777
777
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup$1, {
|
|
778
778
|
shouldForwardProp: (prop) => prop !== "backgroundColor"
|
|
779
|
-
})();
|
|
779
|
+
})(() => ({}));
|
|
780
780
|
function _ToggleButtonGroup({
|
|
781
781
|
children,
|
|
782
782
|
variant = "floating",
|
|
@@ -890,7 +890,7 @@ function _Loader({
|
|
|
890
890
|
secondLabel && /* @__PURE__ */ jsx(
|
|
891
891
|
Typography,
|
|
892
892
|
{
|
|
893
|
-
variant: "
|
|
893
|
+
variant: "caption",
|
|
894
894
|
color: "textSecondary",
|
|
895
895
|
...secondLabelProps,
|
|
896
896
|
id: labelText ? void 0 : "loader-label",
|
|
@@ -1479,7 +1479,7 @@ function useMultipleAutocomplete({
|
|
|
1479
1479
|
getCounterRenderTags
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
const List = styled("ul")(
|
|
1482
|
+
const List$1 = styled("ul")(
|
|
1483
1483
|
({ theme, hasFilters }) => ({
|
|
1484
1484
|
...!hasFilters && {
|
|
1485
1485
|
paddingTop: `${theme.spacing(1)} !important`
|
|
@@ -1606,7 +1606,7 @@ function _AutocompleteList({
|
|
|
1606
1606
|
);
|
|
1607
1607
|
};
|
|
1608
1608
|
return /* @__PURE__ */ jsxs(
|
|
1609
|
-
List,
|
|
1609
|
+
List$1,
|
|
1610
1610
|
{
|
|
1611
1611
|
ref,
|
|
1612
1612
|
...otherProps,
|
|
@@ -1929,7 +1929,7 @@ function SecondaryText({ text }) {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
);
|
|
1931
1931
|
}
|
|
1932
|
-
const Root$
|
|
1932
|
+
const Root$5 = styled(AppBar$1)(({ theme }) => ({
|
|
1933
1933
|
backgroundColor: theme.palette.brand.appBarMain,
|
|
1934
1934
|
userSelect: "none",
|
|
1935
1935
|
"& .MuiTypography-root": {
|
|
@@ -1964,7 +1964,7 @@ function _AppBar({
|
|
|
1964
1964
|
onClickMenu,
|
|
1965
1965
|
...otherProps
|
|
1966
1966
|
}, ref) {
|
|
1967
|
-
return /* @__PURE__ */ jsx(Root$
|
|
1967
|
+
return /* @__PURE__ */ jsx(Root$5, { ...otherProps, ref, "data-name": "app-bar", children: /* @__PURE__ */ jsxs(Toolbar, { children: [
|
|
1968
1968
|
/* @__PURE__ */ jsxs(BrandElements, { children: [
|
|
1969
1969
|
showBurgerMenu && /* @__PURE__ */ jsx(BurgerMenu, { onClickMenu }),
|
|
1970
1970
|
brandLogo && /* @__PURE__ */ jsx(BrandLogo, { logo: brandLogo }),
|
|
@@ -2644,7 +2644,7 @@ function CodeAreaInput({
|
|
|
2644
2644
|
}
|
|
2645
2645
|
);
|
|
2646
2646
|
}
|
|
2647
|
-
const Root$
|
|
2647
|
+
const Root$4 = styled(FormControl)(() => ({
|
|
2648
2648
|
display: "flex",
|
|
2649
2649
|
flexDirection: "column",
|
|
2650
2650
|
flex: 1
|
|
@@ -2836,7 +2836,7 @@ function CodeAreaField({
|
|
|
2836
2836
|
const readOnly = (options == null ? void 0 : options.readOnly) ?? false;
|
|
2837
2837
|
const lineNumbers = (options == null ? void 0 : options.lineNumbers) ?? true;
|
|
2838
2838
|
return /* @__PURE__ */ jsxs(
|
|
2839
|
-
Root$
|
|
2839
|
+
Root$4,
|
|
2840
2840
|
{
|
|
2841
2841
|
size,
|
|
2842
2842
|
error,
|
|
@@ -3411,7 +3411,7 @@ function DialogAlert({
|
|
|
3411
3411
|
}) {
|
|
3412
3412
|
return /* @__PURE__ */ jsx(StyledAlert, { severity, ...otherProps, "data-name": "dialog-alert", children });
|
|
3413
3413
|
}
|
|
3414
|
-
const Root$
|
|
3414
|
+
const Root$3 = styled(Box, {
|
|
3415
3415
|
shouldForwardProp: (prop) => !["dark", "hasChildren"].includes(prop)
|
|
3416
3416
|
})(({ dark, hasChildren, theme }) => ({
|
|
3417
3417
|
flex: "0 0 auto",
|
|
@@ -3479,7 +3479,7 @@ function DialogFooter({
|
|
|
3479
3479
|
topContent,
|
|
3480
3480
|
!!alertContent && /* @__PURE__ */ jsx(DividerTop, {}),
|
|
3481
3481
|
/* @__PURE__ */ jsxs(
|
|
3482
|
-
Root$
|
|
3482
|
+
Root$3,
|
|
3483
3483
|
{
|
|
3484
3484
|
...otherProps,
|
|
3485
3485
|
dark,
|
|
@@ -3575,7 +3575,7 @@ function DialogConfirmation({
|
|
|
3575
3575
|
}
|
|
3576
3576
|
);
|
|
3577
3577
|
}
|
|
3578
|
-
const Root$
|
|
3578
|
+
const Root$2 = styled(Box)(({ theme }) => ({
|
|
3579
3579
|
display: "flex",
|
|
3580
3580
|
alignItems: "center",
|
|
3581
3581
|
justifyContent: "center",
|
|
@@ -3656,7 +3656,7 @@ function DialogStepper({
|
|
|
3656
3656
|
stepsLabels,
|
|
3657
3657
|
...props
|
|
3658
3658
|
}) {
|
|
3659
|
-
return /* @__PURE__ */ jsx(Root$
|
|
3659
|
+
return /* @__PURE__ */ jsx(Root$2, { ...props, "data-name": "dialog-stepper", children: /* @__PURE__ */ jsx(Box, { sx: { display: "flex" }, children: stepsLabels.map((stepLabel, idx) => {
|
|
3660
3660
|
const step = idx + 1;
|
|
3661
3661
|
const isCurrent = step === currentStep;
|
|
3662
3662
|
const isCompleted = step < currentStep;
|
|
@@ -3942,7 +3942,7 @@ function ClearButton({
|
|
|
3942
3942
|
}
|
|
3943
3943
|
) });
|
|
3944
3944
|
}
|
|
3945
|
-
const Root = styled(Box, {
|
|
3945
|
+
const Root$1 = styled(Box, {
|
|
3946
3946
|
shouldForwardProp: (prop) => !["size", "variant", "readOnly"].includes(prop)
|
|
3947
3947
|
})(({ size, variant, readOnly, theme }) => ({
|
|
3948
3948
|
// There is no specific slot to change TextField styles at DatePicker level, so we need to wrap our component to isolate this override. https://mui.com/x/react-date-pickers/date-picker/#customization
|
|
@@ -3982,7 +3982,7 @@ function DateFieldContainer({
|
|
|
3982
3982
|
readOnly,
|
|
3983
3983
|
...props
|
|
3984
3984
|
}) {
|
|
3985
|
-
return /* @__PURE__ */ jsx(Root, { ...props, size, variant, readOnly, children });
|
|
3985
|
+
return /* @__PURE__ */ jsx(Root$1, { ...props, size, variant, readOnly, children });
|
|
3986
3986
|
}
|
|
3987
3987
|
function DatePicker({
|
|
3988
3988
|
handleClear,
|
|
@@ -4666,6 +4666,122 @@ function DateTimePicker({
|
|
|
4666
4666
|
}
|
|
4667
4667
|
);
|
|
4668
4668
|
}
|
|
4669
|
+
const EMPTY_STATE_WIDTH = 592;
|
|
4670
|
+
const Root = styled(Stack, {
|
|
4671
|
+
shouldForwardProp: (prop) => prop !== "size" && prop !== "spacing" && prop !== "contentHeight"
|
|
4672
|
+
})(({ size = "medium", spacing, contentHeight, theme }) => ({
|
|
4673
|
+
display: "flex",
|
|
4674
|
+
justifyContent: "center",
|
|
4675
|
+
alignItems: "center",
|
|
4676
|
+
gap: theme.spacing(spacing ?? (size === "small" ? 1 : 2)),
|
|
4677
|
+
height: contentHeight,
|
|
4678
|
+
minHeight: contentHeight
|
|
4679
|
+
}));
|
|
4680
|
+
const IconWrapper = styled(Box, {
|
|
4681
|
+
shouldForwardProp: (prop) => prop !== "size" && prop !== "iconSize" && prop !== "iconColor"
|
|
4682
|
+
})(({ size, iconSize, iconColor, theme }) => {
|
|
4683
|
+
const finalIconSize = iconSize ?? (size === "small" ? theme.spacing(5) : theme.spacing(6));
|
|
4684
|
+
const colorValue = iconColor === null || iconColor === void 0 ? void 0 : getThemeColor(iconColor, theme);
|
|
4685
|
+
return {
|
|
4686
|
+
display: "flex",
|
|
4687
|
+
".MuiSvgIcon-root": {
|
|
4688
|
+
width: finalIconSize,
|
|
4689
|
+
height: finalIconSize,
|
|
4690
|
+
fontSize: finalIconSize,
|
|
4691
|
+
...colorValue && { color: colorValue }
|
|
4692
|
+
}
|
|
4693
|
+
};
|
|
4694
|
+
});
|
|
4695
|
+
const TextContent = styled(Stack, {
|
|
4696
|
+
shouldForwardProp: (prop) => prop !== "contentWidth"
|
|
4697
|
+
})(({ contentWidth, theme }) => ({
|
|
4698
|
+
display: "flex",
|
|
4699
|
+
flexDirection: "column",
|
|
4700
|
+
alignItems: "center",
|
|
4701
|
+
gap: theme.spacing(0.5),
|
|
4702
|
+
textAlign: "center",
|
|
4703
|
+
maxWidth: contentWidth ?? EMPTY_STATE_WIDTH,
|
|
4704
|
+
margin: "0 auto"
|
|
4705
|
+
}));
|
|
4706
|
+
const Actions = styled(Stack, {
|
|
4707
|
+
shouldForwardProp: (prop) => prop !== "size" && prop !== "spacing"
|
|
4708
|
+
})(({ size = "medium", spacing, theme }) => ({
|
|
4709
|
+
display: "flex",
|
|
4710
|
+
alignItems: "center",
|
|
4711
|
+
gap: theme.spacing(spacing ?? (size === "small" ? 1 : 2)),
|
|
4712
|
+
marginTop: theme.spacing(size === "small" ? 1 : 2),
|
|
4713
|
+
".MuiButton-root + .MuiButton-root": {
|
|
4714
|
+
marginLeft: 0
|
|
4715
|
+
}
|
|
4716
|
+
}));
|
|
4717
|
+
function _EmptyState({
|
|
4718
|
+
icon,
|
|
4719
|
+
title,
|
|
4720
|
+
description,
|
|
4721
|
+
actions,
|
|
4722
|
+
children,
|
|
4723
|
+
size = "medium",
|
|
4724
|
+
spacing,
|
|
4725
|
+
iconProps,
|
|
4726
|
+
contentWidth = EMPTY_STATE_WIDTH,
|
|
4727
|
+
contentHeight,
|
|
4728
|
+
sx,
|
|
4729
|
+
titleProps,
|
|
4730
|
+
descriptionProps,
|
|
4731
|
+
...otherProps
|
|
4732
|
+
}, ref) {
|
|
4733
|
+
const hasAnyTextContent = title || description;
|
|
4734
|
+
const isSmall = size === "small";
|
|
4735
|
+
const iconSize = (iconProps == null ? void 0 : iconProps.size) ?? (isSmall ? 32 : 48);
|
|
4736
|
+
const iconColor = (iconProps == null ? void 0 : iconProps.color) === null ? null : (iconProps == null ? void 0 : iconProps.color) ?? "text.disabled";
|
|
4737
|
+
return /* @__PURE__ */ jsxs(
|
|
4738
|
+
Root,
|
|
4739
|
+
{
|
|
4740
|
+
ref,
|
|
4741
|
+
alignItems: "center",
|
|
4742
|
+
size,
|
|
4743
|
+
spacing,
|
|
4744
|
+
contentHeight,
|
|
4745
|
+
sx,
|
|
4746
|
+
...otherProps,
|
|
4747
|
+
"data-name": "empty-state",
|
|
4748
|
+
"data-size": size,
|
|
4749
|
+
"data-spacing": spacing,
|
|
4750
|
+
"data-content-height": contentHeight,
|
|
4751
|
+
"data-content-width": contentWidth,
|
|
4752
|
+
"data-icon-size": iconSize,
|
|
4753
|
+
"data-icon-color": iconColor ?? "null",
|
|
4754
|
+
children: [
|
|
4755
|
+
icon && /* @__PURE__ */ jsx(IconWrapper, { size, iconSize, iconColor, children: icon }),
|
|
4756
|
+
hasAnyTextContent && /* @__PURE__ */ jsxs(TextContent, { contentWidth, children: [
|
|
4757
|
+
title && /* @__PURE__ */ jsx(
|
|
4758
|
+
Typography,
|
|
4759
|
+
{
|
|
4760
|
+
variant: isSmall ? "body2" : "body1",
|
|
4761
|
+
color: "textSecondary",
|
|
4762
|
+
component: "div",
|
|
4763
|
+
...titleProps,
|
|
4764
|
+
children: title
|
|
4765
|
+
}
|
|
4766
|
+
),
|
|
4767
|
+
description && /* @__PURE__ */ jsx(
|
|
4768
|
+
Typography,
|
|
4769
|
+
{
|
|
4770
|
+
variant: isSmall ? "caption" : "body2",
|
|
4771
|
+
color: "textSecondary",
|
|
4772
|
+
component: "div",
|
|
4773
|
+
...descriptionProps,
|
|
4774
|
+
children: description
|
|
4775
|
+
}
|
|
4776
|
+
)
|
|
4777
|
+
] }),
|
|
4778
|
+
actions && /* @__PURE__ */ jsx(Actions, { size, spacing, children: actions }),
|
|
4779
|
+
children
|
|
4780
|
+
]
|
|
4781
|
+
}
|
|
4782
|
+
);
|
|
4783
|
+
}
|
|
4784
|
+
const EmptyState = forwardRef(_EmptyState);
|
|
4669
4785
|
const DEFAULT_ITEMS = [{ outlinedBullet: false, value: "" }];
|
|
4670
4786
|
const Content$2 = styled("ul")(({ theme }) => ({
|
|
4671
4787
|
listStyle: "none",
|
|
@@ -4812,7 +4928,7 @@ const StyledMenu = styled(Menu$2, {
|
|
|
4812
4928
|
}
|
|
4813
4929
|
}
|
|
4814
4930
|
}));
|
|
4815
|
-
function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
|
|
4931
|
+
function _Menu({ extended, width, height, MenuListProps: MenuListProps2, ...otherProps }, ref) {
|
|
4816
4932
|
return /* @__PURE__ */ jsx(
|
|
4817
4933
|
StyledMenu,
|
|
4818
4934
|
{
|
|
@@ -4823,7 +4939,7 @@ function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
|
|
|
4823
4939
|
height,
|
|
4824
4940
|
extended,
|
|
4825
4941
|
MenuListProps: {
|
|
4826
|
-
...
|
|
4942
|
+
...MenuListProps2,
|
|
4827
4943
|
"data-width": width,
|
|
4828
4944
|
"data-height": height,
|
|
4829
4945
|
"data-extended": extended
|
|
@@ -6147,6 +6263,87 @@ function _EllipsisWithTooltip({
|
|
|
6147
6263
|
);
|
|
6148
6264
|
}
|
|
6149
6265
|
const EllipsisWithTooltip = forwardRef(_EllipsisWithTooltip);
|
|
6266
|
+
function _List({ variant = "standard", spacing, ...otherProps }, ref) {
|
|
6267
|
+
const isOutlinedItems = variant === "outlined-items";
|
|
6268
|
+
return /* @__PURE__ */ jsx(
|
|
6269
|
+
List$2,
|
|
6270
|
+
{
|
|
6271
|
+
...otherProps,
|
|
6272
|
+
variant,
|
|
6273
|
+
spacing: spacing || (isOutlinedItems ? 1 : 0),
|
|
6274
|
+
ref,
|
|
6275
|
+
"data-name": "list",
|
|
6276
|
+
"data-variant": variant,
|
|
6277
|
+
"data-spacing": spacing
|
|
6278
|
+
}
|
|
6279
|
+
);
|
|
6280
|
+
}
|
|
6281
|
+
const List = forwardRef(_List);
|
|
6282
|
+
function _ListSubheader({ backgroundColor = "default", ...otherProps }, ref) {
|
|
6283
|
+
return /* @__PURE__ */ jsx(
|
|
6284
|
+
ListSubheader$1,
|
|
6285
|
+
{
|
|
6286
|
+
...otherProps,
|
|
6287
|
+
ref,
|
|
6288
|
+
"data-name": "list-subheader",
|
|
6289
|
+
"data-background-color": backgroundColor
|
|
6290
|
+
}
|
|
6291
|
+
);
|
|
6292
|
+
}
|
|
6293
|
+
const ListSubheader = forwardRef(_ListSubheader);
|
|
6294
|
+
function _ListItem({
|
|
6295
|
+
variant = "standard",
|
|
6296
|
+
disabled,
|
|
6297
|
+
fixedHeight = true,
|
|
6298
|
+
onClick,
|
|
6299
|
+
...otherProps
|
|
6300
|
+
}, ref) {
|
|
6301
|
+
if (onClick) {
|
|
6302
|
+
return /* @__PURE__ */ jsx(
|
|
6303
|
+
ListItemButton,
|
|
6304
|
+
{
|
|
6305
|
+
...otherProps,
|
|
6306
|
+
variant,
|
|
6307
|
+
disabled,
|
|
6308
|
+
onClick,
|
|
6309
|
+
ref,
|
|
6310
|
+
"data-name": "list-item-button",
|
|
6311
|
+
"data-variant": variant,
|
|
6312
|
+
"data-fixed-height": fixedHeight
|
|
6313
|
+
}
|
|
6314
|
+
);
|
|
6315
|
+
}
|
|
6316
|
+
return /* @__PURE__ */ jsx(
|
|
6317
|
+
ListItem$1,
|
|
6318
|
+
{
|
|
6319
|
+
...otherProps,
|
|
6320
|
+
variant,
|
|
6321
|
+
disabled,
|
|
6322
|
+
...disabled && { "aria-disabled": true },
|
|
6323
|
+
ref,
|
|
6324
|
+
"data-name": "list-item",
|
|
6325
|
+
"data-variant": variant,
|
|
6326
|
+
"data-fixed-height": fixedHeight
|
|
6327
|
+
}
|
|
6328
|
+
);
|
|
6329
|
+
}
|
|
6330
|
+
const ListItem = forwardRef(_ListItem);
|
|
6331
|
+
function ListItemRightContent({
|
|
6332
|
+
children,
|
|
6333
|
+
...props
|
|
6334
|
+
}) {
|
|
6335
|
+
return /* @__PURE__ */ jsx(
|
|
6336
|
+
Stack,
|
|
6337
|
+
{
|
|
6338
|
+
direction: "row",
|
|
6339
|
+
alignItems: "center",
|
|
6340
|
+
gap: 1.5,
|
|
6341
|
+
...props,
|
|
6342
|
+
"data-name": "list-item-right-content",
|
|
6343
|
+
children
|
|
6344
|
+
}
|
|
6345
|
+
);
|
|
6346
|
+
}
|
|
6150
6347
|
export {
|
|
6151
6348
|
AUTOCOMPLETE_GROUP_HEADER_PROPERTY,
|
|
6152
6349
|
AccordionGroup,
|
|
@@ -6183,11 +6380,16 @@ export {
|
|
|
6183
6380
|
DialogPaper,
|
|
6184
6381
|
DialogStepper,
|
|
6185
6382
|
EllipsisWithTooltip,
|
|
6383
|
+
EmptyState,
|
|
6186
6384
|
FilterDropdown,
|
|
6187
6385
|
FilterDropdownMenuItem,
|
|
6188
6386
|
IconButton,
|
|
6189
6387
|
LabelWithIndicator,
|
|
6190
6388
|
L as Link,
|
|
6389
|
+
List,
|
|
6390
|
+
ListItem,
|
|
6391
|
+
ListItemRightContent,
|
|
6392
|
+
ListSubheader,
|
|
6191
6393
|
Loader,
|
|
6192
6394
|
Menu,
|
|
6193
6395
|
MenuItem$1 as MenuItem,
|
|
@@ -781,6 +781,8 @@ const MENU_LIST_MAX_SIZE = 312;
|
|
|
781
781
|
const MENU_ITEM_SIZE_DENSE = 24;
|
|
782
782
|
const MENU_ITEM_SIZE_DEFAULT = 32;
|
|
783
783
|
const MENU_ITEM_SIZE_EXTENDED = 48;
|
|
784
|
+
const LIST_ITEM_SIZE_DENSE = 52;
|
|
785
|
+
const LIST_ITEM_SIZE_DEFAULT = 68;
|
|
784
786
|
const FontWeight = {
|
|
785
787
|
regular: 400,
|
|
786
788
|
medium: 500,
|
|
@@ -5756,6 +5758,7 @@ export {
|
|
|
5756
5758
|
APPBAR_SIZE as A,
|
|
5757
5759
|
BREAKPOINTS as B,
|
|
5758
5760
|
ICON_SIZE_LARGE as I,
|
|
5761
|
+
LIST_ITEM_SIZE_DENSE as L,
|
|
5759
5762
|
MENU_ITEM_SIZE_DEFAULT as M,
|
|
5760
5763
|
NOTIFICATION_DURATION_IN_MS as N,
|
|
5761
5764
|
SPACING as S,
|
|
@@ -5767,9 +5770,10 @@ export {
|
|
|
5767
5770
|
ellipsisStyles as e,
|
|
5768
5771
|
MENU_ITEM_SIZE_DENSE as f,
|
|
5769
5772
|
getSpacing as g,
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5773
|
+
LIST_ITEM_SIZE_DEFAULT as h,
|
|
5774
|
+
MENU_ITEM_SIZE_EXTENDED as i,
|
|
5775
|
+
IconButton as j,
|
|
5776
|
+
useImperativeIntl as k,
|
|
5777
|
+
getDefaultExportFromCjs as l,
|
|
5774
5778
|
useTranslationWithFallback as u
|
|
5775
5779
|
};
|
|
@@ -782,6 +782,8 @@ const MENU_LIST_MAX_SIZE = 312;
|
|
|
782
782
|
const MENU_ITEM_SIZE_DENSE = 24;
|
|
783
783
|
const MENU_ITEM_SIZE_DEFAULT = 32;
|
|
784
784
|
const MENU_ITEM_SIZE_EXTENDED = 48;
|
|
785
|
+
const LIST_ITEM_SIZE_DENSE = 52;
|
|
786
|
+
const LIST_ITEM_SIZE_DEFAULT = 68;
|
|
785
787
|
const FontWeight = {
|
|
786
788
|
regular: 400,
|
|
787
789
|
medium: 500,
|
|
@@ -5759,6 +5761,8 @@ exports.ICON_SIZE_LARGE = ICON_SIZE_LARGE;
|
|
|
5759
5761
|
exports.ICON_SIZE_MEDIUM = ICON_SIZE_MEDIUM;
|
|
5760
5762
|
exports.ICON_SIZE_SMALL = ICON_SIZE_SMALL;
|
|
5761
5763
|
exports.IconButton = IconButton;
|
|
5764
|
+
exports.LIST_ITEM_SIZE_DEFAULT = LIST_ITEM_SIZE_DEFAULT;
|
|
5765
|
+
exports.LIST_ITEM_SIZE_DENSE = LIST_ITEM_SIZE_DENSE;
|
|
5762
5766
|
exports.MENU_ITEM_SIZE_DEFAULT = MENU_ITEM_SIZE_DEFAULT;
|
|
5763
5767
|
exports.MENU_ITEM_SIZE_DENSE = MENU_ITEM_SIZE_DENSE;
|
|
5764
5768
|
exports.MENU_ITEM_SIZE_EXTENDED = MENU_ITEM_SIZE_EXTENDED;
|