@carto/meridian-ds 2.6.1-alpha-searchfield.3 → 2.6.1-alpha-searchfield.5
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.
- package/CHANGELOG.md +3 -0
- package/dist/{Alert-BN993lHa.js → Alert-1-pacqlp.js} +2 -15
- package/dist/{Alert-CL9Y3l7D.cjs → Alert-N-6EugaP.cjs} +2 -15
- package/dist/{MenuItem-Bssr5qGq.cjs → MenuItem-BPvH70wa.cjs} +1 -1
- package/dist/{MenuItem-COajCLkS.js → MenuItem-GpTpLidu.js} +1 -1
- package/dist/components/index.cjs +309 -204
- package/dist/components/index.js +299 -194
- package/dist/{css-utils-hxI-qUxK.js → css-utils-BHYA7By_.js} +29 -13
- package/dist/{css-utils-CqIN_t7x.cjs → css-utils-DjvM17Vb.cjs} +27 -11
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +3 -3
- package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts +1 -0
- package/dist/types/components/Autocomplete/AutocompleteList/AutocompleteList.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts +1 -26
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/types.d.ts +9 -0
- package/dist/types/components/Autocomplete/types.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +7 -1
- package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts +5 -1
- package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaFooter/CodeAreaFooter.d.ts +3 -1
- package/dist/types/components/CodeArea/CodeAreaFooter/CodeAreaFooter.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaHeader/CodeAreaHeader.d.ts +5 -1
- package/dist/types/components/CodeArea/CodeAreaHeader/CodeAreaHeader.d.ts.map +1 -1
- package/dist/types/components/CopiableComponent/CopiableComponent.d.ts.map +1 -1
- package/dist/types/components/CopiableInputText/CopiableInputText.d.ts +9 -3
- package/dist/types/components/CopiableInputText/CopiableInputText.d.ts.map +1 -1
- package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts +28 -3
- package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts.map +1 -1
- package/dist/types/components/CopiableInputText/types.d.ts +4 -1
- package/dist/types/components/CopiableInputText/types.d.ts.map +1 -1
- package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts +48 -0
- package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogContent/DialogContent.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogContent/DialogContent.test.d.ts +2 -0
- package/dist/types/components/Dialog/DialogContent/DialogContent.test.d.ts.map +1 -0
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts +14 -0
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/types.d.ts +6 -0
- package/dist/types/components/Dialog/types.d.ts.map +1 -1
- package/dist/types/components/Menu/types.d.ts +1 -1
- package/dist/types/components/Menu/types.d.ts.map +1 -1
- package/dist/types/components/PasswordField/PasswordField.d.ts +10 -1
- package/dist/types/components/PasswordField/PasswordField.d.ts.map +1 -1
- package/dist/types/components/PasswordField/PasswordField.stories.d.ts +10 -1
- package/dist/types/components/PasswordField/PasswordField.stories.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.stories.d.ts +13 -33
- package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.styled.d.ts +1 -1
- package/dist/types/components/SearchField/SearchField.styled.d.ts.map +1 -1
- package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts +19 -0
- package/dist/types/components/SearchField/components/SearchFieldEndAdornment.d.ts.map +1 -0
- package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts +14 -0
- package/dist/types/components/SearchField/components/SearchFieldStartAdornment.d.ts.map +1 -0
- package/dist/types/components/SearchField/types.d.ts +45 -4
- package/dist/types/components/SearchField/types.d.ts.map +1 -1
- package/dist/types/components/Snackbar/Snackbar.d.ts +2 -1
- package/dist/types/components/Snackbar/Snackbar.d.ts.map +1 -1
- package/dist/types/components/Snackbar/Snackbar.stories.d.ts +15 -0
- package/dist/types/components/Snackbar/Snackbar.stories.d.ts.map +1 -1
- package/dist/types/components/TablePaginationActions/TablePaginationActions.d.ts +3 -0
- package/dist/types/components/TablePaginationActions/TablePaginationActions.d.ts.map +1 -1
- package/dist/types/components/UploadField/useFileUpload.d.ts +4 -1
- package/dist/types/components/UploadField/useFileUpload.d.ts.map +1 -1
- package/dist/widgets/index.cjs +2 -2
- package/dist/widgets/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
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)
|
|
6
9
|
- Improve translations handling in Meridian (part 1) [#304](https://github.com/CartoDB/meridian-ds/pull/304)
|
|
7
10
|
- FilterDropdown: improve customization [#312](https://github.com/CartoDB/meridian-ds/pull/312)
|
|
8
11
|
- CopiableComponent: improve customization [#311](https://github.com/CartoDB/meridian-ds/pull/311)
|
|
@@ -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 {
|
|
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,17 +15,6 @@ const ScreenReaderOnly = styled("span")(() => ({
|
|
|
16
15
|
whiteSpace: "nowrap",
|
|
17
16
|
border: 0
|
|
18
17
|
}));
|
|
19
|
-
function useTranslationWithFallback(translationKey, customText, intlValues) {
|
|
20
|
-
const intl = useIntl();
|
|
21
|
-
const intlConfig = useImperativeIntl(intl);
|
|
22
|
-
if (customText !== void 0 && customText !== null) {
|
|
23
|
-
return customText;
|
|
24
|
-
}
|
|
25
|
-
return intlConfig.formatMessage(
|
|
26
|
-
{ id: translationKey },
|
|
27
|
-
intlValues
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
18
|
const StyledLink = styled(Link$1)(() => ({
|
|
31
19
|
display: "inline-block"
|
|
32
20
|
}));
|
|
@@ -244,6 +232,5 @@ const Alert = forwardRef(_Alert);
|
|
|
244
232
|
export {
|
|
245
233
|
Alert as A,
|
|
246
234
|
Link as L,
|
|
247
|
-
ScreenReaderOnly as S
|
|
248
|
-
useTranslationWithFallback as u
|
|
235
|
+
ScreenReaderOnly as S
|
|
249
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-
|
|
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,17 +16,6 @@ const ScreenReaderOnly = material.styled("span")(() => ({
|
|
|
17
16
|
whiteSpace: "nowrap",
|
|
18
17
|
border: 0
|
|
19
18
|
}));
|
|
20
|
-
function useTranslationWithFallback(translationKey, customText, intlValues) {
|
|
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(
|
|
27
|
-
{ id: translationKey },
|
|
28
|
-
intlValues
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
19
|
const StyledLink = material.styled(material.Link)(() => ({
|
|
32
20
|
display: "inline-block"
|
|
33
21
|
}));
|
|
@@ -86,7 +74,7 @@ function _Link({
|
|
|
86
74
|
"aria-describedby": ariaDescribedby,
|
|
87
75
|
...otherProps
|
|
88
76
|
}, ref) {
|
|
89
|
-
const screenReaderTextValue = useTranslationWithFallback(
|
|
77
|
+
const screenReaderTextValue = cssUtils.useTranslationWithFallback(
|
|
90
78
|
"c4r.button.opensInNewTab",
|
|
91
79
|
screenReaderText
|
|
92
80
|
);
|
|
@@ -245,4 +233,3 @@ const Alert = React.forwardRef(_Alert);
|
|
|
245
233
|
exports.Alert = Alert;
|
|
246
234
|
exports.Link = Link;
|
|
247
235
|
exports.ScreenReaderOnly = ScreenReaderOnly;
|
|
248
|
-
exports.useTranslationWithFallback = useTranslationWithFallback;
|
|
@@ -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-
|
|
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-
|
|
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
|