@mozaic-ds/web-components 0.26.0 → 0.27.0

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 (196) hide show
  1. package/README.md +74 -22
  2. package/package.json +5 -5
  3. package/public/adeo/components/autocomplete/Autocomplete.js +1 -1
  4. package/public/adeo/components/button/Button.js +1 -1
  5. package/public/adeo/components/button/Button.nested.js +1 -1
  6. package/public/adeo/components/button/Button.nested.js.map +1 -1
  7. package/public/adeo/components/card/Card.js +1 -1
  8. package/public/adeo/components/datatable/DataTable.js +1 -1
  9. package/public/adeo/components/datatable/datatable-default-action.nested.js +1 -1
  10. package/public/adeo/components/datatable/datatable-default-action.nested.js.map +1 -1
  11. package/public/adeo/components/datatable/datatable-default-edtion.nested.js +1 -1
  12. package/public/adeo/components/datatable/datatable-default-edtion.nested.js.map +1 -1
  13. package/public/adeo/components/datatable/datatable-default-filter-tags.nested.js +1 -1
  14. package/public/adeo/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
  15. package/public/adeo/components/datatable/datatable-default-footer.nested.js +1 -1
  16. package/public/adeo/components/datatable/datatable-default-footer.nested.js.map +1 -1
  17. package/public/adeo/components/dropdown/Dropdown.js +1 -1
  18. package/public/adeo/components/fileuploader/fileuploader-result.nested.js +1 -1
  19. package/public/adeo/components/layer/Layer.js +1 -1
  20. package/public/adeo/components/listbox/Listbox.js +1 -1
  21. package/public/adeo/components/listbox/Listbox.nested.js +1 -1
  22. package/public/adeo/components/listbox/Listbox.nested.js.map +1 -1
  23. package/public/adeo/components/listbox/Listbox.nested.svelte +1 -1
  24. package/public/adeo/components/menu/Menu.js +1 -1
  25. package/public/adeo/components/menu/Menu.js.map +1 -1
  26. package/public/adeo/components/modal/Modal.js +1 -1
  27. package/public/adeo/components/optionbutton/OptionButton.js +1 -1
  28. package/public/adeo/components/optionbutton/OptionButton.js.map +1 -1
  29. package/public/adeo/components/optionbutton/OptionButton.svelte +14 -7
  30. package/public/adeo/components/pagination/Pagination.js +1 -1
  31. package/public/adeo/components/passwordinput/PasswordInput.js +1 -1
  32. package/public/adeo/components/phonenumber/PhoneNumber.js +1 -1
  33. package/public/adeo/components/phonenumber/PhoneNumber.js.map +1 -1
  34. package/public/adeo/components/phonenumber/PhoneNumber.svelte +16 -13
  35. package/public/adeo/components/quantityselector/QuantitySelector.js +1 -1
  36. package/public/adeo/components/segmentedcontrol/SegmentedControl.js +1 -1
  37. package/public/adeo/components/segmentedcontrol/SegmentedControl.js.map +1 -1
  38. package/public/adeo/components/segmentedcontrol/SegmentedControl.svelte +1 -6
  39. package/public/adeo/components/stepper/Stepper.js +1 -1
  40. package/public/adeo/components/stepper/Stepper.js.map +1 -1
  41. package/public/adeo/components/tag/Tag.js +1 -1
  42. package/public/adeo/components/tag/Tag.js.map +1 -1
  43. package/public/adeo/components/tag/Tag.nested.js +1 -1
  44. package/public/adeo/components/tag/Tag.nested.js.map +1 -1
  45. package/public/adeo/components/tag/Tag.nested.svelte +5 -5
  46. package/public/adeo/components/tag/Tag.svelte +5 -5
  47. package/public/adeo/components/textarea/Textarea.js +1 -1
  48. package/public/adeo/components/textinput/Textinput.js +1 -1
  49. package/public/adeo/components/textinput/Textinput.nested.js +1 -1
  50. package/public/adeo/components/textinput/Textinput.nested.js.map +1 -1
  51. package/public/adeo/components/tooltip/Tooltip.js +1 -1
  52. package/public/adeo/components/tooltip/Tooltip.js.map +1 -1
  53. package/public/adeo/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +1 -1
  54. package/public/bricoman/components/actionbar/ActionBar.js +1 -1
  55. package/public/bricoman/components/autocomplete/Autocomplete.js +1 -1
  56. package/public/bricoman/components/breadcrumb/Breadcrumb.js +1 -1
  57. package/public/bricoman/components/breadcrumb/Breadcrumb.nested.js +1 -1
  58. package/public/bricoman/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
  59. package/public/bricoman/components/button/Button.js +1 -1
  60. package/public/bricoman/components/button/Button.nested.js +1 -1
  61. package/public/bricoman/components/button/Button.nested.js.map +1 -1
  62. package/public/bricoman/components/card/Card.js +1 -1
  63. package/public/bricoman/components/chart/Donut.js +1 -1
  64. package/public/bricoman/components/checkbox/Checkbox.js +1 -1
  65. package/public/bricoman/components/checkboxgroup/checkboxGroup.js +1 -1
  66. package/public/bricoman/components/checkboxgroup/checkboxGroup.js.map +1 -1
  67. package/public/bricoman/components/datatable/DataTable.js +1 -1
  68. package/public/bricoman/components/datatable/datatable-default-action.nested.js +1 -1
  69. package/public/bricoman/components/datatable/datatable-default-action.nested.js.map +1 -1
  70. package/public/bricoman/components/datatable/datatable-default-edtion.nested.js +1 -1
  71. package/public/bricoman/components/datatable/datatable-default-edtion.nested.js.map +1 -1
  72. package/public/bricoman/components/datatable/datatable-default-filter-tags.nested.js +1 -1
  73. package/public/bricoman/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
  74. package/public/bricoman/components/datatable/datatable-default-footer.nested.js +1 -1
  75. package/public/bricoman/components/datatable/datatable-default-footer.nested.js.map +1 -1
  76. package/public/bricoman/components/dropdown/Dropdown.js +1 -1
  77. package/public/bricoman/components/dropdown/Dropdown.js.map +1 -1
  78. package/public/bricoman/components/fileuploader/FileUploader.js +1 -1
  79. package/public/bricoman/components/fileuploader/FileUploader.js.map +1 -1
  80. package/public/bricoman/components/fileuploader/fileuploader-result.js +1 -1
  81. package/public/bricoman/components/fileuploader/fileuploader-result.nested.js +1 -1
  82. package/public/bricoman/components/fileuploader/fileuploader-result.nested.js.map +1 -1
  83. package/public/bricoman/components/flag/Flag.js +1 -1
  84. package/public/bricoman/components/hero/Hero.js +1 -1
  85. package/public/bricoman/components/layer/Layer.js +1 -1
  86. package/public/bricoman/components/link/Link.js +1 -1
  87. package/public/bricoman/components/link/Link.nested.js +1 -1
  88. package/public/bricoman/components/listbox/Listbox.js +1 -1
  89. package/public/bricoman/components/listbox/Listbox.nested.js +1 -1
  90. package/public/bricoman/components/listbox/Listbox.nested.js.map +1 -1
  91. package/public/bricoman/components/listbox/Listbox.nested.svelte +1 -1
  92. package/public/bricoman/components/loader/Loader.js +1 -1
  93. package/public/bricoman/components/loader/Loader.nested.js +1 -1
  94. package/public/bricoman/components/loader/Loader.nested.js.map +1 -1
  95. package/public/bricoman/components/menu/Menu.js +1 -1
  96. package/public/bricoman/components/modal/Modal.js +1 -1
  97. package/public/bricoman/components/notification/Notification.js +1 -1
  98. package/public/bricoman/components/optionbutton/OptionButton.js +1 -1
  99. package/public/bricoman/components/optionbutton/OptionButton.js.map +1 -1
  100. package/public/bricoman/components/optionbutton/OptionButton.svelte +14 -7
  101. package/public/bricoman/components/overlay/OverlayLoader.js +1 -1
  102. package/public/bricoman/components/pagination/Pagination.js +1 -1
  103. package/public/bricoman/components/passwordinput/PasswordInput.js +1 -1
  104. package/public/bricoman/components/phonenumber/PhoneNumber.js +1 -1
  105. package/public/bricoman/components/phonenumber/PhoneNumber.js.map +1 -1
  106. package/public/bricoman/components/phonenumber/PhoneNumber.svelte +16 -13
  107. package/public/bricoman/components/price/Price.js +1 -1
  108. package/public/bricoman/components/progressbar/ProgressBar.js +1 -1
  109. package/public/bricoman/components/quantityselector/QuantitySelector.js +1 -1
  110. package/public/bricoman/components/radio/Radio.js +1 -1
  111. package/public/bricoman/components/radio/Radio.js.map +1 -1
  112. package/public/bricoman/components/radiogroup/RadioGroup.js +1 -1
  113. package/public/bricoman/components/segmentedcontrol/SegmentedControl.js +1 -1
  114. package/public/bricoman/components/segmentedcontrol/SegmentedControl.js.map +1 -1
  115. package/public/bricoman/components/segmentedcontrol/SegmentedControl.svelte +1 -6
  116. package/public/bricoman/components/sidebar/Sidebar.js +1 -1
  117. package/public/bricoman/components/sidebar/sidebar-feature-group.nested.js +1 -1
  118. package/public/bricoman/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
  119. package/public/bricoman/components/sidebar/sidebar-feature.nested.js +1 -1
  120. package/public/bricoman/components/sidebar/sidebar-section.nested.js +1 -1
  121. package/public/bricoman/components/sidebar/sidebar-segment.nested.js +1 -1
  122. package/public/bricoman/components/sidebar/sidebar-segment.nested.js.map +1 -1
  123. package/public/bricoman/components/sidebar/sidebar-user.nested.js +1 -1
  124. package/public/bricoman/components/sidebar/sidebar-user.nested.js.map +1 -1
  125. package/public/bricoman/components/stepper/Stepper.js +1 -1
  126. package/public/bricoman/components/stepper/Stepper.js.map +1 -1
  127. package/public/bricoman/components/stepperbar/StepperBar.js +1 -1
  128. package/public/bricoman/components/tabs/Tabs.js +1 -1
  129. package/public/bricoman/components/tabs/Tabs.nested.js +1 -1
  130. package/public/bricoman/components/tag/Tag.js +1 -1
  131. package/public/bricoman/components/tag/Tag.js.map +1 -1
  132. package/public/bricoman/components/tag/Tag.nested.js +1 -1
  133. package/public/bricoman/components/tag/Tag.nested.js.map +1 -1
  134. package/public/bricoman/components/tag/Tag.nested.svelte +5 -5
  135. package/public/bricoman/components/tag/Tag.svelte +5 -5
  136. package/public/bricoman/components/textarea/Textarea.js +1 -1
  137. package/public/bricoman/components/textinput/Textinput.js +1 -1
  138. package/public/bricoman/components/textinput/Textinput.nested.js +1 -1
  139. package/public/bricoman/components/textinput/Textinput.nested.js.map +1 -1
  140. package/public/bricoman/components/toggle/Toggle.js +1 -1
  141. package/public/bricoman/components/tooltip/Tooltip.js +1 -1
  142. package/public/bricoman/components/tooltip/Tooltip.js.map +1 -1
  143. package/public/bricoman/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +1 -1
  144. package/public/components/autocomplete/Autocomplete.js +1 -1
  145. package/public/components/button/Button.js +1 -1
  146. package/public/components/button/Button.nested.js +1 -1
  147. package/public/components/button/Button.nested.js.map +1 -1
  148. package/public/components/card/Card.js +1 -1
  149. package/public/components/datatable/DataTable.js +1 -1
  150. package/public/components/datatable/datatable-default-action.nested.js +1 -1
  151. package/public/components/datatable/datatable-default-action.nested.js.map +1 -1
  152. package/public/components/datatable/datatable-default-edtion.nested.js +1 -1
  153. package/public/components/datatable/datatable-default-edtion.nested.js.map +1 -1
  154. package/public/components/datatable/datatable-default-filter-tags.nested.js +1 -1
  155. package/public/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
  156. package/public/components/datatable/datatable-default-footer.nested.js +1 -1
  157. package/public/components/datatable/datatable-default-footer.nested.js.map +1 -1
  158. package/public/components/dropdown/Dropdown.js +1 -1
  159. package/public/components/dropdown/Dropdown.js.map +1 -1
  160. package/public/components/fileuploader/fileuploader-result.nested.js +1 -1
  161. package/public/components/fileuploader/fileuploader-result.nested.js.map +1 -1
  162. package/public/components/layer/Layer.js +1 -1
  163. package/public/components/listbox/Listbox.js +1 -1
  164. package/public/components/listbox/Listbox.nested.js +1 -1
  165. package/public/components/listbox/Listbox.nested.js.map +1 -1
  166. package/public/components/listbox/Listbox.nested.svelte +1 -1
  167. package/public/components/menu/Menu.js +1 -1
  168. package/public/components/menu/Menu.js.map +1 -1
  169. package/public/components/modal/Modal.js +1 -1
  170. package/public/components/optionbutton/OptionButton.js +1 -1
  171. package/public/components/optionbutton/OptionButton.js.map +1 -1
  172. package/public/components/optionbutton/OptionButton.svelte +14 -7
  173. package/public/components/pagination/Pagination.js +1 -1
  174. package/public/components/passwordinput/PasswordInput.js +1 -1
  175. package/public/components/phonenumber/PhoneNumber.js +1 -1
  176. package/public/components/phonenumber/PhoneNumber.js.map +1 -1
  177. package/public/components/phonenumber/PhoneNumber.svelte +16 -13
  178. package/public/components/quantityselector/QuantitySelector.js +1 -1
  179. package/public/components/segmentedcontrol/SegmentedControl.js +1 -1
  180. package/public/components/segmentedcontrol/SegmentedControl.js.map +1 -1
  181. package/public/components/segmentedcontrol/SegmentedControl.svelte +1 -6
  182. package/public/components/stepper/Stepper.js +1 -1
  183. package/public/components/stepper/Stepper.js.map +1 -1
  184. package/public/components/tag/Tag.js +1 -1
  185. package/public/components/tag/Tag.js.map +1 -1
  186. package/public/components/tag/Tag.nested.js +1 -1
  187. package/public/components/tag/Tag.nested.js.map +1 -1
  188. package/public/components/tag/Tag.nested.svelte +5 -5
  189. package/public/components/tag/Tag.svelte +5 -5
  190. package/public/components/textarea/Textarea.js +1 -1
  191. package/public/components/textinput/Textinput.js +1 -1
  192. package/public/components/textinput/Textinput.nested.js +1 -1
  193. package/public/components/textinput/Textinput.nested.js.map +1 -1
  194. package/public/components/tooltip/Tooltip.js +1 -1
  195. package/public/components/tooltip/Tooltip.js.map +1 -1
  196. package/public/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +1 -1
