@eui/eds-wc 22.0.0-alpha.5 → 22.0.0-alpha.50

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 (385) hide show
  1. package/eds-accordion/eds-wc-accordion.d.ts.map +1 -1
  2. package/eds-accordion/eds-wc-accordion.js +6 -3
  3. package/eds-accordion/eds-wc-accordion.js.map +1 -1
  4. package/eds-alert/eds-wc-alert.d.ts +59 -21
  5. package/eds-alert/eds-wc-alert.d.ts.map +1 -1
  6. package/eds-alert/eds-wc-alert.js +211 -85
  7. package/eds-alert/eds-wc-alert.js.map +1 -1
  8. package/eds-alert/index.d.ts +1 -0
  9. package/eds-alert/index.d.ts.map +1 -1
  10. package/eds-autocomplete/eds-wc-autocomplete.d.ts.map +1 -1
  11. package/eds-autocomplete/eds-wc-autocomplete.js +3 -0
  12. package/eds-autocomplete/eds-wc-autocomplete.js.map +1 -1
  13. package/eds-avatar/eds-wc-avatar.d.ts.map +1 -1
  14. package/eds-avatar/eds-wc-avatar.js +19 -18
  15. package/eds-avatar/eds-wc-avatar.js.map +1 -1
  16. package/eds-badge/eds-wc-badge.d.ts +63 -23
  17. package/eds-badge/eds-wc-badge.d.ts.map +1 -1
  18. package/eds-badge/eds-wc-badge.js +228 -101
  19. package/eds-badge/eds-wc-badge.js.map +1 -1
  20. package/eds-badge/index.d.ts +1 -0
  21. package/eds-badge/index.d.ts.map +1 -1
  22. package/eds-blockquote/eds-wc-blockquote.d.ts.map +1 -1
  23. package/eds-blockquote/eds-wc-blockquote.js +2 -1
  24. package/eds-blockquote/eds-wc-blockquote.js.map +1 -1
  25. package/eds-breadcrumb/eds-wc-breadcrumb.d.ts +20 -1
  26. package/eds-breadcrumb/eds-wc-breadcrumb.d.ts.map +1 -1
  27. package/eds-breadcrumb/eds-wc-breadcrumb.js +68 -22
  28. package/eds-breadcrumb/eds-wc-breadcrumb.js.map +1 -1
  29. package/eds-breadcrumb/index.d.ts +2 -1
  30. package/eds-breadcrumb/index.d.ts.map +1 -1
  31. package/eds-breadcrumb/index.js +1 -1
  32. package/eds-breadcrumb/index.js.map +1 -1
  33. package/eds-button/eds-wc-button.d.ts +41 -17
  34. package/eds-button/eds-wc-button.d.ts.map +1 -1
  35. package/eds-button/eds-wc-button.js +178 -150
  36. package/eds-button/eds-wc-button.js.map +1 -1
  37. package/eds-button/index.d.ts +2 -2
  38. package/eds-button/index.d.ts.map +1 -1
  39. package/eds-button/index.js +1 -1
  40. package/eds-button/index.js.map +1 -1
  41. package/eds-calendar/eds-wc-calendar.d.ts +274 -0
  42. package/eds-calendar/eds-wc-calendar.d.ts.map +1 -0
  43. package/eds-calendar/eds-wc-calendar.js +1237 -0
  44. package/eds-calendar/eds-wc-calendar.js.map +1 -0
  45. package/eds-calendar/index.d.ts +3 -0
  46. package/eds-calendar/index.d.ts.map +1 -0
  47. package/eds-calendar/index.js +2 -0
  48. package/eds-calendar/index.js.map +1 -0
  49. package/eds-card/eds-wc-card.d.ts.map +1 -1
  50. package/eds-card/eds-wc-card.js +2 -1
  51. package/eds-card/eds-wc-card.js.map +1 -1
  52. package/eds-chat-bubble/eds-wc-chat-bubble.d.ts +83 -0
  53. package/eds-chat-bubble/eds-wc-chat-bubble.d.ts.map +1 -0
  54. package/eds-chat-bubble/eds-wc-chat-bubble.js +238 -0
  55. package/eds-chat-bubble/eds-wc-chat-bubble.js.map +1 -0
  56. package/eds-chat-bubble/index.d.ts +3 -0
  57. package/eds-chat-bubble/index.d.ts.map +1 -0
  58. package/eds-chat-bubble/index.js +2 -0
  59. package/eds-chat-bubble/index.js.map +1 -0
  60. package/{eds-input-checkbox/eds-wc-input-checkbox.d.ts → eds-checkbox/eds-wc-checkbox.d.ts} +8 -8
  61. package/eds-checkbox/eds-wc-checkbox.d.ts.map +1 -0
  62. package/{eds-input-checkbox/eds-wc-input-checkbox.js → eds-checkbox/eds-wc-checkbox.js} +19 -19
  63. package/eds-checkbox/eds-wc-checkbox.js.map +1 -0
  64. package/eds-checkbox/index.d.ts +2 -0
  65. package/eds-checkbox/index.d.ts.map +1 -0
  66. package/eds-checkbox/index.js +2 -0
  67. package/eds-checkbox/index.js.map +1 -0
  68. package/eds-chip/eds-wc-chip.d.ts +107 -18
  69. package/eds-chip/eds-wc-chip.d.ts.map +1 -1
  70. package/eds-chip/eds-wc-chip.js +418 -114
  71. package/eds-chip/eds-wc-chip.js.map +1 -1
  72. package/eds-chip/index.d.ts +2 -1
  73. package/eds-chip/index.d.ts.map +1 -1
  74. package/eds-chip/index.js +1 -1
  75. package/eds-chip/index.js.map +1 -1
  76. package/eds-content-item/eds-wc-content-item.d.ts +110 -0
  77. package/eds-content-item/eds-wc-content-item.d.ts.map +1 -0
  78. package/eds-content-item/eds-wc-content-item.js +420 -0
  79. package/eds-content-item/eds-wc-content-item.js.map +1 -0
  80. package/eds-content-item/index.d.ts +3 -0
  81. package/eds-content-item/index.d.ts.map +1 -0
  82. package/eds-content-item/index.js +2 -0
  83. package/eds-content-item/index.js.map +1 -0
  84. package/eds-date-block/eds-wc-date-block.d.ts.map +1 -1
  85. package/eds-date-block/eds-wc-date-block.js +4 -2
  86. package/eds-date-block/eds-wc-date-block.js.map +1 -1
  87. package/eds-datepicker/eds-wc-datepicker.js +1 -1
  88. package/eds-dialog/eds-wc-dialog.js +1 -1
  89. package/eds-discussion-thread/eds-wc-discussion-thread.js +2 -2
  90. package/eds-divider/eds-wc-divider.d.ts +56 -0
  91. package/eds-divider/eds-wc-divider.d.ts.map +1 -0
  92. package/eds-divider/eds-wc-divider.js +109 -0
  93. package/eds-divider/eds-wc-divider.js.map +1 -0
  94. package/eds-divider/index.d.ts +3 -0
  95. package/eds-divider/index.d.ts.map +1 -0
  96. package/eds-divider/index.js +2 -0
  97. package/eds-divider/index.js.map +1 -0
  98. package/eds-empty-state/eds-wc-empty-state.d.ts.map +1 -1
  99. package/eds-empty-state/eds-wc-empty-state.js +2 -1
  100. package/eds-empty-state/eds-wc-empty-state.js.map +1 -1
  101. package/eds-fab-button/eds-wc-fab-button.js +2 -2
  102. package/eds-fieldset/eds-wc-fieldset.d.ts.map +1 -1
  103. package/eds-fieldset/eds-wc-fieldset.js +2 -1
  104. package/eds-fieldset/eds-wc-fieldset.js.map +1 -1
  105. package/eds-file-upload/eds-wc-file-upload.js +1 -1
  106. package/eds-icon/eds-wc-icon-image.d.ts +43 -0
  107. package/eds-icon/eds-wc-icon-image.d.ts.map +1 -0
  108. package/eds-icon/eds-wc-icon-image.js +107 -0
  109. package/eds-icon/eds-wc-icon-image.js.map +1 -0
  110. package/eds-icon/eds-wc-icon.d.ts +44 -28
  111. package/eds-icon/eds-wc-icon.d.ts.map +1 -1
  112. package/eds-icon/eds-wc-icon.js +129 -85
  113. package/eds-icon/eds-wc-icon.js.map +1 -1
  114. package/eds-icon/index.d.ts +3 -1
  115. package/eds-icon/index.d.ts.map +1 -1
  116. package/eds-icon/index.js +2 -1
  117. package/eds-icon/index.js.map +1 -1
  118. package/eds-icon-button/eds-wc-icon-button.d.ts +53 -18
  119. package/eds-icon-button/eds-wc-icon-button.d.ts.map +1 -1
  120. package/eds-icon-button/eds-wc-icon-button.js +165 -74
  121. package/eds-icon-button/eds-wc-icon-button.js.map +1 -1
  122. package/eds-icon-button/index.d.ts +2 -1
  123. package/eds-icon-button/index.d.ts.map +1 -1
  124. package/eds-icon-button/index.js +1 -1
  125. package/eds-icon-button/index.js.map +1 -1
  126. package/eds-icon-state/eds-wc-icon-state.d.ts +56 -0
  127. package/eds-icon-state/eds-wc-icon-state.d.ts.map +1 -0
  128. package/eds-icon-state/eds-wc-icon-state.js +93 -0
  129. package/eds-icon-state/eds-wc-icon-state.js.map +1 -0
  130. package/eds-icon-state/index.d.ts +3 -0
  131. package/eds-icon-state/index.d.ts.map +1 -0
  132. package/eds-icon-state/index.js +2 -0
  133. package/eds-icon-state/index.js.map +1 -0
  134. package/eds-input-addon/eds-wc-input-addon.d.ts +55 -0
  135. package/eds-input-addon/eds-wc-input-addon.d.ts.map +1 -0
  136. package/eds-input-addon/eds-wc-input-addon.js +177 -0
  137. package/eds-input-addon/eds-wc-input-addon.js.map +1 -0
  138. package/eds-input-addon/index.d.ts +3 -0
  139. package/eds-input-addon/index.d.ts.map +1 -0
  140. package/eds-input-addon/index.js +2 -0
  141. package/eds-input-addon/index.js.map +1 -0
  142. package/eds-input-button/eds-wc-input-button.d.ts +86 -8
  143. package/eds-input-button/eds-wc-input-button.d.ts.map +1 -1
  144. package/eds-input-button/eds-wc-input-button.js +275 -13
  145. package/eds-input-button/eds-wc-input-button.js.map +1 -1
  146. package/eds-input-button/index.d.ts +2 -1
  147. package/eds-input-button/index.d.ts.map +1 -1
  148. package/eds-input-button/index.js +1 -1
  149. package/eds-input-button/index.js.map +1 -1
  150. package/eds-input-chat/eds-wc-input-chat.d.ts +97 -0
  151. package/eds-input-chat/eds-wc-input-chat.d.ts.map +1 -0
  152. package/eds-input-chat/eds-wc-input-chat.js +363 -0
  153. package/eds-input-chat/eds-wc-input-chat.js.map +1 -0
  154. package/eds-input-chat/index.d.ts +3 -0
  155. package/eds-input-chat/index.d.ts.map +1 -0
  156. package/eds-input-chat/index.js +2 -0
  157. package/eds-input-chat/index.js.map +1 -0
  158. package/eds-input-number/eds-wc-input-number.js +1 -1
  159. package/eds-input-password/eds-wc-input-password.d.ts +115 -0
  160. package/eds-input-password/eds-wc-input-password.d.ts.map +1 -0
  161. package/eds-input-password/eds-wc-input-password.js +295 -0
  162. package/eds-input-password/eds-wc-input-password.js.map +1 -0
  163. package/eds-input-password/index.d.ts +2 -0
  164. package/eds-input-password/index.d.ts.map +1 -0
  165. package/eds-input-password/index.js +2 -0
  166. package/eds-input-password/index.js.map +1 -0
  167. package/eds-input-text/eds-wc-input-text.d.ts +4 -0
  168. package/eds-input-text/eds-wc-input-text.d.ts.map +1 -1
  169. package/eds-input-text/eds-wc-input-text.js +37 -5
  170. package/eds-input-text/eds-wc-input-text.js.map +1 -1
  171. package/eds-label/eds-wc-label.d.ts +10 -0
  172. package/eds-label/eds-wc-label.d.ts.map +1 -1
  173. package/eds-label/eds-wc-label.js +29 -1
  174. package/eds-label/eds-wc-label.js.map +1 -1
  175. package/eds-language-selector/eds-wc-language-selector.d.ts +108 -0
  176. package/eds-language-selector/eds-wc-language-selector.d.ts.map +1 -0
  177. package/eds-language-selector/eds-wc-language-selector.js +655 -0
  178. package/eds-language-selector/eds-wc-language-selector.js.map +1 -0
  179. package/eds-language-selector/index.d.ts +3 -0
  180. package/eds-language-selector/index.d.ts.map +1 -0
  181. package/eds-language-selector/index.js +2 -0
  182. package/eds-language-selector/index.js.map +1 -0
  183. package/eds-loading-indicator/eds-wc-loading-indicator.d.ts +61 -0
  184. package/eds-loading-indicator/eds-wc-loading-indicator.d.ts.map +1 -0
  185. package/eds-loading-indicator/eds-wc-loading-indicator.js +106 -0
  186. package/eds-loading-indicator/eds-wc-loading-indicator.js.map +1 -0
  187. package/eds-loading-indicator/index.d.ts +3 -0
  188. package/eds-loading-indicator/index.d.ts.map +1 -0
  189. package/eds-loading-indicator/index.js +2 -0
  190. package/eds-loading-indicator/index.js.map +1 -0
  191. package/eds-message-box/eds-wc-message-box.js +1 -1
  192. package/eds-multiselect/eds-wc-multiselect.d.ts +118 -0
  193. package/eds-multiselect/eds-wc-multiselect.d.ts.map +1 -0
  194. package/eds-multiselect/eds-wc-multiselect.js +618 -0
  195. package/eds-multiselect/eds-wc-multiselect.js.map +1 -0
  196. package/eds-multiselect/index.d.ts +3 -0
  197. package/eds-multiselect/index.d.ts.map +1 -0
  198. package/eds-multiselect/index.js +2 -0
  199. package/eds-multiselect/index.js.map +1 -0
  200. package/eds-overlay/eds-wc-overlay-content.d.ts +17 -0
  201. package/eds-overlay/eds-wc-overlay-content.d.ts.map +1 -0
  202. package/eds-overlay/eds-wc-overlay-content.js +34 -0
  203. package/eds-overlay/eds-wc-overlay-content.js.map +1 -0
  204. package/eds-overlay/eds-wc-overlay-footer.d.ts +17 -0
  205. package/eds-overlay/eds-wc-overlay-footer.d.ts.map +1 -0
  206. package/eds-overlay/eds-wc-overlay-footer.js +35 -0
  207. package/eds-overlay/eds-wc-overlay-footer.js.map +1 -0
  208. package/eds-overlay/eds-wc-overlay-header-action-items.d.ts +18 -0
  209. package/eds-overlay/eds-wc-overlay-header-action-items.d.ts.map +1 -0
  210. package/eds-overlay/eds-wc-overlay-header-action-items.js +34 -0
  211. package/eds-overlay/eds-wc-overlay-header-action-items.js.map +1 -0
  212. package/eds-overlay/eds-wc-overlay-header-label.d.ts +17 -0
  213. package/eds-overlay/eds-wc-overlay-header-label.d.ts.map +1 -0
  214. package/eds-overlay/eds-wc-overlay-header-label.js +32 -0
  215. package/eds-overlay/eds-wc-overlay-header-label.js.map +1 -0
  216. package/eds-overlay/eds-wc-overlay-header-sublabel.d.ts +17 -0
  217. package/eds-overlay/eds-wc-overlay-header-sublabel.d.ts.map +1 -0
  218. package/eds-overlay/eds-wc-overlay-header-sublabel.js +32 -0
  219. package/eds-overlay/eds-wc-overlay-header-sublabel.js.map +1 -0
  220. package/eds-overlay/eds-wc-overlay-header.d.ts +25 -0
  221. package/eds-overlay/eds-wc-overlay-header.d.ts.map +1 -0
  222. package/eds-overlay/eds-wc-overlay-header.js +105 -0
  223. package/eds-overlay/eds-wc-overlay-header.js.map +1 -0
  224. package/eds-overlay/eds-wc-overlay.d.ts +97 -0
  225. package/eds-overlay/eds-wc-overlay.d.ts.map +1 -0
  226. package/eds-overlay/eds-wc-overlay.js +352 -0
  227. package/eds-overlay/eds-wc-overlay.js.map +1 -0
  228. package/eds-overlay/index.d.ts +9 -0
  229. package/eds-overlay/index.d.ts.map +1 -0
  230. package/eds-overlay/index.js +8 -0
  231. package/eds-overlay/index.js.map +1 -0
  232. package/{eds-paginator/eds-wc-paginator.d.ts → eds-pagination/eds-wc-pagination.d.ts} +6 -6
  233. package/eds-pagination/eds-wc-pagination.d.ts.map +1 -0
  234. package/{eds-paginator/eds-wc-paginator.js → eds-pagination/eds-wc-pagination.js} +21 -21
  235. package/eds-pagination/eds-wc-pagination.js.map +1 -0
  236. package/eds-pagination/index.d.ts +3 -0
  237. package/eds-pagination/index.d.ts.map +1 -0
  238. package/eds-pagination/index.js +2 -0
  239. package/eds-pagination/index.js.map +1 -0
  240. package/eds-popover/eds-wc-popover.js +1 -1
  241. package/eds-progress-bar/eds-wc-progress-bar.d.ts.map +1 -1
  242. package/eds-progress-bar/eds-wc-progress-bar.js +2 -1
  243. package/eds-progress-bar/eds-wc-progress-bar.js.map +1 -1
  244. package/eds-progress-circle/eds-wc-progress-circle.d.ts.map +1 -1
  245. package/eds-progress-circle/eds-wc-progress-circle.js +4 -3
  246. package/eds-progress-circle/eds-wc-progress-circle.js.map +1 -1
  247. package/{eds-input-radio/eds-wc-input-radio.d.ts → eds-radio/eds-wc-radio.d.ts} +6 -6
  248. package/eds-radio/eds-wc-radio.d.ts.map +1 -0
  249. package/{eds-input-radio/eds-wc-input-radio.js → eds-radio/eds-wc-radio.js} +19 -19
  250. package/eds-radio/eds-wc-radio.js.map +1 -0
  251. package/eds-radio/index.d.ts +2 -0
  252. package/eds-radio/index.d.ts.map +1 -0
  253. package/eds-radio/index.js +2 -0
  254. package/eds-radio/index.js.map +1 -0
  255. package/eds-segmented-control/eds-wc-segmented-control.d.ts +67 -0
  256. package/eds-segmented-control/eds-wc-segmented-control.d.ts.map +1 -0
  257. package/{eds-button-group/eds-wc-button-group.js → eds-segmented-control/eds-wc-segmented-control.js} +40 -35
  258. package/eds-segmented-control/eds-wc-segmented-control.js.map +1 -0
  259. package/eds-segmented-control/index.d.ts +3 -0
  260. package/eds-segmented-control/index.d.ts.map +1 -0
  261. package/eds-segmented-control/index.js +2 -0
  262. package/eds-segmented-control/index.js.map +1 -0
  263. package/eds-select/eds-wc-select.d.ts +11 -0
  264. package/eds-select/eds-wc-select.d.ts.map +1 -1
  265. package/eds-select/eds-wc-select.js +42 -4
  266. package/eds-select/eds-wc-select.js.map +1 -1
  267. package/eds-side-sheet/eds-wc-side-sheet-content.d.ts +17 -0
  268. package/eds-side-sheet/eds-wc-side-sheet-content.d.ts.map +1 -0
  269. package/eds-side-sheet/eds-wc-side-sheet-content.js +34 -0
  270. package/eds-side-sheet/eds-wc-side-sheet-content.js.map +1 -0
  271. package/eds-side-sheet/eds-wc-side-sheet-footer.d.ts +17 -0
  272. package/eds-side-sheet/eds-wc-side-sheet-footer.d.ts.map +1 -0
  273. package/eds-side-sheet/eds-wc-side-sheet-footer.js +35 -0
  274. package/eds-side-sheet/eds-wc-side-sheet-footer.js.map +1 -0
  275. package/eds-side-sheet/eds-wc-side-sheet-header-action-items.d.ts +18 -0
  276. package/eds-side-sheet/eds-wc-side-sheet-header-action-items.d.ts.map +1 -0
  277. package/eds-side-sheet/eds-wc-side-sheet-header-action-items.js +34 -0
  278. package/eds-side-sheet/eds-wc-side-sheet-header-action-items.js.map +1 -0
  279. package/eds-side-sheet/eds-wc-side-sheet-header-label.d.ts +17 -0
  280. package/eds-side-sheet/eds-wc-side-sheet-header-label.d.ts.map +1 -0
  281. package/eds-side-sheet/eds-wc-side-sheet-header-label.js +32 -0
  282. package/eds-side-sheet/eds-wc-side-sheet-header-label.js.map +1 -0
  283. package/eds-side-sheet/eds-wc-side-sheet-header-sublabel.d.ts +17 -0
  284. package/eds-side-sheet/eds-wc-side-sheet-header-sublabel.d.ts.map +1 -0
  285. package/eds-side-sheet/eds-wc-side-sheet-header-sublabel.js +32 -0
  286. package/eds-side-sheet/eds-wc-side-sheet-header-sublabel.js.map +1 -0
  287. package/eds-side-sheet/eds-wc-side-sheet-header.d.ts +25 -0
  288. package/eds-side-sheet/eds-wc-side-sheet-header.d.ts.map +1 -0
  289. package/eds-side-sheet/eds-wc-side-sheet-header.js +105 -0
  290. package/eds-side-sheet/eds-wc-side-sheet-header.js.map +1 -0
  291. package/eds-side-sheet/eds-wc-side-sheet.d.ts +97 -0
  292. package/eds-side-sheet/eds-wc-side-sheet.d.ts.map +1 -0
  293. package/eds-side-sheet/eds-wc-side-sheet.js +352 -0
  294. package/eds-side-sheet/eds-wc-side-sheet.js.map +1 -0
  295. package/eds-side-sheet/index.d.ts +9 -0
  296. package/eds-side-sheet/index.d.ts.map +1 -0
  297. package/eds-side-sheet/index.js +8 -0
  298. package/eds-side-sheet/index.js.map +1 -0
  299. package/eds-skeleton/eds-wc-skeleton.js +1 -1
  300. package/eds-swiper/eds-wc-swiper.d.ts +100 -0
  301. package/eds-swiper/eds-wc-swiper.d.ts.map +1 -0
  302. package/eds-swiper/eds-wc-swiper.js +384 -0
  303. package/eds-swiper/eds-wc-swiper.js.map +1 -0
  304. package/eds-swiper/index.d.ts +2 -0
  305. package/eds-swiper/index.d.ts.map +1 -0
  306. package/eds-swiper/index.js +2 -0
  307. package/eds-swiper/index.js.map +1 -0
  308. package/{eds-toggle/eds-wc-toggle.d.ts → eds-switch/eds-wc-switch.d.ts} +11 -11
  309. package/{eds-toggle/eds-wc-toggle.d.ts.map → eds-switch/eds-wc-switch.d.ts.map} +1 -1
  310. package/{eds-toggle/eds-wc-toggle.js → eds-switch/eds-wc-switch.js} +39 -39
  311. package/{eds-toggle/eds-wc-toggle.js.map → eds-switch/eds-wc-switch.js.map} +1 -1
  312. package/eds-switch/index.d.ts +2 -0
  313. package/eds-switch/index.d.ts.map +1 -0
  314. package/eds-switch/index.js +2 -0
  315. package/eds-switch/index.js.map +1 -0
  316. package/eds-table/eds-wc-table.js +1 -1
  317. package/eds-tabs/eds-wc-tabs.d.ts.map +1 -1
  318. package/eds-tabs/eds-wc-tabs.js +2 -1
  319. package/eds-tabs/eds-wc-tabs.js.map +1 -1
  320. package/eds-tag/eds-wc-tag.d.ts +45 -16
  321. package/eds-tag/eds-wc-tag.d.ts.map +1 -1
  322. package/eds-tag/eds-wc-tag.js +196 -72
  323. package/eds-tag/eds-wc-tag.js.map +1 -1
  324. package/eds-tag/index.d.ts +2 -1
  325. package/eds-tag/index.d.ts.map +1 -1
  326. package/eds-tag/index.js +1 -1
  327. package/eds-tag/index.js.map +1 -1
  328. package/eds-textarea/eds-wc-textarea.js +1 -1
  329. package/eds-timeline/eds-wc-timeline.js +2 -2
  330. package/eds-timepicker/eds-wc-timepicker.js +1 -1
  331. package/{eds-growl/eds-wc-growl.d.ts → eds-toast/eds-wc-toast.d.ts} +18 -18
  332. package/{eds-growl/eds-wc-growl.d.ts.map → eds-toast/eds-wc-toast.d.ts.map} +1 -1
  333. package/{eds-growl/eds-wc-growl.js → eds-toast/eds-wc-toast.js} +17 -17
  334. package/{eds-growl/eds-wc-growl.js.map → eds-toast/eds-wc-toast.js.map} +1 -1
  335. package/eds-toast/index.d.ts +3 -0
  336. package/eds-toast/index.d.ts.map +1 -0
  337. package/eds-toast/index.js +2 -0
  338. package/eds-toast/index.js.map +1 -0
  339. package/eds-user-profile/eds-wc-user-profile.d.ts +146 -0
  340. package/eds-user-profile/eds-wc-user-profile.d.ts.map +1 -0
  341. package/eds-user-profile/eds-wc-user-profile.js +564 -0
  342. package/eds-user-profile/eds-wc-user-profile.js.map +1 -0
  343. package/eds-user-profile/index.d.ts +2 -0
  344. package/eds-user-profile/index.d.ts.map +1 -0
  345. package/eds-user-profile/index.js +2 -0
  346. package/eds-user-profile/index.js.map +1 -0
  347. package/eds-wizard/eds-wc-wizard.js +1 -1
  348. package/index.d.ts +46 -12
  349. package/index.d.ts.map +1 -1
  350. package/index.js +31 -9
  351. package/index.js.map +1 -1
  352. package/package.json +79 -19
  353. package/eds-button-group/eds-wc-button-group.d.ts +0 -62
  354. package/eds-button-group/eds-wc-button-group.d.ts.map +0 -1
  355. package/eds-button-group/eds-wc-button-group.js.map +0 -1
  356. package/eds-button-group/index.d.ts +0 -2
  357. package/eds-button-group/index.d.ts.map +0 -1
  358. package/eds-button-group/index.js +0 -2
  359. package/eds-button-group/index.js.map +0 -1
  360. package/eds-growl/index.d.ts +0 -3
  361. package/eds-growl/index.d.ts.map +0 -1
  362. package/eds-growl/index.js +0 -2
  363. package/eds-growl/index.js.map +0 -1
  364. package/eds-input-checkbox/eds-wc-input-checkbox.d.ts.map +0 -1
  365. package/eds-input-checkbox/eds-wc-input-checkbox.js.map +0 -1
  366. package/eds-input-checkbox/index.d.ts +0 -2
  367. package/eds-input-checkbox/index.d.ts.map +0 -1
  368. package/eds-input-checkbox/index.js +0 -2
  369. package/eds-input-checkbox/index.js.map +0 -1
  370. package/eds-input-radio/eds-wc-input-radio.d.ts.map +0 -1
  371. package/eds-input-radio/eds-wc-input-radio.js.map +0 -1
  372. package/eds-input-radio/index.d.ts +0 -2
  373. package/eds-input-radio/index.d.ts.map +0 -1
  374. package/eds-input-radio/index.js +0 -2
  375. package/eds-input-radio/index.js.map +0 -1
  376. package/eds-paginator/eds-wc-paginator.d.ts.map +0 -1
  377. package/eds-paginator/eds-wc-paginator.js.map +0 -1
  378. package/eds-paginator/index.d.ts +0 -3
  379. package/eds-paginator/index.d.ts.map +0 -1
  380. package/eds-paginator/index.js +0 -2
  381. package/eds-paginator/index.js.map +0 -1
  382. package/eds-toggle/index.d.ts +0 -2
  383. package/eds-toggle/index.d.ts.map +0 -1
  384. package/eds-toggle/index.js +0 -2
  385. package/eds-toggle/index.js.map +0 -1
