@hhgtech/hhg-components 1.21.52 → 1.21.54
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.js +1 -1
- package/build/components/molecules/bmiForm/index.d.ts +4 -0
- package/build/components/molecules/bmiForm/index.styled.d.ts +6 -0
- package/build/components/molecules/bmrForm/index.d.ts +16 -0
- package/build/components/molecules/bmrForm/index.styled.d.ts +6 -0
- package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +19 -0
- package/build/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +20 -0
- package/build/components/molecules/embeddedHeathToolCards/helpers.d.ts +41 -0
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components.js +1 -1
- package/build/en-PH-605a14fc.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/en-PH-8025ed49.js +1 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-195b604e.js +1 -0
- package/build/esm/{index-c9e5ca7c.js → index-44d7b48f.js} +1 -1
- package/build/esm/index-4b920bee.js +1 -0
- package/build/esm/{index-aff96f34.js → index-a16793a4.js} +1 -1
- package/build/esm/{index-48d41d02.js → index-ab758134.js} +1 -1
- package/build/esm/{index-ed6f810c.js → index-cea036d2.js} +1 -1
- package/build/esm/{index-9445aae0.js → index-f5a80474.js} +1 -1
- package/build/esm/index-f6995c06.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-31358501.js → index.styled-2c6882a8.js} +1 -1
- package/build/esm/index.styled-aec78bf9.js +1 -0
- package/build/esm/mantine.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/theme-17f3c0af.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/translationsProvider-29dae7e1.js +1 -0
- package/build/esm/{types-991dce31.js → types-4ff28d8e.js} +1 -1
- package/build/esm/{types-f7e53cd8.js → types-87a52fdf.js} +1 -1
- package/build/esm/{useTranslations-4f69f5f9.js → useTranslations-c32c6487.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-7bfd5335.js → index-0b7d0ea2.js} +1 -1
- package/build/index-112c73a5.js +1 -0
- package/build/{index-c5ff2265.js → index-446e5d3b.js} +1 -1
- package/build/index-56ca6b6e.js +1 -0
- package/build/{index-52b9092e.js → index-891306d0.js} +1 -1
- package/build/{index-0b7cfe84.js → index-e6c32cab.js} +1 -1
- package/build/{index-9b01b9b8.js → index-f2c817d7.js} +1 -1
- package/build/{index-98fdfe4d.js → index-f41db3f3.js} +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-31764906.js +1 -0
- package/build/{index.styled-45450b47.js → index.styled-b19996c0.js} +1 -1
- package/build/mantine.js +1 -1
- package/build/navigation.js +1 -1
- package/build/theme-47d2f7ea.js +1 -0
- package/build/together/interfaces/types.d.ts +4 -0
- package/build/together.js +1 -1
- package/build/translationsProvider-b07b6ec5.js +1 -0
- package/build/{types-1b55fc50.js → types-897d8e5f.js} +1 -1
- package/build/{types-3b1eb66c.js → types-8aec673b.js} +1 -1
- package/build/{useTranslations-7f08be7c.js → useTranslations-473f169c.js} +1 -1
- package/package.json +3 -1
- package/build/en-PH-cac23192.js +0 -1
- package/build/esm/en-PH-b1c3ff7e.js +0 -1
- package/build/esm/index-95ee8202.js +0 -1
- package/build/esm/index-ada51747.js +0 -1
- package/build/esm/index-f515f979.js +0 -1
- package/build/esm/index.styled-c7779899.js +0 -1
- package/build/esm/translationsProvider-4ea6357a.js +0 -1
- package/build/index-0ac76914.js +0 -1
- package/build/index-becb0c61.js +0 -1
- package/build/index.styled-b54ef4f4.js +0 -1
- package/build/translationsProvider-be5e5a3d.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as n,_ as e,b as t}from"./tslib.es6-dcf36680.js";import a,{useState as r,useEffect as i}from"react";import{Image as o,Indicator as s,Avatar as l,createEmotionCache as c,FileInput as d,NumberInput as m,PasswordInput as u,TextInput as p,Checkbox as f,Slider as h,Radio as g,Switch as v}from"@mantine/core";import{CommonGAssets as b}from"./gAssets.js";import{DatePicker as Y,DateRangePicker as y}from"@mantine/dates";import w,{css as C}from"styled-components";import{useDebouncedValue as D}from"@mantine/hooks";import{Carousel as M}from"@mantine/carousel";import{a4 as x}from"./index.styled-aec78bf9.js";import"date-fns";import"./screenSizeContext-f2090394.js";import{t as S}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import{L as k}from"./Locale-69030fff.js";var E,P,I,z,F=w(Y)(P||(P=n(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&C(E||(E=n(["\n .mantine-DatePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "],["\n .mantine-DatePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])))})),j=w(y)(z||(z=n(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&C(I||(I=n(["\n .mantine-DateRangePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "],["\n .mantine-DateRangePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])))})),T=function(n){return a.createElement(F,e({size:"md",clearable:!1,fullWidth:!0,rightSection:a.createElement(o,{src:b.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},n))};T.Range=function(n){return a.createElement(j,e({size:"md",clearable:!1,fullWidth:!0,rightSection:a.createElement(o,{src:b.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},n))};var R,A=b.getAssetPath("avatar.jpg"),B=function(n){var r=n.withIndicator,i=void 0!==r&&r,o=n.indicatorConfig,c=void 0===o?null:o,d=n.size,m=void 0===d?56:d,u=t(n,["withIndicator","indicatorConfig","size"]),p=function(){return a.createElement(l,e({size:m,radius:"xl"},u),a.createElement("img",{src:A,width:m}))};return i?a.createElement(s,e({inline:!0,position:"bottom-end",offset:9},c,{styles:{indicator:{backgroundColor:a.isValidElement(c.label)&&"transparent"}}}),p()):p()},N=300,W=c({key:"mantine",prepend:!1}),G=((R={})[k.Vietnam]={dateFormat:"DD/MM/YYYY",separator:","},R[k.Cambodia]={dateFormat:"DD/MM/YYYY",separator:"."},R[k.India]={dateFormat:"DD/MM/YYYY",separator:"."},R[k.Indonesia]={dateFormat:"DD/MM/YYYY",separator:","},R[k.Malaysia]={dateFormat:"DD/MM/YYYY",separator:"."},R[k.Thailand]={dateFormat:"DD/MM/YYYY",separator:"."},R[k.Taiwan]={dateFormat:"YYYY/MM/DD",separator:","},R[k.PhilippinesTagalog]={dateFormat:"MM/DD/YYYY",separator:"."},R[k.PhilippinesEnglish]={dateFormat:"MM/DD/YYYY",separator:"."},R[k.Myanmar]={dateFormat:"DD/MM/YYYY",separator:","},R),H=b.getAssetPath("EyeVisible.svg"),V=b.getAssetPath("EyeHidden.svg"),L=function(n){var o=n.value,s=n.onChange,l=t(n,["value","onChange"]),c=r(o||""),d=c[0],m=c[1],u=D(d,N)[0];return i((function(){null==s||s(u)}),[u]),i((function(){m(o)}),[o]),a.createElement(p,e({size:"md",onChange:function(n){return m(n.currentTarget.value)},value:d},l))};L.File=function(n){return a.createElement(d,e({size:"md"},n))},L.Password=function(n){var o=n.value,s=n.onChange,l=t(n,["value","onChange"]),c=r(o||""),d=c[0],m=c[1],p=D(d,N)[0];return i((function(){null==s||s(p)}),[p]),i((function(){m(o)}),[o]),a.createElement(u,e({size:"md",onChange:function(n){return m(n.currentTarget.value)},visibilityToggleIcon:function(n){var e=n.reveal,t=n.size;return e?a.createElement("img",{src:H,width:t}):a.createElement("img",{src:V,width:t})},styles:{rightSection:{pointerEvents:"initial"}},value:d},l))},L.Number=function(n){var o=n.value,s=n.onChange,l=t(n,["value","onChange"]),c=r(o||0),d=c[0],u=c[1],p=D(d,N)[0];return i((function(){null==s||s(p)}),[p]),i((function(){u(o)}),[o]),a.createElement(m,e({size:"md",stepHoldDelay:500,stepHoldInterval:function(n){return Math.max(1e3/Math.pow(n,2),25)},onChange:u,hideControls:!0,min:0,formatter:function(n){return 0===Number(n)?"":n||""},removeTrailingZeros:!0,value:d},l))};var O=function(n){var r=n.slidesToShow,i=void 0===r?1:r,o=n.children,s=t(n,["slidesToShow","children"]);return a.createElement(M,e({slideSize:String(Math.floor(1/i*100))+"%",containScroll:"trimSnaps"},s),o)};O.Slide=M.Slide;var U=function(n){return a.createElement(f,e({},n))};U.Group=f.Group;var q,Z,_,J="hhgcomp-mantine-slider-slider",K=x(w(h)(q||(q=n(["\n .mantine-Slider-track {\n background-color: ",";\n }\n\n .mantine-Slider-label {\n background-color: transparent;\n color: #000;\n font-size: 14px;\n font-weight: bold;\n }\n"],["\n .mantine-Slider-track {\n background-color: ",";\n }\n\n .mantine-Slider-label {\n background-color: transparent;\n color: #000;\n font-size: 14px;\n font-weight: bold;\n }\n"])),(function(n){return n.color||n.theme.colors.primaryBase})),J),Q=w.div(Z||(Z=n(["\n display: flex;\n align-items: center;\n ."," {\n flex-grow: 1;\n }\n"],["\n display: flex;\n align-items: center;\n ."," {\n flex-grow: 1;\n }\n"])),J),X=w(g)(_||(_=n(["\n .mantine-Radio-icon {\n color: ",";\n }\n"],["\n .mantine-Radio-icon {\n color: ",";\n }\n"])),(function(n){return n.color||S.colors.primaryBase})),$=function(n){return a.createElement(X,e({size:"sm"},n))};$.Group=g.Group;var nn,en,tn=w(v)(nn||(nn=n(["\n .mantine-Switch-track {\n }\n"],["\n .mantine-Switch-track {\n }\n"]))),an=((en={})[k.Vietnam]="vi",en[k.Cambodia]="km",en[k.India]="hi",en[k.Indonesia]="id",en[k.Malaysia]="ms",en[k.Thailand]="th",en[k.Taiwan]="zh-tw",en[k.PhilippinesTagalog]="tl-ph",en[k.PhilippinesEnglish]="en",en[k.Myanmar]="my",en),rn=function(n){i((function(){an[n]&&require("dayjs/locale/".concat(an[n],".js"))}),[n])},on={"&:hover":{borderColor:"".concat(S.colors.blue200),boxShadow:"0 0 2px 2px ".concat(S.colors.blue200)}},sn=function(n){return{datesLocale:an[n],dateFormat:G[n].dateFormat,fontFamily:n===k.Cambodia?"Battambang,":"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",components:{InputWrapper:{styles:{label:{marginBottom:"0.5rem"}}},NumberInput:{defaultProps:{decimalSeparator:G[n].separator}},Input:{styles:{input:{borderRadius:"6px",transition:"all ".concat("100ms"," ease-in-out"),"&:hover, &:focus":{borderColor:"".concat(S.colors.blue200),boxShadow:"0 0 2px 2px ".concat(S.colors.blue200)}},rightSection:{pointerEvents:"none",cursor:"default"},invalid:{color:"#000"}}},Checkbox:{styles:{input:on}},Radio:{styles:{radio:e(e({backgroundColor:"#ffffff"},on),{"&:checked":{backgroundColor:"#ffffff"}})}}}}};export{B as A,O as C,N as D,L as I,$ as R,Q as S,K as a,T as b,U as c,tn as d,W as e,sn as g,rn as u};
|
package/build/esm/together.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CardLink,r as CardPost,s as CardPostPopoverMore,b as CardReactions,v as CardReply,w as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,x as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,q as SocialLinkPreview,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-
|
|
1
|
+
export{C as CardLink,r as CardPost,s as CardPostPopoverMore,b as CardReactions,v as CardReply,w as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,x as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,q as SocialLinkPreview,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-87a52fdf.js";export{C as CardAuthor,f as DefaultComponentGlobalContextData,G as GlobalData,L as Loading,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,g as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-a16793a4.js";import"react";import"./index.styled-aec78bf9.js";import"./tslib.es6-dcf36680.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-f2090394.js";import"vanilla-lazyload";import"lodash";import"date-fns";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./Locale-69030fff.js";import"./gAssets.js";import"./translationsContext-d658f58d.js";import"string-format";import"./index-44d7b48f.js";import"./useTranslations-c32c6487.js";import"./en-PH-8025ed49.js";import"innertext";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-ab758134.js";import"react-contenteditable";import"./index-f5a80474.js";import"./cookieHelper-0e8521c3.js";import"./index-f6995c06.js";import"react-dom";import"date-fns/locale/en-US";import"date-fns/locale/hi";import"date-fns/locale/id";import"date-fns/locale/ms";import"date-fns/locale/th";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"slugify";import"react-id-generator";
|