@carto/meridian-ds 2.6.0 → 2.6.1-alpha-searchfield.4

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 (137) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{Alert-DHd9hCGz.js → Alert-1-pacqlp.js} +3 -13
  3. package/dist/{Alert-DOeOwxOe.cjs → Alert-N-6EugaP.cjs} +2 -12
  4. package/dist/{MenuItem-CYJN2OVU.cjs → MenuItem-BPvH70wa.cjs} +1 -1
  5. package/dist/{MenuItem-MUmADf3e.js → MenuItem-GpTpLidu.js} +1 -1
  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 +557 -169
  11. package/dist/components/index.js +557 -169
  12. package/dist/{css-utils-WejOmkiI.js → css-utils-BHYA7By_.js} +32 -13
  13. package/dist/{css-utils-CCi3p7os.cjs → css-utils-DjvM17Vb.cjs} +30 -11
  14. package/dist/custom-icons/index.cjs +643 -558
  15. package/dist/custom-icons/index.js +643 -558
  16. package/dist/theme/index.cjs +14 -4
  17. package/dist/theme/index.js +15 -5
  18. package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts +1 -0
  19. package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts.map +1 -1
  20. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts +1 -1
  21. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts.map +1 -1
  22. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts +1 -1
  23. package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts.map +1 -1
  24. package/dist/types/components/Autocomplete/CreatableAutocomplete/useCreatableAutocomplete.d.ts.map +1 -1
  25. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts +1 -1
  26. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts.map +1 -1
  27. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts +1 -1
  28. package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts.map +1 -1
  29. package/dist/types/components/Autocomplete/MultipleAutocomplete/useMultipleAutocomplete.d.ts.map +1 -1
  30. package/dist/types/components/Autocomplete/types.d.ts +13 -1
  31. package/dist/types/components/Autocomplete/types.d.ts.map +1 -1
  32. package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +7 -1
  33. package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -1
  34. package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts +5 -1
  35. package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts.map +1 -1
  36. package/dist/types/components/CodeArea/CodeAreaFooter/CodeAreaFooter.d.ts +3 -1
  37. package/dist/types/components/CodeArea/CodeAreaFooter/CodeAreaFooter.d.ts.map +1 -1
  38. package/dist/types/components/CodeArea/CodeAreaHeader/CodeAreaHeader.d.ts +5 -1
  39. package/dist/types/components/CodeArea/CodeAreaHeader/CodeAreaHeader.d.ts.map +1 -1
  40. package/dist/types/components/CopiableComponent/CopiableComponent.d.ts.map +1 -1
  41. package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts +3 -0
  42. package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts.map +1 -1
  43. package/dist/types/components/CopiableComponent/types.d.ts +8 -1
  44. package/dist/types/components/CopiableComponent/types.d.ts.map +1 -1
  45. package/dist/types/components/CopiableInputText/CopiableInputText.d.ts +9 -3
  46. package/dist/types/components/CopiableInputText/CopiableInputText.d.ts.map +1 -1
  47. package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts +28 -3
  48. package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts.map +1 -1
  49. package/dist/types/components/CopiableInputText/types.d.ts +4 -1
  50. package/dist/types/components/CopiableInputText/types.d.ts.map +1 -1
  51. package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts +48 -0
  52. package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts.map +1 -1
  53. package/dist/types/components/Dialog/DialogContent/DialogContent.d.ts.map +1 -1
  54. package/dist/types/components/Dialog/DialogContent/DialogContent.test.d.ts +2 -0
  55. package/dist/types/components/Dialog/DialogContent/DialogContent.test.d.ts.map +1 -0
  56. package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts +1 -1
  57. package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  58. package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts +14 -0
  59. package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts.map +1 -1
  60. package/dist/types/components/Dialog/types.d.ts +6 -0
  61. package/dist/types/components/Dialog/types.d.ts.map +1 -1
  62. package/dist/types/components/FilterDropdown/FilterDropdown.d.ts +1 -1
  63. package/dist/types/components/FilterDropdown/FilterDropdown.d.ts.map +1 -1
  64. package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts +48 -0
  65. package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts.map +1 -1
  66. package/dist/types/components/FilterDropdown/types.d.ts +8 -0
  67. package/dist/types/components/FilterDropdown/types.d.ts.map +1 -1
  68. package/dist/types/components/Menu/MenuItemFilter/MenuItemFilter.d.ts.map +1 -1
  69. package/dist/types/components/Menu/types.d.ts +1 -0
  70. package/dist/types/components/Menu/types.d.ts.map +1 -1
  71. package/dist/types/components/PasswordField/PasswordField.d.ts +10 -1
  72. package/dist/types/components/PasswordField/PasswordField.d.ts.map +1 -1
  73. package/dist/types/components/PasswordField/PasswordField.stories.d.ts +10 -1
  74. package/dist/types/components/PasswordField/PasswordField.stories.d.ts.map +1 -1
  75. package/dist/types/components/SearchField/SearchField.d.ts +4 -0
  76. package/dist/types/components/SearchField/SearchField.d.ts.map +1 -0
  77. package/dist/types/components/SearchField/SearchField.stories.d.ts +114 -0
  78. package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -0
  79. package/dist/types/components/SearchField/SearchField.styled.d.ts +23 -0
  80. package/dist/types/components/SearchField/SearchField.styled.d.ts.map +1 -0
  81. package/dist/types/components/SearchField/SearchField.test.d.ts +2 -0
  82. package/dist/types/components/SearchField/SearchField.test.d.ts.map +1 -0
  83. package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts +19 -0
  84. package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts.map +1 -0
  85. package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts +14 -0
  86. package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts.map +1 -0
  87. package/dist/types/components/SearchField/index.d.ts +3 -0
  88. package/dist/types/components/SearchField/index.d.ts.map +1 -0
  89. package/dist/types/components/SearchField/types.d.ts +72 -0
  90. package/dist/types/components/SearchField/types.d.ts.map +1 -0
  91. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
  92. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts +22 -2
  93. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts.map +1 -1
  94. package/dist/types/components/SelectField/types.d.ts +4 -0
  95. package/dist/types/components/SelectField/types.d.ts.map +1 -1
  96. package/dist/types/components/Snackbar/Snackbar.d.ts +2 -1
  97. package/dist/types/components/Snackbar/Snackbar.d.ts.map +1 -1
  98. package/dist/types/components/Snackbar/Snackbar.stories.d.ts +15 -0
  99. package/dist/types/components/Snackbar/Snackbar.stories.d.ts.map +1 -1
  100. package/dist/types/components/TablePaginationActions/TablePaginationActions.d.ts +3 -0
  101. package/dist/types/components/TablePaginationActions/TablePaginationActions.d.ts.map +1 -1
  102. package/dist/types/components/UploadField/useFileUpload.d.ts +4 -1
  103. package/dist/types/components/UploadField/useFileUpload.d.ts.map +1 -1
  104. package/dist/types/components/index.d.ts +2 -0
  105. package/dist/types/components/index.d.ts.map +1 -1
  106. package/dist/types/custom-icons/FoldersStackedOutlined.d.ts +4 -0
  107. package/dist/types/custom-icons/FoldersStackedOutlined.d.ts.map +1 -0
  108. package/dist/types/custom-icons/RedoAlt.d.ts +4 -0
  109. package/dist/types/custom-icons/RedoAlt.d.ts.map +1 -0
  110. package/dist/types/custom-icons/SelectFeature.d.ts.map +1 -1
  111. package/dist/types/custom-icons/UndoAlt.d.ts +4 -0
  112. package/dist/types/custom-icons/UndoAlt.d.ts.map +1 -0
  113. package/dist/types/custom-icons/index.d.ts +3 -0
  114. package/dist/types/custom-icons/index.d.ts.map +1 -1
  115. package/dist/types/localization/en.d.ts +1 -0
  116. package/dist/types/localization/en.d.ts.map +1 -1
  117. package/dist/types/localization/es.d.ts +1 -0
  118. package/dist/types/localization/es.d.ts.map +1 -1
  119. package/dist/types/localization/id.d.ts +1 -0
  120. package/dist/types/localization/id.d.ts.map +1 -1
  121. package/dist/types/localization/index.d.ts +3 -0
  122. package/dist/types/localization/index.d.ts.map +1 -1
  123. package/dist/types/theme/carto-theme.d.ts.map +1 -1
  124. package/dist/types/theme/components/layout.d.ts +3 -0
  125. package/dist/types/theme/components/layout.d.ts.map +1 -0
  126. package/dist/types/theme/components/navigation.d.ts.map +1 -1
  127. package/dist/types/utils/useTranslationWithFallback.d.ts +39 -0
  128. package/dist/types/utils/useTranslationWithFallback.d.ts.map +1 -0
  129. package/dist/types/utils/useTranslationWithFallback.test.d.ts +2 -0
  130. package/dist/types/utils/useTranslationWithFallback.test.d.ts.map +1 -0
  131. package/dist/widgets/index.cjs +8 -7
  132. package/dist/widgets/index.js +4 -3
  133. package/package.json +1 -1
  134. package/dist/types/utils/useTranslationFallback.d.ts +0 -20
  135. package/dist/types/utils/useTranslationFallback.d.ts.map +0 -1
  136. package/dist/types/utils/useTranslationFallback.test.d.ts +0 -2
  137. package/dist/types/utils/useTranslationFallback.test.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,8 +2,21 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - New SearchField component [#308](https://github.com/CartoDB/meridian-ds/pull/308)
6
+ - Dialog: add a property to override content gap [#322](https://github.com/CartoDB/meridian-ds/pull/322)
7
+ - Improve translations handling in Meridian (part 4) [#309](https://github.com/CartoDB/meridian-ds/pull/309)
8
+ - Improve translations handling in Meridian (part 2) [#305](https://github.com/CartoDB/meridian-ds/pull/305)
9
+ - Improve translations handling in Meridian (part 1) [#304](https://github.com/CartoDB/meridian-ds/pull/304)
10
+ - FilterDropdown: improve customization [#312](https://github.com/CartoDB/meridian-ds/pull/312)
11
+ - CopiableComponent: improve customization [#311](https://github.com/CartoDB/meridian-ds/pull/311)
12
+
5
13
  ## 2.0
6
14
 
15
+ ### 2.6.1
16
+
17
+ - Custom Icons: FoldersStackedOutlined,RedoAlt,UndoAlt [#317](https://github.com/CartoDB/meridian-ds/pull/317)
18
+ - Tabs: remove box-shadow in vertical mode[#302](https://github.com/CartoDB/meridian-ds/pull/302)
19
+
7
20
  ### 2.6.0
8
21
 
9
22
  - New EllipsisWithTooltip component [#299](https://github.com/CartoDB/meridian-ds/pull/299)
@@ -3,8 +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 { u as useImperativeIntl, c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, T as Typography } from "./css-utils-WejOmkiI.js";
7
- import { useIntl } from "react-intl";
6
+ import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography } from "./css-utils-BHYA7By_.js";
8
7
  const ScreenReaderOnly = styled("span")(() => ({
9
8
  position: "absolute",
10
9
  width: 1,
@@ -16,14 +15,6 @@ const ScreenReaderOnly = styled("span")(() => ({
16
15
  whiteSpace: "nowrap",
17
16
  border: 0
18
17
  }));
19
- function useTranslationFallback(translationKey, customText) {
20
- const intl = useIntl();
21
- const intlConfig = useImperativeIntl(intl);
22
- if (customText !== void 0 && customText !== null) {
23
- return customText;
24
- }
25
- return intlConfig.formatMessage({ id: translationKey });
26
- }
27
18
  const StyledLink = styled(Link$1)(() => ({
28
19
  display: "inline-block"
29
20
  }));
@@ -82,7 +73,7 @@ function _Link({
82
73
  "aria-describedby": ariaDescribedby,
83
74
  ...otherProps
84
75
  }, ref) {
85
- const screenReaderTextValue = useTranslationFallback(
76
+ const screenReaderTextValue = useTranslationWithFallback(
86
77
  "c4r.button.opensInNewTab",
87
78
  screenReaderText
88
79
  );
@@ -241,6 +232,5 @@ const Alert = forwardRef(_Alert);
241
232
  export {
242
233
  Alert as A,
243
234
  Link as L,
244
- ScreenReaderOnly as S,
245
- useTranslationFallback as u
235
+ ScreenReaderOnly as S
246
236
  };
@@ -4,8 +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-CCi3p7os.cjs");
8
- const reactIntl = require("react-intl");
7
+ const cssUtils = require("./css-utils-DjvM17Vb.cjs");
9
8
  const ScreenReaderOnly = material.styled("span")(() => ({
10
9
  position: "absolute",
11
10
  width: 1,
@@ -17,14 +16,6 @@ const ScreenReaderOnly = material.styled("span")(() => ({
17
16
  whiteSpace: "nowrap",
18
17
  border: 0
19
18
  }));
20
- function useTranslationFallback(translationKey, customText) {
21
- const intl = reactIntl.useIntl();
22
- const intlConfig = cssUtils.useImperativeIntl(intl);
23
- if (customText !== void 0 && customText !== null) {
24
- return customText;
25
- }
26
- return intlConfig.formatMessage({ id: translationKey });
27
- }
28
19
  const StyledLink = material.styled(material.Link)(() => ({
29
20
  display: "inline-block"
30
21
  }));
@@ -83,7 +74,7 @@ function _Link({
83
74
  "aria-describedby": ariaDescribedby,
84
75
  ...otherProps
85
76
  }, ref) {
86
- const screenReaderTextValue = useTranslationFallback(
77
+ const screenReaderTextValue = cssUtils.useTranslationWithFallback(
87
78
  "c4r.button.opensInNewTab",
88
79
  screenReaderText
89
80
  );
@@ -242,4 +233,3 @@ const Alert = React.forwardRef(_Alert);
242
233
  exports.Alert = Alert;
243
234
  exports.Link = Link;
244
235
  exports.ScreenReaderOnly = ScreenReaderOnly;
245
- exports.useTranslationFallback = useTranslationFallback;
@@ -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-CCi3p7os.cjs");
5
+ const cssUtils = require("./css-utils-DjvM17Vb.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-WejOmkiI.js";
4
+ import { f as MENU_ITEM_SIZE_DENSE, h as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-BHYA7By_.js";
5
5
  const StyledMenuItem = styled(MenuItem$1, {
6
6
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
7
7
  prop
@@ -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$1 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
4
+ const Icon = () => /* @__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,26 +10,8 @@ const Icon$1 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000
10
10
  clipRule: "evenodd"
11
11
  }
12
12
  ) });
13
- const BaseSvgIcon$1 = createSvgIcon(Icon$1(), "Search");
13
+ const BaseSvgIcon = createSvgIcon(Icon(), "Search");
14
14
  function Search({ width, height, sx, ...props }, ref) {
15
- return /* @__PURE__ */ jsx(
16
- BaseSvgIcon$1,
17
- {
18
- ref,
19
- viewBox: "0 0 24 24",
20
- sx: {
21
- width,
22
- height: height || width,
23
- ...sx
24
- },
25
- ...props
26
- }
27
- );
28
- }
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
15
  return /* @__PURE__ */ jsx(
34
16
  BaseSvgIcon,
35
17
  {
@@ -44,8 +26,7 @@ function SwatchSquare({ width, height, sx, ...props }, ref) {
44
26
  }
45
27
  );
46
28
  }
47
- const SwatchSquare$1 = forwardRef(SwatchSquare);
29
+ const Search$1 = forwardRef(Search);
48
30
  export {
49
- Search$1 as S,
50
- SwatchSquare$1 as a
31
+ Search$1 as S
51
32
  };
@@ -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$1 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
5
+ const Icon = () => /* @__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,26 +11,8 @@ const Icon$1 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.
11
11
  clipRule: "evenodd"
12
12
  }
13
13
  ) });
14
- const BaseSvgIcon$1 = material.createSvgIcon(Icon$1(), "Search");
14
+ const BaseSvgIcon = material.createSvgIcon(Icon(), "Search");
15
15
  function Search({ width, height, sx, ...props }, ref) {
16
- return /* @__PURE__ */ jsxRuntime.jsx(
17
- BaseSvgIcon$1,
18
- {
19
- ref,
20
- viewBox: "0 0 24 24",
21
- sx: {
22
- width,
23
- height: height || width,
24
- ...sx
25
- },
26
- ...props
27
- }
28
- );
29
- }
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
16
  return /* @__PURE__ */ jsxRuntime.jsx(
35
17
  BaseSvgIcon,
36
18
  {
@@ -45,6 +27,5 @@ function SwatchSquare({ width, height, sx, ...props }, ref) {
45
27
  }
46
28
  );
47
29
  }
48
- const SwatchSquare$1 = React.forwardRef(SwatchSquare);
30
+ const Search$1 = React.forwardRef(Search);
49
31
  exports.Search = Search$1;
50
- exports.SwatchSquare = SwatchSquare$1;
@@ -0,0 +1,24 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { createSvgIcon } from "@mui/material";
4
+ 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 }) });
5
+ const BaseSvgIcon = createSvgIcon(Icon(), "SwatchSquare");
6
+ function SwatchSquare({ width, height, sx, ...props }, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ BaseSvgIcon,
9
+ {
10
+ ref,
11
+ viewBox: "0 0 24 24",
12
+ sx: {
13
+ width,
14
+ height: height || width,
15
+ ...sx
16
+ },
17
+ ...props
18
+ }
19
+ );
20
+ }
21
+ const SwatchSquare$1 = forwardRef(SwatchSquare);
22
+ export {
23
+ SwatchSquare$1 as S
24
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const React = require("react");
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("rect", { width: 16, height: 16, x: 4, y: 4, fill: "currentColor", rx: 2 }) });
6
+ const BaseSvgIcon = material.createSvgIcon(Icon(), "SwatchSquare");
7
+ function SwatchSquare({ width, height, sx, ...props }, ref) {
8
+ return /* @__PURE__ */ jsxRuntime.jsx(
9
+ BaseSvgIcon,
10
+ {
11
+ ref,
12
+ viewBox: "0 0 24 24",
13
+ sx: {
14
+ width,
15
+ height: height || width,
16
+ ...sx
17
+ },
18
+ ...props
19
+ }
20
+ );
21
+ }
22
+ const SwatchSquare$1 = React.forwardRef(SwatchSquare);
23
+ exports.SwatchSquare = SwatchSquare$1;