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

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 (157) 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/organisms/navigationLogoutPopup/index.d.ts +2 -2
  10. package/build/components.js +1 -1
  11. package/build/esm/babyGrowth.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/getSocialList-2f760404.js +1 -0
  15. package/build/esm/index-2cf5cfbc.js +1 -0
  16. package/build/esm/index-3193cb21.js +1 -0
  17. package/build/esm/index-364815d1.js +1 -0
  18. package/build/esm/{index-d009b597.js → index-642d36c8.js} +1 -1
  19. package/build/esm/index-7a537be1.js +1 -0
  20. package/build/esm/{index-0d69362e.js → index-93d22d63.js} +1 -1
  21. package/build/esm/index-ea02d1db.js +1 -0
  22. package/build/esm/index-f8e043bf.js +1 -0
  23. package/build/esm/index.js +1 -1
  24. package/build/esm/index.styled-d8a819ea.js +1 -0
  25. package/build/esm/{index.styled-b9f4b7d1.js → index.styled-faeac279.js} +1 -1
  26. package/build/esm/mantine.js +1 -1
  27. package/build/esm/misc.js +1 -1
  28. package/build/esm/navigation.js +1 -1
  29. package/build/esm/screenSizeContext-12f741e1.js +1 -0
  30. package/build/esm/together.js +1 -1
  31. package/build/esm/types-39d553b4.js +1 -0
  32. package/build/esm/types-4863c0a8.js +1 -0
  33. package/build/getSocialList-561c9bda.js +1 -0
  34. package/build/{index-79ca5c8f.js → index-06ae8f3a.js} +1 -1
  35. package/build/index-14d933b6.js +1 -0
  36. package/build/index-4b470a77.js +1 -0
  37. package/build/index-55767b66.js +1 -0
  38. package/build/index-5d420cf1.js +1 -0
  39. package/build/index-da0e2c40.js +1 -0
  40. package/build/{index-c2b118f9.js → index-eb84390c.js} +1 -1
  41. package/build/{index-b0b1dce7.js → index-ef8759f0.js} +1 -1
  42. package/build/index.js +1 -1
  43. package/build/{index.styled-6d954724.js → index.styled-03c4dedb.js} +1 -1
  44. package/build/index.styled-1e5dd97e.js +1 -0
  45. package/build/mantine.js +1 -1
  46. package/build/misc.js +1 -1
  47. package/build/navigation.js +1 -1
  48. package/build/{screenSizeContext-6726a3b5.js → screenSizeContext-60cc891b.js} +1 -1
  49. package/build/together/components/molecules/popupFrame/popupShare.d.ts +2 -2
  50. package/build/together/components/molecules/postImagePreview/imagePreviewPopup.d.ts +2 -2
  51. package/build/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.d.ts +2 -2
  52. package/build/together.js +1 -1
  53. package/build/types-422a9b63.js +1 -0
  54. package/build/types-6439cc4a.js +1 -0
  55. package/package.json +1 -7
  56. package/build/assets/svg/StarFullIcon.d.ts +0 -3
  57. package/build/assets/svg/StarHalfIcon.d.ts +0 -3
  58. package/build/assets/svg/index.d.ts +0 -21
  59. package/build/components/molecules/embeddedHeathToolCards/image.d.ts +0 -1
  60. package/build/components/organisms/navigationLayout_deprecated/CustomFooter.d.ts +0 -33
  61. package/build/components/organisms/navigationLayout_deprecated/ampSideBar/index.d.ts +0 -28
  62. package/build/components/organisms/navigationLayout_deprecated/ampSideBar/index.styled.d.ts +0 -2
  63. package/build/components/organisms/navigationLayout_deprecated/constants.d.ts +0 -99
  64. package/build/components/organisms/navigationLayout_deprecated/exportLegacy.d.ts +0 -6
  65. package/build/components/organisms/navigationLayout_deprecated/footer/index.d.ts +0 -13
  66. package/build/components/organisms/navigationLayout_deprecated/footer/index.styled.d.ts +0 -2
  67. package/build/components/organisms/navigationLayout_deprecated/index.d.ts +0 -121
  68. package/build/components/organisms/navigationLayout_deprecated/index.styled.d.ts +0 -7
  69. package/build/components/organisms/navigationLayout_deprecated/languageWrapper.d.ts +0 -4
  70. package/build/components/organisms/navigationLayout_deprecated/languages/default.d.ts +0 -4
  71. package/build/components/organisms/navigationLayout_deprecated/layout.d.ts +0 -52
  72. package/build/components/organisms/navigationLayout_deprecated/marryBabyText/index.d.ts +0 -17
  73. package/build/components/organisms/navigationLayout_deprecated/marryBabyText/index.styled.d.ts +0 -8
  74. package/build/components/organisms/navigationLayout_deprecated/maryBabyFooter/index.d.ts +0 -30
  75. package/build/components/organisms/navigationLayout_deprecated/maryBabyFooter/index.styled.d.ts +0 -8
  76. package/build/components/organisms/navigationLayout_deprecated/menuCareList/categorySkeleton.d.ts +0 -3
  77. package/build/components/organisms/navigationLayout_deprecated/menuCareList/index.d.ts +0 -17
  78. package/build/components/organisms/navigationLayout_deprecated/menuCareList/index.styled.d.ts +0 -12
  79. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/categorySkeleton.d.ts +0 -3
  80. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/helloSites.d.ts +0 -20
  81. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/index.d.ts +0 -23
  82. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/index.styled.d.ts +0 -16
  83. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/marryBaby.d.ts +0 -17
  84. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/marryBaby.styled.d.ts +0 -11
  85. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/index.d.ts +0 -15
  86. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/index.styled.d.ts +0 -10
  87. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/spotlightSkeleton.d.ts +0 -3
  88. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/categorySkeleton.d.ts +0 -3
  89. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/helloSites.d.ts +0 -23
  90. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/index.d.ts +0 -23
  91. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/index.styled.d.ts +0 -13
  92. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/marryBaby.d.ts +0 -22
  93. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/marryBaby.styled.d.ts +0 -8
  94. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/categorySkeleton.d.ts +0 -3
  95. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/helloSites.d.ts +0 -25
  96. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/index.d.ts +0 -23
  97. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/index.styled.d.ts +0 -15
  98. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/marryBaby.d.ts +0 -16
  99. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/marrybaby.styled.d.ts +0 -8
  100. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/cardSkeleton.d.ts +0 -3
  101. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/index.d.ts +0 -13
  102. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/index.styled.d.ts +0 -2
  103. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/categoriesSubList.d.ts +0 -19
  104. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/communitySubList.d.ts +0 -20
  105. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/index.d.ts +0 -58
  106. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/index.styled.d.ts +0 -28
  107. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/marryBabyMobileMenuSection.d.ts +0 -9
  108. package/build/components/organisms/navigationLayout_deprecated/navigationBar/ArrowLeftPopupIcon.d.ts +0 -2
  109. package/build/components/organisms/navigationLayout_deprecated/navigationBar/ClosePopupIcon.d.ts +0 -2
  110. package/build/components/organisms/navigationLayout_deprecated/navigationBar/HamburgerIcon.d.ts +0 -9
  111. package/build/components/organisms/navigationLayout_deprecated/navigationBar/NavigationBar.types.d.ts +0 -87
  112. package/build/components/organisms/navigationLayout_deprecated/navigationBar/NavigationBarMobile.d.ts +0 -3
  113. package/build/components/organisms/navigationLayout_deprecated/navigationBar/SearchIcon.d.ts +0 -3
  114. package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.d.ts +0 -15
  115. package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.styled.d.ts +0 -26
  116. package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.d.ts +0 -11
  117. package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.styled.d.ts +0 -6
  118. package/build/components/organisms/navigationLayout_deprecated/profilePopup/index.d.ts +0 -22
  119. package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.d.ts +0 -14
  120. package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.styled.d.ts +0 -2
  121. package/build/components/organisms/navigationLayout_deprecated/siteWide/index.d.ts +0 -23
  122. package/build/components/organisms/navigationLayout_deprecated/siteWide/index.styled.d.ts +0 -3
  123. package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.d.ts +0 -28
  124. package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.styled.d.ts +0 -3
  125. package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.d.ts +0 -17
  126. package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.styled.d.ts +0 -5
  127. package/build/components/organisms/navigationLayout_deprecated/types.d.ts +0 -263
  128. package/build/components/organisms/navigationLayout_deprecated/utils.d.ts +0 -62
  129. package/build/core.js +0 -1
  130. package/build/core_deprecated.d.ts +0 -4
  131. package/build/esm/core.js +0 -1
  132. package/build/esm/getSocialList-ff22842b.js +0 -1
  133. package/build/esm/index-4dca7f50.js +0 -1
  134. package/build/esm/index-a1df367b.js +0 -1
  135. package/build/esm/index-a2f795a2.js +0 -1
  136. package/build/esm/index-a4d7d7b7.js +0 -1
  137. package/build/esm/index-c9da804a.js +0 -1
  138. package/build/esm/index-dc96c2db.js +0 -1
  139. package/build/esm/index-fe9820b2.js +0 -1
  140. package/build/esm/index.styled-a87311b3.js +0 -1
  141. package/build/esm/navigationLayout_deprecated.js +0 -1
  142. package/build/esm/screenSizeContext-d6e9a094.js +0 -1
  143. package/build/esm/types-7076aa18.js +0 -1
  144. package/build/esm/types-9bdaa5f2.js +0 -1
  145. package/build/esm/utils-53a64f38.js +0 -1
  146. package/build/getSocialList-2a3b759f.js +0 -1
  147. package/build/index-7b6795d0.js +0 -1
  148. package/build/index-86fb3a3a.js +0 -1
  149. package/build/index-abee6655.js +0 -1
  150. package/build/index-bf74d101.js +0 -1
  151. package/build/index-c3d46326.js +0 -1
  152. package/build/index-f2654ea8.js +0 -1
  153. package/build/index.styled-26e09df8.js +0 -1
  154. package/build/navigationLayout_deprecated.js +0 -1
  155. package/build/types-c9e3bda5.js +0 -1
  156. package/build/types-d01e823f.js +0 -1
  157. package/build/utils-e2a4fdad.js +0 -1
