@mailstep/design-system 0.8.20-beta.1 → 0.8.20-beta.2
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/package.json +1 -1
- package/ui/Blocks/LanguageSwitch/styles.js +1 -1
- package/ui/index.es.js +5 -1
- package/ui/index.umd.js +5 -1
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ export var StyledDropdownMenu = styled(DropdownMenu)(templateObject_2 || (templa
|
|
|
13
13
|
return "".concat(placement, ": 15px");
|
|
14
14
|
});
|
|
15
15
|
export var LanguageSwitchWrap = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n width: fit-content;\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n width: fit-content;\n"])));
|
|
16
|
-
export var LanguageFlagWrap = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n padding:
|
|
16
|
+
export var LanguageFlagWrap = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n padding: 6px;\n border-radius: 10px;\n background: ", ";\n\n @media (min-width: 768px) {\n padding: 7px 12px;\n }\n"], ["\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n padding: 6px;\n border-radius: 10px;\n background: ", ";\n\n @media (min-width: 768px) {\n padding: 7px 12px;\n }\n"])), function (_a) {
|
|
17
17
|
var withTitle = _a.withTitle;
|
|
18
18
|
return (withTitle ? '16px' : '8px');
|
|
19
19
|
}, function (_a) {
|
package/ui/index.es.js
CHANGED
|
@@ -44188,11 +44188,15 @@ const Ewe = _.img`
|
|
|
44188
44188
|
gap: ${({
|
|
44189
44189
|
withTitle: e
|
|
44190
44190
|
}) => e ? "16px" : "8px"};
|
|
44191
|
-
padding:
|
|
44191
|
+
padding: 6px;
|
|
44192
44192
|
border-radius: 10px;
|
|
44193
44193
|
background: ${({
|
|
44194
44194
|
backgroundColor: e
|
|
44195
44195
|
}) => e || "white"};
|
|
44196
|
+
|
|
44197
|
+
@media (min-width: 768px) {
|
|
44198
|
+
padding: 7px 12px;
|
|
44199
|
+
}
|
|
44196
44200
|
`, jwe = ({
|
|
44197
44201
|
activeLanguage: e,
|
|
44198
44202
|
onLanguageChange: t,
|
package/ui/index.umd.js
CHANGED
|
@@ -3063,9 +3063,13 @@ ${q.current.stack}
|
|
|
3063
3063
|
align-items: center;
|
|
3064
3064
|
justify-content: space-between;
|
|
3065
3065
|
gap: ${({withTitle:e})=>e?"16px":"8px"};
|
|
3066
|
-
padding:
|
|
3066
|
+
padding: 6px;
|
|
3067
3067
|
border-radius: 10px;
|
|
3068
3068
|
background: ${({backgroundColor:e})=>e||"white"};
|
|
3069
|
+
|
|
3070
|
+
@media (min-width: 768px) {
|
|
3071
|
+
padding: 7px 12px;
|
|
3072
|
+
}
|
|
3069
3073
|
`,WF=({activeLanguage:e,onLanguageChange:t,languageItems:n,placement:r="right",withTitle:i,languageFlagWrapBackgroundColor:o})=>{const[l,c]=b.useState(!1),d=b.useCallback(()=>{c(!1)},[]),f=Eo({onClose:d}),A=b.useCallback(()=>{c(!l)},[l]),g=b.useCallback(I=>()=>{t==null||t(I)},[t]),v=b.useMemo(()=>n==null?void 0:n.find(I=>I.languageCode===e),[e,n]),y=b.useMemo(()=>n==null?void 0:n.filter(I=>I.languageCode!==e),[n,e]),w=b.useMemo(()=>y==null?void 0:y.map(({title:I,icon:E,languageCode:S})=>({title:I,icon:E,onClick:g(S)})),[y,g]);return!v||!n?null:h.jsxs(kwe,{ref:f,children:[h.jsxs(Mwe,{onClick:A,backgroundColor:o,withTitle:i,children:[h.jsxs(Iwe,{children:[v.icon,i&&v.title]}),h.jsx(st,{icon:"chevronDown",size:"10px"})]}),h.jsx(Ewe,{showMenu:l,items:w,placement:r})]})},Lwe=Y.div`
|
|
3070
3074
|
display: block;
|
|
3071
3075
|
width: 100%;
|