@hhgtech/hhg-components 1.21.0-beta-16 → 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.
- package/build/babyGrowth.js +1 -1
- package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/heading/index.d.ts +1 -1
- package/build/components/atoms/icons/Check.d.ts +4 -0
- package/build/components/atoms/icons/Reply.d.ts +4 -0
- package/build/components/atoms/icons/UserCheck.d.ts +4 -0
- package/build/components/atoms/icons/index.d.ts +3 -0
- package/build/{assets/svg → components/atoms/rateStars}/StarEmptyIcon.d.ts +0 -0
- package/build/components/atoms/rateStars/StarFullIcon.d.ts +3 -0
- package/build/components/atoms/rateStars/StarHalfIcon.d.ts +3 -0
- package/build/components/atoms/slider/index.styled.d.ts +1 -1
- package/build/components/atoms/text/index.d.ts +2 -1
- package/build/components/mantine/carousel/index.d.ts +10 -0
- package/build/components/mantine/checkbox/index.d.ts +8 -0
- package/build/components/mantine/checkbox/index.styled.d.ts +6 -0
- package/build/components/mantine/helpers.d.ts +3 -0
- package/build/components/mantine/index.d.ts +14 -0
- package/build/components/mantine/input/file.d.ts +5 -0
- package/build/components/mantine/input/index.d.ts +19 -0
- package/build/components/mantine/input/index.styled.d.ts +7 -0
- package/build/components/mantine/input/number.d.ts +8 -0
- package/build/components/mantine/input/password.d.ts +8 -0
- package/build/components/mantine/loadingOverlay/index.d.ts +5 -0
- package/build/components/mantine/radio/index.d.ts +8 -0
- package/build/components/mantine/radio/index.styled.d.ts +6 -0
- package/build/components/mantine/slider/index.d.ts +8 -0
- package/build/components/mantine/slider/index.styled.d.ts +3 -0
- package/build/components/mantine/switch/index.d.ts +7 -0
- package/build/components/molecules/embeddedHeathToolCards/ovulation.d.ts +16 -0
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components/molecules/ovulationCalculator/index.d.ts +14 -0
- package/build/components/molecules/ovulationCalculator/ovulationForm.d.ts +12 -0
- package/build/components/organisms/heroBannerHealthTool/healthToolBanner.d.ts +15 -0
- package/build/components/organisms/heroBannerHealthTool/index.d.ts +13 -0
- package/build/components/organisms/heroBannerHealthTool/index.styled.d.ts +10 -0
- package/build/components/organisms/navigationLogoutPopup/index.d.ts +2 -2
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/ecom.js +1 -1
- package/build/en-PH-7307aee7.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/en-PH-ca0683d7.js +1 -0
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-f43c2db2.js +1 -0
- package/build/esm/getSocialList-2f760404.js +1 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-2cf5cfbc.js +1 -0
- package/build/esm/index-3193cb21.js +1 -0
- package/build/esm/index-364815d1.js +1 -0
- package/build/esm/index-58ae0705.js +1 -0
- package/build/esm/{index-b8401631.js → index-642d36c8.js} +1 -1
- package/build/esm/index-7a537be1.js +1 -0
- package/build/esm/index-93d22d63.js +1 -0
- package/build/esm/index-ea02d1db.js +1 -0
- package/build/esm/index-f8e043bf.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-d8a819ea.js +1 -0
- package/build/esm/index.styled-faeac279.js +1 -0
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/screenSizeContext-12f741e1.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/translationsContext-d658f58d.js +1 -0
- package/build/esm/translationsProvider-bc47fc67.js +1 -0
- package/build/esm/types-39d553b4.js +1 -0
- package/build/esm/types-4863c0a8.js +1 -0
- package/build/esm/{useHealthToolCache-6668e8c3.js → useHealthToolCache-e4e2778a.js} +1 -1
- package/build/esm/useTranslations-ad4d9d26.js +1 -0
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-770421bc.js +1 -0
- package/build/getSocialList-561c9bda.js +1 -0
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index-06ae8f3a.js +1 -0
- package/build/index-14d933b6.js +1 -0
- package/build/index-4b470a77.js +1 -0
- package/build/index-55767b66.js +1 -0
- package/build/{index-af3a78da.js → index-5d420cf1.js} +1 -1
- package/build/index-bce6f562.js +1 -0
- package/build/index-da0e2c40.js +1 -0
- package/build/{index-4888aa12.js → index-eb84390c.js} +1 -1
- package/build/index-ef8759f0.js +1 -0
- package/build/index.js +1 -1
- package/build/index.styled-03c4dedb.js +1 -0
- package/build/index.styled-1e5dd97e.js +1 -0
- package/build/interfaces/types/index.d.ts +5 -0
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/{screenSizeContext-6726a3b5.js → screenSizeContext-60cc891b.js} +1 -1
- package/build/together/components/atoms/cardReactions/index.d.ts +4 -1
- package/build/together/components/atoms/cardReactions/index.styled.d.ts +4 -2
- package/build/together/components/molecules/index.d.ts +1 -0
- package/build/together/components/molecules/popupFrame/popupShare.d.ts +2 -2
- package/build/together/components/molecules/postImagePreview/imagePreviewPopup.d.ts +2 -2
- package/build/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.d.ts +2 -2
- package/build/together/components/molecules/socialLinkPreview/index.d.ts +2 -1
- package/build/together/components/organisms/cardPost/index.d.ts +1 -0
- package/build/together.js +1 -1
- package/build/translationsContext-2d7ea471.js +1 -0
- package/build/translationsProvider-57deb2ca.js +1 -0
- package/build/types-422a9b63.js +1 -0
- package/build/types-6439cc4a.js +1 -0
- package/build/{useHealthToolCache-8a4c6859.js → useHealthToolCache-014adcd3.js} +1 -1
- package/build/useTranslations-a5b5c74c.js +1 -0
- package/package.json +3 -7
- package/build/assets/svg/StarFullIcon.d.ts +0 -3
- package/build/assets/svg/StarHalfIcon.d.ts +0 -3
- package/build/assets/svg/index.d.ts +0 -21
- package/build/components/molecules/embeddedHeathToolCards/image.d.ts +0 -1
- package/build/components/organisms/navigationLayout_deprecated/CustomFooter.d.ts +0 -33
- package/build/components/organisms/navigationLayout_deprecated/ampSideBar/index.d.ts +0 -28
- package/build/components/organisms/navigationLayout_deprecated/ampSideBar/index.styled.d.ts +0 -2
- package/build/components/organisms/navigationLayout_deprecated/constants.d.ts +0 -99
- package/build/components/organisms/navigationLayout_deprecated/exportLegacy.d.ts +0 -6
- package/build/components/organisms/navigationLayout_deprecated/footer/index.d.ts +0 -13
- package/build/components/organisms/navigationLayout_deprecated/footer/index.styled.d.ts +0 -2
- package/build/components/organisms/navigationLayout_deprecated/index.d.ts +0 -121
- package/build/components/organisms/navigationLayout_deprecated/index.styled.d.ts +0 -7
- package/build/components/organisms/navigationLayout_deprecated/languageWrapper.d.ts +0 -4
- package/build/components/organisms/navigationLayout_deprecated/languages/default.d.ts +0 -4
- package/build/components/organisms/navigationLayout_deprecated/layout.d.ts +0 -52
- package/build/components/organisms/navigationLayout_deprecated/marryBabyText/index.d.ts +0 -17
- package/build/components/organisms/navigationLayout_deprecated/marryBabyText/index.styled.d.ts +0 -8
- package/build/components/organisms/navigationLayout_deprecated/maryBabyFooter/index.d.ts +0 -30
- package/build/components/organisms/navigationLayout_deprecated/maryBabyFooter/index.styled.d.ts +0 -8
- package/build/components/organisms/navigationLayout_deprecated/menuCareList/categorySkeleton.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/menuCareList/index.d.ts +0 -17
- package/build/components/organisms/navigationLayout_deprecated/menuCareList/index.styled.d.ts +0 -12
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/categorySkeleton.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/helloSites.d.ts +0 -20
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/index.d.ts +0 -23
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/index.styled.d.ts +0 -16
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/marryBaby.d.ts +0 -17
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/marryBaby.styled.d.ts +0 -11
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/index.d.ts +0 -15
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/index.styled.d.ts +0 -10
- package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/spotlightSkeleton.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/categorySkeleton.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/helloSites.d.ts +0 -23
- package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/index.d.ts +0 -23
- package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/index.styled.d.ts +0 -13
- package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/marryBaby.d.ts +0 -22
- package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/marryBaby.styled.d.ts +0 -8
- package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/categorySkeleton.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/helloSites.d.ts +0 -25
- package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/index.d.ts +0 -23
- package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/index.styled.d.ts +0 -15
- package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/marryBaby.d.ts +0 -16
- package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/marrybaby.styled.d.ts +0 -8
- package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/cardSkeleton.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/index.d.ts +0 -13
- package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/index.styled.d.ts +0 -2
- package/build/components/organisms/navigationLayout_deprecated/menuServiceList/categoriesSubList.d.ts +0 -19
- package/build/components/organisms/navigationLayout_deprecated/menuServiceList/communitySubList.d.ts +0 -20
- package/build/components/organisms/navigationLayout_deprecated/menuServiceList/index.d.ts +0 -58
- package/build/components/organisms/navigationLayout_deprecated/menuServiceList/index.styled.d.ts +0 -28
- package/build/components/organisms/navigationLayout_deprecated/menuServiceList/marryBabyMobileMenuSection.d.ts +0 -9
- package/build/components/organisms/navigationLayout_deprecated/navigationBar/ArrowLeftPopupIcon.d.ts +0 -2
- package/build/components/organisms/navigationLayout_deprecated/navigationBar/ClosePopupIcon.d.ts +0 -2
- package/build/components/organisms/navigationLayout_deprecated/navigationBar/HamburgerIcon.d.ts +0 -9
- package/build/components/organisms/navigationLayout_deprecated/navigationBar/NavigationBar.types.d.ts +0 -87
- package/build/components/organisms/navigationLayout_deprecated/navigationBar/NavigationBarMobile.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/navigationBar/SearchIcon.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.d.ts +0 -15
- package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.styled.d.ts +0 -26
- package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.d.ts +0 -11
- package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.styled.d.ts +0 -6
- package/build/components/organisms/navigationLayout_deprecated/profilePopup/index.d.ts +0 -22
- package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.d.ts +0 -14
- package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.styled.d.ts +0 -2
- package/build/components/organisms/navigationLayout_deprecated/siteWide/index.d.ts +0 -23
- package/build/components/organisms/navigationLayout_deprecated/siteWide/index.styled.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.d.ts +0 -28
- package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.styled.d.ts +0 -3
- package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.d.ts +0 -17
- package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.styled.d.ts +0 -5
- package/build/components/organisms/navigationLayout_deprecated/types.d.ts +0 -263
- package/build/components/organisms/navigationLayout_deprecated/utils.d.ts +0 -62
- package/build/core.js +0 -1
- package/build/core_deprecated.d.ts +0 -4
- package/build/esm/core.js +0 -1
- package/build/esm/getDynamicHealthTool-86651d3e.js +0 -1
- package/build/esm/getSocialList-ff22842b.js +0 -1
- package/build/esm/index-1c51d632.js +0 -1
- package/build/esm/index-432e9d53.js +0 -1
- package/build/esm/index-5de22704.js +0 -1
- package/build/esm/index-6157a8d9.js +0 -1
- package/build/esm/index-6201a190.js +0 -1
- package/build/esm/index-67527752.js +0 -1
- package/build/esm/index-6fcace56.js +0 -1
- package/build/esm/index-9dd60ba6.js +0 -1
- package/build/esm/index.styled-69a7dc58.js +0 -1
- package/build/esm/index.styled-86e27baf.js +0 -1
- package/build/esm/isProduction-6fc0946c.js +0 -1
- package/build/esm/navigationLayout_deprecated.js +0 -1
- package/build/esm/screenSizeContext-d6e9a094.js +0 -1
- package/build/esm/translationsContext-2a7c9f4a.js +0 -1
- package/build/esm/translationsProvider-8d997983.js +0 -1
- package/build/esm/types-87287859.js +0 -1
- package/build/esm/types-a6eb6de6.js +0 -1
- package/build/esm/useTranslations-18bb1454.js +0 -1
- package/build/esm/utils-5ed9a485.js +0 -1
- package/build/getDynamicHealthTool-3efcfc23.js +0 -1
- package/build/getSocialList-2a3b759f.js +0 -1
- package/build/index-41f51de4.js +0 -1
- package/build/index-4321cd25.js +0 -1
- package/build/index-6c15aaed.js +0 -1
- package/build/index-6ed7fe6e.js +0 -1
- package/build/index-d28c27ca.js +0 -1
- package/build/index-d76cf33a.js +0 -1
- package/build/index-ee8e90f7.js +0 -1
- package/build/index.styled-6358651d.js +0 -1
- package/build/index.styled-bdd83972.js +0 -1
- package/build/isProduction-32e6a55a.js +0 -1
- package/build/navigationLayout_deprecated.js +0 -1
- package/build/translationsContext-7030adbb.js +0 -1
- package/build/translationsProvider-31ab1b1e.js +0 -1
- package/build/types-aa8ffe51.js +0 -1
- package/build/types-dc978cd5.js +0 -1
- package/build/useTranslations-22cc11a9.js +0 -1
- package/build/utils-6fb915bc.js +0 -1
package/build/components/organisms/navigationLayout_deprecated/navigationBar/HamburgerIcon.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SiteType } from '../types';
|
|
3
|
-
import { TypeProps } from './NavigationBar.types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
siteType: SiteType;
|
|
6
|
-
type: TypeProps;
|
|
7
|
-
};
|
|
8
|
-
export declare function HamburgerIcon({ siteType, type }: Props): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -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,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 };
|
package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.styled.d.ts
DELETED
|
@@ -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>;
|
package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.d.ts
DELETED
|
@@ -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 };
|
package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.d.ts
DELETED
|
@@ -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,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 };
|
package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.styled.d.ts
DELETED
|
@@ -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 };
|
package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.styled.d.ts
DELETED
|
@@ -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-d28c27ca.js"),t=require("./useTranslations-22cc11a9.js"),o=require("./useScrollbarSize-586f6706.js"),s=require("./useFbDataLayer-eda77edb.js"),a=require("./useHealthToolCache-8a4c6859.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-3efcfc23.js"),c=require("./getSocialList-2a3b759f.js");require("./Locale-11b51016.js"),require("./isProduction-32e6a55a.js"),require("./translationsContext-7030adbb.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=c.getSocialList;
|
package/build/esm/core.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{i as Types}from"./index-62c22dbe.js";export{i as Constants}from"./index-9dd60ba6.js";export{u as useTranslations}from"./useTranslations-18bb1454.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-6668e8c3.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-86651d3e.js";export{g as getSocialList}from"./getSocialList-ff22842b.js";import"./Locale-69030fff.js";import"./isProduction-6fc0946c.js";import"./translationsContext-2a7c9f4a.js";import"string-format";import"lodash/debounce";import"./tslib.es6-5532bd7b.js";import"date-fns";import"vanilla-lazyload";import"lodash";import"./core-d22826b4.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,d as n}from"./tslib.es6-5532bd7b.js";import{g as e}from"./core-d22826b4.js";import{d as o}from"./index-9dd60ba6.js";import{i as r}from"./isProduction-6fc0946c.js";var i=function(t,n){var e="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return e?"http://localhost:3000":"https://".concat(!e&&!r?n?"fe.":"discover.":n?"www.":"").concat(o[n?"vi-VN_MB":t])},c=function(t,n){return"https://".concat(r?"id.":"staging-id.").concat(o[n?"vi-VN_MB":t])},a=function(){return"https://".concat(r?"together.":"staging-together.","hellohealthgroup.com")},s=function(t){return"https://".concat(r?"wp.":"staging.").concat(o[t])},l=function(){return"https://".concat(r?"health-care.":"service-health-care.","hellohealthgroup.com")},u=function(t,n){var e,o;if(!t)return{};var r="tl-PH"===n?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:"".concat(r,"/health-tools")+(null===(o=t.link)||void 0===o?void 0:o.replace("".concat(r,"/"),"/")),subtitle:t.subtitle,title:t.title}},h=function(e){return t(void 0,void 0,void 0,(function(){var t,o,r,i,c,a,l;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,8,,9]),"undefined"==typeof window?[3,1]:(t=window.fetch,[3,3]);case 1:return[4,require("node-fetch")];case 2:t=n.sent(),n.label=3;case 3:o="tl-PH"===e?"lang=fil":"",r=[],n.label=4;case 4:return n.trys.push([4,6,,7]),[4,t("".concat(s(e),"/wp-json/api/healthtools?ismenu=0").concat(o?"&"+o:"")).then((function(t){return t.json()}))];case 5:return i=n.sent(),r=(null===(l=null===(a=null==i?void 0:i.data)||void 0===a?void 0:a.map)||void 0===l?void 0:l.call(a,(function(t){return u(t,e)})))||[],[3,7];case 6:return n.sent(),[3,7];case 7:return[2,r];case 8:return c=n.sent(),console.error(c),[3,9];case 9:return[2]}}))}))},d=function(o){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,e("all-health-tools",(function(){return h(o||"en-PH")}))];case 1:return[2,t.sent()||[]]}}))}))};export{c as a,a as b,s as c,l as d,h as e,u as f,i as g,d as h};
|