@@ -1,87 +0,0 @@
1
- /// <reference types="react" />
2
- import { TypeProps as LogoTypeProps } from 'components/atoms/logo';
3
- import { DesktopMenuPopup, MenuItemType, MobileMenuPopup, SiteType, UserInfo } from 'components/organisms/navigationLayout_deprecated/types';
4
- import { LocaleType } from 'interfaces/types';
5
- export declare type TypeProps = 'popup' | 'popup-sub-level' | 'home';
6
- export declare type TypeOnMenuClick = (s: MobileMenuPopup) => void;
7
- export declare type TypeStatics = {
8
- HOME_PAGE_URL: string;
9
- DISCOVER_URL_FE: string;
10
- SSO_URL: string;
11
- MARRY_BABY_FE: string;
12
- CARE_URL_FE: string;
13
- };
14
- export interface Props {
15
- siteType: SiteType;
16
- currentPopupType: DesktopMenuPopup;
17
- isInit: boolean;
18
- isDisplayed: boolean;
19
- basePath: string;
20
- onTopBarAppears: (b: boolean) => void;
21
- isSearchBarDisplay: boolean;
22
- onSearchChange: (v: string) => void;
23
- onSearchKeyPress: (e: React.KeyboardEvent<Element>, t: string) => void;
24
- title: string;
25
- menu: JSX.Element;
26
- profileMenu: JSX.Element;
27
- openPopup: (s: DesktopMenuPopup) => void;
28
- searchPlaceholder: string;
29
- type: TypeProps;
30
- isMobile: boolean;
31
- isLoginButtonDisplayed: boolean;
32
- isStatic: boolean;
33
- onMenuClick: TypeOnMenuClick;
34
- userInfo: UserInfo;
35
- routerAsPath: string;
36
- locale: LocaleType;
37
- statics: TypeStatics;
38
- marryBaby: {
39
- tone: 'pink' | 'white';
40
- };
41
- menuItems: MenuItemType[];
42
- isAmp: boolean;
43
- sitewideBanner?: JSX.Element;
44
- sitewideBannerShown?: boolean;
45
- sponsorComponent?: JSX.Element;
46
- languageMenu?: JSX.Element;
47
- isSearchIconDisplayed?: boolean;
48
- enabledExperimentalCareHeader?: boolean;
49
- onCareHeaderClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
50
- }
51
- export interface NavigationBarMobileProps {
52
- type: TypeProps;
53
- isStatic: boolean;
54
- isAmp: boolean;
55
- isDisplayed: boolean;
56
- siteType: SiteType;
57
- isCollapsed: boolean;
58
- sitewideBannerShown?: boolean;
59
- sitewideBanner?: JSX.Element;
60
- sitewideBannerClosed: boolean;
61
- setSitewideBannerClosed: React.Dispatch<React.SetStateAction<boolean>>;
62
- isMobile: boolean;
63
- onMenuClick: TypeOnMenuClick;
64
- menu: JSX.Element;
65
- isSearchIconDisplayed?: boolean;
66
- statics: TypeStatics;
67
- basePath: string;
68
- languageMenu?: JSX.Element;
69
- enabledExperimentalCareHeader?: boolean;
70
- onCareHeaderClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
71
- logoType: LogoTypeProps;
72
- locale: LocaleType;
73
- isInit: boolean;
74
- title: string;
75
- sponsorComponent?: JSX.Element;
76
- currentUrl: string;
77
- userInfo: UserInfo;
78
- currentPopupType: DesktopMenuPopup;
79
- avatar: JSX.Element;
80
- profileMenu: JSX.Element;
81
- isLoginButtonDisplayed: boolean;
82
- goToLogin: () => void;
83
- isSearchBarDisplay: boolean;
84
- searchPlaceholder: string;
85
- onSearchValueChanged: (v: string) => void;
86
- keyPressed: (e: React.KeyboardEvent<Element>) => void;
87
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { NavigationBarMobileProps } from './NavigationBar.types';
3
- export declare function NavigationBarMobile({ type, isStatic, isAmp, isDisplayed, siteType, isCollapsed, sitewideBannerShown, sitewideBanner, sitewideBannerClosed, setSitewideBannerClosed, isMobile, onMenuClick, menu, isSearchIconDisplayed, statics: { DISCOVER_URL_FE, SSO_URL, HOME_PAGE_URL, CARE_URL_FE }, basePath, languageMenu, enabledExperimentalCareHeader, onCareHeaderClick, logoType, locale, isInit, title, sponsorComponent, currentUrl, userInfo, currentPopupType, avatar, profileMenu, isLoginButtonDisplayed, goToLogin, isSearchBarDisplay, searchPlaceholder, onSearchValueChanged, keyPressed, }: NavigationBarMobileProps): JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const SearchIcon: () => JSX.Element;
3
- export { SearchIcon };
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { Props } from './NavigationBar.types';
3
- export type { Props } from './NavigationBar.types';
4
- export declare const useHeaderHeightHook: ({ hasSponsoredBanners, isSiteWide, isSponsored, isShowingSiteWideBanner, isMobile, }: {
5
- hasSponsoredBanners?: boolean;
6
- isSiteWide?: boolean;
7
- isSponsored?: boolean;
8
- isShowingSiteWideBanner?: boolean;
9
- isMobile?: boolean;
10
- }) => {
11
- headerHeight: number;
12
- headerRef: React.MutableRefObject<HTMLDivElement>;
13
- };
14
- declare const NavigationBar: ({ siteType, basePath, statics, currentPopupType, isDisplayed, isSearchBarDisplay, searchPlaceholder, openPopup, onTopBarAppears, onSearchChange, onSearchKeyPress, menu, isAmp, profileMenu, isMobile, isLoginButtonDisplayed, title, type, onMenuClick, isStatic, routerAsPath: asPath, locale, userInfo, marryBaby: { tone }, menuItems, isInit: _isInit, sitewideBanner, sitewideBannerShown, sponsorComponent, languageMenu, isSearchIconDisplayed, enabledExperimentalCareHeader, onCareHeaderClick, }: Props) => JSX.Element;
15
- export { NavigationBar };
@@ -1,26 +0,0 @@
1
- import { StyledComponent } from 'styled-components';
2
- export declare const StyledHeaderContainer: StyledComponent<"header", any, {}, never>;
3
- export declare const StyledMenuContainer: StyledComponent<"header", any, {}, never>;
4
- export declare const StyledMenuIcon: StyledComponent<'div', any, {
5
- on?: string;
6
- }, never>;
7
- export declare const StyledMenuSearchInput: StyledComponent<"div", any, {}, never>;
8
- export declare const StyledDesktopHeaderWrapper: StyledComponent<"div", any, {}, never>;
9
- export declare const StyledDesktopHeader: StyledComponent<"div", any, {}, never>;
10
- export declare const StyledLeftGroup: StyledComponent<"div", any, {}, never>;
11
- export declare const StyledLogoWrapper: StyledComponent<"div", any, {}, never>;
12
- export declare const StyledDesktopMenuSearchInput: StyledComponent<"div", any, {}, never>;
13
- export declare const StyledRightGroup: StyledComponent<"div", any, {}, never>;
14
- export declare const StyledImageWrapper: StyledComponent<"div", any, {}, never>;
15
- export declare const StyledMenuIconWrapper: StyledComponent<"div", any, {}, never>;
16
- export declare const StyledHeaderMenuItem: StyledComponent<"div", any, {}, never>;
17
- export declare const StyledProfileMenu: StyledComponent<"div", any, {}, never>;
18
- export declare const StyledCloseButton: StyledComponent<'div', any, {
19
- on?: string;
20
- }, never>;
21
- export declare const StyledAmpCategoryCard: StyledComponent<'div', any, {
22
- on?: string;
23
- '[class]'?: string;
24
- }, never>;
25
- export declare const StyledAmpSidebar: StyledComponent<"div", any, {}, never>;
26
- export declare const StyledAvatar: StyledComponent<"div", any, {}, never>;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- declare type Props = {
3
- callPostLogOutApi: () => void;
4
- openLogoutPopup: boolean;
5
- onCloseHandler: () => void;
6
- onLogoutHandler: () => void;
7
- basePath: string;
8
- siteType: 'helloSites' | 'marryBaby';
9
- };
10
- declare const NavigationLogoutPopup: ({ callPostLogOutApi, openLogoutPopup, onCloseHandler, onLogoutHandler, basePath, siteType, }: Props) => JSX.Element;
11
- export { NavigationLogoutPopup };
@@ -1,6 +0,0 @@
1
- export declare const StyledPopup: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- declare type StyledButtonGroupProps = {
3
- siteType: 'helloSites' | 'marryBaby';
4
- };
5
- export declare const StyledButtonGroup: import("styled-components").StyledComponent<"div", any, StyledButtonGroupProps, never>;
6
- export {};
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocaleType } from 'interfaces/types';
3
- import { UserInfo } from '../types';
4
- export declare type Props = {
5
- SSO_URL?: string;
6
- UP_BASEPATH?: string;
7
- isOpen: boolean;
8
- locale: LocaleType;
9
- targetAvatar?: string;
10
- userInfo?: UserInfo;
11
- ENABLE_COMMUNITY_PROFILE_MENU_LOCALES: LocaleType[];
12
- ENABLE_CARE_PROFILE_MENU_LOCALES: LocaleType[];
13
- closePopup: () => void;
14
- dispatchLogout: () => void;
15
- userProfileRouterPush?: (s: string) => void;
16
- siteType: 'marryBaby' | 'helloSites';
17
- isUserProfileNavigatorMenuHidden?: boolean;
18
- isMyHealthEnabled?: boolean;
19
- togetherApiDomain?: string;
20
- };
21
- declare const ProfilePopup: ({ SSO_URL, UP_BASEPATH, isOpen, locale, targetAvatar, userInfo, ENABLE_CARE_PROFILE_MENU_LOCALES, ENABLE_COMMUNITY_PROFILE_MENU_LOCALES, closePopup, siteType, dispatchLogout, userProfileRouterPush, isUserProfileNavigatorMenuHidden, isMyHealthEnabled, togetherApiDomain, }: Props) => JSX.Element;
22
- export { ProfilePopup };
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type Props = {
3
- type: 'lead' | 'form' | 'confirm' | 'profile' | 'welcome' | 'due-date';
4
- closeIcon?: JSX.Element;
5
- onClose?: () => void;
6
- isOpen?: boolean;
7
- children?: any;
8
- enableAnimation?: boolean;
9
- targetAvatar?: string;
10
- id?: string;
11
- className?: string;
12
- };
13
- declare const Popup: ({ type, closeIcon, isOpen, onClose, children, enableAnimation, targetAvatar, id, className, }: Props) => JSX.Element;
14
- export { Popup };
@@ -1,2 +0,0 @@
1
- export declare const StyledPopup: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledPopupWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { SiteType } from '../types';
3
- export declare type Props = {
4
- icon: string;
5
- content: string;
6
- isMobile?: boolean;
7
- isCollapsed?: boolean;
8
- type?: 'article' | 'category' | 'home' | 'other';
9
- onClose?: () => void;
10
- setBannerClosed?: (v: boolean) => void;
11
- dispatch?: (params: any) => void;
12
- dispatchActionType?: string;
13
- cookieName?: string;
14
- isAmp?: boolean;
15
- siteType?: SiteType;
16
- _overrideCloseHandler?: () => void;
17
- dataEventCategory?: string;
18
- dataEventAction?: string;
19
- dataEventLabel?: string;
20
- dataTracking?: string;
21
- };
22
- declare const SiteWide: ({ icon, content, isCollapsed, isMobile, type, onClose, setBannerClosed, dispatch, dispatchActionType, cookieName, _overrideCloseHandler, isAmp, siteType, dataEventCategory, dataEventAction, dataEventLabel, dataTracking, }: Props) => JSX.Element;
23
- export { SiteWide };
@@ -1,3 +0,0 @@
1
- export declare const StyledSiteWideContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyledCloseIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,28 +0,0 @@
1
- /// <reference types="react" />
2
- import { ContentSponsor } from '../types';
3
- export declare type Props = {
4
- image: string;
5
- isMobile: boolean;
6
- href?: string;
7
- className?: string;
8
- isAmp?: boolean;
9
- };
10
- declare const SponsoredBy: ({ image, href, className, isMobile, isAmp }: Props) => JSX.Element;
11
- export declare type StickyProps = {
12
- className?: string;
13
- isMobile?: boolean;
14
- isCollapsed?: boolean;
15
- sponsoredType?: 'article' | 'content';
16
- sponsoredBy?: ContentSponsor;
17
- isAmp?: boolean;
18
- locale?: string;
19
- };
20
- declare const StickySponsoredBy: ({ className, isMobile, isCollapsed, sponsoredType, sponsoredBy, isAmp, locale, }: StickyProps) => JSX.Element;
21
- declare type PopupProps = {
22
- isAmp: boolean;
23
- onClose?: () => void;
24
- sponsoredBy?: ContentSponsor;
25
- locale?: string;
26
- };
27
- declare const SponsoredPopup: ({ sponsoredBy, isAmp, onClose, locale, }: PopupProps) => JSX.Element;
28
- export { SponsoredBy, StickySponsoredBy, SponsoredPopup };
@@ -1,3 +0,0 @@
1
- export declare const StyledSponsoredBy: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledStickySponsoredBy: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyledStickySponsoredPopup: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { CSSProperties } from 'styled-components';
3
- export declare type Option = {
4
- value: string;
5
- label: string;
6
- };
7
- export declare type Props = {
8
- options: Option[];
9
- selected: string | number;
10
- label?: string | JSX.Element;
11
- onChange: (s: string) => void;
12
- showSelected?: boolean;
13
- style?: CSSProperties;
14
- showIndicator?: boolean;
15
- };
16
- declare const TooltipSelection: ({ options, label, selected, onChange, showSelected, style, showIndicator, }: Props) => JSX.Element;
17
- export { TooltipSelection };
@@ -1,5 +0,0 @@
1
- export declare const StyledSelectionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledSelectionLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyleSelectionPopup: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const StyledOption: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const StyledPopupBackground: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,263 +0,0 @@
1
- /// <reference types="react" />
2
- export { LocaleType } from 'interfaces/types';
3
- export declare type LogoType = 'hellobacsi' | 'hellosehat' | 'hellohealth' | 'hellotogether' | 'hellocare' | 'logomark' | 'hellodoctor' | 'hellokrupet' | 'helloswasthya' | 'hellosayarwon' | 'helloyishi' | 'hellokhunmor' | 'hellodoktor' | 'marryBaby';
4
- export declare type DesktopMenuPopup = 'categories' | 'tools' | 'care' | 'communities' | 'profile' | 'language' | 'none';
5
- export declare type MobileMenuPopup = 'categories' | 'profile' | 'language' | 'none';
6
- export declare type UserRole = 'user' | 'admin';
7
- export declare type UserInfo = {
8
- name?: string;
9
- phone?: string;
10
- username?: string;
11
- avatar?: string;
12
- email?: string;
13
- role?: UserRole;
14
- phone_verified?: boolean;
15
- birthday?: string;
16
- gender?: number;
17
- id?: number;
18
- bookmarks?: Array<string | number>;
19
- coralToken?: {
20
- token?: string;
21
- isTemp?: boolean;
22
- };
23
- total_bookmark?: number;
24
- first_time_bookmark?: boolean;
25
- provider?: string;
26
- phone_verified_at?: string;
27
- verify_phone_code?: string;
28
- city_id?: string;
29
- type_of_pass?: string;
30
- is_new?: 0 | 1;
31
- communities_interacted?: 0 | 1;
32
- };
33
- export declare type CommunityApi = {
34
- thumbnail: string;
35
- name: string;
36
- slug: string;
37
- id: number;
38
- color?: string;
39
- };
40
- export declare type Community = {
41
- thumbnail: string;
42
- title: string;
43
- communitySlug: string;
44
- communityId: number;
45
- color?: string;
46
- };
47
- export declare type SearchType = 'doctor' | 'service' | 'hospital' | undefined;
48
- export declare type Specialty = {
49
- name: string;
50
- id: number;
51
- thumbnail: string;
52
- total_doctor: number;
53
- slug: string;
54
- };
55
- export declare type SpotlightSummaryApi = {
56
- ID: number;
57
- name: string;
58
- permalink: string;
59
- image?: string;
60
- image_medium?: string;
61
- image_thumbnail?: string;
62
- start_date?: string | null;
63
- end_date?: string | null;
64
- small_banner?: string;
65
- desktop_banner?: string | null;
66
- mobile_banner?: string | null;
67
- };
68
- export declare type SpotlightSummary = {
69
- id: number;
70
- name: string;
71
- permalink: string;
72
- image: string;
73
- imageMedium?: string | null;
74
- imageThumbnail?: string | null;
75
- startDate?: string | null;
76
- endDate?: string | null;
77
- };
78
- export declare type Category = {
79
- iconUrl: string;
80
- categoryName: string;
81
- name: string;
82
- slugName: string;
83
- imageColor: string;
84
- displayName: string;
85
- permalink: string;
86
- slug: string;
87
- childCates: Category[];
88
- };
89
- export declare type HealthToolApi = {
90
- title: string;
91
- subtitle: string;
92
- icon: string;
93
- link: string;
94
- };
95
- export declare type HealthTool = {
96
- title: string;
97
- subtitle: string;
98
- icon: string;
99
- link: string;
100
- };
101
- export declare type CategoryHealthToolApi = {
102
- term_id: number;
103
- name: string;
104
- health_tools: HealthToolApi[];
105
- };
106
- export declare type HealthToolByCategory = {
107
- termId: number;
108
- name: string;
109
- healthTools: HealthTool[];
110
- };
111
- export declare type MenuService = {
112
- name: string;
113
- id: string;
114
- thumbnail: string;
115
- link: string;
116
- };
117
- export declare type NotificationType = {
118
- id: number;
119
- message: string;
120
- type: 'success' | 'danger' | 'warning' | 'info';
121
- };
122
- export declare type State = {
123
- isLoggedIn: boolean;
124
- isMobileSsr: boolean;
125
- userInfo?: UserInfo;
126
- openLogoutPopup: boolean;
127
- newBookmark: number[];
128
- focusCommentId?: string | number;
129
- notifications: NotificationType[];
130
- isCommentReleaseSSR?: boolean;
131
- isOpenDueDatePopup?: boolean;
132
- dueDateRedirectLink?: string | null;
133
- dueDate?: string | null;
134
- sitewideClose: {
135
- [key: string]: boolean;
136
- };
137
- };
138
- export declare type UrlSource = 'first_login' | 'welcome_back' | 'comment';
139
- export declare type Action = {
140
- type: string;
141
- payload?: any;
142
- };
143
- export declare type PushNotificationPayloadType = {
144
- message: string;
145
- type: 'success' | 'danger' | 'info' | 'warning';
146
- title?: string;
147
- };
148
- export declare type Context = {
149
- state: State;
150
- dispatch: (action: Action) => void;
151
- pushNotifications: (payload: PushNotificationPayloadType) => void;
152
- };
153
- export declare type NavContext = {
154
- translation: {
155
- [key: string]: string;
156
- };
157
- };
158
- export declare type SiteType = 'marryBaby' | 'helloSites';
159
- export declare type CategoriesLayout = 'short' | 'long';
160
- export declare type FooterInfo = {
161
- general: {
162
- logo: string;
163
- content: string;
164
- copyright: string;
165
- verified: Array<{
166
- image: string;
167
- url: string;
168
- }>;
169
- };
170
- menu: Array<{
171
- menu_title: string;
172
- items: Array<{
173
- title: string;
174
- url: string;
175
- }>;
176
- }>;
177
- social: {
178
- title: string;
179
- socials: Array<{
180
- icon: string;
181
- name: string;
182
- url: string;
183
- }>;
184
- };
185
- branch: {
186
- title: string;
187
- branch: Array<{
188
- flag: string;
189
- name: string;
190
- url: string;
191
- }>;
192
- };
193
- };
194
- export declare type MarryBabyFooterInfo = {
195
- title: string;
196
- link: string;
197
- }[];
198
- export declare type Option = {
199
- label: string | JSX.Element;
200
- value: string | Date | number;
201
- icon?: JSX.Element;
202
- };
203
- export declare type MenuServiceType = 'categories' | 'healthTools' | 'together' | 'care';
204
- export declare type MenuItemType = {
205
- name: string;
206
- id: MenuServiceType;
207
- link: string;
208
- niceName?: string;
209
- thumbnail: string;
210
- isDisplayed: boolean;
211
- };
212
- export declare type TopicApi = {
213
- categories: any;
214
- community: CommunityApi;
215
- count_members: number;
216
- count_posts: number;
217
- description: string;
218
- id: number;
219
- is_active: number;
220
- joined: boolean;
221
- name: string;
222
- order: number;
223
- slug: string;
224
- thumbnail: string;
225
- };
226
- export declare type Topic = {
227
- categories: any;
228
- community: CommunityApi;
229
- count_members: number;
230
- count_posts: number;
231
- description: string;
232
- id: number;
233
- is_active: number;
234
- joined: boolean;
235
- name: string;
236
- order: number;
237
- slug: string;
238
- thumbnail: string;
239
- };
240
- export declare type LocalisedSlugsType = 'HOSPITAL' | 'SERVICE' | 'DOCTOR' | 'ALL' | 'SEARCH' | 'SPECIALTIES';
241
- export declare type ContentSponsor = {
242
- title?: string;
243
- link?: string;
244
- logo?: string | false;
245
- image?: string | false;
246
- };
247
- export declare type AmpNextArticle = {
248
- articleOne?: {
249
- title: string;
250
- image: string;
251
- link: string;
252
- };
253
- articleTwo?: {
254
- title: string;
255
- image: string;
256
- link: string;
257
- };
258
- articleThree?: {
259
- title: string;
260
- image: string;
261
- link: string;
262
- };
263
- };
@@ -1,62 +0,0 @@
1
- import React from 'react';
2
- import { LocaleType } from 'interfaces/types';
3
- import { CategoryHealthToolApi, Community, CommunityApi, HealthTool, HealthToolApi, HealthToolByCategory, LocalisedSlugsType, NavContext, SpotlightSummary, SpotlightSummaryApi, TopicApi } from './types';
4
- export declare const NaContext: React.Context<NavContext>;
5
- export declare const useTranslation: () => (key: string, option?: {
6
- [key: string]: any;
7
- }) => string;
8
- export declare const formatCommunity: (community: CommunityApi) => Community;
9
- export declare const formatTogetherTopic: (topic: TopicApi) => Community;
10
- export declare const formatSponsor: (sponsor: any) => any;
11
- export declare const formatReviewedCategory: (data: any) => any;
12
- export declare const formatFaqsCategory: (data: any) => any;
13
- export declare const formatCategory: (category: any) => any;
14
- export declare const formatHealthTool: (healthTool: HealthToolApi) => HealthTool;
15
- export declare const formatHealthToolTypeCategory: (category: CategoryHealthToolApi) => HealthToolByCategory;
16
- export declare const getCareDefaultSpecialtiesApiPath: (locale: LocaleType, apiDomain?: string, params?: {
17
- [key: string]: string | number;
18
- }) => string;
19
- export declare const getDiscoverDefaultCategoriesApiPath: (locale: LocaleType, apiDomain?: string, params?: {
20
- [key: string]: string | number;
21
- }) => string;
22
- export declare const getDiscoverDefaultHealthToolsApiPath: (locale: LocaleType, apiDomain?: string, params?: {
23
- [key: string]: string | number;
24
- }) => string;
25
- export declare const getDiscoverDefaultHealthToolsByCategoryApiPath: (locale: LocaleType, apiDomain?: string, params?: {
26
- [key: string]: string | number;
27
- }) => string;
28
- export declare const getDiscoverDefaultSpotlightsApiPath: (locale: LocaleType, apiDomain?: string, params?: {
29
- [key: string]: string | number;
30
- }) => string;
31
- export declare const getDiscoverDefaultFooterApiPath: (locale: LocaleType, apiDomain?: string, params?: {
32
- [key: string]: string | number;
33
- }) => string;
34
- export declare const getTogetherDefaultCommunitiesApiPath: (locale: LocaleType, apiDomain?: string, params?: {
35
- [key: string]: string | number;
36
- }) => string;
37
- export declare const getTogetherUserPostsApiPath: (locale: LocaleType, isMarryBaby: boolean, apiDomain?: string, params?: {
38
- [key: string]: string | number;
39
- }) => string;
40
- export declare const getTogetherMarryBabyCommunitiesApiPath: (locale: LocaleType, apiDomain?: string, params?: {
41
- [key: string]: string | number;
42
- }) => string;
43
- export declare const getTogetherDefaultCommunitiesSubMenuApiPath: (locale: LocaleType, apiDomain?: string, params?: {
44
- [key: string]: string | number;
45
- }) => string;
46
- export declare const getTogetherMarryBabyCommunitiesSubMenuApiPath: (locale: LocaleType, apiDomain?: string, params?: {
47
- [key: string]: string | number;
48
- }) => string;
49
- export declare const getMarryBabyDefaultFooterApiPath: (locale: LocaleType, apiDomain?: string, params?: {
50
- [key: string]: string | number;
51
- }) => string;
52
- export declare const getMarryBabyDefaultHealthToolsApiPath: (locale: LocaleType, apiDomain?: string, params?: {
53
- [key: string]: string | number;
54
- }) => string;
55
- export declare const getCareSearchUrl: ({ type, specialtySlug, locale, }: {
56
- type: LocalisedSlugsType;
57
- cityId?: string | number;
58
- specialtySlug: string;
59
- locale: LocaleType;
60
- }) => string;
61
- export declare const formatSpotlightsList: (spotlight: SpotlightSummaryApi) => SpotlightSummary;
62
- export declare const checkAvailableSpotlight: (spotlight: SpotlightSummary) => boolean;
package/build/core.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-57503957.js"),r=require("./index-bce6f562.js"),t=require("./useTranslations-a5b5c74c.js"),o=require("./useScrollbarSize-586f6706.js"),s=require("./useFbDataLayer-eda77edb.js"),a=require("./useHealthToolCache-014adcd3.js"),i=require("./localizeNumberFormat-d34a738e.js"),l=require("./screenSizeContext-6726a3b5.js"),n=require("./cookieHelper-612b90fa.js");require("react"),require("styled-components");var u=require("./theme-696d81a9.js"),p=require("./number-87b13133.js"),x=require("./getDynamicHealthTool-770421bc.js"),d=require("./getSocialList-2a3b759f.js");require("./Locale-11b51016.js"),require("./en-PH-7307aee7.js"),require("./translationsContext-2d7ea471.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-f7929e76.js"),require("date-fns"),require("vanilla-lazyload"),require("lodash"),require("./core-8fcc56eb.js"),exports.Types=e.index,exports.Constants=r.index,exports.useTranslations=t.useTranslations,exports.MEASURE_ELEMENT_CLASS=o.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=o.useScrollbarSize,exports.useFbDataLayer=s.useFbDataLayer,exports.useHealthToolsCache=a.useHealthToolsCache,exports.ageGenerate=i.ageGenerate,exports.convertLocalizedStringToNumber=i.convertLocalizedStringToNumber,exports.localizeNumberFormat=i.localizeNumberFormat,exports.Breakpoints=l.Breakpoints,exports.MediaQueries=l.MediaQueries,exports.ScreenSizeContext=l.ScreenSizeContext,exports.ScreenSizeContextProvider=l.ScreenSizeContextProvider,exports.fadeIn=l.fadeIn,exports.formatUrlWithPageParam=l.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=l.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=l.getPopupWrapperDom,exports.getWindowSizeGroups=l.getWindowSizeGroups,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return l.lazyLoadInstance}}),exports.makeParams=l.makeParams,exports.slideInDown=l.slideInDown,exports.slideInLeft=l.slideInLeft,exports.slideInRight=l.slideInRight,exports.slideInUp=l.slideInUp,exports.slideOutDown=l.slideOutDown,exports.slideOutLeft=l.slideOutLeft,exports.slideOutRight=l.slideOutRight,exports.slideOutUp=l.slideOutUp,exports.startCase=l.startCase,exports.toggleNoScroll=l.toggleNoScroll,exports.deleteCookie=n.deleteCookie,exports.getCookie=n.getCookie,exports.setCookie=n.setCookie,exports.theme=u.theme,exports.abbreviateNumber=p.abbreviateNumber,exports.formatHealthTool=x.formatHealthTool,exports.getCareApiDomain=x.getCareApiDomain,exports.getCurrentBaseUrl=x.getCurrentBaseUrl,exports.getCurrentSsoUrl=x.getCurrentSsoUrl,exports.getDiscoverApiDomain=x.getDiscoverApiDomain,exports.getDynamicHealthTool=x.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=x.getDynamicHealthToolWithCache,exports.getTogetherApiDomain=x.getTogetherApiDomain,exports.getSocialList=d.getSocialList;
@@ -1,4 +0,0 @@
1
- export * as Types from './interfaces/types';
2
- export * as Constants from './interfaces/constants';
3
- export * from './hooks';
4
- export * from './misc';
package/build/esm/core.js DELETED
@@ -1 +0,0 @@
1
- export{i as Types}from"./index-62c22dbe.js";export{i as Constants}from"./index-58ae0705.js";export{u as useTranslations}from"./useTranslations-ad4d9d26.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-5016df43.js";export{u as useHealthToolsCache}from"./useHealthToolCache-e4e2778a.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-77c129ef.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,p as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,o as getWindowSizeGroups,l as lazyLoadInstance,m as makeParams,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,n as startCase,t as toggleNoScroll}from"./screenSizeContext-d6e9a094.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-0e8521c3.js";import"react";import"styled-components";export{t as theme}from"./theme-a50a1aa5.js";export{a as abbreviateNumber}from"./number-3cb24023.js";export{f as formatHealthTool,d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,e as getDynamicHealthTool,h as getDynamicHealthToolWithCache,b as getTogetherApiDomain}from"./getDynamicHealthTool-f43c2db2.js";export{g as getSocialList}from"./getSocialList-ff22842b.js";import"./Locale-69030fff.js";import"./en-PH-ca0683d7.js";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./tslib.es6-5532bd7b.js";import"date-fns";import"vanilla-lazyload";import"lodash";import"./core-d22826b4.js";