@@ -7,129 +7,214 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { html, css } from 'lit';
8
8
  import { customElement, property } from 'lit/decorators.js';
9
9
  import { EdsBaseElement } from '../shared/eds-base.js';
10
- import { ColorMixin } from '../shared/color-mixin.js';
11
- import { SizeMixin } from '../shared/size-mixin.js';
10
+ import '../eds-icon/eds-wc-icon.js';
12
11
  /**
13
12
  * `<eds-wc-icon-button>` — EDS Icon Button Web Component.
14
13
  *
15
- * A button that renders a single icon from the EDS sprite sheet.
16
- * Supports size/color variants, rounded shape, and disabled state.
14
+ * A compact, icon-only button. Renders an internal native `<button>` (for keyboard/focus/click
15
+ * semantics) containing an `<eds-wc-icon>`. Supports semantic color and size via reflected string
16
+ * attributes, an optional rounded shape, and a disabled state. 1:1 projection of the Angular
17
+ * `button[edsIconButton]` directive.
18
+ *
19
+ * Unlike the Angular directive which decorates a consumer-provided native `<button>`, this web
20
+ * component renders its own internal `<button>` element and mirrors the same reflected attribute
21
+ * API on the host.
17
22
  *
18
23
  * @example
19
24
  * ```html
20
- * <eds-wc-icon-button icon="star" size="m" color="neutral"></eds-wc-icon-button>
21
- * <eds-wc-icon-button icon="x:core" rounded size="s" disabled></eds-wc-icon-button>
25
+ * <eds-wc-icon-button icon="gear" aria-label="Settings"></eds-wc-icon-button>
26
+ * <eds-wc-icon-button icon="trash" color="critical" size="s" aria-label="Delete"></eds-wc-icon-button>
27
+ * <eds-wc-icon-button icon="star" color="brand" rounded aria-label="Favorite"></eds-wc-icon-button>
28
+ * <eds-wc-icon-button icon="bell" disabled aria-label="Notifications"></eds-wc-icon-button>
22
29
  * ```
23
30
  *
24
- * @slot - Default slot for overlay content (e.g. badge)
25
- *
26
- * @fires click - Native click event (blocked when disabled)
31
+ * @slot - Default slot for a projected overlay such as an `<eds-wc-badge>`.
27
32
  *
28
- * @csspart button - The internal `<button>` element
29
- * @csspart svg - The icon SVG element
33
+ * @fires button-click - Dispatched when the button is clicked. `detail: { originalEvent: Event }`
30
34
  */
