@hhgtech/hhg-components 1.21.0-beta-17 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/babyGrowth.js +1 -1
  2. package/build/care.js +1 -1
  3. package/build/components/atoms/icons/Check.d.ts +4 -0
  4. package/build/components/atoms/icons/UserCheck.d.ts +4 -0
  5. package/build/components/atoms/icons/index.d.ts +2 -0
  6. package/build/{assets/svg → components/atoms/rateStars}/StarEmptyIcon.d.ts +0 -0
  7. package/build/components/atoms/rateStars/StarFullIcon.d.ts +3 -0
  8. package/build/components/atoms/rateStars/StarHalfIcon.d.ts +3 -0
  9. package/build/components/molecules/embeddedHeathToolCards/index.styled.d.ts +1 -1
  10. package/build/components/molecules/embeddedHeathToolCards/pwg.d.ts +17 -0
  11. package/build/components/molecules/index.d.ts +2 -0
  12. package/build/components/molecules/weightGainForm/index.d.ts +11 -0
  13. package/build/components/molecules/weightGainForm/index.styled.d.ts +19 -0
  14. package/build/components/organisms/navigationLogoutPopup/index.d.ts +2 -2
  15. package/build/components.js +1 -1
  16. package/build/en-PH-bc11cfc2.js +1 -0
  17. package/build/esm/babyGrowth.js +1 -1
  18. package/build/esm/care.js +1 -1
  19. package/build/esm/components.js +1 -1
  20. package/build/esm/en-PH-71017453.js +1 -0
  21. package/build/esm/getSocialList-2f760404.js +1 -0
  22. package/build/esm/hooks.js +1 -1
  23. package/build/esm/i18n.js +1 -1
  24. package/build/esm/{index-d009b597.js → index-642d36c8.js} +1 -1
  25. package/build/esm/index-7a537be1.js +1 -0
  26. package/build/esm/{index-0d69362e.js → index-93d22d63.js} +1 -1
  27. package/build/esm/index-9bacff82.js +1 -0
  28. package/build/esm/index-c5875449.js +1 -0
  29. package/build/esm/index-f3a0141e.js +1 -0
  30. package/build/esm/index-f5450aa0.js +1 -0
  31. package/build/esm/index-f8e043bf.js +1 -0
  32. package/build/esm/index.js +1 -1
  33. package/build/esm/index.styled-d8a819ea.js +1 -0
  34. package/build/esm/{index.styled-b9f4b7d1.js → index.styled-faeac279.js} +1 -1
  35. package/build/esm/mantine.js +1 -1
  36. package/build/esm/misc.js +1 -1
  37. package/build/esm/navigation.js +1 -1
  38. package/build/esm/screenSizeContext-12f741e1.js +1 -0
  39. package/build/esm/together.js +1 -1
  40. package/build/esm/translationsProvider-cd9f6f24.js +1 -0
  41. package/build/esm/types-9f13ee08.js +1 -0
  42. package/build/esm/types-e5491c06.js +1 -0
  43. package/build/esm/{useTranslations-ad4d9d26.js → useTranslations-3e47eecc.js} +1 -1
  44. package/build/getSocialList-561c9bda.js +1 -0
  45. package/build/hooks.js +1 -1
  46. package/build/i18n.js +1 -1
  47. package/build/{index-79ca5c8f.js → index-06ae8f3a.js} +1 -1
  48. package/build/index-18fad696.js +1 -0
  49. package/build/index-2555a201.js +1 -0
  50. package/build/index-5d420cf1.js +1 -0
  51. package/build/index-89bb7100.js +1 -0
  52. package/build/index-a8a74936.js +1 -0
  53. package/build/{index-c2b118f9.js → index-eb84390c.js} +1 -1
  54. package/build/{index-b0b1dce7.js → index-ef8759f0.js} +1 -1
  55. package/build/index.js +1 -1
  56. package/build/{index.styled-6d954724.js → index.styled-03c4dedb.js} +1 -1
  57. package/build/index.styled-1e5dd97e.js +1 -0
  58. package/build/mantine.js +1 -1
  59. package/build/misc.js +1 -1
  60. package/build/navigation.js +1 -1
  61. package/build/{screenSizeContext-6726a3b5.js → screenSizeContext-60cc891b.js} +1 -1
  62. package/build/together/components/molecules/popupFrame/popupShare.d.ts +2 -2
  63. package/build/together/components/molecules/postImagePreview/imagePreviewPopup.d.ts +2 -2
  64. package/build/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.d.ts +2 -2
  65. package/build/together.js +1 -1
  66. package/build/translationsProvider-25c99317.js +1 -0
  67. package/build/types-8591cb2a.js +1 -0
  68. package/build/types-aac7135c.js +1 -0
  69. package/build/useTranslations-60d001df.js +1 -0
  70. package/package.json +1 -7
  71. package/build/assets/svg/StarFullIcon.d.ts +0 -3
  72. package/build/assets/svg/StarHalfIcon.d.ts +0 -3
  73. package/build/assets/svg/index.d.ts +0 -21
  74. package/build/components/molecules/embeddedHeathToolCards/image.d.ts +0 -1
  75. package/build/components/organisms/navigationLayout_deprecated/CustomFooter.d.ts +0 -33
  76. package/build/components/organisms/navigationLayout_deprecated/ampSideBar/index.d.ts +0 -28
  77. package/build/components/organisms/navigationLayout_deprecated/ampSideBar/index.styled.d.ts +0 -2
  78. package/build/components/organisms/navigationLayout_deprecated/constants.d.ts +0 -99
  79. package/build/components/organisms/navigationLayout_deprecated/exportLegacy.d.ts +0 -6
  80. package/build/components/organisms/navigationLayout_deprecated/footer/index.d.ts +0 -13
  81. package/build/components/organisms/navigationLayout_deprecated/footer/index.styled.d.ts +0 -2
  82. package/build/components/organisms/navigationLayout_deprecated/index.d.ts +0 -121
  83. package/build/components/organisms/navigationLayout_deprecated/index.styled.d.ts +0 -7
  84. package/build/components/organisms/navigationLayout_deprecated/languageWrapper.d.ts +0 -4
  85. package/build/components/organisms/navigationLayout_deprecated/languages/default.d.ts +0 -4
  86. package/build/components/organisms/navigationLayout_deprecated/layout.d.ts +0 -52
  87. package/build/components/organisms/navigationLayout_deprecated/marryBabyText/index.d.ts +0 -17
  88. package/build/components/organisms/navigationLayout_deprecated/marryBabyText/index.styled.d.ts +0 -8
  89. package/build/components/organisms/navigationLayout_deprecated/maryBabyFooter/index.d.ts +0 -30
  90. package/build/components/organisms/navigationLayout_deprecated/maryBabyFooter/index.styled.d.ts +0 -8
  91. package/build/components/organisms/navigationLayout_deprecated/menuCareList/categorySkeleton.d.ts +0 -3
  92. package/build/components/organisms/navigationLayout_deprecated/menuCareList/index.d.ts +0 -17
  93. package/build/components/organisms/navigationLayout_deprecated/menuCareList/index.styled.d.ts +0 -12
  94. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/categorySkeleton.d.ts +0 -3
  95. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/helloSites.d.ts +0 -20
  96. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/index.d.ts +0 -23
  97. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/index.styled.d.ts +0 -16
  98. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/marryBaby.d.ts +0 -17
  99. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/marryBaby.styled.d.ts +0 -11
  100. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/index.d.ts +0 -15
  101. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/index.styled.d.ts +0 -10
  102. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/spotlightSkeleton.d.ts +0 -3
  103. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/categorySkeleton.d.ts +0 -3
  104. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/helloSites.d.ts +0 -23
  105. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/index.d.ts +0 -23
  106. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/index.styled.d.ts +0 -13
  107. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/marryBaby.d.ts +0 -22
  108. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/marryBaby.styled.d.ts +0 -8
  109. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/categorySkeleton.d.ts +0 -3
  110. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/helloSites.d.ts +0 -25
  111. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/index.d.ts +0 -23
  112. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/index.styled.d.ts +0 -15
  113. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/marryBaby.d.ts +0 -16
  114. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/marrybaby.styled.d.ts +0 -8
  115. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/cardSkeleton.d.ts +0 -3
  116. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/index.d.ts +0 -13
  117. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/index.styled.d.ts +0 -2
  118. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/categoriesSubList.d.ts +0 -19
  119. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/communitySubList.d.ts +0 -20
  120. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/index.d.ts +0 -58
  121. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/index.styled.d.ts +0 -28
  122. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/marryBabyMobileMenuSection.d.ts +0 -9
  123. package/build/components/organisms/navigationLayout_deprecated/navigationBar/ArrowLeftPopupIcon.d.ts +0 -2
  124. package/build/components/organisms/navigationLayout_deprecated/navigationBar/ClosePopupIcon.d.ts +0 -2
  125. package/build/components/organisms/navigationLayout_deprecated/navigationBar/HamburgerIcon.d.ts +0 -9
  126. package/build/components/organisms/navigationLayout_deprecated/navigationBar/NavigationBar.types.d.ts +0 -87
  127. package/build/components/organisms/navigationLayout_deprecated/navigationBar/NavigationBarMobile.d.ts +0 -3
  128. package/build/components/organisms/navigationLayout_deprecated/navigationBar/SearchIcon.d.ts +0 -3
  129. package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.d.ts +0 -15
  130. package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.styled.d.ts +0 -26
  131. package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.d.ts +0 -11
  132. package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.styled.d.ts +0 -6
  133. package/build/components/organisms/navigationLayout_deprecated/profilePopup/index.d.ts +0 -22
  134. package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.d.ts +0 -14
  135. package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.styled.d.ts +0 -2
  136. package/build/components/organisms/navigationLayout_deprecated/siteWide/index.d.ts +0 -23
  137. package/build/components/organisms/navigationLayout_deprecated/siteWide/index.styled.d.ts +0 -3
  138. package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.d.ts +0 -28
  139. package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.styled.d.ts +0 -3
  140. package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.d.ts +0 -17
  141. package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.styled.d.ts +0 -5
  142. package/build/components/organisms/navigationLayout_deprecated/types.d.ts +0 -263
  143. package/build/components/organisms/navigationLayout_deprecated/utils.d.ts +0 -62
  144. package/build/core.js +0 -1
  145. package/build/core_deprecated.d.ts +0 -4
  146. package/build/en-PH-7307aee7.js +0 -1
  147. package/build/esm/core.js +0 -1
  148. package/build/esm/en-PH-ca0683d7.js +0 -1
  149. package/build/esm/getSocialList-ff22842b.js +0 -1
  150. package/build/esm/index-4dca7f50.js +0 -1
  151. package/build/esm/index-a1df367b.js +0 -1
  152. package/build/esm/index-a2f795a2.js +0 -1
  153. package/build/esm/index-a4d7d7b7.js +0 -1
  154. package/build/esm/index-c9da804a.js +0 -1
  155. package/build/esm/index-dc96c2db.js +0 -1
  156. package/build/esm/index-fe9820b2.js +0 -1
  157. package/build/esm/index.styled-a87311b3.js +0 -1
  158. package/build/esm/navigationLayout_deprecated.js +0 -1
  159. package/build/esm/screenSizeContext-d6e9a094.js +0 -1
  160. package/build/esm/translationsProvider-bc47fc67.js +0 -1
  161. package/build/esm/types-7076aa18.js +0 -1
  162. package/build/esm/types-9bdaa5f2.js +0 -1
  163. package/build/esm/utils-53a64f38.js +0 -1
  164. package/build/getSocialList-2a3b759f.js +0 -1
  165. package/build/index-7b6795d0.js +0 -1
  166. package/build/index-86fb3a3a.js +0 -1
  167. package/build/index-abee6655.js +0 -1
  168. package/build/index-bf74d101.js +0 -1
  169. package/build/index-c3d46326.js +0 -1
  170. package/build/index-f2654ea8.js +0 -1
  171. package/build/index.styled-26e09df8.js +0 -1
  172. package/build/navigationLayout_deprecated.js +0 -1
  173. package/build/translationsProvider-57deb2ca.js +0 -1
  174. package/build/types-c9e3bda5.js +0 -1
  175. package/build/types-d01e823f.js +0 -1
  176. package/build/useTranslations-a5b5c74c.js +0 -1
  177. package/build/utils-e2a4fdad.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var e=require("react"),t=require("./en-PH-bc11cfc2.js"),n=require("./translationsContext-2d7ea471.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(require("string-format"));exports.useTranslations=function(){var a=e.useContext(n.TranslationsContext)||{locale:"en-PH"},o=a.values,s=a.locale;return e.useMemo((function(){return{t:function(e,n){return o?o[e]?n?r.default(o[e]||e,n):o[e]||e:(console.warn("[useTranslations] Missing translation for key ".concat(e," and locale ").concat(s)),n?r.default(t.defaultTranslations[e]||e,n):t.defaultTranslations[e]||e):(console.error("[useTranslations] t method called before translation values are loaded"),e)},locale:s}}),[o,s])};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hhgtech/hhg-components",
3
- "version": "1.21.0-beta-17",
3
+ "version": "1.21.1",
4
4
  "main": "build/index.js",
5
5
  "module": "build/esm/index.js",
6
6
  "files": [
@@ -184,9 +184,6 @@
184
184
  "imgHHG": [
185
185
  "build/modules/imgHHG/index.d.ts"
186
186
  ],
187
- "navigationLayout_deprecated": [
188
- "build/components/organisms/navigationLayout_deprecated/exportLegacy.d.ts"
189
- ],
190
187
  "constants": [
191
188
  "build/interfaces/constants/index.d.ts"
192
189
  ],
@@ -202,9 +199,6 @@
202
199
  "gAssets": [
203
200
  "build/misc/gAssets/index.d.ts"
204
201
  ],
205
- "core": [
206
- "build/core_deprecated.d.ts"
207
- ],
208
202
  "ecom": [
209
203
  "build/ecom_temp_excluded/index.d.ts"
210
204
  ],
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const StarEmptyIcon: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
3
- export default StarEmptyIcon;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const StarEmptyIcon: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
3
- export default StarEmptyIcon;
@@ -1,21 +0,0 @@
1
- import ArrowDoorIcon from './arrowDoor.svg';
2
- import ArrowRightGray from './arrowRightGray.svg';
3
- import CategoriesMBIcon from './categories-mb.svg';
4
- import Check from './check.svg';
5
- import chevronRight from './chevronRight.svg';
6
- import chevronRightActive from './chevronRightActive.svg';
7
- import chevronRightPink from './chevronRightPink.svg';
8
- import CloseLightIcon from './closeLight.svg';
9
- import CommunityMBIcon from './community-mb.svg';
10
- import CommunityIcon from './community.svg';
11
- import DiscoverIcon from './discover.png';
12
- import HamburgerMenuIconNew from './hamburgerMenuNew.svg';
13
- import HamburgerMenuIconNewWithSearch from './hamburgerMenuNewWithSearch.svg';
14
- import HealthToolsMBIcon from './healthtools-mb.svg';
15
- import LockIcon from './lock.png';
16
- import LoginIcon from './login.svg';
17
- import SpotlightIcon from './Spotlight.svg';
18
- import StarEmptyIcon from './StarEmptyIcon';
19
- import StarFullIcon from './StarFullIcon';
20
- import StarHalfIcon from './StarHalfIcon';
21
- export { StarEmptyIcon, StarFullIcon, StarHalfIcon, CloseLightIcon, DiscoverIcon, HamburgerMenuIconNew, Check, LockIcon, chevronRightActive, chevronRight, ArrowDoorIcon, LoginIcon, HamburgerMenuIconNewWithSearch, CommunityIcon, SpotlightIcon, chevronRightPink, ArrowRightGray, CategoriesMBIcon, HealthToolsMBIcon, CommunityMBIcon, };
@@ -1 +0,0 @@
1
- export declare const embedToolBannerPink = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzc1IiBoZWlnaHQ9Ijg4IiB2aWV3Qm94PSIwIDAgMzc1IDg4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMCAwSDM3NVY2OEwwIDg4VjBaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMTAzMzFfMjYzMDYpIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTAzMzFfMjYzMDYiIHgxPSItNi4xMjU1NGUtMDYiIHkxPSIzLjY2NjY3IiB4Mj0iODguNzQ4NCIgeTI9IjIwMS40MjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZDNUQ5QSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRDg3QjQiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K";
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import { AmpNextArticle, FooterInfo, LocaleType, MarryBabyFooterInfo } from 'components/organisms/navigationLayout_deprecated/types';
3
- declare type FooterProps = {
4
- type: 'main' | 'mini';
5
- locale: LocaleType;
6
- basePath: string;
7
- isMobile: boolean;
8
- isAmp: boolean;
9
- footerInfo: FooterInfo | MarryBabyFooterInfo;
10
- ampNextArticle?: AmpNextArticle;
11
- routerQuery?: {
12
- [key: string]: string;
13
- };
14
- } & ({
15
- siteType: 'marryBaby';
16
- marryBabySocialLinks: {
17
- facebookLink: string;
18
- twitterLink: string;
19
- instagramLink: string;
20
- zaloLink: string;
21
- linkedinLink: string;
22
- youtubeLink: string;
23
- };
24
- } | {
25
- siteType: 'helloSites';
26
- });
27
- export declare type Flag = {
28
- country: CountryInitial;
29
- link: string;
30
- };
31
- export declare type CountryInitial = 'VN' | 'ID' | 'TH' | 'KH' | 'MY' | 'MM' | 'PH' | 'IN' | 'TW';
32
- declare const CustomFooter: (props: FooterProps) => JSX.Element;
33
- export { CustomFooter };
@@ -1,28 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocaleType } from 'interfaces/types';
3
- import { SpotlightSummary } from 'together/interfaces/types';
4
- import { Category, HealthToolByCategory } from '../types';
5
- export declare type AmpSidebarProps = {
6
- locale: LocaleType;
7
- categoriesSSR: Category[];
8
- healthToolsSSR: HealthToolByCategory[];
9
- spotlightsSSR?: SpotlightSummary[];
10
- serviceUrls: {
11
- TOGETHER_URL_FE: string;
12
- CARE_URL_FE: string;
13
- DISCOVER_URL_FE: string;
14
- };
15
- together: {
16
- TOGETHER_MENU_COUNTRIES_ENABLED: LocaleType[];
17
- ENABLE_COMMUNITY_PROFILE_MENU_LOCALES: LocaleType[];
18
- togetherApiDomain: string;
19
- };
20
- care: {
21
- CARE_MENU_COUNTRIES_ENABLED: LocaleType[];
22
- ENABLE_CARE_PROFILE_MENU_LOCALES: LocaleType[];
23
- careApiDomain: string;
24
- };
25
- basePath: string;
26
- searchPlaceholder: string;
27
- };
28
- export declare const AmpSidebar: ({ locale, categoriesSSR, healthToolsSSR, spotlightsSSR, serviceUrls, together, care, basePath, searchPlaceholder, }: AmpSidebarProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export declare const StyledAmpSidebar: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledAmpSearchBox: import("styled-components").StyledComponent<"a", any, {}, never>;
@@ -1,99 +0,0 @@
1
- import { LocaleType } from 'interfaces/types';
2
- import { FooterInfo } from './types';
3
- export declare const domainLocales: {
4
- 'vi-VN': string;
5
- 'id-ID': string;
6
- 'ms-MY': string;
7
- 'km-KH': string;
8
- 'en-PH': string;
9
- 'th-TH': string;
10
- 'my-MM': string;
11
- 'zh-TW': string;
12
- 'hi-IN': string;
13
- 'tl-PH': string;
14
- };
15
- export declare const SOCIAL_MEDIA: {
16
- [key: string]: {
17
- [key: string]: string | null;
18
- };
19
- };
20
- export declare const LOCALE_SPECS: {
21
- [key: string]: {
22
- [key: string]: string;
23
- };
24
- };
25
- export declare const STATIC_PAGES: {
26
- [key in LocaleType]: {
27
- [key: string]: string | null;
28
- };
29
- };
30
- export declare const FAVICONS: {
31
- [key: string]: ({
32
- type: 'link';
33
- rel: string;
34
- href: string;
35
- sizes?: string;
36
- } | {
37
- type: 'meta';
38
- name: string;
39
- content: string;
40
- })[];
41
- };
42
- export declare const COUNTRY_SITENAME: {
43
- [id: string]: string;
44
- };
45
- export declare const SSO_PATHS: {
46
- SSO_USER_PROFILE: string;
47
- SSO_USER_BOOKMARKS: string;
48
- SSO_USER_PASSWORD: string;
49
- SSO_USER_EMAIL: string;
50
- SSO_CLOSE_ACCOUNT: string;
51
- SSO_HELP: string;
52
- };
53
- export declare const TOGETHER_PATHS: {
54
- COMMUNITIES: string;
55
- MENU_TOPIC: string;
56
- GET_USER_POSTS: string;
57
- };
58
- export declare const DISCOVER_PATHS: {
59
- SPOTLIGHTS: string;
60
- HEALTH_TOOLS: string;
61
- HEALTH_TOOLS_BY_CATEGORY: string;
62
- CATEGORIES: string;
63
- FOOTER: string;
64
- };
65
- export declare const CARE_PATHS: {
66
- SPECIALTIES: string;
67
- };
68
- export declare const MARRY_BABY_PATH: {
69
- FOOTER: string;
70
- HEALTH_TOOLS: string;
71
- };
72
- export declare const Z_INDEX: {
73
- adBlock: number;
74
- headerContainerHome: number;
75
- headerContainerPopup: number;
76
- headerContainerPopupSUbLevel: number;
77
- menuCategoryPopupWrapper: number;
78
- menuCategoryPopupContainer: number;
79
- menuSearchInputPopup: number;
80
- menuSearchInputDisplayIcon: number;
81
- menuSearchPopup: number;
82
- homeSearchComponent: number;
83
- };
84
- export declare const FLAG_LINKS: {
85
- [id: string]: string;
86
- };
87
- export declare const DEFAULT_FOOTER: FooterInfo;
88
- export declare const LANGUAGES: {
89
- [id: string]: string;
90
- };
91
- export declare const MARRY_BABY_DEFAULT_FOOTER: {
92
- SOCIAL_LINKS: {
93
- facebookLink: string;
94
- instagramLink: string;
95
- zaloLink: string;
96
- youtubeLink: string;
97
- };
98
- };
99
- export declare const careBasePath = "/care";
@@ -1,6 +0,0 @@
1
- export { Layout } from './layout';
2
- export { SiteWide } from './siteWide';
3
- export { NavigationBar } from './navigationBar';
4
- export { defaultTranslation } from './languages/default';
5
- export { StickySponsoredBy } from './sponsoredBy';
6
- export { NavigationLayout } from './languageWrapper';
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocaleType } from 'interfaces/types';
3
- import { FooterInfo } from '../types';
4
- export declare type Props = {
5
- className?: string;
6
- isMobile: boolean;
7
- type?: 'main' | 'mini';
8
- footerInfo?: FooterInfo;
9
- locale: LocaleType;
10
- isAmp: boolean;
11
- };
12
- declare const Footer: ({ className, type, footerInfo, isMobile, locale, isAmp, }: Props) => JSX.Element;
13
- export { Footer };
@@ -1,2 +0,0 @@
1
- export declare const StyledFooter: import("styled-components").StyledComponent<"footer", any, {}, never>;
2
- export declare const StyledFlag: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,121 +0,0 @@
1
- import React from 'react';
2
- import { LocaleType } from 'interfaces/types';
3
- import { SEOData } from './layout';
4
- import { Option } from './tooltipSelection';
5
- import { Category, Community, FooterInfo, HealthTool, HealthToolByCategory, MarryBabyFooterInfo, MenuServiceType, Specialty, SpotlightSummary, State, AmpNextArticle } from './types';
6
- export declare type Props = {
7
- children?: JSX.Element | JSX.Element[];
8
- isMobile?: boolean;
9
- siteType: 'marryBaby' | 'helloSites';
10
- ssrMenuContent?: {
11
- categories?: Category[];
12
- healthTools?: HealthTool[];
13
- healthToolsByCategory?: HealthToolByCategory[];
14
- careSpecialties?: Specialty[];
15
- togetherCommunities?: Community[];
16
- spotlightsList?: SpotlightSummary[];
17
- };
18
- MetaPageTitle?: string;
19
- MetaPageDescription?: string;
20
- MetaPageImage?: string;
21
- SEOData?: SEOData;
22
- UP_BASEPATH?: string;
23
- isSearchBarDisplay?: boolean;
24
- className?: string;
25
- isStatic?: boolean;
26
- seoType?: 'article' | 'website' | 'profile';
27
- currentCategory?: string;
28
- isCommentReleaseSSR?: boolean;
29
- isMyHealthEnabled?: boolean;
30
- together?: {
31
- TOGETHER_MENU_COUNTRIES_ENABLED?: LocaleType[];
32
- ENABLE_COMMUNITY_PROFILE_MENU_LOCALES?: LocaleType[];
33
- togetherApiDomain?: string;
34
- };
35
- care?: {
36
- CARE_MENU_COUNTRIES_ENABLED?: LocaleType[];
37
- ENABLE_CARE_PROFILE_MENU_LOCALES?: LocaleType[];
38
- careApiDomain?: string;
39
- menuActionType?: 'redirectOnly' | 'subMenuList';
40
- };
41
- discover?: {
42
- discoverApiDomain?: string;
43
- };
44
- sso?: {
45
- dispatchLogout?: () => void;
46
- SSO_URL?: string;
47
- };
48
- activeMenuService?: MenuServiceType;
49
- logoutHandlers?: {
50
- isLogoutPopupOpened?: boolean;
51
- callPostLogOutApi?: () => void;
52
- onClosePopup?: () => void;
53
- onLogout?: () => void;
54
- };
55
- marryBaby?: {
56
- tone: 'pink' | 'white';
57
- marryBabyApiDomain?: string;
58
- socialLinks?: {
59
- facebookLink?: string;
60
- twitterLink?: string;
61
- instagramLink?: string;
62
- zaloLink?: string;
63
- linkedinLink?: string;
64
- youtubeLink?: string;
65
- };
66
- };
67
- footerInfo?: FooterInfo | MarryBabyFooterInfo;
68
- statics: {
69
- DISCOVER_URL_FE?: string;
70
- TOGETHER_URL_FE?: string;
71
- HEALTH_TOOL_URL_FE?: string;
72
- CARE_URL_FE?: string;
73
- MARRY_BABY_FE?: string;
74
- HOME_PAGE_URL?: string;
75
- LOCALE_SPECS?: {
76
- [key: string]: {
77
- [key: string]: string | null;
78
- };
79
- };
80
- STATIC_PAGES?: {
81
- [key in LocaleType]: {
82
- [key: string]: string | null;
83
- };
84
- };
85
- };
86
- translation?: {
87
- [key: string]: string;
88
- };
89
- basePath: string;
90
- isAmp?: boolean;
91
- locale: LocaleType;
92
- routerPathname: string;
93
- routerQuery: {
94
- [key: string]: string;
95
- };
96
- routerAsPath: string;
97
- nextHead: React.FunctionComponent;
98
- userState: State;
99
- userProfileRouterPush?: (s: string) => void;
100
- callApiHandler: (p: string, m: 'GET' | 'POST' | 'PUT') => any;
101
- onTopBarAppears?: (b: boolean) => void;
102
- forcedCanonicalUrl?: string;
103
- isUserProfileNavigatorMenuHidden?: boolean;
104
- sitewideBanner?: JSX.Element;
105
- sitewideBannerShown?: boolean;
106
- sponsorComponent?: JSX.Element;
107
- languageOptions?: Option[];
108
- ampSubBar?: JSX.Element;
109
- isSearchIconDisplayed?: boolean;
110
- enabledExperimentalCareHeader?: boolean;
111
- onCareHeaderClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
112
- dueDatePopup?: JSX.Element;
113
- welcomePopup?: JSX.Element;
114
- ampNextArticle?: AmpNextArticle;
115
- usingDefaultHead?: boolean;
116
- acceptCookiePopup?: JSX.Element;
117
- seoCustom?: boolean;
118
- hasStickyBottomBar?: boolean;
119
- };
120
- declare const NavigationLayout: ({ siteType, MetaPageTitle, MetaPageDescription, MetaPageImage, footerInfo: footerInfoSSR, children, ssrMenuContent: { categories: categoriesSSR, healthTools: healthToolsSSR, healthToolsByCategory: healthToolsByCategorySSR, careSpecialties: careSpecialtiesSSR, togetherCommunities: togetherCommunitiesSSR, spotlightsList: spotlightsListSSR, }, SEOData, UP_BASEPATH, isStatic, seoType, isMobile, isMyHealthEnabled, logoutHandlers: { isLogoutPopupOpened, callPostLogOutApi, onClosePopup, onLogout, }, marryBaby: { tone, marryBabyApiDomain, socialLinks: { facebookLink, instagramLink, linkedinLink, twitterLink, youtubeLink, zaloLink, }, }, statics: { DISCOVER_URL_FE: DISCOVER_URL_FE_CUSTOM, TOGETHER_URL_FE, MARRY_BABY_FE, HOME_PAGE_URL, HEALTH_TOOL_URL_FE, CARE_URL_FE, LOCALE_SPECS, STATIC_PAGES, }, sso: { dispatchLogout, SSO_URL }, together: { TOGETHER_MENU_COUNTRIES_ENABLED, ENABLE_COMMUNITY_PROFILE_MENU_LOCALES, togetherApiDomain, }, care: { CARE_MENU_COUNTRIES_ENABLED, ENABLE_CARE_PROFILE_MENU_LOCALES, careApiDomain, }, discover: { discoverApiDomain }, activeMenuService, basePath, isAmp, nextHead, routerPathname, routerQuery, routerAsPath, locale, userState, callApiHandler, userProfileRouterPush, onTopBarAppears, forcedCanonicalUrl, isUserProfileNavigatorMenuHidden, sitewideBanner, sitewideBannerShown, sponsorComponent, languageOptions, isSearchBarDisplay: isSearchBarDisplayProps, ampSubBar, isSearchIconDisplayed, enabledExperimentalCareHeader, onCareHeaderClick, dueDatePopup, welcomePopup, ampNextArticle, usingDefaultHead, acceptCookiePopup, seoCustom, hasStickyBottomBar, }: Props) => JSX.Element;
121
- export { NavigationLayout };
@@ -1,7 +0,0 @@
1
- export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledHomeContainer: import("styled-components").StyledComponent<"div", any, {
3
- hasStickyBottomBar: boolean;
4
- }, never>;
5
- export declare const StyledAmpHomeContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const StyledMenuLanguageLabelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const StyledLanguageChangeLink: import("styled-components").StyledComponent<"a", any, {}, never>;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { Props } from './index';
3
- declare const NavigationLayout: (props: Props) => JSX.Element;
4
- export { NavigationLayout };
@@ -1,4 +0,0 @@
1
- declare const defaultTranslation: {
2
- [key: string]: string;
3
- };
4
- export { defaultTranslation };
@@ -1,52 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { SiteType } from './types';
3
- export declare type SEOData = {
4
- currentPage?: number;
5
- totalPages?: number;
6
- SEOTitle?: string;
7
- SEODescription?: string;
8
- SEOImage?: string;
9
- SEOImageWidth?: string | number;
10
- SEOImageHeight?: string | number;
11
- seoType?: 'website' | 'article' | 'profile';
12
- siteName?: string;
13
- customMetaData?: Array<{
14
- [key: string]: string;
15
- }>;
16
- isIndexable?: boolean;
17
- openGraph?: {
18
- title?: string;
19
- description?: string;
20
- image?: string;
21
- imageWidth?: number;
22
- imageHeight?: number;
23
- };
24
- twitter?: {
25
- title?: string;
26
- description?: string;
27
- image?: string;
28
- };
29
- apiMetaData?: string;
30
- schemaData?: string;
31
- hasNoAmp?: boolean;
32
- hasNoCanonical?: boolean;
33
- canonicalUrl?: string;
34
- };
35
- export declare type Props = {
36
- children: ReactNode;
37
- SEOData: SEOData;
38
- isAmp: boolean;
39
- locale: string;
40
- routerPathname: string;
41
- routerQuery: {
42
- [key: string]: string;
43
- };
44
- nextHead: React.FunctionComponent;
45
- siteType: SiteType;
46
- seoCustom?: boolean;
47
- userId?: string | number;
48
- forcedCanonicalUrl?: string;
49
- usingDefaultHead: boolean;
50
- };
51
- declare const Layout: ({ children, SEOData, isAmp, locale, routerPathname: pathname, routerQuery: query, nextHead: Head, siteType, seoCustom, userId, forcedCanonicalUrl, usingDefaultHead, }: Props) => JSX.Element;
52
- export { Layout };
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { CSSProperties } from 'styled-components';
3
- declare type HeadingProps = {
4
- type: 'h1' | 'h2' | 'h3' | 'h4';
5
- color?: string;
6
- style?: CSSProperties;
7
- [x: string]: string | JSX.Element | JSX.Element[] | React.ReactNode;
8
- };
9
- declare const MarryBabyHeading: ({ type, color, style, ...props }: HeadingProps) => JSX.Element;
10
- declare type TextProps = {
11
- type: 'subtitle-1' | 'subtitle-2' | 'subtitle-3' | 'bodytext-1' | 'bodytext-2' | 'bodytext-3' | 'caption-1' | 'caption-2';
12
- color?: string;
13
- style?: CSSProperties;
14
- [x: string]: string | JSX.Element | JSX.Element[] | React.ReactNode;
15
- };
16
- declare const MarryBabyText: ({ type, color, style, ...props }: TextProps) => JSX.Element;
17
- export { MarryBabyHeading, MarryBabyText };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export declare const StyledHeading: import("styled-components").StyledComponent<({ type, ...elementProps }: {
3
- [elementProps: string]: JSX.Element | React.ReactNode | JSX.Element[];
4
- type: string;
5
- }) => React.DOMElement<{
6
- [elementProps: string]: JSX.Element | React.ReactNode | JSX.Element[];
7
- }, Element>, any, {}, never>;
8
- export declare const StyledText: import("styled-components").StyledComponent<"p", any, {}, never>;
@@ -1,30 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocaleType } from 'interfaces/types';
3
- import { LogoType, MarryBabyFooterInfo } from '../types';
4
- export declare type Country = 'VN' | 'ID' | 'TH' | 'KH' | 'MY' | 'MM' | 'PH' | 'IN' | 'TW';
5
- export declare type Flag = {
6
- country: Country;
7
- link: string;
8
- };
9
- export declare type Props = {
10
- buttonText?: string;
11
- className?: string;
12
- socialLinks?: {
13
- facebookLink?: string;
14
- twitterLink?: string;
15
- instagramLink?: string;
16
- zaloLink?: string;
17
- linkedinLink?: string;
18
- youtubeLink?: string;
19
- };
20
- followusText?: string;
21
- copyrightText?: string;
22
- type: 'main' | 'mini';
23
- logoType?: LogoType;
24
- isMobile: boolean;
25
- flagLinks?: Array<Flag>;
26
- footerMenu?: MarryBabyFooterInfo;
27
- locale: LocaleType;
28
- };
29
- declare const MarryBabyFooter: ({ socialLinks: { facebookLink, instagramLink, zaloLink, youtubeLink, }, copyrightText, logoType, isMobile, footerMenu, type, }: Props) => JSX.Element;
30
- export { MarryBabyFooter };
@@ -1,8 +0,0 @@
1
- export declare const StyledFooter: import("styled-components").StyledComponent<"footer", any, {}, never>;
2
- export declare const StyledFooterContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyledMiniFooterContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const StyledFooterMenu: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const StyledMenuContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const StyledCompanyInfo: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const StyledInfoContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const StyledRoundDecorator: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const CategorySkeleton: () => JSX.Element;
3
- export default CategorySkeleton;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocaleType } from 'interfaces/types';
3
- import { DesktopMenuPopup, SiteType, Specialty } from '../types';
4
- export declare type Props = {
5
- careSpecialties: Specialty[];
6
- onSelectCareSpecialty: (c: Specialty) => void;
7
- onClosePopup: () => void;
8
- isLoading: boolean;
9
- isMobile: boolean;
10
- basePath: string;
11
- locale: LocaleType;
12
- desktopPopupType: DesktopMenuPopup;
13
- siteType: SiteType;
14
- CARE_URL_FE: string;
15
- };
16
- declare const MenuCareList: ({ careSpecialties, onSelectCareSpecialty, isLoading, desktopPopupType, onClosePopup, basePath, locale, isMobile, siteType, CARE_URL_FE, }: Props) => JSX.Element;
17
- export { MenuCareList };
@@ -1,12 +0,0 @@
1
- export declare const StyledCardSkeleton: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyledCategoryContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const StyledCategory: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const StyledCategoryIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const StyledMenuPopupWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const StyledMenuPopupContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const StyledInnerMenuPopupContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const StyledHealthToolItem: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const StyledCategoryItemAll: import("styled-components").StyledComponent<"div", any, {}, never>;
11
- export declare const StyledImageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
12
- export declare const StyledCloseWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const CategorySkeleton: () => JSX.Element;
3
- export default CategorySkeleton;
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocaleType } from 'interfaces/types';
3
- import { Category, DesktopMenuPopup, SiteType, SpotlightSummary } from '../types';
4
- export declare type Props = {
5
- locale: LocaleType;
6
- basePath: string;
7
- isDisplayed: boolean;
8
- categories: Category[];
9
- type: 'sub' | 'main';
10
- onSelectCategory: (c: Category) => void;
11
- onClosePopup: () => void;
12
- isLoading: boolean;
13
- isMobile: boolean;
14
- desktopPopupType: DesktopMenuPopup;
15
- DISCOVER_URL_FE: string;
16
- siteType: SiteType;
17
- spotlightsList: SpotlightSummary[];
18
- };
19
- declare const HelloSitesMenuCategoriesList: ({ locale, basePath, isDisplayed, categories, spotlightsList, type, onSelectCategory, onClosePopup, desktopPopupType, isMobile, isLoading, DISCOVER_URL_FE, siteType, }: Props) => JSX.Element;
20
- export { HelloSitesMenuCategoriesList };
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocaleType } from 'interfaces/types';
3
- import { Category, DesktopMenuPopup, SiteType, SpotlightSummary } from '../types';
4
- export declare type Props = {
5
- isDisplayed: boolean;
6
- locale: LocaleType;
7
- discoverApiDomain: string;
8
- basePath: string;
9
- categories: Category[];
10
- spotlightsList: SpotlightSummary[];
11
- type: 'sub' | 'main';
12
- onSelectCategory: (c: Category) => void;
13
- onClosePopup: () => void;
14
- isLoading: boolean;
15
- isMobile: boolean;
16
- desktopPopupType: DesktopMenuPopup;
17
- callApiHandler: (p: string, m: 'GET' | 'POST' | 'PUT') => any;
18
- DISCOVER_URL_FE: string;
19
- MARRY_BABY_FE: string;
20
- siteType: SiteType;
21
- };
22
- declare const MenuCategoriesList: ({ isDisplayed, locale, discoverApiDomain, basePath, categories, spotlightsList, type, onSelectCategory, onClosePopup, desktopPopupType, isMobile, isLoading, callApiHandler, DISCOVER_URL_FE, MARRY_BABY_FE, siteType, }: Props) => JSX.Element;
23
- export { MenuCategoriesList };
@@ -1,16 +0,0 @@
1
- export declare const StyledCardSkeleton: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyledListContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const StyledCategoryContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const StyledCategory: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const StyledCategoryIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const StyledCategoryItemAll: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const StyledImageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const StyledMenuPopupWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const StyledMenuPopupContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
11
- export declare const StyledMenuPopupInner: import("styled-components").StyledComponent<"div", any, {}, never>;
12
- export declare const StyledHealthCategoriesContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
13
- export declare const StyledCategoryItem: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- export declare const StyledSubCategoryItem: import("styled-components").StyledComponent<"div", any, {}, never>;
15
- export declare const StyledCloseWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
16
- export declare const StyledSameLineIndicator: import("styled-components").StyledComponent<"div", any, {}, never>;