@carto/meridian-ds 2.6.1-alpha-searchfield.6 → 2.6.1-alpha-searchfield.7

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.
@@ -108,10 +108,13 @@ const StyledMenuItem = styled(MenuItem$1, {
108
108
  zIndex: 2,
109
109
  minHeight: MENU_ITEM_SIZE_EXTENDED,
110
110
  marginBottom: theme.spacing(1),
111
- padding: theme.spacing(0.5, 1.5),
111
+ padding: theme.spacing(0.5, 0),
112
112
  backgroundColor: `${theme.palette.background.paper} !important`,
113
113
  borderBottom: `1px solid ${theme.palette.divider}`
114
114
  },
115
+ "&.MuiMenuItem-gutters": {
116
+ padding: theme.spacing(0.5, 1.5)
117
+ },
115
118
  ".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {
116
119
  minHeight: MENU_ITEM_SIZE_EXTENDED,
117
120
  marginTop: 0,
@@ -128,6 +131,9 @@ const StyledMenuItem = styled(MenuItem$1, {
128
131
  ...dense && {
129
132
  "&.MuiButtonBase-root.MuiMenuItem-root": {
130
133
  minHeight: MENU_ITEM_SIZE_DENSE,
134
+ padding: theme.spacing(0.25, 0)
135
+ },
136
+ "&.MuiButtonBase-root.MuiMenuItem-gutters": {
131
137
  padding: theme.spacing(0.25, 1.5)
132
138
  }
133
139
  }
@@ -141,6 +147,7 @@ function _MenuItem({
141
147
  fixed,
142
148
  iconColor = "primary",
143
149
  dense,
150
+ disableGutters,
144
151
  ...props
145
152
  }, ref) {
146
153
  return /* @__PURE__ */ jsx(
@@ -156,11 +163,13 @@ function _MenuItem({
156
163
  dense,
157
164
  fixed,
158
165
  iconColor,
166
+ disableGutters,
159
167
  "data-destructive": destructive,
160
168
  "data-extended": extended,
161
169
  "data-dense": dense,
162
170
  "data-fixed": fixed,
163
- "data-icon-color": iconColor
171
+ "data-icon-color": iconColor,
172
+ "data-disable-gutters": disableGutters
164
173
  }
165
174
  );
166
175
  }
@@ -109,10 +109,13 @@ const StyledMenuItem = material.styled(material.MenuItem, {
109
109
  zIndex: 2,
110
110
  minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED,
111
111
  marginBottom: theme.spacing(1),
112
- padding: theme.spacing(0.5, 1.5),
112
+ padding: theme.spacing(0.5, 0),
113
113
  backgroundColor: `${theme.palette.background.paper} !important`,
114
114
  borderBottom: `1px solid ${theme.palette.divider}`
115
115
  },
116
+ "&.MuiMenuItem-gutters": {
117
+ padding: theme.spacing(0.5, 1.5)
118
+ },
116
119
  ".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {
117
120
  minHeight: cssUtils.MENU_ITEM_SIZE_EXTENDED,
118
121
  marginTop: 0,
@@ -129,6 +132,9 @@ const StyledMenuItem = material.styled(material.MenuItem, {
129
132
  ...dense && {
130
133
  "&.MuiButtonBase-root.MuiMenuItem-root": {
131
134
  minHeight: cssUtils.MENU_ITEM_SIZE_DENSE,
135
+ padding: theme.spacing(0.25, 0)
136
+ },
137
+ "&.MuiButtonBase-root.MuiMenuItem-gutters": {
132
138
  padding: theme.spacing(0.25, 1.5)
133
139
  }
134
140
  }
@@ -142,6 +148,7 @@ function _MenuItem({
142
148
  fixed,
143
149
  iconColor = "primary",
144
150
  dense,
151
+ disableGutters,
145
152
  ...props
146
153
  }, ref) {
147
154
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -157,11 +164,13 @@ function _MenuItem({
157
164
  dense,
158
165
  fixed,
159
166
  iconColor,
167
+ disableGutters,
160
168
  "data-destructive": destructive,
161
169
  "data-extended": extended,
162
170
  "data-dense": dense,
163
171
  "data-fixed": fixed,
164
- "data-icon-color": iconColor
172
+ "data-icon-color": iconColor,
173
+ "data-disable-gutters": disableGutters
165
174
  }
166
175
  );
167
176
  }
@@ -8,7 +8,7 @@ const cssUtils = require("../css-utils-DjvM17Vb.cjs");
8
8
  const Alert$1 = require("../Alert-CPvYAHO_.cjs");
9
9
  const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
10
10
  const OpenDiagonallyRight = require("../OpenDiagonallyRight-CpL4ROwg.cjs");
11
- const MenuItem = require("../MenuItem-BPvH70wa.cjs");
11
+ const MenuItem = require("../MenuItem-ZSYcQBtg.cjs");
12
12
  require("cartocolor");
13
13
  const reactWindow = require("react-window");
14
14
  const reactCodemirror2 = require("react-codemirror2");
@@ -8,7 +8,7 @@ import { S as ScreenReaderOnly, A as Alert$1 } from "../Alert-BfDnWlbD.js";
8
8
  import { L } from "../Alert-BfDnWlbD.js";
9
9
  import { A as ArrowDown } from "../ArrowDown-d6bxUL0F.js";
10
10
  import { A as ArrowUp, O as OpenDiagonallyRight, C as CloseDiagonallyRight } from "../OpenDiagonallyRight-CGdCEXlF.js";
11
- import { M as MenuItem$1 } from "../MenuItem-GpTpLidu.js";
11
+ import { M as MenuItem$1 } from "../MenuItem-D90EfuGS.js";
12
12
  import "cartocolor";
13
13
  import { FixedSizeList } from "react-window";
14
14
  import { Controlled, UnControlled } from "react-codemirror2";
@@ -8,7 +8,7 @@ const cssUtils = require("../css-utils-DjvM17Vb.cjs");
8
8
  const iconsMaterial = require("@mui/icons-material");
9
9
  const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
10
10
  const xDatePickers = require("@mui/x-date-pickers");
11
- const MenuItem = require("../MenuItem-BPvH70wa.cjs");
11
+ const MenuItem = require("../MenuItem-ZSYcQBtg.cjs");
12
12
  const themeShadows = [
13
13
  "none",
14
14
  // 0
@@ -2273,9 +2273,12 @@ const navigationOverrides = {
2273
2273
  ...theme2.typography.body2,
2274
2274
  columnGap: theme2.spacing(1),
2275
2275
  minHeight: cssUtils.MENU_ITEM_SIZE_DEFAULT,
2276
- padding: theme2.spacing(0.75, 1, 0.75, 1.5),
2276
+ padding: theme2.spacing(0.75, 0),
2277
2277
  whiteSpace: "normal",
2278
2278
  transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
2279
+ "&.MuiMenuItem-gutters": {
2280
+ padding: theme2.spacing(0.75, 1, 0.75, 1.5)
2281
+ },
2279
2282
  [theme2.breakpoints.up("sm")]: {
2280
2283
  // Overrides an unwanted Mui default style
2281
2284
  "&.MuiButtonBase-root": {
@@ -8,7 +8,7 @@ import { h, N } from "../css-utils-BHYA7By_.js";
8
8
  import { Cancel, EventOutlined, ChevronRightOutlined, ChevronLeftOutlined, ExpandMoreOutlined, CheckCircleOutlined, InfoOutlined } from "@mui/icons-material";
9
9
  import { A as ArrowDown } from "../ArrowDown-d6bxUL0F.js";
10
10
  import { renderDigitalClockTimeView } from "@mui/x-date-pickers";
11
- import { M as MenuItem } from "../MenuItem-GpTpLidu.js";
11
+ import { M as MenuItem } from "../MenuItem-D90EfuGS.js";
12
12
  const themeShadows = [
13
13
  "none",
14
14
  // 0
@@ -2273,9 +2273,12 @@ const navigationOverrides = {
2273
2273
  ...theme2.typography.body2,
2274
2274
  columnGap: theme2.spacing(1),
2275
2275
  minHeight: MENU_ITEM_SIZE_DEFAULT,
2276
- padding: theme2.spacing(0.75, 1, 0.75, 1.5),
2276
+ padding: theme2.spacing(0.75, 0),
2277
2277
  whiteSpace: "normal",
2278
2278
  transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
2279
+ "&.MuiMenuItem-gutters": {
2280
+ padding: theme2.spacing(0.75, 1, 0.75, 1.5)
2281
+ },
2279
2282
  [theme2.breakpoints.up("sm")]: {
2280
2283
  // Overrides an unwanted Mui default style
2281
2284
  "&.MuiButtonBase-root": {
@@ -107,7 +107,7 @@ declare const options: {
107
107
  };
108
108
  export default options;
109
109
  export declare const Playground: {
110
- render: ({ label, subtitle, dense, disabled, destructive, ...args }: MenuProps & MenuItemProps & {
110
+ render: ({ label, subtitle, dense, disabled, destructive, disableGutters, ...args }: MenuProps & MenuItemProps & {
111
111
  label: string;
112
112
  }) => import("react/jsx-runtime").JSX.Element;
113
113
  args: {
@@ -123,7 +123,7 @@ export declare const Guide: {
123
123
  };
124
124
  };
125
125
  export declare const Dense: {
126
- render: ({ label, subtitle, dense, disabled, destructive, ...args }: MenuProps & MenuItemProps & {
126
+ render: ({ label, subtitle, dense, disabled, destructive, disableGutters, ...args }: MenuProps & MenuItemProps & {
127
127
  label: string;
128
128
  }) => import("react/jsx-runtime").JSX.Element;
129
129
  args: {
@@ -173,7 +173,7 @@ export declare const Destructive: {
173
173
  };
174
174
  };
175
175
  export declare const Subtitle: {
176
- render: ({ label, subtitle, dense, disabled, destructive, ...args }: MenuProps & MenuItemProps & {
176
+ render: ({ label, subtitle, dense, disabled, destructive, disableGutters, ...args }: MenuProps & MenuItemProps & {
177
177
  label: string;
178
178
  }) => import("react/jsx-runtime").JSX.Element;
179
179
  args: {
@@ -207,7 +207,7 @@ export declare const MenuListWrapper: {
207
207
  };
208
208
  };
209
209
  export declare const CustomWidth: {
210
- render: ({ label, subtitle, dense, disabled, destructive, ...args }: MenuProps & MenuItemProps & {
210
+ render: ({ label, subtitle, dense, disabled, destructive, disableGutters, ...args }: MenuProps & MenuItemProps & {
211
211
  label: string;
212
212
  }) => import("react/jsx-runtime").JSX.Element;
213
213
  args: {
@@ -216,7 +216,7 @@ export declare const CustomWidth: {
216
216
  };
217
217
  };
218
218
  export declare const CustomHeight: {
219
- render: ({ label, subtitle, dense, disabled, destructive, ...args }: MenuProps & MenuItemProps & {
219
+ render: ({ label, subtitle, dense, disabled, destructive, disableGutters, ...args }: MenuProps & MenuItemProps & {
220
220
  label: string;
221
221
  }) => import("react/jsx-runtime").JSX.Element;
222
222
  args: {
@@ -224,8 +224,17 @@ export declare const CustomHeight: {
224
224
  label: string;
225
225
  };
226
226
  };
227
+ export declare const DisableGutters: {
228
+ render: ({ label, subtitle, dense, disabled, destructive, disableGutters, ...args }: MenuProps & MenuItemProps & {
229
+ label: string;
230
+ }) => import("react/jsx-runtime").JSX.Element;
231
+ args: {
232
+ disableGutters: boolean;
233
+ label: string;
234
+ };
235
+ };
227
236
  export declare const PlacementTop: {
228
- render: ({ label, subtitle, dense, disabled, destructive, ...args }: MenuProps & MenuItemProps & {
237
+ render: ({ label, subtitle, dense, disabled, destructive, disableGutters, ...args }: MenuProps & MenuItemProps & {
229
238
  label: string;
230
239
  }) => import("react/jsx-runtime").JSX.Element;
231
240
  args: {
@@ -241,7 +250,7 @@ export declare const PlacementTop: {
241
250
  };
242
251
  };
243
252
  export declare const PlacementRight: {
244
- render: ({ label, subtitle, dense, disabled, destructive, ...args }: MenuProps & MenuItemProps & {
253
+ render: ({ label, subtitle, dense, disabled, destructive, disableGutters, ...args }: MenuProps & MenuItemProps & {
245
254
  label: string;
246
255
  }) => import("react/jsx-runtime").JSX.Element;
247
256
  args: {
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/Menu/Menu.stories.tsx"],"names":[],"mappings":"AA6BA,OAAO,EAGL,aAAa,EAEb,aAAa,EACb,SAAS,EACV,MAAM,mBAAmB,CAAA;AAkB1B,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFG,CAAA;AAChB,eAAe,OAAO,CAAA;AAq3BtB,eAAO,MAAM,UAAU;yEA9gBpB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;CAihB/C,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;CAKjB,CAAA;AAED,eAAO,MAAM,KAAK;yEA1hBf,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;CA6hB/C,CAAA;AAED,eAAO,MAAM,QAAQ;yEAjKlB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;CAuK/C,CAAA;AAED,eAAO,MAAM,MAAM;2CAx4BhB,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;CA24BnC,CAAA;AA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;;;CAokB/C,CAAA;AAED,eAAO,MAAM,YAAY;yEAnXtB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;CA0X/C,CAAA;AAED,eAAO,MAAM,aAAa;yEAjRvB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;CAoR/C,CAAA;AAED,eAAO,MAAM,eAAe;yEA7ezB,aAAa,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;CAgfnD,CAAA;AAED,eAAO,MAAM,WAAW;yFAzlBrB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;CA4lB/C,CAAA;AAED,eAAO,MAAM,YAAY;yFA9lBtB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;CAimB/C,CAAA;AAED,eAAO,MAAM,cAAc;yFAnmBxB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;CAsmB/C,CAAA;AAED,eAAO,MAAM,YAAY;yFAxmBtB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;CA+mB/C,CAAA;AAED,eAAO,MAAM,cAAc;yFAjnBxB,SAAS,GAAG,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;CAwnB/C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAsLxC,QAAA,MAAM,QAAQ,sHAAwB,CAAA;AACtC,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AA+LxC,QAAA,MAAM,QAAQ,sHAAwB,CAAA;AACtC,eAAe,QAAQ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../src/theme/components/navigation.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEjD,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAyU1D,CAAA"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../src/theme/components/navigation.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEjD,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CA6U1D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "2.6.1-alpha-searchfield.6",
3
+ "version": "2.6.1-alpha-searchfield.7",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {