@carto/meridian-ds 2.5.5-alpha-translations.1 → 2.6.0
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 +5 -2
- package/dist/{Alert-CRVceJ9N.js → Alert-DHd9hCGz.js} +1 -1
- package/dist/{Alert-Dyw7Z9wJ.cjs → Alert-DOeOwxOe.cjs} +7 -7
- package/dist/{MenuItem-o51jnNjL.cjs → MenuItem-CYJN2OVU.cjs} +6 -6
- package/dist/{MenuItem-h41wtQTz.js → MenuItem-MUmADf3e.js} +1 -1
- package/dist/components/index.cjs +222 -76
- package/dist/components/index.js +161 -15
- package/dist/{TablePaginationActions-CMC_ZxDN.cjs → css-utils-CCi3p7os.cjs} +6 -0
- package/dist/{TablePaginationActions-DIFPc_wQ.js → css-utils-WejOmkiI.js} +10 -4
- package/dist/theme/index.cjs +108 -114
- package/dist/theme/index.js +7 -13
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +117 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +66 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts +2 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/index.d.ts +3 -0
- package/dist/types/components/EllipsisWithTooltip/index.d.ts.map +1 -0
- package/dist/types/components/Link/Link.stories.d.ts +0 -7
- package/dist/types/components/Link/Link.stories.d.ts.map +1 -1
- package/dist/types/components/Tag/Tag.d.ts +176 -4
- package/dist/types/components/Tag/Tag.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/theme/components/forms.d.ts.map +1 -1
- package/dist/types/utils/css-utils.d.ts +14 -0
- package/dist/types/utils/css-utils.d.ts.map +1 -0
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.d.ts.map +1 -1
- package/dist/widgets/index.cjs +114 -119
- package/dist/widgets/index.js +4 -9
- package/package.json +1 -1
|
@@ -4,12 +4,12 @@ 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 Alert$1 = require("../Alert-
|
|
8
|
-
const
|
|
7
|
+
const Alert$1 = require("../Alert-DOeOwxOe.cjs");
|
|
8
|
+
const cssUtils = require("../css-utils-CCi3p7os.cjs");
|
|
9
9
|
const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
|
|
10
10
|
const OpenDiagonallyRight = require("../OpenDiagonallyRight-CpL4ROwg.cjs");
|
|
11
11
|
const reactIntl = require("react-intl");
|
|
12
|
-
const MenuItem = require("../MenuItem-
|
|
12
|
+
const MenuItem = require("../MenuItem-CYJN2OVU.cjs");
|
|
13
13
|
require("cartocolor");
|
|
14
14
|
const reactWindow = require("react-window");
|
|
15
15
|
const reactCodemirror2 = require("react-codemirror2");
|
|
@@ -121,7 +121,7 @@ function _Button({
|
|
|
121
121
|
},
|
|
122
122
|
ref,
|
|
123
123
|
"aria-describedby": isExternalLink ? "external-hint" : ariaDescribedby,
|
|
124
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
124
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "inherit", color: "inherit", noWrap: true, component: "span", children: renderContent() })
|
|
125
125
|
}
|
|
126
126
|
);
|
|
127
127
|
}
|
|
@@ -227,7 +227,7 @@ const Root$5 = material.styled(material.Box)(({ theme }) => ({
|
|
|
227
227
|
alignItems: "center",
|
|
228
228
|
gap: theme.spacing(0.5)
|
|
229
229
|
}));
|
|
230
|
-
const Indicator = material.styled(
|
|
230
|
+
const Indicator = material.styled(cssUtils.Typography)(({ theme }) => ({
|
|
231
231
|
".Mui-disabled &": {
|
|
232
232
|
color: theme.palette.text.disabled
|
|
233
233
|
}
|
|
@@ -235,9 +235,9 @@ const Indicator = material.styled(TablePaginationActions.Typography)(({ theme })
|
|
|
235
235
|
const Icon = material.styled(material.Box)(({ theme }) => ({
|
|
236
236
|
display: "flex",
|
|
237
237
|
svg: {
|
|
238
|
-
width:
|
|
239
|
-
height:
|
|
240
|
-
fontSize:
|
|
238
|
+
width: cssUtils.ICON_SIZE_SMALL,
|
|
239
|
+
height: cssUtils.ICON_SIZE_SMALL,
|
|
240
|
+
fontSize: cssUtils.ICON_SIZE_SMALL,
|
|
241
241
|
path: {
|
|
242
242
|
fill: theme.palette.text.secondary,
|
|
243
243
|
".Mui-disabled &": {
|
|
@@ -284,7 +284,7 @@ function _LabelWithIndicator({
|
|
|
284
284
|
const LabelWithIndicator = React.forwardRef(_LabelWithIndicator);
|
|
285
285
|
function _PasswordField({ InputProps, size = "small", disabled, ...otherProps }, ref) {
|
|
286
286
|
const intl = reactIntl.useIntl();
|
|
287
|
-
const intlConfig =
|
|
287
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
288
288
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
289
289
|
const handleClickShowPassword = () => setShowPassword(!showPassword);
|
|
290
290
|
const showPasswordLabel = intlConfig.formatMessage({
|
|
@@ -305,7 +305,7 @@ function _PasswordField({ InputProps, size = "small", disabled, ...otherProps },
|
|
|
305
305
|
role: "textbox"
|
|
306
306
|
},
|
|
307
307
|
endAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
308
|
-
|
|
308
|
+
cssUtils.IconButton,
|
|
309
309
|
{
|
|
310
310
|
size,
|
|
311
311
|
disabled,
|
|
@@ -421,7 +421,7 @@ function _SelectField({
|
|
|
421
421
|
},
|
|
422
422
|
children: [
|
|
423
423
|
placeholder && /* @__PURE__ */ jsxRuntime.jsx(PlaceholderItem, { disabled: true, value: "", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
424
|
-
|
|
424
|
+
cssUtils.Typography,
|
|
425
425
|
{
|
|
426
426
|
variant: isSmall ? "body2" : "body1",
|
|
427
427
|
color: "text.hint",
|
|
@@ -526,7 +526,7 @@ function _MenuItemFilter({
|
|
|
526
526
|
"data-testid": dataTestId
|
|
527
527
|
}, ref) {
|
|
528
528
|
const intl = reactIntl.useIntl();
|
|
529
|
-
const intlConfig =
|
|
529
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
530
530
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
531
531
|
StyledMenuItem$1,
|
|
532
532
|
{
|
|
@@ -618,14 +618,14 @@ function _MultipleSelectField({
|
|
|
618
618
|
const isSmall = size === "small";
|
|
619
619
|
const paddingSize = isSmall || variant === "standard" ? 0 : 2;
|
|
620
620
|
const intl = reactIntl.useIntl();
|
|
621
|
-
const intlConfig =
|
|
621
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
622
622
|
const counterText = `${currentOptions.length} ${intlConfig.formatMessage({
|
|
623
623
|
id: "c4r.form.selected"
|
|
624
624
|
})}`;
|
|
625
625
|
const renderValue = React.useMemo(() => {
|
|
626
626
|
if (areAllSelected) {
|
|
627
627
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
628
|
-
|
|
628
|
+
cssUtils.Typography,
|
|
629
629
|
{
|
|
630
630
|
component: "span",
|
|
631
631
|
variant: isSmall ? "body2" : "body1",
|
|
@@ -637,7 +637,7 @@ function _MultipleSelectField({
|
|
|
637
637
|
}
|
|
638
638
|
if (areAnySelected) {
|
|
639
639
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
640
|
-
|
|
640
|
+
cssUtils.Typography,
|
|
641
641
|
{
|
|
642
642
|
component: "span",
|
|
643
643
|
variant: isSmall ? "body2" : "body1",
|
|
@@ -648,7 +648,7 @@ function _MultipleSelectField({
|
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
650
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
651
|
-
|
|
651
|
+
cssUtils.Typography,
|
|
652
652
|
{
|
|
653
653
|
component: "span",
|
|
654
654
|
variant: isSmall ? "body2" : "body1",
|
|
@@ -879,7 +879,7 @@ const _CopiableComponent = ({
|
|
|
879
879
|
}, ref) => {
|
|
880
880
|
const [open, setOpen] = React.useState(false);
|
|
881
881
|
const intl = reactIntl.useIntl();
|
|
882
|
-
const intlConfig =
|
|
882
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
883
883
|
const copyTooltipText = copyText === null ? null : copyText || intlConfig.formatMessage({ id: "c4r.button.copy" });
|
|
884
884
|
const copySuccessMessage = copiedText || intlConfig.formatMessage({
|
|
885
885
|
id: "c4r.notifications.copiedToClipboard"
|
|
@@ -910,7 +910,7 @@ const _CopiableComponent = ({
|
|
|
910
910
|
children: [
|
|
911
911
|
children,
|
|
912
912
|
button && /* @__PURE__ */ jsxRuntime.jsx(
|
|
913
|
-
|
|
913
|
+
cssUtils.IconButton,
|
|
914
914
|
{
|
|
915
915
|
...buttonProps,
|
|
916
916
|
disabled,
|
|
@@ -980,7 +980,7 @@ function _CopiableInputText({
|
|
|
980
980
|
...rest
|
|
981
981
|
}, ref) {
|
|
982
982
|
const intl = reactIntl.useIntl();
|
|
983
|
-
const intlConfig =
|
|
983
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
984
984
|
const [showText, setShowText] = React.useState(false);
|
|
985
985
|
const [isInputFocused, setIsInputFocused] = React.useState(false);
|
|
986
986
|
const inputType = !password ? "text" : showText ? "text" : "password";
|
|
@@ -996,7 +996,7 @@ function _CopiableInputText({
|
|
|
996
996
|
onBlur == null ? void 0 : onBlur(event);
|
|
997
997
|
};
|
|
998
998
|
const passwordAdornment = /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
999
|
-
|
|
999
|
+
cssUtils.IconButton,
|
|
1000
1000
|
{
|
|
1001
1001
|
edge: variant !== "standard" ? "end" : void 0,
|
|
1002
1002
|
onClick: () => setShowText(!showText),
|
|
@@ -1081,7 +1081,7 @@ function createCounterRenderTags({
|
|
|
1081
1081
|
getOptionLabel
|
|
1082
1082
|
});
|
|
1083
1083
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1084
|
-
|
|
1084
|
+
cssUtils.Typography,
|
|
1085
1085
|
{
|
|
1086
1086
|
variant: size === "small" ? "body2" : "body1",
|
|
1087
1087
|
component: "span",
|
|
@@ -1250,7 +1250,7 @@ function useAutocompleteRenderOption() {
|
|
|
1250
1250
|
title
|
|
1251
1251
|
),
|
|
1252
1252
|
secondaryText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1253
|
-
|
|
1253
|
+
cssUtils.Typography,
|
|
1254
1254
|
{
|
|
1255
1255
|
component: "p",
|
|
1256
1256
|
variant: "caption",
|
|
@@ -1274,7 +1274,7 @@ function useCreatableAutocomplete({
|
|
|
1274
1274
|
multiple
|
|
1275
1275
|
}) {
|
|
1276
1276
|
const intl = reactIntl.useIntl();
|
|
1277
|
-
const intlConfig =
|
|
1277
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
1278
1278
|
const filter = material.createFilterOptions();
|
|
1279
1279
|
const { renderOption: autocompleteRenderOption } = useAutocompleteRenderOption();
|
|
1280
1280
|
const creatableFilterOptions = (options, params) => {
|
|
@@ -1339,7 +1339,7 @@ function useMultipleAutocomplete({
|
|
|
1339
1339
|
allSelectedText
|
|
1340
1340
|
}) {
|
|
1341
1341
|
const intl = reactIntl.useIntl();
|
|
1342
|
-
const intlConfig =
|
|
1342
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
1343
1343
|
const defaultCounterText = counterText || intlConfig.formatMessage({ id: "c4r.form.selected" });
|
|
1344
1344
|
const defaultAllSelectedText = allSelectedText || intlConfig.formatMessage({ id: "c4r.form.allSelected" });
|
|
1345
1345
|
const [multipleValue, setMultipleValue] = React.useState(
|
|
@@ -1417,8 +1417,8 @@ const List = material.styled("ul")(
|
|
|
1417
1417
|
const ItemWrapper = material.styled("div")(({ style, theme, isSubtitle, isExtended, isMultiple }) => {
|
|
1418
1418
|
const getSubtitleStyles = () => {
|
|
1419
1419
|
const baseStyles = {
|
|
1420
|
-
height:
|
|
1421
|
-
minHeight:
|
|
1420
|
+
height: cssUtils.MENU_ITEM_SIZE_DENSE,
|
|
1421
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_DENSE,
|
|
1422
1422
|
marginTop: `${theme.spacing(1)} !important`,
|
|
1423
1423
|
alignItems: "flex-end",
|
|
1424
1424
|
...theme.typography.caption,
|
|
@@ -1475,7 +1475,7 @@ function _AutocompleteList({
|
|
|
1475
1475
|
multiple,
|
|
1476
1476
|
extended,
|
|
1477
1477
|
itemHeight,
|
|
1478
|
-
maxListHeight =
|
|
1478
|
+
maxListHeight = cssUtils.MENU_LIST_MAX_SIZE,
|
|
1479
1479
|
...otherProps
|
|
1480
1480
|
}, ref) {
|
|
1481
1481
|
const childrenArray = React.useMemo(() => {
|
|
@@ -1497,9 +1497,9 @@ function _AutocompleteList({
|
|
|
1497
1497
|
};
|
|
1498
1498
|
});
|
|
1499
1499
|
}, [children, multiple]);
|
|
1500
|
-
const defaultItemHeight = itemHeight ?? (extended ?
|
|
1500
|
+
const defaultItemHeight = itemHeight ?? (extended ? cssUtils.MENU_ITEM_SIZE_EXTENDED : cssUtils.MENU_ITEM_SIZE_DEFAULT);
|
|
1501
1501
|
const listboxHeight = React.useMemo(() => {
|
|
1502
|
-
const filterHeight = showFilters && multiple ?
|
|
1502
|
+
const filterHeight = showFilters && multiple ? cssUtils.MENU_ITEM_SIZE_EXTENDED : 0;
|
|
1503
1503
|
const availableHeight = maxListHeight - filterHeight;
|
|
1504
1504
|
const calculatedHeight = Math.min(
|
|
1505
1505
|
childrenArray.length * defaultItemHeight,
|
|
@@ -1765,7 +1765,7 @@ function useAutocomplete({
|
|
|
1765
1765
|
const Menu$1 = material.styled("div")(({ theme }) => ({
|
|
1766
1766
|
display: "flex",
|
|
1767
1767
|
alignItems: "center",
|
|
1768
|
-
height:
|
|
1768
|
+
height: cssUtils.APPBAR_SIZE,
|
|
1769
1769
|
marginRight: theme.spacing(1.5)
|
|
1770
1770
|
}));
|
|
1771
1771
|
const MenuButton = material.styled(material.IconButton)(({ theme }) => ({
|
|
@@ -1811,7 +1811,7 @@ const Logo = material.styled("div")(({ theme }) => ({
|
|
|
1811
1811
|
function BrandLogo({ logo }) {
|
|
1812
1812
|
return /* @__PURE__ */ jsxRuntime.jsx(Logo, { children: logo });
|
|
1813
1813
|
}
|
|
1814
|
-
const Text$1 = material.styled(
|
|
1814
|
+
const Text$1 = material.styled(cssUtils.Typography)({
|
|
1815
1815
|
display: "flex",
|
|
1816
1816
|
alignItems: "center",
|
|
1817
1817
|
whiteSpace: "nowrap"
|
|
@@ -1828,7 +1828,7 @@ function BrandText({ text }) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
);
|
|
1830
1830
|
}
|
|
1831
|
-
const Text = material.styled(
|
|
1831
|
+
const Text = material.styled(cssUtils.Typography)(({ theme }) => ({
|
|
1832
1832
|
display: "flex",
|
|
1833
1833
|
alignItems: "center",
|
|
1834
1834
|
"&::before": {
|
|
@@ -1869,7 +1869,7 @@ const BrandElements = material.styled("div")(({ theme }) => ({
|
|
|
1869
1869
|
minWidth: "192px"
|
|
1870
1870
|
}
|
|
1871
1871
|
}));
|
|
1872
|
-
const Content$
|
|
1872
|
+
const Content$5 = material.styled("div")(({ theme }) => ({
|
|
1873
1873
|
display: "flex",
|
|
1874
1874
|
alignItems: "center",
|
|
1875
1875
|
justifyContent: "space-between",
|
|
@@ -1892,7 +1892,7 @@ function _AppBar({
|
|
|
1892
1892
|
brandText && /* @__PURE__ */ jsxRuntime.jsx(BrandText, { text: brandText }),
|
|
1893
1893
|
secondaryText && /* @__PURE__ */ jsxRuntime.jsx(SecondaryText, { text: secondaryText })
|
|
1894
1894
|
] }),
|
|
1895
|
-
/* @__PURE__ */ jsxRuntime.jsx(Content$
|
|
1895
|
+
/* @__PURE__ */ jsxRuntime.jsx(Content$5, { children })
|
|
1896
1896
|
] }) });
|
|
1897
1897
|
}
|
|
1898
1898
|
const AppBar = React.forwardRef(_AppBar);
|
|
@@ -1927,7 +1927,7 @@ function CodeAreaFooter({
|
|
|
1927
1927
|
...props
|
|
1928
1928
|
}) {
|
|
1929
1929
|
const intl = reactIntl.useIntl();
|
|
1930
|
-
const intlConfig =
|
|
1930
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
1931
1931
|
if (!onClickFooter) return null;
|
|
1932
1932
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1933
1933
|
Footer,
|
|
@@ -1985,7 +1985,7 @@ function CodeAreaHeader({
|
|
|
1985
1985
|
size
|
|
1986
1986
|
}) {
|
|
1987
1987
|
const intl = reactIntl.useIntl();
|
|
1988
|
-
const intlConfig =
|
|
1988
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
1989
1989
|
const showExpandButton = !!onClickExpand;
|
|
1990
1990
|
const showCopyButton = copyValue !== void 0;
|
|
1991
1991
|
const showMenu = showExpandButton && showCopyButton;
|
|
@@ -2014,7 +2014,7 @@ function CodeAreaHeader({
|
|
|
2014
2014
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2015
2015
|
/* @__PURE__ */ jsxRuntime.jsxs(Header, { size, "data-size": size, "data-name": "code-area-header", children: [
|
|
2016
2016
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2017
|
-
|
|
2017
|
+
cssUtils.IconButton,
|
|
2018
2018
|
{
|
|
2019
2019
|
color: "default",
|
|
2020
2020
|
size,
|
|
@@ -2078,7 +2078,7 @@ function CodeAreaHeader({
|
|
|
2078
2078
|
}
|
|
2079
2079
|
),
|
|
2080
2080
|
showExpandButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2081
|
-
|
|
2081
|
+
cssUtils.IconButton,
|
|
2082
2082
|
{
|
|
2083
2083
|
color: "default",
|
|
2084
2084
|
size,
|
|
@@ -2700,8 +2700,8 @@ const InputWrapper = material.styled(material.Box, {
|
|
|
2700
2700
|
}
|
|
2701
2701
|
}));
|
|
2702
2702
|
const HelpIcon = material.styled(iconsMaterial.HelpOutline)(({ theme }) => ({
|
|
2703
|
-
width:
|
|
2704
|
-
height:
|
|
2703
|
+
width: cssUtils.ICON_SIZE_SMALL,
|
|
2704
|
+
height: cssUtils.ICON_SIZE_SMALL,
|
|
2705
2705
|
fill: theme.palette.text.secondary
|
|
2706
2706
|
}));
|
|
2707
2707
|
function CodeAreaField({
|
|
@@ -3137,13 +3137,13 @@ function DialogHeader({
|
|
|
3137
3137
|
...otherProps
|
|
3138
3138
|
}) {
|
|
3139
3139
|
const intl = reactIntl.useIntl();
|
|
3140
|
-
const intlConfig =
|
|
3140
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
3141
3141
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3142
3142
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogTitle, { component: "div", "data-name": "dialog-header", ...otherProps, children: [
|
|
3143
3143
|
/* @__PURE__ */ jsxRuntime.jsxs(Main$1, { children: [
|
|
3144
3144
|
/* @__PURE__ */ jsxRuntime.jsxs(ItemsWrapper$1, { flex: 1, maxWidth: 0.8, children: [
|
|
3145
3145
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3146
|
-
|
|
3146
|
+
cssUtils.Typography,
|
|
3147
3147
|
{
|
|
3148
3148
|
component: "h2",
|
|
3149
3149
|
variant: "inherit",
|
|
@@ -3172,7 +3172,7 @@ function DialogHeader({
|
|
|
3172
3172
|
children && /* @__PURE__ */ jsxRuntime.jsx(DividerBottom, {})
|
|
3173
3173
|
] });
|
|
3174
3174
|
}
|
|
3175
|
-
const Content$
|
|
3175
|
+
const Content$4 = material.styled(material.DialogContent, {
|
|
3176
3176
|
shouldForwardProp: (prop) => !["scrollableContent", "withGutter", "withBottomGutter"].includes(prop)
|
|
3177
3177
|
})(({ theme, scrollableContent, withGutter, withBottomGutter }) => ({
|
|
3178
3178
|
display: "flex",
|
|
@@ -3249,7 +3249,7 @@ function _DialogContent({
|
|
|
3249
3249
|
return () => resizeObserver.disconnect();
|
|
3250
3250
|
}, [contentRef, updateBorders]);
|
|
3251
3251
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3252
|
-
Content$
|
|
3252
|
+
Content$4,
|
|
3253
3253
|
{
|
|
3254
3254
|
ref: setContentRef,
|
|
3255
3255
|
onScroll: handleScroll,
|
|
@@ -3541,14 +3541,14 @@ function DialogStepper({
|
|
|
3541
3541
|
"data-state": isCompleted ? "completed" : isCurrent ? "current" : "uncompleted",
|
|
3542
3542
|
children: [
|
|
3543
3543
|
/* @__PURE__ */ jsxRuntime.jsx(StepNumber, { completed: isCompleted, current: isCurrent, children: isCompleted ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.Check, { fontSize: "small", "aria-label": "Completed step" }) : step }),
|
|
3544
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3544
|
+
/* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", component: "div", color: labelColor, children: stepLabel })
|
|
3545
3545
|
]
|
|
3546
3546
|
},
|
|
3547
3547
|
idx
|
|
3548
3548
|
);
|
|
3549
3549
|
}) }) });
|
|
3550
3550
|
}
|
|
3551
|
-
const Content$
|
|
3551
|
+
const Content$3 = material.styled(DialogContent, {
|
|
3552
3552
|
shouldForwardProp: (prop) => !["error", "withBorder"].includes(prop)
|
|
3553
3553
|
})(
|
|
3554
3554
|
({ error, withBorder, theme }) => ({
|
|
@@ -3577,7 +3577,7 @@ function CodeAreaDialogContent({
|
|
|
3577
3577
|
withGutter = false
|
|
3578
3578
|
}) {
|
|
3579
3579
|
if (!children) return null;
|
|
3580
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Content$
|
|
3580
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Content$3, { withGutter, error, withBorder, children });
|
|
3581
3581
|
}
|
|
3582
3582
|
function CodeAreaDialogConfirmation({
|
|
3583
3583
|
onClose,
|
|
@@ -3591,7 +3591,7 @@ function CodeAreaDialogConfirmation({
|
|
|
3591
3591
|
content
|
|
3592
3592
|
}) {
|
|
3593
3593
|
const intl = reactIntl.useIntl();
|
|
3594
|
-
const intlConfig =
|
|
3594
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
3595
3595
|
if (!onClose || !onCancel) {
|
|
3596
3596
|
return null;
|
|
3597
3597
|
}
|
|
@@ -3792,7 +3792,7 @@ function ClearButton({
|
|
|
3792
3792
|
...props
|
|
3793
3793
|
}) {
|
|
3794
3794
|
const intl = reactIntl.useIntl();
|
|
3795
|
-
const intlConfig =
|
|
3795
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
3796
3796
|
return /* @__PURE__ */ jsxRuntime.jsx(Container, { size, variant, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3797
3797
|
material.IconButton,
|
|
3798
3798
|
{
|
|
@@ -3865,7 +3865,7 @@ function DatePicker({
|
|
|
3865
3865
|
...props
|
|
3866
3866
|
}) {
|
|
3867
3867
|
const intl = reactIntl.useIntl();
|
|
3868
|
-
const intlConfig =
|
|
3868
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
3869
3869
|
return (
|
|
3870
3870
|
// Don't remove className, it's used for styling
|
|
3871
3871
|
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4153,7 +4153,7 @@ function DateRangePicker({
|
|
|
4153
4153
|
...props
|
|
4154
4154
|
}) {
|
|
4155
4155
|
const intl = reactIntl.useIntl();
|
|
4156
|
-
const intlConfig =
|
|
4156
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
4157
4157
|
const [isEndDateOpen, setIsEndDateOpen] = React.useState(false);
|
|
4158
4158
|
const [isStartDateOpen, setIsStartDateOpen] = React.useState(false);
|
|
4159
4159
|
const [startDate, setStartDate] = React.useState(
|
|
@@ -4341,7 +4341,7 @@ function TimePicker({
|
|
|
4341
4341
|
...props
|
|
4342
4342
|
}) {
|
|
4343
4343
|
const intl = reactIntl.useIntl();
|
|
4344
|
-
const intlConfig =
|
|
4344
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
4345
4345
|
const inputRef = React.useRef(null);
|
|
4346
4346
|
const [inputWidth, setInputWidth] = React.useState(0);
|
|
4347
4347
|
React.useEffect(() => {
|
|
@@ -4452,7 +4452,7 @@ function DateTimePicker({
|
|
|
4452
4452
|
...props
|
|
4453
4453
|
}) {
|
|
4454
4454
|
const intl = reactIntl.useIntl();
|
|
4455
|
-
const intlConfig =
|
|
4455
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
4456
4456
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4457
4457
|
DateFieldContainer,
|
|
4458
4458
|
{
|
|
@@ -4517,7 +4517,7 @@ function DateTimePicker({
|
|
|
4517
4517
|
);
|
|
4518
4518
|
}
|
|
4519
4519
|
const DEFAULT_ITEMS = [{ outlinedBullet: false, value: "" }];
|
|
4520
|
-
const Content$
|
|
4520
|
+
const Content$2 = material.styled("ul")(({ theme }) => ({
|
|
4521
4521
|
listStyle: "none",
|
|
4522
4522
|
paddingLeft: 0,
|
|
4523
4523
|
margin: theme.spacing(0.5, 0, 0, 0)
|
|
@@ -4538,7 +4538,7 @@ const Bullet = material.styled("span")(({ theme }) => ({
|
|
|
4538
4538
|
borderRadius: "50%",
|
|
4539
4539
|
backgroundColor: theme.palette.qualitative.bold[1]
|
|
4540
4540
|
}));
|
|
4541
|
-
const Category = material.styled(
|
|
4541
|
+
const Category = material.styled(cssUtils.Typography)(({ theme }) => ({
|
|
4542
4542
|
minWidth: theme.spacing(10),
|
|
4543
4543
|
marginRight: theme.spacing(1.5)
|
|
4544
4544
|
}));
|
|
@@ -4547,8 +4547,8 @@ function TooltipData({
|
|
|
4547
4547
|
title
|
|
4548
4548
|
}) {
|
|
4549
4549
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4550
|
-
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4551
|
-
/* @__PURE__ */ jsxRuntime.jsx(Content$
|
|
4550
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { color: "inherit", variant: "caption", weight: "medium", children: title }),
|
|
4551
|
+
/* @__PURE__ */ jsxRuntime.jsx(Content$2, { children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(Entry, { children: [
|
|
4552
4552
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4553
4553
|
Bullet,
|
|
4554
4554
|
{
|
|
@@ -4561,7 +4561,7 @@ function TooltipData({
|
|
|
4561
4561
|
}
|
|
4562
4562
|
),
|
|
4563
4563
|
item.category && /* @__PURE__ */ jsxRuntime.jsx(Category, { color: "inherit", variant: "caption", children: item.category }),
|
|
4564
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4564
|
+
/* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { color: "inherit", variant: "caption", weight: "medium", children: item.value })
|
|
4565
4565
|
] }, index)) })
|
|
4566
4566
|
] });
|
|
4567
4567
|
}
|
|
@@ -4639,8 +4639,8 @@ const StyledAvatar = material.styled(material.Avatar, {
|
|
|
4639
4639
|
...theme.typography.caption,
|
|
4640
4640
|
fontWeight: 500,
|
|
4641
4641
|
svg: {
|
|
4642
|
-
width:
|
|
4643
|
-
height:
|
|
4642
|
+
width: cssUtils.ICON_SIZE_SMALL,
|
|
4643
|
+
height: cssUtils.ICON_SIZE_SMALL
|
|
4644
4644
|
}
|
|
4645
4645
|
},
|
|
4646
4646
|
...disabled && {
|
|
@@ -4675,7 +4675,7 @@ const StyledMenu = material.styled(material.Menu, {
|
|
|
4675
4675
|
})(({ extended, width, height }) => ({
|
|
4676
4676
|
...extended && {
|
|
4677
4677
|
".MuiMenuItem-root": {
|
|
4678
|
-
minHeight:
|
|
4678
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED
|
|
4679
4679
|
}
|
|
4680
4680
|
},
|
|
4681
4681
|
...width && {
|
|
@@ -4718,7 +4718,7 @@ const StyledMenuList = material.styled(material.MenuList, {
|
|
|
4718
4718
|
})(({ extended, width, height }) => ({
|
|
4719
4719
|
...extended && {
|
|
4720
4720
|
".MuiMenuItem-root": {
|
|
4721
|
-
minHeight:
|
|
4721
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED
|
|
4722
4722
|
}
|
|
4723
4723
|
},
|
|
4724
4724
|
"&.MuiList-root": {
|
|
@@ -4889,7 +4889,7 @@ function _FilterDropdown({
|
|
|
4889
4889
|
"data-color": buttonColor
|
|
4890
4890
|
};
|
|
4891
4891
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4892
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title: tooltipLabel, placement: tooltipPlacement, children: /* @__PURE__ */ jsxRuntime.jsx(ButtonWrapper, { isOpen, buttonColor, ref, children: isIcon ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4892
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title: tooltipLabel, placement: tooltipPlacement, children: /* @__PURE__ */ jsxRuntime.jsx(ButtonWrapper, { isOpen, buttonColor, ref, children: isIcon ? /* @__PURE__ */ jsxRuntime.jsx(cssUtils.IconButton, { ...commonButtonProps, icon }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
4893
4893
|
Button,
|
|
4894
4894
|
{
|
|
4895
4895
|
...commonButtonProps,
|
|
@@ -4959,7 +4959,7 @@ const SnackbarRoot = material.styled(material.Snackbar)(({ theme }) => ({
|
|
|
4959
4959
|
maxWidth: `${MAX_WIDTH}px`
|
|
4960
4960
|
}
|
|
4961
4961
|
}));
|
|
4962
|
-
const Content = material.styled(material.Box, {
|
|
4962
|
+
const Content$1 = material.styled(material.Box, {
|
|
4963
4963
|
shouldForwardProp: (prop) => prop !== "autoWidth"
|
|
4964
4964
|
})(({ autoWidth, theme }) => ({
|
|
4965
4965
|
minWidth: "100%",
|
|
@@ -5041,7 +5041,7 @@ const CloseButtonWrapper = material.styled(material.Box)(({ theme }) => ({
|
|
|
5041
5041
|
}));
|
|
5042
5042
|
function Snackbar({
|
|
5043
5043
|
severity = "neutral",
|
|
5044
|
-
autoHideDuration =
|
|
5044
|
+
autoHideDuration = cssUtils.NOTIFICATION_DURATION_IN_MS,
|
|
5045
5045
|
closeable = true,
|
|
5046
5046
|
children,
|
|
5047
5047
|
title,
|
|
@@ -5053,11 +5053,11 @@ function Snackbar({
|
|
|
5053
5053
|
...rest
|
|
5054
5054
|
}) {
|
|
5055
5055
|
const intl = reactIntl.useIntl();
|
|
5056
|
-
const intlConfig =
|
|
5056
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
5057
5057
|
const isNeutral = severity === "neutral";
|
|
5058
5058
|
const disabledIcon = icon === false || isNeutral && !icon;
|
|
5059
5059
|
const disabledAutoHide = autoHideDuration === null;
|
|
5060
|
-
const duration = disabledAutoHide ? null : autoHideDuration ||
|
|
5060
|
+
const duration = disabledAutoHide ? null : autoHideDuration || cssUtils.NOTIFICATION_DURATION_IN_MS;
|
|
5061
5061
|
return /* @__PURE__ */ jsxRuntime.jsx(material.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5062
5062
|
SnackbarRoot,
|
|
5063
5063
|
{
|
|
@@ -5068,7 +5068,7 @@ function Snackbar({
|
|
|
5068
5068
|
TransitionComponent: autoWidth ? material.Fade : material.Slide,
|
|
5069
5069
|
"data-auto-width": autoWidth,
|
|
5070
5070
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5071
|
-
Content,
|
|
5071
|
+
Content$1,
|
|
5072
5072
|
{
|
|
5073
5073
|
sx: {
|
|
5074
5074
|
position: "relative"
|
|
@@ -5089,7 +5089,7 @@ function Snackbar({
|
|
|
5089
5089
|
}
|
|
5090
5090
|
),
|
|
5091
5091
|
closeable && /* @__PURE__ */ jsxRuntime.jsx(CloseButtonWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5092
|
-
|
|
5092
|
+
cssUtils.IconButton,
|
|
5093
5093
|
{
|
|
5094
5094
|
color: "default",
|
|
5095
5095
|
onClick: (e) => onClose(e, "timeout"),
|
|
@@ -5217,6 +5217,7 @@ const TagRoot = material.styled("div", {
|
|
|
5217
5217
|
padding: theme.spacing(0, 0.5),
|
|
5218
5218
|
borderRadius: theme.spacing(0.25),
|
|
5219
5219
|
gap: theme.spacing(0.5),
|
|
5220
|
+
maxWidth: "100%",
|
|
5220
5221
|
height: theme.spacing(2),
|
|
5221
5222
|
borderWidth: "1px",
|
|
5222
5223
|
borderStyle: "solid",
|
|
@@ -5235,8 +5236,8 @@ const TagIcon = material.styled("div")(({ theme }) => ({
|
|
|
5235
5236
|
justifyContent: "center",
|
|
5236
5237
|
alignItems: "center",
|
|
5237
5238
|
"& svg": {
|
|
5238
|
-
width: theme.spacing(
|
|
5239
|
-
height: theme.spacing(
|
|
5239
|
+
width: theme.spacing(cssUtils.ICON_SIZE_SMALL),
|
|
5240
|
+
height: theme.spacing(cssUtils.ICON_SIZE_SMALL),
|
|
5240
5241
|
"& g": {
|
|
5241
5242
|
fill: "currentColor"
|
|
5242
5243
|
}
|
|
@@ -5247,6 +5248,7 @@ const TagLabel = material.styled("div", {
|
|
|
5247
5248
|
})(({ type, theme }) => ({
|
|
5248
5249
|
display: "flex",
|
|
5249
5250
|
alignItems: "center",
|
|
5251
|
+
...cssUtils.ellipsisStyles,
|
|
5250
5252
|
paddingTop: type === "code" ? theme.spacing(0.25) : void 0
|
|
5251
5253
|
}));
|
|
5252
5254
|
function _Tag({
|
|
@@ -5278,7 +5280,7 @@ function _Tag({
|
|
|
5278
5280
|
children: [
|
|
5279
5281
|
icon && /* @__PURE__ */ jsxRuntime.jsx(TagIcon, { children: icon }),
|
|
5280
5282
|
/* @__PURE__ */ jsxRuntime.jsx(TagLabel, { type, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5281
|
-
|
|
5283
|
+
cssUtils.Typography,
|
|
5282
5284
|
{
|
|
5283
5285
|
component: "span",
|
|
5284
5286
|
color: "inherit",
|
|
@@ -5420,7 +5422,7 @@ function useFileUpload({
|
|
|
5420
5422
|
uploadInputRef
|
|
5421
5423
|
}) {
|
|
5422
5424
|
const intl = reactIntl.useIntl();
|
|
5423
|
-
const intlConfig =
|
|
5425
|
+
const intlConfig = cssUtils.useImperativeIntl(intl);
|
|
5424
5426
|
const [filesText, setFilesText] = React.useState("");
|
|
5425
5427
|
const [dragOver, setDragOver] = React.useState(false);
|
|
5426
5428
|
React.useEffect(() => {
|
|
@@ -5575,12 +5577,155 @@ function _UploadField({
|
|
|
5575
5577
|
] });
|
|
5576
5578
|
}
|
|
5577
5579
|
const UploadField = React.forwardRef(_UploadField);
|
|
5580
|
+
const TooltipRoot = material.styled(material.Tooltip)(() => ({
|
|
5581
|
+
whiteSpace: "nowrap",
|
|
5582
|
+
maxWidth: 999,
|
|
5583
|
+
pointerEvents: "auto"
|
|
5584
|
+
}));
|
|
5585
|
+
const Content = material.styled("span", {
|
|
5586
|
+
shouldForwardProp: (prop) => !["ellipsisTarget", "lines", "content"].includes(prop)
|
|
5587
|
+
})(({ ellipsisTarget = "all", lines = 1, content = "block" }) => {
|
|
5588
|
+
if (lines > 1) {
|
|
5589
|
+
return {
|
|
5590
|
+
display: "-webkit-box",
|
|
5591
|
+
...cssUtils.ellipsisStyles,
|
|
5592
|
+
whiteSpace: "initial !important",
|
|
5593
|
+
WebkitLineClamp: lines,
|
|
5594
|
+
WebkitBoxOrient: "vertical",
|
|
5595
|
+
"& > *": { display: "block" }
|
|
5596
|
+
};
|
|
5597
|
+
}
|
|
5598
|
+
if (ellipsisTarget === "first-child") {
|
|
5599
|
+
return {
|
|
5600
|
+
display: "flex",
|
|
5601
|
+
flex: "1",
|
|
5602
|
+
overflow: "hidden",
|
|
5603
|
+
"& > *:nth-of-type(1)": {
|
|
5604
|
+
display: "block",
|
|
5605
|
+
...cssUtils.ellipsisStyles,
|
|
5606
|
+
marginRight: "-0.15em"
|
|
5607
|
+
// Prevent ellipsis separation
|
|
5608
|
+
}
|
|
5609
|
+
};
|
|
5610
|
+
}
|
|
5611
|
+
if (content === "flex") {
|
|
5612
|
+
return {
|
|
5613
|
+
display: "flex",
|
|
5614
|
+
flex: "1",
|
|
5615
|
+
"& > *": {
|
|
5616
|
+
display: "block",
|
|
5617
|
+
...cssUtils.ellipsisStyles
|
|
5618
|
+
}
|
|
5619
|
+
};
|
|
5620
|
+
}
|
|
5621
|
+
return {
|
|
5622
|
+
display: "block",
|
|
5623
|
+
...cssUtils.ellipsisStyles,
|
|
5624
|
+
fontWeight: "inherit",
|
|
5625
|
+
"& > *": { display: "inline" }
|
|
5626
|
+
};
|
|
5627
|
+
});
|
|
5628
|
+
function _EllipsisWithTooltip({
|
|
5629
|
+
children,
|
|
5630
|
+
tooltipText,
|
|
5631
|
+
alwaysShowTooltip,
|
|
5632
|
+
content = "block",
|
|
5633
|
+
textRef: inputTextRef,
|
|
5634
|
+
ellipsisTarget = "all",
|
|
5635
|
+
lines = 1,
|
|
5636
|
+
"aria-label": ariaLabel,
|
|
5637
|
+
contentProps,
|
|
5638
|
+
...otherProps
|
|
5639
|
+
}, ref) {
|
|
5640
|
+
var _a;
|
|
5641
|
+
const textElementRef = React.useRef(null);
|
|
5642
|
+
const [overflowing, setOverflowing] = React.useState(false);
|
|
5643
|
+
const textRef = React.useMemo(
|
|
5644
|
+
() => inputTextRef || textElementRef,
|
|
5645
|
+
[inputTextRef, textElementRef]
|
|
5646
|
+
);
|
|
5647
|
+
const getTextContent = (node) => {
|
|
5648
|
+
if (typeof node === "string") return node;
|
|
5649
|
+
if (typeof node === "number") return String(node);
|
|
5650
|
+
if (React.isValidElement(node)) {
|
|
5651
|
+
const props = node.props;
|
|
5652
|
+
if (props.children) {
|
|
5653
|
+
return getTextContent(props.children);
|
|
5654
|
+
}
|
|
5655
|
+
}
|
|
5656
|
+
return "";
|
|
5657
|
+
};
|
|
5658
|
+
const elementTitle = tooltipText || ((_a = textElementRef.current) == null ? void 0 : _a.innerText) || (alwaysShowTooltip || overflowing ? getTextContent(children) : "");
|
|
5659
|
+
React.useEffect(() => {
|
|
5660
|
+
const container = textRef.current;
|
|
5661
|
+
if (!container || !children) return;
|
|
5662
|
+
if (alwaysShowTooltip) {
|
|
5663
|
+
setOverflowing(true);
|
|
5664
|
+
return;
|
|
5665
|
+
}
|
|
5666
|
+
let isOverflowing = false;
|
|
5667
|
+
if (lines > 1) {
|
|
5668
|
+
isOverflowing = container.scrollHeight > container.clientHeight;
|
|
5669
|
+
} else if (ellipsisTarget === "first-child") {
|
|
5670
|
+
const children2 = Array.from(container.children);
|
|
5671
|
+
const totalWidth = children2.reduce(
|
|
5672
|
+
(sum, child) => sum + ((child == null ? void 0 : child.scrollWidth) || 0),
|
|
5673
|
+
0
|
|
5674
|
+
);
|
|
5675
|
+
isOverflowing = totalWidth > container.clientWidth;
|
|
5676
|
+
} else {
|
|
5677
|
+
const hasContainerOverflow = container.scrollWidth > container.clientWidth;
|
|
5678
|
+
const children2 = Array.from(container.children);
|
|
5679
|
+
const hasChildOverflow = children2.some(
|
|
5680
|
+
(child) => child.scrollWidth > child.clientWidth
|
|
5681
|
+
);
|
|
5682
|
+
isOverflowing = hasContainerOverflow || hasChildOverflow;
|
|
5683
|
+
}
|
|
5684
|
+
setOverflowing(isOverflowing);
|
|
5685
|
+
}, [textRef, alwaysShowTooltip, children, ellipsisTarget, lines, content]);
|
|
5686
|
+
React.useEffect(() => {
|
|
5687
|
+
if (typeof ref === "function") {
|
|
5688
|
+
ref(textElementRef.current);
|
|
5689
|
+
} else if (ref) {
|
|
5690
|
+
ref.current = textElementRef.current;
|
|
5691
|
+
}
|
|
5692
|
+
}, [ref]);
|
|
5693
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5694
|
+
TooltipRoot,
|
|
5695
|
+
{
|
|
5696
|
+
disableFocusListener: !overflowing && !alwaysShowTooltip,
|
|
5697
|
+
disableHoverListener: !overflowing && !alwaysShowTooltip,
|
|
5698
|
+
disableTouchListener: !overflowing && !alwaysShowTooltip,
|
|
5699
|
+
title: elementTitle,
|
|
5700
|
+
describeChild: true,
|
|
5701
|
+
...otherProps,
|
|
5702
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5703
|
+
Content,
|
|
5704
|
+
{
|
|
5705
|
+
"aria-label": ariaLabel ?? elementTitle,
|
|
5706
|
+
ref: textElementRef,
|
|
5707
|
+
ellipsisTarget,
|
|
5708
|
+
lines,
|
|
5709
|
+
content,
|
|
5710
|
+
"data-name": "ellipsis-with-tooltip",
|
|
5711
|
+
"data-overflowing": overflowing,
|
|
5712
|
+
"data-lines": lines,
|
|
5713
|
+
"data-content": content,
|
|
5714
|
+
"data-ellipsis-target": ellipsisTarget,
|
|
5715
|
+
...contentProps,
|
|
5716
|
+
children
|
|
5717
|
+
}
|
|
5718
|
+
)
|
|
5719
|
+
}
|
|
5720
|
+
);
|
|
5721
|
+
}
|
|
5722
|
+
const EllipsisWithTooltip = React.forwardRef(_EllipsisWithTooltip);
|
|
5578
5723
|
exports.Alert = Alert$1.Alert;
|
|
5579
5724
|
exports.Link = Alert$1.Link;
|
|
5580
5725
|
exports.ScreenReaderOnly = Alert$1.ScreenReaderOnly;
|
|
5581
|
-
exports.IconButton =
|
|
5582
|
-
exports.TablePaginationActions =
|
|
5583
|
-
exports.Typography =
|
|
5726
|
+
exports.IconButton = cssUtils.IconButton;
|
|
5727
|
+
exports.TablePaginationActions = cssUtils.TablePaginationActions;
|
|
5728
|
+
exports.Typography = cssUtils.Typography;
|
|
5584
5729
|
exports.MenuItem = MenuItem.MenuItem;
|
|
5585
5730
|
exports.AUTOCOMPLETE_GROUP_HEADER_PROPERTY = AUTOCOMPLETE_GROUP_HEADER_PROPERTY;
|
|
5586
5731
|
exports.AccordionGroup = AccordionGroup;
|
|
@@ -5614,6 +5759,7 @@ exports.DialogFooter = DialogFooter;
|
|
|
5614
5759
|
exports.DialogHeader = DialogHeader;
|
|
5615
5760
|
exports.DialogPaper = DialogPaper;
|
|
5616
5761
|
exports.DialogStepper = DialogStepper;
|
|
5762
|
+
exports.EllipsisWithTooltip = EllipsisWithTooltip;
|
|
5617
5763
|
exports.FilterDropdown = FilterDropdown;
|
|
5618
5764
|
exports.FilterDropdownMenuItem = FilterDropdownMenuItem;
|
|
5619
5765
|
exports.LabelWithIndicator = LabelWithIndicator;
|