@eui/components-wc 0.0.0-stage → 22.0.0-alpha.52

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 (574) hide show
  1. package/eui-accordion/eui-wc-accordion.d.ts +44 -0
  2. package/eui-accordion/eui-wc-accordion.d.ts.map +1 -0
  3. package/eui-accordion/eui-wc-accordion.js +128 -0
  4. package/eui-accordion/eui-wc-accordion.js.map +1 -0
  5. package/eui-accordion/index.d.ts +2 -0
  6. package/eui-accordion/index.d.ts.map +1 -0
  7. package/eui-accordion/index.js +2 -0
  8. package/eui-accordion/index.js.map +1 -0
  9. package/eui-alert/eui-wc-alert.d.ts +35 -0
  10. package/eui-alert/eui-wc-alert.d.ts.map +1 -0
  11. package/eui-alert/eui-wc-alert.js +100 -0
  12. package/eui-alert/eui-wc-alert.js.map +1 -0
  13. package/eui-alert/index.d.ts +2 -0
  14. package/eui-alert/index.d.ts.map +1 -0
  15. package/eui-alert/index.js +2 -0
  16. package/eui-alert/index.js.map +1 -0
  17. package/eui-autocomplete/eui-wc-autocomplete.d.ts +26 -0
  18. package/eui-autocomplete/eui-wc-autocomplete.d.ts.map +1 -0
  19. package/eui-autocomplete/eui-wc-autocomplete.js +79 -0
  20. package/eui-autocomplete/eui-wc-autocomplete.js.map +1 -0
  21. package/eui-autocomplete/index.d.ts +2 -0
  22. package/eui-autocomplete/index.d.ts.map +1 -0
  23. package/eui-autocomplete/index.js +2 -0
  24. package/eui-autocomplete/index.js.map +1 -0
  25. package/eui-autocomplete-v2/eui-wc-autocomplete-v2.d.ts +33 -0
  26. package/eui-autocomplete-v2/eui-wc-autocomplete-v2.d.ts.map +1 -0
  27. package/eui-autocomplete-v2/eui-wc-autocomplete-v2.js +118 -0
  28. package/eui-autocomplete-v2/eui-wc-autocomplete-v2.js.map +1 -0
  29. package/eui-autocomplete-v2/index.d.ts +2 -0
  30. package/eui-autocomplete-v2/index.d.ts.map +1 -0
  31. package/eui-autocomplete-v2/index.js +2 -0
  32. package/eui-autocomplete-v2/index.js.map +1 -0
  33. package/eui-avatar/eui-wc-avatar.d.ts +31 -0
  34. package/eui-avatar/eui-wc-avatar.d.ts.map +1 -0
  35. package/eui-avatar/eui-wc-avatar.js +109 -0
  36. package/eui-avatar/eui-wc-avatar.js.map +1 -0
  37. package/eui-avatar/index.d.ts +2 -0
  38. package/eui-avatar/index.d.ts.map +1 -0
  39. package/eui-avatar/index.js +2 -0
  40. package/eui-avatar/index.js.map +1 -0
  41. package/eui-badge/eui-wc-badge.d.ts +46 -0
  42. package/eui-badge/eui-wc-badge.d.ts.map +1 -0
  43. package/eui-badge/eui-wc-badge.js +195 -0
  44. package/eui-badge/eui-wc-badge.js.map +1 -0
  45. package/eui-badge/index.d.ts +2 -0
  46. package/eui-badge/index.d.ts.map +1 -0
  47. package/eui-badge/index.js +2 -0
  48. package/eui-badge/index.js.map +1 -0
  49. package/eui-banner/eui-wc-banner.d.ts +35 -0
  50. package/eui-banner/eui-wc-banner.d.ts.map +1 -0
  51. package/eui-banner/eui-wc-banner.js +100 -0
  52. package/eui-banner/eui-wc-banner.js.map +1 -0
  53. package/eui-banner/index.d.ts +2 -0
  54. package/eui-banner/index.d.ts.map +1 -0
  55. package/eui-banner/index.js +2 -0
  56. package/eui-banner/index.js.map +1 -0
  57. package/eui-block-content/eui-wc-block-content.d.ts +14 -0
  58. package/eui-block-content/eui-wc-block-content.d.ts.map +1 -0
  59. package/eui-block-content/eui-wc-block-content.js +43 -0
  60. package/eui-block-content/eui-wc-block-content.js.map +1 -0
  61. package/eui-block-content/index.d.ts +2 -0
  62. package/eui-block-content/index.d.ts.map +1 -0
  63. package/eui-block-content/index.js +2 -0
  64. package/eui-block-content/index.js.map +1 -0
  65. package/eui-block-document/eui-wc-block-document.d.ts +14 -0
  66. package/eui-block-document/eui-wc-block-document.d.ts.map +1 -0
  67. package/eui-block-document/eui-wc-block-document.js +51 -0
  68. package/eui-block-document/eui-wc-block-document.js.map +1 -0
  69. package/eui-block-document/index.d.ts +2 -0
  70. package/eui-block-document/index.d.ts.map +1 -0
  71. package/eui-block-document/index.js +2 -0
  72. package/eui-block-document/index.js.map +1 -0
  73. package/eui-breadcrumb/eui-wc-breadcrumb.d.ts +19 -0
  74. package/eui-breadcrumb/eui-wc-breadcrumb.d.ts.map +1 -0
  75. package/eui-breadcrumb/eui-wc-breadcrumb.js +33 -0
  76. package/eui-breadcrumb/eui-wc-breadcrumb.js.map +1 -0
  77. package/eui-breadcrumb/index.d.ts +2 -0
  78. package/eui-breadcrumb/index.d.ts.map +1 -0
  79. package/eui-breadcrumb/index.js +2 -0
  80. package/eui-breadcrumb/index.js.map +1 -0
  81. package/eui-button/eui-wc-button.d.ts +37 -0
  82. package/eui-button/eui-wc-button.d.ts.map +1 -0
  83. package/eui-button/eui-wc-button.js +246 -0
  84. package/eui-button/eui-wc-button.js.map +1 -0
  85. package/eui-button/index.d.ts +2 -0
  86. package/eui-button/index.d.ts.map +1 -0
  87. package/eui-button/index.js +2 -0
  88. package/eui-button/index.js.map +1 -0
  89. package/eui-calendar/eui-wc-calendar.d.ts +27 -0
  90. package/eui-calendar/eui-wc-calendar.d.ts.map +1 -0
  91. package/eui-calendar/eui-wc-calendar.js +108 -0
  92. package/eui-calendar/eui-wc-calendar.js.map +1 -0
  93. package/eui-calendar/index.d.ts +2 -0
  94. package/eui-calendar/index.d.ts.map +1 -0
  95. package/eui-calendar/index.js +2 -0
  96. package/eui-calendar/index.js.map +1 -0
  97. package/eui-card/eui-wc-card.d.ts +21 -0
  98. package/eui-card/eui-wc-card.d.ts.map +1 -0
  99. package/eui-card/eui-wc-card.js +60 -0
  100. package/eui-card/eui-wc-card.js.map +1 -0
  101. package/eui-card/index.d.ts +2 -0
  102. package/eui-card/index.d.ts.map +1 -0
  103. package/eui-card/index.js +2 -0
  104. package/eui-card/index.js.map +1 -0
  105. package/eui-card-v2/eui-wc-card-v2.d.ts +15 -0
  106. package/eui-card-v2/eui-wc-card-v2.d.ts.map +1 -0
  107. package/eui-card-v2/eui-wc-card-v2.js +44 -0
  108. package/eui-card-v2/eui-wc-card-v2.js.map +1 -0
  109. package/eui-card-v2/index.d.ts +2 -0
  110. package/eui-card-v2/index.d.ts.map +1 -0
  111. package/eui-card-v2/index.js +2 -0
  112. package/eui-card-v2/index.js.map +1 -0
  113. package/eui-chip/eui-wc-chip.d.ts +29 -0
  114. package/eui-chip/eui-wc-chip.d.ts.map +1 -0
  115. package/eui-chip/eui-wc-chip.js +133 -0
  116. package/eui-chip/eui-wc-chip.js.map +1 -0
  117. package/eui-chip/index.d.ts +2 -0
  118. package/eui-chip/index.d.ts.map +1 -0
  119. package/eui-chip/index.js +2 -0
  120. package/eui-chip/index.js.map +1 -0
  121. package/eui-comment-thread/eui-wc-comment-thread.d.ts +20 -0
  122. package/eui-comment-thread/eui-wc-comment-thread.d.ts.map +1 -0
  123. package/eui-comment-thread/eui-wc-comment-thread.js +52 -0
  124. package/eui-comment-thread/eui-wc-comment-thread.js.map +1 -0
  125. package/eui-comment-thread/index.d.ts +2 -0
  126. package/eui-comment-thread/index.d.ts.map +1 -0
  127. package/eui-comment-thread/index.js +2 -0
  128. package/eui-comment-thread/index.js.map +1 -0
  129. package/eui-content-card/eui-wc-content-card.d.ts +15 -0
  130. package/eui-content-card/eui-wc-content-card.d.ts.map +1 -0
  131. package/eui-content-card/eui-wc-content-card.js +52 -0
  132. package/eui-content-card/eui-wc-content-card.js.map +1 -0
  133. package/eui-content-card/index.d.ts +2 -0
  134. package/eui-content-card/index.d.ts.map +1 -0
  135. package/eui-content-card/index.js +2 -0
  136. package/eui-content-card/index.js.map +1 -0
  137. package/eui-dashboard-card/eui-wc-dashboard-card.d.ts +13 -0
  138. package/eui-dashboard-card/eui-wc-dashboard-card.d.ts.map +1 -0
  139. package/eui-dashboard-card/eui-wc-dashboard-card.js +42 -0
  140. package/eui-dashboard-card/eui-wc-dashboard-card.js.map +1 -0
  141. package/eui-dashboard-card/index.d.ts +2 -0
  142. package/eui-dashboard-card/index.d.ts.map +1 -0
  143. package/eui-dashboard-card/index.js +2 -0
  144. package/eui-dashboard-card/index.js.map +1 -0
  145. package/eui-date-block/eui-wc-date-block.d.ts +14 -0
  146. package/eui-date-block/eui-wc-date-block.d.ts.map +1 -0
  147. package/eui-date-block/eui-wc-date-block.js +40 -0
  148. package/eui-date-block/eui-wc-date-block.js.map +1 -0
  149. package/eui-date-block/index.d.ts +2 -0
  150. package/eui-date-block/index.d.ts.map +1 -0
  151. package/eui-date-block/index.js +2 -0
  152. package/eui-date-block/index.js.map +1 -0
  153. package/eui-date-range-selector/eui-wc-date-range-selector.d.ts +29 -0
  154. package/eui-date-range-selector/eui-wc-date-range-selector.d.ts.map +1 -0
  155. package/eui-date-range-selector/eui-wc-date-range-selector.js +78 -0
  156. package/eui-date-range-selector/eui-wc-date-range-selector.js.map +1 -0
  157. package/eui-date-range-selector/index.d.ts +2 -0
  158. package/eui-date-range-selector/index.d.ts.map +1 -0
  159. package/eui-date-range-selector/index.js +2 -0
  160. package/eui-date-range-selector/index.js.map +1 -0
  161. package/eui-datepicker/eui-wc-datepicker.d.ts +26 -0
  162. package/eui-datepicker/eui-wc-datepicker.d.ts.map +1 -0
  163. package/eui-datepicker/eui-wc-datepicker.js +87 -0
  164. package/eui-datepicker/eui-wc-datepicker.js.map +1 -0
  165. package/eui-datepicker/index.d.ts +2 -0
  166. package/eui-datepicker/index.d.ts.map +1 -0
  167. package/eui-datepicker/index.js +2 -0
  168. package/eui-datepicker/index.js.map +1 -0
  169. package/eui-dialog/eui-wc-dialog.d.ts +17 -0
  170. package/eui-dialog/eui-wc-dialog.d.ts.map +1 -0
  171. package/eui-dialog/eui-wc-dialog.js +56 -0
  172. package/eui-dialog/eui-wc-dialog.js.map +1 -0
  173. package/eui-dialog/index.d.ts +2 -0
  174. package/eui-dialog/index.d.ts.map +1 -0
  175. package/eui-dialog/index.js +2 -0
  176. package/eui-dialog/index.js.map +1 -0
  177. package/eui-disable-content/eui-wc-disable-content.d.ts +14 -0
  178. package/eui-disable-content/eui-wc-disable-content.d.ts.map +1 -0
  179. package/eui-disable-content/eui-wc-disable-content.js +40 -0
  180. package/eui-disable-content/eui-wc-disable-content.js.map +1 -0
  181. package/eui-disable-content/index.d.ts +2 -0
  182. package/eui-disable-content/index.d.ts.map +1 -0
  183. package/eui-disable-content/index.js +2 -0
  184. package/eui-disable-content/index.js.map +1 -0
  185. package/eui-discussion-thread/eui-wc-discussion-thread.d.ts +19 -0
  186. package/eui-discussion-thread/eui-wc-discussion-thread.d.ts.map +1 -0
  187. package/eui-discussion-thread/eui-wc-discussion-thread.js +42 -0
  188. package/eui-discussion-thread/eui-wc-discussion-thread.js.map +1 -0
  189. package/eui-discussion-thread/index.d.ts +2 -0
  190. package/eui-discussion-thread/index.d.ts.map +1 -0
  191. package/eui-discussion-thread/index.js +2 -0
  192. package/eui-discussion-thread/index.js.map +1 -0
  193. package/eui-dropdown/eui-wc-dropdown.d.ts +15 -0
  194. package/eui-dropdown/eui-wc-dropdown.d.ts.map +1 -0
  195. package/eui-dropdown/eui-wc-dropdown.js +41 -0
  196. package/eui-dropdown/eui-wc-dropdown.js.map +1 -0
  197. package/eui-dropdown/index.d.ts +2 -0
  198. package/eui-dropdown/index.d.ts.map +1 -0
  199. package/eui-dropdown/index.js +2 -0
  200. package/eui-dropdown/index.js.map +1 -0
  201. package/eui-feedback-message/eui-wc-feedback-message.d.ts +30 -0
  202. package/eui-feedback-message/eui-wc-feedback-message.d.ts.map +1 -0
  203. package/eui-feedback-message/eui-wc-feedback-message.js +94 -0
  204. package/eui-feedback-message/eui-wc-feedback-message.js.map +1 -0
  205. package/eui-feedback-message/index.d.ts +2 -0
  206. package/eui-feedback-message/index.d.ts.map +1 -0
  207. package/eui-feedback-message/index.js +2 -0
  208. package/eui-feedback-message/index.js.map +1 -0
  209. package/eui-fieldset/eui-wc-fieldset.d.ts +19 -0
  210. package/eui-fieldset/eui-wc-fieldset.d.ts.map +1 -0
  211. package/eui-fieldset/eui-wc-fieldset.js +72 -0
  212. package/eui-fieldset/eui-wc-fieldset.js.map +1 -0
  213. package/eui-fieldset/index.d.ts +2 -0
  214. package/eui-fieldset/index.d.ts.map +1 -0
  215. package/eui-fieldset/index.js +2 -0
  216. package/eui-fieldset/index.js.map +1 -0
  217. package/eui-file-upload/eui-wc-file-upload.d.ts +20 -0
  218. package/eui-file-upload/eui-wc-file-upload.d.ts.map +1 -0
  219. package/eui-file-upload/eui-wc-file-upload.js +84 -0
  220. package/eui-file-upload/eui-wc-file-upload.js.map +1 -0
  221. package/eui-file-upload/index.d.ts +2 -0
  222. package/eui-file-upload/index.d.ts.map +1 -0
  223. package/eui-file-upload/index.js +2 -0
  224. package/eui-file-upload/index.js.map +1 -0
  225. package/eui-floating-panel/eui-wc-floating-panel.d.ts +16 -0
  226. package/eui-floating-panel/eui-wc-floating-panel.d.ts.map +1 -0
  227. package/eui-floating-panel/eui-wc-floating-panel.js +42 -0
  228. package/eui-floating-panel/eui-wc-floating-panel.js.map +1 -0
  229. package/eui-floating-panel/index.d.ts +2 -0
  230. package/eui-floating-panel/index.d.ts.map +1 -0
  231. package/eui-floating-panel/index.js +2 -0
  232. package/eui-floating-panel/index.js.map +1 -0
  233. package/eui-growl/eui-wc-growl.d.ts +20 -0
  234. package/eui-growl/eui-wc-growl.d.ts.map +1 -0
  235. package/eui-growl/eui-wc-growl.js +44 -0
  236. package/eui-growl/eui-wc-growl.js.map +1 -0
  237. package/eui-growl/index.d.ts +2 -0
  238. package/eui-growl/index.d.ts.map +1 -0
  239. package/eui-growl/index.js +2 -0
  240. package/eui-growl/index.js.map +1 -0
  241. package/eui-helper-text/eui-wc-helper-text.d.ts +21 -0
  242. package/eui-helper-text/eui-wc-helper-text.d.ts.map +1 -0
  243. package/eui-helper-text/eui-wc-helper-text.js +42 -0
  244. package/eui-helper-text/eui-wc-helper-text.js.map +1 -0
  245. package/eui-helper-text/index.d.ts +2 -0
  246. package/eui-helper-text/index.d.ts.map +1 -0
  247. package/eui-helper-text/index.js +2 -0
  248. package/eui-helper-text/index.js.map +1 -0
  249. package/eui-icon/eui-wc-icon.d.ts +59 -0
  250. package/eui-icon/eui-wc-icon.d.ts.map +1 -0
  251. package/eui-icon/eui-wc-icon.js +258 -0
  252. package/eui-icon/eui-wc-icon.js.map +1 -0
  253. package/eui-icon/index.d.ts +2 -0
  254. package/eui-icon/index.d.ts.map +1 -0
  255. package/eui-icon/index.js +2 -0
  256. package/eui-icon/index.js.map +1 -0
  257. package/eui-icon-button/eui-wc-icon-button.d.ts +37 -0
  258. package/eui-icon-button/eui-wc-icon-button.d.ts.map +1 -0
  259. package/eui-icon-button/eui-wc-icon-button.js +148 -0
  260. package/eui-icon-button/eui-wc-icon-button.js.map +1 -0
  261. package/eui-icon-button/index.d.ts +2 -0
  262. package/eui-icon-button/index.d.ts.map +1 -0
  263. package/eui-icon-button/index.js +2 -0
  264. package/eui-icon-button/index.js.map +1 -0
  265. package/eui-icon-button-expander/eui-wc-icon-button-expander.d.ts +31 -0
  266. package/eui-icon-button-expander/eui-wc-icon-button-expander.d.ts.map +1 -0
  267. package/eui-icon-button-expander/eui-wc-icon-button-expander.js +119 -0
  268. package/eui-icon-button-expander/eui-wc-icon-button-expander.js.map +1 -0
  269. package/eui-icon-button-expander/index.d.ts +2 -0
  270. package/eui-icon-button-expander/index.d.ts.map +1 -0
  271. package/eui-icon-button-expander/index.js +2 -0
  272. package/eui-icon-button-expander/index.js.map +1 -0
  273. package/eui-icon-input/eui-wc-icon-input.d.ts +13 -0
  274. package/eui-icon-input/eui-wc-icon-input.d.ts.map +1 -0
  275. package/eui-icon-input/eui-wc-icon-input.js +33 -0
  276. package/eui-icon-input/eui-wc-icon-input.js.map +1 -0
  277. package/eui-icon-input/index.d.ts +2 -0
  278. package/eui-icon-input/index.d.ts.map +1 -0
  279. package/eui-icon-input/index.js +2 -0
  280. package/eui-icon-input/index.js.map +1 -0
  281. package/eui-icon-toggle/eui-wc-icon-toggle.d.ts +40 -0
  282. package/eui-icon-toggle/eui-wc-icon-toggle.d.ts.map +1 -0
  283. package/eui-icon-toggle/eui-wc-icon-toggle.js +137 -0
  284. package/eui-icon-toggle/eui-wc-icon-toggle.js.map +1 -0
  285. package/eui-icon-toggle/index.d.ts +2 -0
  286. package/eui-icon-toggle/index.d.ts.map +1 -0
  287. package/eui-icon-toggle/index.js +2 -0
  288. package/eui-icon-toggle/index.js.map +1 -0
  289. package/eui-input-button/eui-wc-input-button.d.ts +29 -0
  290. package/eui-input-button/eui-wc-input-button.d.ts.map +1 -0
  291. package/eui-input-button/eui-wc-input-button.js +57 -0
  292. package/eui-input-button/eui-wc-input-button.js.map +1 -0
  293. package/eui-input-button/index.d.ts +2 -0
  294. package/eui-input-button/index.d.ts.map +1 -0
  295. package/eui-input-button/index.js +2 -0
  296. package/eui-input-button/index.js.map +1 -0
  297. package/eui-input-checkbox/eui-wc-input-checkbox.d.ts +19 -0
  298. package/eui-input-checkbox/eui-wc-input-checkbox.d.ts.map +1 -0
  299. package/eui-input-checkbox/eui-wc-input-checkbox.js +59 -0
  300. package/eui-input-checkbox/eui-wc-input-checkbox.js.map +1 -0
  301. package/eui-input-checkbox/index.d.ts +2 -0
  302. package/eui-input-checkbox/index.d.ts.map +1 -0
  303. package/eui-input-checkbox/index.js +2 -0
  304. package/eui-input-checkbox/index.js.map +1 -0
  305. package/eui-input-number/eui-wc-input-number.d.ts +20 -0
  306. package/eui-input-number/eui-wc-input-number.d.ts.map +1 -0
  307. package/eui-input-number/eui-wc-input-number.js +66 -0
  308. package/eui-input-number/eui-wc-input-number.js.map +1 -0
  309. package/eui-input-number/index.d.ts +2 -0
  310. package/eui-input-number/index.d.ts.map +1 -0
  311. package/eui-input-number/index.js +2 -0
  312. package/eui-input-number/index.js.map +1 -0
  313. package/eui-input-radio/eui-wc-input-radio.d.ts +18 -0
  314. package/eui-input-radio/eui-wc-input-radio.d.ts.map +1 -0
  315. package/eui-input-radio/eui-wc-input-radio.js +54 -0
  316. package/eui-input-radio/eui-wc-input-radio.js.map +1 -0
  317. package/eui-input-radio/index.d.ts +2 -0
  318. package/eui-input-radio/index.d.ts.map +1 -0
  319. package/eui-input-radio/index.js +2 -0
  320. package/eui-input-radio/index.js.map +1 -0
  321. package/eui-input-text/eui-wc-input-text.d.ts +22 -0
  322. package/eui-input-text/eui-wc-input-text.d.ts.map +1 -0
  323. package/eui-input-text/eui-wc-input-text.js +72 -0
  324. package/eui-input-text/eui-wc-input-text.js.map +1 -0
  325. package/eui-input-text/index.d.ts +2 -0
  326. package/eui-input-text/index.d.ts.map +1 -0
  327. package/eui-input-text/index.js +2 -0
  328. package/eui-input-text/index.js.map +1 -0
  329. package/eui-label/eui-wc-label.d.ts +35 -0
  330. package/eui-label/eui-wc-label.d.ts.map +1 -0
  331. package/eui-label/eui-wc-label.js +98 -0
  332. package/eui-label/eui-wc-label.js.map +1 -0
  333. package/eui-label/index.d.ts +2 -0
  334. package/eui-label/index.d.ts.map +1 -0
  335. package/eui-label/index.js +2 -0
  336. package/eui-label/index.js.map +1 -0
  337. package/eui-language-selector/eui-wc-language-selector.d.ts +19 -0
  338. package/eui-language-selector/eui-wc-language-selector.d.ts.map +1 -0
  339. package/eui-language-selector/eui-wc-language-selector.js +42 -0
  340. package/eui-language-selector/eui-wc-language-selector.js.map +1 -0
  341. package/eui-language-selector/index.d.ts +2 -0
  342. package/eui-language-selector/index.d.ts.map +1 -0
  343. package/eui-language-selector/index.js +2 -0
  344. package/eui-language-selector/index.js.map +1 -0
  345. package/eui-list/eui-wc-list.d.ts +22 -0
  346. package/eui-list/eui-wc-list.d.ts.map +1 -0
  347. package/eui-list/eui-wc-list.js +74 -0
  348. package/eui-list/eui-wc-list.js.map +1 -0
  349. package/eui-list/index.d.ts +2 -0
  350. package/eui-list/index.d.ts.map +1 -0
  351. package/eui-list/index.js +2 -0
  352. package/eui-list/index.js.map +1 -0
  353. package/eui-menu/eui-wc-menu.d.ts +23 -0
  354. package/eui-menu/eui-wc-menu.d.ts.map +1 -0
  355. package/eui-menu/eui-wc-menu.js +45 -0
  356. package/eui-menu/eui-wc-menu.js.map +1 -0
  357. package/eui-menu/index.d.ts +2 -0
  358. package/eui-menu/index.d.ts.map +1 -0
  359. package/eui-menu/index.js +2 -0
  360. package/eui-menu/index.js.map +1 -0
  361. package/eui-message-box/eui-wc-message-box.d.ts +22 -0
  362. package/eui-message-box/eui-wc-message-box.d.ts.map +1 -0
  363. package/eui-message-box/eui-wc-message-box.js +71 -0
  364. package/eui-message-box/eui-wc-message-box.js.map +1 -0
  365. package/eui-message-box/index.d.ts +2 -0
  366. package/eui-message-box/index.d.ts.map +1 -0
  367. package/eui-message-box/index.js +2 -0
  368. package/eui-message-box/index.js.map +1 -0
  369. package/eui-overlay/eui-wc-overlay.d.ts +13 -0
  370. package/eui-overlay/eui-wc-overlay.d.ts.map +1 -0
  371. package/eui-overlay/eui-wc-overlay.js +37 -0
  372. package/eui-overlay/eui-wc-overlay.js.map +1 -0
  373. package/eui-overlay/index.d.ts +2 -0
  374. package/eui-overlay/index.d.ts.map +1 -0
  375. package/eui-overlay/index.js +2 -0
  376. package/eui-overlay/index.js.map +1 -0
  377. package/eui-page/eui-wc-page.d.ts +13 -0
  378. package/eui-page/eui-wc-page.d.ts.map +1 -0
  379. package/eui-page/eui-wc-page.js +38 -0
  380. package/eui-page/eui-wc-page.js.map +1 -0
  381. package/eui-page/index.d.ts +2 -0
  382. package/eui-page/index.d.ts.map +1 -0
  383. package/eui-page/index.js +2 -0
  384. package/eui-page/index.js.map +1 -0
  385. package/eui-paginator/eui-wc-paginator.d.ts +23 -0
  386. package/eui-paginator/eui-wc-paginator.d.ts.map +1 -0
  387. package/eui-paginator/eui-wc-paginator.js +74 -0
  388. package/eui-paginator/eui-wc-paginator.js.map +1 -0
  389. package/eui-paginator/index.d.ts +2 -0
  390. package/eui-paginator/index.d.ts.map +1 -0
  391. package/eui-paginator/index.js +2 -0
  392. package/eui-paginator/index.js.map +1 -0
  393. package/eui-phone-picker/eui-wc-phone-picker.d.ts +26 -0
  394. package/eui-phone-picker/eui-wc-phone-picker.d.ts.map +1 -0
  395. package/eui-phone-picker/eui-wc-phone-picker.js +73 -0
  396. package/eui-phone-picker/eui-wc-phone-picker.js.map +1 -0
  397. package/eui-phone-picker/index.d.ts +2 -0
  398. package/eui-phone-picker/index.d.ts.map +1 -0
  399. package/eui-phone-picker/index.js +2 -0
  400. package/eui-phone-picker/index.js.map +1 -0
  401. package/eui-popover/eui-wc-popover.d.ts +16 -0
  402. package/eui-popover/eui-wc-popover.d.ts.map +1 -0
  403. package/eui-popover/eui-wc-popover.js +58 -0
  404. package/eui-popover/eui-wc-popover.js.map +1 -0
  405. package/eui-popover/index.d.ts +2 -0
  406. package/eui-popover/index.d.ts.map +1 -0
  407. package/eui-popover/index.js +2 -0
  408. package/eui-popover/index.js.map +1 -0
  409. package/eui-progress-bar/eui-wc-progress-bar.d.ts +40 -0
  410. package/eui-progress-bar/eui-wc-progress-bar.d.ts.map +1 -0
  411. package/eui-progress-bar/eui-wc-progress-bar.js +199 -0
  412. package/eui-progress-bar/eui-wc-progress-bar.js.map +1 -0
  413. package/eui-progress-bar/index.d.ts +2 -0
  414. package/eui-progress-bar/index.d.ts.map +1 -0
  415. package/eui-progress-bar/index.js +2 -0
  416. package/eui-progress-bar/index.js.map +1 -0
  417. package/eui-progress-circle/eui-wc-progress-circle.d.ts +38 -0
  418. package/eui-progress-circle/eui-wc-progress-circle.d.ts.map +1 -0
  419. package/eui-progress-circle/eui-wc-progress-circle.js +306 -0
  420. package/eui-progress-circle/eui-wc-progress-circle.js.map +1 -0
  421. package/eui-progress-circle/index.d.ts +2 -0
  422. package/eui-progress-circle/index.d.ts.map +1 -0
  423. package/eui-progress-circle/index.js +2 -0
  424. package/eui-progress-circle/index.js.map +1 -0
  425. package/eui-rating/eui-wc-rating.d.ts +39 -0
  426. package/eui-rating/eui-wc-rating.d.ts.map +1 -0
  427. package/eui-rating/eui-wc-rating.js +177 -0
  428. package/eui-rating/eui-wc-rating.js.map +1 -0
  429. package/eui-rating/index.d.ts +2 -0
  430. package/eui-rating/index.d.ts.map +1 -0
  431. package/eui-rating/index.js +2 -0
  432. package/eui-rating/index.js.map +1 -0
  433. package/eui-section-header/eui-wc-section-header.d.ts +13 -0
  434. package/eui-section-header/eui-wc-section-header.d.ts.map +1 -0
  435. package/eui-section-header/eui-wc-section-header.js +36 -0
  436. package/eui-section-header/eui-wc-section-header.js.map +1 -0
  437. package/eui-section-header/index.d.ts +2 -0
  438. package/eui-section-header/index.d.ts.map +1 -0
  439. package/eui-section-header/index.js +2 -0
  440. package/eui-section-header/index.js.map +1 -0
  441. package/eui-select/eui-wc-select.d.ts +23 -0
  442. package/eui-select/eui-wc-select.d.ts.map +1 -0
  443. package/eui-select/eui-wc-select.js +67 -0
  444. package/eui-select/eui-wc-select.js.map +1 -0
  445. package/eui-select/index.d.ts +2 -0
  446. package/eui-select/index.d.ts.map +1 -0
  447. package/eui-select/index.js +2 -0
  448. package/eui-select/index.js.map +1 -0
  449. package/eui-skeleton/eui-wc-skeleton.d.ts +13 -0
  450. package/eui-skeleton/eui-wc-skeleton.d.ts.map +1 -0
  451. package/eui-skeleton/eui-wc-skeleton.js +35 -0
  452. package/eui-skeleton/eui-wc-skeleton.js.map +1 -0
  453. package/eui-skeleton/index.d.ts +2 -0
  454. package/eui-skeleton/index.d.ts.map +1 -0
  455. package/eui-skeleton/index.js +2 -0
  456. package/eui-skeleton/index.js.map +1 -0
  457. package/eui-slide-toggle/eui-wc-slide-toggle.d.ts +20 -0
  458. package/eui-slide-toggle/eui-wc-slide-toggle.d.ts.map +1 -0
  459. package/eui-slide-toggle/eui-wc-slide-toggle.js +93 -0
  460. package/eui-slide-toggle/eui-wc-slide-toggle.js.map +1 -0
  461. package/eui-slide-toggle/index.d.ts +2 -0
  462. package/eui-slide-toggle/index.d.ts.map +1 -0
  463. package/eui-slide-toggle/index.js +2 -0
  464. package/eui-slide-toggle/index.js.map +1 -0
  465. package/eui-slider/eui-wc-slider.d.ts +18 -0
  466. package/eui-slider/eui-wc-slider.d.ts.map +1 -0
  467. package/eui-slider/eui-wc-slider.js +57 -0
  468. package/eui-slider/eui-wc-slider.js.map +1 -0
  469. package/eui-slider/index.d.ts +2 -0
  470. package/eui-slider/index.d.ts.map +1 -0
  471. package/eui-slider/index.js +2 -0
  472. package/eui-slider/index.js.map +1 -0
  473. package/eui-split-button/eui-wc-split-button.d.ts +11 -0
  474. package/eui-split-button/eui-wc-split-button.d.ts.map +1 -0
  475. package/eui-split-button/eui-wc-split-button.js +17 -0
  476. package/eui-split-button/eui-wc-split-button.js.map +1 -0
  477. package/eui-split-button/index.d.ts +2 -0
  478. package/eui-split-button/index.d.ts.map +1 -0
  479. package/eui-split-button/index.js +2 -0
  480. package/eui-split-button/index.js.map +1 -0
  481. package/eui-status-badge/eui-wc-status-badge.d.ts +15 -0
  482. package/eui-status-badge/eui-wc-status-badge.d.ts.map +1 -0
  483. package/eui-status-badge/eui-wc-status-badge.js +45 -0
  484. package/eui-status-badge/eui-wc-status-badge.js.map +1 -0
  485. package/eui-status-badge/index.d.ts +2 -0
  486. package/eui-status-badge/index.d.ts.map +1 -0
  487. package/eui-status-badge/index.js +2 -0
  488. package/eui-status-badge/index.js.map +1 -0
  489. package/eui-table/eui-wc-table.d.ts +26 -0
  490. package/eui-table/eui-wc-table.d.ts.map +1 -0
  491. package/eui-table/eui-wc-table.js +84 -0
  492. package/eui-table/eui-wc-table.js.map +1 -0
  493. package/eui-table/index.d.ts +2 -0
  494. package/eui-table/index.d.ts.map +1 -0
  495. package/eui-table/index.js +2 -0
  496. package/eui-table/index.js.map +1 -0
  497. package/eui-tabs/eui-wc-tabs.d.ts +26 -0
  498. package/eui-tabs/eui-wc-tabs.d.ts.map +1 -0
  499. package/eui-tabs/eui-wc-tabs.js +78 -0
  500. package/eui-tabs/eui-wc-tabs.js.map +1 -0
  501. package/eui-tabs/index.d.ts +2 -0
  502. package/eui-tabs/index.d.ts.map +1 -0
  503. package/eui-tabs/index.js +2 -0
  504. package/eui-tabs/index.js.map +1 -0
  505. package/eui-textarea/eui-wc-textarea.d.ts +18 -0
  506. package/eui-textarea/eui-wc-textarea.d.ts.map +1 -0
  507. package/eui-textarea/eui-wc-textarea.js +63 -0
  508. package/eui-textarea/eui-wc-textarea.js.map +1 -0
  509. package/eui-textarea/index.d.ts +2 -0
  510. package/eui-textarea/index.d.ts.map +1 -0
  511. package/eui-textarea/index.js +2 -0
  512. package/eui-textarea/index.js.map +1 -0
  513. package/eui-timeline/eui-wc-timeline.d.ts +29 -0
  514. package/eui-timeline/eui-wc-timeline.d.ts.map +1 -0
  515. package/eui-timeline/eui-wc-timeline.js +119 -0
  516. package/eui-timeline/eui-wc-timeline.js.map +1 -0
  517. package/eui-timeline/index.d.ts +2 -0
  518. package/eui-timeline/index.d.ts.map +1 -0
  519. package/eui-timeline/index.js +2 -0
  520. package/eui-timeline/index.js.map +1 -0
  521. package/eui-timepicker/eui-wc-timepicker.d.ts +32 -0
  522. package/eui-timepicker/eui-wc-timepicker.d.ts.map +1 -0
  523. package/eui-timepicker/eui-wc-timepicker.js +102 -0
  524. package/eui-timepicker/eui-wc-timepicker.js.map +1 -0
  525. package/eui-timepicker/index.d.ts +2 -0
  526. package/eui-timepicker/index.d.ts.map +1 -0
  527. package/eui-timepicker/index.js +2 -0
  528. package/eui-timepicker/index.js.map +1 -0
  529. package/eui-toggle-group/eui-wc-toggle-group.d.ts +26 -0
  530. package/eui-toggle-group/eui-wc-toggle-group.d.ts.map +1 -0
  531. package/eui-toggle-group/eui-wc-toggle-group.js +80 -0
  532. package/eui-toggle-group/eui-wc-toggle-group.js.map +1 -0
  533. package/eui-toggle-group/index.d.ts +2 -0
  534. package/eui-toggle-group/index.d.ts.map +1 -0
  535. package/eui-toggle-group/index.js +2 -0
  536. package/eui-toggle-group/index.js.map +1 -0
  537. package/eui-tree/eui-wc-tree.d.ts +28 -0
  538. package/eui-tree/eui-wc-tree.d.ts.map +1 -0
  539. package/eui-tree/eui-wc-tree.js +57 -0
  540. package/eui-tree/eui-wc-tree.js.map +1 -0
  541. package/eui-tree/index.d.ts +2 -0
  542. package/eui-tree/index.d.ts.map +1 -0
  543. package/eui-tree/index.js +2 -0
  544. package/eui-tree/index.js.map +1 -0
  545. package/eui-tree-list/eui-wc-tree-list.d.ts +22 -0
  546. package/eui-tree-list/eui-wc-tree-list.d.ts.map +1 -0
  547. package/eui-tree-list/eui-wc-tree-list.js +51 -0
  548. package/eui-tree-list/eui-wc-tree-list.js.map +1 -0
  549. package/eui-tree-list/index.d.ts +2 -0
  550. package/eui-tree-list/index.d.ts.map +1 -0
  551. package/eui-tree-list/index.js +2 -0
  552. package/eui-tree-list/index.js.map +1 -0
  553. package/eui-user-profile/eui-wc-user-profile.d.ts +18 -0
  554. package/eui-user-profile/eui-wc-user-profile.d.ts.map +1 -0
  555. package/eui-user-profile/eui-wc-user-profile.js +52 -0
  556. package/eui-user-profile/eui-wc-user-profile.js.map +1 -0
  557. package/eui-user-profile/index.d.ts +2 -0
  558. package/eui-user-profile/index.d.ts.map +1 -0
  559. package/eui-user-profile/index.js +2 -0
  560. package/eui-user-profile/index.js.map +1 -0
  561. package/eui-wizard/eui-wc-wizard.d.ts +23 -0
  562. package/eui-wizard/eui-wc-wizard.d.ts.map +1 -0
  563. package/eui-wizard/eui-wc-wizard.js +75 -0
  564. package/eui-wizard/eui-wc-wizard.js.map +1 -0
  565. package/eui-wizard/index.d.ts +2 -0
  566. package/eui-wizard/index.d.ts.map +1 -0
  567. package/eui-wizard/index.js +2 -0
  568. package/eui-wizard/index.js.map +1 -0
  569. package/index.d.ts +72 -0
  570. package/index.d.ts.map +1 -0
  571. package/index.js +80 -0
  572. package/index.js.map +1 -0
  573. package/package.json +322 -4
  574. package/README.md +0 -3
