@hhgtech/hhg-components 1.20.0-beta-1 → 1.20.0-beta-2

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.
Files changed (128) hide show
  1. package/build/Locale-11b51016.js +1 -0
  2. package/build/babyGrowth.js +1 -0
  3. package/build/browser-image-compression-18a94b0a.js +1 -0
  4. package/build/cache.js +1 -1
  5. package/build/care.js +1 -1
  6. package/build/components/atoms/babyGrowthGender/index.d.ts +7 -0
  7. package/build/components/atoms/babyGrowthGender/index.styled.d.ts +3 -0
  8. package/build/components/atoms/babyGrowthLegend/index.d.ts +12 -0
  9. package/build/components/atoms/babyGrowthLegend/index.styled.d.ts +2 -0
  10. package/build/components/atoms/babyGrowthProfileRadio/index.d.ts +9 -0
  11. package/build/components/atoms/babyGrowthProfileRadio/index.styled.d.ts +1 -0
  12. package/build/components/atoms/babyGrowthRecord/index.d.ts +10 -0
  13. package/build/components/atoms/babyGrowthRecord/index.styled.d.ts +1 -0
  14. package/build/components/atoms/babyGrowthSwitch/index.d.ts +11 -0
  15. package/build/components/atoms/babyGrowthSwitch/index.styled.d.ts +1 -0
  16. package/build/components/atoms/babyGrowthTooltip/index.d.ts +12 -0
  17. package/build/components/atoms/babyGrowthTooltip/index.styled.d.ts +1 -0
  18. package/build/components/atoms/drawer/index.d.ts +5 -1
  19. package/build/components/atoms/icons/Boy.d.ts +4 -0
  20. package/build/components/atoms/icons/Calendar.d.ts +4 -0
  21. package/build/components/atoms/icons/GenderBoy.d.ts +4 -0
  22. package/build/components/atoms/icons/GenderChooseBoy.d.ts +4 -0
  23. package/build/components/atoms/icons/GenderChooseGirl.d.ts +4 -0
  24. package/build/components/atoms/icons/GenderGirl.d.ts +4 -0
  25. package/build/components/atoms/icons/Girl.d.ts +4 -0
  26. package/build/components/atoms/icons/Kebab.d.ts +4 -0
  27. package/build/components/atoms/icons/index.d.ts +8 -0
  28. package/build/components/atoms/index.d.ts +4 -0
  29. package/build/components/atoms/radioImageGroup/index.d.ts +16 -0
  30. package/build/components/atoms/radioImageGroup/index.styled.d.ts +2 -0
  31. package/build/components/atoms/textArea/index.d.ts +1 -0
  32. package/build/components/babyGrowth.d.ts +16 -0
  33. package/build/components/molecules/babyGrowthChooseProfileDrawer/index.d.ts +10 -0
  34. package/build/components/molecules/babyGrowthChooseProfileDrawer/index.styled.d.ts +2 -0
  35. package/build/components/molecules/childCard/index.d.ts +19 -0
  36. package/build/components/molecules/childCard/index.styled.d.ts +3 -0
  37. package/build/components/molecules/childCard/menu.d.ts +11 -0
  38. package/build/components/molecules/datePicker/helpers.d.ts +11 -0
  39. package/build/components/molecules/datePicker/index.d.ts +2 -1
  40. package/build/components/molecules/dropdownSearch/index.styled.d.ts +1 -1
  41. package/build/components.js +1 -1
  42. package/build/{theme-79e84625.js → constants-d4ec4195.js} +1 -1
  43. package/build/cookieHelper-3d06d4ea.js +1 -0
  44. package/build/{core-d2fdb832.js → core-8fcc56eb.js} +1 -1
  45. package/build/core.js +1 -1
  46. package/build/ecom.js +1 -1
  47. package/build/esm/Locale-69030fff.js +1 -0
  48. package/build/esm/babyGrowth.js +1 -0
  49. package/build/esm/browser-image-compression-c934f959.js +1 -0
  50. package/build/esm/cache.js +1 -1
  51. package/build/esm/care.js +1 -1
  52. package/build/esm/components.js +1 -1
  53. package/build/esm/{theme-d85b3a33.js → constants-17d17987.js} +1 -1
  54. package/build/esm/cookieHelper-35e11367.js +1 -0
  55. package/build/esm/{core-7192b198.js → core-3d8a3f90.js} +1 -1
  56. package/build/esm/core.js +1 -1
  57. package/build/esm/ecom.js +1 -1
  58. package/build/esm/i18n.js +1 -1
  59. package/build/esm/index-00ab4efc.js +1 -0
  60. package/build/esm/index-363e0802.js +1 -0
  61. package/build/esm/index-65f0cc92.js +1 -0
  62. package/build/esm/index-9f8cb5a8.js +1 -0
  63. package/build/esm/index-a93b134f.js +7 -0
  64. package/build/esm/index-b61119cd.js +1 -0
  65. package/build/esm/index.js +1 -1
  66. package/build/esm/index.styled-025214f8.js +1 -0
  67. package/build/esm/index.styled-5cf1d3ff.js +1 -0
  68. package/build/esm/navigation.js +1 -1
  69. package/build/esm/theme-ed3b5e70.js +1 -0
  70. package/build/esm/together.js +1 -1
  71. package/build/esm/translationsContext-e813aff9.js +1 -0
  72. package/build/esm/translationsProvider-30f3552d.js +1 -0
  73. package/build/esm/{tslib.es6-f75a5274.js → tslib.es6-fd0a5c98.js} +14 -0
  74. package/build/esm/types-26e71aa2.js +1 -0
  75. package/build/esm/types-a44a81de.js +1 -0
  76. package/build/esm/types-e572e120.js +1 -0
  77. package/build/esm/useFbDataLayer-1f698c03.js +1 -0
  78. package/build/esm/useTranslations-a2981e90.js +1 -0
  79. package/build/i18n.js +1 -1
  80. package/build/{index-fc9d0bf2.js → index-248609f6.js} +1 -1
  81. package/build/index-5a667f53.js +1 -0
  82. package/build/index-7224625a.js +1 -0
  83. package/build/index-9fc3b179.js +1 -0
  84. package/build/index-b75b00d2.js +1 -0
  85. package/build/index-ed7420f7.js +1 -0
  86. package/build/index.js +1 -1
  87. package/build/index.styled-46a15e50.js +1 -0
  88. package/build/index.styled-c8bb3c45.js +1 -0
  89. package/build/interfaces/types/BabyGrowth.d.ts +149 -0
  90. package/build/interfaces/types/Locale.d.ts +12 -0
  91. package/build/interfaces/{types.d.ts → types/index.d.ts} +2 -0
  92. package/build/misc/ageGenerate.d.ts +5 -0
  93. package/build/navigation.js +1 -1
  94. package/build/theme-da70da1e.js +1 -0
  95. package/build/together.js +1 -1
  96. package/build/translationsContext-d7c8e0a0.js +1 -0
  97. package/build/translationsProvider-5ccb1448.js +1 -0
  98. package/build/tslib.es6-f7929e76.js +15 -0
  99. package/build/types-18cefca9.js +1 -0
  100. package/build/types-95b625c1.js +1 -0
  101. package/build/types-a624e759.js +1 -0
  102. package/build/useFbDataLayer-e95be4db.js +1 -0
  103. package/build/useTranslations-e2db2b05.js +1 -0
  104. package/package.json +15 -20
  105. package/build/cookieHelper-e65b4d18.js +0 -1
  106. package/build/esm/cookieHelper-7f9651cb.js +0 -1
  107. package/build/esm/index-21740086.js +0 -1
  108. package/build/esm/index-81d6b37c.js +0 -1
  109. package/build/esm/index-c6a6295b.js +0 -1
  110. package/build/esm/index.styled-24f65c31.js +0 -1
  111. package/build/esm/translationsContext-b0b4655d.js +0 -1
  112. package/build/esm/translationsProvider-048006ec.js +0 -1
  113. package/build/esm/types-75ce5678.js +0 -1
  114. package/build/esm/types-e4289618.js +0 -1
  115. package/build/esm/types-eab81003.js +0 -1
  116. package/build/esm/useFbDataLayer-58443cc1.js +0 -1
  117. package/build/esm/useTranslations-ac338bb1.js +0 -1
  118. package/build/index-69703634.js +0 -1
  119. package/build/index-b13e58b4.js +0 -1
  120. package/build/index.styled-b4c6e06e.js +0 -1
  121. package/build/translationsContext-351bc1a7.js +0 -1
  122. package/build/translationsProvider-895ce4a0.js +0 -1
  123. package/build/tslib.es6-a114f850.js +0 -1
  124. package/build/types-0f6d5663.js +0 -1
  125. package/build/types-63b5c80b.js +0 -1
  126. package/build/types-8704827c.js +0 -1
  127. package/build/useFbDataLayer-508d5450.js +0 -1
  128. package/build/useTranslations-0b6ce83c.js +0 -1
