monica-alexandria 3.0.6 → 3.0.8
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/index.es.js
CHANGED
|
@@ -1002,7 +1002,7 @@ import e,{createContext as t,useContext as n,useState as a}from"react";import r,
|
|
|
1002
1002
|
@media ${N}{
|
|
1003
1003
|
display: block !important;
|
|
1004
1004
|
}
|
|
1005
|
-
`,Ke=t({language:"el",setLanguage:()=>{}}),Ue=t({region:"Greece",setRegion:()=>{}}),Xe=t=>{const{setActiveMenu:a}=n(Re),{setLanguage:r}=n(Ke);return e.createElement(Ne,null,e.createElement(Ge,{onClick:()=>a("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Language)),e.createElement(Pe,{onClick:()=>
|
|
1005
|
+
`,Ke=t({language:"el",setLanguage:()=>{}}),Ue=t({region:"Greece",setRegion:()=>{}}),Xe=t=>{const{setActiveMenu:a}=n(Re),{setLanguage:r}=n(Ke),o=e=>{r(e),a("Main")};return e.createElement(Ne,null,e.createElement(Ge,{onClick:()=>a("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Language)),e.createElement(Pe,{onClick:()=>o("el")},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"})),e.createElement("h5",null,"Ελληνικά"))),e.createElement(Pe,{onClick:()=>o("en")},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),e.createElement("h5",null,"English"))),e.createElement(Pe,{onClick:()=>o("de")},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"})),e.createElement("h5",null,"Deutsch"))))},je=t({theme:"light",setTheme:()=>{}}),qe=r.div`
|
|
1006
1006
|
display: flex;
|
|
1007
1007
|
align-items: center;
|
|
1008
1008
|
gap: .5rem;
|
|
@@ -1042,13 +1042,13 @@ import e,{createContext as t,useContext as n,useState as a}from"react";import r,
|
|
|
1042
1042
|
transform: translateX(2.3rem);
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
`,Oe=t=>{
|
|
1045
|
+
`,Oe=t=>{const{theme:a,setTheme:r}=n(o);return e.createElement(qe,{onClick:()=>r("dark"===a?"light":"dark")},e.createElement("picture",null,e.createElement(d,{Icon:"Sun"})),e.createElement("section",null,e.createElement("div",{className:"dark"===a?"Dark":"Light"})),e.createElement("picture",null,e.createElement(d,{Icon:"Moon"})))},Je=r.div`
|
|
1046
1046
|
display: flex;
|
|
1047
1047
|
align-items: center;
|
|
1048
1048
|
justify-content: space-between;
|
|
1049
1049
|
gap: 1rem;
|
|
1050
1050
|
padding: var(--normalPads);
|
|
1051
|
-
`,We=t=>{const{region:a}=n(Ue),{setHamState:r}=n(ze),{setActiveMenu:o}=n(Re);return e.createElement(Ne,null,e.createElement(Ge,{onClick:()=>r(!1)},e.createElement(d,{Icon:"Xicon"}),e.createElement("h4",null,t.text_Title_Main)),e.createElement(Je,null,e.createElement("h5",null,t.text_Theme_Main),e.createElement(Oe,{theme:t.theme,onClick_Theme:t.onClick_Theme})),e.createElement(Ve,null,e.createElement(De,null),e.createElement(Pe,{onClick:t.onCLick_Account_Main},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:t.img_Account_Main,alt:t.imgAlt_Account_Main})),e.createElement("h5",null,t.text_Account_Main)))),e.createElement(Pe,{onClick:t.onClick_Settings_Main},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Settings"})),e.createElement("h5",null,t.text_Settings_Main))),e.createElement(Pe,{onClick:()=>o("Language")},e.createElement("main",null,e.createElement("picture",null,"el"===t.language?e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"}):"de"===t.language?e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"}):e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),"el"===t.language?e.createElement("h5",null,"Ελληνικά"):"de"===t.language?e.createElement("h5",null,"Deutsch"):e.createElement("h5",null,"English")),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),e.createElement(Pe,{onClick:()=>o("Region")},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Flag"})),e.createElement("h5",null,a)),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),e.createElement(Fe,null,e.createElement(De,null),e.createElement(Pe,{onClick:t.onCLick_Logout},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Logout"})),e.createElement("h5",null,t.text_Logout)))))};let Ye=[{country:"Andorra",code:"AD"},{country:"United Arab Emirates",code:"AE"},{country:"Afghanistan",code:"AF"},{country:"Antigua and Barbuda",code:"AG"},{country:"Anguilla",code:"AI"},{country:"Albania",code:"AL"},{country:"Armenia",code:"AM"},{country:"Angola",code:"AO"},{country:"Antarctica",code:"AQ"},{country:"Argentina",code:"AR"},{country:"American Samoa",code:"AS"},{country:"Austria",code:"AT"},{country:"Australia",code:"AU"},{country:"Aruba",code:"AW"},{country:"Åland Islands",code:"AX"},{country:"Azerbaijan",code:"AZ"},{country:"Bosnia and Herzegovina",code:"BA"},{country:"Barbados",code:"BB"},{country:"Bangladesh",code:"BD"},{country:"Belgium",code:"BE"},{country:"Burkina Faso",code:"BF"},{country:"Bulgaria",code:"BG"},{country:"Bahrain",code:"BH"},{country:"Burundi",code:"BI"},{country:"Benin",code:"BJ"},{country:"Saint Barthélemy",code:"BL"},{country:"Bermuda",code:"BM"},{country:"Brunei Darussalam",code:"BN"},{country:"Bolivia, Plurinational State of",code:"BO"},{country:"Bonaire, Sint Eustatius and Saba",code:"BQ"},{country:"Brazil",code:"BR"},{country:"Bahamas",code:"BS"},{country:"Bhutan",code:"BT"},{country:"Botswana",code:"BW"},{country:"Belarus",code:"BY"},{country:"Belize",code:"BZ"},{country:"Canada",code:"CA"},{country:"Cocos (Keeling) Islands",code:"CC"},{country:"Democratic Republic of the Congo",code:"CD"},{country:"Central African Republic",code:"CF"},{country:"Republic of the Congo",code:"CG"},{country:"Switzerland",code:"CH"},{country:"Côte d'Ivoire",code:"CI"},{country:"Cook Islands",code:"CK"},{country:"Chile",code:"CL"},{country:"Cameroon",code:"CM"},{country:"China",code:"CN"},{country:"Colombia",code:"CO"},{country:"Costa Rica",code:"CR"},{country:"Cuba",code:"CU"},{country:"Cabo Verde",code:"CV"},{country:"Curaçao",code:"CW"},{country:"Christmas Island",code:"CX"},{country:"Cyprus",code:"CY"},{country:"Czech Republic",code:"CZ"},{country:"Deutschland",code:"DE"},{country:"Djibouti",code:"DJ"},{country:"Denmark",code:"DK"},{country:"Dominica",code:"DM"},{country:"Dominican Republic",code:"DO"},{country:"Algeria",code:"DZ"},{country:"Ecuador",code:"EC"},{country:"Estonia",code:"EE"},{country:"Egypt",code:"EG"},{country:"Western Sahara",code:"EH"},{country:"Eritrea",code:"ER"},{country:"Spain",code:"ES"},{country:"Ethiopia",code:"ET"},{country:"Finland",code:"FI"},{country:"Fiji",code:"FJ"},{country:"Falkland Islands (Malvinas)",code:"FK"},{country:"Micronesia, Federated States of",code:"FM"},{country:"Faroe Islands",code:"FO"},{country:"France",code:"FR"},{country:"Gabon",code:"GA"},{country:"United Kingdom",code:"GB"},{country:"Grenada",code:"GD"},{country:"Georgia",code:"GE"},{country:"French Guiana",code:"GF"},{country:"Guernsey",code:"GG"},{country:"Ghana",code:"GH"},{country:"Gibraltar",code:"GI"},{country:"Greenland",code:"GL"},{country:"Gambia",code:"GM"},{country:"Guinea",code:"GN"},{country:"Guadeloupe",code:"GP"},{country:"Equatorial Guinea",code:"GQ"},{country:"Greece",code:"GR"},{country:"South Georgia and the South Sandwich Islands",code:"GS"},{country:"Guatemala",code:"GT"},{country:"Guam",code:"GU"},{country:"Guinea-Bissau",code:"GW"},{country:"Guyana",code:"GY"},{country:"Hong Kong",code:"HK"},{country:"Honduras",code:"HN"},{country:"Croatia",code:"HR"},{country:"Haiti",code:"HT"},{country:"Hungary",code:"HU"},{country:"Indonesia",code:"ID"},{country:"Ireland",code:"IE"},{country:"Israel",code:"IL"},{country:"Isle of Man",code:"IM"},{country:"India",code:"IN"},{country:"Iraq",code:"IQ"},{country:"Iran",code:"IR"},{country:"Iceland",code:"IS"},{country:"Italy",code:"IT"},{country:"Jersey",code:"JE"},{country:"Jamaica",code:"JM"},{country:"Jordan",code:"JO"},{country:"Japan",code:"JP"},{country:"Kenya",code:"KE"},{country:"Kyrgyzstan",code:"KG"},{country:"Cambodia",code:"KH"},{country:"Kiribati",code:"KI"},{country:"Comoros",code:"KM"},{country:"Saint Kitts and Nevis",code:"KN"},{country:"North Korea",code:"KP"},{country:"South Korea",code:"KR"},{country:"Kuwait",code:"KW"},{country:"Cayman Islands",code:"KY"},{country:"Kazakhstan",code:"KZ"},{country:"Lao People's Democratic Republic",code:"LA"},{country:"Lebanon",code:"LB"},{country:"Saint Lucia",code:"LC"},{country:"Liechtenstein",code:"LI"},{country:"Sri Lanka",code:"LK"},{country:"Liberia",code:"LR"},{country:"Lesotho",code:"LS"},{country:"Lithuania",code:"LT"},{country:"Luxembourg",code:"LU"},{country:"Latvia",code:"LV"},{country:"Libya",code:"LY"},{country:"Morocco",code:"MA"},{country:"Monaco",code:"MC"},{country:"Moldova",code:"MD"},{country:"Montenegro",code:"ME"},{country:"Saint Martin (French part)",code:"MF"},{country:"Madagascar",code:"MG"},{country:"Marshall Islands",code:"MH"},{country:"North Macedonia",code:"MK"},{country:"Mali",code:"ML"},{country:"Myanmar",code:"MM"},{country:"Mongolia",code:"MN"},{country:"Macao",code:"MO"},{country:"Northern Mariana Islands",code:"MP"},{country:"Martinique",code:"MQ"},{country:"Mauritania",code:"MR"},{country:"Montserrat",code:"MS"},{country:"Malta",code:"MT"},{country:"Mauritius",code:"MU"},{country:"Maldives",code:"MV"},{country:"Malawi",code:"MW"},{country:"Mexico",code:"MX"},{country:"Malaysia",code:"MY"},{country:"Mozambique",code:"MZ"},{country:"Namibia",code:"NA"},{country:"New Caledonia",code:"NC"},{country:"Niger",code:"NE"},{country:"Norfolk Island",code:"NF"},{country:"Nigeria",code:"NG"},{country:"Nicaragua",code:"NI"},{country:"Netherlands",code:"NL"},{country:"Norway",code:"NO"},{country:"Nepal",code:"NP"},{country:"Nauru",code:"NR"},{country:"Niue",code:"NU"},{country:"New Zealand",code:"NZ"},{country:"Oman",code:"OM"},{country:"Panama",code:"PA"},{country:"Peru",code:"PE"},{country:"French Polynesia",code:"PF"},{country:"Papua New Guinea",code:"PG"},{country:"Philippines",code:"PH"},{country:"Pakistan",code:"PK"},{country:"Poland",code:"PL"},{country:"Saint Pierre and Miquelon",code:"PM"},{country:"Pitcairn",code:"PN"},{country:"Puerto Rico",code:"PR"},{country:"Palestine",code:"PS"},{country:"Portugal",code:"PT"},{country:"Palau",code:"PW"},{country:"Paraguay",code:"PY"},{country:"Qatar",code:"QA"},{country:"Réunion",code:"RE"},{country:"Romania",code:"RO"},{country:"Serbia",code:"RS"},{country:"Russian Federation",code:"RU"},{country:"Rwanda",code:"RW"},{country:"Saudi Arabia",code:"SA"},{country:"Solomon Islands",code:"SB"},{country:"Seychelles",code:"SC"},{country:"Sudan",code:"SD"},{country:"Sweden",code:"SE"},{country:"Singapore",code:"SG"},{country:"Saint Helena, Ascension and Tristan da Cunha",code:"SH"},{country:"Slovenia",code:"SI"},{country:"Svalbard and Jan Mayen",code:"SJ"},{country:"Slovakia",code:"SK"},{country:"Sierra Leone",code:"SL"},{country:"San Marino",code:"SM"},{country:"Senegal",code:"SN"},{country:"Somalia",code:"SO"},{country:"Suriname",code:"SR"},{country:"South Sudan",code:"SS"},{country:"Sao Tome and Principe",code:"ST"},{country:"El Salvador",code:"SV"},{country:"Sint Maarten (Dutch part)",code:"SX"},{country:"Syrian Arab Republic",code:"SY"},{country:"Eswatini",code:"SZ"},{country:"Turks and Caicos Islands",code:"TC"},{country:"Chad",code:"TD"},{country:"French Southern Territories",code:"TF"},{country:"Togo",code:"TG"},{country:"Thailand",code:"TH"},{country:"Tajikistan",code:"TJ"},{country:"Tokelau",code:"TK"},{country:"Timor-Leste",code:"TL"},{country:"Turkmenistan",code:"TM"},{country:"Tunisia",code:"TN"},{country:"Tonga",code:""},{country:"Turkey",code:"TR"},{country:"Trinidad and Tobago",code:"TT"},{country:"Tuvalu",code:"TV"},{country:"Taiwan, Province of China",code:"TW"},{country:"Tanzania",code:"TZ"},{country:"Ukraine",code:"UA"},{country:"Uganda",code:"UG"},{country:"United States",code:"US"},{country:"Uruguay",code:"UY"},{country:"Uzbekistan",code:"UZ"},{country:"Holy See (Vatican City State)",code:"VA"},{country:"Saint Vincent and the Grenadines",code:"VC"},{country:"Venezuela",code:"VE"},{country:"Virgin Islands, British",code:"VG"},{country:"Virgin Islands, U.S.",code:"VI"},{country:"Viet Nam",code:"VN"},{country:"Vanuatu",code:"VU"},{country:"Wallis and Futuna",code:"WF"},{country:"Samoa",code:"AS"},{country:"Kosovo",code:"XK"},{country:"Yemen",code:"YE"},{country:"Mayotte",code:"YT"},{country:"South Africa",code:"ZA"},{country:"Zambia",code:"ZM"},{country:"Zimbabwe",code:"ZW"}];const Qe=t=>{const{region:a,setRegion:r}=n(Ue),{setActiveMenu:o}=n(Re);return e.createElement(Ne,null,e.createElement(Ge,{onClick:()=>o("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Region)),Ye.map(((t,n)=>e.createElement(Pe,{onClick:()=>{return e=t.country,r(e),void o("primary");var e},className:a===t.country?"SelectedRegion":""},e.createElement("main",null,e.createElement("h5",null,t.country))))))},et=t=>{const{activeMenu:r}=n(Re),[o,i]=a(null),l=e=>{const t=e.offsetHeight;i(t)};return e.createElement(He,{style:{height:o}},e.createElement(c,{in:"Main"===r,timeout:500,unmountOnExit:!0,classNames:"Menu-primary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(We,{theme:t.theme,onClick_Title_Main:t.onClick_Title_Main,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onClick_Theme:t.onClick_Theme,onCLick_Account_Main:t.onCLick_Account_Main,img_Account_Main:t.img_Account_Main,imgAlt_Account_Main:t.imgAlt_Account_Main,text_Account_Main:t.text_Account_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main}))),e.createElement(c,{in:"Language"===r,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Xe,{onClick_Title_Language:t.onClick_Title_Language,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_Deutsch_Language:t.onClick_Deutsch_Language}))),e.createElement(c,{in:"Region"===r,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Qe,{onClick_Country_Region:t.onClick_Country_Region,onClick_Title_Region:t.onClick_Title_Region,text_Title_Region:t.text_Title_Region}))))},tt=r.div`
|
|
1051
|
+
`,We=t=>{const{region:a}=n(Ue),{setHamState:r}=n(ze),{setActiveMenu:o}=n(Re);return e.createElement(Ne,null,e.createElement(Ge,{onClick:()=>r(!1)},e.createElement(d,{Icon:"Xicon"}),e.createElement("h4",null,t.text_Title_Main)),e.createElement(Je,null,e.createElement("h5",null,t.text_Theme_Main),e.createElement(Oe,{theme:t.theme,onClick_Theme:t.onClick_Theme})),e.createElement(Ve,null,e.createElement(De,null),e.createElement(Pe,{onClick:t.onCLick_Account_Main},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:t.img_Account_Main,alt:t.imgAlt_Account_Main})),e.createElement("h5",null,t.text_Account_Main)))),e.createElement(Pe,{onClick:t.onClick_Settings_Main},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Settings"})),e.createElement("h5",null,t.text_Settings_Main))),e.createElement(Pe,{onClick:()=>o("Language")},e.createElement("main",null,e.createElement("picture",null,"el"===t.language?e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"}):"de"===t.language?e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"}):e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),"el"===t.language?e.createElement("h5",null,"Ελληνικά"):"de"===t.language?e.createElement("h5",null,"Deutsch"):e.createElement("h5",null,"English")),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),e.createElement(Pe,{onClick:()=>o("Region")},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Flag"})),e.createElement("h5",null,a)),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),e.createElement(Fe,null,e.createElement(De,null),e.createElement(Pe,{onClick:t.onCLick_Logout},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Logout"})),e.createElement("h5",null,t.text_Logout)))))};let Ye=[{country:"Andorra",code:"AD"},{country:"United Arab Emirates",code:"AE"},{country:"Afghanistan",code:"AF"},{country:"Antigua and Barbuda",code:"AG"},{country:"Anguilla",code:"AI"},{country:"Albania",code:"AL"},{country:"Armenia",code:"AM"},{country:"Angola",code:"AO"},{country:"Antarctica",code:"AQ"},{country:"Argentina",code:"AR"},{country:"American Samoa",code:"AS"},{country:"Austria",code:"AT"},{country:"Australia",code:"AU"},{country:"Aruba",code:"AW"},{country:"Åland Islands",code:"AX"},{country:"Azerbaijan",code:"AZ"},{country:"Bosnia and Herzegovina",code:"BA"},{country:"Barbados",code:"BB"},{country:"Bangladesh",code:"BD"},{country:"Belgium",code:"BE"},{country:"Burkina Faso",code:"BF"},{country:"Bulgaria",code:"BG"},{country:"Bahrain",code:"BH"},{country:"Burundi",code:"BI"},{country:"Benin",code:"BJ"},{country:"Saint Barthélemy",code:"BL"},{country:"Bermuda",code:"BM"},{country:"Brunei Darussalam",code:"BN"},{country:"Bolivia, Plurinational State of",code:"BO"},{country:"Bonaire, Sint Eustatius and Saba",code:"BQ"},{country:"Brazil",code:"BR"},{country:"Bahamas",code:"BS"},{country:"Bhutan",code:"BT"},{country:"Botswana",code:"BW"},{country:"Belarus",code:"BY"},{country:"Belize",code:"BZ"},{country:"Canada",code:"CA"},{country:"Cocos (Keeling) Islands",code:"CC"},{country:"Democratic Republic of the Congo",code:"CD"},{country:"Central African Republic",code:"CF"},{country:"Republic of the Congo",code:"CG"},{country:"Switzerland",code:"CH"},{country:"Côte d'Ivoire",code:"CI"},{country:"Cook Islands",code:"CK"},{country:"Chile",code:"CL"},{country:"Cameroon",code:"CM"},{country:"China",code:"CN"},{country:"Colombia",code:"CO"},{country:"Costa Rica",code:"CR"},{country:"Cuba",code:"CU"},{country:"Cabo Verde",code:"CV"},{country:"Curaçao",code:"CW"},{country:"Christmas Island",code:"CX"},{country:"Cyprus",code:"CY"},{country:"Czech Republic",code:"CZ"},{country:"Deutschland",code:"DE"},{country:"Djibouti",code:"DJ"},{country:"Denmark",code:"DK"},{country:"Dominica",code:"DM"},{country:"Dominican Republic",code:"DO"},{country:"Algeria",code:"DZ"},{country:"Ecuador",code:"EC"},{country:"Estonia",code:"EE"},{country:"Egypt",code:"EG"},{country:"Western Sahara",code:"EH"},{country:"Eritrea",code:"ER"},{country:"Spain",code:"ES"},{country:"Ethiopia",code:"ET"},{country:"Finland",code:"FI"},{country:"Fiji",code:"FJ"},{country:"Falkland Islands (Malvinas)",code:"FK"},{country:"Micronesia, Federated States of",code:"FM"},{country:"Faroe Islands",code:"FO"},{country:"France",code:"FR"},{country:"Gabon",code:"GA"},{country:"United Kingdom",code:"GB"},{country:"Grenada",code:"GD"},{country:"Georgia",code:"GE"},{country:"French Guiana",code:"GF"},{country:"Guernsey",code:"GG"},{country:"Ghana",code:"GH"},{country:"Gibraltar",code:"GI"},{country:"Greenland",code:"GL"},{country:"Gambia",code:"GM"},{country:"Guinea",code:"GN"},{country:"Guadeloupe",code:"GP"},{country:"Equatorial Guinea",code:"GQ"},{country:"Greece",code:"GR"},{country:"South Georgia and the South Sandwich Islands",code:"GS"},{country:"Guatemala",code:"GT"},{country:"Guam",code:"GU"},{country:"Guinea-Bissau",code:"GW"},{country:"Guyana",code:"GY"},{country:"Hong Kong",code:"HK"},{country:"Honduras",code:"HN"},{country:"Croatia",code:"HR"},{country:"Haiti",code:"HT"},{country:"Hungary",code:"HU"},{country:"Indonesia",code:"ID"},{country:"Ireland",code:"IE"},{country:"Israel",code:"IL"},{country:"Isle of Man",code:"IM"},{country:"India",code:"IN"},{country:"Iraq",code:"IQ"},{country:"Iran",code:"IR"},{country:"Iceland",code:"IS"},{country:"Italy",code:"IT"},{country:"Jersey",code:"JE"},{country:"Jamaica",code:"JM"},{country:"Jordan",code:"JO"},{country:"Japan",code:"JP"},{country:"Kenya",code:"KE"},{country:"Kyrgyzstan",code:"KG"},{country:"Cambodia",code:"KH"},{country:"Kiribati",code:"KI"},{country:"Comoros",code:"KM"},{country:"Saint Kitts and Nevis",code:"KN"},{country:"North Korea",code:"KP"},{country:"South Korea",code:"KR"},{country:"Kuwait",code:"KW"},{country:"Cayman Islands",code:"KY"},{country:"Kazakhstan",code:"KZ"},{country:"Lao People's Democratic Republic",code:"LA"},{country:"Lebanon",code:"LB"},{country:"Saint Lucia",code:"LC"},{country:"Liechtenstein",code:"LI"},{country:"Sri Lanka",code:"LK"},{country:"Liberia",code:"LR"},{country:"Lesotho",code:"LS"},{country:"Lithuania",code:"LT"},{country:"Luxembourg",code:"LU"},{country:"Latvia",code:"LV"},{country:"Libya",code:"LY"},{country:"Morocco",code:"MA"},{country:"Monaco",code:"MC"},{country:"Moldova",code:"MD"},{country:"Montenegro",code:"ME"},{country:"Saint Martin (French part)",code:"MF"},{country:"Madagascar",code:"MG"},{country:"Marshall Islands",code:"MH"},{country:"North Macedonia",code:"MK"},{country:"Mali",code:"ML"},{country:"Myanmar",code:"MM"},{country:"Mongolia",code:"MN"},{country:"Macao",code:"MO"},{country:"Northern Mariana Islands",code:"MP"},{country:"Martinique",code:"MQ"},{country:"Mauritania",code:"MR"},{country:"Montserrat",code:"MS"},{country:"Malta",code:"MT"},{country:"Mauritius",code:"MU"},{country:"Maldives",code:"MV"},{country:"Malawi",code:"MW"},{country:"Mexico",code:"MX"},{country:"Malaysia",code:"MY"},{country:"Mozambique",code:"MZ"},{country:"Namibia",code:"NA"},{country:"New Caledonia",code:"NC"},{country:"Niger",code:"NE"},{country:"Norfolk Island",code:"NF"},{country:"Nigeria",code:"NG"},{country:"Nicaragua",code:"NI"},{country:"Netherlands",code:"NL"},{country:"Norway",code:"NO"},{country:"Nepal",code:"NP"},{country:"Nauru",code:"NR"},{country:"Niue",code:"NU"},{country:"New Zealand",code:"NZ"},{country:"Oman",code:"OM"},{country:"Panama",code:"PA"},{country:"Peru",code:"PE"},{country:"French Polynesia",code:"PF"},{country:"Papua New Guinea",code:"PG"},{country:"Philippines",code:"PH"},{country:"Pakistan",code:"PK"},{country:"Poland",code:"PL"},{country:"Saint Pierre and Miquelon",code:"PM"},{country:"Pitcairn",code:"PN"},{country:"Puerto Rico",code:"PR"},{country:"Palestine",code:"PS"},{country:"Portugal",code:"PT"},{country:"Palau",code:"PW"},{country:"Paraguay",code:"PY"},{country:"Qatar",code:"QA"},{country:"Réunion",code:"RE"},{country:"Romania",code:"RO"},{country:"Serbia",code:"RS"},{country:"Russian Federation",code:"RU"},{country:"Rwanda",code:"RW"},{country:"Saudi Arabia",code:"SA"},{country:"Solomon Islands",code:"SB"},{country:"Seychelles",code:"SC"},{country:"Sudan",code:"SD"},{country:"Sweden",code:"SE"},{country:"Singapore",code:"SG"},{country:"Saint Helena, Ascension and Tristan da Cunha",code:"SH"},{country:"Slovenia",code:"SI"},{country:"Svalbard and Jan Mayen",code:"SJ"},{country:"Slovakia",code:"SK"},{country:"Sierra Leone",code:"SL"},{country:"San Marino",code:"SM"},{country:"Senegal",code:"SN"},{country:"Somalia",code:"SO"},{country:"Suriname",code:"SR"},{country:"South Sudan",code:"SS"},{country:"Sao Tome and Principe",code:"ST"},{country:"El Salvador",code:"SV"},{country:"Sint Maarten (Dutch part)",code:"SX"},{country:"Syrian Arab Republic",code:"SY"},{country:"Eswatini",code:"SZ"},{country:"Turks and Caicos Islands",code:"TC"},{country:"Chad",code:"TD"},{country:"French Southern Territories",code:"TF"},{country:"Togo",code:"TG"},{country:"Thailand",code:"TH"},{country:"Tajikistan",code:"TJ"},{country:"Tokelau",code:"TK"},{country:"Timor-Leste",code:"TL"},{country:"Turkmenistan",code:"TM"},{country:"Tunisia",code:"TN"},{country:"Tonga",code:""},{country:"Turkey",code:"TR"},{country:"Trinidad and Tobago",code:"TT"},{country:"Tuvalu",code:"TV"},{country:"Taiwan, Province of China",code:"TW"},{country:"Tanzania",code:"TZ"},{country:"Ukraine",code:"UA"},{country:"Uganda",code:"UG"},{country:"United States",code:"US"},{country:"Uruguay",code:"UY"},{country:"Uzbekistan",code:"UZ"},{country:"Holy See (Vatican City State)",code:"VA"},{country:"Saint Vincent and the Grenadines",code:"VC"},{country:"Venezuela",code:"VE"},{country:"Virgin Islands, British",code:"VG"},{country:"Virgin Islands, U.S.",code:"VI"},{country:"Viet Nam",code:"VN"},{country:"Vanuatu",code:"VU"},{country:"Wallis and Futuna",code:"WF"},{country:"Samoa",code:"AS"},{country:"Kosovo",code:"XK"},{country:"Yemen",code:"YE"},{country:"Mayotte",code:"YT"},{country:"South Africa",code:"ZA"},{country:"Zambia",code:"ZM"},{country:"Zimbabwe",code:"ZW"}];const Qe=t=>{const{region:a,setRegion:r}=n(Ue),{setActiveMenu:o}=n(Re);return e.createElement(Ne,null,e.createElement(Ge,{onClick:()=>o("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Region)),Ye.map(((t,n)=>e.createElement(Pe,{onClick:()=>{return e=t.country,r(e),void o("Main");var e},className:a===t.country?"SelectedRegion":""},e.createElement("main",null,e.createElement("h5",null,t.country))))))},et=t=>{const{activeMenu:r}=n(Re),[o,i]=a(null),l=e=>{const t=e.offsetHeight;i(t)};return e.createElement(He,{style:{height:o}},e.createElement(c,{in:"Main"===r,timeout:500,unmountOnExit:!0,classNames:"Menu-primary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(We,{theme:t.theme,onClick_Title_Main:t.onClick_Title_Main,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onClick_Theme:t.onClick_Theme,onCLick_Account_Main:t.onCLick_Account_Main,img_Account_Main:t.img_Account_Main,imgAlt_Account_Main:t.imgAlt_Account_Main,text_Account_Main:t.text_Account_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main}))),e.createElement(c,{in:"Language"===r,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Xe,{onClick_Title_Language:t.onClick_Title_Language,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_Deutsch_Language:t.onClick_Deutsch_Language}))),e.createElement(c,{in:"Region"===r,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Qe,{onClick_Country_Region:t.onClick_Country_Region,onClick_Title_Region:t.onClick_Title_Region,text_Title_Region:t.text_Title_Region}))))},tt=r.div`
|
|
1052
1052
|
justify-self: flex-end;
|
|
1053
1053
|
display: flex;
|
|
1054
1054
|
align-items: center;
|
package/dist/index.js
CHANGED
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
@media ${A}{
|
|
1003
1003
|
display: block !important;
|
|
1004
1004
|
}
|
|
1005
|
-
`,Te=e.createContext({language:"el",setLanguage:()=>{}}),Ae=e.createContext({region:"Greece",setRegion:()=>{}}),Ie=t=>{const{setActiveMenu:a}=e.useContext(xe),{setLanguage:n}=e.useContext(Te);return r.default.createElement(Me,null,r.default.createElement(ke,{onClick:()=>a("Main")},r.default.createElement(d,{Icon:"Back"}),r.default.createElement("h4",null,t.text_Title_Language)),r.default.createElement(_e,{onClick:()=>
|
|
1005
|
+
`,Te=e.createContext({language:"el",setLanguage:()=>{}}),Ae=e.createContext({region:"Greece",setRegion:()=>{}}),Ie=t=>{const{setActiveMenu:a}=e.useContext(xe),{setLanguage:n}=e.useContext(Te),o=e=>{n(e),a("Main")};return r.default.createElement(Me,null,r.default.createElement(ke,{onClick:()=>a("Main")},r.default.createElement(d,{Icon:"Back"}),r.default.createElement("h4",null,t.text_Title_Language)),r.default.createElement(_e,{onClick:()=>o("el")},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"})),r.default.createElement("h5",null,"Ελληνικά"))),r.default.createElement(_e,{onClick:()=>o("en")},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),r.default.createElement("h5",null,"English"))),r.default.createElement(_e,{onClick:()=>o("de")},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"})),r.default.createElement("h5",null,"Deutsch"))))},Ze=e.createContext({theme:"light",setTheme:()=>{}}),$e=o.default.div`
|
|
1006
1006
|
display: flex;
|
|
1007
1007
|
align-items: center;
|
|
1008
1008
|
gap: .5rem;
|
|
@@ -1042,13 +1042,13 @@
|
|
|
1042
1042
|
transform: translateX(2.3rem);
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
`,Be=a=>{
|
|
1045
|
+
`,Be=a=>{const{theme:n,setTheme:o}=e.useContext(t.ThemeContext);return r.default.createElement($e,{onClick:()=>o("dark"===n?"light":"dark")},r.default.createElement("picture",null,r.default.createElement(d,{Icon:"Sun"})),r.default.createElement("section",null,r.default.createElement("div",{className:"dark"===n?"Dark":"Light"})),r.default.createElement("picture",null,r.default.createElement(d,{Icon:"Moon"})))},Re=o.default.div`
|
|
1046
1046
|
display: flex;
|
|
1047
1047
|
align-items: center;
|
|
1048
1048
|
justify-content: space-between;
|
|
1049
1049
|
gap: 1rem;
|
|
1050
1050
|
padding: var(--normalPads);
|
|
1051
|
-
`,Pe=t=>{const{region:a}=e.useContext(Ae),{setHamState:n}=e.useContext(we),{setActiveMenu:o}=e.useContext(xe);return r.default.createElement(Me,null,r.default.createElement(ke,{onClick:()=>n(!1)},r.default.createElement(d,{Icon:"Xicon"}),r.default.createElement("h4",null,t.text_Title_Main)),r.default.createElement(Re,null,r.default.createElement("h5",null,t.text_Theme_Main),r.default.createElement(Be,{theme:t.theme,onClick_Theme:t.onClick_Theme})),r.default.createElement(Se,null,r.default.createElement(Ce,null),r.default.createElement(_e,{onClick:t.onCLick_Account_Main},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement("img",{src:t.img_Account_Main,alt:t.imgAlt_Account_Main})),r.default.createElement("h5",null,t.text_Account_Main)))),r.default.createElement(_e,{onClick:t.onClick_Settings_Main},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement(d,{Icon:"Settings"})),r.default.createElement("h5",null,t.text_Settings_Main))),r.default.createElement(_e,{onClick:()=>o("Language")},r.default.createElement("main",null,r.default.createElement("picture",null,"el"===t.language?r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"}):"de"===t.language?r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"}):r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),"el"===t.language?r.default.createElement("h5",null,"Ελληνικά"):"de"===t.language?r.default.createElement("h5",null,"Deutsch"):r.default.createElement("h5",null,"English")),r.default.createElement("aside",null,r.default.createElement(d,{Icon:"Next"}))),r.default.createElement(_e,{onClick:()=>o("Region")},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement(d,{Icon:"Flag"})),r.default.createElement("h5",null,a)),r.default.createElement("aside",null,r.default.createElement(d,{Icon:"Next"}))),r.default.createElement(Le,null,r.default.createElement(Ce,null),r.default.createElement(_e,{onClick:t.onCLick_Logout},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement(d,{Icon:"Logout"})),r.default.createElement("h5",null,t.text_Logout)))))};let ze=[{country:"Andorra",code:"AD"},{country:"United Arab Emirates",code:"AE"},{country:"Afghanistan",code:"AF"},{country:"Antigua and Barbuda",code:"AG"},{country:"Anguilla",code:"AI"},{country:"Albania",code:"AL"},{country:"Armenia",code:"AM"},{country:"Angola",code:"AO"},{country:"Antarctica",code:"AQ"},{country:"Argentina",code:"AR"},{country:"American Samoa",code:"AS"},{country:"Austria",code:"AT"},{country:"Australia",code:"AU"},{country:"Aruba",code:"AW"},{country:"Åland Islands",code:"AX"},{country:"Azerbaijan",code:"AZ"},{country:"Bosnia and Herzegovina",code:"BA"},{country:"Barbados",code:"BB"},{country:"Bangladesh",code:"BD"},{country:"Belgium",code:"BE"},{country:"Burkina Faso",code:"BF"},{country:"Bulgaria",code:"BG"},{country:"Bahrain",code:"BH"},{country:"Burundi",code:"BI"},{country:"Benin",code:"BJ"},{country:"Saint Barthélemy",code:"BL"},{country:"Bermuda",code:"BM"},{country:"Brunei Darussalam",code:"BN"},{country:"Bolivia, Plurinational State of",code:"BO"},{country:"Bonaire, Sint Eustatius and Saba",code:"BQ"},{country:"Brazil",code:"BR"},{country:"Bahamas",code:"BS"},{country:"Bhutan",code:"BT"},{country:"Botswana",code:"BW"},{country:"Belarus",code:"BY"},{country:"Belize",code:"BZ"},{country:"Canada",code:"CA"},{country:"Cocos (Keeling) Islands",code:"CC"},{country:"Democratic Republic of the Congo",code:"CD"},{country:"Central African Republic",code:"CF"},{country:"Republic of the Congo",code:"CG"},{country:"Switzerland",code:"CH"},{country:"Côte d'Ivoire",code:"CI"},{country:"Cook Islands",code:"CK"},{country:"Chile",code:"CL"},{country:"Cameroon",code:"CM"},{country:"China",code:"CN"},{country:"Colombia",code:"CO"},{country:"Costa Rica",code:"CR"},{country:"Cuba",code:"CU"},{country:"Cabo Verde",code:"CV"},{country:"Curaçao",code:"CW"},{country:"Christmas Island",code:"CX"},{country:"Cyprus",code:"CY"},{country:"Czech Republic",code:"CZ"},{country:"Deutschland",code:"DE"},{country:"Djibouti",code:"DJ"},{country:"Denmark",code:"DK"},{country:"Dominica",code:"DM"},{country:"Dominican Republic",code:"DO"},{country:"Algeria",code:"DZ"},{country:"Ecuador",code:"EC"},{country:"Estonia",code:"EE"},{country:"Egypt",code:"EG"},{country:"Western Sahara",code:"EH"},{country:"Eritrea",code:"ER"},{country:"Spain",code:"ES"},{country:"Ethiopia",code:"ET"},{country:"Finland",code:"FI"},{country:"Fiji",code:"FJ"},{country:"Falkland Islands (Malvinas)",code:"FK"},{country:"Micronesia, Federated States of",code:"FM"},{country:"Faroe Islands",code:"FO"},{country:"France",code:"FR"},{country:"Gabon",code:"GA"},{country:"United Kingdom",code:"GB"},{country:"Grenada",code:"GD"},{country:"Georgia",code:"GE"},{country:"French Guiana",code:"GF"},{country:"Guernsey",code:"GG"},{country:"Ghana",code:"GH"},{country:"Gibraltar",code:"GI"},{country:"Greenland",code:"GL"},{country:"Gambia",code:"GM"},{country:"Guinea",code:"GN"},{country:"Guadeloupe",code:"GP"},{country:"Equatorial Guinea",code:"GQ"},{country:"Greece",code:"GR"},{country:"South Georgia and the South Sandwich Islands",code:"GS"},{country:"Guatemala",code:"GT"},{country:"Guam",code:"GU"},{country:"Guinea-Bissau",code:"GW"},{country:"Guyana",code:"GY"},{country:"Hong Kong",code:"HK"},{country:"Honduras",code:"HN"},{country:"Croatia",code:"HR"},{country:"Haiti",code:"HT"},{country:"Hungary",code:"HU"},{country:"Indonesia",code:"ID"},{country:"Ireland",code:"IE"},{country:"Israel",code:"IL"},{country:"Isle of Man",code:"IM"},{country:"India",code:"IN"},{country:"Iraq",code:"IQ"},{country:"Iran",code:"IR"},{country:"Iceland",code:"IS"},{country:"Italy",code:"IT"},{country:"Jersey",code:"JE"},{country:"Jamaica",code:"JM"},{country:"Jordan",code:"JO"},{country:"Japan",code:"JP"},{country:"Kenya",code:"KE"},{country:"Kyrgyzstan",code:"KG"},{country:"Cambodia",code:"KH"},{country:"Kiribati",code:"KI"},{country:"Comoros",code:"KM"},{country:"Saint Kitts and Nevis",code:"KN"},{country:"North Korea",code:"KP"},{country:"South Korea",code:"KR"},{country:"Kuwait",code:"KW"},{country:"Cayman Islands",code:"KY"},{country:"Kazakhstan",code:"KZ"},{country:"Lao People's Democratic Republic",code:"LA"},{country:"Lebanon",code:"LB"},{country:"Saint Lucia",code:"LC"},{country:"Liechtenstein",code:"LI"},{country:"Sri Lanka",code:"LK"},{country:"Liberia",code:"LR"},{country:"Lesotho",code:"LS"},{country:"Lithuania",code:"LT"},{country:"Luxembourg",code:"LU"},{country:"Latvia",code:"LV"},{country:"Libya",code:"LY"},{country:"Morocco",code:"MA"},{country:"Monaco",code:"MC"},{country:"Moldova",code:"MD"},{country:"Montenegro",code:"ME"},{country:"Saint Martin (French part)",code:"MF"},{country:"Madagascar",code:"MG"},{country:"Marshall Islands",code:"MH"},{country:"North Macedonia",code:"MK"},{country:"Mali",code:"ML"},{country:"Myanmar",code:"MM"},{country:"Mongolia",code:"MN"},{country:"Macao",code:"MO"},{country:"Northern Mariana Islands",code:"MP"},{country:"Martinique",code:"MQ"},{country:"Mauritania",code:"MR"},{country:"Montserrat",code:"MS"},{country:"Malta",code:"MT"},{country:"Mauritius",code:"MU"},{country:"Maldives",code:"MV"},{country:"Malawi",code:"MW"},{country:"Mexico",code:"MX"},{country:"Malaysia",code:"MY"},{country:"Mozambique",code:"MZ"},{country:"Namibia",code:"NA"},{country:"New Caledonia",code:"NC"},{country:"Niger",code:"NE"},{country:"Norfolk Island",code:"NF"},{country:"Nigeria",code:"NG"},{country:"Nicaragua",code:"NI"},{country:"Netherlands",code:"NL"},{country:"Norway",code:"NO"},{country:"Nepal",code:"NP"},{country:"Nauru",code:"NR"},{country:"Niue",code:"NU"},{country:"New Zealand",code:"NZ"},{country:"Oman",code:"OM"},{country:"Panama",code:"PA"},{country:"Peru",code:"PE"},{country:"French Polynesia",code:"PF"},{country:"Papua New Guinea",code:"PG"},{country:"Philippines",code:"PH"},{country:"Pakistan",code:"PK"},{country:"Poland",code:"PL"},{country:"Saint Pierre and Miquelon",code:"PM"},{country:"Pitcairn",code:"PN"},{country:"Puerto Rico",code:"PR"},{country:"Palestine",code:"PS"},{country:"Portugal",code:"PT"},{country:"Palau",code:"PW"},{country:"Paraguay",code:"PY"},{country:"Qatar",code:"QA"},{country:"Réunion",code:"RE"},{country:"Romania",code:"RO"},{country:"Serbia",code:"RS"},{country:"Russian Federation",code:"RU"},{country:"Rwanda",code:"RW"},{country:"Saudi Arabia",code:"SA"},{country:"Solomon Islands",code:"SB"},{country:"Seychelles",code:"SC"},{country:"Sudan",code:"SD"},{country:"Sweden",code:"SE"},{country:"Singapore",code:"SG"},{country:"Saint Helena, Ascension and Tristan da Cunha",code:"SH"},{country:"Slovenia",code:"SI"},{country:"Svalbard and Jan Mayen",code:"SJ"},{country:"Slovakia",code:"SK"},{country:"Sierra Leone",code:"SL"},{country:"San Marino",code:"SM"},{country:"Senegal",code:"SN"},{country:"Somalia",code:"SO"},{country:"Suriname",code:"SR"},{country:"South Sudan",code:"SS"},{country:"Sao Tome and Principe",code:"ST"},{country:"El Salvador",code:"SV"},{country:"Sint Maarten (Dutch part)",code:"SX"},{country:"Syrian Arab Republic",code:"SY"},{country:"Eswatini",code:"SZ"},{country:"Turks and Caicos Islands",code:"TC"},{country:"Chad",code:"TD"},{country:"French Southern Territories",code:"TF"},{country:"Togo",code:"TG"},{country:"Thailand",code:"TH"},{country:"Tajikistan",code:"TJ"},{country:"Tokelau",code:"TK"},{country:"Timor-Leste",code:"TL"},{country:"Turkmenistan",code:"TM"},{country:"Tunisia",code:"TN"},{country:"Tonga",code:""},{country:"Turkey",code:"TR"},{country:"Trinidad and Tobago",code:"TT"},{country:"Tuvalu",code:"TV"},{country:"Taiwan, Province of China",code:"TW"},{country:"Tanzania",code:"TZ"},{country:"Ukraine",code:"UA"},{country:"Uganda",code:"UG"},{country:"United States",code:"US"},{country:"Uruguay",code:"UY"},{country:"Uzbekistan",code:"UZ"},{country:"Holy See (Vatican City State)",code:"VA"},{country:"Saint Vincent and the Grenadines",code:"VC"},{country:"Venezuela",code:"VE"},{country:"Virgin Islands, British",code:"VG"},{country:"Virgin Islands, U.S.",code:"VI"},{country:"Viet Nam",code:"VN"},{country:"Vanuatu",code:"VU"},{country:"Wallis and Futuna",code:"WF"},{country:"Samoa",code:"AS"},{country:"Kosovo",code:"XK"},{country:"Yemen",code:"YE"},{country:"Mayotte",code:"YT"},{country:"South Africa",code:"ZA"},{country:"Zambia",code:"ZM"},{country:"Zimbabwe",code:"ZW"}];const He=t=>{const{region:a,setRegion:n}=e.useContext(Ae),{setActiveMenu:o}=e.useContext(xe);return r.default.createElement(Me,null,r.default.createElement(ke,{onClick:()=>o("Main")},r.default.createElement(d,{Icon:"Back"}),r.default.createElement("h4",null,t.text_Title_Region)),ze.map(((e,t)=>r.default.createElement(_e,{onClick:()=>{return t=e.country,n(t),void o("primary");var t},className:a===e.country?"SelectedRegion":""},r.default.createElement("main",null,r.default.createElement("h5",null,e.country))))))},Ge=t=>{const{activeMenu:n}=e.useContext(xe),[o,l]=e.useState(null),c=e=>{const t=e.offsetHeight;l(t)};return r.default.createElement(be,{style:{height:o}},r.default.createElement(a.CSSTransition,{in:"Main"===n,timeout:500,unmountOnExit:!0,classNames:"Menu-primary",onEnter:c},r.default.createElement("div",{className:"Menu"},r.default.createElement(Pe,{theme:t.theme,onClick_Title_Main:t.onClick_Title_Main,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onClick_Theme:t.onClick_Theme,onCLick_Account_Main:t.onCLick_Account_Main,img_Account_Main:t.img_Account_Main,imgAlt_Account_Main:t.imgAlt_Account_Main,text_Account_Main:t.text_Account_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main}))),r.default.createElement(a.CSSTransition,{in:"Language"===n,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:c},r.default.createElement("div",{className:"Menu"},r.default.createElement(Ie,{onClick_Title_Language:t.onClick_Title_Language,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_Deutsch_Language:t.onClick_Deutsch_Language}))),r.default.createElement(a.CSSTransition,{in:"Region"===n,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:c},r.default.createElement("div",{className:"Menu"},r.default.createElement(He,{onClick_Country_Region:t.onClick_Country_Region,onClick_Title_Region:t.onClick_Title_Region,text_Title_Region:t.text_Title_Region}))))},Ne=o.default.div`
|
|
1051
|
+
`,Pe=t=>{const{region:a}=e.useContext(Ae),{setHamState:n}=e.useContext(we),{setActiveMenu:o}=e.useContext(xe);return r.default.createElement(Me,null,r.default.createElement(ke,{onClick:()=>n(!1)},r.default.createElement(d,{Icon:"Xicon"}),r.default.createElement("h4",null,t.text_Title_Main)),r.default.createElement(Re,null,r.default.createElement("h5",null,t.text_Theme_Main),r.default.createElement(Be,{theme:t.theme,onClick_Theme:t.onClick_Theme})),r.default.createElement(Se,null,r.default.createElement(Ce,null),r.default.createElement(_e,{onClick:t.onCLick_Account_Main},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement("img",{src:t.img_Account_Main,alt:t.imgAlt_Account_Main})),r.default.createElement("h5",null,t.text_Account_Main)))),r.default.createElement(_e,{onClick:t.onClick_Settings_Main},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement(d,{Icon:"Settings"})),r.default.createElement("h5",null,t.text_Settings_Main))),r.default.createElement(_e,{onClick:()=>o("Language")},r.default.createElement("main",null,r.default.createElement("picture",null,"el"===t.language?r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"}):"de"===t.language?r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"}):r.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),"el"===t.language?r.default.createElement("h5",null,"Ελληνικά"):"de"===t.language?r.default.createElement("h5",null,"Deutsch"):r.default.createElement("h5",null,"English")),r.default.createElement("aside",null,r.default.createElement(d,{Icon:"Next"}))),r.default.createElement(_e,{onClick:()=>o("Region")},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement(d,{Icon:"Flag"})),r.default.createElement("h5",null,a)),r.default.createElement("aside",null,r.default.createElement(d,{Icon:"Next"}))),r.default.createElement(Le,null,r.default.createElement(Ce,null),r.default.createElement(_e,{onClick:t.onCLick_Logout},r.default.createElement("main",null,r.default.createElement("picture",null,r.default.createElement(d,{Icon:"Logout"})),r.default.createElement("h5",null,t.text_Logout)))))};let ze=[{country:"Andorra",code:"AD"},{country:"United Arab Emirates",code:"AE"},{country:"Afghanistan",code:"AF"},{country:"Antigua and Barbuda",code:"AG"},{country:"Anguilla",code:"AI"},{country:"Albania",code:"AL"},{country:"Armenia",code:"AM"},{country:"Angola",code:"AO"},{country:"Antarctica",code:"AQ"},{country:"Argentina",code:"AR"},{country:"American Samoa",code:"AS"},{country:"Austria",code:"AT"},{country:"Australia",code:"AU"},{country:"Aruba",code:"AW"},{country:"Åland Islands",code:"AX"},{country:"Azerbaijan",code:"AZ"},{country:"Bosnia and Herzegovina",code:"BA"},{country:"Barbados",code:"BB"},{country:"Bangladesh",code:"BD"},{country:"Belgium",code:"BE"},{country:"Burkina Faso",code:"BF"},{country:"Bulgaria",code:"BG"},{country:"Bahrain",code:"BH"},{country:"Burundi",code:"BI"},{country:"Benin",code:"BJ"},{country:"Saint Barthélemy",code:"BL"},{country:"Bermuda",code:"BM"},{country:"Brunei Darussalam",code:"BN"},{country:"Bolivia, Plurinational State of",code:"BO"},{country:"Bonaire, Sint Eustatius and Saba",code:"BQ"},{country:"Brazil",code:"BR"},{country:"Bahamas",code:"BS"},{country:"Bhutan",code:"BT"},{country:"Botswana",code:"BW"},{country:"Belarus",code:"BY"},{country:"Belize",code:"BZ"},{country:"Canada",code:"CA"},{country:"Cocos (Keeling) Islands",code:"CC"},{country:"Democratic Republic of the Congo",code:"CD"},{country:"Central African Republic",code:"CF"},{country:"Republic of the Congo",code:"CG"},{country:"Switzerland",code:"CH"},{country:"Côte d'Ivoire",code:"CI"},{country:"Cook Islands",code:"CK"},{country:"Chile",code:"CL"},{country:"Cameroon",code:"CM"},{country:"China",code:"CN"},{country:"Colombia",code:"CO"},{country:"Costa Rica",code:"CR"},{country:"Cuba",code:"CU"},{country:"Cabo Verde",code:"CV"},{country:"Curaçao",code:"CW"},{country:"Christmas Island",code:"CX"},{country:"Cyprus",code:"CY"},{country:"Czech Republic",code:"CZ"},{country:"Deutschland",code:"DE"},{country:"Djibouti",code:"DJ"},{country:"Denmark",code:"DK"},{country:"Dominica",code:"DM"},{country:"Dominican Republic",code:"DO"},{country:"Algeria",code:"DZ"},{country:"Ecuador",code:"EC"},{country:"Estonia",code:"EE"},{country:"Egypt",code:"EG"},{country:"Western Sahara",code:"EH"},{country:"Eritrea",code:"ER"},{country:"Spain",code:"ES"},{country:"Ethiopia",code:"ET"},{country:"Finland",code:"FI"},{country:"Fiji",code:"FJ"},{country:"Falkland Islands (Malvinas)",code:"FK"},{country:"Micronesia, Federated States of",code:"FM"},{country:"Faroe Islands",code:"FO"},{country:"France",code:"FR"},{country:"Gabon",code:"GA"},{country:"United Kingdom",code:"GB"},{country:"Grenada",code:"GD"},{country:"Georgia",code:"GE"},{country:"French Guiana",code:"GF"},{country:"Guernsey",code:"GG"},{country:"Ghana",code:"GH"},{country:"Gibraltar",code:"GI"},{country:"Greenland",code:"GL"},{country:"Gambia",code:"GM"},{country:"Guinea",code:"GN"},{country:"Guadeloupe",code:"GP"},{country:"Equatorial Guinea",code:"GQ"},{country:"Greece",code:"GR"},{country:"South Georgia and the South Sandwich Islands",code:"GS"},{country:"Guatemala",code:"GT"},{country:"Guam",code:"GU"},{country:"Guinea-Bissau",code:"GW"},{country:"Guyana",code:"GY"},{country:"Hong Kong",code:"HK"},{country:"Honduras",code:"HN"},{country:"Croatia",code:"HR"},{country:"Haiti",code:"HT"},{country:"Hungary",code:"HU"},{country:"Indonesia",code:"ID"},{country:"Ireland",code:"IE"},{country:"Israel",code:"IL"},{country:"Isle of Man",code:"IM"},{country:"India",code:"IN"},{country:"Iraq",code:"IQ"},{country:"Iran",code:"IR"},{country:"Iceland",code:"IS"},{country:"Italy",code:"IT"},{country:"Jersey",code:"JE"},{country:"Jamaica",code:"JM"},{country:"Jordan",code:"JO"},{country:"Japan",code:"JP"},{country:"Kenya",code:"KE"},{country:"Kyrgyzstan",code:"KG"},{country:"Cambodia",code:"KH"},{country:"Kiribati",code:"KI"},{country:"Comoros",code:"KM"},{country:"Saint Kitts and Nevis",code:"KN"},{country:"North Korea",code:"KP"},{country:"South Korea",code:"KR"},{country:"Kuwait",code:"KW"},{country:"Cayman Islands",code:"KY"},{country:"Kazakhstan",code:"KZ"},{country:"Lao People's Democratic Republic",code:"LA"},{country:"Lebanon",code:"LB"},{country:"Saint Lucia",code:"LC"},{country:"Liechtenstein",code:"LI"},{country:"Sri Lanka",code:"LK"},{country:"Liberia",code:"LR"},{country:"Lesotho",code:"LS"},{country:"Lithuania",code:"LT"},{country:"Luxembourg",code:"LU"},{country:"Latvia",code:"LV"},{country:"Libya",code:"LY"},{country:"Morocco",code:"MA"},{country:"Monaco",code:"MC"},{country:"Moldova",code:"MD"},{country:"Montenegro",code:"ME"},{country:"Saint Martin (French part)",code:"MF"},{country:"Madagascar",code:"MG"},{country:"Marshall Islands",code:"MH"},{country:"North Macedonia",code:"MK"},{country:"Mali",code:"ML"},{country:"Myanmar",code:"MM"},{country:"Mongolia",code:"MN"},{country:"Macao",code:"MO"},{country:"Northern Mariana Islands",code:"MP"},{country:"Martinique",code:"MQ"},{country:"Mauritania",code:"MR"},{country:"Montserrat",code:"MS"},{country:"Malta",code:"MT"},{country:"Mauritius",code:"MU"},{country:"Maldives",code:"MV"},{country:"Malawi",code:"MW"},{country:"Mexico",code:"MX"},{country:"Malaysia",code:"MY"},{country:"Mozambique",code:"MZ"},{country:"Namibia",code:"NA"},{country:"New Caledonia",code:"NC"},{country:"Niger",code:"NE"},{country:"Norfolk Island",code:"NF"},{country:"Nigeria",code:"NG"},{country:"Nicaragua",code:"NI"},{country:"Netherlands",code:"NL"},{country:"Norway",code:"NO"},{country:"Nepal",code:"NP"},{country:"Nauru",code:"NR"},{country:"Niue",code:"NU"},{country:"New Zealand",code:"NZ"},{country:"Oman",code:"OM"},{country:"Panama",code:"PA"},{country:"Peru",code:"PE"},{country:"French Polynesia",code:"PF"},{country:"Papua New Guinea",code:"PG"},{country:"Philippines",code:"PH"},{country:"Pakistan",code:"PK"},{country:"Poland",code:"PL"},{country:"Saint Pierre and Miquelon",code:"PM"},{country:"Pitcairn",code:"PN"},{country:"Puerto Rico",code:"PR"},{country:"Palestine",code:"PS"},{country:"Portugal",code:"PT"},{country:"Palau",code:"PW"},{country:"Paraguay",code:"PY"},{country:"Qatar",code:"QA"},{country:"Réunion",code:"RE"},{country:"Romania",code:"RO"},{country:"Serbia",code:"RS"},{country:"Russian Federation",code:"RU"},{country:"Rwanda",code:"RW"},{country:"Saudi Arabia",code:"SA"},{country:"Solomon Islands",code:"SB"},{country:"Seychelles",code:"SC"},{country:"Sudan",code:"SD"},{country:"Sweden",code:"SE"},{country:"Singapore",code:"SG"},{country:"Saint Helena, Ascension and Tristan da Cunha",code:"SH"},{country:"Slovenia",code:"SI"},{country:"Svalbard and Jan Mayen",code:"SJ"},{country:"Slovakia",code:"SK"},{country:"Sierra Leone",code:"SL"},{country:"San Marino",code:"SM"},{country:"Senegal",code:"SN"},{country:"Somalia",code:"SO"},{country:"Suriname",code:"SR"},{country:"South Sudan",code:"SS"},{country:"Sao Tome and Principe",code:"ST"},{country:"El Salvador",code:"SV"},{country:"Sint Maarten (Dutch part)",code:"SX"},{country:"Syrian Arab Republic",code:"SY"},{country:"Eswatini",code:"SZ"},{country:"Turks and Caicos Islands",code:"TC"},{country:"Chad",code:"TD"},{country:"French Southern Territories",code:"TF"},{country:"Togo",code:"TG"},{country:"Thailand",code:"TH"},{country:"Tajikistan",code:"TJ"},{country:"Tokelau",code:"TK"},{country:"Timor-Leste",code:"TL"},{country:"Turkmenistan",code:"TM"},{country:"Tunisia",code:"TN"},{country:"Tonga",code:""},{country:"Turkey",code:"TR"},{country:"Trinidad and Tobago",code:"TT"},{country:"Tuvalu",code:"TV"},{country:"Taiwan, Province of China",code:"TW"},{country:"Tanzania",code:"TZ"},{country:"Ukraine",code:"UA"},{country:"Uganda",code:"UG"},{country:"United States",code:"US"},{country:"Uruguay",code:"UY"},{country:"Uzbekistan",code:"UZ"},{country:"Holy See (Vatican City State)",code:"VA"},{country:"Saint Vincent and the Grenadines",code:"VC"},{country:"Venezuela",code:"VE"},{country:"Virgin Islands, British",code:"VG"},{country:"Virgin Islands, U.S.",code:"VI"},{country:"Viet Nam",code:"VN"},{country:"Vanuatu",code:"VU"},{country:"Wallis and Futuna",code:"WF"},{country:"Samoa",code:"AS"},{country:"Kosovo",code:"XK"},{country:"Yemen",code:"YE"},{country:"Mayotte",code:"YT"},{country:"South Africa",code:"ZA"},{country:"Zambia",code:"ZM"},{country:"Zimbabwe",code:"ZW"}];const He=t=>{const{region:a,setRegion:n}=e.useContext(Ae),{setActiveMenu:o}=e.useContext(xe);return r.default.createElement(Me,null,r.default.createElement(ke,{onClick:()=>o("Main")},r.default.createElement(d,{Icon:"Back"}),r.default.createElement("h4",null,t.text_Title_Region)),ze.map(((e,t)=>r.default.createElement(_e,{onClick:()=>{return t=e.country,n(t),void o("Main");var t},className:a===e.country?"SelectedRegion":""},r.default.createElement("main",null,r.default.createElement("h5",null,e.country))))))},Ge=t=>{const{activeMenu:n}=e.useContext(xe),[o,l]=e.useState(null),c=e=>{const t=e.offsetHeight;l(t)};return r.default.createElement(be,{style:{height:o}},r.default.createElement(a.CSSTransition,{in:"Main"===n,timeout:500,unmountOnExit:!0,classNames:"Menu-primary",onEnter:c},r.default.createElement("div",{className:"Menu"},r.default.createElement(Pe,{theme:t.theme,onClick_Title_Main:t.onClick_Title_Main,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onClick_Theme:t.onClick_Theme,onCLick_Account_Main:t.onCLick_Account_Main,img_Account_Main:t.img_Account_Main,imgAlt_Account_Main:t.imgAlt_Account_Main,text_Account_Main:t.text_Account_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main}))),r.default.createElement(a.CSSTransition,{in:"Language"===n,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:c},r.default.createElement("div",{className:"Menu"},r.default.createElement(Ie,{onClick_Title_Language:t.onClick_Title_Language,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_Deutsch_Language:t.onClick_Deutsch_Language}))),r.default.createElement(a.CSSTransition,{in:"Region"===n,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:c},r.default.createElement("div",{className:"Menu"},r.default.createElement(He,{onClick_Country_Region:t.onClick_Country_Region,onClick_Title_Region:t.onClick_Title_Region,text_Title_Region:t.text_Title_Region}))))},Ne=o.default.div`
|
|
1052
1052
|
justify-self: flex-end;
|
|
1053
1053
|
display: flex;
|
|
1054
1054
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monica-alexandria",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "A styled-components styles library for Doitforme platorm and universal tweeks to create your own new styled library for your project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -9,6 +9,10 @@ export const Nav_Ham_Language = (props) => {
|
|
|
9
9
|
|
|
10
10
|
const { setActiveMenu } = useContext(MenuContext);
|
|
11
11
|
const { setLanguage } = useContext(LangContext)
|
|
12
|
+
const updateRegion = (selectedLanguage) => {
|
|
13
|
+
setLanguage(selectedLanguage);
|
|
14
|
+
setActiveMenu('Main')
|
|
15
|
+
}
|
|
12
16
|
|
|
13
17
|
return (
|
|
14
18
|
<Ham>
|
|
@@ -16,7 +20,7 @@ export const Nav_Ham_Language = (props) => {
|
|
|
16
20
|
<IconSvg Icon="Back"/>
|
|
17
21
|
<h4>{props.text_Title_Language}</h4>
|
|
18
22
|
</HamTitle>
|
|
19
|
-
<HamItem onClick={() =>
|
|
23
|
+
<HamItem onClick={() => updateRegion('el')}>
|
|
20
24
|
<main>
|
|
21
25
|
<picture>
|
|
22
26
|
<img src='https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg'/>
|
|
@@ -24,7 +28,7 @@ export const Nav_Ham_Language = (props) => {
|
|
|
24
28
|
<h5>Ελληνικά</h5>
|
|
25
29
|
</main>
|
|
26
30
|
</HamItem>
|
|
27
|
-
<HamItem onClick={() =>
|
|
31
|
+
<HamItem onClick={() => updateRegion('en')}>
|
|
28
32
|
<main>
|
|
29
33
|
<picture>
|
|
30
34
|
<img src='https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg'/>
|
|
@@ -32,7 +36,7 @@ export const Nav_Ham_Language = (props) => {
|
|
|
32
36
|
<h5>English</h5>
|
|
33
37
|
</main>
|
|
34
38
|
</HamItem>
|
|
35
|
-
<HamItem onClick={() =>
|
|
39
|
+
<HamItem onClick={() => updateRegion('de')}>
|
|
36
40
|
<main>
|
|
37
41
|
<picture>
|
|
38
42
|
<img src='https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg'/>
|
|
@@ -260,7 +260,7 @@ export const Nav_Ham_Region = (props) => {
|
|
|
260
260
|
const { setActiveMenu } = useContext(MenuContext);
|
|
261
261
|
const updateRegion = (selectedRegion) => {
|
|
262
262
|
setRegion(selectedRegion);
|
|
263
|
-
setActiveMenu('
|
|
263
|
+
setActiveMenu('Main')
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
return (
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react'
|
|
2
2
|
import styled, { ThemeContext } from 'styled-components'
|
|
3
|
-
import { MenuContext } from '../../contexts'
|
|
4
3
|
import { IconSvg } from '../../svg/IconSvg'
|
|
5
4
|
|
|
6
5
|
const NavTheming = styled.div`
|
|
@@ -47,7 +46,6 @@ const NavTheming = styled.div`
|
|
|
47
46
|
|
|
48
47
|
export const Nav_Theming = (props) => {
|
|
49
48
|
|
|
50
|
-
const { setActiveMenu } = useContext(MenuContext)
|
|
51
49
|
const { theme, setTheme } = useContext(ThemeContext)
|
|
52
50
|
|
|
53
51
|
return (
|