@@ -0,0 +1,118 @@
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 { LitElement, html, css } from 'lit';
8
+ import { customElement, property, state } from 'lit/decorators.js';
9
+ let EuiWcAutocompleteV2 = class EuiWcAutocompleteV2 extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.autocompleteData = [];
13
+ this.placeholder = '';
14
+ this.matching = 'contains';
15
+ this.hasChips = false;
16
+ this.chipsPosition = 'top';
17
+ this.isDisabled = false;
18
+ this.isLoading = false;
19
+ this.isOpen = false;
20
+ this.e2eAttr = 'eui-wc-autocomplete-v2';
21
+ this._query = '';
22
+ this._chips = [];
23
+ }
24
+ static { this.styles = css `
25
+ :host { display: inline-flex; flex-direction: column; position: relative; width: 100%; }
26
+ .chips { display: flex; flex-wrap: wrap; gap: var(--eui-s-3xs); margin-bottom: var(--eui-s-3xs); }
27
+ .chip { align-items: center; background: var(--eui-c-secondary-surface-light); border-radius: var(--eui-br-max); display: inline-flex; font: var(--eui-f-s); gap: var(--eui-s-3xs); padding: 1px var(--eui-s-xs); }
28
+ .chip button { background: none; border: none; cursor: pointer; font-size: 0.75rem; line-height: 1; padding: 0; }
29
+ input { background: var(--eui-c-surface-container); border: 1px solid var(--eui-c-secondary-border); border-radius: var(--eui-br-s); font: var(--eui-f-m); padding: var(--eui-s-xs) var(--eui-s-m); width: 100%; }
30
+ input:focus { border-color: var(--eui-c-primary); outline: none; }
31
+ .panel { background: var(--eui-c-white); border: 1px solid var(--eui-c-secondary-border); border-radius: var(--eui-br-s); box-shadow: var(--eui-sh-2); left: 0; max-height: 200px; overflow-y: auto; position: absolute; top: 100%; width: 100%; z-index: 100; }
32
+ .option { cursor: pointer; font: var(--eui-f-m); padding: var(--eui-s-xs) var(--eui-s-m); }
33
+ .option:hover { background: var(--eui-c-hover); }
34
+ .group-label { color: var(--eui-c-text-light); font: var(--eui-f-s-semi-bold); padding: var(--eui-s-2xs) var(--eui-s-m); }
35
+ :host(:not([is-open])) .panel { display: none; }
36
+ `; }
37
+ get _filtered() {
38
+ if (!this._query)
39
+ return this.autocompleteData;
40
+ const q = this._query.toLowerCase();
41
+ return this.autocompleteData.filter((i) => this.matching === 'startWith' ? i.label.toLowerCase().startsWith(q) : i.label.toLowerCase().includes(q));
42
+ }
43
+ _select(item) {
44
+ if (this.hasChips) {
45
+ this._chips = [...this._chips, item];
46
+ this._query = '';
47
+ }
48
+ else {
49
+ this._query = item.label;
50
+ }
51
+ this.isOpen = false;
52
+ this.dispatchEvent(new CustomEvent('eui-option-selected', { detail: item, bubbles: true, composed: true }));
53
+ }
54
+ _removeChip(item) {
55
+ this._chips = this._chips.filter((c) => c !== item);
56
+ this.dispatchEvent(new CustomEvent('eui-chip-removed', { detail: item, bubbles: true, composed: true }));
57
+ }
58
+ _renderChips() {
59
+ return html `<div class="chips">${this._chips.map((c) => html `<span class="chip">${c.label}<button type="button" @click=${() => this._removeChip(c)}>×</button></span>`)}</div>`;
60
+ }
61
+ _renderGrouped() {
62
+ const groups = {};
63
+ this._filtered.forEach((i) => { const g = String(i[this.groupBy] ?? ''); groups[g] = groups[g] ?? []; groups[g].push(i); });
64
+ return html `${Object.entries(groups).map(([g, opts]) => html `<div class="group-label">${g}</div>${opts.map((o) => html `<div class="option" role="option" @click=${() => this._select(o)}>${o.label}</div>`)}`)}`;
65
+ }
66
+ render() {
67
+ return html `
68
+ ${this.hasChips && this.chipsPosition === 'top' ? this._renderChips() : ''}
69
+ <input placeholder=${this.placeholder} .value=${this._query} ?disabled=${this.isDisabled} @input=${(e) => { this._query = e.target.value; this.isOpen = true; }} @focus=${() => { this.isOpen = true; }} />
70
+ ${this.hasChips && this.chipsPosition === 'bottom' ? this._renderChips() : ''}
71
+ <div class="panel" role="listbox">
72
+ ${this.groupBy ? this._renderGrouped() : this._filtered.map((item) => html `<div class="option" role="option" @click=${() => this._select(item)}>${item.label}</div>`)}
73
+ ${this.isLoading ? html `<div class="option">Loading…</div>` : ''}
74
+ </div>
75
+ `;
76
+ }
77
+ };
78
+ __decorate([
79
+ property({ type: Array })
80
+ ], EuiWcAutocompleteV2.prototype, "autocompleteData", void 0);
81
+ __decorate([
82
+ property()
83
+ ], EuiWcAutocompleteV2.prototype, "placeholder", void 0);
84
+ __decorate([
85
+ property()
86
+ ], EuiWcAutocompleteV2.prototype, "matching", void 0);
87
+ __decorate([
88
+ property({ attribute: 'group-by' })
89
+ ], EuiWcAutocompleteV2.prototype, "groupBy", void 0);
90
+ __decorate([
91
+ property({ attribute: 'has-chips', type: Boolean })
92
+ ], EuiWcAutocompleteV2.prototype, "hasChips", void 0);
93
+ __decorate([
94
+ property({ attribute: 'chips-position' })
95
+ ], EuiWcAutocompleteV2.prototype, "chipsPosition", void 0);
96
+ __decorate([
97
+ property({ attribute: 'is-disabled', type: Boolean, reflect: true })
98
+ ], EuiWcAutocompleteV2.prototype, "isDisabled", void 0);
99
+ __decorate([
100
+ property({ attribute: 'is-loading', type: Boolean, reflect: true })
101
+ ], EuiWcAutocompleteV2.prototype, "isLoading", void 0);
102
+ __decorate([
103
+ property({ attribute: 'is-open', type: Boolean, reflect: true })
104
+ ], EuiWcAutocompleteV2.prototype, "isOpen", void 0);
105
+ __decorate([
106
+ property({ attribute: 'data-e2e' })
107
+ ], EuiWcAutocompleteV2.prototype, "e2eAttr", void 0);
108
+ __decorate([
109
+ state()
110
+ ], EuiWcAutocompleteV2.prototype, "_query", void 0);
111
+ __decorate([
112
+ state()
113
+ ], EuiWcAutocompleteV2.prototype, "_chips", void 0);
114
+ EuiWcAutocompleteV2 = __decorate([
115
+ customElement('eui-wc-autocomplete-v2')
116
+ ], EuiWcAutocompleteV2);
117
+ export { EuiWcAutocompleteV2 };
118
+ //# sourceMappingURL=eui-wc-autocomplete-v2.js.map
@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mB;IAD/B,aAAa,CAAC,wBAAwB,CAAC;GAC3B,mBAAmB,CAiE/B"}
@@ -0,0 +1,2 @@
1
+ export { EuiWcAutocompleteV2, type EuiWcAutocompleteItemV2 } from './eui-wc-autocomplete-v2.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-autocomplete-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,KAAK,uBAAuB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EuiWcAutocompleteV2 } from './eui-wc-autocomplete-v2.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-autocomplete-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgC,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { LitElement } from 'lit';
2
+ export type EuiWcAvatarColor = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'critical';
3
+ export type EuiWcAvatarSize = 'xs' | 's' | 'm' | 'l';
4
+ /**
5
+ * `EuiWcAvatar` — Lit WC projection of `eui-avatar`.
6
+ *
7
+ * Usage:
8
+ * ```html
9
+ * <eui-wc-avatar label="John Doe" sub-label="Developer"></eui-wc-avatar>
10
+ * <eui-wc-avatar image-url="/assets/photo.jpg" size="l"></eui-wc-avatar>
11
+ * ```
12
+ */
13
+ export declare class EuiWcAvatar extends LitElement {
14
+ static styles: import("lit").CSSResult;
15
+ color?: EuiWcAvatarColor;
16
+ size: EuiWcAvatarSize;
17
+ imageUrl?: string;
18
+ initials?: string;
19
+ label?: string;
20
+ subLabel?: string;
21
+ icon?: string;
22
+ isOutline: boolean;
23
+ e2eAttr: string;
24
+ render(): import("lit-html").TemplateResult<1>;
25
+ }
26
+ declare global {
27
+ interface HTMLElementTagNameMap {
28
+ 'eui-wc-avatar': EuiWcAvatar;
29
+ }
30
+ }
31
+ //# sourceMappingURL=eui-wc-avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eui-wc-avatar.d.ts","sourceRoot":"","sources":["../../src/eui-avatar/eui-wc-avatar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAGrD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AACnG,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAErD;;;;;;;;GAQG;AACH,qBACa,WAAY,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAkCpB;IAE2B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,IAAI,EAAE,eAAe,CAAO;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACW,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IAC2C,SAAS,UAAS;IAClD,OAAO,SAAmB;IAEtD,MAAM;CAkBlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,eAAe,EAAE,WAAW,CAAC;KAAE;CACpE"}
@@ -0,0 +1,109 @@
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 { LitElement, html, css, nothing } from 'lit';
8
+ import { customElement, property } from 'lit/decorators.js';
9
+ /**
10
+ * `EuiWcAvatar` — Lit WC projection of `eui-avatar`.
11
+ *
12
+ * Usage:
13
+ * ```html
14
+ * <eui-wc-avatar label="John Doe" sub-label="Developer"></eui-wc-avatar>
15
+ * <eui-wc-avatar image-url="/assets/photo.jpg" size="l"></eui-wc-avatar>
16
+ * ```
17
+ */
18
+ let EuiWcAvatar = class EuiWcAvatar extends LitElement {
19
+ constructor() {
20
+ super(...arguments);
21
+ this.size = 'm';
22
+ this.isOutline = false;
23
+ this.e2eAttr = 'eui-wc-avatar';
24
+ }
25
+ static { this.styles = css `
26
+ :host {
27
+ --_eui-wc-av-size: 3rem;
28
+ --_eui-wc-av-bg: var(--eui-c-secondary-surface-light);
29
+ --_eui-wc-av-color: var(--eui-c-secondary-on-surface-light);
30
+ display: inline-flex; align-items: center; gap: var(--eui-s-xs);
31
+ }
32
+ :host([color='primary']) { --_eui-wc-av-bg: var(--eui-c-primary-surface); --_eui-wc-av-color: var(--eui-c-primary-on-surface); }
33
+ :host([color='neutral']) { --_eui-wc-av-bg: var(--eui-c-secondary-surface-light); --_eui-wc-av-color: var(--eui-c-secondary-on-surface-light); }
34
+ :host([color='info']) { --_eui-wc-av-bg: var(--eui-c-info-surface); --_eui-wc-av-color: var(--eui-c-info-on-surface); }
35
+ :host([color='success']) { --_eui-wc-av-bg: var(--eui-c-success-surface); --_eui-wc-av-color: var(--eui-c-success-on-surface); }
36
+ :host([color='warning']) { --_eui-wc-av-bg: var(--eui-c-warning-surface); --_eui-wc-av-color: var(--eui-c-warning-on-surface); }
37
+ :host([color='critical']) { --_eui-wc-av-bg: var(--eui-c-danger-surface); --_eui-wc-av-color: var(--eui-c-danger-on-surface); }
38
+ :host([size='xs']) { --_eui-wc-av-size: 1.5rem; }
39
+ :host([size='s']) { --_eui-wc-av-size: 2rem; }
40
+ :host([size='m']) { --_eui-wc-av-size: 3rem; }
41
+ :host([size='l']) { --_eui-wc-av-size: 4rem; }
42
+ .eui-avatar__picture {
43
+ align-items: center;
44
+ background-color: var(--_eui-wc-av-bg);
45
+ border-radius: var(--eui-br-max);
46
+ color: var(--_eui-wc-av-color);
47
+ display: flex;
48
+ flex-shrink: 0;
49
+ font: var(--eui-f-s-semi-bold);
50
+ height: var(--_eui-wc-av-size);
51
+ justify-content: center;
52
+ overflow: hidden;
53
+ width: var(--_eui-wc-av-size);
54
+ }
55
+ .eui-avatar__picture img { height: 100%; object-fit: cover; width: 100%; }
56
+ .eui-avatar__content { display: flex; flex-direction: column; }
57
+ .eui-avatar__content-label { font: var(--eui-f-s-semi-bold); }
58
+ .eui-avatar__content-sublabel { color: var(--eui-c-text-light); font: var(--eui-f-s); }
59
+ `; }
60
+ render() {
61
+ return html `
62
+ <div class="eui-avatar__picture">
63
+ ${this.imageUrl
64
+ ? html `<img src=${this.imageUrl} alt=${this.label ?? 'avatar'} />`
65
+ : html `${this.initials ?? (this.label?.slice(0, 2).toUpperCase() ?? '')}`}
66
+ <slot name="picture"></slot>
67
+ </div>
68
+ ${(this.label || this.subLabel) ? html `
69
+ <div class="eui-avatar__content">
70
+ ${this.label ? html `<span class="eui-avatar__content-label">${this.label}</span>` : nothing}
71
+ ${this.subLabel ? html `<span class="eui-avatar__content-sublabel">${this.subLabel}</span>` : nothing}
72
+ </div>
73
+ ` : nothing}
74
+ <slot></slot>
75
+ `;
76
+ }
77
+ };
78
+ __decorate([
79
+ property({ reflect: true })
80
+ ], EuiWcAvatar.prototype, "color", void 0);
81
+ __decorate([
82
+ property({ reflect: true })
83
+ ], EuiWcAvatar.prototype, "size", void 0);
84
+ __decorate([
85
+ property({ attribute: 'image-url' })
86
+ ], EuiWcAvatar.prototype, "imageUrl", void 0);
87
+ __decorate([
88
+ property()
89
+ ], EuiWcAvatar.prototype, "initials", void 0);
90
+ __decorate([
91
+ property()
92
+ ], EuiWcAvatar.prototype, "label", void 0);
93
+ __decorate([
94
+ property({ attribute: 'sub-label' })
95
+ ], EuiWcAvatar.prototype, "subLabel", void 0);
96
+ __decorate([
97
+ property()
98
+ ], EuiWcAvatar.prototype, "icon", void 0);
99
+ __decorate([
100
+ property({ attribute: 'is-outline', type: Boolean, reflect: true })
101
+ ], EuiWcAvatar.prototype, "isOutline", void 0);
102
+ __decorate([
103
+ property({ attribute: 'data-e2e' })
104
+ ], EuiWcAvatar.prototype, "e2eAttr", void 0);
105
+ EuiWcAvatar = __decorate([
106
+ customElement('eui-wc-avatar')
107
+ ], EuiWcAvatar);
108
+ export { EuiWcAvatar };
109
+ //# sourceMappingURL=eui-wc-avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eui-wc-avatar.js","sourceRoot":"","sources":["../../src/eui-avatar/eui-wc-avatar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D;;;;;;;;GAQG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QAsC0B,SAAI,GAAoB,GAAG,CAAC;QAMY,cAAS,GAAG,KAAK,CAAC;QAClD,YAAO,GAAG,eAAe,CAAC;IAoBnE,CAAC;aAhEmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkC3B,AAlCqB,CAkCpB;IAYO,MAAM;QACX,OAAO,IAAI,CAAA;;kBAED,IAAI,CAAC,QAAQ;YACX,CAAC,CAAC,IAAI,CAAA,YAAY,IAAI,CAAC,QAAQ,QAAQ,IAAI,CAAC,KAAK,IAAI,QAAQ,KAAK;YAClE,CAAC,CAAC,IAAI,CAAA,GAAG,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,EA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.d.ts","sourceRoot":"","sources":["../../src/eui-avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EuiWcAvatar } from './eui-wc-avatar.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA+C,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { LitElement } from 'lit';
2
+ export type EuiWcBadgeColor = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'critical';
3
+ export type EuiWcBadgeSize = 's' | 'm';
4
+ export type EuiWcBadgeVariant = 'filled' | 'outline';
5
+ /**
6
+ * `EuiWcBadge` — Lit Web Component projection of `eui-badge`.
7
+ *
8
+ * Small inline status/count indicator with color, size, variant, and truncation support.
9
+ *
10
+ * Usage:
11
+ * ```html
12
+ * <eui-wc-badge color="success" size="m">Active</eui-wc-badge>
13
+ * <eui-wc-badge color="critical" variant="outline">3</eui-wc-badge>
14
+ * ```
15
+ */
16
+ export declare class EuiWcBadge extends LitElement {
17
+ static styles: import("lit").CSSResult;
18
+ /** Color variant. @default 'neutral' */
19
+ color: EuiWcBadgeColor;
20
+ /** Size variant. @default 'm' */
21
+ size: EuiWcBadgeSize;
22
+ /** Style variant (filled vs outline). @default 'filled' */
23
+ variant: EuiWcBadgeVariant;
24
+ /** Extra color palette name (orthogonal to color union). */
25
+ colorPalette?: string;
26
+ /** Icon-only mode (removes wrapper padding). @default false */
27
+ isIconOnly: boolean;
28
+ /** Max characters before truncation (0 = no truncation). @default 0 */
29
+ maxCharCount: number;
30
+ /** Replacement string when truncated. Falls back to '99+'. @default '' */
31
+ charReplacement: string;
32
+ /** Accessible name for the role=status region. @default 'badge' */
33
+ ariaLabel: string | null;
34
+ /** `data-e2e` attribute. */
35
+ e2eAttr: string;
36
+ private _isEmpty;
37
+ private _truncatedText;
38
+ private _handleSlotChange;
39
+ render(): import("lit-html").TemplateResult<1>;
40
+ }
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ 'eui-wc-badge': EuiWcBadge;
44
+ }
45
+ }
46
+ //# sourceMappingURL=eui-wc-badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eui-wc-badge.d.ts","sourceRoot":"","sources":["../../src/eui-badge/eui-wc-badge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAGrD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAClG,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,GAAG,CAAC;AACvC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErD;;;;;;;;;;GAUG;AACH,qBACa,UAAW,SAAQ,UAAU;IACtC,OAAgB,MAAM,0BA4FpB;IAEF,wCAAwC;IACX,KAAK,EAAE,eAAe,CAAa;IAChE,iCAAiC;IACJ,IAAI,EAAE,cAAc,CAAO;IACxD,2DAA2D;IAC9B,OAAO,EAAE,iBAAiB,CAAY;IACnE,4DAA4D;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/E,+DAA+D;IACQ,UAAU,UAAS;IAC1F,uEAAuE;IAC3C,YAAY,SAAK;IAC7C,0EAA0E;IAC9D,eAAe,SAAM;IACjC,mEAAmE;IACb,SAAS,EAAE,MAAM,GAAG,IAAI,CAAW;IACzF,4BAA4B;IACS,OAAO,SAAkB;IAErD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,cAAc,CAAM;IAErC,OAAO,CAAC,iBAAiB;IAahB,MAAM;CAUlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,cAAc,EAAE,UAAU,CAAC;KAC9B;CACJ"}
@@ -0,0 +1,195 @@
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 { LitElement, html, css, nothing } from 'lit';
8
+ import { customElement, property, state } from 'lit/decorators.js';
9
+ /**
10
+ * `EuiWcBadge` — Lit Web Component projection of `eui-badge`.
11
+ *
12
+ * Small inline status/count indicator with color, size, variant, and truncation support.
13
+ *
14
+ * Usage:
15
+ * ```html
16
+ * <eui-wc-badge color="success" size="m">Active</eui-wc-badge>
17
+ * <eui-wc-badge color="critical" variant="outline">3</eui-wc-badge>
18
+ * ```
19
+ */
20
+ let EuiWcBadge = class EuiWcBadge extends LitElement {
21
+ constructor() {
22
+ super(...arguments);
23
+ /** Color variant. @default 'neutral' */
24
+ this.color = 'neutral';
25
+ /** Size variant. @default 'm' */
26
+ this.size = 'm';
27
+ /** Style variant (filled vs outline). @default 'filled' */
28
+ this.variant = 'filled';
29
+ /** Icon-only mode (removes wrapper padding). @default false */
30
+ this.isIconOnly = false;
31
+ /** Max characters before truncation (0 = no truncation). @default 0 */
32
+ this.maxCharCount = 0;
33
+ /** Replacement string when truncated. Falls back to '99+'. @default '' */
34
+ this.charReplacement = '';
35
+ /** Accessible name for the role=status region. @default 'badge' */
36
+ this.ariaLabel = 'badge';
37
+ /** `data-e2e` attribute. */
38
+ this.e2eAttr = 'eui-wc-badge';
39
+ this._isEmpty = false;
40
+ this._truncatedText = '';
41
+ }
42
+ static { this.styles = css `
43
+ /* DEFAULT TOKENS (neutral / m / filled) */
44
+ :host {
45
+ --_eui-wc-badge-padding: 0 var(--eui-s-3xs);
46
+ --_eui-wc-badge-border-radius: var(--eui-br-max);
47
+ --_eui-wc-badge-font: var(--eui-f-xs-semi-bold);
48
+ --_eui-wc-badge-height: calc(var(--eui-s-m) + var(--eui-s-3xs));
49
+ --_eui-wc-badge-min-width: calc(var(--eui-s-m) + var(--eui-s-3xs));
50
+ --_eui-wc-badge-empty-size: var(--eui-s-s);
51
+ --_eui-wc-badge-bg: var(--eui-c-secondary-surface-light);
52
+ --_eui-wc-badge-color: var(--eui-c-secondary-on-surface-light);
53
+ --_eui-wc-badge-border: var(--eui-c-secondary-border);
54
+
55
+ display: inline-flex;
56
+ border: 1px solid var(--_eui-wc-badge-border);
57
+ border-radius: var(--_eui-wc-badge-border-radius);
58
+ background-color: var(--_eui-wc-badge-bg);
59
+ }
60
+
61
+ /* COLOR VARIANTS */
62
+ :host([color='primary']) {
63
+ --_eui-wc-badge-bg: var(--eui-c-primary-surface);
64
+ --_eui-wc-badge-color: var(--eui-c-primary-on-surface);
65
+ --_eui-wc-badge-border: var(--eui-c-primary-border-light);
66
+ }
67
+ :host([color='neutral']) {
68
+ --_eui-wc-badge-bg: var(--eui-c-secondary-surface);
69
+ --_eui-wc-badge-color: var(--eui-c-secondary-on-surface);
70
+ --_eui-wc-badge-border: var(--eui-c-secondary-border-light);
71
+ }
72
+ :host([color='info']) {
73
+ --_eui-wc-badge-bg: var(--eui-c-info-surface);
74
+ --_eui-wc-badge-color: var(--eui-c-info-on-surface);
75
+ --_eui-wc-badge-border: var(--eui-c-info-border-light);
76
+ }
77
+ :host([color='success']) {
78
+ --_eui-wc-badge-bg: var(--eui-c-success-surface);
79
+ --_eui-wc-badge-color: var(--eui-c-success-on-surface);
80
+ --_eui-wc-badge-border: var(--eui-c-success-border-light);
81
+ }
82
+ :host([color='warning']) {
83
+ --_eui-wc-badge-bg: var(--eui-c-warning-surface);
84
+ --_eui-wc-badge-color: var(--eui-c-warning-on-surface);
85
+ --_eui-wc-badge-border: var(--eui-c-warning-border-light);
86
+ }
87
+ :host([color='critical']) {
88
+ --_eui-wc-badge-bg: var(--eui-c-danger-surface);
89
+ --_eui-wc-badge-color: var(--eui-c-danger-on-surface);
90
+ --_eui-wc-badge-border: var(--eui-c-danger-border-light);
91
+ }
92
+
93
+ /* OUTLINE VARIANT */
94
+ :host([variant='outline']) {
95
+ background-color: var(--eui-c-surface-container);
96
+ }
97
+
98
+ /* SIZE S */
99
+ :host([size='s']) {
100
+ --_eui-wc-badge-height: var(--eui-s-m);
101
+ --_eui-wc-badge-min-width: var(--eui-s-m);
102
+ --_eui-wc-badge-font: var(--eui-f-xs-medium);
103
+ }
104
+
105
+ /* EMPTY (dot) */
106
+ :host([is-empty]) {
107
+ width: var(--_eui-wc-badge-empty-size);
108
+ height: var(--_eui-wc-badge-empty-size);
109
+ }
110
+
111
+ /* ICON-ONLY */
112
+ :host([is-icon-only]) .eui-wc-badge__wrapper {
113
+ padding: 0;
114
+ }
115
+
116
+ /* WRAPPER */
117
+ .eui-wc-badge__wrapper {
118
+ display: inline-flex;
119
+ align-items: center;
120
+ color: var(--_eui-wc-badge-color);
121
+ height: var(--_eui-wc-badge-height);
122
+ min-width: var(--_eui-wc-badge-min-width);
123
+ padding: var(--_eui-wc-badge-padding);
124
+ justify-content: center;
125
+ font: var(--_eui-wc-badge-font);
126
+ overflow: hidden;
127
+ text-overflow: ellipsis;
128
+ white-space: nowrap;
129
+ }
130
+
131
+ :host([variant='outline']) .eui-wc-badge__wrapper {
132
+ color: var(--_eui-wc-badge-color);
133
+ }
134
+ `; }
135
+ _handleSlotChange(e) {
136
+ const slot = e.target;
137
+ const nodes = slot.assignedNodes({ flatten: true });
138
+ const text = nodes.map((n) => n.textContent ?? '').join('');
139
+ this._isEmpty = text.trim().length === 0;
140
+ if (this.maxCharCount > 0 && text.length > this.maxCharCount) {
141
+ this._truncatedText = this.charReplacement || '99+';
142
+ }
143
+ else {
144
+ this._truncatedText = '';
145
+ }
146
+ this.toggleAttribute('is-empty', this._isEmpty);
147
+ }
148
+ render() {
149
+ return html `
150
+ <div class="eui-wc-badge__wrapper" role="status" aria-label=${this.ariaLabel ?? nothing}>
151
+ ${this._truncatedText
152
+ ? html `${this._truncatedText}`
153
+ : html `<slot @slotchange=${this._handleSlotChange}></slot>`}
154
+ </div>
155
+ `;
156
+ }
157
+ };
158
+ __decorate([
159
+ property({ reflect: true })
160
+ ], EuiWcBadge.prototype, "color", void 0);
161
+ __decorate([
162
+ property({ reflect: true })
163
+ ], EuiWcBadge.prototype, "size", void 0);
164
+ __decorate([
165
+ property({ reflect: true })
166
+ ], EuiWcBadge.prototype, "variant", void 0);
167
+ __decorate([
168
+ property({ attribute: 'color-palette', reflect: true })
169
+ ], EuiWcBadge.prototype, "colorPalette", void 0);
170
+ __decorate([
171
+ property({ attribute: 'is-icon-only', type: Boolean, reflect: true })
172
+ ], EuiWcBadge.prototype, "isIconOnly", void 0);
173
+ __decorate([
174
+ property({ type: Number })
175
+ ], EuiWcBadge.prototype, "maxCharCount", void 0);
176
+ __decorate([
177
+ property()
178
+ ], EuiWcBadge.prototype, "charReplacement", void 0);
179
+ __decorate([
180
+ property({ attribute: 'aria-label', reflect: true })
181
+ ], EuiWcBadge.prototype, "ariaLabel", void 0);
182
+ __decorate([
183
+ property({ attribute: 'data-e2e' })
184
+ ], EuiWcBadge.prototype, "e2eAttr", void 0);
185
+ __decorate([
186
+ state()
187
+ ], EuiWcBadge.prototype, "_isEmpty", void 0);
188
+ __decorate([
189
+ state()
190
+ ], EuiWcBadge.prototype, "_truncatedText", void 0);
191
+ EuiWcBadge = __decorate([
192
+ customElement('eui-wc-badge')
193
+ ], EuiWcBadge);
194
+ export { EuiWcBadge };
195
+ //# sourceMappingURL=eui-wc-badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eui-wc-badge.js","sourceRoot":"","sources":["../../src/eui-badge/eui-wc-badge.ts"],"names":[],"mappings":";;;;;;A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,CAAC;6CAAoC;AAEpD;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;2CAA0B;AAE7C;IAAhB,KAAK,EAAE;4CAA0B;AACjB;IAAhB,KAAK,EAAE;kDAA6B;AAnH5B,UAAU;IADtB,aAAa,CAAC,cAAc,CAAC;GACjB,UAAU,CA4ItB"}
@@ -0,0 +1,2 @@
1
+ export { EuiWcBadge, type EuiWcBadgeColor, type EuiWcBadgeSize, type EuiWcBadgeVariant, } from './eui-wc-badge.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACzB,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EuiWcBadge, } from './eui-wc-badge.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,GAIb,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { LitElement } from 'lit';
2
+ export type EuiWcBannerSize = 's' | 'm' | 'l';
3
+ export type EuiWcBannerPosition = 'default' | 'top' | 'center';
4
+ /** `EuiWcBanner` — Lit WC projection of `eui-banner`. */
5
+ export declare class EuiWcBanner extends LitElement {
6
+ static styles: import("lit").CSSResult;
7
+ size: EuiWcBannerSize;
8
+ position: EuiWcBannerPosition;
9
+ isInverse: boolean;
10
+ isVideo: boolean;
11
+ imageUrl?: string;
12
+ e2eAttr: string;
13
+ render(): import("lit-html").TemplateResult<1>;
14
+ }
15
+ export declare class EuiWcBannerTitle extends LitElement {
16
+ static styles: import("lit").CSSResult;
17
+ render(): import("lit-html").TemplateResult<1>;
18
+ }
19
+ export declare class EuiWcBannerDescription extends LitElement {
20
+ static styles: import("lit").CSSResult;
21
+ render(): import("lit-html").TemplateResult<1>;
22
+ }
23
+ export declare class EuiWcBannerCta extends LitElement {
24
+ static styles: import("lit").CSSResult;
25
+ render(): import("lit-html").TemplateResult<1>;
26
+ }
27
+ declare global {
28
+ interface HTMLElementTagNameMap {
29
+ 'eui-wc-banner': EuiWcBanner;
30
+ 'eui-wc-banner-title': EuiWcBannerTitle;
31
+ 'eui-wc-banner-description': EuiWcBannerDescription;
32
+ 'eui-wc-banner-cta': EuiWcBannerCta;
33
+ }
34
+ }
35
+ //# sourceMappingURL=eui-wc-banner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eui-wc-banner.d.ts","sourceRoot":"","sources":["../../src/eui-banner/eui-wc-banner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,MAAM,MAAM,eAAe,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAC9C,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE/D,yDAAyD;AACzD,qBACa,WAAY,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAcpB;IAE2B,IAAI,EAAE,eAAe,CAAO;IAC5B,QAAQ,EAAE,mBAAmB,CAAa;IACF,SAAS,UAAS;IACpB,OAAO,UAAS;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,SAAmB;IAEtD,MAAM;CAmBlB;AAED,qBACa,gBAAiB,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAAkC;IAC/C,MAAM;CAClB;AAED,qBACa,sBAAuB,SAAQ,UAAU;IAClD,OAAgB,MAAM,0BAAkC;IAC/C,MAAM;CAClB;AAED,qBACa,cAAe,SAAQ,UAAU;IAC1C,OAAgB,MAAM,0BAAkC;IAC/C,MAAM;CAClB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,eAAe,EAAE,WAAW,CAAC;QAC7B,qBAAqB,EAAE,gBAAgB,CAAC;QACxC,2BAA2B,EAAE,sBAAsB,CAAC;QACpD,mBAAmB,EAAE,cAAc,CAAC;KACvC;CACJ"}