@carto/meridian-ds 4.2.0 → 4.2.1-alpha.08dfe9f.307
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 +23 -0
- package/dist/{TablePaginationActions-WuqMxOyM.cjs → TablePaginationActions-B3Vtruj_.cjs} +5 -3
- package/dist/{TablePaginationActions-BvKjTAmB.js → TablePaginationActions-CpCi2L7U.js} +5 -3
- package/dist/components/index.cjs +72 -87
- package/dist/components/index.js +74 -89
- package/dist/icons-screenshot.webp +0 -0
- package/dist/metadata.json +144 -144
- package/dist/palette-utils-Ccd-r_Nr.js +357 -0
- package/dist/palette-utils-Dt4yj7Pv.cjs +373 -0
- package/dist/theme/index.cjs +37 -12
- package/dist/theme/index.js +38 -13
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -4
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.stories.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaField/CodeAreaField.stories.d.ts.map +1 -1
- package/dist/types/components/CopiableInputText/CopiableInputText.d.ts +2 -2
- package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts +2 -2
- package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.stories.d.ts +3 -0
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/Dialog/Dialog.d.ts.map +1 -1
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -1
- package/dist/types/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/types/components/IconButton/IconButton.stories.d.ts.map +1 -1
- package/dist/types/components/IconWrapper/IconWrapper.stories.d.ts.map +1 -1
- package/dist/types/components/LabelWithIndicator/LabelWithIndicator.stories.d.ts.map +1 -1
- package/dist/types/components/Link/Link.stories.d.ts.map +1 -1
- package/dist/types/components/List/ListItem/ListItem.stories.d.ts.map +1 -1
- package/dist/types/components/MessageField/MessageField.stories.d.ts.map +1 -1
- package/dist/types/components/MessageField/MessageField.styled.d.ts +1 -1
- package/dist/types/components/PasswordField/PasswordField.d.ts +2 -2
- package/dist/types/components/PasswordField/PasswordField.d.ts.map +1 -1
- package/dist/types/components/PasswordField/PasswordField.stories.d.ts +2 -2
- package/dist/types/components/PasswordField/PasswordField.stories.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.styled.d.ts +2 -2
- package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
- package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts.map +1 -1
- package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts.map +1 -1
- package/dist/types/components/SplitButton/SplitButton.stories.d.ts.map +1 -1
- package/dist/types/components/TablePaginationActions/TablePaginationActions.stories.d.ts.map +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts.map +1 -1
- package/dist/types/components/UploadField/UploadField.stories.d.ts.map +1 -1
- package/dist/types/components/UploadField/UploadField.styled.d.ts +1 -1
- package/dist/types/theme/base-theme-options.d.ts +2 -1764
- package/dist/types/theme/base-theme-options.d.ts.map +1 -1
- package/dist/types/theme/carto-theme.d.ts +2 -4258
- package/dist/types/theme/carto-theme.d.ts.map +1 -1
- package/dist/types/theme/components/buttons.d.ts.map +1 -1
- package/dist/types/theme/components/data-display.d.ts.map +1 -1
- package/dist/types/theme/components/forms.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Checkbox.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Chip.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Divider.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Paper.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Radio.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Slider.stories.d.ts +1 -1
- package/dist/types/theme/components/stories/Switch.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Tabs.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/TextArea.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/TextField.stories.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Tooltip.stories.d.ts.map +1 -1
- package/dist/types/theme/css-baseline.d.ts +2 -904
- package/dist/types/theme/css-baseline.d.ts.map +1 -1
- package/dist/types/theme/tokens/LayoutTokens.stories.d.ts.map +1 -1
- package/dist/types/theme/tokens/typography.d.ts +2 -1705
- package/dist/types/theme/tokens/typography.d.ts.map +1 -1
- package/dist/types/theme/types.d.ts +13 -8
- package/dist/types/theme/types.d.ts.map +1 -1
- package/dist/types/widgets/SkeletonWidgets.d.ts +4 -4
- package/dist/types/widgets/legend/LegendWidgetUI.styles.d.ts +2 -2
- package/dist/types/widgets/legend/legend-types/LegendProportion.d.ts.map +1 -1
- package/dist/widgets/index.cjs +5 -13
- package/dist/widgets/index.js +5 -13
- package/package.json +24 -20
- package/dist/palette-utils-DX1R_i9N.cjs +0 -1138
- package/dist/palette-utils-d-9NY8qw.js +0 -1122
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- chore(deps): MUI v5 → v9 upgrade (integration branch) [sc-557186] [#485](https://github.com/CartoDB/meridian-ds/pull/485)
|
|
6
|
+
- chore(deps): upgrade MUI core to v6 + prep peers/react-is [sc-563129] [#484](https://github.com/CartoDB/meridian-ds/pull/484)
|
|
7
|
+
- chore(deps): bump yaml from 1.10.2 to 1.10.3 [#501](https://github.com/CartoDB/meridian-ds/pull/501)
|
|
8
|
+
- chore(deps): bump postcss from 8.5.16 to 8.5.23 [#498](https://github.com/CartoDB/meridian-ds/pull/498)
|
|
9
|
+
- chore(deps): bump picomatch from 2.3.1 to 2.3.2 [#500](https://github.com/CartoDB/meridian-ds/pull/500)
|
|
10
|
+
- chore(deps-dev): bump vitest from 3.2.4 to 3.2.6 [#499](https://github.com/CartoDB/meridian-ds/pull/499)
|
|
11
|
+
- chore(deps): bump lodash from 4.17.21 to 4.18.1 [#502](https://github.com/CartoDB/meridian-ds/pull/502)
|
|
12
|
+
- chore(deps-dev): bump the storybook group with 7 updates [#493](https://github.com/CartoDB/meridian-ds/pull/493)
|
|
13
|
+
- chore(deps-dev): bump @babel/core from 7.26.0 to 7.29.6 in /scripts/import-figma-icons [#491](https://github.com/CartoDB/meridian-ds/pull/491)
|
|
14
|
+
- chore(deps): bump ws from 8.18.0 to 8.21.1 [#492](https://github.com/CartoDB/meridian-ds/pull/492)
|
|
15
|
+
- chore(deps): bump @babel/core from 7.26.0 to 7.29.7 [#490](https://github.com/CartoDB/meridian-ds/pull/490)
|
|
16
|
+
- chore(deps-dev): bump @vitest/browser from 3.2.4 to 3.2.7 [#488](https://github.com/CartoDB/meridian-ds/pull/488)
|
|
17
|
+
- chore(deps): bump fast-uri from 3.0.3 to 3.1.4 [#489](https://github.com/CartoDB/meridian-ds/pull/489)
|
|
18
|
+
- chore(deps): bump svgo from 3.3.2 to 3.3.4 in /scripts/import-figma-icons [#487](https://github.com/CartoDB/meridian-ds/pull/487)
|
|
19
|
+
- chore(deps): bump brace-expansion from 1.1.12 to 1.1.16 [#483](https://github.com/CartoDB/meridian-ds/pull/483)
|
|
20
|
+
- chore(deps-dev): bump the storybook group across 1 directory with 11 updates [#481](https://github.com/CartoDB/meridian-ds/pull/481)
|
|
21
|
+
- chore(deps): bump qs from 6.15.1 to 6.15.3 [#476](https://github.com/CartoDB/meridian-ds/pull/476)
|
|
22
|
+
- chore(deps): bump js-yaml from 4.1.1 to 4.3.0 [#468](https://github.com/CartoDB/meridian-ds/pull/468)
|
|
23
|
+
- chore(deps): bump js-yaml from 4.1.1 to 4.3.0 in /scripts/import-figma-icons [#467](https://github.com/CartoDB/meridian-ds/pull/467)
|
|
24
|
+
- chore(deps): bump form-data from 4.0.4 to 4.0.6 [#457](https://github.com/CartoDB/meridian-ds/pull/457)
|
|
25
|
+
- chore(deps): bump undici from 7.25.0 to 7.28.0 [#456](https://github.com/CartoDB/meridian-ds/pull/456)
|
|
26
|
+
- chore(deps-dev): bump dompurify from 3.2.6 to 3.4.11 [#455](https://github.com/CartoDB/meridian-ds/pull/455)
|
|
27
|
+
|
|
5
28
|
## 4.0
|
|
6
29
|
|
|
7
30
|
### 4.2.0
|
|
@@ -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 paletteUtils = require("./palette-utils-
|
|
5
|
+
const paletteUtils = require("./palette-utils-Dt4yj7Pv.cjs");
|
|
6
6
|
const iconsMaterial = require("@mui/icons-material");
|
|
7
7
|
const reactIntl = require("react-intl");
|
|
8
8
|
const useImperativeIntl = require("./useImperativeIntl-lvkv1UNL.cjs");
|
|
@@ -249,10 +249,12 @@ function _IconButton({
|
|
|
249
249
|
variant,
|
|
250
250
|
color,
|
|
251
251
|
active,
|
|
252
|
-
|
|
252
|
+
loading,
|
|
253
|
+
loadingIndicator: /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }),
|
|
254
|
+
disabled,
|
|
253
255
|
role: "button",
|
|
254
256
|
"aria-label": ariaLabel,
|
|
255
|
-
children: loading ?
|
|
257
|
+
children: loading ? null : icon
|
|
256
258
|
}
|
|
257
259
|
)
|
|
258
260
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { styled, MenuItem as MenuItem$1, Tooltip, CircularProgress, IconButton as IconButton$1, Box } from "@mui/material";
|
|
4
|
-
import { d as MENU_ITEM_SIZE_DENSE, M as MENU_ITEM_SIZE_EXTENDED, e as ICON_SIZE_LARGE, a as ICON_SIZE_MEDIUM, I as ICON_SIZE_SMALL } from "./palette-utils-
|
|
4
|
+
import { d as MENU_ITEM_SIZE_DENSE, M as MENU_ITEM_SIZE_EXTENDED, e as ICON_SIZE_LARGE, a as ICON_SIZE_MEDIUM, I as ICON_SIZE_SMALL } from "./palette-utils-Ccd-r_Nr.js";
|
|
5
5
|
import { KeyboardArrowLeftOutlined, KeyboardArrowRightOutlined } from "@mui/icons-material";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { u as useImperativeIntl } from "./useImperativeIntl-BUw_LXAO.js";
|
|
@@ -248,10 +248,12 @@ function _IconButton({
|
|
|
248
248
|
variant,
|
|
249
249
|
color,
|
|
250
250
|
active,
|
|
251
|
-
|
|
251
|
+
loading,
|
|
252
|
+
loadingIndicator: /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }),
|
|
253
|
+
disabled,
|
|
252
254
|
role: "button",
|
|
253
255
|
"aria-label": ariaLabel,
|
|
254
|
-
children: loading ?
|
|
256
|
+
children: loading ? null : icon
|
|
255
257
|
}
|
|
256
258
|
)
|
|
257
259
|
}
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const material = require("@mui/material");
|
|
6
|
-
const paletteUtils = require("../palette-utils-
|
|
6
|
+
const paletteUtils = require("../palette-utils-Dt4yj7Pv.cjs");
|
|
7
7
|
const iconsMaterial = require("@mui/icons-material");
|
|
8
8
|
const ArrowDown = require("../ArrowDown-84Oc8r9k.cjs");
|
|
9
9
|
const ReactWindow = require("react-window");
|
|
10
|
-
const TablePaginationActions = require("../TablePaginationActions-
|
|
10
|
+
const TablePaginationActions = require("../TablePaginationActions-B3Vtruj_.cjs");
|
|
11
11
|
const Search = require("../Search-BsaXrSzs.cjs");
|
|
12
12
|
require("cartocolor");
|
|
13
13
|
const reactCodemirror2 = require("react-codemirror2");
|
|
@@ -72,20 +72,7 @@ const ScreenReaderOnly = material.styled("span")(() => ({
|
|
|
72
72
|
whiteSpace: "nowrap",
|
|
73
73
|
border: 0
|
|
74
74
|
}));
|
|
75
|
-
const
|
|
76
|
-
position: "absolute",
|
|
77
|
-
top: 0,
|
|
78
|
-
left: 0,
|
|
79
|
-
right: 0,
|
|
80
|
-
bottom: 0,
|
|
81
|
-
display: "flex",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
justifyContent: "center"
|
|
84
|
-
});
|
|
85
|
-
const HiddenText = material.styled(material.Box)({
|
|
86
|
-
visibility: "hidden",
|
|
87
|
-
pointerEvents: "none"
|
|
88
|
-
});
|
|
75
|
+
const loadingIndicator = /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" });
|
|
89
76
|
function _Button({
|
|
90
77
|
children,
|
|
91
78
|
loading,
|
|
@@ -103,46 +90,17 @@ function _Button({
|
|
|
103
90
|
"c4r.button.opensInNewTab",
|
|
104
91
|
screenReaderText
|
|
105
92
|
);
|
|
106
|
-
const defaultIconLoader = /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" });
|
|
107
|
-
const isDefaultLoading = loading && loadingPosition === void 0;
|
|
108
93
|
const isExternalLink = otherProps.href && external;
|
|
109
|
-
const
|
|
110
|
-
if (isDefaultLoading) {
|
|
111
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
|
|
112
|
-
/* @__PURE__ */ jsxRuntime.jsx(IndicatorIcon, { children: defaultIconLoader }),
|
|
113
|
-
/* @__PURE__ */ jsxRuntime.jsx(HiddenText, { children })
|
|
114
|
-
] });
|
|
115
|
-
}
|
|
116
|
-
if (isExternalLink) {
|
|
117
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
118
|
-
children,
|
|
119
|
-
/* @__PURE__ */ jsxRuntime.jsx(ScreenReaderOnly, { id: "external-hint", children: screenReaderTextValue })
|
|
120
|
-
] });
|
|
121
|
-
}
|
|
122
|
-
return children;
|
|
123
|
-
};
|
|
124
|
-
const getIconForPosition = (position) => {
|
|
125
|
-
if (isDefaultLoading) {
|
|
126
|
-
return void 0;
|
|
127
|
-
}
|
|
128
|
-
if (loading && loadingPosition !== void 0) {
|
|
129
|
-
if (loadingPosition === position) {
|
|
130
|
-
return defaultIconLoader;
|
|
131
|
-
}
|
|
132
|
-
return void 0;
|
|
133
|
-
}
|
|
134
|
-
if (position === "start") {
|
|
135
|
-
return startIcon;
|
|
136
|
-
} else {
|
|
137
|
-
return endIcon || (isExternalLink && showExternalIcon ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.OpenInNewOutlined, {}) : void 0);
|
|
138
|
-
}
|
|
139
|
-
};
|
|
94
|
+
const isCenterLoading = loading && loadingPosition === void 0;
|
|
140
95
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
141
96
|
material.Button,
|
|
142
97
|
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
98
|
+
loading,
|
|
99
|
+
loadingPosition,
|
|
100
|
+
loadingIndicator,
|
|
101
|
+
disabled,
|
|
102
|
+
startIcon: loading ? void 0 : startIcon,
|
|
103
|
+
endIcon: loading ? void 0 : endIcon || (isExternalLink && showExternalIcon ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.OpenInNewOutlined, {}) : void 0),
|
|
146
104
|
...otherProps,
|
|
147
105
|
role: otherProps.href ? "link" : "button",
|
|
148
106
|
...isExternalLink && {
|
|
@@ -151,7 +109,20 @@ function _Button({
|
|
|
151
109
|
},
|
|
152
110
|
ref,
|
|
153
111
|
"aria-describedby": isExternalLink ? "external-hint" : ariaDescribedby,
|
|
154
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
112
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
113
|
+
paletteUtils.Typography,
|
|
114
|
+
{
|
|
115
|
+
variant: "inherit",
|
|
116
|
+
color: "inherit",
|
|
117
|
+
noWrap: true,
|
|
118
|
+
component: "span",
|
|
119
|
+
sx: isCenterLoading ? { visibility: "hidden" } : void 0,
|
|
120
|
+
children: [
|
|
121
|
+
children,
|
|
122
|
+
isExternalLink && /* @__PURE__ */ jsxRuntime.jsx(ScreenReaderOnly, { id: "external-hint", children: screenReaderTextValue })
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
)
|
|
155
126
|
}
|
|
156
127
|
);
|
|
157
128
|
}
|
|
@@ -382,25 +353,27 @@ function _PasswordField({
|
|
|
382
353
|
type: showPassword ? "text" : "password",
|
|
383
354
|
size,
|
|
384
355
|
disabled,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
...InputProps
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
{
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
356
|
+
"data-name": "password-field",
|
|
357
|
+
slotProps: {
|
|
358
|
+
input: {
|
|
359
|
+
...InputProps,
|
|
360
|
+
inputProps: {
|
|
361
|
+
...InputProps == null ? void 0 : InputProps.inputProps,
|
|
362
|
+
role: "textbox"
|
|
363
|
+
},
|
|
364
|
+
endAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
365
|
+
TablePaginationActions.IconButton,
|
|
366
|
+
{
|
|
367
|
+
size,
|
|
368
|
+
disabled,
|
|
369
|
+
onClick: handleClickShowPassword,
|
|
370
|
+
icon: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.VisibilityOffOutlined, {}) : /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.VisibilityOutlined, {}),
|
|
371
|
+
tooltip: label,
|
|
372
|
+
"aria-label": label
|
|
373
|
+
}
|
|
374
|
+
) })
|
|
375
|
+
}
|
|
376
|
+
}
|
|
404
377
|
}
|
|
405
378
|
);
|
|
406
379
|
}
|
|
@@ -651,7 +624,9 @@ const UnselectButton = material.styled(material.InputAdornment, {
|
|
|
651
624
|
})(({ theme, size }) => ({
|
|
652
625
|
display: "none",
|
|
653
626
|
position: "absolute",
|
|
654
|
-
|
|
627
|
+
// Center vertically regardless of the input's height.
|
|
628
|
+
top: "50%",
|
|
629
|
+
transform: "translateY(-50%)",
|
|
655
630
|
right: theme.spacing(3.5),
|
|
656
631
|
".MuiInputBase-root:hover &, .MuiInputBase-root.Mui-focused &": {
|
|
657
632
|
display: "flex"
|
|
@@ -660,7 +635,6 @@ const UnselectButton = material.styled(material.InputAdornment, {
|
|
|
660
635
|
color: theme.palette.text.hint
|
|
661
636
|
},
|
|
662
637
|
...size === "medium" && {
|
|
663
|
-
top: theme.spacing(3),
|
|
664
638
|
right: theme.spacing(5)
|
|
665
639
|
}
|
|
666
640
|
}));
|
|
@@ -1553,9 +1527,11 @@ function _Autocomplete({
|
|
|
1553
1527
|
disabled: disabled || loading,
|
|
1554
1528
|
popupIcon: loading ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
|
|
1555
1529
|
"data-name": "autocomplete",
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1530
|
+
slotProps: {
|
|
1531
|
+
listbox: {
|
|
1532
|
+
"aria-multiselectable": false,
|
|
1533
|
+
...props.ListboxProps
|
|
1534
|
+
}
|
|
1559
1535
|
}
|
|
1560
1536
|
}
|
|
1561
1537
|
);
|
|
@@ -1880,12 +1856,16 @@ function _CreatableAutocomplete({
|
|
|
1880
1856
|
forcePopupIcon: true,
|
|
1881
1857
|
multiple,
|
|
1882
1858
|
disableCloseOnSelect: disableCloseOnSelect ?? multiple,
|
|
1883
|
-
ListboxComponent: AutocompleteList,
|
|
1884
|
-
ListboxProps: listboxProps,
|
|
1885
1859
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1886
1860
|
disabled: disabled || loading,
|
|
1887
1861
|
popupIcon: loading ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
|
|
1888
|
-
"data-name": "creatable-autocomplete"
|
|
1862
|
+
"data-name": "creatable-autocomplete",
|
|
1863
|
+
slotProps: {
|
|
1864
|
+
listbox: {
|
|
1865
|
+
component: AutocompleteList,
|
|
1866
|
+
...listboxProps
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1889
1869
|
}
|
|
1890
1870
|
);
|
|
1891
1871
|
}
|
|
@@ -1957,14 +1937,18 @@ function _MultipleAutocomplete({
|
|
|
1957
1937
|
getOptionLabel,
|
|
1958
1938
|
renderOption: renderOption ?? multipleRenderOption,
|
|
1959
1939
|
renderTags: finalRenderTags,
|
|
1960
|
-
ListboxComponent: AutocompleteList,
|
|
1961
|
-
ListboxProps: listboxProps,
|
|
1962
1940
|
multiple: true,
|
|
1963
1941
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1964
1942
|
disableCloseOnSelect,
|
|
1965
1943
|
disabled: disabled || loading,
|
|
1966
1944
|
popupIcon: loading ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
|
|
1967
|
-
"data-name": "multiple-autocomplete"
|
|
1945
|
+
"data-name": "multiple-autocomplete",
|
|
1946
|
+
slotProps: {
|
|
1947
|
+
listbox: {
|
|
1948
|
+
component: AutocompleteList,
|
|
1949
|
+
...listboxProps
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1968
1952
|
}
|
|
1969
1953
|
);
|
|
1970
1954
|
}
|
|
@@ -3338,11 +3322,12 @@ function _Dialog({
|
|
|
3338
3322
|
fullScreen,
|
|
3339
3323
|
height,
|
|
3340
3324
|
width,
|
|
3341
|
-
hasForm
|
|
3325
|
+
hasForm,
|
|
3326
|
+
// v7 renders role="dialog" on the paper, so the accessible name has to
|
|
3327
|
+
// live there for getByRole('dialog', { name }) to match.
|
|
3328
|
+
...ariaLabel && { "aria-label": ariaLabel }
|
|
3342
3329
|
},
|
|
3343
3330
|
fullScreen,
|
|
3344
|
-
role: "section",
|
|
3345
|
-
"aria-label": ariaLabel,
|
|
3346
3331
|
"data-testid": dataTestId,
|
|
3347
3332
|
"data-size": size,
|
|
3348
3333
|
"data-width": width,
|
|
@@ -6493,7 +6478,7 @@ function Snackbar({
|
|
|
6493
6478
|
open,
|
|
6494
6479
|
autoHideDuration: duration,
|
|
6495
6480
|
onClose,
|
|
6496
|
-
|
|
6481
|
+
slots: { transition: autoWidth ? material.Fade : material.Slide },
|
|
6497
6482
|
"data-auto-width": autoWidth,
|
|
6498
6483
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6499
6484
|
Content$1,
|
package/dist/components/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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, createContext, useContext } from "react";
|
|
3
|
-
import { styled, Button as Button$1,
|
|
3
|
+
import { styled, Button as Button$1, CircularProgress as CircularProgress$1, Tooltip, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, Box, TextField, InputAdornment, FormControl, InputLabel, FormHelperText, Select, Checkbox, Link as Link$1, ListItemText as ListItemText$1, IconButton as IconButton$1, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon as ListItemIcon$1, createFilterOptions, alpha, useTheme, Toolbar as Toolbar$1, AppBar as AppBar$1, Dialog as Dialog$1, Chip as Chip$1, DialogTitle as DialogTitle$1, DialogContent as DialogContent$1, Fade, AlertTitle, Alert as Alert$2, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Portal, Snackbar as Snackbar$1, List as List$2, ListItemButton as ListItemButton$1, ListItem as ListItem$1, ListSubheader as ListSubheader$1, Typography as Typography$1, Popover } from "@mui/material";
|
|
4
4
|
import { ListItemAvatar, ListItemSecondaryAction } from "@mui/material";
|
|
5
|
-
import { T as Typography, I as ICON_SIZE_SMALL, a as ICON_SIZE_MEDIUM, M as MENU_ITEM_SIZE_EXTENDED, b as MENU_ITEM_SIZE_DEFAULT, c as MENU_LIST_MAX_SIZE, d as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, e as ICON_SIZE_LARGE, N as NOTIFICATION_DURATION_IN_MS, L as LIST_MAX_SIZE, f as LIST_ITEM_SIZE_DENSE, g as LIST_ITEM_SIZE_DEFAULT, h as LIST_OVERSCAN_ITEMS_COUNT, F as FontWeight, r as resolvePalettePath } from "../palette-utils-
|
|
5
|
+
import { T as Typography, I as ICON_SIZE_SMALL, a as ICON_SIZE_MEDIUM, M as MENU_ITEM_SIZE_EXTENDED, b as MENU_ITEM_SIZE_DEFAULT, c as MENU_LIST_MAX_SIZE, d as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, e as ICON_SIZE_LARGE, N as NOTIFICATION_DURATION_IN_MS, L as LIST_MAX_SIZE, f as LIST_ITEM_SIZE_DENSE, g as LIST_ITEM_SIZE_DEFAULT, h as LIST_OVERSCAN_ITEMS_COUNT, F as FontWeight, r as resolvePalettePath } from "../palette-utils-Ccd-r_Nr.js";
|
|
6
6
|
import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, ArrowBackOutlined, CloseOutlined, Check, TodayOutlined, StopCircleOutlined, ArrowUpwardOutlined } from "@mui/icons-material";
|
|
7
7
|
import { F as ForwardedComponent$1 } from "../ArrowDown-Bho9Ssnw.js";
|
|
8
8
|
import * as ReactWindow from "react-window";
|
|
9
|
-
import { u as useTranslationWithFallback, I as IconButton, M as MenuItem$1, g as getThemeColor, e as ellipsisStyles, S as SVG_SELECTOR } from "../TablePaginationActions-
|
|
10
|
-
import { T } from "../TablePaginationActions-
|
|
9
|
+
import { u as useTranslationWithFallback, I as IconButton, M as MenuItem$1, g as getThemeColor, e as ellipsisStyles, S as SVG_SELECTOR } from "../TablePaginationActions-CpCi2L7U.js";
|
|
10
|
+
import { T } from "../TablePaginationActions-CpCi2L7U.js";
|
|
11
11
|
import { F as ForwardedComponent, a as ForwardedComponent$2, b as ForwardedComponent$3, c as ForwardedComponent$4 } from "../Search-DXfTNnxj.js";
|
|
12
12
|
import "cartocolor";
|
|
13
13
|
import { Controlled, UnControlled } from "react-codemirror2";
|
|
@@ -55,20 +55,7 @@ const ScreenReaderOnly = styled("span")(() => ({
|
|
|
55
55
|
whiteSpace: "nowrap",
|
|
56
56
|
border: 0
|
|
57
57
|
}));
|
|
58
|
-
const
|
|
59
|
-
position: "absolute",
|
|
60
|
-
top: 0,
|
|
61
|
-
left: 0,
|
|
62
|
-
right: 0,
|
|
63
|
-
bottom: 0,
|
|
64
|
-
display: "flex",
|
|
65
|
-
alignItems: "center",
|
|
66
|
-
justifyContent: "center"
|
|
67
|
-
});
|
|
68
|
-
const HiddenText = styled(Box)({
|
|
69
|
-
visibility: "hidden",
|
|
70
|
-
pointerEvents: "none"
|
|
71
|
-
});
|
|
58
|
+
const loadingIndicator = /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" });
|
|
72
59
|
function _Button({
|
|
73
60
|
children,
|
|
74
61
|
loading,
|
|
@@ -86,46 +73,17 @@ function _Button({
|
|
|
86
73
|
"c4r.button.opensInNewTab",
|
|
87
74
|
screenReaderText
|
|
88
75
|
);
|
|
89
|
-
const defaultIconLoader = /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" });
|
|
90
|
-
const isDefaultLoading = loading && loadingPosition === void 0;
|
|
91
76
|
const isExternalLink = otherProps.href && external;
|
|
92
|
-
const
|
|
93
|
-
if (isDefaultLoading) {
|
|
94
|
-
return /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
|
|
95
|
-
/* @__PURE__ */ jsx(IndicatorIcon, { children: defaultIconLoader }),
|
|
96
|
-
/* @__PURE__ */ jsx(HiddenText, { children })
|
|
97
|
-
] });
|
|
98
|
-
}
|
|
99
|
-
if (isExternalLink) {
|
|
100
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
101
|
-
children,
|
|
102
|
-
/* @__PURE__ */ jsx(ScreenReaderOnly, { id: "external-hint", children: screenReaderTextValue })
|
|
103
|
-
] });
|
|
104
|
-
}
|
|
105
|
-
return children;
|
|
106
|
-
};
|
|
107
|
-
const getIconForPosition = (position) => {
|
|
108
|
-
if (isDefaultLoading) {
|
|
109
|
-
return void 0;
|
|
110
|
-
}
|
|
111
|
-
if (loading && loadingPosition !== void 0) {
|
|
112
|
-
if (loadingPosition === position) {
|
|
113
|
-
return defaultIconLoader;
|
|
114
|
-
}
|
|
115
|
-
return void 0;
|
|
116
|
-
}
|
|
117
|
-
if (position === "start") {
|
|
118
|
-
return startIcon;
|
|
119
|
-
} else {
|
|
120
|
-
return endIcon || (isExternalLink && showExternalIcon ? /* @__PURE__ */ jsx(OpenInNewOutlined, {}) : void 0);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
77
|
+
const isCenterLoading = loading && loadingPosition === void 0;
|
|
123
78
|
return /* @__PURE__ */ jsx(
|
|
124
79
|
Button$1,
|
|
125
80
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
81
|
+
loading,
|
|
82
|
+
loadingPosition,
|
|
83
|
+
loadingIndicator,
|
|
84
|
+
disabled,
|
|
85
|
+
startIcon: loading ? void 0 : startIcon,
|
|
86
|
+
endIcon: loading ? void 0 : endIcon || (isExternalLink && showExternalIcon ? /* @__PURE__ */ jsx(OpenInNewOutlined, {}) : void 0),
|
|
129
87
|
...otherProps,
|
|
130
88
|
role: otherProps.href ? "link" : "button",
|
|
131
89
|
...isExternalLink && {
|
|
@@ -134,7 +92,20 @@ function _Button({
|
|
|
134
92
|
},
|
|
135
93
|
ref,
|
|
136
94
|
"aria-describedby": isExternalLink ? "external-hint" : ariaDescribedby,
|
|
137
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ jsxs(
|
|
96
|
+
Typography,
|
|
97
|
+
{
|
|
98
|
+
variant: "inherit",
|
|
99
|
+
color: "inherit",
|
|
100
|
+
noWrap: true,
|
|
101
|
+
component: "span",
|
|
102
|
+
sx: isCenterLoading ? { visibility: "hidden" } : void 0,
|
|
103
|
+
children: [
|
|
104
|
+
children,
|
|
105
|
+
isExternalLink && /* @__PURE__ */ jsx(ScreenReaderOnly, { id: "external-hint", children: screenReaderTextValue })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
)
|
|
138
109
|
}
|
|
139
110
|
);
|
|
140
111
|
}
|
|
@@ -365,25 +336,27 @@ function _PasswordField({
|
|
|
365
336
|
type: showPassword ? "text" : "password",
|
|
366
337
|
size,
|
|
367
338
|
disabled,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
...InputProps
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
{
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
339
|
+
"data-name": "password-field",
|
|
340
|
+
slotProps: {
|
|
341
|
+
input: {
|
|
342
|
+
...InputProps,
|
|
343
|
+
inputProps: {
|
|
344
|
+
...InputProps == null ? void 0 : InputProps.inputProps,
|
|
345
|
+
role: "textbox"
|
|
346
|
+
},
|
|
347
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
348
|
+
IconButton,
|
|
349
|
+
{
|
|
350
|
+
size,
|
|
351
|
+
disabled,
|
|
352
|
+
onClick: handleClickShowPassword,
|
|
353
|
+
icon: showPassword ? /* @__PURE__ */ jsx(VisibilityOffOutlined, {}) : /* @__PURE__ */ jsx(VisibilityOutlined, {}),
|
|
354
|
+
tooltip: label,
|
|
355
|
+
"aria-label": label
|
|
356
|
+
}
|
|
357
|
+
) })
|
|
358
|
+
}
|
|
359
|
+
}
|
|
387
360
|
}
|
|
388
361
|
);
|
|
389
362
|
}
|
|
@@ -634,7 +607,9 @@ const UnselectButton = styled(InputAdornment, {
|
|
|
634
607
|
})(({ theme, size }) => ({
|
|
635
608
|
display: "none",
|
|
636
609
|
position: "absolute",
|
|
637
|
-
|
|
610
|
+
// Center vertically regardless of the input's height.
|
|
611
|
+
top: "50%",
|
|
612
|
+
transform: "translateY(-50%)",
|
|
638
613
|
right: theme.spacing(3.5),
|
|
639
614
|
".MuiInputBase-root:hover &, .MuiInputBase-root.Mui-focused &": {
|
|
640
615
|
display: "flex"
|
|
@@ -643,7 +618,6 @@ const UnselectButton = styled(InputAdornment, {
|
|
|
643
618
|
color: theme.palette.text.hint
|
|
644
619
|
},
|
|
645
620
|
...size === "medium" && {
|
|
646
|
-
top: theme.spacing(3),
|
|
647
621
|
right: theme.spacing(5)
|
|
648
622
|
}
|
|
649
623
|
}));
|
|
@@ -1536,9 +1510,11 @@ function _Autocomplete({
|
|
|
1536
1510
|
disabled: disabled || loading,
|
|
1537
1511
|
popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ForwardedComponent$1, {}),
|
|
1538
1512
|
"data-name": "autocomplete",
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1513
|
+
slotProps: {
|
|
1514
|
+
listbox: {
|
|
1515
|
+
"aria-multiselectable": false,
|
|
1516
|
+
...props.ListboxProps
|
|
1517
|
+
}
|
|
1542
1518
|
}
|
|
1543
1519
|
}
|
|
1544
1520
|
);
|
|
@@ -1863,12 +1839,16 @@ function _CreatableAutocomplete({
|
|
|
1863
1839
|
forcePopupIcon: true,
|
|
1864
1840
|
multiple,
|
|
1865
1841
|
disableCloseOnSelect: disableCloseOnSelect ?? multiple,
|
|
1866
|
-
ListboxComponent: AutocompleteList,
|
|
1867
|
-
ListboxProps: listboxProps,
|
|
1868
1842
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1869
1843
|
disabled: disabled || loading,
|
|
1870
1844
|
popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ForwardedComponent$1, {}),
|
|
1871
|
-
"data-name": "creatable-autocomplete"
|
|
1845
|
+
"data-name": "creatable-autocomplete",
|
|
1846
|
+
slotProps: {
|
|
1847
|
+
listbox: {
|
|
1848
|
+
component: AutocompleteList,
|
|
1849
|
+
...listboxProps
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1872
1852
|
}
|
|
1873
1853
|
);
|
|
1874
1854
|
}
|
|
@@ -1940,14 +1920,18 @@ function _MultipleAutocomplete({
|
|
|
1940
1920
|
getOptionLabel,
|
|
1941
1921
|
renderOption: renderOption ?? multipleRenderOption,
|
|
1942
1922
|
renderTags: finalRenderTags,
|
|
1943
|
-
ListboxComponent: AutocompleteList,
|
|
1944
|
-
ListboxProps: listboxProps,
|
|
1945
1923
|
multiple: true,
|
|
1946
1924
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1947
1925
|
disableCloseOnSelect,
|
|
1948
1926
|
disabled: disabled || loading,
|
|
1949
1927
|
popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ForwardedComponent$1, {}),
|
|
1950
|
-
"data-name": "multiple-autocomplete"
|
|
1928
|
+
"data-name": "multiple-autocomplete",
|
|
1929
|
+
slotProps: {
|
|
1930
|
+
listbox: {
|
|
1931
|
+
component: AutocompleteList,
|
|
1932
|
+
...listboxProps
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1951
1935
|
}
|
|
1952
1936
|
);
|
|
1953
1937
|
}
|
|
@@ -3321,11 +3305,12 @@ function _Dialog({
|
|
|
3321
3305
|
fullScreen,
|
|
3322
3306
|
height,
|
|
3323
3307
|
width,
|
|
3324
|
-
hasForm
|
|
3308
|
+
hasForm,
|
|
3309
|
+
// v7 renders role="dialog" on the paper, so the accessible name has to
|
|
3310
|
+
// live there for getByRole('dialog', { name }) to match.
|
|
3311
|
+
...ariaLabel && { "aria-label": ariaLabel }
|
|
3325
3312
|
},
|
|
3326
3313
|
fullScreen,
|
|
3327
|
-
role: "section",
|
|
3328
|
-
"aria-label": ariaLabel,
|
|
3329
3314
|
"data-testid": dataTestId,
|
|
3330
3315
|
"data-size": size,
|
|
3331
3316
|
"data-width": width,
|
|
@@ -6476,7 +6461,7 @@ function Snackbar({
|
|
|
6476
6461
|
open,
|
|
6477
6462
|
autoHideDuration: duration,
|
|
6478
6463
|
onClose,
|
|
6479
|
-
|
|
6464
|
+
slots: { transition: autoWidth ? Fade : Slide },
|
|
6480
6465
|
"data-auto-width": autoWidth,
|
|
6481
6466
|
children: /* @__PURE__ */ jsxs(
|
|
6482
6467
|
Content$1,
|
|
Binary file
|