31
- let EdsWcIconButton = class EdsWcIconButton extends SizeMixin(ColorMixin(EdsBaseElement)) {
35
+ let EdsWcIconButton = class EdsWcIconButton extends EdsBaseElement {
32
36
  constructor() {
33
37
  super(...arguments);
34
- /** Icon name, optionally with set: `'iconName:setName'`. */
38
+ /**
39
+ * The name of the icon to display from the eUI icon library.
40
+ * @default ''
41
+ */
35
42
  this.icon = '';
36
- /** Accessible label for screen readers. */
37
- this.ariaLabel = 'Icon button';
38
- /** Applies fully rounded border-radius. */
43
+ /**
44
+ * Semantic color of the icon button.
45
+ * @default 'neutral'
46
+ */
47
+ this.color = 'neutral';
48
+ /**
49
+ * Size of the icon button.
50
+ * @default 'm'
51
+ */
52
+ this.size = 'm';
53
+ /**
54
+ * Accessible label for screen readers describing the button's purpose.
55
+ * @default 'EDS Icon button'
56
+ */
57
+ this.ariaLabel = 'EDS Icon button';
58
+ /**
59
+ * Applies rounded corners to the button shape instead of default square corners.
60
+ * @default false
61
+ */
39
62
  this.rounded = false;
40
- /** Disabled state. */
63
+ /**
64
+ * Disables the button (non-interactive, disabled styling, removed from tab order).
65
+ * @default false
66
+ */
41
67
  this.disabled = false;
42
- }
43
- get _iconName() {
44
- const raw = this.icon;
45
- return raw.indexOf(':') > -1 ? raw.split(':')[0] : raw;
46
- }
47
- get _resolvedSet() {
48
- const raw = this.icon;
49
- return raw.indexOf(':') > -1 ? (raw.split(':')[1] || 'regular') : 'regular';
68
+ this._onClick = (event) => {
69
+ if (this.disabled) {
70
+ return;
71
+ }
72
+ this.dispatchEvent(new CustomEvent('button-click', {
73
+ bubbles: true,
74
+ composed: true,
75
+ detail: { originalEvent: event },
76
+ }));
77
+ };
50
78
  }
51
79
  static { this.styles = css `
80
+ :host, *, *::before, *::after {
81
+ box-sizing: border-box;
82
+ }
83
+
84
+ /* parent overrides :
85
+ --_button-padding, --_button-surface-hover, --_button-on-surface-hover, --_button-color */
86
+
52
87
  :host {
88
+ --_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-neutral-subtle));
89
+ --_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-neutral-subtle));
90
+ --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-3xs));
91
+ --_eds-icon-button-color: var(--eds-c-foreground-subtle);
92
+
53
93
  display: inline-flex;
54
94
  }
55
95
 
56
96
  button {
97
+ /* Reset */
98
+ font-family: inherit;
99
+ -webkit-appearance: none;
100
+ appearance: none;
101
+
57
102
  display: inline-flex;
58
- align-items: center;
59
- justify-content: center;
60
103
  border: none;
61
104
  cursor: pointer;
62
- background-color: transparent;
63
- padding: var(--_padding, var(--eds-sp-3xs));
105
+ background-color: inherit;
106
+ padding: var(--_eds-icon-button-padding);
64
107
  position: relative;
65
- color: var(--_color, var(--eds-c-foreground-subtle));
66
- border-radius: 0;
67
- line-height: 0;
68
- -webkit-appearance: none;
69
- appearance: none;
70
- font-family: inherit;
108
+ color: var(--_eds-icon-button-color);
109
+ border-radius: inherit;
110
+ outline: none;
71
111
  }
72
112
 
73
113
  button:hover,
74
114
  button:active {
75
- background-color: var(--_surface-hover, var(--eds-c-surface-neutral-subtle));
76
- color: var(--_on-surface-hover, var(--eds-c-on-surface-neutral-subtle));
115
+ background-color: var(--_eds-icon-button-surface-hover);
116
+ color: var(--_eds-icon-button-on-surface-hover);
77
117
  }
78
118
 
79
- button:focus-visible {
80
- outline: 2px solid var(--eds-c-border-focus);
81
- outline-offset: 2px;
119
+ /* COLOR VARIANTS */
120
+
121
+ :host([color="brand"]) {
122
+ --_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-brand--hover));
123
+ --_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-brand--hover));
124
+ --_eds-icon-button-color: var(--_button-color, var(--eds-c-on-surface-brand));
82
125
  }
83
126
 
84
- button:disabled {
85
- cursor: default;
86
- color: var(--eds-c-foreground-disabled);
127
+ :host([color="neutral"]) {
128
+ --_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-neutral-subtler));
129
+ --_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-neutral-subtler));
130
+ }
131
+
132
+ :host([color="info"]) {
133
+ --_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-info-subtler--hover));
134
+ --_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-info-subtler--hover));
135
+ }
136
+
137
+ :host([color="success"]) {
138
+ --_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-success-subtler--hover));
139
+ --_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-success-subtler--hover));
140
+ }
141
+
142
+ :host([color="warning"]) {
143
+ --_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-warning-subtler--hover));
144
+ --_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-warning-subtler--hover));
87
145
  }
88
- button:disabled:hover {
89
- background-color: transparent;
90
- color: var(--eds-c-foreground-disabled);
146
+
147
+ :host([color="critical"]) {
148
+ --_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-critical-subtler--hover));
149
+ --_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-critical-subtler--hover));
91
150
  }
92
151
 
93
- /* Rounded */
94
- :host([rounded]) button {
152
+ /* SIZE VARIANTS */
153
+
154
+ :host([size="2xs"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-2xs)); }
155
+ :host([size="xs"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-2xs)); }
156
+ :host([size="s"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-2xs)); }
157
+ :host([size="m"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-xs)); }
158
+ :host([size="l"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-s)); }
159
+
160
+ /* STATE */
161
+
162
+ :host([rounded]) {
95
163
  border-radius: var(--eds-br-full);
96
164
  }
97
165
 
98
- /* Color variants */
99
- :host([color="brand"]) { --_color: var(--eds-c-on-surface-brand); --_surface-hover: var(--eds-c-surface-brand--hover); --_on-surface-hover: var(--eds-c-on-surface-brand--hover); }
100
- :host([color="neutral"]) { --_surface-hover: var(--eds-c-surface-neutral-subtle--hover); --_on-surface-hover: var(--eds-c-on-surface-neutral-subtle--hover); }
101
- :host([color="info"]) { --_surface-hover: var(--eds-c-surface-info-subtler--hover); --_on-surface-hover: var(--eds-c-on-surface-info-subtler--hover); }
102
- :host([color="success"]) { --_surface-hover: var(--eds-c-surface-success-subtler--hover); --_on-surface-hover: var(--eds-c-on-surface-success-subtler--hover); }
103
- :host([color="warning"]) { --_surface-hover: var(--eds-c-surface-warning-subtler--hover); --_on-surface-hover: var(--eds-c-on-surface-warning-subtler--hover); }
104
- :host([color="critical"]) { --_surface-hover: var(--eds-c-surface-critical-subtler--hover); --_on-surface-hover: var(--eds-c-on-surface-critical-subtler--hover); }
166
+ :host([disabled]) {
167
+ --_eds-icon-button-color: var(--_button-color, var(--eds-c-foreground-disabled));
168
+ --_eds-icon-button-surface-hover: transparent;
169
+ --_eds-icon-button-on-surface-hover: var(--_eds-icon-button-color);
170
+ }
171
+ :host([disabled]) button {
172
+ cursor: default;
173
+ }
105
174
 
106
- /* Size variants */
107
- :host([size="2xs"]) { --_padding: var(--eds-sp-2xs); }
108
- :host([size="xs"]) { --_padding: var(--eds-sp-2xs); }
109
- :host([size="s"]) { --_padding: var(--eds-sp-2xs); }
110
- :host([size="m"]) { --_padding: var(--eds-sp-xs); }
111
- :host([size="l"]) { --_padding: var(--eds-sp-s); }
175
+ /* FOCUS RING */
112
176
 
113
- .icon-svg {
114
- width: var(--_icon-size, var(--eds-is-m));
115
- height: var(--_icon-size, var(--eds-is-m));
116
- fill: currentColor;
117
- color: currentColor;
177
+ button:focus-visible {
178
+ outline: 2px solid var(--eds-c-border-focus);
179
+ outline-offset: 2px;
180
+ }
181
+ :host([rounded]) button:focus-visible {
182
+ border-radius: var(--eds-br-full);
183
+ }
184
+
185
+ /* BADGE OVERLAY — a projected eds-wc-badge is absolutely positioned over the
186
+ top-right of the icon, mirroring the Angular badge's
187
+ :host-context(.eds-icon-button[size="…"]) offsets. The internal <eds-wc-icon>
188
+ is position:relative, so the slotted badge anchors to it. */
189
+ eds-wc-icon {
190
+ position: relative;
118
191
  }
192
+
193
+ ::slotted(eds-wc-badge) {
194
+ position: absolute !important;
195
+ }
196
+
197
+ :host([size="2xs"]) ::slotted(eds-wc-badge) { left: 50%; top: -30%; }
198
+ :host([size="xs"]) ::slotted(eds-wc-badge) { left: 50%; top: -40%; }
199
+ :host([size="s"]) ::slotted(eds-wc-badge) { left: 50%; top: -50%; }
200
+ :host([size="m"]) ::slotted(eds-wc-badge) { left: 50%; top: -40%; }
201
+ :host([size="l"]) ::slotted(eds-wc-badge) { left: 50%; top: -25%; }
119
202
  `; }
120
203
  render() {
121
- const baseUrl = EdsBaseElement.assetsBaseUrl;
122
- const spriteHref = `${baseUrl}/eds/icons/sprites/${this._resolvedSet}.svg#${this._iconName}`;
123
204
  return html `
124
205
  <button
125
206
  part="button"
126
207
  type="button"
127
208
  ?disabled="${this.disabled}"
128
- aria-label="${this.ariaLabel || 'Icon button'}">
129
- <svg class="icon-svg" part="svg" aria-hidden="true">
130
- <use href="${spriteHref}"></use>
131
- </svg>
132
- <slot></slot>
209
+ tabindex="${this.disabled ? -1 : 0}"
210
+ aria-label="${this.ariaLabel ?? ''}"
211
+ @click="${this._onClick}">
212
+ <eds-wc-icon
213
+ .icon="${this.icon}"
214
+ .color="${this.color}"
215
+ .size="${this.size}">
216
+ <slot></slot>
217
+ </eds-wc-icon>
133
218
  </button>
134
219
  `;
135
220
  }
@@ -138,7 +223,13 @@ __decorate([
138
223
  property({ type: String })
139
224
  ], EdsWcIconButton.prototype, "icon", void 0);
140
225
  __decorate([
141
- property({ type: String, attribute: 'aria-label' })
226
+ property({ type: String, reflect: true })
227
+ ], EdsWcIconButton.prototype, "color", void 0);
228
+ __decorate([
229
+ property({ type: String, reflect: true })
230
+ ], EdsWcIconButton.prototype, "size", void 0);
231
+ __decorate([
232
+ property({ type: String, attribute: 'aria-label', reflect: true })
142
233
  ], EdsWcIconButton.prototype, "ariaLabel", void 0);
143
234
  __decorate([
144
235
  property({ type: Boolean, reflect: true })
@@ -1 +1 @@
1
- {"version":3,"file":"eds-wc-icon-button.js","sourceRoot":"","sources":["../../src/eds-icon-button/eds-wc-icon-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,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;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC3B;AAOhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAzCR,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CAqM3B"}
@@ -1,2 +1,3 @@
1
- export { EdsWcIconButton } from './eds-wc-icon-button.js';
1
+ export { EdsWcIconButton } from './eds-wc-icon-button';
2
+ export type { EdsWcIconButtonColor, EdsWcIconButtonSize } from './eds-wc-icon-button';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +1,2 @@
1
- export { EdsWcIconButton } from './eds-wc-icon-button.js';
1
+ export { EdsWcIconButton } from './eds-wc-icon-button';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { EdsBaseElement } from '../shared/eds-base.js';
2
+ /**
3
+ * Local narrowed color union — the icon-state's color contract. Copied verbatim from the
4
+ * Angular `eds-icon-state` exported `EdsIconStateColor` union. Each value maps to a specific
5
+ * status icon. No shared-token import.
6
+ */
7
+ export type EdsWcIconStateColor = 'info' | 'success' | 'warning' | 'critical';
8
+ /**
9
+ * Local narrowed size union — the icon-state's size contract. Copied verbatim from the
10
+ * Angular `eds-icon-state` exported `EdsIconStateSize` union.
11
+ */
12
+ export type EdsWcIconStateSize = '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl';
13
+ /**
14
+ * `<eds-wc-icon-state>` — EDS Icon State Web Component.
15
+ *
16
+ * Renders exactly one status `<eds-wc-icon>` chosen by the semantic `color`:
17
+ * `success` → `check-circle:core`, `warning` → `warning:core`,
18
+ * `critical` → `warning-circle:core`, `info` → `info:core`. The inner icon receives the same
19
+ * `color` and `size`, and a default accessible label per status ("EDS success/warning/danger/info
20
+ * icon"), overridable via the `aria-label` attribute. 1:1 projection of the Angular
21
+ * `eds-icon-state`.
22
+ *
23
+ * @example
24
+ * ```html
25
+ * <eds-wc-icon-state></eds-wc-icon-state>
26
+ * <eds-wc-icon-state color="success" size="l"></eds-wc-icon-state>
27
+ * <eds-wc-icon-state color="critical" aria-label="Error"></eds-wc-icon-state>
28
+ * ```
29
+ */
30
+ export declare class EdsWcIconState extends EdsBaseElement {
31
+ /**
32
+ * Semantic status color, selecting the corresponding status icon.
33
+ * @default 'info'
34
+ */
35
+ color: EdsWcIconStateColor;
36
+ /**
37
+ * Size of the status icon.
38
+ * @default 'm'
39
+ */
40
+ size: EdsWcIconStateSize;
41
+ /**
42
+ * Accessible label for screen readers describing the icon's purpose or meaning.
43
+ * When empty, a sensible default is derived from the status `color`
44
+ * ("EDS success/warning/danger/info icon").
45
+ * @default ''
46
+ */
47
+ ariaLabel: string | null;
48
+ static styles: import("lit").CSSResult;
49
+ protected render(): import("lit-html").TemplateResult<1>;
50
+ }
51
+ declare global {
52
+ interface HTMLElementTagNameMap {
53
+ 'eds-wc-icon-state': EdsWcIconState;
54
+ }
55
+ }
56
+ //# sourceMappingURL=eds-wc-icon-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-wc-icon-state.d.ts","sourceRoot":"","sources":["../../src/eds-icon-state/eds-wc-icon-state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMvD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9E;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAUvE;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,cAAe,SAAQ,cAAc;IAC9C;;;OAGG;IAEH,KAAK,EAAE,mBAAmB,CAAU;IAEpC;;;OAGG;IAEH,IAAI,EAAE,kBAAkB,CAAO;IAE/B;;;;;OAKG;IAEM,SAAS,EAAE,MAAM,GAAG,IAAI,CAAM;IAEvC,OAAgB,MAAM,0BAQpB;cAEiB,MAAM;CAa5B;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,mBAAmB,EAAE,cAAc,CAAC;KACvC;CACJ"}
@@ -0,0 +1,93 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { html, css } from 'lit';
8
+ import { customElement, property } from 'lit/decorators.js';
9
+ import { EdsBaseElement } from '../shared/eds-base.js';
10
+ import { EdsWcIcon } from '../eds-icon/eds-wc-icon';
11
+ // Ensure the inner <eds-wc-icon> custom element is registered.
12
+ void EdsWcIcon;
13
+ /** Maps a semantic status color to its icon name and default accessible label. */
14
+ const ICON_STATE_MAP = {
15
+ success: { icon: 'check-circle:core', ariaLabel: 'EDS success icon' },
16
+ warning: { icon: 'warning:core', ariaLabel: 'EDS warning icon' },
17
+ critical: { icon: 'warning-circle:core', ariaLabel: 'EDS danger icon' },
18
+ info: { icon: 'info:core', ariaLabel: 'EDS info icon' },
19
+ };
20
+ /**
21
+ * `<eds-wc-icon-state>` — EDS Icon State Web Component.
22
+ *
23
+ * Renders exactly one status `<eds-wc-icon>` chosen by the semantic `color`:
24
+ * `success` → `check-circle:core`, `warning` → `warning:core`,
25
+ * `critical` → `warning-circle:core`, `info` → `info:core`. The inner icon receives the same
26
+ * `color` and `size`, and a default accessible label per status ("EDS success/warning/danger/info
27
+ * icon"), overridable via the `aria-label` attribute. 1:1 projection of the Angular
28
+ * `eds-icon-state`.
29
+ *
30
+ * @example
31
+ * ```html
32
+ * <eds-wc-icon-state></eds-wc-icon-state>
33
+ * <eds-wc-icon-state color="success" size="l"></eds-wc-icon-state>
34
+ * <eds-wc-icon-state color="critical" aria-label="Error"></eds-wc-icon-state>
35
+ * ```
36
+ */
37
+ let EdsWcIconState = class EdsWcIconState extends EdsBaseElement {
38
+ constructor() {
39
+ super(...arguments);
40
+ /**
41
+ * Semantic status color, selecting the corresponding status icon.
42
+ * @default 'info'
43
+ */
44
+ this.color = 'info';
45
+ /**
46
+ * Size of the status icon.
47
+ * @default 'm'
48
+ */
49
+ this.size = 'm';
50
+ /**
51
+ * Accessible label for screen readers describing the icon's purpose or meaning.
52
+ * When empty, a sensible default is derived from the status `color`
53
+ * ("EDS success/warning/danger/info icon").
54
+ * @default ''
55
+ */
56
+ this.ariaLabel = '';
57
+ }
58
+ static { this.styles = css `
59
+ :host, *, *::before, *::after {
60
+ box-sizing: border-box;
61
+ }
62
+
63
+ :host {
64
+ display: flex;
65
+ }
66
+ `; }
67
+ render() {
68
+ const state = ICON_STATE_MAP[this.color] ?? ICON_STATE_MAP.info;
69
+ const label = this.ariaLabel && this.ariaLabel.length > 0 ? this.ariaLabel : state.ariaLabel;
70
+ return html `
71
+ <eds-wc-icon
72
+ icon="${state.icon}"
73
+ color="${this.color}"
74
+ size="${this.size}"
75
+ aria-label="${label}"
76
+ ></eds-wc-icon>
77
+ `;
78
+ }
79
+ };
80
+ __decorate([
81
+ property({ type: String, reflect: true })
82
+ ], EdsWcIconState.prototype, "color", void 0);
83
+ __decorate([
84
+ property({ type: String, reflect: true })
85
+ ], EdsWcIconState.prototype, "size", void 0);
86
+ __decorate([
87
+ property({ type: String, attribute: 'aria-label' })
88
+ ], EdsWcIconState.prototype, "ariaLabel", void 0);
89
+ EdsWcIconState = __decorate([
90
+ customElement('eds-wc-icon-state')
91
+ ], EdsWcIconState);
92
+ export { EdsWcIconState };
93
+ //# sourceMappingURL=eds-wc-icon-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-wc-icon-state.js","sourceRoot":"","sources":["../../src/eds-icon-state/eds-wc-icon-state.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,+DAA+D;AAC/D,KAAK,SAAS,CAAC;AAef,kFAAkF;AAClF,MAAM,cAAc,GAAqE;IACrF,OAAO,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,SAAS,EAAE,kBAAkB,EAAE;IACrE,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE;IAChE,QAAQ,EAAE,EAAE,IAAI,EAAE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wc-icon-state';
2
+ export type { EdsWcIconStateColor, EdsWcIconStateSize } from './eds-wc-icon-state';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-icon-state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EdsWcIconState } from './eds-wc-icon-state';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-icon-state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { EdsBaseElement } from '../shared/eds-base.js';
2
+ /** Local narrowed union — the addon's position contract (copied from the Angular source). */
3
+ export type EdsWcInputAddonPosition = 'start' | 'end';
4
+ /**
5
+ * `<eds-wc-input-addon>` — EDS Input Addon Web Component.
6
+ *
7
+ * A layout component that positions a **non-actionable** static addon (fixed text and/or an icon)
8
+ * flush against an input field — e.g. a currency symbol, a `https://` prefix, a unit suffix.
9
+ *
10
+ * Visually it mirrors `<eds-wc-input-button>`'s footprint but reads as a **recessed extension of the
11
+ * field**, not a control: sunken surface, muted (subtler) foreground, `cursor: default`, no hover /
12
+ * focus states, and it is not in the tab order. Use `eds-wc-input-button` when the trailing/leading
13
+ * element must be clickable; use `eds-wc-input-addon` when it is purely contextual text/icon.
14
+ *
15
+ * @example
16
+ * ```html
17
+ * <!-- Addon at start of input (default) -->
18
+ * <eds-wc-input-addon>
19
+ * <eds-wc-input-text placeholder="example.com"></eds-wc-input-text>
20
+ * <span slot="label">https://</span>
21
+ * </eds-wc-input-addon>
22
+ *
23
+ * <!-- Addon at end of input -->
24
+ * <eds-wc-input-addon position="end">
25
+ * <eds-wc-input-text placeholder="0.00"></eds-wc-input-text>
26
+ * <span slot="label">EUR</span>
27
+ * </eds-wc-input-addon>
28
+ *
29
+ * <!-- With an icon -->
30
+ * <eds-wc-input-addon>
31
+ * <eds-wc-input-text placeholder="Search..."></eds-wc-input-text>
32
+ * <eds-wc-icon slot="label" icon="magnifying-glass" aria-hidden="true"></eds-wc-icon>
33
+ * </eds-wc-input-addon>
34
+ * ```
35
+ *
36
+ * @slot - The projected input element (default slot).
37
+ * @slot label - The static addon content (text and/or icon), wrapped in the addon label.
38
+ */
39
+ export declare class EdsWcInputAddon extends EdsBaseElement {
40
+ /**
41
+ * Which side of the input the addon sits on, reflected as the `position` attribute.
42
+ * `start` = left in LTR (right in RTL); `end` = the opposite side.
43
+ */
44
+ position: EdsWcInputAddonPosition;
45
+ /** Data attribute value for end-to-end testing identification, reflected as `data-e2e`. */
46
+ e2eAttr: string;
47
+ static styles: import("lit").CSSResult;
48
+ protected render(): import("lit-html").TemplateResult<1>;
49
+ }
50
+ declare global {
51
+ interface HTMLElementTagNameMap {
52
+ 'eds-wc-input-addon': EdsWcInputAddon;
53
+ }
54
+ }
55
+ //# sourceMappingURL=eds-wc-input-addon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-wc-input-addon.d.ts","sourceRoot":"","sources":["../../src/eds-input-addon/eds-wc-input-addon.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,6FAA6F;AAC7F,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,KAAK,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBACa,eAAgB,SAAQ,cAAc;IAC/C;;;OAGG;IACwC,QAAQ,EAAE,uBAAuB,CAAW;IAEvF,2FAA2F;IACzB,OAAO,SAAqB;IAE9F,OAAgB,MAAM,0BAqGpB;cAEiB,MAAM;CAQ5B;AAED,OAAO,CAAC,MAAM,CAAC;IAAE,UAAU,qBAAqB;QAAG,oBAAoB,EAAE,eAAe,CAAC;KAAE;CAAE"}