@carto/meridian-ds 1.5.1 → 2.0.0-alpha-external-link.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{Alert-BiOR9aar.cjs → Alert-C-rl1sPM.cjs} +97 -1
  3. package/dist/{Alert-CywtIMOj.js → Alert-DmbdMf46.js} +99 -3
  4. package/dist/{ArrowDown-8fLj23Ge.cjs → ArrowDown-DJ0vhbsw.cjs} +2 -2
  5. package/dist/{ArrowDown-CY_wMVJT.js → ArrowDown-d6bxUL0F.js} +1 -1
  6. package/dist/{MenuItem-CXnnE5lK.js → MenuItem-C8x-GasJ.js} +10 -6
  7. package/dist/{MenuItem-Br2jY2lt.cjs → MenuItem-CyIdh2wX.cjs} +10 -6
  8. package/dist/{OpenDiagonallyRight-CSm5GYYJ.js → OpenDiagonallyRight-CGdCEXlF.js} +1 -1
  9. package/dist/{OpenDiagonallyRight-CM1tojUq.cjs → OpenDiagonallyRight-CpL4ROwg.cjs} +4 -4
  10. package/dist/{SwatchSquare-benaO55C.cjs → SwatchSquare-B8PIY3Rd.cjs} +3 -3
  11. package/dist/{SwatchSquare-DhaaXt53.js → SwatchSquare-CaaLsjAC.js} +1 -1
  12. package/dist/{TablePaginationActions-KpTvhN4Y.js → TablePaginationActions-BWer8cmX.js} +15 -4
  13. package/dist/{TablePaginationActions-CFGXm44W.cjs → TablePaginationActions-MwqZJoRm.cjs} +14 -3
  14. package/dist/components/index.cjs +456 -57
  15. package/dist/components/index.js +460 -60
  16. package/dist/custom-icons/index.cjs +608 -486
  17. package/dist/custom-icons/index.js +561 -439
  18. package/dist/theme/index.cjs +14 -10
  19. package/dist/theme/index.js +15 -11
  20. package/dist/types/components/atoms/Button.d.ts +10 -0
  21. package/dist/types/components/atoms/Button.d.ts.map +1 -1
  22. package/dist/types/components/atoms/Link.d.ts +16 -0
  23. package/dist/types/components/atoms/Link.d.ts.map +1 -0
  24. package/dist/types/components/atoms/ScreenReaderOnly.d.ts +3 -0
  25. package/dist/types/components/atoms/ScreenReaderOnly.d.ts.map +1 -0
  26. package/dist/types/components/atoms/index.d.ts +3 -0
  27. package/dist/types/components/atoms/index.d.ts.map +1 -1
  28. package/dist/types/components/molecules/Autocomplete/Autocomplete.d.ts.map +1 -1
  29. package/dist/types/components/molecules/Autocomplete/AutocompleteList.d.ts +13 -0
  30. package/dist/types/components/molecules/Autocomplete/AutocompleteList.d.ts.map +1 -0
  31. package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts +1 -1
  32. package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts.map +1 -1
  33. package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts +1 -1
  34. package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts.map +1 -1
  35. package/dist/types/components/molecules/Autocomplete/index.d.ts +3 -0
  36. package/dist/types/components/molecules/Autocomplete/index.d.ts.map +1 -1
  37. package/dist/types/components/molecules/Autocomplete/types.d.ts +107 -7
  38. package/dist/types/components/molecules/Autocomplete/types.d.ts.map +1 -1
  39. package/dist/types/components/molecules/Autocomplete/useAutocomplete.d.ts +11 -0
  40. package/dist/types/components/molecules/Autocomplete/useAutocomplete.d.ts.map +1 -0
  41. package/dist/types/components/molecules/Autocomplete/useAutocompleteRenderOption.d.ts +2 -1
  42. package/dist/types/components/molecules/Autocomplete/useAutocompleteRenderOption.d.ts.map +1 -1
  43. package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts +26 -1
  44. package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts.map +1 -1
  45. package/dist/types/components/molecules/Autocomplete/utils.d.ts +135 -0
  46. package/dist/types/components/molecules/Autocomplete/utils.d.ts.map +1 -1
  47. package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -1
  48. package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
  49. package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts.map +1 -1
  50. package/dist/types/components/molecules/Menu/MenuList.d.ts.map +1 -1
  51. package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
  52. package/dist/types/custom-icons/AiAgent.d.ts +4 -0
  53. package/dist/types/custom-icons/AiAgent.d.ts.map +1 -0
  54. package/dist/types/custom-icons/HideRightsidebar.d.ts +4 -0
  55. package/dist/types/custom-icons/HideRightsidebar.d.ts.map +1 -0
  56. package/dist/types/custom-icons/ShowRightsidebar.d.ts +4 -0
  57. package/dist/types/custom-icons/ShowRightsidebar.d.ts.map +1 -0
  58. package/dist/types/custom-icons/index.d.ts +3 -0
  59. package/dist/types/custom-icons/index.d.ts.map +1 -1
  60. package/dist/types/localization/en.d.ts +1 -0
  61. package/dist/types/localization/en.d.ts.map +1 -1
  62. package/dist/types/localization/es.d.ts +1 -0
  63. package/dist/types/localization/es.d.ts.map +1 -1
  64. package/dist/types/localization/id.d.ts +1 -0
  65. package/dist/types/localization/id.d.ts.map +1 -1
  66. package/dist/types/localization/index.d.ts +3 -0
  67. package/dist/types/localization/index.d.ts.map +1 -1
  68. package/dist/types/theme/sections/components/forms.d.ts.map +1 -1
  69. package/dist/types/theme/sections/components/navigation.d.ts.map +1 -1
  70. package/dist/types/theme/theme-constants.d.ts +4 -0
  71. package/dist/types/theme/theme-constants.d.ts.map +1 -1
  72. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
  73. package/dist/widgets/index.cjs +6 -6
  74. package/dist/widgets/index.js +6 -6
  75. package/package.json +1 -1
  76. package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts +0 -17
  77. package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - New Link components and Button with externalLink behavior [#202](https://github.com/CartoDB/meridian-ds/pull/202)
6
+
7
+ ## 2.0
8
+
9
+ ### 2.0.0
10
+
11
+ - Developer API change:
12
+ - `groupBy` deprecation in Autocomplete, use `createAutocompleteGroupByList` instead.
13
+ - **Breaking:** Support VirtualizedList in Autocomplete components [#215](https://github.com/CartoDB/meridian-ds/pull/215)
14
+ - Update import path for `createSvgIcon` from `@mui/material/utils` to `@mui/material` [#219](https://github.com/CartoDB/meridian-ds/pull/219)
15
+
5
16
  ## 1.0
6
17
 
7
18
  ### 1.5.1
@@ -2,7 +2,21 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
4
  const material = require("@mui/material");
5
- const TablePaginationActions = require("./TablePaginationActions-CFGXm44W.cjs");
5
+ const reactIntl = require("react-intl");
6
+ const iconsMaterial = require("@mui/icons-material");
7
+ const TablePaginationActions = require("./TablePaginationActions-MwqZJoRm.cjs");
8
+ require("cartocolor");
9
+ const ScreenReaderOnly = material.styled("span")(() => ({
10
+ position: "absolute",
11
+ width: 1,
12
+ height: 1,
13
+ padding: 0,
14
+ margin: -1,
15
+ overflow: "hidden",
16
+ clip: "rect(0, 0, 0, 0)",
17
+ whiteSpace: "nowrap",
18
+ border: 0
19
+ }));
6
20
  const Option = material.styled("div")(({ theme }) => ({
7
21
  position: "relative",
8
22
  display: "inline-flex",
@@ -61,6 +75,86 @@ function _IconButton({
61
75
  ) });
62
76
  }
63
77
  const IconButton = React.forwardRef(_IconButton);
78
+ const StyledLink = material.styled(material.Link)(() => ({
79
+ display: "inline"
80
+ }));
81
+ const Icon = material.styled(material.Box, {
82
+ shouldForwardProp: (prop) => prop !== "variant" && prop !== "iconPosition"
83
+ })(
84
+ ({ variant, iconPosition }) => ({
85
+ display: "inline-flex",
86
+ position: "relative",
87
+ top: "calc(1em * 5.0/32)",
88
+ // heuristic to align icon with true perceived baseline
89
+ ...iconPosition === "right" && {
90
+ marginLeft: "0.25em"
91
+ },
92
+ ...iconPosition === "left" && {
93
+ marginRight: "0.25em"
94
+ },
95
+ svg: {
96
+ // Size adapts to the text size, but make sure the icon size is at least 12px
97
+ fontSize: `max(1em, ${TablePaginationActions.ICON_SIZE_SMALL})`,
98
+ color: "inherit !important",
99
+ "> path": {
100
+ color: "inherit !important"
101
+ },
102
+ // Defined sizes in design specs
103
+ ...variant === "caption" && {
104
+ fontSize: TablePaginationActions.ICON_SIZE_SMALL
105
+ },
106
+ ...variant === "button" && {
107
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM
108
+ },
109
+ ...variant === "body2" && {
110
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM
111
+ },
112
+ ...variant === "body1" && {
113
+ fontSize: TablePaginationActions.ICON_SIZE_LARGE
114
+ }
115
+ }
116
+ })
117
+ );
118
+ function _Link({
119
+ children,
120
+ variant,
121
+ startIcon,
122
+ endIcon,
123
+ color,
124
+ external,
125
+ showExternalIcon = true,
126
+ fontWeight = 500,
127
+ ...otherProps
128
+ }, ref) {
129
+ const intl = reactIntl.useIntl();
130
+ const intlConfig = TablePaginationActions.useImperativeIntl(intl);
131
+ const isButtonLink = otherProps.component === "button";
132
+ return /* @__PURE__ */ jsxRuntime.jsxs(
133
+ StyledLink,
134
+ {
135
+ ...otherProps,
136
+ variant,
137
+ fontWeight,
138
+ "data-color": color,
139
+ "data-name": isButtonLink ? "button-link" : "link",
140
+ role: isButtonLink ? "button" : "link",
141
+ color,
142
+ ref,
143
+ target: external ? "_blank" : void 0,
144
+ rel: external ? "noopener noreferrer" : void 0,
145
+ "aria-describedby": external ? "external-hint" : void 0,
146
+ children: [
147
+ startIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { variant, iconPosition: "left", children: startIcon }),
148
+ children,
149
+ (endIcon || external && showExternalIcon) && /* @__PURE__ */ jsxRuntime.jsx(Icon, { variant, iconPosition: "right", children: endIcon || /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.OpenInNewOutlined, {}) }),
150
+ external && /* @__PURE__ */ jsxRuntime.jsx(ScreenReaderOnly, { id: "external-hint", children: `(${intlConfig.formatMessage({
151
+ id: "c4r.button.opensInNewTab"
152
+ })})` })
153
+ ]
154
+ }
155
+ );
156
+ }
157
+ const Link = React.forwardRef(_Link);
64
158
  const StyledAlert = material.styled(material.Alert, {
65
159
  shouldForwardProp: (prop) => ![
66
160
  "isNeutral",
@@ -190,3 +284,5 @@ function _Alert({
190
284
  const Alert = React.forwardRef(_Alert);
191
285
  exports.Alert = Alert;
192
286
  exports.IconButton = IconButton;
287
+ exports.Link = Link;
288
+ exports.ScreenReaderOnly = ScreenReaderOnly;
@@ -1,7 +1,21 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useState } from "react";
3
- import { styled, IconButton as IconButton$1, Tooltip, CircularProgress, Alert as Alert$1, Fade, AlertTitle } from "@mui/material";
4
- import { b as ICON_SIZE_MEDIUM, T as Typography } from "./TablePaginationActions-KpTvhN4Y.js";
3
+ import { styled, IconButton as IconButton$1, Tooltip, CircularProgress, Link as Link$1, Box, Alert as Alert$1, Fade, AlertTitle } from "@mui/material";
4
+ import { useIntl } from "react-intl";
5
+ import { OpenInNewOutlined } from "@mui/icons-material";
6
+ import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, I as ICON_SIZE_LARGE, u as useImperativeIntl, T as Typography } from "./TablePaginationActions-BWer8cmX.js";
7
+ import "cartocolor";
8
+ const ScreenReaderOnly = styled("span")(() => ({
9
+ position: "absolute",
10
+ width: 1,
11
+ height: 1,
12
+ padding: 0,
13
+ margin: -1,
14
+ overflow: "hidden",
15
+ clip: "rect(0, 0, 0, 0)",
16
+ whiteSpace: "nowrap",
17
+ border: 0
18
+ }));
5
19
  const Option = styled("div")(({ theme }) => ({
6
20
  position: "relative",
7
21
  display: "inline-flex",
@@ -60,6 +74,86 @@ function _IconButton({
60
74
  ) });
61
75
  }
62
76
  const IconButton = forwardRef(_IconButton);
77
+ const StyledLink = styled(Link$1)(() => ({
78
+ display: "inline"
79
+ }));
80
+ const Icon = styled(Box, {
81
+ shouldForwardProp: (prop) => prop !== "variant" && prop !== "iconPosition"
82
+ })(
83
+ ({ variant, iconPosition }) => ({
84
+ display: "inline-flex",
85
+ position: "relative",
86
+ top: "calc(1em * 5.0/32)",
87
+ // heuristic to align icon with true perceived baseline
88
+ ...iconPosition === "right" && {
89
+ marginLeft: "0.25em"
90
+ },
91
+ ...iconPosition === "left" && {
92
+ marginRight: "0.25em"
93
+ },
94
+ svg: {
95
+ // Size adapts to the text size, but make sure the icon size is at least 12px
96
+ fontSize: `max(1em, ${ICON_SIZE_SMALL})`,
97
+ color: "inherit !important",
98
+ "> path": {
99
+ color: "inherit !important"
100
+ },
101
+ // Defined sizes in design specs
102
+ ...variant === "caption" && {
103
+ fontSize: ICON_SIZE_SMALL
104
+ },
105
+ ...variant === "button" && {
106
+ fontSize: ICON_SIZE_MEDIUM
107
+ },
108
+ ...variant === "body2" && {
109
+ fontSize: ICON_SIZE_MEDIUM
110
+ },
111
+ ...variant === "body1" && {
112
+ fontSize: ICON_SIZE_LARGE
113
+ }
114
+ }
115
+ })
116
+ );
117
+ function _Link({
118
+ children,
119
+ variant,
120
+ startIcon,
121
+ endIcon,
122
+ color,
123
+ external,
124
+ showExternalIcon = true,
125
+ fontWeight = 500,
126
+ ...otherProps
127
+ }, ref) {
128
+ const intl = useIntl();
129
+ const intlConfig = useImperativeIntl(intl);
130
+ const isButtonLink = otherProps.component === "button";
131
+ return /* @__PURE__ */ jsxs(
132
+ StyledLink,
133
+ {
134
+ ...otherProps,
135
+ variant,
136
+ fontWeight,
137
+ "data-color": color,
138
+ "data-name": isButtonLink ? "button-link" : "link",
139
+ role: isButtonLink ? "button" : "link",
140
+ color,
141
+ ref,
142
+ target: external ? "_blank" : void 0,
143
+ rel: external ? "noopener noreferrer" : void 0,
144
+ "aria-describedby": external ? "external-hint" : void 0,
145
+ children: [
146
+ startIcon && /* @__PURE__ */ jsx(Icon, { variant, iconPosition: "left", children: startIcon }),
147
+ children,
148
+ (endIcon || external && showExternalIcon) && /* @__PURE__ */ jsx(Icon, { variant, iconPosition: "right", children: endIcon || /* @__PURE__ */ jsx(OpenInNewOutlined, {}) }),
149
+ external && /* @__PURE__ */ jsx(ScreenReaderOnly, { id: "external-hint", children: `(${intlConfig.formatMessage({
150
+ id: "c4r.button.opensInNewTab"
151
+ })})` })
152
+ ]
153
+ }
154
+ );
155
+ }
156
+ const Link = forwardRef(_Link);
63
157
  const StyledAlert = styled(Alert$1, {
64
158
  shouldForwardProp: (prop) => ![
65
159
  "isNeutral",
@@ -189,5 +283,7 @@ function _Alert({
189
283
  const Alert = forwardRef(_Alert);
190
284
  export {
191
285
  Alert as A,
192
- IconButton as I
286
+ IconButton as I,
287
+ Link as L,
288
+ ScreenReaderOnly as S
193
289
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
- const utils = require("@mui/material/utils");
4
+ const material = require("@mui/material");
5
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
  {
@@ -11,7 +11,7 @@ const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3
11
11
  clipRule: "evenodd"
12
12
  }
13
13
  ) });
14
- const BaseSvgIcon = utils.createSvgIcon(Icon(), "ArrowDown");
14
+ const BaseSvgIcon = material.createSvgIcon(Icon(), "ArrowDown");
15
15
  function ArrowDown({ width, height, sx, ...props }, ref) {
16
16
  return /* @__PURE__ */ jsxRuntime.jsx(
17
17
  BaseSvgIcon,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { createSvgIcon } from "@mui/material/utils";
3
+ import { createSvgIcon } from "@mui/material";
4
4
  const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
5
5
  "path",
6
6
  {
@@ -1,6 +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 { e as MENU_ITEM_SIZE_DENSE, f as MENU_ITEM_SIZE_EXTENDED } from "./TablePaginationActions-BWer8cmX.js";
4
5
  const StyledMenuItem = styled(MenuItem$1, {
5
6
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
6
7
  prop
@@ -20,14 +21,14 @@ const StyledMenuItem = styled(MenuItem$1, {
20
21
  columnGap: 0,
21
22
  ...theme.typography.caption,
22
23
  fontWeight: 500,
23
- color: theme.palette.text.secondary,
24
+ color: `${theme.palette.text.secondary} !important`,
24
25
  ".MuiListItemText-root .MuiTypography-root": {
25
26
  ...theme.typography.caption,
26
27
  fontWeight: 500,
27
28
  color: theme.palette.text.secondary
28
29
  },
29
30
  "&.MuiMenuItem-root": {
30
- minHeight: theme.spacing(3),
31
+ minHeight: MENU_ITEM_SIZE_DENSE,
31
32
  paddingTop: 0,
32
33
  paddingBottom: 0,
33
34
  marginTop: theme.spacing(1),
@@ -94,7 +95,7 @@ const StyledMenuItem = styled(MenuItem$1, {
94
95
  },
95
96
  ...extended && {
96
97
  "&.MuiButtonBase-root.MuiMenuItem-root": {
97
- minHeight: theme.spacing(6)
98
+ minHeight: MENU_ITEM_SIZE_EXTENDED
98
99
  }
99
100
  },
100
101
  ...fixed && {
@@ -105,14 +106,14 @@ const StyledMenuItem = styled(MenuItem$1, {
105
106
  bottom: 0,
106
107
  right: 0,
107
108
  zIndex: 2,
108
- minHeight: theme.spacing(6),
109
+ minHeight: MENU_ITEM_SIZE_EXTENDED,
109
110
  marginBottom: theme.spacing(1),
110
111
  padding: theme.spacing(0.5, 1.5),
111
112
  backgroundColor: `${theme.palette.background.paper} !important`,
112
113
  borderBottom: `1px solid ${theme.palette.divider}`
113
114
  },
114
115
  ".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {
115
- minHeight: theme.spacing(6),
116
+ minHeight: MENU_ITEM_SIZE_EXTENDED,
116
117
  marginTop: 0,
117
118
  "&:hover": {
118
119
  backgroundColor: theme.palette.background.paper
@@ -126,7 +127,7 @@ const StyledMenuItem = styled(MenuItem$1, {
126
127
  },
127
128
  ...dense && {
128
129
  "&.MuiButtonBase-root.MuiMenuItem-root": {
129
- minHeight: theme.spacing(3),
130
+ minHeight: MENU_ITEM_SIZE_DENSE,
130
131
  padding: theme.spacing(0.25, 1.5)
131
132
  }
132
133
  }
@@ -139,6 +140,7 @@ function _MenuItem({
139
140
  extended,
140
141
  fixed,
141
142
  iconColor = "primary",
143
+ dense,
142
144
  ...props
143
145
  }, ref) {
144
146
  return /* @__PURE__ */ jsx(
@@ -151,10 +153,12 @@ function _MenuItem({
151
153
  subtitle,
152
154
  destructive,
153
155
  extended,
156
+ dense,
154
157
  fixed,
155
158
  color: iconColor,
156
159
  "data-destructive": destructive,
157
160
  "data-extended": extended,
161
+ "data-dense": dense,
158
162
  "data-fixed": fixed
159
163
  }
160
164
  );
@@ -2,6 +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 TablePaginationActions = require("./TablePaginationActions-MwqZJoRm.cjs");
5
6
  const StyledMenuItem = material.styled(material.MenuItem, {
6
7
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
7
8
  prop
@@ -21,14 +22,14 @@ const StyledMenuItem = material.styled(material.MenuItem, {
21
22
  columnGap: 0,
22
23
  ...theme.typography.caption,
23
24
  fontWeight: 500,
24
- color: theme.palette.text.secondary,
25
+ color: `${theme.palette.text.secondary} !important`,
25
26
  ".MuiListItemText-root .MuiTypography-root": {
26
27
  ...theme.typography.caption,
27
28
  fontWeight: 500,
28
29
  color: theme.palette.text.secondary
29
30
  },
30
31
  "&.MuiMenuItem-root": {
31
- minHeight: theme.spacing(3),
32
+ minHeight: TablePaginationActions.MENU_ITEM_SIZE_DENSE,
32
33
  paddingTop: 0,
33
34
  paddingBottom: 0,
34
35
  marginTop: theme.spacing(1),
@@ -95,7 +96,7 @@ const StyledMenuItem = material.styled(material.MenuItem, {
95
96
  },
96
97
  ...extended && {
97
98
  "&.MuiButtonBase-root.MuiMenuItem-root": {
98
- minHeight: theme.spacing(6)
99
+ minHeight: TablePaginationActions.MENU_ITEM_SIZE_EXTENDED
99
100
  }
100
101
  },
101
102
  ...fixed && {
@@ -106,14 +107,14 @@ const StyledMenuItem = material.styled(material.MenuItem, {
106
107
  bottom: 0,
107
108
  right: 0,
108
109
  zIndex: 2,
109
- minHeight: theme.spacing(6),
110
+ minHeight: TablePaginationActions.MENU_ITEM_SIZE_EXTENDED,
110
111
  marginBottom: theme.spacing(1),
111
112
  padding: theme.spacing(0.5, 1.5),
112
113
  backgroundColor: `${theme.palette.background.paper} !important`,
113
114
  borderBottom: `1px solid ${theme.palette.divider}`
114
115
  },
115
116
  ".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {
116
- minHeight: theme.spacing(6),
117
+ minHeight: TablePaginationActions.MENU_ITEM_SIZE_EXTENDED,
117
118
  marginTop: 0,
118
119
  "&:hover": {
119
120
  backgroundColor: theme.palette.background.paper
@@ -127,7 +128,7 @@ const StyledMenuItem = material.styled(material.MenuItem, {
127
128
  },
128
129
  ...dense && {
129
130
  "&.MuiButtonBase-root.MuiMenuItem-root": {
130
- minHeight: theme.spacing(3),
131
+ minHeight: TablePaginationActions.MENU_ITEM_SIZE_DENSE,
131
132
  padding: theme.spacing(0.25, 1.5)
132
133
  }
133
134
  }
@@ -140,6 +141,7 @@ function _MenuItem({
140
141
  extended,
141
142
  fixed,
142
143
  iconColor = "primary",
144
+ dense,
143
145
  ...props
144
146
  }, ref) {
145
147
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -152,10 +154,12 @@ function _MenuItem({
152
154
  subtitle,
153
155
  destructive,
154
156
  extended,
157
+ dense,
155
158
  fixed,
156
159
  color: iconColor,
157
160
  "data-destructive": destructive,
158
161
  "data-extended": extended,
162
+ "data-dense": dense,
159
163
  "data-fixed": fixed
160
164
  }
161
165
  );
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { createSvgIcon } from "@mui/material/utils";
3
+ import { createSvgIcon } from "@mui/material";
4
4
  const Icon$2 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
5
5
  "path",
6
6
  {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
- const utils = require("@mui/material/utils");
4
+ const material = require("@mui/material");
5
5
  const Icon$2 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
6
6
  "path",
7
7
  {
@@ -11,7 +11,7 @@ const Icon$2 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.
11
11
  clipRule: "evenodd"
12
12
  }
13
13
  ) });
14
- const BaseSvgIcon$2 = utils.createSvgIcon(Icon$2(), "ArrowUp");
14
+ const BaseSvgIcon$2 = material.createSvgIcon(Icon$2(), "ArrowUp");
15
15
  function ArrowUp({ width, height, sx, ...props }, ref) {
16
16
  return /* @__PURE__ */ jsxRuntime.jsx(
17
17
  BaseSvgIcon$2,
@@ -37,7 +37,7 @@ const Icon$1 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.
37
37
  clipRule: "evenodd"
38
38
  }
39
39
  ) });
40
- const BaseSvgIcon$1 = utils.createSvgIcon(Icon$1(), "CloseDiagonallyRight");
40
+ const BaseSvgIcon$1 = material.createSvgIcon(Icon$1(), "CloseDiagonallyRight");
41
41
  function CloseDiagonallyRight({ width, height, sx, ...props }, ref) {
42
42
  return /* @__PURE__ */ jsxRuntime.jsx(
43
43
  BaseSvgIcon$1,
@@ -63,7 +63,7 @@ const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3
63
63
  clipRule: "evenodd"
64
64
  }
65
65
  ) });
66
- const BaseSvgIcon = utils.createSvgIcon(Icon(), "OpenDiagonallyRight");
66
+ const BaseSvgIcon = material.createSvgIcon(Icon(), "OpenDiagonallyRight");
67
67
  function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
68
68
  return /* @__PURE__ */ jsxRuntime.jsx(
69
69
  BaseSvgIcon,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
- const utils = require("@mui/material/utils");
4
+ const material = require("@mui/material");
5
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
  {
@@ -11,7 +11,7 @@ const Icon$1 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.
11
11
  clipRule: "evenodd"
12
12
  }
13
13
  ) });
14
- const BaseSvgIcon$1 = utils.createSvgIcon(Icon$1(), "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
17
  BaseSvgIcon$1,
@@ -29,7 +29,7 @@ function Search({ width, height, sx, ...props }, ref) {
29
29
  }
30
30
  const Search$1 = React.forwardRef(Search);
31
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 = utils.createSvgIcon(Icon(), "SwatchSquare");
32
+ const BaseSvgIcon = material.createSvgIcon(Icon(), "SwatchSquare");
33
33
  function SwatchSquare({ width, height, sx, ...props }, ref) {
34
34
  return /* @__PURE__ */ jsxRuntime.jsx(
35
35
  BaseSvgIcon,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { createSvgIcon } from "@mui/material/utils";
3
+ import { createSvgIcon } from "@mui/material";
4
4
  const Icon$1 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
5
5
  "path",
6
6
  {
@@ -777,6 +777,10 @@ const ICON_SIZE_MEDIUM = getSpacing(2.25);
777
777
  const ICON_SIZE_LARGE = getSpacing(3);
778
778
  const APPBAR_SIZE = getSpacing(6);
779
779
  const NOTIFICATION_DURATION_IN_MS = 6e3;
780
+ const MENU_LIST_MAX_SIZE = 312;
781
+ const MENU_ITEM_SIZE_DENSE = 24;
782
+ const MENU_ITEM_SIZE_DEFAULT = 32;
783
+ const MENU_ITEM_SIZE_EXTENDED = 48;
780
784
  const FontWeight = {
781
785
  regular: 400,
782
786
  medium: 500,
@@ -813,7 +817,8 @@ const en = {
813
817
  copy: "Copy",
814
818
  save: "Save",
815
819
  add: "Add",
816
- showOptions: "Show options"
820
+ showOptions: "Show options",
821
+ opensInNewTab: "Opens in new tab"
817
822
  },
818
823
  form: {
819
824
  selectAll: "Select all",
@@ -961,7 +966,8 @@ const es = {
961
966
  copy: "Copiar",
962
967
  save: "Guardar",
963
968
  add: "Añadir",
964
- showOptions: "Mostrar opciones"
969
+ showOptions: "Mostrar opciones",
970
+ opensInNewTab: "Abre en una nueva pestaña"
965
971
  },
966
972
  form: {
967
973
  selectAll: "Seleccionar todos",
@@ -1107,7 +1113,8 @@ const id = {
1107
1113
  copy: "Salin",
1108
1114
  save: "Simpan",
1109
1115
  add: "Tambah",
1110
- showOptions: "Tampilkan opsi"
1116
+ showOptions: "Tampilkan opsi",
1117
+ opensInNewTab: "Buka di tab baru"
1111
1118
  },
1112
1119
  form: {
1113
1120
  selectAll: "Select all",
@@ -5650,13 +5657,17 @@ export {
5650
5657
  APPBAR_SIZE as A,
5651
5658
  BREAKPOINTS as B,
5652
5659
  ICON_SIZE_LARGE as I,
5660
+ MENU_ITEM_SIZE_DEFAULT as M,
5653
5661
  NOTIFICATION_DURATION_IN_MS as N,
5654
5662
  SPACING as S,
5655
5663
  Typography as T,
5656
5664
  TablePaginationActions as a,
5657
5665
  ICON_SIZE_MEDIUM as b,
5658
5666
  ICON_SIZE_SMALL as c,
5659
- getDefaultExportFromCjs as d,
5667
+ MENU_LIST_MAX_SIZE as d,
5668
+ MENU_ITEM_SIZE_DENSE as e,
5669
+ MENU_ITEM_SIZE_EXTENDED as f,
5660
5670
  getSpacing as g,
5671
+ getDefaultExportFromCjs as h,
5661
5672
  useImperativeIntl as u
5662
5673
  };
@@ -778,6 +778,10 @@ const ICON_SIZE_MEDIUM = getSpacing(2.25);
778
778
  const ICON_SIZE_LARGE = getSpacing(3);
779
779
  const APPBAR_SIZE = getSpacing(6);
780
780
  const NOTIFICATION_DURATION_IN_MS = 6e3;
781
+ const MENU_LIST_MAX_SIZE = 312;
782
+ const MENU_ITEM_SIZE_DENSE = 24;
783
+ const MENU_ITEM_SIZE_DEFAULT = 32;
784
+ const MENU_ITEM_SIZE_EXTENDED = 48;
781
785
  const FontWeight = {
782
786
  regular: 400,
783
787
  medium: 500,
@@ -814,7 +818,8 @@ const en = {
814
818
  copy: "Copy",
815
819
  save: "Save",
816
820
  add: "Add",
817
- showOptions: "Show options"
821
+ showOptions: "Show options",
822
+ opensInNewTab: "Opens in new tab"
818
823
  },
819
824
  form: {
820
825
  selectAll: "Select all",
@@ -962,7 +967,8 @@ const es = {
962
967
  copy: "Copiar",
963
968
  save: "Guardar",
964
969
  add: "Añadir",
965
- showOptions: "Mostrar opciones"
970
+ showOptions: "Mostrar opciones",
971
+ opensInNewTab: "Abre en una nueva pestaña"
966
972
  },
967
973
  form: {
968
974
  selectAll: "Seleccionar todos",
@@ -1108,7 +1114,8 @@ const id = {
1108
1114
  copy: "Salin",
1109
1115
  save: "Simpan",
1110
1116
  add: "Tambah",
1111
- showOptions: "Tampilkan opsi"
1117
+ showOptions: "Tampilkan opsi",
1118
+ opensInNewTab: "Buka di tab baru"
1112
1119
  },
1113
1120
  form: {
1114
1121
  selectAll: "Select all",
@@ -5652,6 +5659,10 @@ exports.BREAKPOINTS = BREAKPOINTS;
5652
5659
  exports.ICON_SIZE_LARGE = ICON_SIZE_LARGE;
5653
5660
  exports.ICON_SIZE_MEDIUM = ICON_SIZE_MEDIUM;
5654
5661
  exports.ICON_SIZE_SMALL = ICON_SIZE_SMALL;
5662
+ exports.MENU_ITEM_SIZE_DEFAULT = MENU_ITEM_SIZE_DEFAULT;
5663
+ exports.MENU_ITEM_SIZE_DENSE = MENU_ITEM_SIZE_DENSE;
5664
+ exports.MENU_ITEM_SIZE_EXTENDED = MENU_ITEM_SIZE_EXTENDED;
5665
+ exports.MENU_LIST_MAX_SIZE = MENU_LIST_MAX_SIZE;
5655
5666
  exports.NOTIFICATION_DURATION_IN_MS = NOTIFICATION_DURATION_IN_MS;
5656
5667
  exports.SPACING = SPACING;
5657
5668
  exports.TablePaginationActions = TablePaginationActions;