@hhgtech/hhg-components 1.21.69 → 1.21.71

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.
@@ -1 +1 @@
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-2bf6d1d3.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-2bf6d1d3.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-66f12014.js";import"react-range";import{u as z}from"./useTranslations-85bbb13d.js";import"lodash/debounce";import{useDebouncedValue as P}from"@mantine/hooks";import{B}from"./index-b6575475.js";import"./translationsContext-2c0df9f2.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,styles:{root:{borderRadius:"2px",background:a,textTransform:"unset"}}},i))},D=function(e){var a=e.children,i=e.line,s=e.lineHeight,l=e.maxHeight,m=t(e,["children","line","lineHeight","maxHeight"]),c=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},c("articlePage.readMore")),hideLabel:r.createElement(H,{size:"p2",color:y.colors.primaryBase},c("articlePage.showLess"))},m,{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,m=e.onChange,c=e.value,d=e.min,h=e.max,p=t(e,["color","withControl","onChange","value","min","max"]),u=a(c||d||0),f=u[0],g=u[1],v=P(f,x)[0];return i((function(){null==m||m(v)}),[v]),r.createElement(E,null,l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){g((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:f,onChange:g,min:d,max:h},p)),l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){g((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};
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-2bf6d1d3.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-2bf6d1d3.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-66f12014.js";import"react-range";import{u as z}from"./useTranslations-85bbb13d.js";import"lodash/debounce";import{useDebouncedValue as P}from"@mantine/hooks";import{B}from"./index-b6575475.js";import"./translationsContext-2c0df9f2.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,styles:{root:{borderRadius:"2px",background:a,textTransform:"unset"}}},i))},D=function(e){var a=e.children,i=e.line,s=e.lineHeight,l=e.maxHeight,m=t(e,["children","line","lineHeight","maxHeight"]),c=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:"p3",color:y.colors.primaryBase},c("articlePage.readMore")),hideLabel:r.createElement(H,{size:"p3",color:y.colors.primaryBase},c("articlePage.showLess"))},m,{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,m=e.onChange,c=e.value,d=e.min,h=e.max,p=t(e,["color","withControl","onChange","value","min","max"]),u=a(c||d||0),f=u[0],g=u[1],v=P(f,x)[0];return i((function(){null==m||m(v)}),[v]),r.createElement(E,null,l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){g((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:f,onChange:g,min:d,max:h},p)),l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){g((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};
@@ -1 +1 @@
1
- import"./tslib.es6-dcf36680.js";import"react";import"./core-3b861395.js";import"./index.styled-66f12014.js";import"./index.styled-74bfa23e.js";import"react-id-generator";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash/debounce";import"react-dom";import"./index-9e11fe45.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-2c0df9f2.js";import"string-format";import"./index-9dd60ba6.js";import"react-hook-form";import"./theme-2bf6d1d3.js";import"@mantine/hooks";export{N as NavigationV2,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-8c0344db.js";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"./index-b6575475.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"./useTranslations-85bbb13d.js";import"smoothscroll-polyfill";import"./useOutsideClick-3faddcd8.js";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./cookieHelper-0e8521c3.js";import"slugify";import"@hookform/resolvers/yup";import"./useScrollbarSize-99db33e1.js";import"recharts";import"vanilla-lazyload";import"@mantine/dates";import"@mantine/carousel";import"./constants-a0a981fa.js";
1
+ import"./tslib.es6-dcf36680.js";import"react";import"./core-3b861395.js";import"./index.styled-66f12014.js";import"./index.styled-6df33ed0.js";import"react-id-generator";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash/debounce";import"react-dom";import"./index-9e11fe45.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-2c0df9f2.js";import"string-format";import"./index-9dd60ba6.js";import"react-hook-form";import"./theme-2bf6d1d3.js";import"@mantine/hooks";export{N as NavigationV2,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-a8ef2475.js";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"./index-b6575475.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"./useTranslations-85bbb13d.js";import"smoothscroll-polyfill";import"./useOutsideClick-3faddcd8.js";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./cookieHelper-0e8521c3.js";import"slugify";import"@hookform/resolvers/yup";import"./useScrollbarSize-99db33e1.js";import"recharts";import"vanilla-lazyload";import"@mantine/dates";import"@mantine/carousel";import"./constants-a0a981fa.js";
@@ -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-365e61ca.js";export{C as CardAuthor,n as DefaultComponentGlobalContextData,G as GlobalData,j as Loading,l as PopupDoctor,k as PopupExpert,m as PopupHospital,o as TogetherComponentGlobalContext,p as TogetherComponentGlobalContextProvider,i as TogetherConstants,h as TogetherDataTransforms,U as UserAvatar}from"./index.styled-74bfa23e.js";import"react";import"./index.styled-66f12014.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-2c0df9f2.js";import"string-format";import"./index-b6575475.js";import"./useTranslations-85bbb13d.js";import"innertext";import"react-range";import"@mantine/core";import"lodash/debounce";import"./useOutsideClick-3faddcd8.js";import"react-contenteditable";import"./index-9e11fe45.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"./cookieHelper-0e8521c3.js";import"./index-7e2b8a87.js";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"react-id-generator";import"react-day-picker/DayPickerInput";import"smoothscroll-polyfill";import"keen-slider/react";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./getDynamicHealthTool-831ea86d.js";import"./core-3b861395.js";import"react-hook-form";import"./theme-2bf6d1d3.js";import"@mantine/dates";import"@mantine/hooks";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";
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-3a3427d9.js";export{C as CardAuthor,n as DefaultComponentGlobalContextData,G as GlobalData,j as Loading,l as PopupDoctor,k as PopupExpert,m as PopupHospital,o as TogetherComponentGlobalContext,p as TogetherComponentGlobalContextProvider,i as TogetherConstants,h as TogetherDataTransforms,U as UserAvatar}from"./index.styled-6df33ed0.js";import"react";import"./index.styled-66f12014.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-2c0df9f2.js";import"string-format";import"./index-b6575475.js";import"./useTranslations-85bbb13d.js";import"innertext";import"react-range";import"@mantine/core";import"lodash/debounce";import"./useOutsideClick-3faddcd8.js";import"react-contenteditable";import"./index-9e11fe45.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"./cookieHelper-0e8521c3.js";import"./index-7e2b8a87.js";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"react-id-generator";import"react-day-picker/DayPickerInput";import"smoothscroll-polyfill";import"keen-slider/react";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./getDynamicHealthTool-831ea86d.js";import"./core-3b861395.js";import"react-hook-form";import"./theme-2bf6d1d3.js";import"@mantine/dates";import"@mantine/hooks";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";