@@ -0,0 +1 @@
1
+ import{b as e,_ as t}from"./tslib.es6-fd0a5c98.js";import a,{useMemo as n}from"react";import{W as i,L as o,X as s,Y as r,Z as l}from"./index.styled-5cf1d3ff.js";var c=function(c){var d=c.name,m=c.value,u=c.errorMessage,p=c.isNumerousKeyboard,f=void 0!==p&&p,v=c.actionIcon,y=c.displayIcon,b=c.onActionClick,g=c.label,C=c.className,h=c.onChange,N=c.isDisabled,E=c.CustomInput,I=c.size,k=c.style,w=c.autoComplete,A=void 0===w?"off":w,x=c.type,K=void 0===x?"text":x,T=c.inputClassName,z=c.trackingAttributes,L=c.enterKeyHint,M=e(c,["name","value","errorMessage","isNumerousKeyboard","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]),D=n((function(){return z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}}),[z]);return a.createElement(i,{"data-size":I,className:C,"data-has-action-icon":!!v||void 0,"data-has-display-icon":!!y||void 0,"data-has-error":u&&u.length>0||void 0,style:k},g&&a.createElement(o,{size:"label2",htmlFor:d,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},E||a.createElement("input",t({id:d,name:d,onChange:function(e){return h&&h(e.target.value)},type:K,"aria-label":K,value:m,disabled:N,autoComplete:A,inputMode:f||"number"===K?"numeric":K,pattern:f?"[0-9]*":".*",className:T,enterKeyHint:L},D,M)),y&&a.createElement(s,{className:"displayIcon"},y),v&&a.createElement(r,{className:"actionIcon",onClick:b},v)),u&&u.length>0&&a.createElement(l,{className:"errorLabel"},u))},d=function(e){if("undefined"!=typeof window){var t="; ".concat(document.cookie).split("; ".concat(e,"="));return 2===t.length?t.pop().split(";").shift():void 0}},m=function(e,t,a,n){if("undefined"!=typeof window){var i="";if(a||n){var o=new Date;a?o.setTime(o.getTime()+24*a*60*60*1e3):o.setTime(o.getTime()+60*n*1e3),i="; expires="+o.toUTCString()}document.cookie=e+"="+(t||"")+i+"; path=/"}},u=function(e){"undefined"!=typeof window&&(document.cookie=e+"=; Max-Age=-99999999; path=/")};export{c as I,u as d,d as g,m as s};
@@ -1 +1 @@
1
- import{d as t,e}from"./tslib.es6-f75a5274.js";var a={},n=function(t){if("undefined"!=typeof window){var e=void 0;try{e=JSON.parse(localStorage.getItem("hhg-cache-"+t)||"{}")}catch(t){}return e||{}}return a[t]},r=function(t,e){try{"undefined"!=typeof window?localStorage.setItem("hhg-cache-"+t,JSON.stringify({data:e,time:Date.now()})):a[t]={data:e,time:Date.now()}}catch(t){}},i=function(a,i,o,c){return void 0===c&&(c=9e5),t(void 0,void 0,void 0,(function(){var t,s;return e(this,(function(e){switch(e.label){case 0:return(t=n(a))&&t.data&&t.time&&Date.now()-t.time<c?[2,t.data]:[3,1];case 1:return i?[4,i()]:[3,3];case 2:return s=e.sent(),o&&!o(s)||r(a,s),[2,s];case 3:return[2,null]}}))}))};export{n as a,i as g,r as s};
1
+ import{d as t,e}from"./tslib.es6-fd0a5c98.js";var a={},n=function(t){if("undefined"!=typeof window){var e=void 0;try{e=JSON.parse(localStorage.getItem("hhg-cache-"+t)||"{}")}catch(t){}return e||{}}return a[t]},r=function(t,e){try{"undefined"!=typeof window?localStorage.setItem("hhg-cache-"+t,JSON.stringify({data:e,time:Date.now()})):a[t]={data:e,time:Date.now()}}catch(t){}},i=function(a,i,o,c){return void 0===c&&(c=9e5),t(void 0,void 0,void 0,(function(){var t,s;return e(this,(function(e){switch(e.label){case 0:return(t=n(a))&&t.data&&t.time&&Date.now()-t.time<c?[2,t.data]:[3,1];case 1:return i?[4,i()]:[3,3];case 2:return s=e.sent(),o&&!o(s)||r(a,s),[2,s];case 3:return[2,null]}}))}))};export{n as a,i as g,r as s};
package/build/esm/core.js CHANGED
@@ -1 +1 @@
1
- export{t as Types,u as useFbDataLayer}from"./useFbDataLayer-58443cc1.js";export{c as Constants,t as theme}from"./theme-d85b3a33.js";export{B as Breakpoints,M as MediaQueries,f as formatUrlWithPageParam,g as getBoundariesFromMediaQueryKey,m as makeParams,t as toggleNoScroll,u as useTranslations}from"./useTranslations-ac338bb1.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";import"react";import"./translationsContext-b0b4655d.js";import"string-format";import"lodash/debounce";
1
+ export{i as Types,u as useFbDataLayer}from"./useFbDataLayer-1f698c03.js";export{c as Constants}from"./constants-17d17987.js";export{t as theme}from"./theme-ed3b5e70.js";export{B as Breakpoints,M as MediaQueries,f as formatUrlWithPageParam,g as getBoundariesFromMediaQueryKey,m as makeParams,t as toggleNoScroll,u as useTranslations}from"./useTranslations-a2981e90.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";import"./Locale-69030fff.js";import"react";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-75ce5678.js";import"./tslib.es6-f75a5274.js";import"./theme-d85b3a33.js";
1
+ export{a as EcomApiTypes,c as EcomConstants,i as EcomDataFormatter,d as EcomDataTypes,t as EcomTypes}from"./types-26e71aa2.js";import"./tslib.es6-fd0a5c98.js";import"./theme-ed3b5e70.js";import"./constants-17d17987.js";
package/build/esm/i18n.js CHANGED
@@ -1 +1 @@
1
- export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-048006ec.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-b0b4655d.js";import"./tslib.es6-f75a5274.js";import"react";
1
+ export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-30f3552d.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-e813aff9.js";import"./tslib.es6-fd0a5c98.js";import"react";
@@ -0,0 +1 @@
1
+ import{b as t,_ as a}from"./tslib.es6-fd0a5c98.js";import e from"react";import{O as n,Q as r,R as o}from"./index.styled-5cf1d3ff.js";var d=function(o){var d=o.size,i=o.color,c=void 0===i?"primary":i,l=o.theme,s=void 0===l?"helloSites":l,m=o.isDisabled,u=o.isBlock,h=o.title,v=o.className,g=o.onClick,C=o.icon,p=o.children,E=o.isLoading,k=o.loadingText,y=o.dataEventCategory,f=o.dataEventAction,w=o.dataEventLabel,b=o.dataProductChannel,P=o.dataProductSku,x=o.dataProductBrand,B=o.dataProductName,A=o.dataProductPrice,L=o.dataProductCategory,N=o.dataProductPosition,F=o.isAmp,z=o.on,T=o.dataVarsTracking,W=o.type,D=t(o,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","isAmp","on","dataVarsTracking","type"]);return e.createElement(n,a({},F?{"data-vars-event-category":y,"data-vars-event-action":f,"data-vars-event-label":w,"data-vars-product-channel":b,"data-vars-product-sku":P,"data-vars-product-brand":x,"data-vars-product-name":B,"data-vars-product-price":A,"data-vars-product-category":L,"data-vars-product-position":N,"data-vars-tracking":T,on:z}:{"data-event-category":y,"data-event-action":f,"data-event-label":w,"data-product-channel":b,"data-product-sku":P,"data-product-brand":x,"data-product-name":B,"data-product-price":A,"data-product-category":L,"data-product-position":N},{className:v,"data-size":d,"data-color":c,"data-block":u,"data-has-icon":!!C||void 0,"data-theme":s,disabled:m,onClick:function(t){!E&&!m&&g&&g(t)},title:h,"data-is-loading":E||void 0,buttonHasIcon:!!C,buttonTheme:s,buttonSize:d,buttonColor:c,buttonIsLoading:E,buttonIsBlock:u,type:W},D),E?e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:24}},("secondary"===c||"transparent"===c||"tertiary"===c||"ghost"===c)&&e.createElement(e.Fragment,null,e.createElement("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"#DBDFE5",strokeWidth:"4"})),e.createElement(r,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e.createElement("mask",{id:"a",fill:"#fff"},e.createElement("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})),e.createElement("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"}))),"primary"===c&&e.createElement(e.Fragment,null,e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),e.createElement(r,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("mask",{id:"path-1-inside-1",fill:"white"},e.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),e.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),e.createElement("span",null,k)):e.createElement("span",null,!E&&e.createElement("span",{className:"button-icon"},C)," ",p))},i=function(t){var n,r=t.as,d=t.tag,i=t.className,c=t.children,l=t.title,s=t.color,m=t.style,u=t.fontWeight,h=t.dataEventCategory,v=t.dataEventAction,g=t.dataEventLabel,C=r||d;return e.createElement(o,{title:l,style:a(a({},s?(n={},n["--custom-heading-color"]=s,n):void 0),m),"data-tag":d,"data-font-weight":u||void 0,"data-event-category":h,"data-event-action":v,"data-event-label":g,as:C,className:i,headingFontWeight:u,headingTag:d},c)};export{d as B,i as H};
@@ -0,0 +1 @@
1
+ import e from"react";import{U as a}from"./index.styled-5cf1d3ff.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-025214f8.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,f=a.id,p=a.placeholderIcon,b=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)}}},b&&e.createElement("option",{value:b,disabled:!0,selected:!0},b),u.map((function(a){return e.createElement("option",{key:"".concat(f,"-").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:f,"data-has-icons":!!p,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),p," ",e.createElement("span",null,c&&c.value?c.label:b)),z&&e.createElement(d,{onClick:L,"data-has-icons":!!p},u.map((function(a){return e.createElement(s,{key:"".concat(f,"-").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};