@hhgtech/hhg-components 1.19.13 → 1.19.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/babyGrowth.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/core.js +1 -1
- package/build/ecom.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/core.js +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{index-fd5aeb00.js → index-34fd4ca2.js} +1 -1
- package/build/esm/{index-77b7d1fa.js → index-652b0a74.js} +1 -1
- package/build/esm/{index-c080f2c3.js → index-854bfede.js} +1 -1
- package/build/esm/{index-6f5fe0f0.js → index-913475f3.js} +1 -1
- package/build/esm/index-9644b600.js +1 -0
- package/build/esm/{index-a94a59f8.js → index-ca8a65c8.js} +1 -1
- package/build/esm/index-ea077d6c.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-4e2d45c1.js +1 -0
- package/build/esm/index.styled-6ceb1ffe.js +1 -0
- package/build/esm/{index.styled-9e28ffc0.js → index.styled-9275ccf5.js} +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/number-3cb24023.js +1 -0
- package/build/esm/routing-d6ceeffd.js +1 -0
- package/build/esm/{constants-17d17987.js → theme-886d0d2f.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/types-209a2b6c.js +1 -0
- package/build/esm/types-35f3d422.js +1 -0
- package/build/esm/types-87f32571.js +1 -0
- package/build/esm/useFbDataLayer-e9860653.js +1 -0
- package/build/esm/useTranslations-443c50f3.js +1 -0
- package/build/{index-15a8d752.js → index-0df9a517.js} +1 -1
- package/build/{index-eba0ccfd.js → index-906c77a2.js} +1 -1
- package/build/{index-a42bf49e.js → index-a0e1567e.js} +1 -1
- package/build/index-a8d94311.js +1 -0
- package/build/{index-a9dac361.js → index-a8e54837.js} +1 -1
- package/build/index-d551cf10.js +1 -0
- package/build/index-e302ff07.js +1 -0
- package/build/index.js +1 -1
- package/build/index.styled-04f94566.js +1 -0
- package/build/index.styled-0b580017.js +1 -0
- package/build/index.styled-80cb4d3a.js +1 -0
- package/build/misc/theme.d.ts +1 -0
- package/build/navigation.js +1 -1
- package/build/number-87b13133.js +1 -0
- package/build/routing-1865523f.js +1 -0
- package/build/{constants-d4ec4195.js → theme-7830aadf.js} +1 -1
- package/build/together.js +1 -1
- package/build/types-18923efa.js +1 -0
- package/build/types-b528f9ad.js +1 -0
- package/build/types-cc6f9312.js +1 -0
- package/build/{ageGenerate-ab2ee426.js → useFbDataLayer-49119223.js} +1 -1
- package/build/useTranslations-3a6e3bef.js +1 -0
- package/package.json +1 -1
- package/build/esm/ageGenerate-479027f2.js +0 -1
- package/build/esm/index-3741f100.js +0 -1
- package/build/esm/index-aa913db3.js +0 -1
- package/build/esm/index.styled-5c6564ec.js +0 -1
- package/build/esm/index.styled-f044c8b2.js +0 -1
- package/build/esm/number-126ee62e.js +0 -1
- package/build/esm/routing-93ed4dbc.js +0 -1
- package/build/esm/theme-ed3b5e70.js +0 -1
- package/build/esm/types-26e71aa2.js +0 -1
- package/build/esm/types-55b8733c.js +0 -1
- package/build/esm/types-a158a9d8.js +0 -1
- package/build/esm/useTranslations-5c58aaf7.js +0 -1
- package/build/index-a7a67901.js +0 -1
- package/build/index-c49191c2.js +0 -1
- package/build/index-cb4f4283.js +0 -1
- package/build/index.styled-31c53cd9.js +0 -1
- package/build/index.styled-9b06e721.js +0 -1
- package/build/index.styled-df62f800.js +0 -1
- package/build/number-95704111.js +0 -1
- package/build/routing-3fb6d350.js +0 -1
- package/build/theme-da70da1e.js +0 -1
- package/build/types-18cefca9.js +0 -1
- package/build/types-b129e43d.js +0 -1
- package/build/types-cfe2f3a5.js +0 -1
- package/build/useTranslations-f5815b25.js +0 -1
package/build/babyGrowth.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-d551cf10.js"),r=require("./index.styled-04f94566.js");require("react"),require("./useTranslations-3a6e3bef.js"),require("./tslib.es6-f7929e76.js"),require("styled-components"),require("./translationsContext-d7c8e0a0.js"),require("./theme-7830aadf.js"),require("date-fns"),require("lodash"),require("./index-0df9a517.js"),require("react-range"),require("react-dom"),require("./index.styled-0b580017.js"),require("./useOutsideClick-528bfd6c.js"),exports.BabyGrowthChooseProfileDrawer=e.BabyGrowthChooseProfileDrawer,exports.BabyGrowthGender=e.BabyGrowthGender,exports.BabyGrowthLegend=e.BabyGrowthLegend,exports.BabyGrowthProfileRadio=e.BabyGrowthProfileRadio,exports.BabyGrowthRecord=e.BabyGrowthRecord,exports.ChildCard=e.ChildCard,exports.BabyGrowthSwitch=r.BabyGrowthSwitch,exports.BabyGrowthTooltip=r.BabyGrowthTooltip;
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-b528f9ad.js"),r=require("./constants-ea7b35a2.js");require("./tslib.es6-f7929e76.js"),require("react"),require("./theme-7830aadf.js"),require("./cookieHelper-612b90fa.js"),require("./useTranslations-3a6e3bef.js"),require("styled-components"),require("./translationsContext-d7c8e0a0.js"),require("lodash/debounce"),require("./index.styled-04f94566.js"),require("./index-a8e54837.js"),require("react-range"),require("react-dom"),require("date-fns"),require("react-loading-skeleton"),require("react-id-generator"),require("lodash/shuffle"),require("./useOutsideClick-528bfd6c.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
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-a8d94311.js"),r=require("./index.styled-80cb4d3a.js"),o=require("./index.styled-04f94566.js"),t=require("./index-a0e1567e.js"),a=require("./index-e302ff07.js"),i=require("./index-0df9a517.js"),s=require("./index-a8e54837.js"),n=require("./index-d551cf10.js"),p=require("./index.styled-0b580017.js");require("react"),require("./tslib.es6-f7929e76.js"),require("./useTranslations-3a6e3bef.js"),require("styled-components"),require("./translationsContext-d7c8e0a0.js"),require("react-range"),require("./theme-7830aadf.js"),require("react-id-generator"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-586f6706.js"),require("lodash/debounce"),require("react-dom"),require("lodash"),require("./constants-ea7b35a2.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("react-loading-skeleton"),require("./translationsProvider-cc84606e.js"),require("./cookieHelper-612b90fa.js"),require("./number-87b13133.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("./core-8fcc56eb.js"),require("smoothscroll-polyfill"),require("./routing-1865523f.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.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DatePicker=e.DatePicker,exports.DateRangePicker=e.DateRangePicker,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Footer=e.Footer,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Layout=e.Layout,exports.Modal=e.Modal,exports.NavigationBar=e.NavigationBar,exports.NavigationLayout=e.NavigationLayout,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.Radio=e.Radio,exports.RadioGroup=e.RadioGroup,exports.RateStars=e.RateStars,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.SideMenu=e.index,exports.SiteWide=e.SiteWide,exports.Slider=e.Slider,exports.StatisticCard=e.StatisticCard,exports.StickySponsoredBy=e.StickySponsoredBy,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Popup=r.Popup,exports.BabyGrowthSwitch=o.BabyGrowthSwitch,exports.BabyGrowthTooltip=o.BabyGrowthTooltip,exports.Button=o.Button,exports.Container=o.Container,exports.Label=o.Label,exports.Logo=o.Logo,exports.Menu=o.Menu,exports.PureInput=o.PureInput,exports.RadioImageGroup=o.RadioImageGroup,exports.Text=o.Text,exports.TextArea=o.TextArea,exports.TextDivider=o.TextDivider,exports.Divider=t.Divider,exports.Dropdown=t.Dropdown,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.ScrollList=a.ScrollList,exports.SurveyQuestionCard=a.SurveyQuestionCard,exports.UserProfileNavigation=a.UserProfileNavigation,exports.UserProfileNavigationHeader=a.NavHeader,exports.UserProfileNavigationStats=a.UserStats,exports.defaultTranslation=a.defaultTranslation,exports.getNavMenuContent=a.getNavMenuContent,exports.getNavMenuContentWithCache=a.getNavMenuContentWithCache,exports.Heading=i.Heading,exports.Input=s.Input,exports.BabyGrowthChooseProfileDrawer=n.BabyGrowthChooseProfileDrawer,exports.BabyGrowthGender=n.BabyGrowthGender,exports.BabyGrowthLegend=n.BabyGrowthLegend,exports.BabyGrowthProfileRadio=n.BabyGrowthProfileRadio,exports.BabyGrowthRecord=n.BabyGrowthRecord,exports.ChildCard=n.ChildCard,exports.Icon=n.Icon,exports.Drawer=p.Drawer;
|
package/build/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useFbDataLayer-49119223.js"),r=require("./theme-7830aadf.js"),t=require("./useTranslations-3a6e3bef.js"),s=require("./useScrollbarSize-586f6706.js"),o=require("./cookieHelper-612b90fa.js");require("react"),require("styled-components");var a=require("./number-87b13133.js"),i=require("./routing-1865523f.js");require("date-fns"),require("./tslib.es6-f7929e76.js"),require("./translationsContext-d7c8e0a0.js"),require("lodash/debounce"),exports.Types=e.index,exports.ageGenerate=e.ageGenerate,exports.useFbDataLayer=e.useFbDataLayer,exports.Constants=r.constants,exports.theme=r.theme,exports.Breakpoints=t.Breakpoints,exports.MediaQueries=t.MediaQueries,exports.fadeIn=t.fadeIn,exports.formatUrlWithPageParam=t.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=t.getBoundariesFromMediaQueryKey,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return t.lazyLoadInstance}}),exports.makeParams=t.makeParams,exports.slideInDown=t.slideInDown,exports.slideInLeft=t.slideInLeft,exports.slideInRight=t.slideInRight,exports.slideInUp=t.slideInUp,exports.slideOutDown=t.slideOutDown,exports.slideOutLeft=t.slideOutLeft,exports.slideOutRight=t.slideOutRight,exports.slideOutUp=t.slideOutUp,exports.toggleNoScroll=t.toggleNoScroll,exports.useTranslations=t.useTranslations,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.deleteCookie=o.deleteCookie,exports.getCookie=o.getCookie,exports.setCookie=o.setCookie,exports.abbreviateNumber=a.abbreviateNumber,exports.getCareApiDomain=i.getCareApiDomain,exports.getCurrentBaseUrl=i.getCurrentBaseUrl,exports.getCurrentSsoUrl=i.getCurrentSsoUrl,exports.getDiscoverApiDomain=i.getDiscoverApiDomain,exports.getTogetherApiDomain=i.getTogetherApiDomain;
|
package/build/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-cc6f9312.js");require("./tslib.es6-f7929e76.js"),require("./theme-7830aadf.js"),exports.EcomApiTypes=e.apiTypes,exports.EcomConstants=e.constants,exports.EcomDataFormatter=e.index,exports.EcomDataTypes=e.dataTypes,exports.EcomTypes=e.types;
|
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as BabyGrowthChooseProfileDrawer,B as BabyGrowthGender,a as BabyGrowthLegend,b as BabyGrowthProfileRadio,c as BabyGrowthRecord,C as ChildCard}from"./index-
|
|
1
|
+
export{d as BabyGrowthChooseProfileDrawer,B as BabyGrowthGender,a as BabyGrowthLegend,b as BabyGrowthProfileRadio,c as BabyGrowthRecord,C as ChildCard}from"./index-ea077d6c.js";export{d as BabyGrowthSwitch,e as BabyGrowthTooltip}from"./index.styled-9275ccf5.js";import"react";import"./useTranslations-443c50f3.js";import"./tslib.es6-fd0a5c98.js";import"styled-components";import"./translationsContext-e813aff9.js";import"./theme-886d0d2f.js";import"date-fns";import"lodash";import"./index-ca8a65c8.js";import"react-range";import"react-dom";import"./index.styled-6ceb1ffe.js";import"./useOutsideClick-6004483a.js";
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,t as CareTypes}from"./types-87f32571.js";export{c as CareConstants}from"./constants-dc22740c.js";import"./tslib.es6-fd0a5c98.js";import"react";import"./theme-886d0d2f.js";import"./cookieHelper-0e8521c3.js";import"./useTranslations-443c50f3.js";import"styled-components";import"./translationsContext-e813aff9.js";import"lodash/debounce";import"./index.styled-9275ccf5.js";import"./index-854bfede.js";import"react-range";import"react-dom";import"date-fns";import"react-loading-skeleton";import"react-id-generator";import"lodash/shuffle";import"./useOutsideClick-6004483a.js";
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,v as AmpNextPage,g as ArticleCard,B as Badge,a as BorderHeading,h as Breadcrumbs,n as Carousel,i as CategoryCard,C as Checkbox,j as CheckboxGroup,t as CookieAcceptConfirm,D as DatePicker,w as DateRangePicker,F as FileDropdown,s as FloatButtonGroup,E as Footer,G as Grid,I as IconText,L as Layout,M as Modal,y as NavigationBar,N as NavigationLayout,P as Pagination,f as Progress,k as ProgressBar,R as Radio,l as RadioGroup,e as RateStars,u as SeoHead,S as Shadow,m as SideMenu,x as SiteWide,b as Slider,o as StatisticCard,z as StickySponsoredBy,r as SurveyThankyouCard,p as Table,q as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-
|
|
1
|
+
export{A as Alert,v as AmpNextPage,g as ArticleCard,B as Badge,a as BorderHeading,h as Breadcrumbs,n as Carousel,i as CategoryCard,C as Checkbox,j as CheckboxGroup,t as CookieAcceptConfirm,D as DatePicker,w as DateRangePicker,F as FileDropdown,s as FloatButtonGroup,E as Footer,G as Grid,I as IconText,L as Layout,M as Modal,y as NavigationBar,N as NavigationLayout,P as Pagination,f as Progress,k as ProgressBar,R as Radio,l as RadioGroup,e as RateStars,u as SeoHead,S as Shadow,m as SideMenu,x as SiteWide,b as Slider,o as StatisticCard,z as StickySponsoredBy,r as SurveyThankyouCard,p as Table,q as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-9644b600.js";export{A as Avatar,P as Popup}from"./index.styled-4e2d45c1.js";export{d as BabyGrowthSwitch,e as BabyGrowthTooltip,B as Button,C as Container,L as Label,a as Logo,M as Menu,P as PureInput,R as RadioImageGroup,T as Text,b as TextArea,c as TextDivider}from"./index.styled-9275ccf5.js";export{D as Divider,a as Dropdown}from"./index-34fd4ca2.js";export{D as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,b as MobileBottomNavigationIcon,h as NavigationLogoutPopup,i as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,S as ScrollList,a as SurveyQuestionCard,U as UserProfileNavigation,e as UserProfileNavigationHeader,f as UserProfileNavigationStats,d as defaultTranslation,g as getNavMenuContent,c as getNavMenuContentWithCache}from"./index-652b0a74.js";export{H as Heading}from"./index-ca8a65c8.js";export{I as Input}from"./index-854bfede.js";export{d as BabyGrowthChooseProfileDrawer,B as BabyGrowthGender,a as BabyGrowthLegend,b as BabyGrowthProfileRadio,c as BabyGrowthRecord,C as ChildCard,I as Icon}from"./index-ea077d6c.js";export{D as Drawer}from"./index.styled-6ceb1ffe.js";import"react";import"./tslib.es6-fd0a5c98.js";import"./useTranslations-443c50f3.js";import"styled-components";import"./translationsContext-e813aff9.js";import"react-range";import"./theme-886d0d2f.js";import"react-id-generator";import"date-fns";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-99db33e1.js";import"lodash/debounce";import"react-dom";import"lodash";import"./constants-dc22740c.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"react-loading-skeleton";import"./translationsProvider-5f0618c7.js";import"./cookieHelper-0e8521c3.js";import"./number-3cb24023.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"./core-3d8a3f90.js";import"smoothscroll-polyfill";import"./routing-d6ceeffd.js";
|
package/build/esm/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{i as Types,a as ageGenerate,u as useFbDataLayer}from"./
|
|
1
|
+
export{i as Types,a as ageGenerate,u as useFbDataLayer}from"./useFbDataLayer-e9860653.js";export{c as Constants,t as theme}from"./theme-886d0d2f.js";export{B as Breakpoints,M as MediaQueries,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,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,t as toggleNoScroll,u as useTranslations}from"./useTranslations-443c50f3.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-0e8521c3.js";import"react";import"styled-components";export{a as abbreviateNumber}from"./number-3cb24023.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-d6ceeffd.js";import"date-fns";import"./tslib.es6-fd0a5c98.js";import"./translationsContext-e813aff9.js";import"lodash/debounce";
|
package/build/esm/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as EcomApiTypes,c as EcomConstants,i as EcomDataFormatter,d as EcomDataTypes,t as EcomTypes}from"./types-
|
|
1
|
+
export{a as EcomApiTypes,c as EcomConstants,i as EcomDataFormatter,d as EcomDataTypes,t as EcomTypes}from"./types-209a2b6c.js";import"./tslib.es6-fd0a5c98.js";import"./theme-886d0d2f.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{V as a}from"./index.styled-
|
|
1
|
+
import e from"react";import{V as a}from"./index.styled-9275ccf5.js";import{_ as t}from"./tslib.es6-fd0a5c98.js";import{p as l,q as n,r as i,s as d,t as s,v as o}from"./index.styled-4e2d45c1.js";var r=function(t){var l=t.type,n=void 0===l?"solid":l,i=t.className,d=t.style;return e.createElement(a,{style:d,className:i,"data-diver-type":n,dividerType:n})},c=function(a){var r=a.className,c=a.value,u=a.options,v=a.onChange,m=void 0===v?function(){}:v,p=a.id,b=a.placeholderIcon,f=a.placeholder,y=a.style,E=a.size,g=void 0===E?"lg":E,h=a.groupedWithLabel,k=a.disabled,N=a.dropdownLabelTrackingAttributes,C=void 0===N?{}:N,x=a.isNativeSelect,j=void 0!==x&&x,w=e.useState(!1),z=w[0],I=w[1],L=function(){return!k&&I(!z)};return j?e.createElement(l,{as:"select","data-is-native":"true",value:(null==c?void 0:c.value)||void 0,disabled:k,onChange:function(e){if("string"==typeof e.target.value){var a=u.find((function(a){return a.value===e.target.value}));a&&m(a)}}},f&&e.createElement("option",{value:f,disabled:!0,selected:!0},f),u.map((function(a){return e.createElement("option",{key:"".concat(p,"-").concat(a.value),value:a.value,disabled:!!a.disabled&&a.disabled},a.label)}))):e.createElement(l,{className:r,"data-dropdown-open":z||void 0,"data-size":g,id:p,"data-has-icons":!!b,style:y,onBlur:function(){return I(!1)},tabIndex:0,"data-disabled":k},!!h&&e.createElement(n,null,h),e.createElement(i,t({onClick:L,className:h&&"with-label"},C),b," ",e.createElement("span",null,c&&c.value?c.label:f)),z&&e.createElement(d,{onClick:L,"data-has-icons":!!b},u.map((function(a){return e.createElement(s,{key:"".concat(p,"-").concat(a.value),"data-selected":c&&c.value===a.value||void 0,onClick:function(){return!a.disabled&&!k&&(null==m?void 0:m(a))},"data-disabled":!!a.disabled&&a.disabled},a.icon&&e.createElement(o,null,a.icon),a.label)}))))};export{r as D,c as a};
|