@hhgtech/hhg-components 1.18.77 → 1.18.79
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/articleCard/index.d.ts +2 -1
- package/build/components/organisms/navigationProfileButton/index.d.ts +2 -1
- package/build/components/organisms/navigationV2/index.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/esm/components/molecules/articleCard/index.d.ts +2 -1
- package/build/esm/components/organisms/navigationProfileButton/index.d.ts +2 -1
- package/build/esm/components/organisms/navigationV2/index.d.ts +1 -0
- package/build/esm/components.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-2ba854d9.js → index-0158922a.js} +2 -2
- package/build/esm/{index-2ba854d9.js.map → index-0158922a.js.map} +1 -1
- package/build/esm/index-2153d0cf.js +2 -0
- package/build/esm/{index-d17afb39.js.map → index-2153d0cf.js.map} +1 -1
- package/build/esm/{index-d154266d.js → index-76111464.js} +2 -2
- package/build/esm/{index-d154266d.js.map → index-76111464.js.map} +1 -1
- package/build/esm/index-ac188516.js +2 -0
- package/build/esm/index-ac188516.js.map +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-a9a7c3fa.js → index.styled-b2d0d822.js} +2 -2
- package/build/esm/{index.styled-a9a7c3fa.js.map → index.styled-b2d0d822.js.map} +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/translationsProvider-a15863c9.js +2 -0
- package/build/esm/{translationsProvider-e480e7b9.js.map → translationsProvider-a15863c9.js.map} +1 -1
- package/build/esm/{types-e2ccd76f.js → types-f0f48f72.js} +2 -2
- package/build/esm/{types-e2ccd76f.js.map → types-f0f48f72.js.map} +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-9d9aeb5c.js → index-302b81e6.js} +2 -2
- package/build/{index-9d9aeb5c.js.map → index-302b81e6.js.map} +1 -1
- package/build/{index-6f999dde.js → index-35b524e6.js} +2 -2
- package/build/index-35b524e6.js.map +1 -0
- package/build/index.js +1 -1
- package/build/navigation.js +1 -1
- package/build/translationsProvider-eb4d9fd6.js +2 -0
- package/build/{translationsProvider-a20ed7f5.js.map → translationsProvider-eb4d9fd6.js.map} +1 -1
- package/package.json +1 -1
- package/build/esm/index-7c36acb8.js +0 -2
- package/build/esm/index-7c36acb8.js.map +0 -1
- package/build/esm/index-d17afb39.js +0 -2
- package/build/esm/translationsProvider-e480e7b9.js +0 -2
- package/build/index-6f999dde.js.map +0 -1
- package/build/translationsProvider-a20ed7f5.js +0 -2
|
@@ -41,6 +41,7 @@ export declare type Props = {
|
|
|
41
41
|
dataEventActionForBookmark?: string;
|
|
42
42
|
dataEventLabelForBookmark?: string;
|
|
43
43
|
onClickCategoryName?: (e: React.MouseEvent) => void;
|
|
44
|
+
articleLinkTarget: React.HTMLAttributeAnchorTarget;
|
|
44
45
|
};
|
|
45
|
-
declare const ArticleCard: ({ articleLink, authorLink, authorName, avatarImg, banner, categoryLink, categoryName, className, dataEventActionForBanner, dataEventActionForBookmark, dataEventActionForCategory, dataEventActionForTitle, dataEventCategoryForBanner, dataEventCategoryForBookmark, dataEventCategoryForCategory, dataEventCategoryForTitle, dataEventLabelForBanner, dataEventLabelForBookmark, dataEventLabelForCategory, dataEventLabelForTitle, direction, hasAffiliate, isBookmark, isBookmarkDisplayed, isMobile, onBookmark, onClickCategoryName, section, size, specialty, style, styleBanner, styleLabel, styleTitle, text, title, type, uploadTime, }: Props) => JSX.Element;
|
|
46
|
+
declare const ArticleCard: ({ articleLink, authorLink, authorName, avatarImg, banner, categoryLink, categoryName, className, dataEventActionForBanner, dataEventActionForBookmark, dataEventActionForCategory, dataEventActionForTitle, dataEventCategoryForBanner, dataEventCategoryForBookmark, dataEventCategoryForCategory, dataEventCategoryForTitle, dataEventLabelForBanner, dataEventLabelForBookmark, dataEventLabelForCategory, dataEventLabelForTitle, direction, hasAffiliate, isBookmark, isBookmarkDisplayed, isMobile, onBookmark, onClickCategoryName, section, size, specialty, style, styleBanner, styleLabel, styleTitle, text, title, type, uploadTime, articleLinkTarget, }: Props) => JSX.Element;
|
|
46
47
|
export { ArticleCard };
|
|
@@ -18,5 +18,6 @@ export declare type Props = {
|
|
|
18
18
|
onLogout?: () => void;
|
|
19
19
|
style?: CSSProperties;
|
|
20
20
|
userProfileRouterPush?: (s: string) => void;
|
|
21
|
+
isLoading?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export declare const NavigationProfileButton: ({ userInfo, siteType, isAmp, goToLogin, SSO_URL, currentUrl, isMinifyLogin, enableCare, enableTogether, enableEcom, isUserProfileNavigatorMenuHidden, UP_BASEPATH, isMyHealthEnabled, togetherApiDomain, onLogout, style, userProfileRouterPush, }: Props) => JSX.Element;
|
|
23
|
+
export declare const NavigationProfileButton: ({ userInfo, siteType, isAmp, goToLogin, SSO_URL, currentUrl, isMinifyLogin, enableCare, enableTogether, enableEcom, isUserProfileNavigatorMenuHidden, UP_BASEPATH, isMyHealthEnabled, togetherApiDomain, onLogout, style, userProfileRouterPush, isLoading, }: Props) => JSX.Element;
|
|
@@ -52,6 +52,7 @@ export declare type Props = {
|
|
|
52
52
|
currentUrl?: string;
|
|
53
53
|
isFirstLogin?: boolean;
|
|
54
54
|
userProfileRouterPush?: (s: string) => void;
|
|
55
|
+
isUserLoading?: boolean;
|
|
55
56
|
};
|
|
56
57
|
declare const NavigationV2: (props: Props) => JSX.Element;
|
|
57
58
|
export declare const getNavMenuContent: (locale: any) => Promise<NavMenuContentType>;
|
package/build/components.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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-35b524e6.js"),r=require("./index.styled-52495b2b.js"),o=require("./index-83861d2f.js"),t=require("./index-302b81e6.js"),a=require("./cookieHelper-ad9f483b.js");require("react"),require("./tslib.es6-f7929e76.js"),require("./useTranslations-29326df5.js"),require("styled-components"),require("./translationsContext-351bc1a7.js"),require("react-range"),require("./theme-79e84625.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("react-loading-skeleton"),require("./translationsProvider-eb4d9fd6.js"),require("date-fns/locale/en-US"),require("date-fns/locale/hi"),require("date-fns/locale/id"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./core-8fcc56eb.js"),require("smoothscroll-polyfill"),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.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Footer=e.Footer,exports.Grid=e.Grid,exports.Icon=e.Icon,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.Button=r.Button,exports.Heading=r.Heading,exports.Popup=r.Popup,exports.Divider=o.Divider,exports.Dropdown=o.Dropdown,exports.DoctorInfo=t.DoctorInfo,exports.Flag=t.Flag,exports.LanguageSwitcher=t.LanguageSwitcher,exports.MobileBottomNavigation=t.MobileBottomNavigation,exports.MobileBottomNavigationIcon=t.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=t.NavigationLogoutPopup,exports.NavigationProfileButton=t.NavigationProfileButton,exports.NavigationV2=t.NavigationV2,exports.ProfilePopup=t.ProfilePopup,exports.ScrollList=t.ScrollList,exports.SurveyQuestionCard=t.SurveyQuestionCard,exports.UserProfileNavigation=t.UserProfileNavigation,exports.UserProfileNavigationHeader=t.NavHeader,exports.UserProfileNavigationStats=t.UserStats,exports.defaultTranslation=t.defaultTranslation,exports.getNavMenuContent=t.getNavMenuContent,exports.getNavMenuContentWithCache=t.getNavMenuContentWithCache,exports.Container=a.Container,exports.Input=a.Input,exports.Label=a.Label,exports.Logo=a.Logo,exports.PureInput=a.PureInput,exports.Text=a.Text,exports.TextArea=a.TextArea,exports.TextDivider=a.TextDivider;
|
|
2
2
|
//# sourceMappingURL=components.js.map
|
|
@@ -41,6 +41,7 @@ export declare type Props = {
|
|
|
41
41
|
dataEventActionForBookmark?: string;
|
|
42
42
|
dataEventLabelForBookmark?: string;
|
|
43
43
|
onClickCategoryName?: (e: React.MouseEvent) => void;
|
|
44
|
+
articleLinkTarget: React.HTMLAttributeAnchorTarget;
|
|
44
45
|
};
|
|
45
|
-
declare const ArticleCard: ({ articleLink, authorLink, authorName, avatarImg, banner, categoryLink, categoryName, className, dataEventActionForBanner, dataEventActionForBookmark, dataEventActionForCategory, dataEventActionForTitle, dataEventCategoryForBanner, dataEventCategoryForBookmark, dataEventCategoryForCategory, dataEventCategoryForTitle, dataEventLabelForBanner, dataEventLabelForBookmark, dataEventLabelForCategory, dataEventLabelForTitle, direction, hasAffiliate, isBookmark, isBookmarkDisplayed, isMobile, onBookmark, onClickCategoryName, section, size, specialty, style, styleBanner, styleLabel, styleTitle, text, title, type, uploadTime, }: Props) => JSX.Element;
|
|
46
|
+
declare const ArticleCard: ({ articleLink, authorLink, authorName, avatarImg, banner, categoryLink, categoryName, className, dataEventActionForBanner, dataEventActionForBookmark, dataEventActionForCategory, dataEventActionForTitle, dataEventCategoryForBanner, dataEventCategoryForBookmark, dataEventCategoryForCategory, dataEventCategoryForTitle, dataEventLabelForBanner, dataEventLabelForBookmark, dataEventLabelForCategory, dataEventLabelForTitle, direction, hasAffiliate, isBookmark, isBookmarkDisplayed, isMobile, onBookmark, onClickCategoryName, section, size, specialty, style, styleBanner, styleLabel, styleTitle, text, title, type, uploadTime, articleLinkTarget, }: Props) => JSX.Element;
|
|
46
47
|
export { ArticleCard };
|
|
@@ -18,5 +18,6 @@ export declare type Props = {
|
|
|
18
18
|
onLogout?: () => void;
|
|
19
19
|
style?: CSSProperties;
|
|
20
20
|
userProfileRouterPush?: (s: string) => void;
|
|
21
|
+
isLoading?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export declare const NavigationProfileButton: ({ userInfo, siteType, isAmp, goToLogin, SSO_URL, currentUrl, isMinifyLogin, enableCare, enableTogether, enableEcom, isUserProfileNavigatorMenuHidden, UP_BASEPATH, isMyHealthEnabled, togetherApiDomain, onLogout, style, userProfileRouterPush, }: Props) => JSX.Element;
|
|
23
|
+
export declare const NavigationProfileButton: ({ userInfo, siteType, isAmp, goToLogin, SSO_URL, currentUrl, isMinifyLogin, enableCare, enableTogether, enableEcom, isUserProfileNavigatorMenuHidden, UP_BASEPATH, isMyHealthEnabled, togetherApiDomain, onLogout, style, userProfileRouterPush, isLoading, }: Props) => JSX.Element;
|
|
@@ -52,6 +52,7 @@ export declare type Props = {
|
|
|
52
52
|
currentUrl?: string;
|
|
53
53
|
isFirstLogin?: boolean;
|
|
54
54
|
userProfileRouterPush?: (s: string) => void;
|
|
55
|
+
isUserLoading?: boolean;
|
|
55
56
|
};
|
|
56
57
|
declare const NavigationV2: (props: Props) => JSX.Element;
|
|
57
58
|
export declare const getNavMenuContent: (locale: any) => Promise<NavMenuContentType>;
|
package/build/esm/components.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{A as Alert,w as AmpNextPage,g as ArticleCard,B as Badge,a as BorderHeading,h as Breadcrumbs,o as Carousel,i as CategoryCard,C as Checkbox,j as CheckboxGroup,u as CookieAcceptConfirm,D as DatePicker,F as FileDropdown,t as FloatButtonGroup,E as Footer,G as Grid,I as Icon,k as IconText,L as Layout,M as Modal,y as NavigationBar,N as NavigationLayout,P as Pagination,f as Progress,l as ProgressBar,R as Radio,m as RadioGroup,e as RateStars,v as SeoHead,S as Shadow,n as SideMenu,x as SiteWide,b as Slider,p as StatisticCard,z as StickySponsoredBy,s as SurveyThankyouCard,q as Table,r as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-
|
|
1
|
+
export{A as Alert,w as AmpNextPage,g as ArticleCard,B as Badge,a as BorderHeading,h as Breadcrumbs,o as Carousel,i as CategoryCard,C as Checkbox,j as CheckboxGroup,u as CookieAcceptConfirm,D as DatePicker,F as FileDropdown,t as FloatButtonGroup,E as Footer,G as Grid,I as Icon,k as IconText,L as Layout,M as Modal,y as NavigationBar,N as NavigationLayout,P as Pagination,f as Progress,l as ProgressBar,R as Radio,m as RadioGroup,e as RateStars,v as SeoHead,S as Shadow,n as SideMenu,x as SiteWide,b as Slider,p as StatisticCard,z as StickySponsoredBy,s as SurveyThankyouCard,q as Table,r as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-ac188516.js";export{A as Avatar,B as Button,H as Heading,P as Popup}from"./index.styled-b2d0d822.js";export{D as Divider,a as Dropdown}from"./index-0158922a.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-2153d0cf.js";export{C as Container,I as Input,L as Label,a as Logo,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./cookieHelper-f562a7b9.js";import"react";import"./tslib.es6-fd0a5c98.js";import"./useTranslations-0c13f2cb.js";import"styled-components";import"./translationsContext-b0b4655d.js";import"react-range";import"./theme-d85b3a33.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"react-loading-skeleton";import"./translationsProvider-a15863c9.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"./core-3d8a3f90.js";import"smoothscroll-polyfill";
|
|
2
2
|
//# sourceMappingURL=components.js.map
|
package/build/esm/i18n.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-
|
|
1
|
+
export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-a15863c9.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-b0b4655d.js";import"./tslib.es6-fd0a5c98.js";import"react";
|
|
2
2
|
//# sourceMappingURL=i18n.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{ac as a}from"./cookieHelper-f562a7b9.js";import{_ as t}from"./tslib.es6-fd0a5c98.js";import{p as l,q as n,r as i,s as
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import e from"react";import{ac as a}from"./cookieHelper-f562a7b9.js";import{_ as t}from"./tslib.es6-fd0a5c98.js";import{p as l,q as n,r as i,s as d,t as o,v as s}from"./index.styled-b2d0d822.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,j=a.isNativeSelect,w=void 0!==j&&j,x=e.useState(!1),z=x[0],I=x[1],L=function(){return!k&&I(!z)};return w?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(o,{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(s,null,a.icon),a.label)}))))};export{r as D,c as a};
|
|
2
|
+
//# sourceMappingURL=index-0158922a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-0158922a.js","sources":["../../src/components/atoms/divider/index.tsx","../../src/components/molecules/dropdown/index.tsx"],"sourcesContent":["import React from 'react'\n\nimport { CSSProperties } from 'styled-components'\n\nimport { StyledDivider } from './index.styled'\n\nexport type BorderTypes =\n | 'dotted'\n | 'dashed'\n | 'solid'\n | 'double'\n | 'groove'\n | 'ridge'\n | 'inset'\n | 'outset'\n\nexport type Props = {\n type: BorderTypes\n className?: string\n style?: CSSProperties\n}\n\nconst Divider = ({ type = 'solid', className, style }: Props) => {\n return (\n <StyledDivider\n style={style}\n className={className}\n data-diver-type={type}\n dividerType={type}\n />\n )\n}\n\nexport { Divider }\n","import React from 'react'\n\nimport { CSSProperties } from 'styled-components'\n\nimport {\n StyledDropdown,\n StyledDropdownName,\n StyledDropdownList,\n StyledDropdownOption,\n StyledIcon,\n StyledDropdownLabel,\n} from './index.styled'\n\nexport type Option = {\n label: string | JSX.Element\n value: string | Date | number\n icon?: JSX.Element\n disabled?: boolean\n}\n\nexport type Props = {\n options: Array<Option>\n placeholder: string\n disabled?: boolean\n id: string\n size?: 'sm' | 'md' | 'lg'\n placeholderIcon?: JSX.Element\n onChange?: (o: Option) => void\n value?: Option\n className?: string\n style?: CSSProperties\n groupedWithLabel?: string | JSX.Element\n dropdownLabelTrackingAttributes?: {\n [key: string]: string\n }\n isNativeSelect?: boolean\n}\n\nconst Dropdown = ({\n className,\n value,\n options,\n onChange = () => undefined,\n id,\n placeholderIcon,\n placeholder,\n style,\n size = 'lg',\n groupedWithLabel,\n disabled,\n dropdownLabelTrackingAttributes = {},\n isNativeSelect = false,\n}: Props) => {\n const [isDropdownOpen, setIsDropdownOpen] = React.useState(false)\n const showDropdown = () => !disabled && setIsDropdownOpen(!isDropdownOpen)\n\n if (isNativeSelect) {\n return (\n // @ts-ignore\n <StyledDropdown\n as=\"select\"\n data-is-native=\"true\"\n value={value?.value || undefined}\n disabled={disabled}\n onChange={(e: any) => {\n if (typeof e.target.value === 'string') {\n const option = options.find((o) => o.value === e.target.value)\n if (option) {\n onChange(option)\n }\n }\n }}\n >\n {placeholder && (\n <option value={placeholder} disabled selected>\n {placeholder}\n </option>\n )}\n {options.map((option) => (\n <option\n key={`${id}-${option.value}`}\n value={option.value as string}\n disabled={option.disabled ? option.disabled : false}\n >\n {option.label}\n </option>\n ))}\n </StyledDropdown>\n )\n }\n\n return (\n <StyledDropdown\n className={className}\n data-dropdown-open={isDropdownOpen || undefined}\n data-size={size}\n id={id}\n data-has-icons={!!placeholderIcon}\n style={style}\n onBlur={() => setIsDropdownOpen(false)}\n tabIndex={0}\n data-disabled={disabled}\n >\n {!!groupedWithLabel && (\n <StyledDropdownLabel>{groupedWithLabel}</StyledDropdownLabel>\n )}\n\n <StyledDropdownName\n onClick={showDropdown}\n className={groupedWithLabel && 'with-label'}\n {...dropdownLabelTrackingAttributes}\n >\n {placeholderIcon}{' '}\n <span>{value && value.value ? value.label : placeholder}</span>\n </StyledDropdownName>\n\n {isDropdownOpen && (\n <StyledDropdownList\n onClick={showDropdown}\n data-has-icons={!!placeholderIcon}\n >\n {options.map((option) => (\n <StyledDropdownOption\n key={`${id}-${option.value}`}\n data-selected={\n (value && value.value === option.value) || undefined\n }\n onClick={() =>\n !option.disabled && !disabled && onChange?.(option)\n }\n data-disabled={option.disabled ? option.disabled : false}\n >\n {option.icon && <StyledIcon>{option.icon}</StyledIcon>}\n {option.label}\n </StyledDropdownOption>\n ))}\n </StyledDropdownList>\n )}\n </StyledDropdown>\n )\n}\n\nexport { Dropdown }\n"],"names":["Divider","_a","_b","type","className","style","React","createElement","StyledDivider","dividerType","Dropdown","value","options","onChange","id","placeholderIcon","placeholder","_c","size","groupedWithLabel","disabled","_d","dropdownLabelTrackingAttributes","_e","isNativeSelect","_f","useState","isDropdownOpen","setIsDropdownOpen","showDropdown","StyledDropdown","as","undefined","e","target","option","find","o","selected","map","key","concat","label","onBlur","tabIndex","StyledDropdownLabel","StyledDropdownName","__assign","onClick","StyledDropdownList","StyledDropdownOption","icon","StyledIcon"],"mappings":"mMAsBM,IAAAA,EAAU,SAACC,OAAEC,EAAcD,EAAAE,KAAdA,OAAI,IAAAD,EAAG,QAAOA,EAAEE,EAASH,EAAAG,UAAEC,E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