@eui/eds-react 22.0.0-alpha.8

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 (290) hide show
  1. package/eds-alert/eds-alert-title.css +5 -0
  2. package/eds-alert/eds-alert-title.d.ts +12 -0
  3. package/eds-alert/eds-alert-title.d.ts.map +1 -0
  4. package/eds-alert/eds-alert-title.js +12 -0
  5. package/eds-alert/eds-alert-title.js.map +1 -0
  6. package/eds-alert/eds-alert.css +62 -0
  7. package/eds-alert/eds-alert.d.ts +38 -0
  8. package/eds-alert/eds-alert.d.ts.map +1 -0
  9. package/eds-alert/eds-alert.js +29 -0
  10. package/eds-alert/eds-alert.js.map +1 -0
  11. package/eds-alert/index.d.ts +5 -0
  12. package/eds-alert/index.d.ts.map +1 -0
  13. package/eds-alert/index.js +3 -0
  14. package/eds-alert/index.js.map +1 -0
  15. package/eds-avatar/eds-avatar-badge.css +34 -0
  16. package/eds-avatar/eds-avatar-badge.d.ts +20 -0
  17. package/eds-avatar/eds-avatar-badge.d.ts.map +1 -0
  18. package/eds-avatar/eds-avatar-badge.js +13 -0
  19. package/eds-avatar/eds-avatar-badge.js.map +1 -0
  20. package/eds-avatar/eds-avatar-content-label.css +5 -0
  21. package/eds-avatar/eds-avatar-content-label.d.ts +13 -0
  22. package/eds-avatar/eds-avatar-content-label.d.ts.map +1 -0
  23. package/eds-avatar/eds-avatar-content-label.js +12 -0
  24. package/eds-avatar/eds-avatar-content-label.js.map +1 -0
  25. package/eds-avatar/eds-avatar-content-sublabel.css +5 -0
  26. package/eds-avatar/eds-avatar-content-sublabel.d.ts +13 -0
  27. package/eds-avatar/eds-avatar-content-sublabel.d.ts.map +1 -0
  28. package/eds-avatar/eds-avatar-content-sublabel.js +12 -0
  29. package/eds-avatar/eds-avatar-content-sublabel.js.map +1 -0
  30. package/eds-avatar/eds-avatar-content.css +6 -0
  31. package/eds-avatar/eds-avatar-content.d.ts +17 -0
  32. package/eds-avatar/eds-avatar-content.d.ts.map +1 -0
  33. package/eds-avatar/eds-avatar-content.js +12 -0
  34. package/eds-avatar/eds-avatar-content.js.map +1 -0
  35. package/eds-avatar/eds-avatar-icon.css +13 -0
  36. package/eds-avatar/eds-avatar-icon.d.ts +14 -0
  37. package/eds-avatar/eds-avatar-icon.d.ts.map +1 -0
  38. package/eds-avatar/eds-avatar-icon.js +13 -0
  39. package/eds-avatar/eds-avatar-icon.js.map +1 -0
  40. package/eds-avatar/eds-avatar-image.css +24 -0
  41. package/eds-avatar/eds-avatar-image.d.ts +19 -0
  42. package/eds-avatar/eds-avatar-image.d.ts.map +1 -0
  43. package/eds-avatar/eds-avatar-image.js +16 -0
  44. package/eds-avatar/eds-avatar-image.js.map +1 -0
  45. package/eds-avatar/eds-avatar-list.css +21 -0
  46. package/eds-avatar/eds-avatar-list.d.ts +14 -0
  47. package/eds-avatar/eds-avatar-list.d.ts.map +1 -0
  48. package/eds-avatar/eds-avatar-list.js +13 -0
  49. package/eds-avatar/eds-avatar-list.js.map +1 -0
  50. package/eds-avatar/eds-avatar-text.css +7 -0
  51. package/eds-avatar/eds-avatar-text.d.ts +14 -0
  52. package/eds-avatar/eds-avatar-text.d.ts.map +1 -0
  53. package/eds-avatar/eds-avatar-text.js +13 -0
  54. package/eds-avatar/eds-avatar-text.js.map +1 -0
  55. package/eds-avatar/eds-avatar.css +128 -0
  56. package/eds-avatar/eds-avatar.d.ts +38 -0
  57. package/eds-avatar/eds-avatar.d.ts.map +1 -0
  58. package/eds-avatar/eds-avatar.js +48 -0
  59. package/eds-avatar/eds-avatar.js.map +1 -0
  60. package/eds-avatar/index.d.ts +19 -0
  61. package/eds-avatar/index.d.ts.map +1 -0
  62. package/eds-avatar/index.js +10 -0
  63. package/eds-avatar/index.js.map +1 -0
  64. package/eds-badge/eds-badge.css +174 -0
  65. package/eds-badge/eds-badge.d.ts +46 -0
  66. package/eds-badge/eds-badge.d.ts.map +1 -0
  67. package/eds-badge/eds-badge.js +39 -0
  68. package/eds-badge/eds-badge.js.map +1 -0
  69. package/eds-badge/index.d.ts +3 -0
  70. package/eds-badge/index.d.ts.map +1 -0
  71. package/eds-badge/index.js +2 -0
  72. package/eds-badge/index.js.map +1 -0
  73. package/eds-button/eds-button.css +233 -0
  74. package/eds-button/eds-button.d.ts +65 -0
  75. package/eds-button/eds-button.d.ts.map +1 -0
  76. package/eds-button/eds-button.js +33 -0
  77. package/eds-button/eds-button.js.map +1 -0
  78. package/eds-button/index.d.ts +3 -0
  79. package/eds-button/index.d.ts.map +1 -0
  80. package/eds-button/index.js +2 -0
  81. package/eds-button/index.js.map +1 -0
  82. package/eds-chip/eds-chip.css +171 -0
  83. package/eds-chip/eds-chip.d.ts +71 -0
  84. package/eds-chip/eds-chip.d.ts.map +1 -0
  85. package/eds-chip/eds-chip.js +90 -0
  86. package/eds-chip/eds-chip.js.map +1 -0
  87. package/eds-chip/index.d.ts +3 -0
  88. package/eds-chip/index.d.ts.map +1 -0
  89. package/eds-chip/index.js +2 -0
  90. package/eds-chip/index.js.map +1 -0
  91. package/eds-icon/eds-icon.css +80 -0
  92. package/eds-icon/eds-icon.d.ts +44 -0
  93. package/eds-icon/eds-icon.d.ts.map +1 -0
  94. package/eds-icon/eds-icon.js +26 -0
  95. package/eds-icon/eds-icon.js.map +1 -0
  96. package/eds-icon/index.d.ts +3 -0
  97. package/eds-icon/index.d.ts.map +1 -0
  98. package/eds-icon/index.js +2 -0
  99. package/eds-icon/index.js.map +1 -0
  100. package/eds-icon-button/eds-icon-button.css +83 -0
  101. package/eds-icon-button/eds-icon-button.d.ts +33 -0
  102. package/eds-icon-button/eds-icon-button.d.ts.map +1 -0
  103. package/eds-icon-button/eds-icon-button.js +15 -0
  104. package/eds-icon-button/eds-icon-button.js.map +1 -0
  105. package/eds-icon-button/index.d.ts +3 -0
  106. package/eds-icon-button/index.d.ts.map +1 -0
  107. package/eds-icon-button/index.js +2 -0
  108. package/eds-icon-button/index.js.map +1 -0
  109. package/eds-icon-state/eds-icon-state.css +5 -0
  110. package/eds-icon-state/eds-icon-state.d.ts +24 -0
  111. package/eds-icon-state/eds-icon-state.d.ts.map +1 -0
  112. package/eds-icon-state/eds-icon-state.js +21 -0
  113. package/eds-icon-state/eds-icon-state.js.map +1 -0
  114. package/eds-icon-state/index.d.ts +3 -0
  115. package/eds-icon-state/index.d.ts.map +1 -0
  116. package/eds-icon-state/index.js +2 -0
  117. package/eds-icon-state/index.js.map +1 -0
  118. package/eds-link/eds-link.css +83 -0
  119. package/eds-link/eds-link.d.ts +32 -0
  120. package/eds-link/eds-link.d.ts.map +1 -0
  121. package/eds-link/eds-link.js +15 -0
  122. package/eds-link/eds-link.js.map +1 -0
  123. package/eds-link/index.d.ts +3 -0
  124. package/eds-link/index.d.ts.map +1 -0
  125. package/eds-link/index.js +2 -0
  126. package/eds-link/index.js.map +1 -0
  127. package/eds-menu/eds-menu-item-view.d.ts +31 -0
  128. package/eds-menu/eds-menu-item-view.d.ts.map +1 -0
  129. package/eds-menu/eds-menu-item-view.js +65 -0
  130. package/eds-menu/eds-menu-item-view.js.map +1 -0
  131. package/eds-menu/eds-menu-item.css +221 -0
  132. package/eds-menu/eds-menu-item.model.d.ts +69 -0
  133. package/eds-menu/eds-menu-item.model.d.ts.map +1 -0
  134. package/eds-menu/eds-menu-item.model.js +2 -0
  135. package/eds-menu/eds-menu-item.model.js.map +1 -0
  136. package/eds-menu/eds-menu.css +83 -0
  137. package/eds-menu/eds-menu.d.ts +52 -0
  138. package/eds-menu/eds-menu.d.ts.map +1 -0
  139. package/eds-menu/eds-menu.js +145 -0
  140. package/eds-menu/eds-menu.js.map +1 -0
  141. package/eds-menu/index.d.ts +6 -0
  142. package/eds-menu/index.d.ts.map +1 -0
  143. package/eds-menu/index.js +3 -0
  144. package/eds-menu/index.js.map +1 -0
  145. package/eds-shell/eds-shell-content.css +11 -0
  146. package/eds-shell/eds-shell-content.d.ts +11 -0
  147. package/eds-shell/eds-shell-content.d.ts.map +1 -0
  148. package/eds-shell/eds-shell-content.js +10 -0
  149. package/eds-shell/eds-shell-content.js.map +1 -0
  150. package/eds-shell/eds-shell-context.d.ts +20 -0
  151. package/eds-shell/eds-shell-context.d.ts.map +1 -0
  152. package/eds-shell/eds-shell-context.js +7 -0
  153. package/eds-shell/eds-shell-context.js.map +1 -0
  154. package/eds-shell/eds-shell-footer.css +25 -0
  155. package/eds-shell/eds-shell-footer.d.ts +12 -0
  156. package/eds-shell/eds-shell-footer.d.ts.map +1 -0
  157. package/eds-shell/eds-shell-footer.js +9 -0
  158. package/eds-shell/eds-shell-footer.js.map +1 -0
  159. package/eds-shell/eds-shell-header-app.css +23 -0
  160. package/eds-shell/eds-shell-header-app.d.ts +16 -0
  161. package/eds-shell/eds-shell-header-app.d.ts.map +1 -0
  162. package/eds-shell/eds-shell-header-app.js +11 -0
  163. package/eds-shell/eds-shell-header-app.js.map +1 -0
  164. package/eds-shell/eds-shell-header-end.css +5 -0
  165. package/eds-shell/eds-shell-header-end.d.ts +11 -0
  166. package/eds-shell/eds-shell-header-end.d.ts.map +1 -0
  167. package/eds-shell/eds-shell-header-end.js +10 -0
  168. package/eds-shell/eds-shell-header-end.js.map +1 -0
  169. package/eds-shell/eds-shell-header-environment.css +21 -0
  170. package/eds-shell/eds-shell-header-environment.d.ts +11 -0
  171. package/eds-shell/eds-shell-header-environment.d.ts.map +1 -0
  172. package/eds-shell/eds-shell-header-environment.js +10 -0
  173. package/eds-shell/eds-shell-header-environment.js.map +1 -0
  174. package/eds-shell/eds-shell-header-logo.css +14 -0
  175. package/eds-shell/eds-shell-header-logo.d.ts +20 -0
  176. package/eds-shell/eds-shell-header-logo.d.ts.map +1 -0
  177. package/eds-shell/eds-shell-header-logo.js +10 -0
  178. package/eds-shell/eds-shell-header-logo.js.map +1 -0
  179. package/eds-shell/eds-shell-header-start.css +5 -0
  180. package/eds-shell/eds-shell-header-start.d.ts +11 -0
  181. package/eds-shell/eds-shell-header-start.d.ts.map +1 -0
  182. package/eds-shell/eds-shell-header-start.js +10 -0
  183. package/eds-shell/eds-shell-header-start.js.map +1 -0
  184. package/eds-shell/eds-shell-header.css +33 -0
  185. package/eds-shell/eds-shell-header.d.ts +25 -0
  186. package/eds-shell/eds-shell-header.d.ts.map +1 -0
  187. package/eds-shell/eds-shell-header.js +14 -0
  188. package/eds-shell/eds-shell-header.js.map +1 -0
  189. package/eds-shell/eds-shell-menu-toggle.css +4 -0
  190. package/eds-shell/eds-shell-menu-toggle.d.ts +16 -0
  191. package/eds-shell/eds-shell-menu-toggle.d.ts.map +1 -0
  192. package/eds-shell/eds-shell-menu-toggle.js +20 -0
  193. package/eds-shell/eds-shell-menu-toggle.js.map +1 -0
  194. package/eds-shell/eds-shell-sidebar-bottom-nav.css +8 -0
  195. package/eds-shell/eds-shell-sidebar-bottom-nav.d.ts +20 -0
  196. package/eds-shell/eds-shell-sidebar-bottom-nav.d.ts.map +1 -0
  197. package/eds-shell/eds-shell-sidebar-bottom-nav.js +11 -0
  198. package/eds-shell/eds-shell-sidebar-bottom-nav.js.map +1 -0
  199. package/eds-shell/eds-shell-sidebar-footer.css +10 -0
  200. package/eds-shell/eds-shell-sidebar-footer.d.ts +10 -0
  201. package/eds-shell/eds-shell-sidebar-footer.d.ts.map +1 -0
  202. package/eds-shell/eds-shell-sidebar-footer.js +10 -0
  203. package/eds-shell/eds-shell-sidebar-footer.js.map +1 -0
  204. package/eds-shell/eds-shell-sidebar-header.css +33 -0
  205. package/eds-shell/eds-shell-sidebar-header.d.ts +16 -0
  206. package/eds-shell/eds-shell-sidebar-header.d.ts.map +1 -0
  207. package/eds-shell/eds-shell-sidebar-header.js +10 -0
  208. package/eds-shell/eds-shell-sidebar-header.js.map +1 -0
  209. package/eds-shell/eds-shell-sidebar-nav.css +9 -0
  210. package/eds-shell/eds-shell-sidebar-nav.d.ts +20 -0
  211. package/eds-shell/eds-shell-sidebar-nav.d.ts.map +1 -0
  212. package/eds-shell/eds-shell-sidebar-nav.js +11 -0
  213. package/eds-shell/eds-shell-sidebar-nav.js.map +1 -0
  214. package/eds-shell/eds-shell-sidebar.css +5 -0
  215. package/eds-shell/eds-shell-sidebar.d.ts +25 -0
  216. package/eds-shell/eds-shell-sidebar.d.ts.map +1 -0
  217. package/eds-shell/eds-shell-sidebar.js +15 -0
  218. package/eds-shell/eds-shell-sidebar.js.map +1 -0
  219. package/eds-shell/eds-shell-toolbar-app.css +23 -0
  220. package/eds-shell/eds-shell-toolbar-app.d.ts +16 -0
  221. package/eds-shell/eds-shell-toolbar-app.d.ts.map +1 -0
  222. package/eds-shell/eds-shell-toolbar-app.js +11 -0
  223. package/eds-shell/eds-shell-toolbar-app.js.map +1 -0
  224. package/eds-shell/eds-shell-toolbar-center.css +6 -0
  225. package/eds-shell/eds-shell-toolbar-center.d.ts +11 -0
  226. package/eds-shell/eds-shell-toolbar-center.d.ts.map +1 -0
  227. package/eds-shell/eds-shell-toolbar-center.js +10 -0
  228. package/eds-shell/eds-shell-toolbar-center.js.map +1 -0
  229. package/eds-shell/eds-shell-toolbar-end.css +23 -0
  230. package/eds-shell/eds-shell-toolbar-end.d.ts +11 -0
  231. package/eds-shell/eds-shell-toolbar-end.d.ts.map +1 -0
  232. package/eds-shell/eds-shell-toolbar-end.js +10 -0
  233. package/eds-shell/eds-shell-toolbar-end.js.map +1 -0
  234. package/eds-shell/eds-shell-toolbar-environment.css +21 -0
  235. package/eds-shell/eds-shell-toolbar-environment.d.ts +11 -0
  236. package/eds-shell/eds-shell-toolbar-environment.d.ts.map +1 -0
  237. package/eds-shell/eds-shell-toolbar-environment.js +10 -0
  238. package/eds-shell/eds-shell-toolbar-environment.js.map +1 -0
  239. package/eds-shell/eds-shell-toolbar-logo.css +11 -0
  240. package/eds-shell/eds-shell-toolbar-logo.d.ts +8 -0
  241. package/eds-shell/eds-shell-toolbar-logo.d.ts.map +1 -0
  242. package/eds-shell/eds-shell-toolbar-logo.js +10 -0
  243. package/eds-shell/eds-shell-toolbar-logo.js.map +1 -0
  244. package/eds-shell/eds-shell-toolbar-start.css +5 -0
  245. package/eds-shell/eds-shell-toolbar-start.d.ts +11 -0
  246. package/eds-shell/eds-shell-toolbar-start.d.ts.map +1 -0
  247. package/eds-shell/eds-shell-toolbar-start.js +10 -0
  248. package/eds-shell/eds-shell-toolbar-start.js.map +1 -0
  249. package/eds-shell/eds-shell-toolbar.css +37 -0
  250. package/eds-shell/eds-shell-toolbar.d.ts +27 -0
  251. package/eds-shell/eds-shell-toolbar.d.ts.map +1 -0
  252. package/eds-shell/eds-shell-toolbar.js +12 -0
  253. package/eds-shell/eds-shell-toolbar.js.map +1 -0
  254. package/eds-shell/eds-shell-top-message.css +48 -0
  255. package/eds-shell/eds-shell-top-message.d.ts +22 -0
  256. package/eds-shell/eds-shell-top-message.d.ts.map +1 -0
  257. package/eds-shell/eds-shell-top-message.js +24 -0
  258. package/eds-shell/eds-shell-top-message.js.map +1 -0
  259. package/eds-shell/eds-shell.css +105 -0
  260. package/eds-shell/eds-shell.d.ts +41 -0
  261. package/eds-shell/eds-shell.d.ts.map +1 -0
  262. package/eds-shell/eds-shell.js +116 -0
  263. package/eds-shell/eds-shell.js.map +1 -0
  264. package/eds-shell/index.d.ts +50 -0
  265. package/eds-shell/index.d.ts.map +1 -0
  266. package/eds-shell/index.js +25 -0
  267. package/eds-shell/index.js.map +1 -0
  268. package/eds-tag/eds-tag.css +83 -0
  269. package/eds-tag/eds-tag.d.ts +29 -0
  270. package/eds-tag/eds-tag.d.ts.map +1 -0
  271. package/eds-tag/eds-tag.js +14 -0
  272. package/eds-tag/eds-tag.js.map +1 -0
  273. package/eds-tag/index.d.ts +3 -0
  274. package/eds-tag/index.d.ts.map +1 -0
  275. package/eds-tag/index.js +2 -0
  276. package/eds-tag/index.js.map +1 -0
  277. package/eds-tooltip/eds-tooltip.css +140 -0
  278. package/eds-tooltip/eds-tooltip.d.ts +53 -0
  279. package/eds-tooltip/eds-tooltip.d.ts.map +1 -0
  280. package/eds-tooltip/eds-tooltip.js +179 -0
  281. package/eds-tooltip/eds-tooltip.js.map +1 -0
  282. package/eds-tooltip/index.d.ts +3 -0
  283. package/eds-tooltip/index.d.ts.map +1 -0
  284. package/eds-tooltip/index.js +2 -0
  285. package/eds-tooltip/index.js.map +1 -0
  286. package/index.d.ts +42 -0
  287. package/index.d.ts.map +1 -0
  288. package/index.js +29 -0
  289. package/index.js.map +1 -0
  290. package/package.json +105 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-shell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGtE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,83 @@
