@carto/meridian-ds 2.6.2-alpha.0 → 2.7.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +6 -3
  2. package/dist/{Alert-1A6BG2aO.js → Alert-BfDnWlbD.js} +1 -1
  3. package/dist/{Alert-eVzJvC47.cjs → Alert-CPvYAHO_.cjs} +1 -1
  4. package/dist/{MenuItem-DgHhHW-j.js → MenuItem-D90EfuGS.js} +12 -3
  5. package/dist/{MenuItem-6ZIV5V7a.cjs → MenuItem-ZSYcQBtg.cjs} +12 -3
  6. package/dist/{SwatchSquare-CaaLsjAC.js → Search-C7wkXu3f.js} +4 -23
  7. package/dist/{SwatchSquare-B8PIY3Rd.cjs → Search-CMWbM9nD.cjs} +3 -22
  8. package/dist/SwatchSquare-B6KYVoqV.js +24 -0
  9. package/dist/SwatchSquare-DuXPIL7t.cjs +23 -0
  10. package/dist/components/index.cjs +290 -3
  11. package/dist/components/index.js +293 -6
  12. package/dist/{css-utils-lmkjeCdF.js → css-utils-BHYA7By_.js} +3 -0
  13. package/dist/{css-utils-BNXxLCyb.cjs → css-utils-DjvM17Vb.cjs} +3 -0
  14. package/dist/custom-icons/index.cjs +3 -2
  15. package/dist/custom-icons/index.js +3 -2
  16. package/dist/theme/index.cjs +16 -4
  17. package/dist/theme/index.js +17 -5
  18. package/dist/types/components/Menu/Menu/Menu.stories.d.ts +16 -7
  19. package/dist/types/components/Menu/Menu/Menu.stories.d.ts.map +1 -1
  20. package/dist/types/components/Menu/MenuItem/MenuItem.d.ts.map +1 -1
  21. package/dist/types/components/SearchField/SearchField.d.ts +4 -0
  22. package/dist/types/components/SearchField/SearchField.d.ts.map +1 -0
  23. package/dist/types/components/SearchField/SearchField.stories.d.ts +111 -0
  24. package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -0
  25. package/dist/types/components/SearchField/SearchField.styled.d.ts +23 -0
  26. package/dist/types/components/SearchField/SearchField.styled.d.ts.map +1 -0
  27. package/dist/types/components/SearchField/SearchField.test.d.ts +2 -0
  28. package/dist/types/components/SearchField/SearchField.test.d.ts.map +1 -0
  29. package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts +19 -0
  30. package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts.map +1 -0
  31. package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts +14 -0
  32. package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts.map +1 -0
  33. package/dist/types/components/SearchField/index.d.ts +3 -0
  34. package/dist/types/components/SearchField/index.d.ts.map +1 -0
  35. package/dist/types/components/SearchField/types.d.ts +72 -0
  36. package/dist/types/components/SearchField/types.d.ts.map +1 -0
  37. package/dist/types/components/index.d.ts +2 -0
  38. package/dist/types/components/index.d.ts.map +1 -1
  39. package/dist/types/localization/en.d.ts +1 -0
  40. package/dist/types/localization/en.d.ts.map +1 -1
  41. package/dist/types/localization/es.d.ts +1 -0
  42. package/dist/types/localization/es.d.ts.map +1 -1
  43. package/dist/types/localization/id.d.ts +1 -0
  44. package/dist/types/localization/id.d.ts.map +1 -1
  45. package/dist/types/localization/index.d.ts +3 -0
  46. package/dist/types/localization/index.d.ts.map +1 -1
  47. package/dist/types/theme/carto-theme.d.ts.map +1 -1
  48. package/dist/types/theme/components/layout.d.ts +3 -0
  49. package/dist/types/theme/components/layout.d.ts.map +1 -0
  50. package/dist/types/theme/components/navigation.d.ts.map +1 -1
  51. package/dist/widgets/index.cjs +8 -7
  52. package/dist/widgets/index.js +4 -3
  53. package/package.json +2 -3
@@ -1,14 +1,14 @@
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 } from "react";
3
- import { styled, Box, Button as Button$1, CircularProgress, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade } from "@mui/material";
3
+ import { styled, Box, Button as Button$1, CircularProgress, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Stack, Snackbar as Snackbar$1, Portal, Fade } from "@mui/material";
4
4
  import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, Check, TodayOutlined } from "@mui/icons-material";
