decentraland-ui2 0.29.2-18384531726.commit-f389bac → 0.30.1-18413326493.commit-522b173
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/dist/components/Footer/Footer.d.ts +5 -0
- package/dist/components/Footer/Footer.i18n.d.ts +51 -0
- package/dist/components/Footer/Footer.i18n.js +58 -0
- package/dist/components/Footer/Footer.i18n.js.map +1 -0
- package/dist/components/Footer/Footer.js +55 -0
- package/dist/components/Footer/Footer.js.map +1 -0
- package/dist/components/Footer/Footer.stories.d.ts +11 -0
- package/dist/components/Footer/Footer.stories.js +65 -0
- package/dist/components/Footer/Footer.stories.js.map +1 -0
- package/dist/components/Footer/Footer.stories.styled.d.ts +6 -0
- package/dist/components/Footer/Footer.stories.styled.js +9 -0
- package/dist/components/Footer/Footer.stories.styled.js.map +1 -0
- package/dist/components/Footer/Footer.styled.d.ts +47 -0
- package/dist/components/Footer/Footer.styled.js +76 -0
- package/dist/components/Footer/Footer.styled.js.map +1 -0
- package/dist/components/Footer/Footer.types.d.ts +22 -0
- package/dist/components/Footer/Footer.types.js +2 -0
- package/dist/components/Footer/Footer.types.js.map +1 -0
- package/dist/components/Footer/index.d.ts +3 -0
- package/dist/components/Footer/index.js +3 -0
- package/dist/components/Footer/index.js.map +1 -0
- package/dist/components/Icon/Social/DiscordIcon.d.ts +4 -0
- package/dist/components/Icon/Social/DiscordIcon.js +8 -0
- package/dist/components/Icon/Social/DiscordIcon.js.map +1 -0
- package/dist/components/Icon/Social/GitHubIcon.d.ts +4 -0
- package/dist/components/Icon/Social/GitHubIcon.js +8 -0
- package/dist/components/Icon/Social/GitHubIcon.js.map +1 -0
- package/dist/components/Icon/Social/RedditIcon.d.ts +4 -0
- package/dist/components/Icon/Social/RedditIcon.js +8 -0
- package/dist/components/Icon/Social/RedditIcon.js.map +1 -0
- package/dist/components/Icon/Social/SocialIcons.stories.d.ts +12 -0
- package/dist/components/Icon/Social/SocialIcons.stories.js +33 -0
- package/dist/components/Icon/Social/SocialIcons.stories.js.map +1 -0
- package/dist/components/Icon/Social/XIcon.d.ts +4 -0
- package/dist/components/Icon/Social/XIcon.js +8 -0
- package/dist/components/Icon/Social/XIcon.js.map +1 -0
- package/dist/components/Icon/index.d.ts +5 -1
- package/dist/components/Icon/index.js +5 -1
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/LanguageDropdown/LanguageDropdown.d.ts +4 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.js +32 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.js.map +1 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.stories.d.ts +9 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.stories.js +45 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.stories.js.map +1 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.styled.d.ts +15 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.styled.js +26 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.styled.js.map +1 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.types.d.ts +20 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.types.js +11 -0
- package/dist/components/LanguageDropdown/LanguageDropdown.types.js.map +1 -0
- package/dist/components/LanguageDropdown/index.d.ts +2 -0
- package/dist/components/LanguageDropdown/index.js +2 -0
- package/dist/components/LanguageDropdown/index.js.map +1 -0
- package/dist/config/env/dev.json +9 -1
- package/dist/config/env/prod.json +9 -1
- package/dist/config/env/stg.json +9 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
@@ -0,0 +1,5 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { FooterProps, Language } from "./Footer.types";
|
3
|
+
declare const defaultLanguages: Language[];
|
4
|
+
declare const Footer: React.MemoExoticComponent<(props: FooterProps) => import("react/jsx-runtime").JSX.Element>;
|
5
|
+
export { Footer, defaultLanguages };
|
@@ -0,0 +1,51 @@
|
|
1
|
+
declare const translations: {
|
2
|
+
en: {
|
3
|
+
home: string;
|
4
|
+
privacy_policy: string;
|
5
|
+
terms_of_use: string;
|
6
|
+
content_policy: string;
|
7
|
+
code_of_ethics: string;
|
8
|
+
copyright: string;
|
9
|
+
};
|
10
|
+
es: {
|
11
|
+
home: string;
|
12
|
+
privacy_policy: string;
|
13
|
+
terms_of_use: string;
|
14
|
+
content_policy: string;
|
15
|
+
code_of_ethics: string;
|
16
|
+
copyright: string;
|
17
|
+
};
|
18
|
+
fr: {
|
19
|
+
home: string;
|
20
|
+
privacy_policy: string;
|
21
|
+
terms_of_use: string;
|
22
|
+
content_policy: string;
|
23
|
+
code_of_ethics: string;
|
24
|
+
copyright: string;
|
25
|
+
};
|
26
|
+
zh: {
|
27
|
+
home: string;
|
28
|
+
privacy_policy: string;
|
29
|
+
terms_of_use: string;
|
30
|
+
content_policy: string;
|
31
|
+
code_of_ethics: string;
|
32
|
+
copyright: string;
|
33
|
+
};
|
34
|
+
ko: {
|
35
|
+
home: string;
|
36
|
+
privacy_policy: string;
|
37
|
+
terms_of_use: string;
|
38
|
+
content_policy: string;
|
39
|
+
code_of_ethics: string;
|
40
|
+
copyright: string;
|
41
|
+
};
|
42
|
+
ja: {
|
43
|
+
home: string;
|
44
|
+
privacy_policy: string;
|
45
|
+
terms_of_use: string;
|
46
|
+
content_policy: string;
|
47
|
+
code_of_ethics: string;
|
48
|
+
copyright: string;
|
49
|
+
};
|
50
|
+
};
|
51
|
+
export { translations };
|
@@ -0,0 +1,58 @@
|
|
1
|
+
const en = {
|
2
|
+
home: "Home",
|
3
|
+
privacy_policy: "Privacy Policy",
|
4
|
+
terms_of_use: "Terms of Use",
|
5
|
+
content_policy: "Content Policy",
|
6
|
+
code_of_ethics: "Code of Ethics",
|
7
|
+
copyright: "© 2025 Decentraland",
|
8
|
+
};
|
9
|
+
const es = {
|
10
|
+
home: "Inicio",
|
11
|
+
privacy_policy: "Política de Privacidad",
|
12
|
+
terms_of_use: "Términos de Uso",
|
13
|
+
content_policy: "Política de Contenido",
|
14
|
+
code_of_ethics: "Código de Ética",
|
15
|
+
copyright: "© 2025 Decentraland",
|
16
|
+
};
|
17
|
+
const fr = {
|
18
|
+
home: "Accueil",
|
19
|
+
privacy_policy: "Politique de Confidentialité",
|
20
|
+
terms_of_use: "Conditions d'Utilisation",
|
21
|
+
content_policy: "Politique de Contenu",
|
22
|
+
code_of_ethics: "Code d'Éthique",
|
23
|
+
copyright: "© 2025 Decentraland",
|
24
|
+
};
|
25
|
+
const zh = {
|
26
|
+
home: "首页",
|
27
|
+
privacy_policy: "隐私政策",
|
28
|
+
terms_of_use: "使用条款",
|
29
|
+
content_policy: "内容政策",
|
30
|
+
code_of_ethics: "道德准则",
|
31
|
+
copyright: "© 2025 Decentraland",
|
32
|
+
};
|
33
|
+
const ko = {
|
34
|
+
home: "홈",
|
35
|
+
privacy_policy: "개인정보 보호정책",
|
36
|
+
terms_of_use: "이용약관",
|
37
|
+
content_policy: "컨텐츠 정책",
|
38
|
+
code_of_ethics: "윤리 강령",
|
39
|
+
copyright: "© 2025 Decentraland",
|
40
|
+
};
|
41
|
+
const ja = {
|
42
|
+
home: "ホーム",
|
43
|
+
privacy_policy: "プライバシーポリシー",
|
44
|
+
terms_of_use: "利用規約",
|
45
|
+
content_policy: "コンテンツポリシー",
|
46
|
+
code_of_ethics: "倫理規定",
|
47
|
+
copyright: "© 2025 Decentraland",
|
48
|
+
};
|
49
|
+
const translations = {
|
50
|
+
en,
|
51
|
+
es,
|
52
|
+
fr,
|
53
|
+
zh,
|
54
|
+
ko,
|
55
|
+
ja,
|
56
|
+
};
|
57
|
+
export { translations };
|
58
|
+
//# sourceMappingURL=Footer.i18n.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Footer.i18n.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,EAAE,GAAG;IACT,IAAI,EAAE,MAAM;IACZ,cA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jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import { translations } from "./Footer.i18n";
|
4
|
+
import { config } from "../../config";
|
5
|
+
import { DiscordIcon, GitHubIcon, RedditIcon, XIcon } from "../Icon";
|
6
|
+
import { LanguageDropdown } from "../LanguageDropdown";
|
7
|
+
import { SupportedLanguage } from "../LanguageDropdown/LanguageDropdown.types";
|
8
|
+
import { CopyrightText, FooterContainer, FooterContent, FooterLink, FooterSocialLink, LanguageSelector, LegalLinks, SocialLinks, StyledFooter, } from "./Footer.styled";
|
9
|
+
const defaultLanguages = [
|
10
|
+
{ code: SupportedLanguage.EN, name: "English", flag: "🇺🇸" },
|
11
|
+
{ code: SupportedLanguage.ES, name: "Español", flag: "🇪🇸" },
|
12
|
+
{ code: SupportedLanguage.FR, name: "Français", flag: "🇫🇷" },
|
13
|
+
{ code: SupportedLanguage.ZH, name: "中文", flag: "🇨🇳" },
|
14
|
+
{ code: SupportedLanguage.KO, name: "한국어", flag: "🇰🇷" },
|
15
|
+
{ code: SupportedLanguage.JA, name: "日本語", flag: "🇯🇵" },
|
16
|
+
];
|
17
|
+
const defaultSocialLinks = [
|
18
|
+
{
|
19
|
+
name: "Discord",
|
20
|
+
href: config.get("DISCORD_URL"),
|
21
|
+
icon: _jsx(DiscordIcon, { fontSize: "small" }),
|
22
|
+
},
|
23
|
+
{
|
24
|
+
name: "Reddit",
|
25
|
+
href: config.get("REDDIT_URL"),
|
26
|
+
icon: _jsx(RedditIcon, { fontSize: "small" }),
|
27
|
+
},
|
28
|
+
{
|
29
|
+
name: "GitHub",
|
30
|
+
href: config.get("GITHUB_URL"),
|
31
|
+
icon: _jsx(GitHubIcon, { fontSize: "small" }),
|
32
|
+
},
|
33
|
+
{
|
34
|
+
name: "X",
|
35
|
+
href: config.get("X_URL"),
|
36
|
+
icon: _jsx(XIcon, { fontSize: "small" }),
|
37
|
+
},
|
38
|
+
];
|
39
|
+
const Footer = React.memo((props) => {
|
40
|
+
const { languages = defaultLanguages, selectedLanguage = SupportedLanguage.EN, onLanguageChange, hideSocialNetworks = false, } = props;
|
41
|
+
const t = translations[selectedLanguage] || translations.en;
|
42
|
+
const legalLinks = [
|
43
|
+
{ label: t.home, href: "/" },
|
44
|
+
{ label: t.privacy_policy, href: config.get("PRIVACY_POLICY_URL") },
|
45
|
+
{ label: t.terms_of_use, href: config.get("TERMS_OF_USE_URL") },
|
46
|
+
{ label: t.content_policy, href: config.get("CONTENT_POLICY_URL") },
|
47
|
+
{ label: t.code_of_ethics, href: config.get("CODE_OF_ETHICS_URL") },
|
48
|
+
];
|
49
|
+
const handleLanguageChange = (languageCode) => {
|
50
|
+
onLanguageChange?.(languageCode);
|
51
|
+
};
|
52
|
+
return (_jsx(StyledFooter, { children: _jsxs(FooterContainer, { children: [_jsxs(FooterContent, { children: [_jsx(LanguageSelector, { children: _jsx(LanguageDropdown, { languages: languages, selectedLanguage: selectedLanguage, onLanguageChange: handleLanguageChange }) }), _jsx(LegalLinks, { children: legalLinks.map((link, index) => (_jsx(FooterLink, { href: link.href, children: link.label }, index))) })] }), _jsxs(FooterContent, { children: [!hideSocialNetworks && (_jsx(SocialLinks, { children: defaultSocialLinks.map((social, index) => (_jsx(FooterSocialLink, { href: social.href, target: "_blank", rel: "noopener noreferrer", title: social.name, children: social.icon }, index))) })), _jsx(CopyrightText, { variant: "body2", children: t.copyright })] })] }) }));
|
53
|
+
});
|
54
|
+
export { Footer, defaultLanguages };
|
55
|
+
//# sourceMappingURL=Footer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,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,YAAY,CAAC,CAAA;IAClC,CAAC,CAAA;IAED,OAAO,CACL,KAAC,YAAY,cACX,MAAC,eAAe,eACd,MAAC,aAAa,eACZ,KAAC,gBAAgB,cACf,KAAC,gBAAgB,IACf,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,oBAAoB,GACtC,GACe,EACnB,KAAC,UAAU,cACR,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC/B,KAAC,UAAU,IAAa,IAAI,EAAE,IAAI,CAAC,IAAI,YACpC,IAAI,CAAC,KAAK,IADI,KAAK,CAET,CACd,CAAC,GACS,IACC,EAChB,MAAC,aAAa,eACX,CAAC,kBAAkB,IAAI,CACtB,KAAC,WAAW,cACT,kBAAkB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CACzC,KAAC,gBAAgB,IAEf,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,KAAK,EAAE,MAAM,CAAC,IAAI,YAEjB,MAAM,CAAC,IAAI,IANP,KAAK,CAOO,CACpB,CAAC,GACU,CACf,EACD,KAAC,aAAa,IAAC,OAAO,EAAC,OAAO,YAAE,CAAC,CAAC,SAAS,GAAiB,IAC9C,IACA,GACL,CAChB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Footer } from "./Footer";
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
+
declare const meta: Meta<typeof Footer>;
|
4
|
+
type Story = StoryObj<typeof Footer>;
|
5
|
+
declare const Default: Story;
|
6
|
+
declare const SpanishLanguage: Story;
|
7
|
+
declare const HiddenSocialNetworks: Story;
|
8
|
+
declare const CustomLanguages: Story;
|
9
|
+
declare const AllLanguages: Story;
|
10
|
+
export default meta;
|
11
|
+
export { Default, SpanishLanguage, HiddenSocialNetworks, CustomLanguages, AllLanguages, };
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Footer } from "./Footer";
|
3
|
+
import { SupportedLanguage } from "../LanguageDropdown/LanguageDropdown.types";
|
4
|
+
import { FooterList } from "./Footer.stories.styled";
|
5
|
+
const meta = {
|
6
|
+
title: "Decentraland UI/Footer",
|
7
|
+
component: Footer,
|
8
|
+
parameters: {
|
9
|
+
layout: "fullscreen",
|
10
|
+
},
|
11
|
+
tags: ["autodocs"],
|
12
|
+
argTypes: {
|
13
|
+
selectedLanguage: {
|
14
|
+
control: "select",
|
15
|
+
description: "The selected language",
|
16
|
+
options: Object.values(SupportedLanguage),
|
17
|
+
},
|
18
|
+
hideSocialNetworks: {
|
19
|
+
control: "boolean",
|
20
|
+
description: "Whether to hide the social networks",
|
21
|
+
},
|
22
|
+
onLanguageChange: {
|
23
|
+
action: "languageChanged",
|
24
|
+
description: "The function to handle the language change",
|
25
|
+
},
|
26
|
+
languages: {
|
27
|
+
control: "object",
|
28
|
+
description: "The languages to display in the footer",
|
29
|
+
},
|
30
|
+
},
|
31
|
+
};
|
32
|
+
const Default = {};
|
33
|
+
const SpanishLanguage = {
|
34
|
+
args: {
|
35
|
+
selectedLanguage: SupportedLanguage.ES,
|
36
|
+
onLanguageChange: (language) => console.log(`Selected: ${language}`),
|
37
|
+
},
|
38
|
+
};
|
39
|
+
const HiddenSocialNetworks = {
|
40
|
+
args: {
|
41
|
+
hideSocialNetworks: true,
|
42
|
+
},
|
43
|
+
};
|
44
|
+
const CustomLanguages = {
|
45
|
+
args: {
|
46
|
+
languages: [
|
47
|
+
{ code: SupportedLanguage.EN, name: "English", flag: "🇺🇸" },
|
48
|
+
{ code: SupportedLanguage.ES, name: "Español", flag: "🇪🇸" },
|
49
|
+
{ code: SupportedLanguage.FR, name: "Français", flag: "🇫🇷" },
|
50
|
+
],
|
51
|
+
selectedLanguage: SupportedLanguage.ES,
|
52
|
+
onLanguageChange: (language) => console.log(`Selected: ${language}`),
|
53
|
+
},
|
54
|
+
};
|
55
|
+
const AllLanguages = {
|
56
|
+
args: {
|
57
|
+
selectedLanguage: SupportedLanguage.EN,
|
58
|
+
onLanguageChange: (language) => console.log(`Selected: ${language}`),
|
59
|
+
},
|
60
|
+
render: (args) => (_jsxs(FooterList, { children: [_jsx(Footer, { ...args, selectedLanguage: SupportedLanguage.EN }), _jsx(Footer, { ...args, selectedLanguage: SupportedLanguage.ES }), _jsx(Footer, { ...args, selectedLanguage: SupportedLanguage.FR }), _jsx(Footer, { ...args, selectedLanguage: SupportedLanguage.ZH }), _jsx(Footer, { ...args, selectedLanguage: SupportedLanguage.KO }), _jsx(Footer, { ...args, selectedLanguage: SupportedLanguage.JA })] })),
|
61
|
+
};
|
62
|
+
// eslint-disable-next-line import/no-default-export
|
63
|
+
export default meta;
|
64
|
+
export { Default, SpanishLanguage, HiddenSocialNetworks, CustomLanguages, AllLanguages, };
|
65
|
+
//# sourceMappingURL=Footer.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Footer.stories.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGpD,MAAM,IAAI,GAAwB;IAChC,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,gBAAgB,EAAE;YAChB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,uBAAuB;YACpC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;QACtC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,CAAC;KACrE;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAChB,MAAC,UAAU,eACT,KAAC,MAAM,OAAK,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,GAAI,EAC5D,KAAC,MAAM,OAAK,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,GAAI,EAC5D,KAAC,MAAM,OAAK,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,GAAI,EAC5D,KAAC,MAAM,OAAK,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,GAAI,EAC5D,KAAC,MAAM,OAAK,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,GAAI,EAC5D,KAAC,MAAM,OAAK,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,GAAI,IACjD,CACd;CACF,CAAA;AAED,oDAAoD;AACpD,eAAe,IAAI,CAAA;AACnB,OAAO,EACL,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,YAAY,GACb,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
declare const FooterList: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
3
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
4
|
+
theme?: import("@emotion/react").Theme;
|
5
|
+
}, {}, {}>;
|
6
|
+
export { FooterList };
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import styled from "@emotion/styled";
|
2
|
+
import { Box } from "@mui/material";
|
3
|
+
const FooterList = styled(Box)(({ theme }) => ({
|
4
|
+
display: "flex",
|
5
|
+
flexDirection: "column",
|
6
|
+
gap: theme.spacing(2),
|
7
|
+
}));
|
8
|
+
export { FooterList };
|
9
|
+
//# sourceMappingURL=Footer.stories.styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Footer.stories.styled.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.stories.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAEnC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7C,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;CACtB,CAAC,CAAC,CAAA;AAEH,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
declare const StyledFooter: import("@emotion/styled").StyledComponent<{
|
2
|
+
theme?: import("@emotion/react").Theme;
|
3
|
+
as?: import("react").ElementType;
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
5
|
+
declare const FooterContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
8
|
+
theme?: import("@emotion/react").Theme;
|
9
|
+
}, {}, {}>;
|
10
|
+
declare const FooterContent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
12
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
13
|
+
theme?: import("@emotion/react").Theme;
|
14
|
+
}, {}, {}>;
|
15
|
+
declare const LanguageSelector: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
16
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
17
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
18
|
+
theme?: import("@emotion/react").Theme;
|
19
|
+
}, {}, {}>;
|
20
|
+
declare const LegalLinks: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
21
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
22
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
23
|
+
theme?: import("@emotion/react").Theme;
|
24
|
+
}, {}, {}>;
|
25
|
+
declare const FooterLink: import("@emotion/styled").StyledComponent<{
|
26
|
+
theme?: import("@emotion/react").Theme;
|
27
|
+
as?: import("react").ElementType;
|
28
|
+
}, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
29
|
+
declare const SocialLinks: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
30
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
31
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
32
|
+
theme?: import("@emotion/react").Theme;
|
33
|
+
}, {}, {}>;
|
34
|
+
declare const CopyrightText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
35
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
36
|
+
}, "typography" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
37
|
+
theme?: import("@emotion/react").Theme;
|
38
|
+
}, {}, {}>;
|
39
|
+
declare const FooterSocialLink: import("@emotion/styled").StyledComponent<{
|
40
|
+
theme?: import("@emotion/react").Theme;
|
41
|
+
as?: import("react").ElementType;
|
42
|
+
} & import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
|
43
|
+
children?: import("react").ReactNode | undefined;
|
44
|
+
} & {
|
45
|
+
theme?: import("@emotion/react").Theme;
|
46
|
+
}, {}, {}>;
|
47
|
+
export { StyledFooter, FooterContainer, FooterContent, LanguageSelector, LegalLinks, FooterLink, FooterSocialLink, SocialLinks, CopyrightText, };
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import styled from "@emotion/styled";
|
2
|
+
import { Box, Typography } from "@mui/material";
|
3
|
+
const StyledFooter = styled("footer")(({ theme }) => ({
|
4
|
+
backgroundColor: theme.palette.background.paper,
|
5
|
+
borderTop: `1px solid ${theme.palette.divider}`,
|
6
|
+
padding: theme.spacing(4, 0),
|
7
|
+
marginTop: "auto",
|
8
|
+
}));
|
9
|
+
const FooterContainer = styled(Box)(({ theme }) => ({
|
10
|
+
maxWidth: 1200,
|
11
|
+
margin: "0 auto",
|
12
|
+
padding: theme.spacing(0, 2),
|
13
|
+
display: "flex",
|
14
|
+
justifyContent: "space-between",
|
15
|
+
flexWrap: "wrap",
|
16
|
+
gap: theme.spacing(2),
|
17
|
+
minHeight: "60px",
|
18
|
+
[theme.breakpoints.down("lg")]: {
|
19
|
+
flexDirection: "column",
|
20
|
+
},
|
21
|
+
}));
|
22
|
+
const FooterContent = styled(Box)(({ theme }) => ({
|
23
|
+
display: "flex",
|
24
|
+
alignItems: "center",
|
25
|
+
gap: theme.spacing(2),
|
26
|
+
[theme.breakpoints.down("lg")]: {
|
27
|
+
flexDirection: "column",
|
28
|
+
gap: theme.spacing(1),
|
29
|
+
},
|
30
|
+
}));
|
31
|
+
const LanguageSelector = styled(Box)({
|
32
|
+
display: "flex",
|
33
|
+
alignItems: "center",
|
34
|
+
});
|
35
|
+
const LegalLinks = styled(Box)(({ theme }) => ({
|
36
|
+
display: "flex",
|
37
|
+
alignItems: "center",
|
38
|
+
gap: theme.spacing(2),
|
39
|
+
flexWrap: "wrap",
|
40
|
+
[theme.breakpoints.down("lg")]: {
|
41
|
+
justifyContent: "center",
|
42
|
+
gap: theme.spacing(2),
|
43
|
+
},
|
44
|
+
}));
|
45
|
+
const FooterLink = styled("a")(({ theme }) => ({
|
46
|
+
color: theme.palette.text.secondary,
|
47
|
+
textDecoration: "none",
|
48
|
+
fontSize: theme.typography.body2.fontSize,
|
49
|
+
fontFamily: theme.typography.fontFamily,
|
50
|
+
transition: "color 0.2s ease",
|
51
|
+
"&:hover": {
|
52
|
+
color: theme.palette.primary.main,
|
53
|
+
textDecoration: "underline",
|
54
|
+
},
|
55
|
+
}));
|
56
|
+
const SocialLinks = styled(Box)(({ theme }) => ({
|
57
|
+
display: "flex",
|
58
|
+
alignItems: "center",
|
59
|
+
gap: theme.spacing(3),
|
60
|
+
[theme.breakpoints.down("lg")]: {
|
61
|
+
gap: theme.spacing(2),
|
62
|
+
},
|
63
|
+
}));
|
64
|
+
const CopyrightText = styled(Typography)(({ theme }) => ({
|
65
|
+
color: theme.palette.text.secondary,
|
66
|
+
whiteSpace: "nowrap",
|
67
|
+
[theme.breakpoints.down("lg")]: {
|
68
|
+
textAlign: "center",
|
69
|
+
},
|
70
|
+
}));
|
71
|
+
const FooterSocialLink = styled(FooterLink)(({ theme }) => ({
|
72
|
+
width: theme.spacing(2.5),
|
73
|
+
height: theme.spacing(2.5),
|
74
|
+
}));
|
75
|
+
export { StyledFooter, FooterContainer, FooterContent, LanguageSelector, LegalLinks, FooterLink, FooterSocialLink, SocialLinks, CopyrightText, };
|
76
|
+
//# sourceMappingURL=Footer.styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Footer.styled.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK;IAC/C,SAAS,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE;IAC/C,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5B,SAAS,EAAE,MAAM;CAClB,CAAC,CAAC,CAAA;AAEH,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM;IACf,cAAc,EAAE,eAAe;IAC/B,QAAQ,EAAE,MAAM;IAChB,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACrB,SAAS,EAAE,MAAM;IAEjB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,aAAa,EAAE,QAAQ;KACxB;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CA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2
|
+
interface Language {
|
3
|
+
code: SupportedLanguage;
|
4
|
+
name: string;
|
5
|
+
flag: string;
|
6
|
+
}
|
7
|
+
interface FooterLink {
|
8
|
+
label: string;
|
9
|
+
href: string;
|
10
|
+
}
|
11
|
+
interface SocialLink {
|
12
|
+
name: string;
|
13
|
+
href: string;
|
14
|
+
icon?: React.ReactNode;
|
15
|
+
}
|
16
|
+
interface FooterProps {
|
17
|
+
languages?: Language[];
|
18
|
+
selectedLanguage?: SupportedLanguage;
|
19
|
+
onLanguageChange?: (language: SupportedLanguage) => void;
|
20
|
+
hideSocialNetworks?: boolean;
|
21
|
+
}
|
22
|
+
export type { Language, FooterLink, SocialLink, SupportedLanguage, FooterProps };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Footer.types.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Footer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import SvgIcon from "@mui/material/SvgIcon";
|
4
|
+
const DiscordIcon = React.memo((props) => {
|
5
|
+
return (_jsx(SvgIcon, { ...props, viewBox: "0 0 24 24", children: _jsx("path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z", fill: "currentColor" }) }));
|
6
|
+
});
|
7
|
+
export { DiscordIcon };
|
8
|
+
//# sourceMappingURL=DiscordIcon.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DiscordIcon.js","sourceRoot":"","sources":["../../../../src/components/Icon/Social/DiscordIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAyB,MAAM,uBAAuB,CAAA;AAE7D,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAAmB,EAAE,EAAE;IACrD,OAAO,CACL,KAAC,OAAO,OAAK,KAAK,EAAE,OAAO,EAAC,WAAW,YACrC,eACE,CAAC,EAAC,4jCAA4jC,EAC9jC,IAAI,EAAC,cAAc,GACnB,GACM,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import SvgIcon from "@mui/material/SvgIcon";
|
4
|
+
const GitHubIcon = React.memo((props) => {
|
5
|
+
return (_jsx(SvgIcon, { ...props, viewBox: "0 0 24 24", children: _jsx("path", { d: "M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z", fill: "currentColor" }) }));
|
6
|
+
});
|
7
|
+
export { GitHubIcon };
|
8
|
+
//# sourceMappingURL=GitHubIcon.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"GitHubIcon.js","sourceRoot":"","sources":["../../../../src/components/Icon/Social/GitHubIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAyB,MAAM,uBAAuB,CAAA;AAE7D,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAAmB,EAAE,EAAE;IACpD,OAAO,CACL,KAAC,OAAO,OAAK,KAAK,EAAE,OAAO,EAAC,WAAW,YACrC,eACE,CAAC,EAAC,2sBAA2sB,EAC7sB,IAAI,EAAC,cAAc,GACnB,GACM,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import SvgIcon from "@mui/material/SvgIcon";
|
4
|
+
const RedditIcon = React.memo((props) => {
|
5
|
+
return (_jsx(SvgIcon, { ...props, viewBox: "0 0 24 24", children: _jsx("path", { d: "M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z", fill: "currentColor" }) }));
|
6
|
+
});
|
7
|
+
export { RedditIcon };
|
8
|
+
//# sourceMappingURL=RedditIcon.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RedditIcon.js","sourceRoot":"","sources":["../../../../src/components/Icon/Social/RedditIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAyB,MAAM,uBAAuB,CAAA;AAE7D,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAAmB,EAAE,EAAE;IACpD,OAAO,CACL,KAAC,OAAO,OAAK,KAAK,EAAE,OAAO,EAAC,WAAW,YACrC,eACE,CAAC,EAAC,2jCAA2jC,EAC7jC,IAAI,EAAC,cAAc,GACnB,GACM,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { DiscordIcon } from "./DiscordIcon";
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
+
declare const meta: Meta<typeof DiscordIcon>;
|
4
|
+
type Story = StoryObj<typeof DiscordIcon>;
|
5
|
+
declare const Discord: Story;
|
6
|
+
declare const GitHub: Story;
|
7
|
+
declare const Reddit: Story;
|
8
|
+
declare const X: Story;
|
9
|
+
declare const AllSocialIcons: Story;
|
10
|
+
declare const LargeSocialIcons: Story;
|
11
|
+
export default meta;
|
12
|
+
export { Discord, GitHub, Reddit, X, AllSocialIcons, LargeSocialIcons };
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { DiscordIcon } from "./DiscordIcon";
|
3
|
+
import { GitHubIcon } from "./GitHubIcon";
|
4
|
+
import { RedditIcon } from "./RedditIcon";
|
5
|
+
import { XIcon } from "./XIcon";
|
6
|
+
const meta = {
|
7
|
+
title: "Decentraland UI/Icons/Social",
|
8
|
+
component: DiscordIcon,
|
9
|
+
parameters: {
|
10
|
+
layout: "centered",
|
11
|
+
},
|
12
|
+
tags: ["autodocs"],
|
13
|
+
};
|
14
|
+
const Discord = {};
|
15
|
+
const GitHub = {
|
16
|
+
render: () => _jsx(GitHubIcon, {}),
|
17
|
+
};
|
18
|
+
const Reddit = {
|
19
|
+
render: () => _jsx(RedditIcon, {}),
|
20
|
+
};
|
21
|
+
const X = {
|
22
|
+
render: () => _jsx(XIcon, {}),
|
23
|
+
};
|
24
|
+
const AllSocialIcons = {
|
25
|
+
render: () => (_jsxs("div", { style: { display: "flex", gap: "16px", alignItems: "center" }, children: [_jsx(DiscordIcon, {}), _jsx(RedditIcon, {}), _jsx(GitHubIcon, {}), _jsx(XIcon, {})] })),
|
26
|
+
};
|
27
|
+
const LargeSocialIcons = {
|
28
|
+
render: () => (_jsxs("div", { style: { display: "flex", gap: "16px", alignItems: "center" }, children: [_jsx(DiscordIcon, { fontSize: "large" }), _jsx(RedditIcon, { fontSize: "large" }), _jsx(GitHubIcon, { fontSize: "large" }), _jsx(XIcon, { fontSize: "large" })] })),
|
29
|
+
};
|
30
|
+
// eslint-disable-next-line import/no-default-export
|
31
|
+
export default meta;
|
32
|
+
export { Discord, GitHub, Reddit, X, AllSocialIcons, LargeSocialIcons };
|
33
|
+
//# sourceMappingURL=SocialIcons.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SocialIcons.stories.js","sourceRoot":"","sources":["../../../../src/components/Icon/Social/SocialIcons.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAG/B,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,MAAM,EAAE,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2
|
+
import React from "react";
|
3
|
+
import SvgIcon from "@mui/material/SvgIcon";
|
4
|
+
const XIcon = React.memo((props) => {
|
5
|
+
return (_jsx(SvgIcon, { ...props, viewBox: "0 0 24 24", children: _jsx("path", { d: "M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.516.945 1.328 7.91 11.078h-3.246zm0 0", fill: "currentColor" }) }));
|
6
|
+
});
|
7
|
+
export { XIcon };
|
8
|
+
//# sourceMappingURL=XIcon.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"XIcon.js","sourceRoot":"","sources":["../../../../src/components/Icon/Social/XIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAyB,MAAM,uBAAuB,CAAA;AAE7D,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAAmB,EAAE,EAAE;IAC/C,OAAO,CACL,KAAC,OAAO,OAAK,KAAK,EAAE,OAAO,EAAC,WAAW,YACrC,eACE,CAAC,EAAC,0MAA0M,EAC5M,IAAI,EAAC,cAAc,GACnB,GACM,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
@@ -40,6 +40,10 @@ import { StreamingIcon } from "./Notifications/StreamingIcon";
|
|
40
40
|
import { TenderIcon } from "./Notifications/TenderIcon";
|
41
41
|
import { VotingEndedIcon } from "./Notifications/VotingEndedIcon";
|
42
42
|
import { PlacesIcon } from "./PlacesIcon";
|
43
|
+
import { DiscordIcon } from "./Social/DiscordIcon";
|
44
|
+
import { GitHubIcon } from "./Social/GitHubIcon";
|
45
|
+
import { RedditIcon } from "./Social/RedditIcon";
|
46
|
+
import { XIcon } from "./Social/XIcon";
|
43
47
|
import { SparklesIcon } from "./SparklesIcon";
|
44
48
|
import { UtilityIcon } from "./UtilityIcon";
|
45
49
|
import { BaseFemaleIcon } from "./Wearables/BaseFemaleIcon";
|
@@ -64,4 +68,4 @@ import { TiaraIcon } from "./Wearables/TiaraIcon";
|
|
64
68
|
import { TopHeadIcon } from "./Wearables/TopHeadIcon";
|
65
69
|
import { UnisexIcon } from "./Wearables/UnisexIcon";
|
66
70
|
import { UpperBodyIcon } from "./Wearables/UpperBodyIcon";
|
67
|
-
export { AccessRestoredIcon, AccessRestrictedIcon, BaseFemaleIcon, BaseMaleIcon, BidAcceptedIcon, BidReceivedIcon, BodyShapeIcon, CoauthorIcon, EarringIcon, EmptyInboxIcon, EventCancelledIcon, EventStartedIcon, EventStartsSoonIcon, EyebrowsIcon, EyesIcon, EyewearIcon, FacialHairIcon, FeetIcon, GovernanceIcon, HairIcon, HandsWearIcon, HatIcon, HelmetIcon, HistoryIcon, ItemAirdroppedIcon, ItemSoldIcon, JumpInIcon, LandRentedIcon, LocationIcon, LowerBodyIcon, ManaEthIcon, ManaMainnetIcon, ManaMaticIcon, ManaPolygonIcon, MaskIcon, MissingResourcesIcon, MouthIcon, MuteIcon, NewCommentIcon, NewNotificationIcon, NotificationBellActiveIcon, NotificationBellIcon, PermissionGrantedIcon, PermissionRevokedIcon, PitchIcon, PlacesIcon, ProjectEnactedIcon, ProposalFinishedIcon, PropsIcon, ReferralInvitedUserAcceptedIcon, ReferralInviteFriendsIcon, RentPeriodEndingIcon, RewardIcon, SkinIcon, SmartWearableIcon, SoundIcon, SparklesIcon, StreamingIcon, TenderIcon, TiaraIcon, TopHeadIcon, UnisexIcon, UpperBodyIcon, UtilityIcon, VotingEndedIcon, VolumeIcon, };
|
71
|
+
export { AccessRestoredIcon, AccessRestrictedIcon, BaseFemaleIcon, BaseMaleIcon, BidAcceptedIcon, BidReceivedIcon, BodyShapeIcon, CoauthorIcon, EarringIcon, EmptyInboxIcon, EventCancelledIcon, EventStartedIcon, EventStartsSoonIcon, EyebrowsIcon, EyesIcon, EyewearIcon, FacialHairIcon, FeetIcon, GovernanceIcon, HairIcon, HandsWearIcon, HatIcon, HelmetIcon, HistoryIcon, ItemAirdroppedIcon, ItemSoldIcon, JumpInIcon, LandRentedIcon, LocationIcon, LowerBodyIcon, ManaEthIcon, ManaMainnetIcon, ManaMaticIcon, ManaPolygonIcon, MaskIcon, MissingResourcesIcon, MouthIcon, MuteIcon, NewCommentIcon, NewNotificationIcon, NotificationBellActiveIcon, NotificationBellIcon, PermissionGrantedIcon, PermissionRevokedIcon, PitchIcon, PlacesIcon, ProjectEnactedIcon, ProposalFinishedIcon, PropsIcon, ReferralInvitedUserAcceptedIcon, ReferralInviteFriendsIcon, RentPeriodEndingIcon, RewardIcon, SkinIcon, SmartWearableIcon, SoundIcon, SparklesIcon, StreamingIcon, TenderIcon, TiaraIcon, TopHeadIcon, UnisexIcon, UpperBodyIcon, UtilityIcon, VotingEndedIcon, VolumeIcon, DiscordIcon, GitHubIcon, RedditIcon, XIcon, };
|
@@ -40,6 +40,10 @@ import { StreamingIcon } from "./Notifications/StreamingIcon";
|
|
40
40
|
import { TenderIcon } from "./Notifications/TenderIcon";
|
41
41
|
import { VotingEndedIcon } from "./Notifications/VotingEndedIcon";
|
42
42
|
import { PlacesIcon } from "./PlacesIcon";
|
43
|
+
import { DiscordIcon } from "./Social/DiscordIcon";
|
44
|
+
import { GitHubIcon } from "./Social/GitHubIcon";
|
45
|
+
import { RedditIcon } from "./Social/RedditIcon";
|
46
|
+
import { XIcon } from "./Social/XIcon";
|
43
47
|
import { SparklesIcon } from "./SparklesIcon";
|
44
48
|
import { UtilityIcon } from "./UtilityIcon";
|
45
49
|
import { BaseFemaleIcon } from "./Wearables/BaseFemaleIcon";
|
@@ -64,5 +68,5 @@ import { TiaraIcon } from "./Wearables/TiaraIcon";
|
|
64
68
|
import { TopHeadIcon } from "./Wearables/TopHeadIcon";
|
65
69
|
import { UnisexIcon } from "./Wearables/UnisexIcon";
|
66
70
|
import { UpperBodyIcon } from "./Wearables/UpperBodyIcon";
|
67
|
-
export { AccessRestoredIcon, AccessRestrictedIcon, BaseFemaleIcon, BaseMaleIcon, BidAcceptedIcon, BidReceivedIcon, BodyShapeIcon, CoauthorIcon, EarringIcon, EmptyInboxIcon, EventCancelledIcon, EventStartedIcon, EventStartsSoonIcon, EyebrowsIcon, EyesIcon, EyewearIcon, FacialHairIcon, FeetIcon, GovernanceIcon, HairIcon, HandsWearIcon, HatIcon, HelmetIcon, HistoryIcon, ItemAirdroppedIcon, ItemSoldIcon, JumpInIcon, LandRentedIcon, LocationIcon, LowerBodyIcon, ManaEthIcon, ManaMainnetIcon, ManaMaticIcon, ManaPolygonIcon, MaskIcon, MissingResourcesIcon, MouthIcon, MuteIcon, NewCommentIcon, NewNotificationIcon, NotificationBellActiveIcon, NotificationBellIcon, PermissionGrantedIcon, PermissionRevokedIcon, PitchIcon, PlacesIcon, ProjectEnactedIcon, ProposalFinishedIcon, PropsIcon, ReferralInvitedUserAcceptedIcon, ReferralInviteFriendsIcon, RentPeriodEndingIcon, RewardIcon, SkinIcon, SmartWearableIcon, SoundIcon, SparklesIcon, StreamingIcon, TenderIcon, TiaraIcon, TopHeadIcon, UnisexIcon, UpperBodyIcon, UtilityIcon, VotingEndedIcon, VolumeIcon, };
|
71
|
+
export { AccessRestoredIcon, AccessRestrictedIcon, BaseFemaleIcon, BaseMaleIcon, BidAcceptedIcon, BidReceivedIcon, BodyShapeIcon, CoauthorIcon, EarringIcon, EmptyInboxIcon, EventCancelledIcon, EventStartedIcon, EventStartsSoonIcon, EyebrowsIcon, EyesIcon, EyewearIcon, FacialHairIcon, FeetIcon, GovernanceIcon, HairIcon, HandsWearIcon, HatIcon, HelmetIcon, HistoryIcon, ItemAirdroppedIcon, ItemSoldIcon, JumpInIcon, LandRentedIcon, LocationIcon, LowerBodyIcon, ManaEthIcon, ManaMainnetIcon, ManaMaticIcon, ManaPolygonIcon, MaskIcon, MissingResourcesIcon, MouthIcon, MuteIcon, NewCommentIcon, NewNotificationIcon, NotificationBellActiveIcon, NotificationBellIcon, PermissionGrantedIcon, PermissionRevokedIcon, PitchIcon, PlacesIcon, ProjectEnactedIcon, ProposalFinishedIcon, PropsIcon, ReferralInvitedUserAcceptedIcon, ReferralInviteFriendsIcon, RentPeriodEndingIcon, RewardIcon, SkinIcon, SmartWearableIcon, SoundIcon, SparklesIcon, StreamingIcon, TenderIcon, TiaraIcon, TopHeadIcon, UnisexIcon, UpperBodyIcon, UtilityIcon, VotingEndedIcon, VolumeIcon, DiscordIcon, GitHubIcon, RedditIcon, XIcon, };
|
68
72
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,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AS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,cAAc,EACd,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,aAAa,EACb,OAAO,EACP,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,aAAa,EACb,eAAe,EACf,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,+BAA+B,EAC/B,yBAAyB,EACzB,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,aAAa,EACb,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,aAAa,EACb,WAAW,EACX,eAAe,EACf,UAAU,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,O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d,QAAQ,EACR,aAAa,EACb,OAAO,EACP,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,aAAa,EACb,eAAe,EACf,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,+BAA+B,EAC/B,yBAAyB,EACzB,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,aAAa,EACb,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,aAAa,EACb,WAAW,EACX,eAAe,EACf,UAAU,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,KAAK,GACN,CAAA"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React, { useState } from "react";
|
3
|
+
import { ExpandMore } from "@mui/icons-material";
|
4
|
+
import { Menu } from "@mui/material";
|
5
|
+
import { FlagIcon, LanguageButton, StyledMenuItem, } from "./LanguageDropdown.styled";
|
6
|
+
const LanguageDropdown = React.memo((props) => {
|
7
|
+
const { languages, selectedLanguage, onLanguageChange } = props;
|
8
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
9
|
+
const open = Boolean(anchorEl);
|
10
|
+
const handleClick = (event) => {
|
11
|
+
setAnchorEl(event.currentTarget);
|
12
|
+
};
|
13
|
+
const handleClose = () => {
|
14
|
+
setAnchorEl(null);
|
15
|
+
};
|
16
|
+
const handleLanguageSelect = (languageCode) => {
|
17
|
+
onLanguageChange(languageCode);
|
18
|
+
handleClose();
|
19
|
+
};
|
20
|
+
const selectedLang = languages.find((lang) => lang.code === selectedLanguage);
|
21
|
+
return (_jsxs("div", { children: [_jsx(LanguageButton, { onClick: handleClick, endIcon: _jsx(ExpandMore, {}), "aria-controls": open ? "language-menu" : undefined, "aria-haspopup": "true", "aria-expanded": open ? "true" : undefined, children: selectedLang && (_jsxs(_Fragment, { children: [_jsx(FlagIcon, { children: selectedLang.flag }), selectedLang.code.toUpperCase()] })) }), _jsx(Menu, { id: "language-menu", anchorEl: anchorEl, anchorOrigin: {
|
22
|
+
vertical: "top",
|
23
|
+
horizontal: "left",
|
24
|
+
}, transformOrigin: {
|
25
|
+
vertical: "bottom",
|
26
|
+
horizontal: "left",
|
27
|
+
}, open: open, onClose: handleClose, MenuListProps: {
|
28
|
+
"aria-labelledby": "language-button",
|
29
|
+
}, children: languages.map((language) => (_jsxs(StyledMenuItem, { onClick: () => handleLanguageSelect(language.code), selected: language.code === selectedLanguage, children: [_jsx(FlagIcon, { children: language.flag }), language.name] }, language.code))) })] }));
|
30
|
+
});
|
31
|
+
export { LanguageDropdown };
|
32
|
+
//# sourceMappingURL=LanguageDropdown.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LanguageDropdown.js","sourceRoot":"","sources":["../../../src/components/LanguageDropdown/LanguageDropdown.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAKpC,OAAO,EACL,QAAQ,EACR,cAAc,EACd,cAAc,GACf,MAAM,2BAA2B,CAAA;AAElC,MAAM,gBAAgB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAA4B,EAAE,EAAE;IACnE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAA;IAE/D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QA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SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC3B,MAAC,cAAc,IAEb,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAClD,QAAQ,EAAE,QAAQ,CAAC,IAAI,KAAK,gBAAgB,aAE5C,KAAC,QAAQ,cAAE,QAAQ,CAAC,IAAI,GAAY,EACnC,QAAQ,CAAC,IAAI,KALT,QAAQ,CAAC,IAAI,CAMH,CAClB,CAAC,GACG,IACH,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { LanguageDropdown } from "./LanguageDropdown";
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
+
declare const meta: Meta<typeof LanguageDropdown>;
|
4
|
+
type Story = StoryObj<typeof LanguageDropdown>;
|
5
|
+
declare const Default: Story;
|
6
|
+
declare const SpanishSelected: Story;
|
7
|
+
declare const LimitedLanguages: Story;
|
8
|
+
export default meta;
|
9
|
+
export { Default, SpanishSelected, LimitedLanguages };
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { LanguageDropdown } from "./LanguageDropdown";
|
2
|
+
import { SupportedLanguage } from "./LanguageDropdown.types";
|
3
|
+
const meta = {
|
4
|
+
title: "Decentraland UI/LanguageDropdown",
|
5
|
+
component: LanguageDropdown,
|
6
|
+
parameters: {
|
7
|
+
layout: "centered",
|
8
|
+
},
|
9
|
+
tags: ["autodocs"],
|
10
|
+
};
|
11
|
+
const Default = {
|
12
|
+
args: {
|
13
|
+
languages: [
|
14
|
+
{ code: SupportedLanguage.EN, name: "English", flag: "🇺🇸" },
|
15
|
+
{ code: SupportedLanguage.ES, name: "Español", flag: "🇪🇸" },
|
16
|
+
{ code: SupportedLanguage.FR, name: "Français", flag: "🇫🇷" },
|
17
|
+
{ code: SupportedLanguage.ZH, name: "中文", flag: "🇨🇳" },
|
18
|
+
{ code: SupportedLanguage.KO, name: "한국어", flag: "" },
|
19
|
+
{ code: SupportedLanguage.JA, name: "日本語", flag: "" },
|
20
|
+
],
|
21
|
+
selectedLanguage: SupportedLanguage.EN,
|
22
|
+
onLanguageChange: (language) => console.log(`Selected: ${language}`),
|
23
|
+
},
|
24
|
+
};
|
25
|
+
const SpanishSelected = {
|
26
|
+
args: {
|
27
|
+
...Default.args,
|
28
|
+
selectedLanguage: SupportedLanguage.ES,
|
29
|
+
},
|
30
|
+
};
|
31
|
+
const LimitedLanguages = {
|
32
|
+
args: {
|
33
|
+
languages: [
|
34
|
+
{ code: SupportedLanguage.EN, name: "English", flag: "🇺🇸" },
|
35
|
+
{ code: SupportedLanguage.ES, name: "Español", flag: "🇪🇸" },
|
36
|
+
{ code: SupportedLanguage.FR, name: "Français", flag: "🇫🇷" },
|
37
|
+
],
|
38
|
+
selectedLanguage: SupportedLanguage.FR,
|
39
|
+
onLanguageChange: (language) => console.log(`Selected: ${language}`),
|
40
|
+
},
|
41
|
+
};
|
42
|
+
// eslint-disable-next-line import/no-default-export
|
43
|
+
export default meta;
|
44
|
+
export { Default, SpanishSelected, LimitedLanguages };
|
45
|
+
//# sourceMappingURL=LanguageDropdown.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LanguageDropdown.stories.js","sourceRoot":"","sources":["../../../src/components/LanguageDropdown/LanguageDropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAG5D,MAAM,IAAI,GAAkC;IAC1C,KAAK,EAAE,kCAAkC;IACzC,SAAS,EAAE,gBAAgB;IAC3B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAA;AAID,MAAM,OAAO,GAAU;IACrB,IAAI,EAAE;QACJ,SA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IAAI,EAAE,MAAM,EAAE;SAC/D;QACD,gBAAgB,EAAE,iBAAiB,CAAC,EAAE;QACtC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,CAAC;KACrE;CACF,CAAA;AAED,oDAAoD;AACpD,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAA"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
declare const LanguageButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
2
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
3
|
+
}, "disabled" | "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "tabIndex" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "size"> & {
|
4
|
+
theme?: import("@emotion/react").Theme;
|
5
|
+
}, {}, {}>;
|
6
|
+
declare const StyledMenuItem: import("@emotion/styled").StyledComponent<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
7
|
+
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
8
|
+
}, "disabled" | "selected" | "className" | "style" | "classes" | "children" | "sx" | "autoFocus" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableGutters" | "dense" | "divider"> & {
|
9
|
+
theme?: import("@emotion/react").Theme;
|
10
|
+
}, {}, {}>;
|
11
|
+
declare const FlagIcon: import("@emotion/styled").StyledComponent<{
|
12
|
+
theme?: import("@emotion/react").Theme;
|
13
|
+
as?: import("react").ElementType;
|
14
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
15
|
+
export { LanguageButton, StyledMenuItem, FlagIcon };
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import styled from "@emotion/styled";
|
2
|
+
import { Button, MenuItem } from "@mui/material";
|
3
|
+
const LanguageButton = styled(Button)(({ theme }) => ({
|
4
|
+
minWidth: "auto",
|
5
|
+
padding: theme.spacing(0.5, 1),
|
6
|
+
color: theme.palette.text.secondary,
|
7
|
+
fontSize: theme.typography.body2.fontSize,
|
8
|
+
textTransform: "none",
|
9
|
+
fontWeight: "normal",
|
10
|
+
"&:hover": {
|
11
|
+
backgroundColor: "transparent",
|
12
|
+
color: theme.palette.primary.main,
|
13
|
+
},
|
14
|
+
}));
|
15
|
+
const StyledMenuItem = styled(MenuItem)(({ theme }) => ({
|
16
|
+
fontSize: theme.typography.body2.fontSize,
|
17
|
+
minHeight: "auto",
|
18
|
+
padding: theme.spacing(1, 2),
|
19
|
+
}));
|
20
|
+
const FlagIcon = styled("span")({
|
21
|
+
marginRight: 8,
|
22
|
+
display: "inline-flex",
|
23
|
+
alignItems: "center",
|
24
|
+
});
|
25
|
+
export { LanguageButton, StyledMenuItem, FlagIcon };
|
26
|
+
//# sourceMappingURL=LanguageDropdown.styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LanguageDropdown.styled.js","sourceRoot":"","sources":["../../../src/components/LanguageDropdown/LanguageDropdown.styled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"zh",
|
6
|
+
KO = "ko",
|
7
|
+
JA = "ja"
|
8
|
+
}
|
9
|
+
type Language = {
|
10
|
+
code: SupportedLanguage;
|
11
|
+
name: string;
|
12
|
+
flag: string;
|
13
|
+
};
|
14
|
+
type LanguageDropdownProps = {
|
15
|
+
languages: Language[];
|
16
|
+
selectedLanguage: SupportedLanguage;
|
17
|
+
onLanguageChange: (language: SupportedLanguage) => void;
|
18
|
+
};
|
19
|
+
export { SupportedLanguage };
|
20
|
+
export type { Language, LanguageDropdownProps };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
var SupportedLanguage;
|
2
|
+
(function (SupportedLanguage) {
|
3
|
+
SupportedLanguage["EN"] = "en";
|
4
|
+
SupportedLanguage["ES"] = "es";
|
5
|
+
SupportedLanguage["FR"] = "fr";
|
6
|
+
SupportedLanguage["ZH"] = "zh";
|
7
|
+
SupportedLanguage["KO"] = "ko";
|
8
|
+
SupportedLanguage["JA"] = "ja";
|
9
|
+
})(SupportedLanguage || (SupportedLanguage = {}));
|
10
|
+
export { SupportedLanguage };
|
11
|
+
//# sourceMappingURL=LanguageDropdown.types.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LanguageDropdown.types.js","sourceRoot":"","sources":["../../../src/components/LanguageDropdown/LanguageDropdown.types.ts"],"names":[],"mappings":"AAAA,IAAK,iBAOJ;AAPD,WAAK,iBAAiB;IACpB,8BAAS,CAAA;IACT,8BAAS,CAAA;IACT,8BAAS,CAAA;IACT,8BAAS,CAAA;IACT,8BAAS,CAAA;IACT,8BAAS,CAAA;AACX,CAAC,EAPI,iBAAiB,KAAjB,iBAAiB,QAOrB;AAcD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/LanguageDropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
package/dist/config/env/dev.json
CHANGED
@@ -37,5 +37,13 @@
|
|
37
37
|
"DAO_GRANTS_URL": "https://decentraland.zone/dao/grants/",
|
38
38
|
"GOVERNANCE_PROJECTS_URL": "https://decentraland.zone/governance/projects/",
|
39
39
|
"DOCS_DAO_URL": "https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",
|
40
|
-
"MARKETPLACE_SETTINGS_URL": "https://decentraland.zone/marketplace/settings"
|
40
|
+
"MARKETPLACE_SETTINGS_URL": "https://decentraland.zone/marketplace/settings",
|
41
|
+
"DISCORD_URL": "https://dcl.gg/discord",
|
42
|
+
"REDDIT_URL": "https://reddit.com/r/decentraland",
|
43
|
+
"GITHUB_URL": "https://github.com/decentraland",
|
44
|
+
"X_URL": "https://x.com/decentraland",
|
45
|
+
"PRIVACY_POLICY_URL": "https://decentraland.zone/privacy",
|
46
|
+
"TERMS_OF_USE_URL": "https://decentraland.zone/terms",
|
47
|
+
"CONTENT_POLICY_URL": "https://decentraland.zone/content",
|
48
|
+
"CODE_OF_ETHICS_URL": "https://decentraland.zone/ethics"
|
41
49
|
}
|
@@ -37,5 +37,13 @@
|
|
37
37
|
"DAO_GRANTS_URL": "https://decentraland.org/dao/grants/",
|
38
38
|
"GOVERNANCE_PROJECTS_URL": "https://decentraland.org/governance/projects/",
|
39
39
|
"DOCS_DAO_URL": "https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",
|
40
|
-
"MARKETPLACE_SETTINGS_URL": "https://decentraland.org/marketplace/settings"
|
40
|
+
"MARKETPLACE_SETTINGS_URL": "https://decentraland.org/marketplace/settings",
|
41
|
+
"DISCORD_URL": "https://dcl.gg/discord",
|
42
|
+
"REDDIT_URL": "https://reddit.com/r/decentraland",
|
43
|
+
"GITHUB_URL": "https://github.com/decentraland",
|
44
|
+
"X_URL": "https://x.com/decentraland",
|
45
|
+
"PRIVACY_POLICY_URL": "https://decentraland.org/privacy",
|
46
|
+
"TERMS_OF_USE_URL": "https://decentraland.org/terms",
|
47
|
+
"CONTENT_POLICY_URL": "https://decentraland.org/content",
|
48
|
+
"CODE_OF_ETHICS_URL": "https://decentraland.org/ethics"
|
41
49
|
}
|
package/dist/config/env/stg.json
CHANGED
@@ -37,5 +37,13 @@
|
|
37
37
|
"DAO_GRANTS_URL": "https://decentraland.today/dao/grants/",
|
38
38
|
"GOVERNANCE_PROJECTS_URL": "https://decentraland.today/governance/projects/",
|
39
39
|
"DOCS_DAO_URL": "https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",
|
40
|
-
"MARKETPLACE_SETTINGS_URL": "https://decentraland.today/marketplace/settings"
|
40
|
+
"MARKETPLACE_SETTINGS_URL": "https://decentraland.today/marketplace/settings",
|
41
|
+
"DISCORD_URL": "https://dcl.gg/discord",
|
42
|
+
"REDDIT_URL": "https://reddit.com/r/decentraland",
|
43
|
+
"GITHUB_URL": "https://github.com/decentraland",
|
44
|
+
"X_URL": "https://x.com/decentraland",
|
45
|
+
"PRIVACY_POLICY_URL": "https://decentraland.org/privacy",
|
46
|
+
"TERMS_OF_USE_URL": "https://decentraland.org/terms",
|
47
|
+
"CONTENT_POLICY_URL": "https://decentraland.org/content",
|
48
|
+
"CODE_OF_ETHICS_URL": "https://decentraland.org/ethics"
|
41
49
|
}
|
package/dist/index.d.ts
CHANGED
@@ -27,6 +27,8 @@ export * from "./components/UserMenu";
|
|
27
27
|
export * from "./components/Banner";
|
28
28
|
export * from "./components/WearablePreview";
|
29
29
|
export * from "./components/Profile";
|
30
|
+
export * from "./components/Footer";
|
31
|
+
export * from "./components/LanguageDropdown";
|
30
32
|
export * as dclNetworkUtils from "./lib/network";
|
31
33
|
export * from "./modules/jumpIn";
|
32
34
|
export * as dclTools from "./modules";
|
package/dist/index.js
CHANGED
@@ -28,6 +28,8 @@ export * from "./components/UserMenu";
|
|
28
28
|
export * from "./components/Banner";
|
29
29
|
export * from "./components/WearablePreview";
|
30
30
|
export * from "./components/Profile";
|
31
|
+
export * from "./components/Footer";
|
32
|
+
export * from "./components/LanguageDropdown";
|
31
33
|
export * as dclNetworkUtils from "./lib/network";
|
32
34
|
export * from "./modules/jumpIn";
|
33
35
|
export * as dclTools from "./modules";
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAA;AAC9C,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAE/C,gBAAgB;AAChB,OAAO,EACL,KAAK,IAAI,UAAU,EACnB,IAAI,IAAI,SAAS,EACjB,aAAa,IAAI,gBAAgB,GAClC,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAA;AAC9D,cAAc,sBAAsB,CAAA;AACpC,OAAO,KAAK,eAAe,MAAM,iCAAiC,CAAA;AAClE,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,cAAc,kCAAkC,CAAA;AAChD,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBA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kB,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "decentraland-ui2",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.30.1-18413326493.commit-522b173",
|
4
4
|
"description": "Decentraland's UI components and styles",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -98,5 +98,5 @@
|
|
98
98
|
"files": [
|
99
99
|
"dist"
|
100
100
|
],
|
101
|
-
"commit": "
|
101
|
+
"commit": "522b173bbe21a5f7721b5ff2238597a0b3abf5b5"
|
102
102
|
}
|