1
+ /*
2
+ * eds-tag — pure React port of eds-tag.scss.
3
+ *
4
+ * Angular emulated-encapsulation mapping (no shadow DOM here):
5
+ * :host -> .eds-tag (root class on the rendered element)
6
+ * :host([attr="v"]) -> .eds-tag[data-attr="v"]
7
+ * The --_eds-tag-* privates and --eds-* tokens are unchanged; tokens cascade in from the
8
+ * .eui-21 context (required on an ancestor), exactly like the Angular component.
9
+ */
10
+
11
+ .eds-tag {
12
+ --_eds-tag-padding: var(--eds-sp-3xs) var(--eds-sp-s);
13
+ --_eds-tag-border-radius: var(--eds-br-s);
14
+ --_eds-tag-content-font: var(--eds-f-paragraph-s);
15
+ --_eds-tag-border-width: var(--eds-bw-xs);
16
+
17
+ /* default color = info */
18
+ --_eds-tag-bg-color: var(--eds-c-surface-info-subtler);
19
+ --_eds-tag-color-on-bg: var(--eds-c-on-surface-info-subtler);
20
+ --_eds-tag-border-color: var(--eds-c-border-info-subtle);
21
+
22
+ /* a projected eds-icon follows the tag foreground (on-surface) color */
23
+ --_eds-icon-on-surface: var(--_eds-tag-color-on-bg);
24
+
25
+ display: inline-flex;
26
+ gap: var(--eds-sp-xs);
27
+ border: var(--_eds-tag-border-width) solid var(--_eds-tag-border-color);
28
+ border-radius: var(--_eds-tag-border-radius);
29
+ background-color: var(--_eds-tag-bg-color);
30
+ color: var(--_eds-tag-color-on-bg);
31
+ padding: var(--_eds-tag-padding);
32
+ font: var(--_eds-tag-content-font);
33
+ }
34
+
35
+ /* COLOR VARIANTS
36
+ -------------- */
37
+
38
+ .eds-tag[data-color="primary"] {
39
+ --_eds-tag-bg-color: var(--eds-c-surface-primary-subtler);
40
+ --_eds-tag-color-on-bg: var(--eds-c-on-surface-primary-subtler);
41
+ --_eds-tag-border-color: var(--eds-c-border-primary-subtle);
42
+ }
43
+
44
+ .eds-tag[data-color="neutral"] {
45
+ --_eds-tag-bg-color: var(--eds-c-surface-neutral-subtler);
46
+ --_eds-tag-color-on-bg: var(--eds-c-on-surface-neutral-subtler);
47
+ --_eds-tag-border-color: var(--eds-c-border-neutral-subtle);
48
+ }
49
+
50
+ .eds-tag[data-color="success"] {
51
+ --_eds-tag-bg-color: var(--eds-c-surface-success-subtler);
52
+ --_eds-tag-color-on-bg: var(--eds-c-on-surface-success-subtler);
53
+ --_eds-tag-border-color: var(--eds-c-border-success-subtle);
54
+ }
55
+
56
+ .eds-tag[data-color="info"] {
57
+ --_eds-tag-bg-color: var(--eds-c-surface-info-subtler);
58
+ --_eds-tag-color-on-bg: var(--eds-c-on-surface-info-subtler);
59
+ --_eds-tag-border-color: var(--eds-c-border-info-subtle);
60
+ }
61
+
62
+ .eds-tag[data-color="warning"] {
63
+ --_eds-tag-bg-color: var(--eds-c-surface-warning-subtler);
64
+ --_eds-tag-color-on-bg: var(--eds-c-on-surface-warning-subtler);
65
+ --_eds-tag-border-color: var(--eds-c-border-warning-subtle);
66
+ }
67
+
68
+ .eds-tag[data-color="critical"] {
69
+ --_eds-tag-bg-color: var(--eds-c-surface-critical-subtler);
70
+ --_eds-tag-color-on-bg: var(--eds-c-on-surface-critical-subtler);
71
+ --_eds-tag-border-color: var(--eds-c-border-critical-subtle);
72
+ }
73
+
74
+ /* SIZE VARIANTS
75
+ ------------- */
76
+
77
+ .eds-tag[data-size="s"] {
78
+ --_eds-tag-padding: var(--eds-sp-4xs) var(--eds-sp-xs);
79
+ }
80
+
81
+ .eds-tag[data-size="m"] {
82
+ --_eds-tag-padding: var(--eds-sp-3xs) var(--eds-sp-xs);
83
+ }
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Local narrowed color union — the tag's color contract (ported 1:1 from Angular `eds-tag`).
4
+ */
5
+ export type EdsTagColor = 'primary' | 'neutral' | 'success' | 'info' | 'warning' | 'critical';
6
+ /** Local narrowed size union — the tag's size contract. */
7
+ export type EdsTagSize = 's' | 'm';
8
+ export interface EdsTagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
9
+ /** Semantic color of the tag. @default 'info' */
10
+ color?: EdsTagColor;
11
+ /** Size of the tag. @default 'm' */
12
+ size?: EdsTagSize;
13
+ /** Data attribute for e2e testing. @default 'eds-tag' */
14
+ e2eAttr?: string;
15
+ /** ARIA label for accessibility. @default 'status-badge' */
16
+ ariaLabel?: string | null;
17
+ /** Projected content rendered inside the tag (matches Angular `<ng-content/>`). */
18
+ children?: React.ReactNode;
19
+ }
20
+ /**
21
+ * `EdsTag` — pure React port of the Angular `eds-tag`.
22
+ *
23
+ * A presentational, non-interactive status tag. Displays projected content with a semantic
24
+ * color and size, exposed to assistive technology via `role="status"`. The rendered element
25
+ * IS the component (no wrapper). Requires `@eui/eds-styles` + the `eui-21` class on an
26
+ * ancestor for the `--eds-*` tokens to cascade in.
27
+ */
28
+ export declare const EdsTag: React.ForwardRefExoticComponent<EdsTagProps & React.RefAttributes<HTMLSpanElement>>;
29
+ //# sourceMappingURL=eds-tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-tag.d.ts","sourceRoot":"","sources":["../../src/eds-tag/eds-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9F,2DAA2D;AAC3D,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACrF,iDAAiD;IACjD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,oCAAoC;IACpC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,mFAAmF;IACnF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,qFA0BjB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ /**
4
+ * `EdsTag` — pure React port of the Angular `eds-tag`.
5
+ *
6
+ * A presentational, non-interactive status tag. Displays projected content with a semantic
7
+ * color and size, exposed to assistive technology via `role="status"`. The rendered element
8
+ * IS the component (no wrapper). Requires `@eui/eds-styles` + the `eui-21` class on an
9
+ * ancestor for the `--eds-*` tokens to cascade in.
10
+ */
11
+ export const EdsTag = React.forwardRef(function EdsTag({ color = 'info', size = 'm', e2eAttr = 'eds-tag', ariaLabel = 'status-badge', children, className, ...rest }, ref) {
12
+ return (_jsx("span", { ref: ref, className: className ? `eds-tag ${className}` : 'eds-tag', role: "status", "data-color": color, "data-size": size, "data-e2e": e2eAttr, "aria-label": ariaLabel ?? undefined, ...rest, children: children }));
13
+ });
14
+ //# sourceMappingURL=eds-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-tag.js","sourceRoot":"","sources":["../../src/eds-tag/eds-tag.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuB/B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAA+B,SAAS,MAAM,CAChF,EACI,KAAK,GAAG,MAAM,EACd,IAAI,GAAG,GAAG,EACV,OAAO,GAAG,SAAS,EACnB,SAAS,GAAG,cAAc,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACV,EACD,GAAG;IAEH,OAAO,CACH,eACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,EACzD,IAAI,EAAC,QAAQ,gBACD,KAAK,eACN,IAAI,cACL,OAAO,gBACL,SAAS,IAAI,SAAS,KAC9B,IAAI,YAEP,QAAQ,GACN,CACV,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { EdsTag } from './eds-tag.js';
2
+ export type { EdsTagProps, EdsTagColor, EdsTagSize } from './eds-tag.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EdsTag } from './eds-tag.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Pure-React port of `eds-tooltip-container.scss`.
3
+ *
4
+ * Angular emulated encapsulation → light-DOM classes:
5
+ * `.eui-21 .eds-tooltip-panel` → the portal wrapper (`.eds-tooltip-panel.eui-21`)
6
+ * `.eds-tooltip-panel &.eds-tooltip--above :host` → `.eds-tooltip-panel.eds-tooltip--above .eds-tooltip`
7
+ * `:host` (the container) → `.eds-tooltip` (the inner panel element)
8
+ *
9
+ * The inline SCSS var `$eds-tooltip-arrow-width: 8px` is inlined at each use site.
10
+ * `--eds-*` tokens are kept verbatim.
11
+ */
12
+
13
+ .eds-tooltip-panel {
14
+ margin-bottom: var(--eds-sp-2xl);
15
+ background: transparent;
16
+ pointer-events: none;
17
+ }
18
+
19
+ .eds-tooltip-panel.cdk-overlay-pane {
20
+ background: transparent;
21
+ }
22
+
23
+ /* :host = the inner `.eds-tooltip` container */
24
+ .eds-tooltip-panel .eds-tooltip {
25
+ max-width: 50vw;
26
+ display: block;
27
+ position: relative;
28
+ background: transparent;
29
+ }
30
+
31
+ .eds-tooltip-panel .eds-tooltip:before {
32
+ border-color: transparent;
33
+ border-style: solid;
34
+ border-width: 8px;
35
+ bottom: 0;
36
+ content: '';
37
+ display: block;
38
+ height: 0;
39
+ position: absolute;
40
+ width: 0;
41
+ }
42
+
43
+ .eds-tooltip-panel .eds-tooltip.eds-tooltip--content-left {
44
+ text-align: left;
45
+ }
46
+
47
+ .eds-tooltip-panel .eds-tooltip.eds-tooltip--content-right {
48
+ text-align: right;
49
+ }
50
+
51
+ .eds-tooltip-panel .eds-tooltip.eds-tooltip--content-center {
52
+ text-align: center;
53
+ }
54
+
55
+ .eds-tooltip-panel .eds-tooltip.eds-tooltip--content-justify {
56
+ text-align: justify;
57
+ }
58
+
59
+ .eds-tooltip-panel .eds-tooltip .eds-tooltip__content {
60
+ background-color: var(--eds-c-surface-inverted);
61
+ border-radius: var(--eds-br-s);
62
+ box-shadow: var(--eds-sh-2);
63
+ color: var(--eds-c-on-surface-inverted);
64
+ letter-spacing: 0.05em;
65
+ padding: var(--eds-sp-2xs);
66
+ white-space: pre-line;
67
+ font: var(--eds-f-label-s);
68
+ }
69
+
70
+ /* Arrow + spacing per resolved placement (the `.eds-tooltip--<position>` panel class). */
71
+ .eds-tooltip-panel.eds-tooltip--above .eds-tooltip {
72
+ margin-bottom: var(--eds-sp-s);
73
+ }
74
+
75
+ .eds-tooltip-panel.eds-tooltip--above .eds-tooltip:before {
76
+ border-color: var(--eds-c-surface-inverted) transparent transparent transparent;
77
+ bottom: 2px;
78
+ left: calc(50% - 8px);
79
+ transform: translate(0, 16px);
80
+ }
81
+
82
+ .eds-tooltip-panel.eds-tooltip--below .eds-tooltip {
83
+ margin-top: var(--eds-sp-s);
84
+ }
85
+
86
+ .eds-tooltip-panel.eds-tooltip--below .eds-tooltip:before {
87
+ border-color: transparent transparent var(--eds-c-surface-inverted) transparent;
88
+ left: calc(50% - 8px);
89
+ top: 0;
90
+ transform: translate(0, -100%);
91
+ }
92
+
93
+ .eds-tooltip-panel.eds-tooltip--left .eds-tooltip {
94
+ margin-right: var(--eds-sp-s);
95
+ }
96
+
97
+ .eds-tooltip-panel.eds-tooltip--left .eds-tooltip:before {
98
+ border-color: transparent transparent transparent var(--eds-c-surface-inverted);
99
+ right: calc(-8px + 2px);
100
+ top: 50%;
101
+ transform: translate(8px, -8px);
102
+ }
103
+
104
+ .eds-tooltip-panel.eds-tooltip--right .eds-tooltip {
105
+ margin-left: var(--eds-sp-s);
106
+ }
107
+
108
+ .eds-tooltip-panel.eds-tooltip--right .eds-tooltip:before {
109
+ border-color: transparent var(--eds-c-surface-inverted) transparent transparent;
110
+ left: calc(-8px + 2px);
111
+ top: 50%;
112
+ transform: translate(-8px, -8px);
113
+ }
114
+
115
+ /* Show/hide entrance animation (ported from eds-tooltip-animations.ts `showHide`). */
116
+ .eds-tooltip-panel .eds-tooltip {
117
+ animation: eds-tooltip-show-hide 200ms cubic-bezier(0, 0, 0.2, 1);
118
+ transform-origin: center;
119
+ }
120
+
121
+ @keyframes eds-tooltip-show-hide {
122
+ 0% {
123
+ opacity: 0;
124
+ transform: scale(0);
125
+ }
126
+ 50% {
127
+ opacity: 0.5;
128
+ transform: scale(0.99);
129
+ }
130
+ 100% {
131
+ opacity: 1;
132
+ transform: scale(1);
133
+ }
134
+ }
135
+
136
+ /* The trigger wrapper wraps the trigger element(s); inline-block so it has a measurable
137
+ box (getBoundingClientRect) without forcing block layout. */
138
+ .eds-tooltip-trigger {
139
+ display: inline-block;
140
+ }
@@ -0,0 +1,53 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Local narrowed color union — the tooltip's color contract (verbatim from the Angular
4
+ * `EdsTooltipColor`).
5
+ */
6
+ export type EdsTooltipColor = 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'accent';
7
+ /** Alignment of the content inside the tooltip panel. */
8
+ export type EdsTooltipContentAlignment = 'left' | 'right' | 'center' | 'justify';
9
+ /**
10
+ * Requested position of the tooltip relative to its trigger. `left`/`before` and
11
+ * `right`/`after` are aliases (both resolve to a horizontal placement); `above`/`below`
12
+ * are vertical. Matches the Angular directive's `position` union.
13
+ */
14
+ export type EdsTooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
15
+ export interface EdsTooltipProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'content' | 'color'> {
16
+ /**
17
+ * Tooltip content (the Angular `edsTooltip` input value). When it is falsy the tooltip
18
+ * never shows (mirrors the Angular `&& this.tooltipContent` guard). @default null
19
+ */
20
+ content?: React.ReactNode;
21
+ /** Semantic color of the tooltip. @default 'secondary' */
22
+ color?: EdsTooltipColor;
23
+ /** Position of the tooltip relative to its trigger. @default 'above' */
24
+ position?: EdsTooltipPosition;
25
+ /** Alignment of the content in the tooltip. @default 'center' */
26
+ contentAlignment?: EdsTooltipContentAlignment;
27
+ /** Delay (ms) before the tooltip becomes visible on hover/focus. @default 0 */
28
+ showDelay?: number;
29
+ /** Delay (ms) before the tooltip hides on mouseleave/blur. @default 0 */
30
+ hideDelay?: number;
31
+ /** Whether the tooltip is disabled (never shows). @default false */
32
+ isDisabled?: boolean;
33
+ /** Data attribute for e2e testing, applied to the panel. @default 'eds-tooltip' */
34
+ e2eAttr?: string;
35
+ /** The trigger element(s) — rendered inline; hovering/focusing them shows the tooltip. */
36
+ children?: React.ReactNode;
37
+ }
38
+ /**
39
+ * `EdsTooltip` — pure React port of the Angular `[edsTooltip]` directive + its
40
+ * `eds-tooltip-container` panel.
41
+ *
42
+ * Renders its `children` (the trigger) inline and, on `mouseenter`/`focus` (after
43
+ * `showDelay`), shows a floating panel with `content` in a portal to `document.body` (the
44
+ * light-DOM analog of the CDK overlay, so it escapes ancestor `overflow`). Hides on
45
+ * `mouseleave`/`blur` (after `hideDelay`) and on `Escape`. The resolved placement (after
46
+ * viewport fallback flipping) is reflected on the panel as `data-position`, matching the
47
+ * Angular `eds-tooltip--<position>` panel classes the container SCSS selects on.
48
+ *
49
+ * A11y: the trigger wrapper gets `aria-describedby` linking to the panel `id` while open;
50
+ * the panel carries `role="tooltip"`.
51
+ */
52
+ export declare const EdsTooltip: React.ForwardRefExoticComponent<EdsTooltipProps & React.RefAttributes<HTMLSpanElement>>;
53
+ //# sourceMappingURL=eds-tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-tooltip.d.ts","sourceRoot":"","sources":["../../src/eds-tooltip/eds-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;GAGG;AACH,MAAM,MAAM,eAAe,GACrB,SAAS,GACT,WAAW,GACX,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,CAAC;AAEf,yDAAyD;AACzD,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAK3F,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACrG;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0DAA0D;IAC1D,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;IAC9C,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAyED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,yFAwIrB,CAAC"}
@@ -0,0 +1,179 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { useCallback, useId, useLayoutEffect, useRef, useState } from 'react';
4
+ import { createPortal } from 'react-dom';
5
+ /** Viewport gap kept when deciding whether a placement fits (px). */
6
+ const VIEWPORT_MARGIN = 8;
7
+ /**
8
+ * Compute the panel's fixed-position coordinates for a resolved placement, given the
9
+ * trigger and panel rects. Mirrors the CDK `ConnectionPositionPair` origin/overlay pairing
10
+ * encoded in the Angular `setPosition()` (above: originY top ↔ overlayY bottom; below:
11
+ * originY bottom ↔ overlayY top; left/before: originX start ↔ overlayX end, centered Y;
12
+ * right/after: originX end ↔ overlayX start, centered Y).
13
+ */
14
+ function coordsFor(placement, trigger, panel) {
15
+ switch (placement) {
16
+ case 'above':
17
+ return {
18
+ top: trigger.top - panel.height,
19
+ left: trigger.left + trigger.width / 2 - panel.width / 2,
20
+ };
21
+ case 'below':
22
+ return {
23
+ top: trigger.bottom,
24
+ left: trigger.left + trigger.width / 2 - panel.width / 2,
25
+ };
26
+ case 'left':
27
+ return {
28
+ top: trigger.top + trigger.height / 2 - panel.height / 2,
29
+ left: trigger.left - panel.width,
30
+ };
31
+ case 'right':
32
+ return {
33
+ top: trigger.top + trigger.height / 2 - panel.height / 2,
34
+ left: trigger.right,
35
+ };
36
+ }
37
+ }
38
+ /** Whether a set of coordinates keeps the panel within the viewport (with a margin). */
39
+ function fits(placement, trigger, panel) {
40
+ const { top, left } = coordsFor(placement, trigger, panel);
41
+ return (top >= VIEWPORT_MARGIN &&
42
+ left >= VIEWPORT_MARGIN &&
43
+ top + panel.height <= window.innerHeight - VIEWPORT_MARGIN &&
44
+ left + panel.width <= window.innerWidth - VIEWPORT_MARGIN);
45
+ }
46
+ /**
47
+ * The requested `position` → primary resolved placement + its fallback, reproducing the
48
+ * Angular `setPosition()` primary/fallback pairing:
49
+ * - above ↔ below
50
+ * - below ↔ above
51
+ * - left/before ↔ right (fallback flips to the opposite side)
52
+ * - right/after ↔ left
53
+ */
54
+ function placementsFor(position) {
55
+ switch (position) {
56
+ case 'above':
57
+ return ['above', 'below'];
58
+ case 'below':
59
+ return ['below', 'above'];
60
+ case 'left':
61
+ case 'before':
62
+ return ['left', 'right'];
63
+ case 'right':
64
+ case 'after':
65
+ return ['right', 'left'];
66
+ default:
67
+ return ['above', 'below'];
68
+ }
69
+ }
70
+ /**
71
+ * `EdsTooltip` — pure React port of the Angular `[edsTooltip]` directive + its
72
+ * `eds-tooltip-container` panel.
73
+ *
74
+ * Renders its `children` (the trigger) inline and, on `mouseenter`/`focus` (after
75
+ * `showDelay`), shows a floating panel with `content` in a portal to `document.body` (the
76
+ * light-DOM analog of the CDK overlay, so it escapes ancestor `overflow`). Hides on
77
+ * `mouseleave`/`blur` (after `hideDelay`) and on `Escape`. The resolved placement (after
78
+ * viewport fallback flipping) is reflected on the panel as `data-position`, matching the
79
+ * Angular `eds-tooltip--<position>` panel classes the container SCSS selects on.
80
+ *
81
+ * A11y: the trigger wrapper gets `aria-describedby` linking to the panel `id` while open;
82
+ * the panel carries `role="tooltip"`.
83
+ */
84
+ export const EdsTooltip = React.forwardRef(function EdsTooltip({ content = null, color = 'secondary', position = 'above', contentAlignment = 'center', showDelay = 0, hideDelay = 0, isDisabled = false, e2eAttr = 'eds-tooltip', children, className, ...rest }, ref) {
85
+ const triggerRef = useRef(null);
86
+ const panelRef = useRef(null);
87
+ const showTimer = useRef(null);
88
+ const hideTimer = useRef(null);
89
+ const panelId = useId();
90
+ const [isOpen, setIsOpen] = useState(false);
91
+ const [resolved, setResolved] = useState('above');
92
+ const [coords, setCoords] = useState({ top: 0, left: 0 });
93
+ const hasContent = content !== null && content !== undefined && content !== '';
94
+ const clearTimers = useCallback(() => {
95
+ if (showTimer.current) {
96
+ clearTimeout(showTimer.current);
97
+ showTimer.current = null;
98
+ }
99
+ if (hideTimer.current) {
100
+ clearTimeout(hideTimer.current);
101
+ hideTimer.current = null;
102
+ }
103
+ }, []);
104
+ const show = useCallback(() => {
105
+ if (hideTimer.current) {
106
+ clearTimeout(hideTimer.current);
107
+ hideTimer.current = null;
108
+ }
109
+ if (showTimer.current)
110
+ return;
111
+ showTimer.current = setTimeout(() => {
112
+ showTimer.current = null;
113
+ if (!isDisabled && hasContent) {
114
+ setIsOpen(true);
115
+ }
116
+ }, showDelay);
117
+ }, [showDelay, isDisabled, hasContent]);
118
+ const hide = useCallback(() => {
119
+ if (showTimer.current) {
120
+ clearTimeout(showTimer.current);
121
+ showTimer.current = null;
122
+ }
123
+ if (hideTimer.current)
124
+ return;
125
+ hideTimer.current = setTimeout(() => {
126
+ hideTimer.current = null;
127
+ setIsOpen(false);
128
+ }, hideDelay);
129
+ }, [hideDelay]);
130
+ // Compute placement + coordinates once the panel is in the DOM, then reposition on
131
+ // scroll/resize (mirrors the CDK reposition scroll strategy + position fallback).
132
+ useLayoutEffect(() => {
133
+ if (!isOpen)
134
+ return;
135
+ const reposition = () => {
136
+ const triggerEl = triggerRef.current;
137
+ const panelEl = panelRef.current;
138
+ if (!triggerEl || !panelEl)
139
+ return;
140
+ const triggerRect = triggerEl.getBoundingClientRect();
141
+ const panelRect = panelEl.getBoundingClientRect();
142
+ const [primary, fallback] = placementsFor(position);
143
+ const placement = fits(primary, triggerRect, panelRect) ? primary : fallback;
144
+ setResolved(placement);
145
+ setCoords(coordsFor(placement, triggerRect, panelRect));
146
+ };
147
+ reposition();
148
+ window.addEventListener('scroll', reposition, true);
149
+ window.addEventListener('resize', reposition);
150
+ return () => {
151
+ window.removeEventListener('scroll', reposition, true);
152
+ window.removeEventListener('resize', reposition);
153
+ };
154
+ }, [isOpen, position, content]);
155
+ // Clear pending timers on unmount.
156
+ useLayoutEffect(() => clearTimers, [clearTimers]);
157
+ const onKeyDown = (event) => {
158
+ if (event.key === 'Escape' && isOpen) {
159
+ event.stopPropagation();
160
+ hide();
161
+ }
162
+ };
163
+ return (_jsxs("span", { ref: mergeRefs(triggerRef, ref), className: className ? `eds-tooltip-trigger ${className}` : 'eds-tooltip-trigger', onMouseEnter: show, onFocus: show, onMouseLeave: hide, onBlur: hide, onKeyDown: onKeyDown, "aria-describedby": isOpen ? panelId : undefined, ...rest, children: [children, isOpen && hasContent
164
+ ? createPortal(_jsx("div", { className: `eds-tooltip-panel eui-21 eds-tooltip--${resolved}`, style: { position: 'fixed', top: `${coords.top}px`, left: `${coords.left}px`, zIndex: 1000 }, children: _jsx("div", { ref: panelRef, id: panelId, role: "tooltip", "data-e2e": e2eAttr, className: `eds-tooltip eds-tooltip--content-${contentAlignment} eds-tooltip--${color}`, children: _jsx("div", { className: "eds-tooltip__content", children: content }) }) }), document.body)
165
+ : null] }));
166
+ });
167
+ /** Merge a local ref and a forwarded ref onto the same element. */
168
+ function mergeRefs(local, forwarded) {
169
+ return (node) => {
170
+ local.current = node;
171
+ if (typeof forwarded === 'function') {
172
+ forwarded(node);
173
+ }
174
+ else if (forwarded) {
175
+ forwarded.current = node;
176
+ }
177
+ };
178
+ }
179
+ //# sourceMappingURL=eds-tooltip.js.map
@@ -0,0 +1 @@
1
+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I,EACb,YAAY,EAAE,IAAI,EAClB,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,SAAS,sBACF,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,KAC1C,IAAI,aAEP,QAAQ,EACR,MAAM,IAAI,UAAU;gBACjB,CAAC,CAAC,YAAY,CACR,cACI,SAAS,EAAE,yCAAyC,QAAQ,EAAE,EAC9D,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAE5F,cACI,GAAG,EAAE,QAAQ,EACb,EAAE,EAAE,OAAO,EACX,IAAI,EAAC,SAAS,cACJ,OAAO,EACjB,SAAS,EAAE,oCAAoC,gBAAgB,iBAAiB,KAAK,EAAE,YAEvF,cAAK,SAAS,EAAC,sBAAsB,YAAE,OAAO,GAAO,GACnD,GACJ,EACN,QAAQ,CAAC,IAAI,CAChB;gBACH,CAAC,CAAC,IAAI,IACP,CACV,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,mEAAmE;AACnE,SAAS,SAAS,CACd,KAAuC,EACvC,SAAgC;IAEhC,OAAO,CAAC,IAAc,EAAE,EAAE;QACtB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,IAAI,OAAO,SAAS,KAAK,UAAU,EAAE,CAAC;YAClC,SAAS,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;aAAM,IAAI,SAAS,EAAE,CAAC;YACnB,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC;QAC7B,CAAC;IACL,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { EdsTooltip } from './eds-tooltip.js';
2
+ export type { EdsTooltipProps, EdsTooltipColor, EdsTooltipContentAlignment, EdsTooltipPosition, } from './eds-tooltip.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EACR,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,kBAAkB,GACrB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EdsTooltip } from './eds-tooltip.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
package/index.d.ts ADDED
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @eui/eds-react — pure React port of the @eui/eds Angular components.
3
+ *
4
+ * Unlike @eui/eds-wc-react (thin @lit/react wrappers over the eds-wc-* Web Components),
5
+ * these are hand-authored-equivalent React components: markup, behavior, and styling are
6
+ * reimplemented in idiomatic React + attribute-scoped CSS driven by the --eds-* design
7
+ * tokens. No Web Component / @lit/react dependency.
8
+ *
9
+ * For tree-shaking, import individual component entry points instead:
10
+ *
11
+ * ```tsx
12
+ * import { EdsBadge } from '@eui/eds-react/eds-badge';
13
+ * import '@eui/eds-react/eds-badge/eds-badge.css';
14
+ * ```
15
+ */
16
+ export { EdsBadge } from './eds-badge/index.js';
17
+ export type { EdsBadgeProps, EdsBadgeColor, EdsBadgeVariant, EdsBadgeSize } from './eds-badge/index.js';
18
+ export { EdsIcon } from './eds-icon/index.js';
19
+ export type { EdsIconProps, EdsIconColor, EdsIconSize } from './eds-icon/index.js';
20
+ export { EdsIconState } from './eds-icon-state/index.js';
21
+ export type { EdsIconStateProps, EdsIconStateColor, EdsIconStateSize } from './eds-icon-state/index.js';
22
+ export { EdsIconButton } from './eds-icon-button/index.js';
23
+ export type { EdsIconButtonProps, EdsIconButtonColor, EdsIconButtonSize } from './eds-icon-button/index.js';
24
+ export { EdsButton } from './eds-button/index.js';
25
+ export type { EdsButtonProps, EdsButtonType, EdsButtonColor, EdsButtonSize } from './eds-button/index.js';
26
+ export { EdsAlert, EdsAlertTitle } from './eds-alert/index.js';
27
+ export type { EdsAlertProps, EdsAlertColor, EdsAlertTitleProps } from './eds-alert/index.js';
28
+ export { EdsTooltip } from './eds-tooltip/index.js';
29
+ export type { EdsTooltipProps, EdsTooltipColor, EdsTooltipContentAlignment, EdsTooltipPosition, } from './eds-tooltip/index.js';
30
+ export { EdsTag } from './eds-tag/index.js';
31
+ export type { EdsTagProps, EdsTagColor, EdsTagSize } from './eds-tag/index.js';
32
+ export { EdsLink } from './eds-link/index.js';
33
+ export type { EdsLinkProps } from './eds-link/index.js';
34
+ export { EdsChip } from './eds-chip/index.js';
35
+ export type { EdsChipProps, EdsChipColor, EdsChipSize, EdsChipData, EdsChipTooltip } from './eds-chip/index.js';
36
+ export { EdsMenu, EdsMenuItemView } from './eds-menu/index.js';
37
+ export type { EdsMenuProps, EdsMenuItemViewProps, EdsMenuItem } from './eds-menu/index.js';
38
+ export { EdsShell, EdsShellContext, useEdsShell, EdsShellHeader, EdsShellHeaderLogo, EdsShellHeaderEnvironment, EdsShellHeaderApp, EdsShellHeaderStart, EdsShellHeaderEnd, EdsShellToolbar, EdsShellToolbarStart, EdsShellToolbarEnd, EdsShellToolbarCenter, EdsShellToolbarLogo, EdsShellToolbarEnvironment, EdsShellToolbarApp, EdsShellSidebar, EdsShellSidebarHeader, EdsShellSidebarNav, EdsShellSidebarBottomNav, EdsShellSidebarFooter, EdsShellContent, EdsShellFooter, EdsShellMenuToggle, EdsShellTopMessage, } from './eds-shell/index.js';
39
+ export type { EdsShellProps, EdsSidebarCollapseMode, EdsShellContextValue, EdsShellHeaderProps, EdsShellHeaderLogoProps, EdsShellHeaderEnvironmentProps, EdsShellHeaderAppProps, EdsShellHeaderStartProps, EdsShellHeaderEndProps, EdsShellToolbarProps, EdsShellToolbarStartProps, EdsShellToolbarEndProps, EdsShellToolbarCenterProps, EdsShellToolbarLogoProps, EdsShellToolbarEnvironmentProps, EdsShellToolbarAppProps, EdsShellSidebarProps, EdsShellSidebarHeaderProps, EdsShellSidebarNavProps, EdsShellSidebarBottomNavProps, EdsShellSidebarFooterProps, EdsShellContentProps, EdsShellFooterProps, EdsShellMenuToggleProps, EdsShellTopMessageProps, } from './eds-shell/index.js';
40
+ export { EdsAvatar, EdsAvatarIcon, EdsAvatarText, EdsAvatarImage, EdsAvatarBadge, EdsAvatarList, EdsAvatarContent, EdsAvatarContentLabel, EdsAvatarContentSublabel, } from './eds-avatar/index.js';
41
+ export type { EdsAvatarProps, EdsAvatarSize, EdsAvatarIconProps, EdsAvatarTextProps, EdsAvatarImageProps, EdsAvatarBadgeProps, EdsAvatarListProps, EdsAvatarContentProps, EdsAvatarContentLabelProps, EdsAvatarContentSublabelProps, } from './eds-avatar/index.js';
42
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAExG,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAExG,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iB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ACrB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,kBAAkB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACR,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,+BAA+B,EAC/B,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,GAC1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,SAAS,EACT,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACR,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,GAChC,MAAM,uBAAuB,CAAC"}
package/index.js ADDED
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @eui/eds-react — pure React port of the @eui/eds Angular components.
3
+ *
4
+ * Unlike @eui/eds-wc-react (thin @lit/react wrappers over the eds-wc-* Web Components),
5
+ * these are hand-authored-equivalent React components: markup, behavior, and styling are
6
+ * reimplemented in idiomatic React + attribute-scoped CSS driven by the --eds-* design
7
+ * tokens. No Web Component / @lit/react dependency.
8
+ *
9
+ * For tree-shaking, import individual component entry points instead:
10
+ *
11
+ * ```tsx
12
+ * import { EdsBadge } from '@eui/eds-react/eds-badge';
13
+ * import '@eui/eds-react/eds-badge/eds-badge.css';
14
+ * ```
15
+ */
16
+ export { EdsBadge } from './eds-badge/index.js';
17
+ export { EdsIcon } from './eds-icon/index.js';
18
+ export { EdsIconState } from './eds-icon-state/index.js';
19
+ export { EdsIconButton } from './eds-icon-button/index.js';
20
+ export { EdsButton } from './eds-button/index.js';
21
+ export { EdsAlert, EdsAlertTitle } from './eds-alert/index.js';
22
+ export { EdsTooltip } from './eds-tooltip/index.js';
23
+ export { EdsTag } from './eds-tag/index.js';
24
+ export { EdsLink } from './eds-link/index.js';
25
+ export { EdsChip } from './eds-chip/index.js';
26
+ export { EdsMenu, EdsMenuItemView } from './eds-menu/index.js';
27
+ export { EdsShell, EdsShellContext, useEdsShell, EdsShellHeader, EdsShellHeaderLogo, EdsShellHeaderEnvironment, EdsShellHeaderApp, EdsShellHeaderStart, EdsShellHeaderEnd, EdsShellToolbar, EdsShellToolbarStart, EdsShellToolbarEnd, EdsShellToolbarCenter, EdsShellToolbarLogo, EdsShellToolbarEnvironment, EdsShellToolbarApp, EdsShellSidebar, EdsShellSidebarHeader, EdsShellSidebarNav, EdsShellSidebarBottomNav, EdsShellSidebarFooter, EdsShellContent, EdsShellFooter, EdsShellMenuToggle, EdsShellTopMessage, } from './eds-shell/index.js';
28
+ export { EdsAvatar, EdsAvatarIcon, EdsAvatarText, EdsAvatarImage, EdsAvatarBadge, EdsAvatarList, EdsAvatarContent, EdsAvatarContentLabel, EdsAvatarContentSublabel, } from './eds-avatar/index.js';
29
+ //# sourceMappingURL=index.js.map