@carto/meridian-ds 2.9.0 → 2.9.1-alpha-lists.3
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 +8 -1
- package/dist/{Alert-C4W0H_uN.cjs → Alert-BDpjbOOk.cjs} +1 -1
- package/dist/{Alert-BZPM5zpX.js → Alert-BWe4a9zW.js} +1 -1
- package/dist/{MenuItem-DoBJsRR_.cjs → MenuItem-DrvPgr-r.cjs} +1 -1
- package/dist/{MenuItem-Cx5lTXXm.js → MenuItem-zaH11xyj.js} +1 -1
- package/dist/components/index.cjs +92 -7
- package/dist/components/index.js +95 -10
- 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 +251 -26
- package/dist/theme/index.js +253 -28
- package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/types/components/List/List.d.ts +9 -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 +9 -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 +9 -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/Menu/Menu/Menu.stories.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +4 -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/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 +90 -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/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/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- New List components (List, ListItem, ListSubheader, ListItemRightContent) [#336](https://github.com/CartoDB/meridian-ds/pull/336)
|
|
6
|
+
- CI: Auto-run Chromatic on release PRs [#334](https://github.com/CartoDB/meridian-ds/pull/334)
|
|
7
|
+
|
|
5
8
|
## 2.0
|
|
6
9
|
|
|
10
|
+
### 2.9.1
|
|
11
|
+
|
|
12
|
+
- Custom Icons: GroupOff, RunReuse, SearchMap, SwitchAccessShortcut [#335](https://github.com/CartoDB/meridian-ds/pull/335)
|
|
13
|
+
|
|
7
14
|
### 2.9.0
|
|
8
15
|
|
|
9
16
|
- New EmptyState component [#330](https://github.com/CartoDB/meridian-ds/pull/330)
|
|
@@ -14,7 +21,7 @@
|
|
|
14
21
|
- New Loader and CircularProgress components [#329](https://github.com/CartoDB/meridian-ds/pull/329)
|
|
15
22
|
- Dialog: improve customization [#313](https://github.com/CartoDB/meridian-ds/pull/313)
|
|
16
23
|
- ToggleButtonGroup: move styles to the theme [#319](https://github.com/CartoDB/meridian-ds/pull/319)
|
|
17
|
-
- Custom Icons: CreateFolder,FolderEmpty [#331](https://github.com/CartoDB/meridian-ds/pull/331)
|
|
24
|
+
- Custom Icons: CreateFolder, FolderEmpty [#331](https://github.com/CartoDB/meridian-ds/pull/331)
|
|
18
25
|
|
|
19
26
|
### 2.7.0
|
|
20
27
|
|
|
@@ -4,7 +4,7 @@ const React = require("react");
|
|
|
4
4
|
const material = require("@mui/material");
|
|
5
5
|
const iconsMaterial = require("@mui/icons-material");
|
|
6
6
|
require("cartocolor");
|
|
7
|
-
const cssUtils = require("./css-utils-
|
|
7
|
+
const cssUtils = require("./css-utils-Do3X_yIr.cjs");
|
|
8
8
|
const ScreenReaderOnly = material.styled("span")(() => ({
|
|
9
9
|
position: "absolute",
|
|
10
10
|
width: 1,
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useState } from "react";
|
|
|
3
3
|
import { styled, Link as Link$1, Alert as Alert$1, Fade, AlertTitle } from "@mui/material";
|
|
4
4
|
import { OpenInNewOutlined } from "@mui/icons-material";
|
|
5
5
|
import "cartocolor";
|
|
6
|
-
import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography } from "./css-utils-
|
|
6
|
+
import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography } from "./css-utils-BzztxQJk.js";
|
|
7
7
|
const ScreenReaderOnly = styled("span")(() => ({
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 1,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const material = require("@mui/material");
|
|
5
|
-
const cssUtils = require("./css-utils-
|
|
5
|
+
const cssUtils = require("./css-utils-Do3X_yIr.cjs");
|
|
6
6
|
function getPixelToRem(px) {
|
|
7
7
|
const fontBase = 16;
|
|
8
8
|
const rem = 1 / fontBase * px + "rem";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { styled, MenuItem as MenuItem$1 } from "@mui/material";
|
|
4
|
-
import { f as MENU_ITEM_SIZE_DENSE,
|
|
4
|
+
import { f as MENU_ITEM_SIZE_DENSE, i as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-BzztxQJk.js";
|
|
5
5
|
function getPixelToRem(px) {
|
|
6
6
|
const fontBase = 16;
|
|
7
7
|
const rem = 1 / fontBase * px + "rem";
|
|
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const material = require("@mui/material");
|
|
6
6
|
const iconsMaterial = require("@mui/icons-material");
|
|
7
|
-
const cssUtils = require("../css-utils-
|
|
8
|
-
const Alert$1 = require("../Alert-
|
|
7
|
+
const cssUtils = require("../css-utils-Do3X_yIr.cjs");
|
|
8
|
+
const Alert$1 = require("../Alert-BDpjbOOk.cjs");
|
|
9
9
|
const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
|
|
10
10
|
const OpenDiagonallyRight = require("../OpenDiagonallyRight-CpL4ROwg.cjs");
|
|
11
|
-
const MenuItem = require("../MenuItem-
|
|
11
|
+
const MenuItem = require("../MenuItem-DrvPgr-r.cjs");
|
|
12
12
|
require("cartocolor");
|
|
13
13
|
const reactWindow = require("react-window");
|
|
14
14
|
const reactCodemirror2 = require("react-codemirror2");
|
|
@@ -1479,7 +1479,7 @@ function useMultipleAutocomplete({
|
|
|
1479
1479
|
getCounterRenderTags
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
const List = material.styled("ul")(
|
|
1482
|
+
const List$1 = material.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__ */ jsxRuntime.jsxs(
|
|
1609
|
-
List,
|
|
1609
|
+
List$1,
|
|
1610
1610
|
{
|
|
1611
1611
|
ref,
|
|
1612
1612
|
...otherProps,
|
|
@@ -4928,7 +4928,7 @@ const StyledMenu = material.styled(material.Menu, {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
}
|
|
4930
4930
|
}));
|
|
4931
|
-
function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
|
|
4931
|
+
function _Menu({ extended, width, height, MenuListProps: MenuListProps2, ...otherProps }, ref) {
|
|
4932
4932
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4933
4933
|
StyledMenu,
|
|
4934
4934
|
{
|
|
@@ -4939,7 +4939,7 @@ function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
|
|
|
4939
4939
|
height,
|
|
4940
4940
|
extended,
|
|
4941
4941
|
MenuListProps: {
|
|
4942
|
-
...
|
|
4942
|
+
...MenuListProps2,
|
|
4943
4943
|
"data-width": width,
|
|
4944
4944
|
"data-height": height,
|
|
4945
4945
|
"data-extended": extended
|
|
@@ -6263,6 +6263,87 @@ function _EllipsisWithTooltip({
|
|
|
6263
6263
|
);
|
|
6264
6264
|
}
|
|
6265
6265
|
const EllipsisWithTooltip = React.forwardRef(_EllipsisWithTooltip);
|
|
6266
|
+
function _List({ variant = "standard", spacing, ...otherProps }, ref) {
|
|
6267
|
+
const isOutlinedItems = variant === "outlined-items";
|
|
6268
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6269
|
+
material.List,
|
|
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 = React.forwardRef(_List);
|
|
6282
|
+
function _ListSubheader({ backgroundColor = "default", ...otherProps }, ref) {
|
|
6283
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6284
|
+
material.ListSubheader,
|
|
6285
|
+
{
|
|
6286
|
+
...otherProps,
|
|
6287
|
+
ref,
|
|
6288
|
+
"data-name": "list-subheader",
|
|
6289
|
+
"data-background-color": backgroundColor
|
|
6290
|
+
}
|
|
6291
|
+
);
|
|
6292
|
+
}
|
|
6293
|
+
const ListSubheader = React.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__ */ jsxRuntime.jsx(
|
|
6303
|
+
material.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__ */ jsxRuntime.jsx(
|
|
6317
|
+
material.ListItem,
|
|
6318
|
+
{
|
|
6319
|
+
...otherProps,
|
|
6320
|
+
variant,
|
|
6321
|
+
disabled,
|
|
6322
|
+
"aria-disabled": disabled,
|
|
6323
|
+
ref,
|
|
6324
|
+
"data-name": "list-item",
|
|
6325
|
+
"data-variant": variant,
|
|
6326
|
+
"data-fixed-height": fixedHeight
|
|
6327
|
+
}
|
|
6328
|
+
);
|
|
6329
|
+
}
|
|
6330
|
+
const ListItem = React.forwardRef(_ListItem);
|
|
6331
|
+
function ListItemRightContent({
|
|
6332
|
+
children,
|
|
6333
|
+
...props
|
|
6334
|
+
}) {
|
|
6335
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6336
|
+
material.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
|
+
}
|
|
6266
6347
|
exports.IconButton = cssUtils.IconButton;
|
|
6267
6348
|
exports.TablePaginationActions = cssUtils.TablePaginationActions;
|
|
6268
6349
|
exports.Typography = cssUtils.Typography;
|
|
@@ -6308,6 +6389,10 @@ exports.EmptyState = EmptyState;
|
|
|
6308
6389
|
exports.FilterDropdown = FilterDropdown;
|
|
6309
6390
|
exports.FilterDropdownMenuItem = FilterDropdownMenuItem;
|
|
6310
6391
|
exports.LabelWithIndicator = LabelWithIndicator;
|
|
6392
|
+
exports.List = List;
|
|
6393
|
+
exports.ListItem = ListItem;
|
|
6394
|
+
exports.ListItemRightContent = ListItemRightContent;
|
|
6395
|
+
exports.ListSubheader = ListSubheader;
|
|
6311
6396
|
exports.Loader = Loader;
|
|
6312
6397
|
exports.Menu = Menu;
|
|
6313
6398
|
exports.MenuItemFilter = MenuItemFilter;
|
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, a as getThemeColor } 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";
|
|
@@ -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,
|
|
@@ -4928,7 +4928,7 @@ const StyledMenu = styled(Menu$2, {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
}
|
|
4930
4930
|
}));
|
|
4931
|
-
function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
|
|
4931
|
+
function _Menu({ extended, width, height, MenuListProps: MenuListProps2, ...otherProps }, ref) {
|
|
4932
4932
|
return /* @__PURE__ */ jsx(
|
|
4933
4933
|
StyledMenu,
|
|
4934
4934
|
{
|
|
@@ -4939,7 +4939,7 @@ function _Menu({ extended, width, height, MenuListProps, ...otherProps }, ref) {
|
|
|
4939
4939
|
height,
|
|
4940
4940
|
extended,
|
|
4941
4941
|
MenuListProps: {
|
|
4942
|
-
...
|
|
4942
|
+
...MenuListProps2,
|
|
4943
4943
|
"data-width": width,
|
|
4944
4944
|
"data-height": height,
|
|
4945
4945
|
"data-extended": extended
|
|
@@ -6263,6 +6263,87 @@ function _EllipsisWithTooltip({
|
|
|
6263
6263
|
);
|
|
6264
6264
|
}
|
|
6265
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
|
+
"aria-disabled": disabled,
|
|
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
|
+
}
|
|
6266
6347
|
export {
|
|
6267
6348
|
AUTOCOMPLETE_GROUP_HEADER_PROPERTY,
|
|
6268
6349
|
AccordionGroup,
|
|
@@ -6305,6 +6386,10 @@ export {
|
|
|
6305
6386
|
IconButton,
|
|
6306
6387
|
LabelWithIndicator,
|
|
6307
6388
|
L as Link,
|
|
6389
|
+
List,
|
|
6390
|
+
ListItem,
|
|
6391
|
+
ListItemRightContent,
|
|
6392
|
+
ListSubheader,
|
|
6308
6393
|
Loader,
|
|
6309
6394
|
Menu,
|
|
6310
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;
|