@hhgtech/hhg-components 1.21.60 → 1.21.61
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/childCard/index.d.ts +3 -2
- package/build/components.js +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{index-ed8375c8.js → index-012ca6e1.js} +1 -1
- package/build/esm/{index-68e6391c.js → index-3b581a81.js} +1 -1
- package/build/esm/{index-d0373000.js → index-49960d45.js} +1 -1
- package/build/esm/{index-38f0c77a.js → index-586e65e7.js} +1 -1
- package/build/esm/{index-412f5af9.js → index-588deadc.js} +1 -1
- package/build/esm/{index-ffb9262f.js → index-610bb13c.js} +1 -1
- package/build/esm/index-80c700a9.js +1 -0
- package/build/esm/{index-a2830b47.js → index-f705da0a.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-3db9047e.js → index.styled-520ccc61.js} +1 -1
- 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-1852eabc.js +1 -0
- package/build/esm/{theme-aa6896fa.js → theme-508eb8b9.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/types-8bb3f7c9.js +1 -0
- package/build/esm/{types-83ea3213.js → types-df30a77b.js} +1 -1
- package/build/{index-9a36514d.js → index-24f3c107.js} +1 -1
- package/build/index-3422cf26.js +1 -0
- package/build/{index-1a60d836.js → index-432eb60f.js} +1 -1
- package/build/index-47c276bb.js +1 -0
- package/build/{index-0a2a36cb.js → index-686dfc90.js} +1 -1
- package/build/{index-bc173e01.js → index-8b1987d5.js} +1 -1
- package/build/{index-94ba71e9.js → index-ddaa5796.js} +1 -1
- package/build/{index-07d6f215.js → index-fbf14c20.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-59762dd7.js → index.styled-27ff3b4a.js} +1 -1
- package/build/mantine.js +1 -1
- package/build/misc/utils.d.ts +1 -0
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/{screenSizeContext-78ac9057.js → screenSizeContext-8f86eb30.js} +1 -1
- package/build/{theme-41ee4dc8.js → theme-6fd790c0.js} +1 -1
- package/build/together/utils/apiActions/post.d.ts +6 -6
- package/build/together.js +1 -1
- package/build/{types-b6d02ae0.js → types-18dd6498.js} +1 -1
- package/build/types-e63883d7.js +1 -0
- package/package.json +1 -1
- package/build/esm/index-dcafc171.js +0 -1
- package/build/esm/screenSizeContext-f2090394.js +0 -1
- package/build/esm/types-f54bdd52.js +0 -1
- package/build/index-09fa71c6.js +0 -1
- package/build/index-45f735d0.js +0 -1
- package/build/types-970f913c.js +0 -1
package/build/esm/mantine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t,_ as o}from"./tslib.es6-dcf36680.js";import r,{useMemo as
|
|
1
|
+
import{b as t,_ as o}from"./tslib.es6-dcf36680.js";import r,{useMemo as n,useState as a,useEffect as i}from"react";import{Autocomplete as s,Image as l,Select as m,Badge as h,Spoiler as p,LoadingOverlay as u,MantineProvider as v}from"@mantine/core";import{CommonGAssets as w}from"./gAssets.js";import{D as x,S as E,a as k,u as j,g as S}from"./theme-508eb8b9.js";export{A as Accordion,c as Avatar,C as Carousel,d as Checkbox,b as DatePicker,I as Input,R as Radio,e as Switch,f as emotionCache,g as getMantineThemeOverride}from"./theme-508eb8b9.js";import"date-fns";import"./screenSizeContext-1852eabc.js";import"styled-components";import{t as y}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./Locale-69030fff.js";import{T as H}from"./index.styled-520ccc61.js";import"react-range";import{u as z}from"./useTranslations-ddaec288.js";import"lodash/debounce";import{useDebouncedValue as P}from"@mantine/hooks";import{B}from"./index-588deadc.js";import"./translationsContext-8575bd07.js";import"string-format";import"@mantine/dates";import"@mantine/carousel";import"vanilla-lazyload";import"lodash";var L=function(e){var n=e.keepSearch,a=void 0!==n&&n,i=t(e,["keepSearch"]);return a?r.createElement(s,o({rightSection:r.createElement(l,{src:w.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},i)):r.createElement(m,o({rightSection:r.createElement(l,{src:w.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},i))},M=function(e){var n=e.color,a=void 0===n?y.colors.primaryBase:n,i=t(e,["color"]);return r.createElement(h,o({variant:"filled",color:a},i,{styles:{root:{borderRadius:"2px",background:a,textTransform:"unset"}}}))},D=function(e){var a=e.children,i=e.line,s=e.lineHeight,l=e.maxHeight,c=t(e,["children","line","lineHeight","maxHeight"]),m=z().t,d=n((function(){return l||(i&&s?i*s:(console.error("[HHG-Comp]:[Spoiler] Please provide maxHeight, or line with lineHeight"),0))}),[]);return a||console.error("[HHG-Comp]:[Spoiler] Please provide children"),r.createElement(p,o({showLabel:r.createElement(H,{size:"p2",color:y.colors.primaryBase},m("articlePage.readMore")),hideLabel:r.createElement(H,{size:"p2",color:y.colors.primaryBase},m("articlePage.showLess"))},c,{maxHeight:d}),a)},T=function(e){return r.createElement(u,o({loaderProps:{color:y.colors.primaryBase}},e))},G=function(e){var n=e.color,s=void 0===n?y.colors.primaryBase:n,l=e.withControl,c=e.onChange,m=e.value,d=e.min,h=e.max,p=t(e,["color","withControl","onChange","value","min","max"]),u=a(m||d||0),g=u[0],f=u[1],v=P(g,x)[0];return i((function(){null==c||c(v)}),[v]),r.createElement(E,null,l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){f((function(e){return d&&e===d?e:e-1}))}},r.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},r.createElement("path",{d:"M1 1.004h8",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r.createElement(k,o({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:s,value:g,onChange:f,min:d,max:h},p)),l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){f((function(e){return h&&e===h?e:e+1}))}},r.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},r.createElement("path",{d:"M8 4v8M4 8h8",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))},O=function(e){var n=e.children,a=e.locale,i=t(e,["children","locale"]);return j(a),r.createElement(v,o({theme:S(a),withGlobalStyles:!0,withNormalizeCSS:!0},i),n)};export{M as Badge,T as LoadingOverlay,O as MantineProvider,L as Select,G as Slider,D as Spoiler};
|
package/build/esm/misc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-77c129ef.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,
|
|
1
|
+
export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-77c129ef.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,q as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,p as getWindowSizeGroups,l as lazyLoadInstance,m as makeParams,o as safeEncodeURI,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-1852eabc.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-831ea86d.js";export{g as getSocialList}from"./getSocialList-e91ed860.js";import"date-fns";import"./tslib.es6-dcf36680.js";import"vanilla-lazyload";import"lodash";import"./core-3b861395.js";import"./isProduction-6fc0946c.js";import"./index-9dd60ba6.js";import"./Locale-69030fff.js";import"./gAssets.js";
|
package/build/esm/navigation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./tslib.es6-dcf36680.js";import"react";import"./core-3b861395.js";import"./index.styled-
|
|
1
|
+
import"./tslib.es6-dcf36680.js";import"react";import"./core-3b861395.js";import"./index.styled-520ccc61.js";export{N as NavigationV2,g as getNavMenuContent,h as getNavMenuContentWithCache}from"./index-49960d45.js";import"react-id-generator";import"./index-586e65e7.js";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash/debounce";import"react-dom";import"./index-f705da0a.js";import"lodash";import"keen-slider/react";import"./gAssets.js";import"./screenSizeContext-1852eabc.js";import"react-range";import"styled-components";import"./getDynamicHealthTool-831ea86d.js";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-8575bd07.js";import"string-format";import"./index-9dd60ba6.js";import"react-hook-form";import"./theme-508eb8b9.js";import"@mantine/hooks";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./isProduction-6fc0946c.js";import"./theme-a50a1aa5.js";import"smoothscroll-polyfill";import"./index-588deadc.js";import"./index-012ca6e1.js";import"./index-610bb13c.js";import"./useTranslations-ddaec288.js";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"@hookform/resolvers/yup";import"./constants-a0a981fa.js";import"./cookieHelper-0e8521c3.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"./useScrollbarSize-99db33e1.js";import"recharts";import"./useOutsideClick-6004483a.js";import"vanilla-lazyload";import"@mantine/dates";import"@mantine/carousel";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as n,_ as t}from"./tslib.es6-dcf36680.js";import{keyframes as a}from"styled-components";import r from"vanilla-lazyload";import i,{createContext as e,useState as o,useEffect as s,useMemo as d}from"react";import{throttle as m}from"lodash";var c,_,l,E,f,B,O,P,I,T=function(n){var t=Object.keys(n);return t.length?"?"+t.map((function(t){return"".concat(t,"=").concat(n[t])})).join("&"):""},A=function(n,t,a){void 0===t&&(t=1),void 0===a&&(a="page");var r=n.split("?"),i=r[0],e=r[1],o=new URLSearchParams(e||""),s={};return o.forEach((function(n,t){n&&(s[t]=n)})),Number(t)>1?s[a]=String(t):delete s[a],i+T(s)},p=function(n){"undefined"!=typeof window&&(document.documentElement.style.overflow=n?"hidden":"")},u={BREAK_POINT_SMALL_MOBILE:480,BREAK_POINT_MOBILE:768,BREAK_POINT_TABLET:1024,BREAK_POINT_PC:1159,BREAK_POINT_LGPC:1440},L={smbDown:"@media (max-width: ".concat(u.BREAK_POINT_SMALL_MOBILE-1,"px)"),smbUp:"@media (min-width: ".concat(u.BREAK_POINT_SMALL_MOBILE,"px)"),mbDown:"@media (max-width: ".concat(u.BREAK_POINT_MOBILE-1,"px)"),mbOnly:"@media (min-width: ".concat(u.BREAK_POINT_SMALL_MOBILE,"px) and (max-width: ").concat(u.BREAK_POINT_MOBILE-1,"px)"),mbUp:"@media (min-width: ".concat(u.BREAK_POINT_MOBILE,"px)"),tdDown:"@media (max-width: ".concat(u.BREAK_POINT_TABLET-1,"px)"),tdOnly:"@media (min-width: ".concat(u.BREAK_POINT_MOBILE,"px) and (max-width: ").concat(u.BREAK_POINT_TABLET-1,"px)"),tdUp:"@media (min-width: ".concat(u.BREAK_POINT_TABLET,"px)"),pcUp:"@media (min-width: ".concat(u.BREAK_POINT_PC,"px)"),pcOnly:"@media (min-width: ".concat(u.BREAK_POINT_TABLET,"px) and (max-width: ").concat(u.BREAK_POINT_PC-1,"px)"),pcDown:"@media (max-width: ".concat(u.BREAK_POINT_PC-1,"px)"),lgPcUp:"@media (min-width: ".concat(u.BREAK_POINT_LGPC,"px)"),lgPcOnly:"@media (min-width: ".concat(u.BREAK_POINT_PC,"px) and (max-width: ").concat(u.BREAK_POINT_LGPC-1,"px)"),lgPcDown:"@media (max-width: ".concat(u.BREAK_POINT_LGPC-1,"px)"),mbToPC:"@media (min-width: ".concat(u.BREAK_POINT_MOBILE,"px) and (max-width: ").concat(u.BREAK_POINT_PC-1,"px)")},w=function(n){switch(n){case"smbDown":return[0,u.BREAK_POINT_SMALL_MOBILE-1];case"smbUp":return[u.BREAK_POINT_SMALL_MOBILE,0];case"mbDown":return[0,u.BREAK_POINT_MOBILE-1];case"mbOnly":return[u.BREAK_POINT_SMALL_MOBILE,u.BREAK_POINT_MOBILE-1];case"mbUp":return[u.BREAK_POINT_MOBILE,0];case"tdDown":return[0,u.BREAK_POINT_TABLET-1];case"tdOnly":return[u.BREAK_POINT_MOBILE,u.BREAK_POINT_TABLET-1];case"tdUp":return[u.BREAK_POINT_TABLET,0];case"pcUp":return[u.BREAK_POINT_PC,0];case"pcOnly":return[u.BREAK_POINT_TABLET,u.BREAK_POINT_PC-1];case"pcDown":return[0,u.BREAK_POINT_PC-1];case"lgPcUp":return[u.BREAK_POINT_LGPC,0];case"lgPcOnly":return[u.BREAK_POINT_PC,u.BREAK_POINT_LGPC-1];case"lgPcDown":return[0,u.BREAK_POINT_LGPC-1];case"mbToPC":return[u.BREAK_POINT_MOBILE,u.BREAK_POINT_PC-1]}},R=function(){if("undefined"==typeof document)return null;var n="hhg-comp-popup-wrapper";if(!document.querySelector("#"+n)){var t=document.createElement("div");t.id=n,document.body.appendChild(t)}return document.querySelector("#"+n)},N=function(n){return n.replace(/\w\S*/g,(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}))},K=function(n){return decodeURI(n)!==n?n:encodeURI(n)},h=a(c||(c=n(["\nfrom {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n}\n\nto {\n transform: translate3d(0, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n}\n\nto {\n transform: translate3d(0, 0, 0);\n}\n"]))),b=a(_||(_=n(["\nfrom {\n transform: translate3d(0, -100%, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\nfrom {\n transform: translate3d(0, -100%, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),v=a(l||(l=n(["\n from {\n transform: translate3d(-100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\n from {\n transform: translate3d(-100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),y=a(E||(E=n(["\n from {\n transform: translate3d(100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\n from {\n transform: translate3d(100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),M=a(f||(f=n(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(0, 100%, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(0, 100%, 0);\n}\n"]))),x=a(B||(B=n(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(-100%, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(-100%, 0, 0);\n}\n"]))),C=a(O||(O=n(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(100%, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(100%, 0, 0);\n}\n"]))),S=a(P||(P=n(["\n from {\n transform: translate3d(0, 0, 0);\n }\n\n to {\n visibility: hidden;\n transform: translate3d(0, -100%, 0);\n }\n"],["\n from {\n transform: translate3d(0, 0, 0);\n }\n\n to {\n visibility: hidden;\n transform: translate3d(0, -100%, 0);\n }\n"]))),g=a(I||(I=n(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"],["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),U=null;"undefined"==typeof window||U||(U=new r);var D=e({isInit:!0}),G=function(n){var t=function(n){return"number"==typeof n?n:"undefined"!=typeof window&&window.innerWidth||0}(n);return{smallMobile:t<u.BREAK_POINT_SMALL_MOBILE,mobile:t>=u.BREAK_POINT_SMALL_MOBILE&&t<u.BREAK_POINT_MOBILE,tablet:t>=u.BREAK_POINT_MOBILE&&t<u.BREAK_POINT_TABLET,pc:t>=u.BREAK_POINT_TABLET&&t<u.BREAK_POINT_PC,xl:t>=u.BREAK_POINT_PC}},j=function(n){var a=n.children,r=o((function(){return{isInit:!0}})),e=r[0],c=r[1];s((function(){var n=m((function(){c({width:window.innerWidth,height:window.innerHeight,isInit:!1})}),200);return window.addEventListener("resize",n,{passive:!0}),function(){window.removeEventListener("resize",n)}}),[]);var _=d((function(){return G(e.width)}),[e.width]);return i.createElement(D.Provider,{value:t(t({},e),{sizeGroups:_})},a)};export{u as B,L as M,D as S,b as a,v as b,y as c,S as d,M as e,x as f,C as g,g as h,A as i,w as j,R as k,U as l,T as m,N as n,K as o,G as p,j as q,h as s,p as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,_ as e,b as t}from"./tslib.es6-dcf36680.js";import a,{useState as r,useEffect as o}from"react";import{Image as i,Accordion as c,Indicator as s,Avatar as l,createEmotionCache as d,FileInput as m,NumberInput as u,PasswordInput as p,TextInput as h,Checkbox as f,Slider as g,Radio as v,Switch as b}from"@mantine/core";import{CommonGAssets as Y}from"./gAssets.js";import{DatePicker as w,DateRangePicker as y}from"@mantine/dates";import k,{css as C}from"styled-components";import{useDebouncedValue as x}from"@mantine/hooks";import{Carousel as D}from"@mantine/carousel";import{a5 as M}from"./index.styled-
|
|
1
|
+
import{e as n,_ as e,b as t}from"./tslib.es6-dcf36680.js";import a,{useState as r,useEffect as o}from"react";import{Image as i,Accordion as c,Indicator as s,Avatar as l,createEmotionCache as d,FileInput as m,NumberInput as u,PasswordInput as p,TextInput as h,Checkbox as f,Slider as g,Radio as v,Switch as b}from"@mantine/core";import{CommonGAssets as Y}from"./gAssets.js";import{DatePicker as w,DateRangePicker as y}from"@mantine/dates";import k,{css as C}from"styled-components";import{useDebouncedValue as x}from"@mantine/hooks";import{Carousel as D}from"@mantine/carousel";import{a5 as M}from"./index.styled-520ccc61.js";import"date-fns";import"./screenSizeContext-1852eabc.js";import{t as S}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import{L as E}from"./Locale-69030fff.js";var A,P,I,z,F=k(w)(P||(P=n(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&C(A||(A=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=k(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(i,{src:Y.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(i,{src:Y.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},n))};var R,B=k(c)(R||(R=n(["\n .mantine-Accordion-control {\n &:hover {\n background-color: transparent;\n }\n }\n .mantine-Accordion-item {\n .mantine-Accordion-chevron {\n > div {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n background-position: center;\n background-image: url(",");\n }\n }\n &[data-active='true'] {\n .mantine-Accordion-chevron {\n > div {\n background-image: url(",");\n }\n }\n }\n }\n .mantine-Accordion-panel {\n border-radius: 6px;\n }\n .mantine-Accordion-content {\n white-space: pre-wrap;\n }\n"],["\n .mantine-Accordion-control {\n &:hover {\n background-color: transparent;\n }\n }\n .mantine-Accordion-item {\n .mantine-Accordion-chevron {\n > div {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n background-position: center;\n background-image: url(",");\n }\n }\n &[data-active='true'] {\n .mantine-Accordion-chevron {\n > div {\n background-image: url(",");\n }\n }\n }\n }\n .mantine-Accordion-panel {\n border-radius: 6px;\n }\n .mantine-Accordion-content {\n white-space: pre-wrap;\n }\n"])),(function(n){return n.closeChevron||Y.getAssetPath("plus-icon.svg")}),(function(n){return n.openChevron||Y.getAssetPath("minus-icon.svg")})),N=function(n){var r=n.children,o=t(n,["children"]);return a.createElement(B,e({chevron:a.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},o),r)};N.Control=c.Control,N.Item=c.Item,N.Panel=c.Panel;var W,G=Y.getAssetPath("avatar.jpg"),H=function(n){var r=n.withIndicator,o=void 0!==r&&r,i=n.indicatorConfig,c=void 0===i?null:i,d=n.size,m=void 0===d?56:d,u=n.children,p=t(n,["withIndicator","indicatorConfig","size","children"]),h=function(){return a.createElement(l,e({size:m,radius:"xl"},p),u||a.createElement("img",{src:G,width:m}))};return o?a.createElement(s,e({inline:!0,position:"bottom-end",offset:9},c,{styles:{indicator:{backgroundColor:a.isValidElement(c.label)&&"transparent"}}}),h()):h()},V=300,L=d({key:"mantine",prepend:!1}),O=((W={})[E.Vietnam]={dateFormat:"DD/MM/YYYY",separator:","},W[E.Cambodia]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.India]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Indonesia]={dateFormat:"DD/MM/YYYY",separator:","},W[E.Malaysia]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Thailand]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Taiwan]={dateFormat:"YYYY/MM/DD",separator:","},W[E.PhilippinesTagalog]={dateFormat:"MM/DD/YYYY",separator:"."},W[E.PhilippinesEnglish]={dateFormat:"MM/DD/YYYY",separator:"."},W[E.Myanmar]={dateFormat:"DD/MM/YYYY",separator:","},W),U=Y.getAssetPath("EyeVisible.svg"),q=Y.getAssetPath("EyeHidden.svg"),Z=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||""),d=l[0],m=l[1],u=x(d,V)[0];return o((function(){null==c||c(u)}),[u]),o((function(){m(i)}),[i]),a.createElement(h,e({size:"md",onChange:function(n){return m(n.currentTarget.value)},value:d},s))};Z.File=function(n){return a.createElement(m,e({size:"md"},n))},Z.Password=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||""),d=l[0],m=l[1],u=x(d,V)[0];return o((function(){null==c||c(u)}),[u]),o((function(){m(i)}),[i]),a.createElement(p,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:U,width:t}):a.createElement("img",{src:q,width:t})},styles:{rightSection:{pointerEvents:"initial"}},value:d},s))},Z.Number=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||0),d=l[0],m=l[1],p=x(d,V)[0];return o((function(){null==c||c(p)}),[p]),o((function(){m(i)}),[i]),a.createElement(u,e({size:"md",stepHoldDelay:500,stepHoldInterval:function(n){return Math.max(1e3/Math.pow(n,2),25)},onChange:m,hideControls:!0,min:0,formatter:function(n){return 0===Number(n)?"":n||""},removeTrailingZeros:!0,value:d},s))};var _=function(n){var r=n.slidesToShow,o=void 0===r?1:r,i=n.children,c=t(n,["slidesToShow","children"]);return a.createElement(D,e({slideSize:String(Math.floor(1/o*100))+"%",containScroll:"trimSnaps"},c),i)};_.Slide=D.Slide;var J=function(n){return a.createElement(f,e({},n))};J.Group=f.Group;var K,Q,X,$="hhgcomp-mantine-slider-slider",nn=M(k(g)(K||(K=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})),$),en=k.div(Q||(Q=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"])),$),tn=k(v)(X||(X=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})),an=function(n){return a.createElement(tn,e({size:"sm"},n))};an.Group=v.Group;var rn,on,cn=k(b)(rn||(rn=n(["\n .mantine-Switch-track {\n }\n"],["\n .mantine-Switch-track {\n }\n"]))),sn=((on={})[E.Vietnam]="vi",on[E.Cambodia]="km",on[E.India]="hi",on[E.Indonesia]="id",on[E.Malaysia]="ms",on[E.Thailand]="th",on[E.Taiwan]="zh-tw",on[E.PhilippinesTagalog]="tl-ph",on[E.PhilippinesEnglish]="en",on[E.Myanmar]="my",on),ln=function(n){o((function(){sn[n]&&require("dayjs/locale/".concat(sn[n],".js"))}),[n])},dn={"&:hover":{borderColor:"".concat(S.colors.blue200),boxShadow:"0 0 2px 2px ".concat(S.colors.blue200)}},mn=function(n){return{datesLocale:sn[n],dateFormat:O[n].dateFormat,fontFamily:n===E.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:O[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:dn}},Radio:{styles:{radio:e(e({backgroundColor:"#ffffff"},dn),{"&:checked":{backgroundColor:"#ffffff"}})}}}}};export{N as A,_ as C,V as D,Z as I,an as R,en as S,nn as a,T as b,H as c,J as d,cn as e,L as f,mn as g,ln 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-8bb3f7c9.js";export{f as AuthorLabelTextMapping,C as CardAuthor,g as DefaultComponentGlobalContextData,G as GlobalData,L as Loading,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,h as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-586e65e7.js";import"react";import"./index.styled-520ccc61.js";import"./tslib.es6-dcf36680.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-1852eabc.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-8575bd07.js";import"string-format";import"./index-588deadc.js";import"./useTranslations-ddaec288.js";import"innertext";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-610bb13c.js";import"react-contenteditable";import"./index-012ca6e1.js";import"./cookieHelper-0e8521c3.js";import"./index-80c700a9.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";
|