@carto/meridian-ds 2.6.2-alpha.0 → 2.7.0-alpha-loader.1

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 (62) hide show
  1. package/CHANGELOG.md +8 -3
  2. package/dist/{Alert-1A6BG2aO.js → Alert-BZPM5zpX.js} +1 -1
  3. package/dist/{Alert-eVzJvC47.cjs → Alert-C4W0H_uN.cjs} +1 -1
  4. package/dist/{MenuItem-6ZIV5V7a.cjs → MenuItem-CgF4QdGi.cjs} +12 -3
  5. package/dist/{MenuItem-DgHhHW-j.js → MenuItem-DRUK149i.js} +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 +352 -3
  11. package/dist/components/index.js +355 -6
  12. package/dist/{css-utils-BNXxLCyb.cjs → css-utils-CH7es90t.cjs} +18 -0
  13. package/dist/{css-utils-lmkjeCdF.js → css-utils-CjUBRJVK.js} +18 -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/Loader/Loader.d.ts +10 -0
  19. package/dist/types/components/Loader/Loader.d.ts.map +1 -0
  20. package/dist/types/components/Loader/Loader.stories.d.ts +54 -0
  21. package/dist/types/components/Loader/Loader.stories.d.ts.map +1 -0
  22. package/dist/types/components/Loader/Loader.test.d.ts +2 -0
  23. package/dist/types/components/Loader/Loader.test.d.ts.map +1 -0
  24. package/dist/types/components/Loader/index.d.ts +3 -0
  25. package/dist/types/components/Loader/index.d.ts.map +1 -0
  26. package/dist/types/components/Menu/Menu/Menu.stories.d.ts +16 -7
  27. package/dist/types/components/Menu/Menu/Menu.stories.d.ts.map +1 -1
  28. package/dist/types/components/Menu/MenuItem/MenuItem.d.ts.map +1 -1
  29. package/dist/types/components/SearchField/SearchField.d.ts +4 -0
  30. package/dist/types/components/SearchField/SearchField.d.ts.map +1 -0
  31. package/dist/types/components/SearchField/SearchField.stories.d.ts +111 -0
  32. package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -0
  33. package/dist/types/components/SearchField/SearchField.styled.d.ts +23 -0
  34. package/dist/types/components/SearchField/SearchField.styled.d.ts.map +1 -0
  35. package/dist/types/components/SearchField/SearchField.test.d.ts +2 -0
  36. package/dist/types/components/SearchField/SearchField.test.d.ts.map +1 -0
  37. package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts +19 -0
  38. package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts.map +1 -0
  39. package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts +14 -0
  40. package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts.map +1 -0
  41. package/dist/types/components/SearchField/index.d.ts +3 -0
  42. package/dist/types/components/SearchField/index.d.ts.map +1 -0
  43. package/dist/types/components/SearchField/types.d.ts +72 -0
  44. package/dist/types/components/SearchField/types.d.ts.map +1 -0
  45. package/dist/types/components/index.d.ts +4 -0
  46. package/dist/types/components/index.d.ts.map +1 -1
  47. package/dist/types/localization/en.d.ts +6 -0
  48. package/dist/types/localization/en.d.ts.map +1 -1
  49. package/dist/types/localization/es.d.ts +6 -0
  50. package/dist/types/localization/es.d.ts.map +1 -1
  51. package/dist/types/localization/id.d.ts +6 -0
  52. package/dist/types/localization/id.d.ts.map +1 -1
  53. package/dist/types/localization/index.d.ts +18 -0
  54. package/dist/types/localization/index.d.ts.map +1 -1
  55. package/dist/types/theme/carto-theme.d.ts.map +1 -1
  56. package/dist/types/theme/components/layout.d.ts +3 -0
  57. package/dist/types/theme/components/layout.d.ts.map +1 -0
  58. package/dist/types/theme/components/navigation.d.ts.map +1 -1
  59. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts +5 -5
  60. package/dist/widgets/index.cjs +8 -7
  61. package/dist/widgets/index.js +4 -3
  62. package/package.json +2 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - New Loader component [#329](https://github.com/CartoDB/meridian-ds/pull/329)
6
+
7
+ ## 2.0
8
+
9
+ ### 2.7.0
10
+
11
+ - New SearchField component [#308](https://github.com/CartoDB/meridian-ds/pull/308)
12
+ - Custom Icons: ApiAccessToken, ApiBaseUrl, AppCredentials, M2mOauthClient,SpaOauthClient, WorkflowApiEndpoint [#325](https://github.com/CartoDB/meridian-ds/pull/325)
5
13
  - Avatar: move size styles to the theme [#321](https://github.com/CartoDB/meridian-ds/pull/321)
6
14
  - Alert: move neutral styles to the theme [#320](https://github.com/CartoDB/meridian-ds/pull/320)
7
15
  - Handle empty buttonFooterLabelId in CodeAreaFooter [#323](https://github.com/CartoDB/meridian-ds/pull/323)
@@ -13,9 +21,6 @@
13
21
  - FilterDropdown: improve customization [#312](https://github.com/CartoDB/meridian-ds/pull/312)
14
22
  - CopiableComponent: improve customization [#311](https://github.com/CartoDB/meridian-ds/pull/311)
15
23
  - 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
-
18
- ## 2.0
19
24
 
20
25
  ### 2.6.1
21
26
 
@@ -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-lmkjeCdF.js";
6
+ import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography } from "./css-utils-CjUBRJVK.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-BNXxLCyb.cjs");
7
+ const cssUtils = require("./css-utils-CH7es90t.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-BNXxLCyb.cjs");
5
+ const cssUtils = require("./css-utils-CH7es90t.cjs");
6
6
  const StyledMenuItem = material.styled(material.MenuItem, {
7
7
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
8
8
  prop
@@ -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
  }
@@ -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-lmkjeCdF.js";
4
+ import { f as MENU_ITEM_SIZE_DENSE, h as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-CjUBRJVK.js";
5
5
  const StyledMenuItem = styled(MenuItem$1, {
6
6
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
7
7
  prop
@@ -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
  }
@@ -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;