@carto/meridian-ds 2.6.1-alpha-searchfield.6 → 2.6.2-alpha.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 (63) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/{Alert-BfDnWlbD.js → Alert-1A6BG2aO.js} +1 -1
  3. package/dist/{Alert-CPvYAHO_.cjs → Alert-eVzJvC47.cjs} +1 -1
  4. package/dist/{MenuItem-BPvH70wa.cjs → MenuItem-6ZIV5V7a.cjs} +1 -1
  5. package/dist/{MenuItem-GpTpLidu.js → MenuItem-DgHhHW-j.js} +1 -1
  6. package/dist/{Search-CMWbM9nD.cjs → SwatchSquare-B8PIY3Rd.cjs} +22 -3
  7. package/dist/{Search-C7wkXu3f.js → SwatchSquare-CaaLsjAC.js} +23 -4
  8. package/dist/components/index.cjs +3 -278
  9. package/dist/components/index.js +6 -281
  10. package/dist/{css-utils-DjvM17Vb.cjs → css-utils-BNXxLCyb.cjs} +0 -3
  11. package/dist/{css-utils-BHYA7By_.js → css-utils-lmkjeCdF.js} +0 -3
  12. package/dist/custom-icons/index.cjs +773 -612
  13. package/dist/custom-icons/index.js +773 -612
  14. package/dist/theme/index.cjs +3 -12
  15. package/dist/theme/index.js +4 -13
  16. package/dist/types/components/index.d.ts +0 -2
  17. package/dist/types/components/index.d.ts.map +1 -1
  18. package/dist/types/custom-icons/ApiAccessToken.d.ts +4 -0
  19. package/dist/types/custom-icons/ApiAccessToken.d.ts.map +1 -0
  20. package/dist/types/custom-icons/ApiBaseUrl.d.ts +4 -0
  21. package/dist/types/custom-icons/ApiBaseUrl.d.ts.map +1 -0
  22. package/dist/types/custom-icons/AppCredentials.d.ts +4 -0
  23. package/dist/types/custom-icons/AppCredentials.d.ts.map +1 -0
  24. package/dist/types/custom-icons/M2mOauthClient.d.ts +4 -0
  25. package/dist/types/custom-icons/M2mOauthClient.d.ts.map +1 -0
  26. package/dist/types/custom-icons/SpaOauthClient.d.ts +4 -0
  27. package/dist/types/custom-icons/SpaOauthClient.d.ts.map +1 -0
  28. package/dist/types/custom-icons/WorkflowApiEndpoint.d.ts +4 -0
  29. package/dist/types/custom-icons/WorkflowApiEndpoint.d.ts.map +1 -0
  30. package/dist/types/custom-icons/index.d.ts +6 -0
  31. package/dist/types/custom-icons/index.d.ts.map +1 -1
  32. package/dist/types/localization/en.d.ts +0 -1
  33. package/dist/types/localization/en.d.ts.map +1 -1
  34. package/dist/types/localization/es.d.ts +0 -1
  35. package/dist/types/localization/es.d.ts.map +1 -1
  36. package/dist/types/localization/id.d.ts +0 -1
  37. package/dist/types/localization/id.d.ts.map +1 -1
  38. package/dist/types/localization/index.d.ts +0 -3
  39. package/dist/types/localization/index.d.ts.map +1 -1
  40. package/dist/types/theme/carto-theme.d.ts.map +1 -1
  41. package/dist/widgets/index.cjs +7 -8
  42. package/dist/widgets/index.js +3 -4
  43. package/package.json +3 -2
  44. package/dist/SwatchSquare-B6KYVoqV.js +0 -24
  45. package/dist/SwatchSquare-DuXPIL7t.cjs +0 -23
  46. package/dist/types/components/SearchField/SearchField.d.ts +0 -4
  47. package/dist/types/components/SearchField/SearchField.d.ts.map +0 -1
  48. package/dist/types/components/SearchField/SearchField.stories.d.ts +0 -111
  49. package/dist/types/components/SearchField/SearchField.stories.d.ts.map +0 -1
  50. package/dist/types/components/SearchField/SearchField.styled.d.ts +0 -23
  51. package/dist/types/components/SearchField/SearchField.styled.d.ts.map +0 -1
  52. package/dist/types/components/SearchField/SearchField.test.d.ts +0 -2
  53. package/dist/types/components/SearchField/SearchField.test.d.ts.map +0 -1
  54. package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts +0 -19
  55. package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts.map +0 -1
  56. package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts +0 -14
  57. package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts.map +0 -1
  58. package/dist/types/components/SearchField/index.d.ts +0 -3
  59. package/dist/types/components/SearchField/index.d.ts.map +0 -1
  60. package/dist/types/components/SearchField/types.d.ts +0 -72
  61. package/dist/types/components/SearchField/types.d.ts.map +0 -1
  62. package/dist/types/theme/components/layout.d.ts +0 -3
  63. package/dist/types/theme/components/layout.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- - New SearchField component [#308](https://github.com/CartoDB/meridian-ds/pull/308)
6
5
  - Avatar: move size styles to the theme [#321](https://github.com/CartoDB/meridian-ds/pull/321)
7
6
  - Alert: move neutral styles to the theme [#320](https://github.com/CartoDB/meridian-ds/pull/320)
8
7
  - Handle empty buttonFooterLabelId in CodeAreaFooter [#323](https://github.com/CartoDB/meridian-ds/pull/323)
@@ -14,6 +13,7 @@
14
13
  - FilterDropdown: improve customization [#312](https://github.com/CartoDB/meridian-ds/pull/312)
15
14
  - CopiableComponent: improve customization [#311](https://github.com/CartoDB/meridian-ds/pull/311)
16
15
  - AppBar: disallow user selection of text [#324](https://github.com/CartoDB/meridian-ds/pull/324)
16
+ - Custom Icons: ApiAccessToken, ApiBaseUrl, AppCredentials, M2mOauthClient,SpaOauthClient, WorkflowApiEndpoint [#325](https://github.com/CartoDB/meridian-ds/pull/325)
17
17
 
18
18
  ## 2.0
19
19
 
@@ -3,7 +3,7 @@ import { forwardRef, useState } from "react";
3
3
  import { styled, Link as Link$1, Alert as Alert$1, Fade, AlertTitle } from "@mui/material";
4
4
  import { OpenInNewOutlined } from "@mui/icons-material";
5
5
  import "cartocolor";
6
- import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography } from "./css-utils-BHYA7By_.js";
6
+ import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography } from "./css-utils-lmkjeCdF.js";
7
7
  const ScreenReaderOnly = styled("span")(() => ({
8
8
  position: "absolute",
9
9
  width: 1,
@@ -4,7 +4,7 @@ const React = require("react");
4
4
  const material = require("@mui/material");
5
5
  const iconsMaterial = require("@mui/icons-material");
6
6
  require("cartocolor");
7
- const cssUtils = require("./css-utils-DjvM17Vb.cjs");
7
+ const cssUtils = require("./css-utils-BNXxLCyb.cjs");
8
8
  const ScreenReaderOnly = material.styled("span")(() => ({
9
9
  position: "absolute",
10
10
  width: 1,
@@ -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 cssUtils = require("./css-utils-DjvM17Vb.cjs");
5
+ const cssUtils = require("./css-utils-BNXxLCyb.cjs");
6
6
  const StyledMenuItem = material.styled(material.MenuItem, {
7
7
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
8
8
  prop
@@ -1,7 +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 { f as MENU_ITEM_SIZE_DENSE, h as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-BHYA7By_.js";
4
+ import { f as MENU_ITEM_SIZE_DENSE, h as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-lmkjeCdF.js";
5
5
  const StyledMenuItem = styled(MenuItem$1, {
6
6
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
7
7
  prop
@@ -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 Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
5
+ const Icon$1 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
6
6
  "path",
7
7
  {
8
8
  fill: "currentColor",
@@ -11,10 +11,10 @@ const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3
11
11
  clipRule: "evenodd"
12
12
  }
13
13
  ) });
14
- const BaseSvgIcon = material.createSvgIcon(Icon(), "Search");
14
+ const BaseSvgIcon$1 = material.createSvgIcon(Icon$1(), "Search");
15
15
  function Search({ width, height, sx, ...props }, ref) {
16
16
  return /* @__PURE__ */ jsxRuntime.jsx(
17
- BaseSvgIcon,
17
+ BaseSvgIcon$1,
18
18
  {
19
19
  ref,
20
20
  viewBox: "0 0 24 24",
@@ -28,4 +28,23 @@ function Search({ width, height, sx, ...props }, ref) {
28
28
  );
29
29
  }
30
30
  const Search$1 = React.forwardRef(Search);
31
+ const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: 16, height: 16, x: 4, y: 4, fill: "currentColor", rx: 2 }) });
32
+ const BaseSvgIcon = material.createSvgIcon(Icon(), "SwatchSquare");
33
+ function SwatchSquare({ width, height, sx, ...props }, ref) {
34
+ return /* @__PURE__ */ jsxRuntime.jsx(
35
+ BaseSvgIcon,
36
+ {
37
+ ref,
38
+ viewBox: "0 0 24 24",
39
+ sx: {
40
+ width,
41
+ height: height || width,
42
+ ...sx
43
+ },
44
+ ...props
45
+ }
46
+ );
47
+ }
48
+ const SwatchSquare$1 = React.forwardRef(SwatchSquare);
31
49
  exports.Search = Search$1;
50
+ exports.SwatchSquare = SwatchSquare$1;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { createSvgIcon } from "@mui/material";
4
- const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
4
+ const Icon$1 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
5
5
  "path",
6
6
  {
7
7
  fill: "currentColor",
@@ -10,10 +10,10 @@ const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/s
10
10
  clipRule: "evenodd"
11
11
  }
12
12
  ) });
13
- const BaseSvgIcon = createSvgIcon(Icon(), "Search");
13
+ const BaseSvgIcon$1 = createSvgIcon(Icon$1(), "Search");
14
14
  function Search({ width, height, sx, ...props }, ref) {
15
15
  return /* @__PURE__ */ jsx(
16
- BaseSvgIcon,
16
+ BaseSvgIcon$1,
17
17
  {
18
18
  ref,
19
19
  viewBox: "0 0 24 24",
@@ -27,6 +27,25 @@ function Search({ width, height, sx, ...props }, ref) {
27
27
  );
28
28
  }
29
29
  const Search$1 = forwardRef(Search);
30
+ const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx("rect", { width: 16, height: 16, x: 4, y: 4, fill: "currentColor", rx: 2 }) });
31
+ const BaseSvgIcon = createSvgIcon(Icon(), "SwatchSquare");
32
+ function SwatchSquare({ width, height, sx, ...props }, ref) {
33
+ return /* @__PURE__ */ jsx(
34
+ BaseSvgIcon,
35
+ {
36
+ ref,
37
+ viewBox: "0 0 24 24",
38
+ sx: {
39
+ width,
40
+ height: height || width,
41
+ ...sx
42
+ },
43
+ ...props
44
+ }
45
+ );
46
+ }
47
+ const SwatchSquare$1 = forwardRef(SwatchSquare);
30
48
  export {
31
- Search$1 as S
49
+ Search$1 as S,
50
+ SwatchSquare$1 as a
32
51
  };
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const material = require("@mui/material");
6
6
  const iconsMaterial = require("@mui/icons-material");
7
- const cssUtils = require("../css-utils-DjvM17Vb.cjs");
8
- const Alert$1 = require("../Alert-CPvYAHO_.cjs");
7
+ const cssUtils = require("../css-utils-BNXxLCyb.cjs");
8
+ const Alert$1 = require("../Alert-eVzJvC47.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-6ZIV5V7a.cjs");
12
12
  require("cartocolor");
13
13
  const reactWindow = require("react-window");
14
14
  const reactCodemirror2 = require("react-codemirror2");
@@ -41,7 +41,6 @@ const reactIntl = require("react-intl");
41
41
  const xDatePickers = require("@mui/x-date-pickers");
42
42
  const TimePicker$1 = require("@mui/x-date-pickers/TimePicker");
43
43
  const DateTimePicker$1 = require("@mui/x-date-pickers/DateTimePicker");
44
- const Search = require("../Search-CMWbM9nD.cjs");
45
44
  const DOMPurify = require("dompurify");
46
45
  const IndicatorIcon = material.styled(material.Box)({
47
46
  position: "absolute",
@@ -5040,279 +5039,6 @@ function _FilterDropdown({
5040
5039
  const FilterDropdown = React.forwardRef(
5041
5040
  _FilterDropdown
5042
5041
  );
5043
- const SearchIcon = material.styled(Search.Search, {
5044
- shouldForwardProp: (prop) => prop !== "minimized" && prop !== "disabled"
5045
- })(
5046
- ({ theme, minimized, disabled }) => ({
5047
- cursor: !disabled && minimized ? "pointer" : "inherit",
5048
- width: cssUtils.ICON_SIZE_MEDIUM,
5049
- height: cssUtils.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 = material.styled(iconsMaterial.Cancel)(({ theme }) => ({
5057
- color: `${theme.palette.text.hint} !important`
5058
- }));
5059
- const LoadingSearchIcon = material.styled(material.CircularProgress)(({ theme }) => ({
5060
- svg: {
5061
- color: `${theme.palette.primary.main} !important`
5062
- }
5063
- }));
5064
- const SearchInputAdornment = material.styled(material.InputAdornment, {
5065
- shouldForwardProp: (prop) => prop !== "minimized" && prop !== "expanded"
5066
- })(
5067
- ({ theme, minimized, expanded }) => ({
5068
- // Start adornment
5069
- "&.MuiInputAdornment-positionStart": {
5070
- marginLeft: minimized ? theme.spacing(1) : void 0
5071
- },
5072
- // End adornment
5073
- "&.MuiInputAdornment-positionEnd": {
5074
- minWidth: theme.spacing(4),
5075
- "&.MuiInputAdornment-sizeSmall": {
5076
- minWidth: theme.spacing(3)
5077
- }
5078
- },
5079
- ...expanded && !minimized && {
5080
- "&.MuiInputAdornment-root": {
5081
- minWidth: theme.spacing(9),
5082
- "&.MuiInputAdornment-sizeSmall": {
5083
- minWidth: theme.spacing(7)
5084
- }
5085
- }
5086
- }
5087
- })
5088
- );
5089
- const SearchFieldBase = material.styled(material.TextField, {
5090
- shouldForwardProp: (prop) => prop !== "minimized" && prop !== "isInputFocused" && prop !== "emphasis"
5091
- })(({ theme, emphasis = "filled", minimized, isInputFocused }) => ({
5092
- "&.MuiTextField-root .MuiInputBase-root": {
5093
- paddingRight: theme.spacing(1),
5094
- transition: theme.transitions.create("width", {
5095
- easing: theme.transitions.easing.easeInOut,
5096
- duration: theme.transitions.duration.shortest
5097
- }),
5098
- "&.MuiInputBase-sizeSmall": {
5099
- paddingRight: theme.spacing(0.5)
5100
- },
5101
- "&:before": {
5102
- border: "none !important",
5103
- "&:hover": {
5104
- border: "none !important"
5105
- }
5106
- },
5107
- // Input
5108
- "& .MuiInputBase-input": {
5109
- pointerEvents: isInputFocused ? "auto" : "none"
5110
- // Fix Chrome scroll issue https://issues.chromium.org/issues/41245282
5111
- },
5112
- // Error state
5113
- "&.Mui-error": {
5114
- "&::after": {
5115
- borderColor: "transparent !important"
5116
- }
5117
- },
5118
- ...minimized && {
5119
- display: "flex",
5120
- alignItems: "center",
5121
- justifyContent: "center",
5122
- padding: 0,
5123
- width: theme.spacing(6),
5124
- cursor: "pointer",
5125
- "& .MuiInputBase-input": {
5126
- display: "none"
5127
- },
5128
- "&.MuiInputBase-sizeSmall": {
5129
- width: theme.spacing(4)
5130
- }
5131
- }
5132
- },
5133
- // Variants
5134
- ...emphasis === "filled" && {
5135
- "& .MuiInputBase-root": {
5136
- // not disabled
5137
- "&:not(.Mui-disabled):hover": {
5138
- backgroundColor: `${theme.palette.action.hover} !important`
5139
- }
5140
- }
5141
- },
5142
- ...emphasis === "transparent" && {
5143
- "& .MuiInputBase-root": {
5144
- backgroundColor: "transparent !important",
5145
- "&:hover": {
5146
- backgroundColor: minimized ? `${theme.palette.action.hover} !important` : "transparent !important"
5147
- },
5148
- "&.Mui-disabled": {
5149
- backgroundColor: "transparent !important"
5150
- }
5151
- }
5152
- },
5153
- ...emphasis === "floating" && {
5154
- "& .MuiInputBase-root": {
5155
- backgroundColor: `${theme.palette.background.paper} !important`,
5156
- boxShadow: theme.shadows[1],
5157
- "&:hover": {
5158
- backgroundColor: minimized ? `${theme.palette.action.hover} !important` : `${theme.palette.background.paper} !important`
5159
- },
5160
- "&.Mui-disabled": {
5161
- backgroundColor: `${theme.palette.background.paper} !important`
5162
- }
5163
- }
5164
- }
5165
- }));
5166
- const SearchFieldEndAdornment = ({
5167
- disabled,
5168
- showClearButton = true,
5169
- loading,
5170
- size,
5171
- endAdornment,
5172
- clearButton,
5173
- clearButtonLabel,
5174
- onClear
5175
- }) => {
5176
- if (!showClearButton && !endAdornment && !loading) {
5177
- return null;
5178
- }
5179
- return /* @__PURE__ */ jsxRuntime.jsx(
5180
- SearchInputAdornment,
5181
- {
5182
- position: "end",
5183
- expanded: Boolean(endAdornment && showClearButton),
5184
- children: /* @__PURE__ */ jsxRuntime.jsxs(
5185
- material.Stack,
5186
- {
5187
- direction: "row",
5188
- spacing: 1,
5189
- sx: {
5190
- alignItems: "center"
5191
- },
5192
- children: [
5193
- loading ? /* @__PURE__ */ jsxRuntime.jsx(LoadingSearchIcon, { size: cssUtils.ICON_SIZE_MEDIUM }) : showClearButton ? clearButton ?? /* @__PURE__ */ jsxRuntime.jsx(
5194
- cssUtils.IconButton,
5195
- {
5196
- onClick: onClear,
5197
- size,
5198
- color: "default",
5199
- disabled,
5200
- tooltip: clearButtonLabel,
5201
- "aria-label": clearButtonLabel,
5202
- icon: /* @__PURE__ */ jsxRuntime.jsx(ClearSearchIcon, {})
5203
- }
5204
- ) : null,
5205
- endAdornment
5206
- ]
5207
- }
5208
- )
5209
- }
5210
- );
5211
- };
5212
- const SearchFieldStartAdornment = ({
5213
- minimized,
5214
- loading,
5215
- startAdornment,
5216
- disabled
5217
- }) => {
5218
- return /* @__PURE__ */ jsxRuntime.jsx(SearchInputAdornment, { position: "start", minimized, children: loading && minimized ? /* @__PURE__ */ jsxRuntime.jsx(LoadingSearchIcon, { size: cssUtils.ICON_SIZE_MEDIUM }) : startAdornment || /* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { disabled, minimized }) });
5219
- };
5220
- function _SearchField({
5221
- value,
5222
- defaultValue,
5223
- placeholder,
5224
- disabled,
5225
- minimized = false,
5226
- loading = false,
5227
- variant = "filled",
5228
- size = "small",
5229
- InputProps,
5230
- inputProps,
5231
- startAdornment,
5232
- endAdornment,
5233
- onFocus,
5234
- onBlur,
5235
- onChange,
5236
- onClick,
5237
- onResetSearch,
5238
- showClearButton = true,
5239
- clearButtonLabel,
5240
- clearButton,
5241
- ...otherProps
5242
- }, ref) {
5243
- const [isInputFocused, setIsInputFocused] = React.useState(false);
5244
- const clearButtonVisibility = !disabled && Boolean(value ?? defaultValue) && showClearButton;
5245
- const clearButtonLabelValue = cssUtils.useTranslationWithFallback(
5246
- "c4r.button.clear",
5247
- clearButtonLabel
5248
- );
5249
- const handleFocus = (event) => {
5250
- setIsInputFocused(true);
5251
- onFocus == null ? void 0 : onFocus(event);
5252
- };
5253
- const handleBlur = (event) => {
5254
- setIsInputFocused(false);
5255
- onBlur == null ? void 0 : onBlur(event);
5256
- };
5257
- const handleClear = () => {
5258
- onResetSearch == null ? void 0 : onResetSearch();
5259
- onChange == null ? void 0 : onChange({ target: { value: "" } });
5260
- };
5261
- return /* @__PURE__ */ jsxRuntime.jsx(
5262
- SearchFieldBase,
5263
- {
5264
- value: minimized ? "" : value,
5265
- defaultValue,
5266
- placeholder: minimized ? "" : placeholder,
5267
- onChange,
5268
- onClick,
5269
- variant: "filled",
5270
- emphasis: variant,
5271
- size,
5272
- focused: false,
5273
- isInputFocused,
5274
- disabled,
5275
- minimized,
5276
- InputProps: {
5277
- onFocus: handleFocus,
5278
- onBlur: handleBlur,
5279
- startAdornment: /* @__PURE__ */ jsxRuntime.jsx(
5280
- SearchFieldStartAdornment,
5281
- {
5282
- minimized,
5283
- loading,
5284
- disabled,
5285
- startAdornment
5286
- }
5287
- ),
5288
- endAdornment: !minimized && /* @__PURE__ */ jsxRuntime.jsx(
5289
- SearchFieldEndAdornment,
5290
- {
5291
- disabled,
5292
- loading,
5293
- showClearButton: clearButtonVisibility,
5294
- clearButton,
5295
- clearButtonLabel: clearButtonLabelValue,
5296
- onClear: handleClear,
5297
- size,
5298
- endAdornment
5299
- }
5300
- ),
5301
- ...InputProps
5302
- },
5303
- inputProps: {
5304
- role: "searchbox",
5305
- ...inputProps
5306
- },
5307
- role: "search",
5308
- "data-variant": variant,
5309
- "data-name": "search-field",
5310
- ref,
5311
- ...otherProps
5312
- }
5313
- );
5314
- }
5315
- const SearchField = React.forwardRef(_SearchField);
5316
5042
  const MAX_WIDTH = 480;
5317
5043
  const SnackbarRoot = material.styled(material.Snackbar)(({ theme }) => ({
5318
5044
  bottom: theme.spacing(2),
@@ -6137,7 +5863,6 @@ exports.MenuList = MenuList;
6137
5863
  exports.MultipleAutocomplete = MultipleAutocomplete;
6138
5864
  exports.MultipleSelectField = MultipleSelectField;
6139
5865
  exports.PasswordField = PasswordField;
6140
- exports.SearchField = SearchField;
6141
5866
  exports.SelectField = SelectField;
6142
5867
  exports.Snackbar = Snackbar;
6143
5868
  exports.SplitButton = SplitButton;