@hhgtech/hhg-components 1.21.14 → 1.21.15
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/components/molecules/embeddedHeathToolCards/dueDate.d.ts +34 -5
- package/build/components/molecules/embeddedHeathToolCards/ovulation.d.ts +14 -2
- package/build/components/molecules/embeddedHeathToolCards/pwg.d.ts +2 -1
- package/build/components/molecules/toolBannerCard/index.d.ts +1 -2
- package/build/components/organisms/heroBannerHealthTool/healthToolBanner.d.ts +13 -4
- package/build/components.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{index-91554cbe.js → index-08833fb4.js} +1 -1
- package/build/esm/index-3b378814.js +1 -0
- package/build/esm/index-c0b62dbe.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/types-0edd9c60.js +1 -0
- package/build/index-0bafdcb2.js +1 -0
- package/build/index-96d64b69.js +1 -0
- package/build/{index-3b0c9962.js → index-d6932941.js} +1 -1
- package/build/index.js +1 -1
- package/build/navigation.js +1 -1
- package/build/together/interfaces/types.d.ts +4 -0
- package/build/together.js +1 -1
- package/build/{types-63b1b2a9.js → types-c0fecd36.js} +1 -1
- package/package.json +1 -1
- package/build/esm/index-784db9aa.js +0 -1
- package/build/esm/index-a6a709b8.js +0 -1
- package/build/esm/types-56ab0960.js +0 -1
- package/build/index-a0a925d6.js +0 -1
- package/build/index-d8762878.js +0 -1
|
@@ -8,20 +8,49 @@ type OtherInfo = {
|
|
|
8
8
|
days_transfer?: number | null;
|
|
9
9
|
method?: number | null;
|
|
10
10
|
};
|
|
11
|
-
type
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
type DueDateInfo = {
|
|
12
|
+
post_title: string;
|
|
13
|
+
post_content: string;
|
|
14
|
+
disclaimer: string;
|
|
15
|
+
featured_image: string;
|
|
16
|
+
informations: [
|
|
17
|
+
{
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
faqs: {
|
|
23
|
+
[key: string]: [
|
|
24
|
+
{
|
|
25
|
+
title: string;
|
|
26
|
+
content: string;
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
};
|
|
30
|
+
reviewed_by: {
|
|
31
|
+
ID: number | string;
|
|
32
|
+
name: string;
|
|
33
|
+
post_title: string;
|
|
34
|
+
permalink: string;
|
|
35
|
+
slug?: string;
|
|
36
|
+
role?: string;
|
|
37
|
+
user_id: number;
|
|
38
|
+
display_name?: string;
|
|
39
|
+
profile_url?: string;
|
|
40
|
+
};
|
|
41
|
+
reviewed_date: string;
|
|
14
42
|
};
|
|
15
43
|
export type Props = {
|
|
16
|
-
dueDateAllWeeks?: Array<WeekApi>;
|
|
17
44
|
locale?: LocaleType;
|
|
18
45
|
isMobile?: boolean;
|
|
19
46
|
onSubmitDueDate?: (info: DueDateInfoType, redirectLink?: string) => void;
|
|
47
|
+
dueDatePageInfo: DueDateInfo;
|
|
48
|
+
expertUrl?: string;
|
|
20
49
|
};
|
|
21
50
|
export type DueDateInfoType = {
|
|
22
51
|
startDate: Date;
|
|
23
52
|
dueDate: Date;
|
|
24
53
|
otherInfo: OtherInfo;
|
|
25
54
|
};
|
|
26
|
-
declare const DueDateCardEmbed: ({ isMobile, locale, onSubmitDueDate }: Props) => JSX.Element;
|
|
55
|
+
declare const DueDateCardEmbed: ({ isMobile, locale, onSubmitDueDate, dueDatePageInfo, expertUrl, }: Props) => JSX.Element;
|
|
27
56
|
export { DueDateCardEmbed };
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LocaleType } from 'src/interfaces/types';
|
|
3
|
-
import { OvulationInfoApi } from 'src/together/interfaces/types';
|
|
3
|
+
import { OvulationInfoApi, ReviewedUserApi } from 'src/together/interfaces/types';
|
|
4
4
|
import { OvulationCalculatorType } from '../ovulationCalculator';
|
|
5
|
+
type OvulationContent = {
|
|
6
|
+
featured_image: string;
|
|
7
|
+
information: {
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}[];
|
|
11
|
+
reviewed_by?: ReviewedUserApi;
|
|
12
|
+
reviewed_date: string;
|
|
13
|
+
};
|
|
5
14
|
export type Props = {
|
|
6
15
|
ovulationPageInfo?: OvulationInfoApi;
|
|
16
|
+
ovulationContent?: OvulationContent;
|
|
7
17
|
locale?: LocaleType;
|
|
8
18
|
onSubmitOvulation?: (info: OvulationInfoType) => void;
|
|
19
|
+
isMobile?: boolean;
|
|
9
20
|
};
|
|
10
21
|
export type OvulationInfoType = {
|
|
11
22
|
method: OvulationCalculatorType;
|
|
@@ -13,4 +24,5 @@ export type OvulationInfoType = {
|
|
|
13
24
|
cycle: number;
|
|
14
25
|
periodLength: number;
|
|
15
26
|
};
|
|
16
|
-
export declare const OvulationCardEmbed: ({ onSubmitOvulation, locale, ovulationPageInfo, }: Props) => JSX.Element;
|
|
27
|
+
export declare const OvulationCardEmbed: ({ onSubmitOvulation, locale, ovulationPageInfo, ovulationContent, isMobile, }: Props) => JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -13,5 +13,6 @@ export type Props = {
|
|
|
13
13
|
onFormChange?: (i: PregWeightInfo) => void;
|
|
14
14
|
onClick?: (type: string, cycleValue?: number) => void;
|
|
15
15
|
inputErrorMessage?: InputError;
|
|
16
|
+
isMobile?: boolean;
|
|
16
17
|
};
|
|
17
|
-
export declare const PWGCardEmbed: ({ locale, onClick, inputErrorMessage, pwgContent, onFormChange, info, }: Props) => JSX.Element;
|
|
18
|
+
export declare const PWGCardEmbed: ({ locale, onClick, inputErrorMessage, pwgContent, onFormChange, info, isMobile, }: Props) => JSX.Element;
|
|
@@ -8,8 +8,7 @@ export type Props = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
isMobile?: boolean;
|
|
10
10
|
icon?: JSX.Element;
|
|
11
|
-
isHomePage?: boolean;
|
|
12
11
|
isEmbed?: boolean;
|
|
13
12
|
};
|
|
14
|
-
declare const ToolsBannerCard: ({ className, heading, isMobile, bannerUrl, bannerUrlLarge, medicalReview, icon,
|
|
13
|
+
declare const ToolsBannerCard: ({ className, heading, isMobile, bannerUrl, bannerUrlLarge, medicalReview, icon, style, }: Props) => JSX.Element;
|
|
15
14
|
export { ToolsBannerCard };
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { OvulationInfo } from 'src/together/interfaces/types';
|
|
2
|
+
import { OvulationInfo, ReviewedUserApi } from 'src/together/interfaces/types';
|
|
3
3
|
export type Props = {
|
|
4
4
|
backgroundDesktopSrc?: string;
|
|
5
5
|
backgroundMobileSrc?: string;
|
|
6
|
-
|
|
6
|
+
ovulationContent: OvulationContent;
|
|
7
7
|
title: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
reviewedBy?: OvulationInfo['reviewedBy'];
|
|
10
10
|
reviewedDate?: OvulationInfo['reviewedDate'];
|
|
11
|
-
|
|
11
|
+
isMobile?: boolean;
|
|
12
12
|
isAmp?: boolean;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type OvulationContent = {
|
|
15
|
+
featured_image: string;
|
|
16
|
+
information: {
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
}[];
|
|
20
|
+
reviewed_by?: ReviewedUserApi;
|
|
21
|
+
reviewed_date: string;
|
|
22
|
+
};
|
|
23
|
+
declare const HealthToolHeroBanner: ({ backgroundDesktopSrc, backgroundMobileSrc, title, className, isMobile, isAmp, ovulationContent, }: Props) => JSX.Element;
|
|
15
24
|
export { HealthToolHeroBanner };
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-96d64b69.js"),r=require("./index-0bafdcb2.js"),o=require("./index-89a9a68d.js"),t=require("./index-a33e79ff.js"),a=require("./index-d6932941.js"),i=require("./index-8b850386.js"),s=require("./index-6cf6f341.js"),n=require("./index.styled-194351a3.js"),d=require("./index-72316bea.js"),p=require("./index.styled-f4d1981e.js");require("react"),require("./tslib.es6-e6f346c4.js"),require("./screenSizeContext-b4958d62.js"),require("styled-components"),require("vanilla-lazyload"),require("lodash"),require("./theme-696d81a9.js"),require("react-id-generator"),require("keen-slider/react"),require("./gAssets.js"),require("./index-bce6f562.js"),require("react-range"),require("date-fns"),require("./Locale-11b51016.js"),require("@mantine/core"),require("./translationsContext-2d7ea471.js"),require("string-format"),require("lodash/debounce"),require("./useTranslations-60d001df.js"),require("./en-PH-bc11cfc2.js"),require("./useHealthToolCache-df134cc9.js"),require("./getDynamicHealthTool-2103105f.js"),require("./core-f0edff4f.js"),require("./useOutsideClick-528bfd6c.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-561c9bda.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("./cookieHelper-612b90fa.js"),require("slugify"),require("react-day-picker/DayPickerInput"),require("react-dom"),require("smoothscroll-polyfill"),require("./types-2b3bdf79.js"),require("./constants-ca5ea110.js"),require("./useScrollbarSize-586f6706.js"),exports.Alert=e.Alert,exports.AmpNextPage=e.AmpNextPage,exports.ArticleCard=e.ArticleCard,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Footer=e.Footer,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.ToolsBannerCard=e.ToolsBannerCard,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Dropdown=r.Dropdown,exports.Popup=r.Popup,exports.Button=o.Button,exports.Divider=t.Divider,exports.CategoryCard=a.CategoryCard,exports.DatePicker=a.DatePicker,exports.DoctorInfo=a.DoctorInfo,exports.Flag=a.Flag,exports.LanguageSwitcher=a.LanguageSwitcher,exports.MobileBottomNavigation=a.MobileBottomNavigation,exports.MobileBottomNavigationIcon=a.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=a.NavigationLogoutPopup,exports.NavigationProfileButton=a.NavigationProfileButton,exports.NavigationV2=a.NavigationV2,exports.ProfilePopup=a.ProfilePopup,exports.Radio=a.Radio,exports.RadioGroup=a.RadioGroup,exports.ScrollList=a.ScrollList,exports.Slider=a.Slider,exports.SurveyQuestionCard=a.SurveyQuestionCard,exports.UserProfileNavigation=a.UserProfileNavigation,exports.UserProfileNavigationHeader=a.NavHeader,exports.UserProfileNavigationStats=a.UserStats,exports.getNavMenuContent=a.getNavMenuContent,exports.getNavMenuContentWithCache=a.getNavMenuContentWithCache,exports.Heading=i.Heading,exports.Input=s.Input,exports.Container=n.Container,exports.Label=n.Label,exports.Logo=n.Logo,exports.Menu=n.Menu,exports.PureInput=n.PureInput,exports.Text=n.Text,exports.TextArea=n.TextArea,exports.TextDivider=n.TextDivider,exports.Icon=d.Icon,exports.Modal=d.Modal,exports.NewBabyProfileRadio=d.NewBabyProfileRadio,exports.RadioImageGroup=d.RadioImageGroup,exports.Drawer=p.Drawer;
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,t as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,j as Carousel,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,u as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,x as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,s as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,q as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,i as SideMenu,k as StatisticCard,n as SurveyThankyouCard,l as Table,m as Tabs,T as Tag,b as Toggle,r as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-
|
|
1
|
+
export{A as Alert,t as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,j as Carousel,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,u as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,x as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,s as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,q as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,i as SideMenu,k as StatisticCard,n as SurveyThankyouCard,l as Table,m as Tabs,T as Tag,b as Toggle,r as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-c0b62dbe.js";export{A as Avatar,D as Dropdown,P as Popup}from"./index-3b378814.js";export{B as Button}from"./index-fc27293d.js";export{D as Divider}from"./index-6c500325.js";export{C as CategoryCard,D as DatePicker,c as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,e as MobileBottomNavigationIcon,j as NavigationLogoutPopup,k as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,b as ScrollList,S as Slider,d as SurveyQuestionCard,U as UserProfileNavigation,h as UserProfileNavigationHeader,i as UserProfileNavigationStats,g as getNavMenuContent,f as getNavMenuContentWithCache}from"./index-08833fb4.js";export{H as Heading}from"./index-38730a4c.js";export{I as Input}from"./index-a156951f.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-d5fee85d.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-e77cf754.js";export{D as Drawer}from"./index.styled-ae81770e.js";import"react";import"./tslib.es6-dcf36680.js";import"./screenSizeContext-d0c9aa9b.js";import"styled-components";import"vanilla-lazyload";import"lodash";import"./theme-a50a1aa5.js";import"react-id-generator";import"keen-slider/react";import"./gAssets.js";import"./index-58ae0705.js";import"react-range";import"date-fns";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./useTranslations-3e47eecc.js";import"./en-PH-71017453.js";import"./useHealthToolCache-79dda45b.js";import"./getDynamicHealthTool-506a8dae.js";import"./core-3e31237f.js";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-2f760404.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"./cookieHelper-0e8521c3.js";import"slugify";import"react-day-picker/DayPickerInput";import"react-dom";import"smoothscroll-polyfill";import"./types-f57c9932.js";import"./constants-a0a981fa.js";import"./useScrollbarSize-99db33e1.js";
|