5
- import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, i as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, h as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, j as useImperativeIntl, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles } from "../css-utils-lmkjeCdF.js";
6
- import { a } from "../css-utils-lmkjeCdF.js";
7
- import { S as ScreenReaderOnly, A as Alert$1 } from "../Alert-1A6BG2aO.js";
8
- import { L } from "../Alert-1A6BG2aO.js";
5
+ import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, i as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, h as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, j as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles } from "../css-utils-BHYA7By_.js";
6
+ import { a } from "../css-utils-BHYA7By_.js";
7
+ import { S as ScreenReaderOnly, A as Alert$1 } from "../Alert-BfDnWlbD.js";
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-DgHhHW-j.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";
@@ -41,6 +41,7 @@ import { useIntl } from "react-intl";
41
41
  import { PickersDay as PickersDay$1 } from "@mui/x-date-pickers";
42
42
  import { TimePicker as TimePicker$1 } from "@mui/x-date-pickers/TimePicker";
43
43
  import { DateTimePicker as DateTimePicker$1 } from "@mui/x-date-pickers/DateTimePicker";
44
+ import { S as Search } from "../Search-C7wkXu3f.js";
44
45
  import DOMPurify from "dompurify";
45
46
  const IndicatorIcon = styled(Box)({
46
47
  position: "absolute",
@@ -5039,6 +5040,291 @@ function _FilterDropdown({
5039
5040
  const FilterDropdown = forwardRef(
5040
5041
  _FilterDropdown
5041
5042
  );
5043
+ const SearchIcon = styled(Search, {
5044
+ shouldForwardProp: (prop) => prop !== "minimized" && prop !== "disabled"
5045
+ })(
5046
+ ({ theme, minimized, disabled }) => ({
5047
+ cursor: !disabled && minimized ? "pointer" : "inherit",
5048
+ width: ICON_SIZE_MEDIUM,
5049
+ height: ICON_SIZE_MEDIUM,
5050
+ path: {
5051
+ fillOpacity: 1,
5052
+ fill: disabled ? theme.palette.text.disabled : theme.palette.text.secondary
5053
+ }
5054
+ })
5055
+ );
5056
+ const ClearSearchIcon = styled(Cancel)(({ theme }) => ({
5057
+ color: `${theme.palette.text.hint} !important`
5058
+ }));
5059
+ const LoadingSearchIcon = styled(CircularProgress)(({ theme }) => ({
5060
+ svg: {
5061
+ color: `${theme.palette.primary.main} !important`
5062
+ }
5063
+ }));
5064
+ const SearchInputAdornment = styled(InputAdornment, {
5065
+ shouldForwardProp: (prop) => prop !== "minimized" && prop !== "expanded"
5066
+ })(
5067
+ ({ theme, minimized, expanded }) => ({
5068
+ // Start adornment
5069
+ transition: theme.transitions.create(["width", "margin"], {
5070
+ easing: theme.transitions.easing.easeInOut,
5071
+ duration: theme.transitions.duration.short
5072
+ }),
5073
+ "&.MuiInputAdornment-positionStart": {
5074
+ marginLeft: minimized ? theme.spacing(1) : void 0
5075
+ },
5076
+ // End adornment
5077
+ "&.MuiInputAdornment-positionEnd": {
5078
+ minWidth: theme.spacing(4),
5079
+ "&.MuiInputAdornment-sizeSmall": {
5080
+ minWidth: theme.spacing(3)
5081
+ }
5082
+ },
5083
+ ...expanded && !minimized && {
5084
+ "&.MuiInputAdornment-root": {
5085
+ minWidth: theme.spacing(9),
5086
+ "&.MuiInputAdornment-sizeSmall": {
5087
+ minWidth: theme.spacing(7)
5088
+ }
5089
+ }
5090
+ }
5091
+ })
5092
+ );
5093
+ const SearchFieldBase = styled(TextField, {
5094
+ shouldForwardProp: (prop) => prop !== "minimized" && prop !== "isInputFocused" && prop !== "emphasis"
5095
+ })(({ theme, emphasis = "filled", minimized, isInputFocused }) => ({
5096
+ "&.MuiTextField-root .MuiInputBase-root": {
5097
+ paddingRight: theme.spacing(1),
5098
+ transition: theme.transitions.create(["width", "padding"], {
5099
+ easing: theme.transitions.easing.easeInOut,
5100
+ duration: theme.transitions.duration.standard
5101
+ }),
5102
+ "&.MuiInputBase-sizeSmall": {
5103
+ paddingRight: theme.spacing(0.5)
5104
+ },
5105
+ "&:before": {
5106
+ border: "none !important",
5107
+ "&:hover": {
5108
+ border: "none !important"
5109
+ }
5110
+ },
5111
+ // Input
5112
+ "& .MuiInputBase-input": {
5113
+ pointerEvents: isInputFocused ? "auto" : "none",
5114
+ // Fix Chrome scroll issue https://issues.chromium.org/issues/41245282
5115
+ transition: theme.transitions.create("width", {
5116
+ easing: theme.transitions.easing.easeInOut,
5117
+ duration: theme.transitions.duration.standard
5118
+ })
5119
+ },
5120
+ // Error state
5121
+ "&.Mui-error": {
5122
+ "&::after": {
5123
+ borderColor: "transparent !important"
5124
+ }
5125
+ },
5126
+ ...minimized && {
5127
+ display: "flex",
5128
+ alignItems: "center",
5129
+ padding: 0,
5130
+ width: theme.spacing(6),
5131
+ cursor: "pointer",
5132
+ "& .MuiInputBase-input": {
5133
+ width: 0
5134
+ },
5135
+ "&.MuiInputBase-sizeSmall": {
5136
+ padding: 0,
5137
+ width: theme.spacing(4)
5138
+ }
5139
+ }
5140
+ },
5141
+ // Variants
5142
+ ...emphasis === "filled" && {
5143
+ "& .MuiInputBase-root": {
5144
+ backgroundColor: minimized ? "transparent !important" : void 0,
5145
+ "&:hover": {
5146
+ backgroundColor: `${theme.palette.action.hover} !important`
5147
+ },
5148
+ // not disabled
5149
+ "&:not(.Mui-disabled):hover": {
5150
+ backgroundColor: `${theme.palette.action.hover} !important`
5151
+ }
5152
+ }
5153
+ },
5154
+ ...emphasis === "transparent" && {
5155
+ "& .MuiInputBase-root": {
5156
+ backgroundColor: "transparent !important",
5157
+ "&:hover": {
5158
+ backgroundColor: minimized ? `${theme.palette.action.hover} !important` : "transparent !important"
5159
+ },
5160
+ "&.Mui-disabled": {
5161
+ backgroundColor: "transparent !important"
5162
+ }
5163
+ }
5164
+ },
5165
+ ...emphasis === "floating" && {
5166
+ "& .MuiInputBase-root": {
5167
+ backgroundColor: `${theme.palette.background.paper} !important`,
5168
+ boxShadow: theme.shadows[1],
5169
+ "&:hover": {
5170
+ backgroundColor: minimized ? `${theme.palette.action.hover} !important` : `${theme.palette.background.paper} !important`
5171
+ },
5172
+ "&.Mui-disabled": {
5173
+ backgroundColor: `${theme.palette.background.paper} !important`
5174
+ }
5175
+ }
5176
+ }
5177
+ }));
5178
+ const SearchFieldEndAdornment = ({
5179
+ disabled,
5180
+ showClearButton = true,
5181
+ loading,
5182
+ size,
5183
+ endAdornment,
5184
+ clearButton,
5185
+ clearButtonLabel,
5186
+ onClear
5187
+ }) => {
5188
+ if (!showClearButton && !endAdornment && !loading) {
5189
+ return null;
5190
+ }
5191
+ return /* @__PURE__ */ jsx(
5192
+ SearchInputAdornment,
5193
+ {
5194
+ position: "end",
5195
+ expanded: Boolean(endAdornment && showClearButton),
5196
+ children: /* @__PURE__ */ jsxs(
5197
+ Stack,
5198
+ {
5199
+ direction: "row",
5200
+ spacing: 1,
5201
+ sx: {
5202
+ alignItems: "center"
5203
+ },
5204
+ children: [
5205
+ loading ? /* @__PURE__ */ jsx(LoadingSearchIcon, { size: ICON_SIZE_MEDIUM }) : showClearButton ? clearButton ?? /* @__PURE__ */ jsx(
5206
+ IconButton,
5207
+ {
5208
+ onClick: onClear,
5209
+ size,
5210
+ color: "default",
5211
+ disabled,
5212
+ tooltip: clearButtonLabel,
5213
+ "aria-label": clearButtonLabel,
5214
+ icon: /* @__PURE__ */ jsx(ClearSearchIcon, {})
5215
+ }
5216
+ ) : null,
5217
+ endAdornment
5218
+ ]
5219
+ }
5220
+ )
5221
+ }
5222
+ );
5223
+ };
5224
+ const SearchFieldStartAdornment = ({
5225
+ minimized,
5226
+ loading,
5227
+ startAdornment,
5228
+ disabled
5229
+ }) => {
5230
+ return /* @__PURE__ */ jsx(SearchInputAdornment, { position: "start", minimized, children: loading && minimized ? /* @__PURE__ */ jsx(LoadingSearchIcon, { size: ICON_SIZE_MEDIUM }) : startAdornment || /* @__PURE__ */ jsx(SearchIcon, { disabled, minimized }) });
5231
+ };
5232
+ function _SearchField({
5233
+ value,
5234
+ defaultValue,
5235
+ placeholder,
5236
+ disabled,
5237
+ minimized = false,
5238
+ loading = false,
5239
+ variant = "filled",
5240
+ size = "small",
5241
+ InputProps,
5242
+ inputProps,
5243
+ startAdornment,
5244
+ endAdornment,
5245
+ onFocus,
5246
+ onBlur,
5247
+ onChange,
5248
+ onClick,
5249
+ onResetSearch,
5250
+ showClearButton = true,
5251
+ clearButtonLabel,
5252
+ clearButton,
5253
+ ...otherProps
5254
+ }, ref) {
5255
+ const [isInputFocused, setIsInputFocused] = useState(false);
5256
+ const clearButtonVisibility = !disabled && Boolean(value ?? defaultValue) && showClearButton;
5257
+ const clearButtonLabelValue = useTranslationWithFallback(
5258
+ "c4r.button.clear",
5259
+ clearButtonLabel
5260
+ );
5261
+ const handleFocus = (event) => {
5262
+ setIsInputFocused(true);
5263
+ onFocus == null ? void 0 : onFocus(event);
5264
+ };
5265
+ const handleBlur = (event) => {
5266
+ setIsInputFocused(false);
5267
+ onBlur == null ? void 0 : onBlur(event);
5268
+ };
5269
+ const handleClear = () => {
5270
+ onResetSearch == null ? void 0 : onResetSearch();
5271
+ onChange == null ? void 0 : onChange({ target: { value: "" } });
5272
+ };
5273
+ return /* @__PURE__ */ jsx(
5274
+ SearchFieldBase,
5275
+ {
5276
+ defaultValue,
5277
+ value: minimized ? "" : value,
5278
+ placeholder: minimized ? "" : placeholder,
5279
+ onChange,
5280
+ onClick,
5281
+ variant: "filled",
5282
+ emphasis: variant,
5283
+ size,
5284
+ focused: false,
5285
+ isInputFocused,
5286
+ disabled,
5287
+ minimized,
5288
+ InputProps: {
5289
+ onFocus: handleFocus,
5290
+ onBlur: handleBlur,
5291
+ startAdornment: /* @__PURE__ */ jsx(
5292
+ SearchFieldStartAdornment,
5293
+ {
5294
+ minimized,
5295
+ loading,
5296
+ disabled,
5297
+ startAdornment
5298
+ }
5299
+ ),
5300
+ endAdornment: !minimized && /* @__PURE__ */ jsx(
5301
+ SearchFieldEndAdornment,
5302
+ {
5303
+ disabled,
5304
+ loading,
5305
+ showClearButton: clearButtonVisibility,
5306
+ clearButton,
5307
+ clearButtonLabel: clearButtonLabelValue,
5308
+ onClear: handleClear,
5309
+ size,
5310
+ endAdornment
5311
+ }
5312
+ ),
5313
+ ...InputProps
5314
+ },
5315
+ inputProps: {
5316
+ role: "searchbox",
5317
+ ...inputProps
5318
+ },
5319
+ role: "search",
5320
+ "data-variant": variant,
5321
+ "data-name": "search-field",
5322
+ ref,
5323
+ ...otherProps
5324
+ }
5325
+ );
5326
+ }
5327
+ const SearchField = forwardRef(_SearchField);
5042
5328
  const MAX_WIDTH = 480;
5043
5329
  const SnackbarRoot = styled(Snackbar$1)(({ theme }) => ({
5044
5330
  bottom: theme.spacing(2),
@@ -5862,6 +6148,7 @@ export {
5862
6148
  MultipleSelectField,
5863
6149
  PasswordField,
5864
6150
  ScreenReaderOnly,
6151
+ SearchField,
5865
6152
  SelectField,
5866
6153
  Snackbar,
5867
6154
  SplitButton,
@@ -817,6 +817,7 @@ const en = {
817
817
  copy: "Copy",
818
818
  save: "Save",
819
819
  add: "Add",
820
+ clear: "Clear",
820
821
  showOptions: "Show options",
821
822
  hide: "Hide",
822
823
  show: "Show",
@@ -966,6 +967,7 @@ const es = {
966
967
  copy: "Copiar",
967
968
  save: "Guardar",
968
969
  add: "Añadir",
970
+ clear: "Borrar",
969
971
  showOptions: "Mostrar opciones",
970
972
  hide: "Ocultar",
971
973
  show: "Mostrar",
@@ -1113,6 +1115,7 @@ const id = {
1113
1115
  copy: "Salin",
1114
1116
  save: "Simpan",
1115
1117
  add: "Tambah",
1118
+ clear: "Bersihkan",
1116
1119
  showOptions: "Tampilkan opsi",
1117
1120
  hide: "Sembunyikan",
1118
1121
  show: "Tampilkan",
@@ -818,6 +818,7 @@ const en = {
818
818
  copy: "Copy",
819
819
  save: "Save",
820
820
  add: "Add",
821
+ clear: "Clear",
821
822
  showOptions: "Show options",
822
823
  hide: "Hide",
823
824
  show: "Show",
@@ -967,6 +968,7 @@ const es = {
967
968
  copy: "Copiar",
968
969
  save: "Guardar",
969
970
  add: "Añadir",
971
+ clear: "Borrar",
970
972
  showOptions: "Mostrar opciones",
971
973
  hide: "Ocultar",
972
974
  show: "Mostrar",
@@ -1114,6 +1116,7 @@ const id = {
1114
1116
  copy: "Salin",
1115
1117
  save: "Simpan",
1116
1118
  add: "Tambah",
1119
+ clear: "Bersihkan",
1117
1120
  showOptions: "Tampilkan opsi",
1118
1121
  hide: "Sembunyikan",
1119
1122
  show: "Tampilkan",
@@ -5,7 +5,8 @@ const React = require("react");
5
5
  const material = require("@mui/material");
6
6
  const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
7
7
  const OpenDiagonallyRight = require("../OpenDiagonallyRight-CpL4ROwg.cjs");
8
- const SwatchSquare = require("../SwatchSquare-B8PIY3Rd.cjs");
8
+ const Search = require("../Search-CMWbM9nD.cjs");
9
+ const SwatchSquare = require("../SwatchSquare-DuXPIL7t.cjs");
9
10
  const Icon$3h = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
10
11
  "path",
11
12
  {
@@ -6345,7 +6346,7 @@ exports.ArrowDown = ArrowDown.ArrowDown;
6345
6346
  exports.ArrowUp = OpenDiagonallyRight.ArrowUp;
6346
6347
  exports.CloseDiagonallyRight = OpenDiagonallyRight.CloseDiagonallyRight;
6347
6348
  exports.OpenDiagonallyRight = OpenDiagonallyRight.OpenDiagonallyRight;
6348
- exports.Search = SwatchSquare.Search;
6349
+ exports.Search = Search.Search;
6349
6350
  exports.SwatchSquare = SwatchSquare.SwatchSquare;
6350
6351
  exports.AccessIn = AccessIn$1;
6351
6352
  exports.AddApp = AddApp$1;
@@ -3,7 +3,8 @@ import { forwardRef } from "react";
3
3
  import { createSvgIcon } from "@mui/material";
4
4
  import { A } from "../ArrowDown-d6bxUL0F.js";
5
5
  import { A as A2, C, O } from "../OpenDiagonallyRight-CGdCEXlF.js";
6
- import { S, a } from "../SwatchSquare-CaaLsjAC.js";
6
+ import { S } from "../Search-C7wkXu3f.js";
7
+ import { S as S2 } from "../SwatchSquare-B6KYVoqV.js";
7
8
  const Icon$3h = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
8
9
  "path",
9
10
  {
@@ -6521,7 +6522,7 @@ export {
6521
6522
  SupplyChain$1 as SupplyChain,
6522
6523
  SwatchCircle$1 as SwatchCircle,
6523
6524
  SwatchCircleNone$1 as SwatchCircleNone,
6524
- a as SwatchSquare,
6525
+ S2 as SwatchSquare,
6525
6526
  TableColumn$1 as TableColumn,
6526
6527
  TableColumnLimited$1 as TableColumnLimited,
6527
6528
  TempTable$1 as TempTable,
@@ -4,11 +4,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const material = require("@mui/material");
5
5
  const paletteUtils = require("../palette-utils-B9ybmwiI.cjs");
6
6
  const jsxRuntime = require("react/jsx-runtime");
7
- const cssUtils = require("../css-utils-BNXxLCyb.cjs");
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-6ZIV5V7a.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": {
@@ -2994,6 +2997,14 @@ const surfacesOverrides = {
2994
2997
  }
2995
2998
  }
2996
2999
  };
3000
+ const layoutOverrides = {
3001
+ // Stack
3002
+ MuiStack: {
3003
+ defaultProps: {
3004
+ useFlexGap: true
3005
+ }
3006
+ }
3007
+ };
2997
3008
  const CssBaseline = {
2998
3009
  // Accessibility focus (keyboard only)
2999
3010
  "*:focus-visible": {
@@ -3169,7 +3180,8 @@ const cartoThemeOptions = {
3169
3180
  ...dataDisplayOverrides,
3170
3181
  ...feedbackOverrides,
3171
3182
  ...surfacesOverrides,
3172
- ...datePickersOverrides
3183
+ ...datePickersOverrides,
3184
+ ...layoutOverrides
3173
3185
  }
3174
3186
  };
3175
3187
  const theme = material.responsiveFontSizes(material.createTheme(cartoThemeOptions));
@@ -3,12 +3,12 @@ import { alpha, Tooltip, responsiveFontSizes, createTheme } from "@mui/material"
3
3
  import { c as commonPalette } from "../palette-utils-BHqJlHm9.js";
4
4
  import { g } from "../palette-utils-BHqJlHm9.js";
5
5
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
6
- import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, e as ellipsisStyles, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE, f as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../css-utils-lmkjeCdF.js";
7
- import { h, N } from "../css-utils-lmkjeCdF.js";
6
+ import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, e as ellipsisStyles, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE, f as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../css-utils-BHYA7By_.js";
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-DgHhHW-j.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": {
@@ -2994,6 +2997,14 @@ const surfacesOverrides = {
2994
2997
  }
2995
2998
  }
2996
2999
  };
3000
+ const layoutOverrides = {
3001
+ // Stack
3002
+ MuiStack: {
3003
+ defaultProps: {
3004
+ useFlexGap: true
3005
+ }
3006
+ }
3007
+ };
2997
3008
  const CssBaseline = {
2998
3009
  // Accessibility focus (keyboard only)
2999
3010
  "*:focus-visible": {
@@ -3169,7 +3180,8 @@ const cartoThemeOptions = {
3169
3180
  ...dataDisplayOverrides,
3170
3181
  ...feedbackOverrides,
3171
3182
  ...surfacesOverrides,
3172
- ...datePickersOverrides
3183
+ ...datePickersOverrides,
3184
+ ...layoutOverrides
3173
3185
  }
3174
3186
  };
3175
3187
  const theme = responsiveFontSizes(createTheme(cartoThemeOptions));
@@ -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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AED,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"}
@@ -0,0 +1,4 @@
1
+ import { SearchFieldProps } from './types';
2
+ declare const SearchField: import('react').ForwardRefExoticComponent<Omit<SearchFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
3
+ export default SearchField;
4
+ //# sourceMappingURL=SearchField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchField/SearchField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAmH1C,QAAA,MAAM,WAAW,0HAA2B,CAAA;AAC5C,eAAe,WAAW,CAAA"}