@@ -1,2 +1,2 @@
1
- import{S as e,i as t,a as i,b as n,f as r,s as o,c as m,e as s,d as l,t as a,n as h,j as p,k as c,h as d,l as u,M as x,m as f,p as g,o as b,q as z,O as w,r as v,v as k,x as $}from"../../index-48da6c1f.js";import{c as y}from"../../EventForward-78ecc73b.js";function _(e){let t,i,r,o,v,k,$,y,_,C,M=E(e[0])+"",j=[{type:r=q(e[0])},{class:"mc-text-input mc-password-input__control"},{"aria-invalid":e[4]},{spellcheck:"false"},{id:e[1]},{placeholder:e[2]},{disabled:e[5]},{required:e[6]},e[7]],A={};for(let e=0;e<j.length;e+=1)A=m(A,j[e]);let B=[{class:"mc-password-input"},e[10]],L={};for(let e=0;e<B.length;e+=1)L=m(L,B[e]);return{c(){t=s("div"),i=s("input"),o=l(),v=s("button"),k=a(M),this.c=h,p(i,A),c(i,"is-valid",e[3]),c(i,"is-invalid",e[4]),d(v,"type","button"),d(v,"class","mc-password-input__button"),d(v,"role","switch"),d(v,"aria-checked",$=e[0]?"true":"false"),d(v,"aria-pressed",y=e[0]?"true":"false"),p(t,L)},m(r,m){n(r,t,m),u(t,i),i.autofocus&&i.focus(),u(t,o),u(t,v),u(v,k),_||(C=[x(e[8].call(null,i)),f(v,"click",e[9])],_=!0)},p(e,[n]){p(i,A=g(j,[1&n&&r!==(r=q(e[0]))&&{type:r},{class:"mc-text-input mc-password-input__control"},16&n&&{"aria-invalid":e[4]},{spellcheck:"false"},2&n&&{id:e[1]},4&n&&{placeholder:e[2]},32&n&&{disabled:e[5]},64&n&&{required:e[6]},128&n&&e[7]])),c(i,"is-valid",e[3]),c(i,"is-invalid",e[4]),1&n&&M!==(M=E(e[0])+"")&&b(k,M),1&n&&$!==($=e[0]?"true":"false")&&d(v,"aria-checked",$),1&n&&y!==(y=e[0]?"true":"false")&&d(v,"aria-pressed",y),p(t,L=g(B,[{class:"mc-password-input"},1024&n&&e[10]]))},i:h,o:h,d(e){e&&z(t),_=!1,w(C)}}}function q(e){return e?"text":"password"}function E(e){return e?"Hide":"Show"}function C(e,t,i){let n;const r=["id","placeholder","isvalid","isinvalid","disabled","required","isvisible"];let o=v(t,r),{id:s}=t,{placeholder:l}=t,{isvalid:a}=t,{isinvalid:h}=t,{disabled:p=!1}=t,{required:c=!1}=t,{isvisible:d=!1}=t;const u=y(k());return e.$$set=e=>{t=m(m({},t),$(e)),i(10,o=v(t,r)),"id"in e&&i(1,s=e.id),"placeholder"in e&&i(2,l=e.placeholder),"isvalid"in e&&i(3,a=e.isvalid),"isinvalid"in e&&i(4,h=e.isinvalid),"disabled"in e&&i(5,p=e.disabled),"required"in e&&i(6,c=e.required),"isvisible"in e&&i(0,d=e.isvisible)},e.$$.update=()=>{i(7,n=Object.assign({},o)),128&e.$$.dirty&&delete n.class},[d,s,l,a,h,p,c,n,u,function(){i(0,d=!d)},o]}class M extends e{constructor(e){super();const m=document.createElement("style");m.textContent=".mc-text-input{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;margin:0;-webkit-box-shadow:none;box-shadow:none;border:none;font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;display:block;width:100%;position:relative;border:1px solid #808080;color:#333333;background-color:#ffffff;border-radius:4px}.mc-text-input[type=number]::-webkit-inner-spin-button,.mc-text-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.mc-text-input[type=number]{-moz-appearance:textfield}.mc-text-input[type=search]::-webkit-search-decoration:hover,.mc-text-input[type=search]::-webkit-search-cancel-button:hover{cursor:pointer}.mc-text-input::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input::placeholder{font-size:1rem;line-height:1.375}.mc-text-input::-webkit-input-placeholder{margin:0;color:#808080;opacity:1}.mc-text-input::-moz-placeholder{margin:0;color:#808080;opacity:1}.mc-text-input:-ms-input-placeholder{margin:0;color:#808080;opacity:1}.mc-text-input::-ms-input-placeholder{margin:0;color:#808080;opacity:1}.mc-text-input::placeholder{margin:0;color:#808080;opacity:1}.mc-text-input.is-valid,.mc-text-input.is-invalid{background-repeat:no-repeat;background-size:1.5rem 1.5rem;background-position:right 0.4375rem center;padding-right:2.5rem}.mc-text-input.is-valid{border-color:#46a610;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%2346a610' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-text-input.is-valid:hover,.mc-text-input.is-valid.is-hover{border-color:#035010}.mc-text-input.is-invalid{border-color:#c61112;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-text-input.is-invalid:hover,.mc-text-input.is-invalid.is-hover{border-color:#530000}.mc-text-input.is-hover,.mc-text-input:hover{border-color:#191919}.mc-text-input.is-focus,.mc-text-input:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-text-input:disabled{background:#e6e6e6;border-color:#e6e6e6;color:#808080;cursor:not-allowed}.mc-text-input--s{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m::placeholder{font-size:1rem;line-height:1.375}@media screen and (min-width: 680px){.mc-text-input--s\\@from-m{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s\\@from-m::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-m::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-m:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-m::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-m::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m\\@from-m{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m\\@from-m::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-m::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-m:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-m::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-m::placeholder{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1024px){.mc-text-input--s\\@from-l{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s\\@from-l::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-l::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-l:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-l::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-l::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m\\@from-l{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m\\@from-l::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-l::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-l:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-l::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-l::placeholder{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1280px){.mc-text-input--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s\\@from-xl::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xl::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xl:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xl::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xl::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m\\@from-xl{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m\\@from-xl::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xl::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xl:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xl::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xl::placeholder{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1920px){.mc-text-input--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s\\@from-xxl::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xxl::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xxl:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xxl::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xxl::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m\\@from-xxl{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m\\@from-xxl::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xxl::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xxl:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xxl::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xxl::placeholder{font-size:1rem;line-height:1.375}}.mc-password-input{display:-webkit-box;display:-ms-flexbox;display:flex}.mc-password-input__control.mc-text-input{border-right:none;border-bottom-right-radius:0;border-top-right-radius:0}.mc-password-input__button{margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;border:none;cursor:pointer;padding:0;font-family:\"LeroyMerlin\", sans-serif;font-weight:600;background-color:#ffffff;border:1px solid #808080;border-bottom-right-radius:4px;border-top-right-radius:4px;color:#333333;display:block;position:relative;height:0;padding:0.875rem 0.9375rem;min-height:3rem}.mc-password-input__button:active,.mc-password-input__button:focus,.mc-password-input__button:hover{background-color:#e6e6e6}",this.shadowRoot.appendChild(m),t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},C,_,o,{id:1,placeholder:2,isvalid:3,isinvalid:4,disabled:5,required:6,isvisible:0},null),e&&(e.target&&n(e.target,this,e.anchor),e.props&&(this.$set(e.props),r()))}static get observedAttributes(){return["id","placeholder","isvalid","isinvalid","disabled","required","isvisible"]}get id(){return this.$$.ctx[1]}set id(e){this.$$set({id:e}),r()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),r()}get isvalid(){return this.$$.ctx[3]}set isvalid(e){this.$$set({isvalid:e}),r()}get isinvalid(){return this.$$.ctx[4]}set isinvalid(e){this.$$set({isinvalid:e}),r()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),r()}get required(){return this.$$.ctx[6]}set required(e){this.$$set({required:e}),r()}get isvisible(){return this.$$.ctx[0]}set isvisible(e){this.$$set({isvisible:e}),r()}}export{M as default};
1
+ import{S as e,i as t,a as i,b as n,f as r,s as o,c as s,e as m,d as l,t as a,n as h,j as p,k as c,h as d,l as u,M as f,m as x,p as g,o as b,q as w,O as z,r as v,v as k,x as $}from"../../index-48da6c1f.js";import{c as y}from"../../EventForward-78ecc73b.js";function _(e){let t,i,r,o,v,k,$,y,_,C,M=E(e[0])+"",j=[{type:r=q(e[0])},{class:"mc-text-input mc-password-input__control"},{"aria-invalid":e[4]},{spellcheck:"false"},{id:e[1]},{placeholder:e[2]},{disabled:e[5]},{required:e[6]},e[7]],A={};for(let e=0;e<j.length;e+=1)A=s(A,j[e]);let B=[{class:"mc-password-input"},e[10]],L={};for(let e=0;e<B.length;e+=1)L=s(L,B[e]);return{c(){t=m("div"),i=m("input"),o=l(),v=m("button"),k=a(M),this.c=h,p(i,A),c(i,"is-valid",e[3]),c(i,"is-invalid",e[4]),d(v,"type","button"),d(v,"class","mc-password-input__button"),d(v,"role","switch"),d(v,"aria-checked",$=e[0]?"true":"false"),d(v,"aria-pressed",y=e[0]?"true":"false"),p(t,L)},m(r,s){n(r,t,s),u(t,i),i.autofocus&&i.focus(),u(t,o),u(t,v),u(v,k),_||(C=[f(e[8].call(null,i)),x(v,"click",e[9])],_=!0)},p(e,[n]){p(i,A=g(j,[1&n&&r!==(r=q(e[0]))&&{type:r},{class:"mc-text-input mc-password-input__control"},16&n&&{"aria-invalid":e[4]},{spellcheck:"false"},2&n&&{id:e[1]},4&n&&{placeholder:e[2]},32&n&&{disabled:e[5]},64&n&&{required:e[6]},128&n&&e[7]])),c(i,"is-valid",e[3]),c(i,"is-invalid",e[4]),1&n&&M!==(M=E(e[0])+"")&&b(k,M),1&n&&$!==($=e[0]?"true":"false")&&d(v,"aria-checked",$),1&n&&y!==(y=e[0]?"true":"false")&&d(v,"aria-pressed",y),p(t,L=g(B,[{class:"mc-password-input"},1024&n&&e[10]]))},i:h,o:h,d(e){e&&w(t),_=!1,z(C)}}}function q(e){return e?"text":"password"}function E(e){return e?"Hide":"Show"}function C(e,t,i){let n;const r=["id","placeholder","isvalid","isinvalid","disabled","required","isvisible"];let o=v(t,r),{id:m}=t,{placeholder:l}=t,{isvalid:a}=t,{isinvalid:h}=t,{disabled:p=!1}=t,{required:c=!1}=t,{isvisible:d=!1}=t;const u=y(k());return e.$$set=e=>{t=s(s({},t),$(e)),i(10,o=v(t,r)),"id"in e&&i(1,m=e.id),"placeholder"in e&&i(2,l=e.placeholder),"isvalid"in e&&i(3,a=e.isvalid),"isinvalid"in e&&i(4,h=e.isinvalid),"disabled"in e&&i(5,p=e.disabled),"required"in e&&i(6,c=e.required),"isvisible"in e&&i(0,d=e.isvisible)},e.$$.update=()=>{i(7,n=Object.assign({},o)),128&e.$$.dirty&&delete n.class},[d,m,l,a,h,p,c,n,u,function(){i(0,d=!d)},o]}class M extends e{constructor(e){super();const s=document.createElement("style");s.textContent=".mc-text-input{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;margin:0;-webkit-box-shadow:none;box-shadow:none;border:none;font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;display:block;width:100%;position:relative;border:1px solid #808080;color:#333333;background-color:#ffffff;border-radius:4px}.mc-text-input[type=number]::-webkit-inner-spin-button,.mc-text-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.mc-text-input[type=number]{-moz-appearance:textfield}.mc-text-input[type=search]::-webkit-search-decoration:hover,.mc-text-input[type=search]::-webkit-search-cancel-button:hover{cursor:pointer}.mc-text-input::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input::placeholder{font-size:1rem;line-height:1.375}.mc-text-input::-webkit-input-placeholder{margin:0;color:#808080;opacity:1}.mc-text-input::-moz-placeholder{margin:0;color:#808080;opacity:1}.mc-text-input:-ms-input-placeholder{margin:0;color:#808080;opacity:1}.mc-text-input::-ms-input-placeholder{margin:0;color:#808080;opacity:1}.mc-text-input::placeholder{margin:0;color:#808080;opacity:1}.mc-text-input.is-valid,.mc-text-input.is-invalid{background-repeat:no-repeat;background-size:1.5rem 1.5rem;background-position:right 0.4375rem center;padding-right:2.5rem}.mc-text-input.is-valid{border-color:#46a610;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%2346a610' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-text-input.is-valid:hover,.mc-text-input.is-valid.is-hover{border-color:#035010}.mc-text-input.is-invalid{border-color:#c61112;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-text-input.is-invalid:hover,.mc-text-input.is-invalid.is-hover{border-color:#530000}.mc-text-input.is-hover,.mc-text-input:hover{border-color:#191919}.mc-text-input.is-focus,.mc-text-input:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-text-input:disabled{background:#e6e6e6;border-color:#e6e6e6;color:#808080;cursor:not-allowed}.mc-text-input--s{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m::placeholder{font-size:1rem;line-height:1.375}@media screen and (min-width: 680px){.mc-text-input--s\\@from-m{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s\\@from-m::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-m::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-m:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-m::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-m::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m\\@from-m{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m\\@from-m::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-m::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-m:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-m::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-m::placeholder{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1024px){.mc-text-input--s\\@from-l{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s\\@from-l::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-l::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-l:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-l::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-l::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m\\@from-l{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m\\@from-l::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-l::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-l:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-l::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-l::placeholder{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1280px){.mc-text-input--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s\\@from-xl::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xl::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xl:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xl::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xl::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m\\@from-xl{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m\\@from-xl::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xl::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xl:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xl::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xl::placeholder{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1920px){.mc-text-input--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857;min-height:2rem;padding:0.375rem 0.4375rem}.mc-text-input--s\\@from-xxl::-webkit-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xxl::-moz-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xxl:-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xxl::-ms-input-placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--s\\@from-xxl::placeholder{font-size:0.875rem;line-height:1.2857142857}.mc-text-input--m\\@from-xxl{font-size:1rem;line-height:1.375;min-height:3rem;padding:0.75rem 0.6875rem}.mc-text-input--m\\@from-xxl::-webkit-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xxl::-moz-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xxl:-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xxl::-ms-input-placeholder{font-size:1rem;line-height:1.375}.mc-text-input--m\\@from-xxl::placeholder{font-size:1rem;line-height:1.375}}.mc-password-input{display:-webkit-box;display:-ms-flexbox;display:flex}.mc-password-input__control.mc-text-input{border-right:none;border-bottom-right-radius:0;border-top-right-radius:0}.mc-password-input__button{margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;border:none;cursor:pointer;padding:0;font-family:\"LeroyMerlin\", sans-serif;font-weight:600;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;background-color:#ffffff;border:1px solid #808080;border-bottom-right-radius:4px;border-top-right-radius:4px;color:#333333;display:block;position:relative;height:0;padding:0.875rem 0.9375rem;min-height:3rem}.mc-password-input__button:active,.mc-password-input__button:focus,.mc-password-input__button:hover{background-color:#e6e6e6}.mc-password-input__button:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}",this.shadowRoot.appendChild(s),t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},C,_,o,{id:1,placeholder:2,isvalid:3,isinvalid:4,disabled:5,required:6,isvisible:0},null),e&&(e.target&&n(e.target,this,e.anchor),e.props&&(this.$set(e.props),r()))}static get observedAttributes(){return["id","placeholder","isvalid","isinvalid","disabled","required","isvisible"]}get id(){return this.$$.ctx[1]}set id(e){this.$$set({id:e}),r()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),r()}get isvalid(){return this.$$.ctx[3]}set isvalid(e){this.$$set({isvalid:e}),r()}get isinvalid(){return this.$$.ctx[4]}set isinvalid(e){this.$$set({isinvalid:e}),r()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),r()}get required(){return this.$$.ctx[6]}set required(e){this.$$set({required:e}),r()}get isvisible(){return this.$$.ctx[0]}set isvisible(e){this.$$set({isvisible:e}),r()}}export{M as default};
2
2
  //# sourceMappingURL=PasswordInput.js.map