@carto/meridian-ds 1.5.0 → 1.5.1-alpha-virtual-autocomplete.9
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 +6 -0
- package/dist/{Alert-BiOR9aar.cjs → Alert-BzEgeyQJ.cjs} +1 -1
- package/dist/{Alert-CywtIMOj.js → Alert-CnaTtNJd.js} +1 -1
- package/dist/{MenuItem-CXnnE5lK.js → MenuItem-C1DvWMry.js} +10 -6
- package/dist/{MenuItem-Br2jY2lt.cjs → MenuItem-C4bG5WHw.cjs} +10 -6
- package/dist/{TablePaginationActions-KpTvhN4Y.js → TablePaginationActions-Cz5Hbi6N.js} +9 -1
- package/dist/{TablePaginationActions-CFGXm44W.cjs → TablePaginationActions-mbbjzV6Y.cjs} +8 -0
- package/dist/components/index.cjs +435 -55
- package/dist/components/index.js +437 -57
- package/dist/theme/index.cjs +13 -9
- package/dist/theme/index.js +14 -10
- package/dist/types/components/atoms/SplitButton.d.ts +9 -5
- package/dist/types/components/atoms/SplitButton.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/AutocompleteList.d.ts +13 -0
- package/dist/types/components/molecules/Autocomplete/AutocompleteList.d.ts.map +1 -0
- package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts +1 -1
- package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts +1 -1
- package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/index.d.ts +3 -0
- package/dist/types/components/molecules/Autocomplete/index.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/types.d.ts +107 -7
- package/dist/types/components/molecules/Autocomplete/types.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/useAutocomplete.d.ts +11 -0
- package/dist/types/components/molecules/Autocomplete/useAutocomplete.d.ts.map +1 -0
- package/dist/types/components/molecules/Autocomplete/useAutocompleteRenderOption.d.ts +2 -1
- package/dist/types/components/molecules/Autocomplete/useAutocompleteRenderOption.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts +26 -1
- package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete/utils.d.ts +107 -0
- package/dist/types/components/molecules/Autocomplete/utils.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuList.d.ts.map +1 -1
- package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
- package/dist/types/theme/sections/components/forms.d.ts.map +1 -1
- package/dist/types/theme/sections/components/navigation.d.ts.map +1 -1
- package/dist/types/theme/theme-constants.d.ts +4 -0
- package/dist/types/theme/theme-constants.d.ts.map +1 -1
- package/dist/widgets/index.cjs +2 -2
- package/dist/widgets/index.js +2 -2
- package/package.json +1 -1
- package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts +0 -17
- package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- Support VirtualizedList in Autocomplete components [#215](https://github.com/CartoDB/meridian-ds/pull/215)
|
|
6
|
+
|
|
5
7
|
## 1.0
|
|
6
8
|
|
|
9
|
+
### 1.5.1
|
|
10
|
+
|
|
11
|
+
- Support `loading` and `disabled` properties in `SplitButton` [#216](https://github.com/CartoDB/meridian-ds/pull/216)
|
|
12
|
+
|
|
7
13
|
### 1.5.0
|
|
8
14
|
|
|
9
15
|
- Add `SplitButton` [#212](https://github.com/CartoDB/meridian-ds/pull/212)
|
|
@@ -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 TablePaginationActions = require("./TablePaginationActions-
|
|
5
|
+
const TablePaginationActions = require("./TablePaginationActions-mbbjzV6Y.cjs");
|
|
6
6
|
const Option = material.styled("div")(({ theme }) => ({
|
|
7
7
|
position: "relative",
|
|
8
8
|
display: "inline-flex",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState } from "react";
|
|
3
3
|
import { styled, IconButton as IconButton$1, Tooltip, CircularProgress, Alert as Alert$1, Fade, AlertTitle } from "@mui/material";
|
|
4
|
-
import { b as ICON_SIZE_MEDIUM, T as Typography } from "./TablePaginationActions-
|
|
4
|
+
import { b as ICON_SIZE_MEDIUM, T as Typography } from "./TablePaginationActions-Cz5Hbi6N.js";
|
|
5
5
|
const Option = styled("div")(({ theme }) => ({
|
|
6
6
|
position: "relative",
|
|
7
7
|
display: "inline-flex",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { styled, MenuItem as MenuItem$1 } from "@mui/material";
|
|
4
|
+
import { e as MENU_ITEM_SIZE_DENSE, f as MENU_ITEM_SIZE_EXTENDED } from "./TablePaginationActions-Cz5Hbi6N.js";
|
|
4
5
|
const StyledMenuItem = styled(MenuItem$1, {
|
|
5
6
|
shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
6
7
|
prop
|
|
@@ -20,14 +21,14 @@ const StyledMenuItem = styled(MenuItem$1, {
|
|
|
20
21
|
columnGap: 0,
|
|
21
22
|
...theme.typography.caption,
|
|
22
23
|
fontWeight: 500,
|
|
23
|
-
color: theme.palette.text.secondary
|
|
24
|
+
color: `${theme.palette.text.secondary} !important`,
|
|
24
25
|
".MuiListItemText-root .MuiTypography-root": {
|
|
25
26
|
...theme.typography.caption,
|
|
26
27
|
fontWeight: 500,
|
|
27
28
|
color: theme.palette.text.secondary
|
|
28
29
|
},
|
|
29
30
|
"&.MuiMenuItem-root": {
|
|
30
|
-
minHeight:
|
|
31
|
+
minHeight: MENU_ITEM_SIZE_DENSE,
|
|
31
32
|
paddingTop: 0,
|
|
32
33
|
paddingBottom: 0,
|
|
33
34
|
marginTop: theme.spacing(1),
|
|
@@ -94,7 +95,7 @@ const StyledMenuItem = styled(MenuItem$1, {
|
|
|
94
95
|
},
|
|
95
96
|
...extended && {
|
|
96
97
|
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
97
|
-
minHeight:
|
|
98
|
+
minHeight: MENU_ITEM_SIZE_EXTENDED
|
|
98
99
|
}
|
|
99
100
|
},
|
|
100
101
|
...fixed && {
|
|
@@ -105,14 +106,14 @@ const StyledMenuItem = styled(MenuItem$1, {
|
|
|
105
106
|
bottom: 0,
|
|
106
107
|
right: 0,
|
|
107
108
|
zIndex: 2,
|
|
108
|
-
minHeight:
|
|
109
|
+
minHeight: MENU_ITEM_SIZE_EXTENDED,
|
|
109
110
|
marginBottom: theme.spacing(1),
|
|
110
111
|
padding: theme.spacing(0.5, 1.5),
|
|
111
112
|
backgroundColor: `${theme.palette.background.paper} !important`,
|
|
112
113
|
borderBottom: `1px solid ${theme.palette.divider}`
|
|
113
114
|
},
|
|
114
115
|
".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {
|
|
115
|
-
minHeight:
|
|
116
|
+
minHeight: MENU_ITEM_SIZE_EXTENDED,
|
|
116
117
|
marginTop: 0,
|
|
117
118
|
"&:hover": {
|
|
118
119
|
backgroundColor: theme.palette.background.paper
|
|
@@ -126,7 +127,7 @@ const StyledMenuItem = styled(MenuItem$1, {
|
|
|
126
127
|
},
|
|
127
128
|
...dense && {
|
|
128
129
|
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
129
|
-
minHeight:
|
|
130
|
+
minHeight: MENU_ITEM_SIZE_DENSE,
|
|
130
131
|
padding: theme.spacing(0.25, 1.5)
|
|
131
132
|
}
|
|
132
133
|
}
|
|
@@ -139,6 +140,7 @@ function _MenuItem({
|
|
|
139
140
|
extended,
|
|
140
141
|
fixed,
|
|
141
142
|
iconColor = "primary",
|
|
143
|
+
dense,
|
|
142
144
|
...props
|
|
143
145
|
}, ref) {
|
|
144
146
|
return /* @__PURE__ */ jsx(
|
|
@@ -151,10 +153,12 @@ function _MenuItem({
|
|
|
151
153
|
subtitle,
|
|
152
154
|
destructive,
|
|
153
155
|
extended,
|
|
156
|
+
dense,
|
|
154
157
|
fixed,
|
|
155
158
|
color: iconColor,
|
|
156
159
|
"data-destructive": destructive,
|
|
157
160
|
"data-extended": extended,
|
|
161
|
+
"data-dense": dense,
|
|
158
162
|
"data-fixed": fixed
|
|
159
163
|
}
|
|
160
164
|
);
|
|
@@ -2,6 +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 TablePaginationActions = require("./TablePaginationActions-mbbjzV6Y.cjs");
|
|
5
6
|
const StyledMenuItem = material.styled(material.MenuItem, {
|
|
6
7
|
shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
7
8
|
prop
|
|
@@ -21,14 +22,14 @@ const StyledMenuItem = material.styled(material.MenuItem, {
|
|
|
21
22
|
columnGap: 0,
|
|
22
23
|
...theme.typography.caption,
|
|
23
24
|
fontWeight: 500,
|
|
24
|
-
color: theme.palette.text.secondary
|
|
25
|
+
color: `${theme.palette.text.secondary} !important`,
|
|
25
26
|
".MuiListItemText-root .MuiTypography-root": {
|
|
26
27
|
...theme.typography.caption,
|
|
27
28
|
fontWeight: 500,
|
|
28
29
|
color: theme.palette.text.secondary
|
|
29
30
|
},
|
|
30
31
|
"&.MuiMenuItem-root": {
|
|
31
|
-
minHeight:
|
|
32
|
+
minHeight: TablePaginationActions.MENU_ITEM_SIZE_DENSE,
|
|
32
33
|
paddingTop: 0,
|
|
33
34
|
paddingBottom: 0,
|
|
34
35
|
marginTop: theme.spacing(1),
|
|
@@ -95,7 +96,7 @@ const StyledMenuItem = material.styled(material.MenuItem, {
|
|
|
95
96
|
},
|
|
96
97
|
...extended && {
|
|
97
98
|
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
98
|
-
minHeight:
|
|
99
|
+
minHeight: TablePaginationActions.MENU_ITEM_SIZE_EXTENDED
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
102
|
...fixed && {
|
|
@@ -106,14 +107,14 @@ const StyledMenuItem = material.styled(material.MenuItem, {
|
|
|
106
107
|
bottom: 0,
|
|
107
108
|
right: 0,
|
|
108
109
|
zIndex: 2,
|
|
109
|
-
minHeight:
|
|
110
|
+
minHeight: TablePaginationActions.MENU_ITEM_SIZE_EXTENDED,
|
|
110
111
|
marginBottom: theme.spacing(1),
|
|
111
112
|
padding: theme.spacing(0.5, 1.5),
|
|
112
113
|
backgroundColor: `${theme.palette.background.paper} !important`,
|
|
113
114
|
borderBottom: `1px solid ${theme.palette.divider}`
|
|
114
115
|
},
|
|
115
116
|
".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {
|
|
116
|
-
minHeight:
|
|
117
|
+
minHeight: TablePaginationActions.MENU_ITEM_SIZE_EXTENDED,
|
|
117
118
|
marginTop: 0,
|
|
118
119
|
"&:hover": {
|
|
119
120
|
backgroundColor: theme.palette.background.paper
|
|
@@ -127,7 +128,7 @@ const StyledMenuItem = material.styled(material.MenuItem, {
|
|
|
127
128
|
},
|
|
128
129
|
...dense && {
|
|
129
130
|
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
130
|
-
minHeight:
|
|
131
|
+
minHeight: TablePaginationActions.MENU_ITEM_SIZE_DENSE,
|
|
131
132
|
padding: theme.spacing(0.25, 1.5)
|
|
132
133
|
}
|
|
133
134
|
}
|
|
@@ -140,6 +141,7 @@ function _MenuItem({
|
|
|
140
141
|
extended,
|
|
141
142
|
fixed,
|
|
142
143
|
iconColor = "primary",
|
|
144
|
+
dense,
|
|
143
145
|
...props
|
|
144
146
|
}, ref) {
|
|
145
147
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -152,10 +154,12 @@ function _MenuItem({
|
|
|
152
154
|
subtitle,
|
|
153
155
|
destructive,
|
|
154
156
|
extended,
|
|
157
|
+
dense,
|
|
155
158
|
fixed,
|
|
156
159
|
color: iconColor,
|
|
157
160
|
"data-destructive": destructive,
|
|
158
161
|
"data-extended": extended,
|
|
162
|
+
"data-dense": dense,
|
|
159
163
|
"data-fixed": fixed
|
|
160
164
|
}
|
|
161
165
|
);
|
|
@@ -777,6 +777,10 @@ const ICON_SIZE_MEDIUM = getSpacing(2.25);
|
|
|
777
777
|
const ICON_SIZE_LARGE = getSpacing(3);
|
|
778
778
|
const APPBAR_SIZE = getSpacing(6);
|
|
779
779
|
const NOTIFICATION_DURATION_IN_MS = 6e3;
|
|
780
|
+
const MENU_LIST_MAX_SIZE = 312;
|
|
781
|
+
const MENU_ITEM_SIZE_DENSE = 24;
|
|
782
|
+
const MENU_ITEM_SIZE_DEFAULT = 32;
|
|
783
|
+
const MENU_ITEM_SIZE_EXTENDED = 48;
|
|
780
784
|
const FontWeight = {
|
|
781
785
|
regular: 400,
|
|
782
786
|
medium: 500,
|
|
@@ -5650,13 +5654,17 @@ export {
|
|
|
5650
5654
|
APPBAR_SIZE as A,
|
|
5651
5655
|
BREAKPOINTS as B,
|
|
5652
5656
|
ICON_SIZE_LARGE as I,
|
|
5657
|
+
MENU_ITEM_SIZE_DEFAULT as M,
|
|
5653
5658
|
NOTIFICATION_DURATION_IN_MS as N,
|
|
5654
5659
|
SPACING as S,
|
|
5655
5660
|
Typography as T,
|
|
5656
5661
|
TablePaginationActions as a,
|
|
5657
5662
|
ICON_SIZE_MEDIUM as b,
|
|
5658
5663
|
ICON_SIZE_SMALL as c,
|
|
5659
|
-
|
|
5664
|
+
MENU_LIST_MAX_SIZE as d,
|
|
5665
|
+
MENU_ITEM_SIZE_DENSE as e,
|
|
5666
|
+
MENU_ITEM_SIZE_EXTENDED as f,
|
|
5660
5667
|
getSpacing as g,
|
|
5668
|
+
getDefaultExportFromCjs as h,
|
|
5661
5669
|
useImperativeIntl as u
|
|
5662
5670
|
};
|
|
@@ -778,6 +778,10 @@ const ICON_SIZE_MEDIUM = getSpacing(2.25);
|
|
|
778
778
|
const ICON_SIZE_LARGE = getSpacing(3);
|
|
779
779
|
const APPBAR_SIZE = getSpacing(6);
|
|
780
780
|
const NOTIFICATION_DURATION_IN_MS = 6e3;
|
|
781
|
+
const MENU_LIST_MAX_SIZE = 312;
|
|
782
|
+
const MENU_ITEM_SIZE_DENSE = 24;
|
|
783
|
+
const MENU_ITEM_SIZE_DEFAULT = 32;
|
|
784
|
+
const MENU_ITEM_SIZE_EXTENDED = 48;
|
|
781
785
|
const FontWeight = {
|
|
782
786
|
regular: 400,
|
|
783
787
|
medium: 500,
|
|
@@ -5652,6 +5656,10 @@ exports.BREAKPOINTS = BREAKPOINTS;
|
|
|
5652
5656
|
exports.ICON_SIZE_LARGE = ICON_SIZE_LARGE;
|
|
5653
5657
|
exports.ICON_SIZE_MEDIUM = ICON_SIZE_MEDIUM;
|
|
5654
5658
|
exports.ICON_SIZE_SMALL = ICON_SIZE_SMALL;
|
|
5659
|
+
exports.MENU_ITEM_SIZE_DEFAULT = MENU_ITEM_SIZE_DEFAULT;
|
|
5660
|
+
exports.MENU_ITEM_SIZE_DENSE = MENU_ITEM_SIZE_DENSE;
|
|
5661
|
+
exports.MENU_ITEM_SIZE_EXTENDED = MENU_ITEM_SIZE_EXTENDED;
|
|
5662
|
+
exports.MENU_LIST_MAX_SIZE = MENU_LIST_MAX_SIZE;
|
|
5655
5663
|
exports.NOTIFICATION_DURATION_IN_MS = NOTIFICATION_DURATION_IN_MS;
|
|
5656
5664
|
exports.SPACING = SPACING;
|
|
5657
5665
|
exports.TablePaginationActions = TablePaginationActions;
|