@carto/meridian-ds 4.2.1-alpha.dd17e40.311 → 4.3.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 -4
- package/dist/{TablePaginationActions-BLijipor.cjs → TablePaginationActions-BUlirVpH.cjs} +3 -5
- package/dist/{TablePaginationActions-DGKthtrC.js → TablePaginationActions-DZWE9NVG.js} +3 -5
- package/dist/components/index.cjs +108 -157
- package/dist/components/index.js +110 -159
- package/dist/icons-screenshot.webp +0 -0
- package/dist/metadata.json +152 -147
- package/dist/palette-utils-DX1R_i9N.cjs +1138 -0
- package/dist/palette-utils-d-9NY8qw.js +1122 -0
- package/dist/theme/index.cjs +5 -39
- package/dist/theme/index.js +6 -40
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.metadata.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts +1 -1
- package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts +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 +4 -3
- 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 +0 -3
- 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.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.stories.d.ts +23 -0
- package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.styled.d.ts +3 -2
- package/dist/types/components/SearchField/SearchField.styled.d.ts.map +1 -1
- package/dist/types/components/SearchField/types.d.ts +5 -0
- package/dist/types/components/SearchField/types.d.ts.map +1 -1
- 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 +1764 -2
- package/dist/types/theme/base-theme-options.d.ts.map +1 -1
- package/dist/types/theme/carto-theme.d.ts +4258 -2
- 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 +904 -2
- 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 +1705 -2
- package/dist/types/theme/tokens/typography.d.ts.map +1 -1
- package/dist/types/theme/types.d.ts +8 -13
- 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 +13 -5
- package/dist/widgets/index.js +13 -5
- package/package.json +21 -25
- package/dist/palette-utils-Ccd-r_Nr.js +0 -357
- package/dist/palette-utils-Dt4yj7Pv.cjs +0 -373
- package/dist/types/utils/slot-props-utils.d.ts +0 -13
- package/dist/types/utils/slot-props-utils.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 4.0
|
|
6
|
+
|
|
7
|
+
### 4.3.0
|
|
8
|
+
|
|
5
9
|
- chore(deps): bump js-yaml from 4.3.0 to 4.3.1 [#516](https://github.com/CartoDB/meridian-ds/pull/516)
|
|
6
10
|
- chore(deps): bump nanoid from 3.3.16 to 3.3.18 [#515](https://github.com/CartoDB/meridian-ds/pull/515)
|
|
11
|
+
- feat(SearchField): dense prop for compact 32px control height [#517](https://github.com/CartoDB/meridian-ds/pull/517)
|
|
7
12
|
- chore(deps-dev): bump dompurify from 3.4.12 to 3.4.13 [#512](https://github.com/CartoDB/meridian-ds/pull/512)
|
|
8
13
|
- test(visual): stop DateRangeCalendar snapshot date drift, document story determinism + review triage [sc-565483] [sc-565508] [#509](https://github.com/CartoDB/meridian-ds/pull/509)
|
|
9
14
|
- fix(ci): re-sync the auto-logged CHANGELOG line when a PR title changes [sc-565536] [#510](https://github.com/CartoDB/meridian-ds/pull/510)
|
|
@@ -11,8 +16,6 @@
|
|
|
11
16
|
- chore(deps): bump fast-uri from 3.1.4 to 3.1.5 [#508](https://github.com/CartoDB/meridian-ds/pull/508)
|
|
12
17
|
- chore(deps): bump undici from 7.28.0 to 7.29.0 [#507](https://github.com/CartoDB/meridian-ds/pull/507)
|
|
13
18
|
- fix(CreatableAutocomplete): show a no-options row instead of an empty popup [#504](https://github.com/CartoDB/meridian-ds/pull/504)
|
|
14
|
-
- chore(deps): MUI v5 → v9 upgrade (integration branch) [sc-557186] [#485](https://github.com/CartoDB/meridian-ds/pull/485)
|
|
15
|
-
- chore(deps): upgrade MUI core to v6 + prep peers/react-is [sc-563129] [#484](https://github.com/CartoDB/meridian-ds/pull/484)
|
|
16
19
|
- chore(deps): bump yaml from 1.10.2 to 1.10.3 [#501](https://github.com/CartoDB/meridian-ds/pull/501)
|
|
17
20
|
- chore(deps): bump postcss from 8.5.16 to 8.5.23 [#498](https://github.com/CartoDB/meridian-ds/pull/498)
|
|
18
21
|
- chore(deps): bump picomatch from 2.3.1 to 2.3.2 [#500](https://github.com/CartoDB/meridian-ds/pull/500)
|
|
@@ -34,8 +37,6 @@
|
|
|
34
37
|
- chore(deps): bump undici from 7.25.0 to 7.28.0 [#456](https://github.com/CartoDB/meridian-ds/pull/456)
|
|
35
38
|
- chore(deps-dev): bump dompurify from 3.2.6 to 3.4.11 [#455](https://github.com/CartoDB/meridian-ds/pull/455)
|
|
36
39
|
|
|
37
|
-
## 4.0
|
|
38
|
-
|
|
39
40
|
### 4.2.0
|
|
40
41
|
|
|
41
42
|
- feat(ai-metadata): serve custom-icon and theme-token knowledge to AI agents — new `meridian_list_icons`, `meridian_get_tokens`, and `meridian_get_screenshot` MCP tools (icons searchable by curated keywords + a labeled all-icons reference image an agent can Read to match a design by sight; tokens projected straight from the composed theme: palette / typography / spacing / shape / breakpoints / shadows), plus surfaced List `direction`/`spacing` props [#463](https://github.com/CartoDB/meridian-ds/pull/463) [sc-559510] [sc-559550] [sc-561408]
|
|
@@ -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-DX1R_i9N.cjs");
|
|
6
6
|
const iconsMaterial = require("@mui/icons-material");
|
|
7
7
|
const reactIntl = require("react-intl");
|
|
8
8
|
const useImperativeIntl = require("./useImperativeIntl-v_ds_FH7.cjs");
|
|
@@ -249,12 +249,10 @@ function _IconButton({
|
|
|
249
249
|
variant,
|
|
250
250
|
color,
|
|
251
251
|
active,
|
|
252
|
-
loading,
|
|
253
|
-
loadingIndicator: /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }),
|
|
254
|
-
disabled,
|
|
252
|
+
disabled: disabled || loading,
|
|
255
253
|
role: "button",
|
|
256
254
|
"aria-label": ariaLabel,
|
|
257
|
-
children: loading ?
|
|
255
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }) : icon
|
|
258
256
|
}
|
|
259
257
|
)
|
|
260
258
|
}
|
|
@@ -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-d-9NY8qw.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-DXeh_Eda.js";
|
|
@@ -248,12 +248,10 @@ function _IconButton({
|
|
|
248
248
|
variant,
|
|
249
249
|
color,
|
|
250
250
|
active,
|
|
251
|
-
loading,
|
|
252
|
-
loadingIndicator: /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }),
|
|
253
|
-
disabled,
|
|
251
|
+
disabled: disabled || loading,
|
|
254
252
|
role: "button",
|
|
255
253
|
"aria-label": ariaLabel,
|
|
256
|
-
children: loading ?
|
|
254
|
+
children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }) : icon
|
|
257
255
|
}
|
|
258
256
|
)
|
|
259
257
|
}
|
|
@@ -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-DX1R_i9N.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-BUlirVpH.cjs");
|
|
11
11
|
const Search = require("../Search-BsaXrSzs.cjs");
|
|
12
12
|
require("cartocolor");
|
|
13
13
|
const reactCodemirror2 = require("react-codemirror2");
|
|
@@ -72,7 +72,20 @@ const ScreenReaderOnly = material.styled("span")(() => ({
|
|
|
72
72
|
whiteSpace: "nowrap",
|
|
73
73
|
border: 0
|
|
74
74
|
}));
|
|
75
|
-
const
|
|
75
|
+
const IndicatorIcon = material.styled(material.Box)({
|
|
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
|
+
});
|
|
76
89
|
function _Button({
|
|
77
90
|
children,
|
|
78
91
|
loading,
|
|
@@ -90,17 +103,46 @@ function _Button({
|
|
|
90
103
|
"c4r.button.opensInNewTab",
|
|
91
104
|
screenReaderText
|
|
92
105
|
);
|
|
106
|
+
const defaultIconLoader = /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" });
|
|
107
|
+
const isDefaultLoading = loading && loadingPosition === void 0;
|
|
93
108
|
const isExternalLink = otherProps.href && external;
|
|
94
|
-
const
|
|
109
|
+
const renderContent = () => {
|
|
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
|
+
};
|
|
95
140
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
96
141
|
material.Button,
|
|
97
142
|
{
|
|
98
|
-
loading,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
disabled,
|
|
102
|
-
startIcon: loading ? void 0 : startIcon,
|
|
103
|
-
endIcon: loading ? void 0 : endIcon || (isExternalLink && showExternalIcon ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.OpenInNewOutlined, {}) : void 0),
|
|
143
|
+
disabled: loading || disabled,
|
|
144
|
+
startIcon: getIconForPosition("start"),
|
|
145
|
+
endIcon: getIconForPosition("end"),
|
|
104
146
|
...otherProps,
|
|
105
147
|
role: otherProps.href ? "link" : "button",
|
|
106
148
|
...isExternalLink && {
|
|
@@ -109,20 +151,7 @@ function _Button({
|
|
|
109
151
|
},
|
|
110
152
|
ref,
|
|
111
153
|
"aria-describedby": isExternalLink ? "external-hint" : ariaDescribedby,
|
|
112
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
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
|
-
)
|
|
154
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(paletteUtils.Typography, { variant: "inherit", color: "inherit", noWrap: true, component: "span", children: renderContent() })
|
|
126
155
|
}
|
|
127
156
|
);
|
|
128
157
|
}
|
|
@@ -332,7 +361,6 @@ function _PasswordField({
|
|
|
332
361
|
disabled,
|
|
333
362
|
showPasswordText,
|
|
334
363
|
hidePasswordText,
|
|
335
|
-
slotProps,
|
|
336
364
|
...otherProps
|
|
337
365
|
}, ref) {
|
|
338
366
|
const showPasswordLabel = TablePaginationActions.useTranslationWithFallback(
|
|
@@ -346,14 +374,6 @@ function _PasswordField({
|
|
|
346
374
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
347
375
|
const handleClickShowPassword = () => setShowPassword(!showPassword);
|
|
348
376
|
const label = showPassword ? hidePasswordLabel : showPasswordLabel;
|
|
349
|
-
const inputSlotProps = typeof (slotProps == null ? void 0 : slotProps.input) === "function" ? void 0 : slotProps == null ? void 0 : slotProps.input;
|
|
350
|
-
const htmlInputSlotProps = typeof (slotProps == null ? void 0 : slotProps.htmlInput) === "function" ? void 0 : slotProps == null ? void 0 : slotProps.htmlInput;
|
|
351
|
-
const inputProps = {
|
|
352
|
-
...InputProps == null ? void 0 : InputProps.inputProps,
|
|
353
|
-
...htmlInputSlotProps,
|
|
354
|
-
...inputSlotProps == null ? void 0 : inputSlotProps.inputProps,
|
|
355
|
-
role: "textbox"
|
|
356
|
-
};
|
|
357
377
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
358
378
|
material.TextField,
|
|
359
379
|
{
|
|
@@ -362,26 +382,25 @@ function _PasswordField({
|
|
|
362
382
|
type: showPassword ? "text" : "password",
|
|
363
383
|
size,
|
|
364
384
|
disabled,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}
|
|
385
|
+
InputProps: {
|
|
386
|
+
...InputProps,
|
|
387
|
+
inputProps: {
|
|
388
|
+
...InputProps == null ? void 0 : InputProps.inputProps,
|
|
389
|
+
role: "textbox"
|
|
390
|
+
},
|
|
391
|
+
endAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
392
|
+
TablePaginationActions.IconButton,
|
|
393
|
+
{
|
|
394
|
+
size,
|
|
395
|
+
disabled,
|
|
396
|
+
onClick: handleClickShowPassword,
|
|
397
|
+
icon: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.VisibilityOffOutlined, {}) : /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.VisibilityOutlined, {}),
|
|
398
|
+
tooltip: label,
|
|
399
|
+
"aria-label": label
|
|
400
|
+
}
|
|
401
|
+
) })
|
|
402
|
+
},
|
|
403
|
+
"data-name": "password-field"
|
|
385
404
|
}
|
|
386
405
|
);
|
|
387
406
|
}
|
|
@@ -632,9 +651,7 @@ const UnselectButton = material.styled(material.InputAdornment, {
|
|
|
632
651
|
})(({ theme, size }) => ({
|
|
633
652
|
display: "none",
|
|
634
653
|
position: "absolute",
|
|
635
|
-
|
|
636
|
-
top: "50%",
|
|
637
|
-
transform: "translateY(-50%)",
|
|
654
|
+
top: theme.spacing(2),
|
|
638
655
|
right: theme.spacing(3.5),
|
|
639
656
|
".MuiInputBase-root:hover &, .MuiInputBase-root.Mui-focused &": {
|
|
640
657
|
display: "flex"
|
|
@@ -643,6 +660,7 @@ const UnselectButton = material.styled(material.InputAdornment, {
|
|
|
643
660
|
color: theme.palette.text.hint
|
|
644
661
|
},
|
|
645
662
|
...size === "medium" && {
|
|
663
|
+
top: theme.spacing(3),
|
|
646
664
|
right: theme.spacing(5)
|
|
647
665
|
}
|
|
648
666
|
}));
|
|
@@ -1519,28 +1537,12 @@ const warnDeprecatedGroupBy = /* @__PURE__ */ (() => {
|
|
|
1519
1537
|
}
|
|
1520
1538
|
};
|
|
1521
1539
|
})();
|
|
1522
|
-
function mergeSlotProps({
|
|
1523
|
-
ownProps,
|
|
1524
|
-
consumerProps
|
|
1525
|
-
}) {
|
|
1526
|
-
if (typeof consumerProps === "function") {
|
|
1527
|
-
const resolveConsumerProps = consumerProps;
|
|
1528
|
-
return (ownerState) => ({
|
|
1529
|
-
...ownProps,
|
|
1530
|
-
...resolveConsumerProps(ownerState)
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
return { ...ownProps, ...consumerProps };
|
|
1534
|
-
}
|
|
1535
1540
|
function _Autocomplete({
|
|
1536
1541
|
disabled,
|
|
1537
1542
|
loading,
|
|
1538
|
-
ListboxComponent,
|
|
1539
|
-
ListboxProps,
|
|
1540
|
-
slotProps,
|
|
1541
1543
|
...props
|
|
1542
1544
|
}, ref) {
|
|
1543
|
-
if (props.groupBy && ListboxComponent === AutocompleteList) {
|
|
1545
|
+
if (props.groupBy && props.ListboxComponent === AutocompleteList) {
|
|
1544
1546
|
warnDeprecatedGroupBy("Autocomplete");
|
|
1545
1547
|
}
|
|
1546
1548
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1551,18 +1553,9 @@ function _Autocomplete({
|
|
|
1551
1553
|
disabled: disabled || loading,
|
|
1552
1554
|
popupIcon: loading ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
|
|
1553
1555
|
"data-name": "autocomplete",
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
ownProps: {
|
|
1558
|
-
"aria-multiselectable": false,
|
|
1559
|
-
// v7 ignores the deprecated ListboxComponent prop entirely, so the
|
|
1560
|
-
// listbox slot is the only wiring that still virtualizes.
|
|
1561
|
-
...ListboxComponent && { component: ListboxComponent },
|
|
1562
|
-
...ListboxProps
|
|
1563
|
-
},
|
|
1564
|
-
consumerProps: slotProps == null ? void 0 : slotProps.listbox
|
|
1565
|
-
})
|
|
1556
|
+
ListboxProps: {
|
|
1557
|
+
"aria-multiselectable": false,
|
|
1558
|
+
...props.ListboxProps
|
|
1566
1559
|
}
|
|
1567
1560
|
}
|
|
1568
1561
|
);
|
|
@@ -1845,7 +1838,6 @@ function _CreatableAutocomplete({
|
|
|
1845
1838
|
maxListHeight,
|
|
1846
1839
|
extended,
|
|
1847
1840
|
groupBy,
|
|
1848
|
-
slotProps,
|
|
1849
1841
|
...props
|
|
1850
1842
|
}, ref) {
|
|
1851
1843
|
if (groupBy) {
|
|
@@ -1913,20 +1905,12 @@ function _CreatableAutocomplete({
|
|
|
1913
1905
|
forcePopupIcon: true,
|
|
1914
1906
|
multiple,
|
|
1915
1907
|
disableCloseOnSelect: disableCloseOnSelect ?? multiple,
|
|
1908
|
+
ListboxComponent: AutocompleteList,
|
|
1909
|
+
ListboxProps: listboxProps,
|
|
1916
1910
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
1917
1911
|
disabled: disabled || loading,
|
|
1918
1912
|
popupIcon: loading ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
|
|
1919
|
-
"data-name": "creatable-autocomplete"
|
|
1920
|
-
slotProps: {
|
|
1921
|
-
...slotProps,
|
|
1922
|
-
listbox: mergeSlotProps({
|
|
1923
|
-
ownProps: {
|
|
1924
|
-
component: AutocompleteList,
|
|
1925
|
-
...listboxProps
|
|
1926
|
-
},
|
|
1927
|
-
consumerProps: slotProps == null ? void 0 : slotProps.listbox
|
|
1928
|
-
})
|
|
1929
|
-
}
|
|
1913
|
+
"data-name": "creatable-autocomplete"
|
|
1930
1914
|
}
|
|
1931
1915
|
);
|
|
1932
1916
|
}
|
|
@@ -1952,7 +1936,6 @@ function _MultipleAutocomplete({
|
|
|
1952
1936
|
maxListHeight,
|
|
1953
1937
|
extended,
|
|
1954
1938
|
groupBy,
|
|
1955
|
-
slotProps,
|
|
1956
1939
|
...props
|
|
1957
1940
|
}, ref) {
|
|
1958
1941
|
if (groupBy) {
|
|
@@ -1999,22 +1982,14 @@ function _MultipleAutocomplete({
|
|
|
1999
1982
|
getOptionLabel,
|
|
2000
1983
|
renderOption: renderOption ?? multipleRenderOption,
|
|
2001
1984
|
renderTags: finalRenderTags,
|
|
1985
|
+
ListboxComponent: AutocompleteList,
|
|
1986
|
+
ListboxProps: listboxProps,
|
|
2002
1987
|
multiple: true,
|
|
2003
1988
|
getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
|
|
2004
1989
|
disableCloseOnSelect,
|
|
2005
1990
|
disabled: disabled || loading,
|
|
2006
1991
|
popupIcon: loading ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
|
|
2007
|
-
"data-name": "multiple-autocomplete"
|
|
2008
|
-
slotProps: {
|
|
2009
|
-
...slotProps,
|
|
2010
|
-
listbox: mergeSlotProps({
|
|
2011
|
-
ownProps: {
|
|
2012
|
-
component: AutocompleteList,
|
|
2013
|
-
...listboxProps
|
|
2014
|
-
},
|
|
2015
|
-
consumerProps: slotProps == null ? void 0 : slotProps.listbox
|
|
2016
|
-
})
|
|
2017
|
-
}
|
|
1992
|
+
"data-name": "multiple-autocomplete"
|
|
2018
1993
|
}
|
|
2019
1994
|
);
|
|
2020
1995
|
}
|
|
@@ -3347,15 +3322,6 @@ const DialogPaper = material.styled(material.Paper, {
|
|
|
3347
3322
|
}
|
|
3348
3323
|
})
|
|
3349
3324
|
);
|
|
3350
|
-
function splitSurfaceAttributes({ props }) {
|
|
3351
|
-
const surfaceAttributes = {};
|
|
3352
|
-
const rootProps = {};
|
|
3353
|
-
for (const [key, value] of Object.entries(props)) {
|
|
3354
|
-
const target = key.startsWith("data-") ? surfaceAttributes : rootProps;
|
|
3355
|
-
target[key] = value;
|
|
3356
|
-
}
|
|
3357
|
-
return { surfaceAttributes, rootProps };
|
|
3358
|
-
}
|
|
3359
3325
|
function _Dialog({
|
|
3360
3326
|
nonModal,
|
|
3361
3327
|
children,
|
|
@@ -3367,7 +3333,6 @@ function _Dialog({
|
|
|
3367
3333
|
hasForm,
|
|
3368
3334
|
"aria-label": ariaLabel,
|
|
3369
3335
|
"data-testid": dataTestId,
|
|
3370
|
-
slotProps,
|
|
3371
3336
|
...props
|
|
3372
3337
|
}, ref) {
|
|
3373
3338
|
if (nonModal) {
|
|
@@ -3388,47 +3353,27 @@ function _Dialog({
|
|
|
3388
3353
|
}
|
|
3389
3354
|
);
|
|
3390
3355
|
}
|
|
3391
|
-
const { surfaceAttributes, rootProps } = splitSurfaceAttributes({ props });
|
|
3392
|
-
const consumerPaperProps = typeof (slotProps == null ? void 0 : slotProps.paper) === "function" ? void 0 : slotProps == null ? void 0 : slotProps.paper;
|
|
3393
|
-
const hasOwnLabelledby = Boolean(
|
|
3394
|
-
props["aria-labelledby"] ?? (PaperProps == null ? void 0 : PaperProps["aria-labelledby"]) ?? (consumerPaperProps == null ? void 0 : consumerPaperProps["aria-labelledby"])
|
|
3395
|
-
);
|
|
3396
|
-
const suppressGeneratedLabelledby = Boolean(ariaLabel) && !hasOwnLabelledby;
|
|
3397
|
-
const paperProps = {
|
|
3398
|
-
"data-name": "dialog",
|
|
3399
|
-
"data-size": size,
|
|
3400
|
-
...width && { "data-width": width },
|
|
3401
|
-
...height && { "data-height": height },
|
|
3402
|
-
...PaperProps,
|
|
3403
|
-
size,
|
|
3404
|
-
fullScreen,
|
|
3405
|
-
height,
|
|
3406
|
-
width,
|
|
3407
|
-
hasForm,
|
|
3408
|
-
...dataTestId && { "data-testid": dataTestId },
|
|
3409
|
-
...ariaLabel && { "aria-label": ariaLabel },
|
|
3410
|
-
// Typed as string|undefined so it stays compatible with a consumer's own
|
|
3411
|
-
// aria-labelledby rather than narrowing the merged slot props to undefined.
|
|
3412
|
-
...suppressGeneratedLabelledby && {
|
|
3413
|
-
"aria-labelledby": void 0
|
|
3414
|
-
},
|
|
3415
|
-
// Consumer-supplied data-* wins over the defaults above, as it did when
|
|
3416
|
-
// they all spread onto the root.
|
|
3417
|
-
...surfaceAttributes
|
|
3418
|
-
};
|
|
3419
3356
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3420
3357
|
material.Dialog,
|
|
3421
3358
|
{
|
|
3422
3359
|
PaperComponent: DialogPaper,
|
|
3423
|
-
|
|
3424
|
-
...
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3360
|
+
PaperProps: {
|
|
3361
|
+
...PaperProps,
|
|
3362
|
+
size,
|
|
3363
|
+
fullScreen,
|
|
3364
|
+
height,
|
|
3365
|
+
width,
|
|
3366
|
+
hasForm
|
|
3429
3367
|
},
|
|
3430
3368
|
fullScreen,
|
|
3431
|
-
|
|
3369
|
+
role: "section",
|
|
3370
|
+
"aria-label": ariaLabel,
|
|
3371
|
+
"data-testid": dataTestId,
|
|
3372
|
+
"data-size": size,
|
|
3373
|
+
"data-width": width,
|
|
3374
|
+
"data-height": height,
|
|
3375
|
+
"data-name": "dialog",
|
|
3376
|
+
...props,
|
|
3432
3377
|
ref,
|
|
3433
3378
|
children
|
|
3434
3379
|
}
|
|
@@ -6216,9 +6161,12 @@ const SearchInputAdornment = material.styled(material.InputAdornment, {
|
|
|
6216
6161
|
})
|
|
6217
6162
|
);
|
|
6218
6163
|
const SearchFieldBase = material.styled(material.TextField, {
|
|
6219
|
-
shouldForwardProp: (prop) => prop !== "minimized" && prop !== "isInputFocused" && prop !== "emphasis"
|
|
6220
|
-
})(({ theme, emphasis = "filled", minimized, isInputFocused }) => ({
|
|
6164
|
+
shouldForwardProp: (prop) => prop !== "minimized" && prop !== "isInputFocused" && prop !== "emphasis" && prop !== "dense"
|
|
6165
|
+
})(({ theme, emphasis = "filled", minimized, isInputFocused, dense }) => ({
|
|
6221
6166
|
"&.MuiTextField-root .MuiInputBase-root": {
|
|
6167
|
+
// The theme locks every input to a 48px control; dense surfaces
|
|
6168
|
+
// (table headers, toolbars) opt into the compact 32px height.
|
|
6169
|
+
...dense && { height: theme.spacing(4) },
|
|
6222
6170
|
paddingRight: theme.spacing(1),
|
|
6223
6171
|
transition: theme.transitions.create(["width", "padding"], {
|
|
6224
6172
|
easing: theme.transitions.easing.easeInOut,
|
|
@@ -6363,6 +6311,7 @@ function _SearchField({
|
|
|
6363
6311
|
loading = false,
|
|
6364
6312
|
variant = "filled",
|
|
6365
6313
|
size = "small",
|
|
6314
|
+
dense = false,
|
|
6366
6315
|
InputProps,
|
|
6367
6316
|
inputProps,
|
|
6368
6317
|
startAdornment,
|
|
@@ -6410,6 +6359,7 @@ function _SearchField({
|
|
|
6410
6359
|
isInputFocused,
|
|
6411
6360
|
disabled,
|
|
6412
6361
|
minimized,
|
|
6362
|
+
dense,
|
|
6413
6363
|
InputProps: {
|
|
6414
6364
|
onFocus: handleFocus,
|
|
6415
6365
|
onBlur: handleBlur,
|
|
@@ -6443,6 +6393,7 @@ function _SearchField({
|
|
|
6443
6393
|
},
|
|
6444
6394
|
role: "search",
|
|
6445
6395
|
"data-variant": variant,
|
|
6396
|
+
"data-dense": dense || void 0,
|
|
6446
6397
|
"data-name": "search-field",
|
|
6447
6398
|
ref,
|
|
6448
6399
|
...otherProps
|
|
@@ -6573,7 +6524,7 @@ function Snackbar({
|
|
|
6573
6524
|
open,
|
|
6574
6525
|
autoHideDuration: duration,
|
|
6575
6526
|
onClose,
|
|
6576
|
-
|
|
6527
|
+
TransitionComponent: autoWidth ? material.Fade : material.Slide,
|
|
6577
6528
|
"data-auto-width": autoWidth,
|
|
6578
6529
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6579
6530
|
Content$1,
|