@eui/eds-react 22.0.0-alpha.10

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 (313) hide show
  1. package/eds-accordion/eds-accordion-item.css +108 -0
  2. package/eds-accordion/eds-accordion-item.d.ts +47 -0
  3. package/eds-accordion/eds-accordion-item.d.ts.map +1 -0
  4. package/eds-accordion/eds-accordion-item.js +87 -0
  5. package/eds-accordion/eds-accordion-item.js.map +1 -0
  6. package/eds-accordion/eds-accordion.css +7 -0
  7. package/eds-accordion/eds-accordion.d.ts +54 -0
  8. package/eds-accordion/eds-accordion.d.ts.map +1 -0
  9. package/eds-accordion/eds-accordion.js +79 -0
  10. package/eds-accordion/eds-accordion.js.map +1 -0
  11. package/eds-accordion/index.d.ts +5 -0
  12. package/eds-accordion/index.d.ts.map +1 -0
  13. package/eds-accordion/index.js +3 -0
  14. package/eds-accordion/index.js.map +1 -0
  15. package/eds-alert/eds-alert-title.css +5 -0
  16. package/eds-alert/eds-alert-title.d.ts +12 -0
  17. package/eds-alert/eds-alert-title.d.ts.map +1 -0
  18. package/eds-alert/eds-alert-title.js +12 -0
  19. package/eds-alert/eds-alert-title.js.map +1 -0
  20. package/eds-alert/eds-alert.css +62 -0
  21. package/eds-alert/eds-alert.d.ts +38 -0
  22. package/eds-alert/eds-alert.d.ts.map +1 -0
  23. package/eds-alert/eds-alert.js +29 -0
  24. package/eds-alert/eds-alert.js.map +1 -0
  25. package/eds-alert/index.d.ts +5 -0
  26. package/eds-alert/index.d.ts.map +1 -0
  27. package/eds-alert/index.js +3 -0
  28. package/eds-alert/index.js.map +1 -0
  29. package/eds-avatar/eds-avatar-badge.css +34 -0
  30. package/eds-avatar/eds-avatar-badge.d.ts +20 -0
  31. package/eds-avatar/eds-avatar-badge.d.ts.map +1 -0
  32. package/eds-avatar/eds-avatar-badge.js +13 -0
  33. package/eds-avatar/eds-avatar-badge.js.map +1 -0
  34. package/eds-avatar/eds-avatar-content-label.css +5 -0
  35. package/eds-avatar/eds-avatar-content-label.d.ts +13 -0
  36. package/eds-avatar/eds-avatar-content-label.d.ts.map +1 -0
  37. package/eds-avatar/eds-avatar-content-label.js +12 -0
  38. package/eds-avatar/eds-avatar-content-label.js.map +1 -0
  39. package/eds-avatar/eds-avatar-content-sublabel.css +5 -0
  40. package/eds-avatar/eds-avatar-content-sublabel.d.ts +13 -0
  41. package/eds-avatar/eds-avatar-content-sublabel.d.ts.map +1 -0
  42. package/eds-avatar/eds-avatar-content-sublabel.js +12 -0
  43. package/eds-avatar/eds-avatar-content-sublabel.js.map +1 -0
  44. package/eds-avatar/eds-avatar-content.css +6 -0
  45. package/eds-avatar/eds-avatar-content.d.ts +17 -0
  46. package/eds-avatar/eds-avatar-content.d.ts.map +1 -0
  47. package/eds-avatar/eds-avatar-content.js +12 -0
  48. package/eds-avatar/eds-avatar-content.js.map +1 -0
  49. package/eds-avatar/eds-avatar-icon.css +13 -0
  50. package/eds-avatar/eds-avatar-icon.d.ts +14 -0
  51. package/eds-avatar/eds-avatar-icon.d.ts.map +1 -0
  52. package/eds-avatar/eds-avatar-icon.js +13 -0
  53. package/eds-avatar/eds-avatar-icon.js.map +1 -0
  54. package/eds-avatar/eds-avatar-image.css +24 -0
  55. package/eds-avatar/eds-avatar-image.d.ts +19 -0
  56. package/eds-avatar/eds-avatar-image.d.ts.map +1 -0
  57. package/eds-avatar/eds-avatar-image.js +16 -0
  58. package/eds-avatar/eds-avatar-image.js.map +1 -0
  59. package/eds-avatar/eds-avatar-list.css +21 -0
  60. package/eds-avatar/eds-avatar-list.d.ts +14 -0
  61. package/eds-avatar/eds-avatar-list.d.ts.map +1 -0
  62. package/eds-avatar/eds-avatar-list.js +13 -0
  63. package/eds-avatar/eds-avatar-list.js.map +1 -0
  64. package/eds-avatar/eds-avatar-text.css +7 -0
  65. package/eds-avatar/eds-avatar-text.d.ts +14 -0
  66. package/eds-avatar/eds-avatar-text.d.ts.map +1 -0
  67. package/eds-avatar/eds-avatar-text.js +13 -0
  68. package/eds-avatar/eds-avatar-text.js.map +1 -0
  69. package/eds-avatar/eds-avatar.css +128 -0
  70. package/eds-avatar/eds-avatar.d.ts +38 -0
  71. package/eds-avatar/eds-avatar.d.ts.map +1 -0
  72. package/eds-avatar/eds-avatar.js +48 -0
  73. package/eds-avatar/eds-avatar.js.map +1 -0
  74. package/eds-avatar/index.d.ts +19 -0
  75. package/eds-avatar/index.d.ts.map +1 -0
  76. package/eds-avatar/index.js +10 -0
  77. package/eds-avatar/index.js.map +1 -0
  78. package/eds-badge/eds-badge.css +174 -0
  79. package/eds-badge/eds-badge.d.ts +46 -0
  80. package/eds-badge/eds-badge.d.ts.map +1 -0
  81. package/eds-badge/eds-badge.js +39 -0
  82. package/eds-badge/eds-badge.js.map +1 -0
  83. package/eds-badge/index.d.ts +3 -0
  84. package/eds-badge/index.d.ts.map +1 -0
  85. package/eds-badge/index.js +2 -0
  86. package/eds-badge/index.js.map +1 -0
  87. package/eds-button/eds-button.css +233 -0
  88. package/eds-button/eds-button.d.ts +65 -0
  89. package/eds-button/eds-button.d.ts.map +1 -0
  90. package/eds-button/eds-button.js +33 -0
  91. package/eds-button/eds-button.js.map +1 -0
  92. package/eds-button/index.d.ts +3 -0
  93. package/eds-button/index.d.ts.map +1 -0
  94. package/eds-button/index.js +2 -0
  95. package/eds-button/index.js.map +1 -0
  96. package/eds-chip/eds-chip.css +171 -0
  97. package/eds-chip/eds-chip.d.ts +71 -0
  98. package/eds-chip/eds-chip.d.ts.map +1 -0
  99. package/eds-chip/eds-chip.js +95 -0
  100. package/eds-chip/eds-chip.js.map +1 -0
  101. package/eds-chip/index.d.ts +3 -0
  102. package/eds-chip/index.d.ts.map +1 -0
  103. package/eds-chip/index.js +2 -0
  104. package/eds-chip/index.js.map +1 -0
  105. package/eds-chip-list/eds-chip-list.css +32 -0
  106. package/eds-chip-list/eds-chip-list.d.ts +68 -0
  107. package/eds-chip-list/eds-chip-list.d.ts.map +1 -0
  108. package/eds-chip-list/eds-chip-list.js +69 -0
  109. package/eds-chip-list/eds-chip-list.js.map +1 -0
  110. package/eds-chip-list/index.d.ts +3 -0
  111. package/eds-chip-list/index.d.ts.map +1 -0
  112. package/eds-chip-list/index.js +2 -0
  113. package/eds-chip-list/index.js.map +1 -0
  114. package/eds-icon/eds-icon.css +80 -0
  115. package/eds-icon/eds-icon.d.ts +44 -0
  116. package/eds-icon/eds-icon.d.ts.map +1 -0
  117. package/eds-icon/eds-icon.js +26 -0
  118. package/eds-icon/eds-icon.js.map +1 -0
  119. package/eds-icon/index.d.ts +3 -0
  120. package/eds-icon/index.d.ts.map +1 -0
  121. package/eds-icon/index.js +2 -0
  122. package/eds-icon/index.js.map +1 -0
  123. package/eds-icon-button/eds-icon-button.css +83 -0
  124. package/eds-icon-button/eds-icon-button.d.ts +33 -0
  125. package/eds-icon-button/eds-icon-button.d.ts.map +1 -0
  126. package/eds-icon-button/eds-icon-button.js +15 -0
  127. package/eds-icon-button/eds-icon-button.js.map +1 -0
  128. package/eds-icon-button/index.d.ts +3 -0
  129. package/eds-icon-button/index.d.ts.map +1 -0
  130. package/eds-icon-button/index.js +2 -0
  131. package/eds-icon-button/index.js.map +1 -0
  132. package/eds-icon-state/eds-icon-state.css +5 -0
  133. package/eds-icon-state/eds-icon-state.d.ts +24 -0
  134. package/eds-icon-state/eds-icon-state.d.ts.map +1 -0
  135. package/eds-icon-state/eds-icon-state.js +21 -0
  136. package/eds-icon-state/eds-icon-state.js.map +1 -0
  137. package/eds-icon-state/index.d.ts +3 -0
  138. package/eds-icon-state/index.d.ts.map +1 -0
  139. package/eds-icon-state/index.js +2 -0
  140. package/eds-icon-state/index.js.map +1 -0
  141. package/eds-link/eds-link.css +83 -0
  142. package/eds-link/eds-link.d.ts +32 -0
  143. package/eds-link/eds-link.d.ts.map +1 -0
  144. package/eds-link/eds-link.js +15 -0
  145. package/eds-link/eds-link.js.map +1 -0
  146. package/eds-link/index.d.ts +3 -0
  147. package/eds-link/index.d.ts.map +1 -0
  148. package/eds-link/index.js +2 -0
  149. package/eds-link/index.js.map +1 -0
  150. package/eds-menu/eds-menu-item-view.d.ts +31 -0
  151. package/eds-menu/eds-menu-item-view.d.ts.map +1 -0
  152. package/eds-menu/eds-menu-item-view.js +65 -0
  153. package/eds-menu/eds-menu-item-view.js.map +1 -0
  154. package/eds-menu/eds-menu-item.css +221 -0
  155. package/eds-menu/eds-menu-item.model.d.ts +69 -0
  156. package/eds-menu/eds-menu-item.model.d.ts.map +1 -0
  157. package/eds-menu/eds-menu-item.model.js +2 -0
  158. package/eds-menu/eds-menu-item.model.js.map +1 -0
  159. package/eds-menu/eds-menu.css +83 -0
  160. package/eds-menu/eds-menu.d.ts +52 -0
  161. package/eds-menu/eds-menu.d.ts.map +1 -0
  162. package/eds-menu/eds-menu.js +145 -0
  163. package/eds-menu/eds-menu.js.map +1 -0
  164. package/eds-menu/index.d.ts +6 -0
  165. package/eds-menu/index.d.ts.map +1 -0
  166. package/eds-menu/index.js +3 -0
  167. package/eds-menu/index.js.map +1 -0
  168. package/eds-shell/eds-shell-content.css +11 -0
  169. package/eds-shell/eds-shell-content.d.ts +11 -0
  170. package/eds-shell/eds-shell-content.d.ts.map +1 -0
  171. package/eds-shell/eds-shell-content.js +10 -0
  172. package/eds-shell/eds-shell-content.js.map +1 -0
  173. package/eds-shell/eds-shell-context.d.ts +20 -0
  174. package/eds-shell/eds-shell-context.d.ts.map +1 -0
  175. package/eds-shell/eds-shell-context.js +7 -0
  176. package/eds-shell/eds-shell-context.js.map +1 -0
  177. package/eds-shell/eds-shell-footer.css +25 -0
  178. package/eds-shell/eds-shell-footer.d.ts +12 -0
  179. package/eds-shell/eds-shell-footer.d.ts.map +1 -0
  180. package/eds-shell/eds-shell-footer.js +9 -0
  181. package/eds-shell/eds-shell-footer.js.map +1 -0
  182. package/eds-shell/eds-shell-header-app.css +23 -0
  183. package/eds-shell/eds-shell-header-app.d.ts +16 -0
  184. package/eds-shell/eds-shell-header-app.d.ts.map +1 -0
  185. package/eds-shell/eds-shell-header-app.js +11 -0
  186. package/eds-shell/eds-shell-header-app.js.map +1 -0
  187. package/eds-shell/eds-shell-header-end.css +5 -0
  188. package/eds-shell/eds-shell-header-end.d.ts +11 -0
  189. package/eds-shell/eds-shell-header-end.d.ts.map +1 -0
  190. package/eds-shell/eds-shell-header-end.js +10 -0
  191. package/eds-shell/eds-shell-header-end.js.map +1 -0
  192. package/eds-shell/eds-shell-header-environment.css +21 -0
  193. package/eds-shell/eds-shell-header-environment.d.ts +11 -0
  194. package/eds-shell/eds-shell-header-environment.d.ts.map +1 -0
  195. package/eds-shell/eds-shell-header-environment.js +10 -0
  196. package/eds-shell/eds-shell-header-environment.js.map +1 -0
  197. package/eds-shell/eds-shell-header-logo.css +14 -0
  198. package/eds-shell/eds-shell-header-logo.d.ts +20 -0
  199. package/eds-shell/eds-shell-header-logo.d.ts.map +1 -0
  200. package/eds-shell/eds-shell-header-logo.js +10 -0
  201. package/eds-shell/eds-shell-header-logo.js.map +1 -0
  202. package/eds-shell/eds-shell-header-start.css +5 -0
  203. package/eds-shell/eds-shell-header-start.d.ts +11 -0
  204. package/eds-shell/eds-shell-header-start.d.ts.map +1 -0
  205. package/eds-shell/eds-shell-header-start.js +10 -0
  206. package/eds-shell/eds-shell-header-start.js.map +1 -0
  207. package/eds-shell/eds-shell-header.css +33 -0
  208. package/eds-shell/eds-shell-header.d.ts +25 -0
  209. package/eds-shell/eds-shell-header.d.ts.map +1 -0
  210. package/eds-shell/eds-shell-header.js +14 -0
  211. package/eds-shell/eds-shell-header.js.map +1 -0
  212. package/eds-shell/eds-shell-menu-toggle.css +4 -0
  213. package/eds-shell/eds-shell-menu-toggle.d.ts +16 -0
  214. package/eds-shell/eds-shell-menu-toggle.d.ts.map +1 -0
  215. package/eds-shell/eds-shell-menu-toggle.js +20 -0
  216. package/eds-shell/eds-shell-menu-toggle.js.map +1 -0
  217. package/eds-shell/eds-shell-sidebar-bottom-nav.css +8 -0
  218. package/eds-shell/eds-shell-sidebar-bottom-nav.d.ts +20 -0
  219. package/eds-shell/eds-shell-sidebar-bottom-nav.d.ts.map +1 -0
  220. package/eds-shell/eds-shell-sidebar-bottom-nav.js +11 -0
  221. package/eds-shell/eds-shell-sidebar-bottom-nav.js.map +1 -0
  222. package/eds-shell/eds-shell-sidebar-footer.css +10 -0
  223. package/eds-shell/eds-shell-sidebar-footer.d.ts +10 -0
  224. package/eds-shell/eds-shell-sidebar-footer.d.ts.map +1 -0
  225. package/eds-shell/eds-shell-sidebar-footer.js +10 -0
  226. package/eds-shell/eds-shell-sidebar-footer.js.map +1 -0
  227. package/eds-shell/eds-shell-sidebar-header.css +33 -0
  228. package/eds-shell/eds-shell-sidebar-header.d.ts +16 -0
  229. package/eds-shell/eds-shell-sidebar-header.d.ts.map +1 -0
  230. package/eds-shell/eds-shell-sidebar-header.js +10 -0
  231. package/eds-shell/eds-shell-sidebar-header.js.map +1 -0
  232. package/eds-shell/eds-shell-sidebar-nav.css +9 -0
  233. package/eds-shell/eds-shell-sidebar-nav.d.ts +20 -0
  234. package/eds-shell/eds-shell-sidebar-nav.d.ts.map +1 -0
  235. package/eds-shell/eds-shell-sidebar-nav.js +11 -0
  236. package/eds-shell/eds-shell-sidebar-nav.js.map +1 -0
  237. package/eds-shell/eds-shell-sidebar.css +5 -0
  238. package/eds-shell/eds-shell-sidebar.d.ts +25 -0
  239. package/eds-shell/eds-shell-sidebar.d.ts.map +1 -0
  240. package/eds-shell/eds-shell-sidebar.js +15 -0
  241. package/eds-shell/eds-shell-sidebar.js.map +1 -0
  242. package/eds-shell/eds-shell-toolbar-app.css +23 -0
  243. package/eds-shell/eds-shell-toolbar-app.d.ts +16 -0
  244. package/eds-shell/eds-shell-toolbar-app.d.ts.map +1 -0
  245. package/eds-shell/eds-shell-toolbar-app.js +11 -0
  246. package/eds-shell/eds-shell-toolbar-app.js.map +1 -0
  247. package/eds-shell/eds-shell-toolbar-center.css +6 -0
  248. package/eds-shell/eds-shell-toolbar-center.d.ts +11 -0
  249. package/eds-shell/eds-shell-toolbar-center.d.ts.map +1 -0
  250. package/eds-shell/eds-shell-toolbar-center.js +10 -0
  251. package/eds-shell/eds-shell-toolbar-center.js.map +1 -0
  252. package/eds-shell/eds-shell-toolbar-end.css +23 -0
  253. package/eds-shell/eds-shell-toolbar-end.d.ts +11 -0
  254. package/eds-shell/eds-shell-toolbar-end.d.ts.map +1 -0
  255. package/eds-shell/eds-shell-toolbar-end.js +10 -0
  256. package/eds-shell/eds-shell-toolbar-end.js.map +1 -0
  257. package/eds-shell/eds-shell-toolbar-environment.css +21 -0
  258. package/eds-shell/eds-shell-toolbar-environment.d.ts +11 -0
  259. package/eds-shell/eds-shell-toolbar-environment.d.ts.map +1 -0
  260. package/eds-shell/eds-shell-toolbar-environment.js +10 -0
  261. package/eds-shell/eds-shell-toolbar-environment.js.map +1 -0
  262. package/eds-shell/eds-shell-toolbar-logo.css +11 -0
  263. package/eds-shell/eds-shell-toolbar-logo.d.ts +8 -0
  264. package/eds-shell/eds-shell-toolbar-logo.d.ts.map +1 -0
  265. package/eds-shell/eds-shell-toolbar-logo.js +10 -0
  266. package/eds-shell/eds-shell-toolbar-logo.js.map +1 -0
  267. package/eds-shell/eds-shell-toolbar-start.css +5 -0
  268. package/eds-shell/eds-shell-toolbar-start.d.ts +11 -0
  269. package/eds-shell/eds-shell-toolbar-start.d.ts.map +1 -0
  270. package/eds-shell/eds-shell-toolbar-start.js +10 -0
  271. package/eds-shell/eds-shell-toolbar-start.js.map +1 -0
  272. package/eds-shell/eds-shell-toolbar.css +37 -0
  273. package/eds-shell/eds-shell-toolbar.d.ts +27 -0
  274. package/eds-shell/eds-shell-toolbar.d.ts.map +1 -0
  275. package/eds-shell/eds-shell-toolbar.js +12 -0
  276. package/eds-shell/eds-shell-toolbar.js.map +1 -0
  277. package/eds-shell/eds-shell-top-message.css +48 -0
  278. package/eds-shell/eds-shell-top-message.d.ts +22 -0
  279. package/eds-shell/eds-shell-top-message.d.ts.map +1 -0
  280. package/eds-shell/eds-shell-top-message.js +24 -0
  281. package/eds-shell/eds-shell-top-message.js.map +1 -0
  282. package/eds-shell/eds-shell.css +105 -0
  283. package/eds-shell/eds-shell.d.ts +41 -0
  284. package/eds-shell/eds-shell.d.ts.map +1 -0
  285. package/eds-shell/eds-shell.js +116 -0
  286. package/eds-shell/eds-shell.js.map +1 -0
  287. package/eds-shell/index.d.ts +50 -0
  288. package/eds-shell/index.d.ts.map +1 -0
  289. package/eds-shell/index.js +25 -0
  290. package/eds-shell/index.js.map +1 -0
  291. package/eds-tag/eds-tag.css +83 -0
  292. package/eds-tag/eds-tag.d.ts +29 -0
  293. package/eds-tag/eds-tag.d.ts.map +1 -0
  294. package/eds-tag/eds-tag.js +14 -0
  295. package/eds-tag/eds-tag.js.map +1 -0
  296. package/eds-tag/index.d.ts +3 -0
  297. package/eds-tag/index.d.ts.map +1 -0
  298. package/eds-tag/index.js +2 -0
  299. package/eds-tag/index.js.map +1 -0
  300. package/eds-tooltip/eds-tooltip.css +140 -0
  301. package/eds-tooltip/eds-tooltip.d.ts +53 -0
  302. package/eds-tooltip/eds-tooltip.d.ts.map +1 -0
  303. package/eds-tooltip/eds-tooltip.js +179 -0
  304. package/eds-tooltip/eds-tooltip.js.map +1 -0
  305. package/eds-tooltip/index.d.ts +3 -0
  306. package/eds-tooltip/index.d.ts.map +1 -0
  307. package/eds-tooltip/index.js +2 -0
  308. package/eds-tooltip/index.js.map +1 -0
  309. package/index.d.ts +46 -0
  310. package/index.d.ts.map +1 -0
  311. package/index.js +31 -0
  312. package/index.js.map +1 -0
  313. package/package.json +115 -0
@@ -0,0 +1,34 @@
1
+ /* Pure-React port of eds-avatar-badge.scss. */
2
+
3
+ .eds-avatar .eds-avatar-badge {
4
+ position: absolute;
5
+ display: inline-flex;
6
+ }
7
+
8
+ /* default position (size m) */
9
+ .eds-avatar .eds-avatar-badge,
10
+ .eds-avatar[data-size="m"] .eds-avatar-badge {
11
+ left: var(--eds-si-xl);
12
+ top: var(--eds-si-xl);
13
+ }
14
+
15
+ .eds-avatar[data-size="2xs"] .eds-avatar-badge {
16
+ left: var(--eds-si-xs);
17
+ top: var(--eds-si-xs);
18
+ }
19
+ .eds-avatar[data-size="xs"] .eds-avatar-badge {
20
+ left: var(--eds-si-m);
21
+ top: var(--eds-si-m);
22
+ }
23
+ .eds-avatar[data-size="s"] .eds-avatar-badge {
24
+ left: var(--eds-si-l);
25
+ top: var(--eds-si-l);
26
+ }
27
+ .eds-avatar[data-size="l"] .eds-avatar-badge {
28
+ left: var(--eds-si-2xl);
29
+ top: var(--eds-si-2xl);
30
+ }
31
+ .eds-avatar[data-size="xl"] .eds-avatar-badge {
32
+ left: var(--eds-si-4xl);
33
+ top: var(--eds-si-4xl);
34
+ }
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ export interface EdsAvatarBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ /**
4
+ * Whether the badge is positioned at the bottom of the avatar. Reflected as
5
+ * `data-position="bottom"` when true, `data-position="top"` when false.
6
+ * @default false
7
+ */
8
+ isPositionBottom?: boolean;
9
+ /** The badge content — typically an `EdsBadge` (`<ng-content/>` → `{children}`). */
10
+ children?: React.ReactNode;
11
+ }
12
+ /**
13
+ * `EdsAvatarBadge` — pure React port of the Angular `eds-avatar-badge`.
14
+ *
15
+ * An absolutely-positioned overlay slot on the avatar surface (top by default, bottom when
16
+ * `isPositionBottom`). Its offsets are driven by the ancestor `.eds-avatar[data-size]`.
17
+ * Carries the `.eds-avatar-badge` class and reflects `data-position`.
18
+ */
19
+ export declare const EdsAvatarBadge: React.ForwardRefExoticComponent<EdsAvatarBadgeProps & React.RefAttributes<HTMLSpanElement>>;
20
+ //# sourceMappingURL=eds-avatar-badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-badge.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC9E;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oFAAoF;IACpF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,6FAa1B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ /**
4
+ * `EdsAvatarBadge` — pure React port of the Angular `eds-avatar-badge`.
5
+ *
6
+ * An absolutely-positioned overlay slot on the avatar surface (top by default, bottom when
7
+ * `isPositionBottom`). Its offsets are driven by the ancestor `.eds-avatar[data-size]`.
8
+ * Carries the `.eds-avatar-badge` class and reflects `data-position`.
9
+ */
10
+ export const EdsAvatarBadge = React.forwardRef(function EdsAvatarBadge({ isPositionBottom = false, children, className, ...rest }, ref) {
11
+ return (_jsx("span", { ref: ref, className: className ? `eds-avatar-badge ${className}` : 'eds-avatar-badge', "data-position": isPositionBottom ? 'bottom' : 'top', ...rest, children: children }));
12
+ });
13
+ //# sourceMappingURL=eds-avatar-badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-badge.js","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-badge.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAC1C,SAAS,cAAc,CAAC,EAAE,gBAAgB,GAAG,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG;IACnF,OAAO,CACH,eACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,oBAAoB,SAAS,EAAE,CAAC,CAAC,CAAC,kBAAkB,mBAC5D,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,KAC9C,IAAI,YAEP,QAAQ,GACN,CACV,CAAC;AACN,CAAC,CACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ /* Pure-React port of eds-avatar-content-label.scss. */
2
+
3
+ .eds-avatar .eds-avatar-content-label {
4
+ font: var(--eds-f-paragraph-s-semi-bold);
5
+ }
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export interface EdsAvatarContentLabelProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ /** Primary label text (`<ng-content/>` → `{children}`). */
4
+ children?: React.ReactNode;
5
+ }
6
+ /**
7
+ * `EdsAvatarContentLabel` — pure React port of the Angular `eds-avatar-content-label`.
8
+ *
9
+ * The primary (semi-bold) label line inside an `EdsAvatarContent`. Pure content projection
10
+ * carrying the `.eds-avatar-content-label` class.
11
+ */
12
+ export declare const EdsAvatarContentLabel: React.ForwardRefExoticComponent<EdsAvatarContentLabelProps & React.RefAttributes<HTMLSpanElement>>;
13
+ //# sourceMappingURL=eds-avatar-content-label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-content-label.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-content-label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,0BAA2B,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACrF,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,oGAYjC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ /**
4
+ * `EdsAvatarContentLabel` — pure React port of the Angular `eds-avatar-content-label`.
5
+ *
6
+ * The primary (semi-bold) label line inside an `EdsAvatarContent`. Pure content projection
7
+ * carrying the `.eds-avatar-content-label` class.
8
+ */
9
+ export const EdsAvatarContentLabel = React.forwardRef(function EdsAvatarContentLabel({ children, className, ...rest }, ref) {
10
+ return (_jsx("span", { ref: ref, className: className ? `eds-avatar-content-label ${className}` : 'eds-avatar-content-label', ...rest, children: children }));
11
+ });
12
+ //# sourceMappingURL=eds-avatar-content-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-content-label.js","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-content-label.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC,UAAU,CACjD,SAAS,qBAAqB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG;IAChE,OAAO,CACH,eACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,4BAA4B,SAAS,EAAE,CAAC,CAAC,CAAC,0BAA0B,KACvF,IAAI,YAEP,QAAQ,GACN,CACV,CAAC;AACN,CAAC,CACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ /* Pure-React port of eds-avatar-content-sublabel.scss. */
2
+
3
+ .eds-avatar .eds-avatar-content-sublabel {
4
+ font: var(--eds-f-paragraph-s);
5
+ }
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export interface EdsAvatarContentSublabelProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ /** Secondary label text (`<ng-content/>` → `{children}`). */
4
+ children?: React.ReactNode;
5
+ }
6
+ /**
7
+ * `EdsAvatarContentSublabel` — pure React port of the Angular `eds-avatar-content-sublabel`.
8
+ *
9
+ * The secondary (regular-weight) label line inside an `EdsAvatarContent`. Pure content
10
+ * projection carrying the `.eds-avatar-content-sublabel` class.
11
+ */
12
+ export declare const EdsAvatarContentSublabel: React.ForwardRefExoticComponent<EdsAvatarContentSublabelProps & React.RefAttributes<HTMLSpanElement>>;
13
+ //# sourceMappingURL=eds-avatar-content-sublabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-content-sublabel.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-content-sublabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,6BAA8B,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACxF,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,uGAYpC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ /**
4
+ * `EdsAvatarContentSublabel` — pure React port of the Angular `eds-avatar-content-sublabel`.
5
+ *
6
+ * The secondary (regular-weight) label line inside an `EdsAvatarContent`. Pure content
7
+ * projection carrying the `.eds-avatar-content-sublabel` class.
8
+ */
9
+ export const EdsAvatarContentSublabel = React.forwardRef(function EdsAvatarContentSublabel({ children, className, ...rest }, ref) {
10
+ return (_jsx("span", { ref: ref, className: className ? `eds-avatar-content-sublabel ${className}` : 'eds-avatar-content-sublabel', ...rest, children: children }));
11
+ });
12
+ //# sourceMappingURL=eds-avatar-content-sublabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-content-sublabel.js","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-content-sublabel.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC,UAAU,CACpD,SAAS,wBAAwB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG;IACnE,OAAO,CACH,eACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,+BAA+B,SAAS,EAAE,CAAC,CAAC,CAAC,6BAA6B,KAC7F,IAAI,YAEP,QAAQ,GACN,CACV,CAAC;AACN,CAAC,CACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ /* Pure-React port of eds-avatar-content.scss. */
2
+
3
+ .eds-avatar .eds-avatar-content {
4
+ display: flex;
5
+ flex-direction: column;
6
+ }
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ export interface EdsAvatarContentProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The label / sublabel lines — typically an `EdsAvatarContentLabel` followed by an
5
+ * `EdsAvatarContentSublabel`. The Angular template projects `eds-avatar-content-label`
6
+ * then `eds-avatar-content-sublabel`; here they render in child order via `{children}`.
7
+ */
8
+ children?: React.ReactNode;
9
+ }
10
+ /**
11
+ * `EdsAvatarContent` — pure React port of the Angular `eds-avatar-content`.
12
+ *
13
+ * A vertical (column) text block placed beside the avatar surface, holding the label and
14
+ * sublabel lines. Carries the `.eds-avatar-content` class.
15
+ */
16
+ export declare const EdsAvatarContent: React.ForwardRefExoticComponent<EdsAvatarContentProps & React.RefAttributes<HTMLDivElement>>;
17
+ //# sourceMappingURL=eds-avatar-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-content.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,8FAY5B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ /**
4
+ * `EdsAvatarContent` — pure React port of the Angular `eds-avatar-content`.
5
+ *
6
+ * A vertical (column) text block placed beside the avatar surface, holding the label and
7
+ * sublabel lines. Carries the `.eds-avatar-content` class.
8
+ */
9
+ export const EdsAvatarContent = React.forwardRef(function EdsAvatarContent({ children, className, ...rest }, ref) {
10
+ return (_jsx("div", { ref: ref, className: className ? `eds-avatar-content ${className}` : 'eds-avatar-content', ...rest, children: children }));
11
+ });
12
+ //# sourceMappingURL=eds-avatar-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-content.js","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-content.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAC5C,SAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG;IAC3D,OAAO,CACH,cACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC,CAAC,oBAAoB,KAC3E,IAAI,YAEP,QAAQ,GACP,CACT,CAAC;AACN,CAAC,CACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ /* Pure-React port of eds-avatar-icon.scss. */
2
+
3
+ .eds-avatar .eds-avatar-icon {
4
+ display: inline-flex;
5
+ color: var(--_color);
6
+ }
7
+
8
+ .eds-avatar .eds-avatar-icon .eds-icon-svg svg {
9
+ height: var(--_icon-size) !important;
10
+ width: var(--_icon-size) !important;
11
+ fill: var(--_color) !important;
12
+ color: var(--_color) !important;
13
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface EdsAvatarIconProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ /** Projected content — an `EdsIcon`, `EdsAvatarText`, or `EdsAvatarImage`. */
4
+ children?: React.ReactNode;
5
+ }
6
+ /**
7
+ * `EdsAvatarIcon` — pure React port of the Angular `eds-avatar-icon`.
8
+ *
9
+ * A pure content-projection wrapper (`<ng-content/>` → `{children}`) that carries the
10
+ * `.eds-avatar-icon` class. It inherits the avatar's `--_color` / `--_icon-size` privates
11
+ * from the `.eds-avatar` ancestor and sizes the projected icon accordingly.
12
+ */
13
+ export declare const EdsAvatarIcon: React.ForwardRefExoticComponent<EdsAvatarIconProps & React.RefAttributes<HTMLSpanElement>>;
14
+ //# sourceMappingURL=eds-avatar-icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-icon.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC7E,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,4FAaxB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ /**
4
+ * `EdsAvatarIcon` — pure React port of the Angular `eds-avatar-icon`.
5
+ *
6
+ * A pure content-projection wrapper (`<ng-content/>` → `{children}`) that carries the
7
+ * `.eds-avatar-icon` class. It inherits the avatar's `--_color` / `--_icon-size` privates
8
+ * from the `.eds-avatar` ancestor and sizes the projected icon accordingly.
9
+ */
10
+ export const EdsAvatarIcon = React.forwardRef(function EdsAvatarIcon({ children, className, ...rest }, ref) {
11
+ return (_jsx("span", { ref: ref, className: className ? `eds-avatar-icon ${className}` : 'eds-avatar-icon', ...rest, children: children }));
12
+ });
13
+ //# sourceMappingURL=eds-avatar-icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-icon.js","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-icon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAAsC,SAAS,aAAa,CACrG,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAChC,GAAG;IAEH,OAAO,CACH,eACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,mBAAmB,SAAS,EAAE,CAAC,CAAC,CAAC,iBAAiB,KACrE,IAAI,YAEP,QAAQ,GACN,CACV,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ /* Pure-React port of eds-avatar-image.scss. */
2
+
3
+ .eds-avatar .eds-avatar-image .eds-avatar-image-wrapper {
4
+ background-size: cover;
5
+ height: var(--_size);
6
+ width: var(--_size);
7
+ }
8
+
9
+ .eds-avatar .eds-avatar-image .eds-avatar-image-wrapper img {
10
+ border-radius: var(--eds-br-full);
11
+ height: var(--_size);
12
+ width: var(--_size);
13
+ }
14
+
15
+ .eds-avatar .eds-avatar-image .eds-icon-svg svg {
16
+ height: var(--_size);
17
+ width: var(--_size);
18
+ }
19
+
20
+ .eds-avatar .eds-avatar-image[data-default] {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ }
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ export interface EdsAvatarImageProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ /**
4
+ * URL of the image to display. When empty, a default user icon (`user:core`) is shown
5
+ * and the `data-default` attribute is set (matching the Angular `[attr.default]`).
6
+ * @default ''
7
+ */
8
+ imageUrl?: string;
9
+ }
10
+ /**
11
+ * `EdsAvatarImage` — pure React port of the Angular `eds-avatar-image`.
12
+ *
13
+ * Renders the avatar's image (`<img src>` in a `.eds-avatar-image-wrapper`) when `imageUrl`
14
+ * is provided, otherwise the default `EdsIcon` (`user:core`, neutral) fallback. Carries the
15
+ * `.eds-avatar-image` class and reflects `data-default` when no image URL is set. Image size
16
+ * comes from the avatar's `--_size` private on the `.eds-avatar` ancestor.
17
+ */
18
+ export declare const EdsAvatarImage: React.ForwardRefExoticComponent<EdsAvatarImageProps & React.RefAttributes<HTMLSpanElement>>;
19
+ //# sourceMappingURL=eds-avatar-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-image.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC9E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,6FAoB1B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { EdsIcon } from '../eds-icon/eds-icon.js';
4
+ /**
5
+ * `EdsAvatarImage` — pure React port of the Angular `eds-avatar-image`.
6
+ *
7
+ * Renders the avatar's image (`<img src>` in a `.eds-avatar-image-wrapper`) when `imageUrl`
8
+ * is provided, otherwise the default `EdsIcon` (`user:core`, neutral) fallback. Carries the
9
+ * `.eds-avatar-image` class and reflects `data-default` when no image URL is set. Image size
10
+ * comes from the avatar's `--_size` private on the `.eds-avatar` ancestor.
11
+ */
12
+ export const EdsAvatarImage = React.forwardRef(function EdsAvatarImage({ imageUrl = '', className, ...rest }, ref) {
13
+ const isDefault = !imageUrl;
14
+ return (_jsx("span", { ref: ref, className: className ? `eds-avatar-image ${className}` : 'eds-avatar-image', "data-default": isDefault ? '' : undefined, ...rest, children: imageUrl ? (_jsx("div", { className: "eds-avatar-image-wrapper", children: _jsx("img", { src: imageUrl, alt: "Avatar" }) })) : (_jsx(EdsIcon, { icon: "user:core", color: "neutral" })) }));
15
+ });
16
+ //# sourceMappingURL=eds-avatar-image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-image.js","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-image.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAWlD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAC1C,SAAS,cAAc,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG;IAC9D,MAAM,SAAS,GAAG,CAAC,QAAQ,CAAC;IAC5B,OAAO,CACH,eACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,oBAAoB,SAAS,EAAE,CAAC,CAAC,CAAC,kBAAkB,kBAC7D,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KACpC,IAAI,YAEP,QAAQ,CAAC,CAAC,CAAC,CACR,cAAK,SAAS,EAAC,0BAA0B,YACrC,cAAK,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAC,QAAQ,GAAG,GACjC,CACT,CAAC,CAAC,CAAC,CACA,KAAC,OAAO,IAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,GAAG,CAC/C,GACE,CACV,CAAC;AACN,CAAC,CACJ,CAAC"}
@@ -0,0 +1,21 @@
1
+ /* Pure-React port of eds-avatar-list.scss. */
2
+
3
+ .eds-avatar-list {
4
+ display: inline-flex;
5
+ }
6
+
7
+ .eds-avatar-list .eds-avatar {
8
+ border: var(--eds-bw-s) solid var(--eds-c-border-inverted);
9
+ }
10
+
11
+ .eds-avatar-list .eds-avatar[data-size="s"]:not(:first-child) {
12
+ margin-left: calc(-1 * var(--eds-sp-s));
13
+ }
14
+
15
+ .eds-avatar-list .eds-avatar[data-size="m"]:not(:first-child) {
16
+ margin-left: calc(-1 * var(--eds-sp-m));
17
+ }
18
+
19
+ .eds-avatar-list .eds-avatar[data-size="l"]:not(:first-child) {
20
+ margin-left: calc(-1 * var(--eds-sp-l));
21
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface EdsAvatarListProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** The grouped `EdsAvatar` elements (`<ng-content/>` → `{children}`). */
4
+ children?: React.ReactNode;
5
+ }
6
+ /**
7
+ * `EdsAvatarList` — pure React port of the Angular `eds-avatar-list`.
8
+ *
9
+ * A horizontal overlapping stack of avatars. Carries the `.eds-avatar-list` class; its CSS
10
+ * adds an inverted border to each descendant `.eds-avatar` and negative margins to overlap
11
+ * them by size (matching the Angular `::ng-deep .eds-avatar` rules).
12
+ */
13
+ export declare const EdsAvatarList: React.ForwardRefExoticComponent<EdsAvatarListProps & React.RefAttributes<HTMLDivElement>>;
14
+ //# sourceMappingURL=eds-avatar-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-list.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E,yEAAyE;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,2FAYzB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ /**
4
+ * `EdsAvatarList` — pure React port of the Angular `eds-avatar-list`.
5
+ *
6
+ * A horizontal overlapping stack of avatars. Carries the `.eds-avatar-list` class; its CSS
7
+ * adds an inverted border to each descendant `.eds-avatar` and negative margins to overlap
8
+ * them by size (matching the Angular `::ng-deep .eds-avatar` rules).
9
+ */
10
+ export const EdsAvatarList = React.forwardRef(function EdsAvatarList({ children, className, ...rest }, ref) {
11
+ return (_jsx("div", { ref: ref, className: className ? `eds-avatar-list ${className}` : 'eds-avatar-list', ...rest, children: children }));
12
+ });
13
+ //# sourceMappingURL=eds-avatar-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-list.js","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-list.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CACzC,SAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG;IACxD,OAAO,CACH,cACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,mBAAmB,SAAS,EAAE,CAAC,CAAC,CAAC,iBAAiB,KACrE,IAAI,YAEP,QAAQ,GACP,CACT,CAAC;AACN,CAAC,CACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* Pure-React port of eds-avatar-text.scss. */
2
+
3
+ .eds-avatar .eds-avatar-text {
4
+ color: var(--_color);
5
+ font-weight: var(--_font-weight);
6
+ font-size: var(--_font-size);
7
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface EdsAvatarTextProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ /** Text / initials rendered inside the avatar (`<ng-content/>` → `{children}`). */
4
+ children?: React.ReactNode;
5
+ }
6
+ /**
7
+ * `EdsAvatarText` — pure React port of the Angular `eds-avatar-text`.
8
+ *
9
+ * Renders initials or short text inside the avatar surface. Pure content projection carrying
10
+ * the `.eds-avatar-text` class; its color / font-size come from the avatar's `--_color` /
11
+ * `--_font-size` privates set on the `.eds-avatar` ancestor.
12
+ */
13
+ export declare const EdsAvatarText: React.ForwardRefExoticComponent<EdsAvatarTextProps & React.RefAttributes<HTMLSpanElement>>;
14
+ //# sourceMappingURL=eds-avatar-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-text.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC7E,mFAAmF;IACnF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,4FAaxB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ /**
4
+ * `EdsAvatarText` — pure React port of the Angular `eds-avatar-text`.
5
+ *
6
+ * Renders initials or short text inside the avatar surface. Pure content projection carrying
7
+ * the `.eds-avatar-text` class; its color / font-size come from the avatar's `--_color` /
8
+ * `--_font-size` privates set on the `.eds-avatar` ancestor.
9
+ */
10
+ export const EdsAvatarText = React.forwardRef(function EdsAvatarText({ children, className, ...rest }, ref) {
11
+ return (_jsx("span", { ref: ref, className: className ? `eds-avatar-text ${className}` : 'eds-avatar-text', ...rest, children: children }));
12
+ });
13
+ //# sourceMappingURL=eds-avatar-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar-text.js","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar-text.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAAsC,SAAS,aAAa,CACrG,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAChC,GAAG;IAEH,OAAO,CACH,eACI,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,mBAAmB,SAAS,EAAE,CAAC,CAAC,CAAC,iBAAiB,KACrE,IAAI,YAEP,QAAQ,GACN,CACV,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -0,0 +1,128 @@
1
+ /* Pure-React port of eds-avatar.scss (attribute-scoped light-DOM CSS). */
2
+
3
+ .eds-avatar {
4
+ /* surface channels consumed by projected sub-components (icon/text) */
5
+ --_surface: var(--eds-c-surface-neutral-subtler);
6
+ --_on-surface: var(--eds-c-on-surface-neutral-subtler);
7
+
8
+ /* default size = m */
9
+ --_size: var(--eds-si-4xl);
10
+ --_icon-size: var(--eds-is-m);
11
+ --_font-size: var(--eds-f-s-xl);
12
+
13
+ display: inline-flex;
14
+ position: relative;
15
+ align-items: center;
16
+ gap: var(--eds-sp-s);
17
+ border-radius: var(--eds-br-full);
18
+ }
19
+
20
+ .eds-avatar .eds-avatar-wrapper {
21
+ display: inline-flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ border-radius: var(--eds-br-full);
25
+ background-color: var(--_surface);
26
+ color: var(--_on-surface);
27
+ height: var(--_size);
28
+ width: var(--_size);
29
+ position: relative;
30
+ }
31
+
32
+ /* SIZE VARIANTS
33
+ ------------- */
34
+
35
+ .eds-avatar[data-size="2xs"] {
36
+ --_size: var(--eds-si-m);
37
+ --_icon-size: var(--eds-is-2xs);
38
+ --_font-size: var(--eds-f-s-xs);
39
+ }
40
+ .eds-avatar[data-size="xs"] {
41
+ --_size: var(--eds-si-xl);
42
+ --_icon-size: var(--eds-is-xs);
43
+ --_font-size: var(--eds-f-s-s);
44
+ }
45
+ .eds-avatar[data-size="s"] {
46
+ --_size: var(--eds-si-3xl);
47
+ --_icon-size: var(--eds-is-s);
48
+ --_font-size: var(--eds-f-s-l);
49
+ }
50
+ .eds-avatar[data-size="m"] {
51
+ --_size: var(--eds-si-4xl);
52
+ --_icon-size: var(--eds-is-m);
53
+ --_font-size: var(--eds-f-s-xl);
54
+ }
55
+ .eds-avatar[data-size="l"] {
56
+ --_size: var(--eds-si-6xl);
57
+ --_icon-size: var(--eds-is-l);
58
+ --_font-size: var(--eds-f-s-2xl);
59
+ }
60
+ .eds-avatar[data-size="xl"] {
61
+ --_size: var(--eds-si-9xl);
62
+ --_icon-size: var(--eds-is-xl);
63
+ --_font-size: var(--eds-f-s-4xl);
64
+ }
65
+
66
+ /* COLOR PALETTE VARIANTS (expanded from base.$color-cm-map)
67
+ -------------------------------------------------------- */
68
+
69
+ .eds-avatar[data-color="cm-blue-navy"] {
70
+ --_surface: var(--eds-c-surface-cm-blue-navy-subtler);
71
+ --_on-surface: var(--eds-c-on-surface-cm-blue-navy-subtler);
72
+ }
73
+ .eds-avatar[data-color="cm-blue-electric"] {
74
+ --_surface: var(--eds-c-surface-cm-blue-electric-subtler);
75
+ --_on-surface: var(--eds-c-on-surface-cm-blue-electric-subtler);
76
+ }
77
+ .eds-avatar[data-color="cm-blue-ocean"] {
78
+ --_surface: var(--eds-c-surface-cm-blue-ocean-subtler);
79
+ --_on-surface: var(--eds-c-on-surface-cm-blue-ocean-subtler);
80
+ }
81
+ .eds-avatar[data-color="cm-green"] {
82
+ --_surface: var(--eds-c-surface-cm-green-subtler);
83
+ --_on-surface: var(--eds-c-on-surface-cm-green-subtler);
84
+ }
85
+ .eds-avatar[data-color="cm-green-dark"] {
86
+ --_surface: var(--eds-c-surface-cm-green-dark-subtler);
87
+ --_on-surface: var(--eds-c-on-surface-cm-green-dark-subtler);
88
+ }
89
+ .eds-avatar[data-color="cm-orange"] {
90
+ --_surface: var(--eds-c-surface-cm-orange-subtler);
91
+ --_on-surface: var(--eds-c-on-surface-cm-orange-subtler);
92
+ }
93
+ .eds-avatar[data-color="cm-purple"] {
94
+ --_surface: var(--eds-c-surface-cm-purple-subtler);
95
+ --_on-surface: var(--eds-c-on-surface-cm-purple-subtler);
96
+ }
97
+ .eds-avatar[data-color="cm-green-lemon"] {
98
+ --_surface: var(--eds-c-surface-cm-green-lemon-subtler);
99
+ --_on-surface: var(--eds-c-on-surface-cm-green-lemon-subtler);
100
+ }
101
+ .eds-avatar[data-color="cm-green-pine"] {
102
+ --_surface: var(--eds-c-surface-cm-green-pine-subtler);
103
+ --_on-surface: var(--eds-c-on-surface-cm-green-pine-subtler);
104
+ }
105
+ .eds-avatar[data-color="cm-red-crayola"] {
106
+ --_surface: var(--eds-c-surface-cm-red-crayola-subtler);
107
+ --_on-surface: var(--eds-c-on-surface-cm-red-crayola-subtler);
108
+ }
109
+ .eds-avatar[data-color="cm-yellow-gold"] {
110
+ --_surface: var(--eds-c-surface-cm-yellow-gold-subtler);
111
+ --_on-surface: var(--eds-c-on-surface-cm-yellow-gold-subtler);
112
+ }
113
+ .eds-avatar[data-color="cm-orange-abricot"] {
114
+ --_surface: var(--eds-c-surface-cm-orange-abricot-subtler);
115
+ --_on-surface: var(--eds-c-on-surface-cm-orange-abricot-subtler);
116
+ }
117
+ .eds-avatar[data-color="cm-purple-violet"] {
118
+ --_surface: var(--eds-c-surface-cm-purple-violet-subtler);
119
+ --_on-surface: var(--eds-c-on-surface-cm-purple-violet-subtler);
120
+ }
121
+ .eds-avatar[data-color="cm-red-tomato"] {
122
+ --_surface: var(--eds-c-surface-cm-red-tomato-subtler);
123
+ --_on-surface: var(--eds-c-on-surface-cm-red-tomato-subtler);
124
+ }
125
+ .eds-avatar[data-color="cm-warm-grey"] {
126
+ --_surface: var(--eds-c-surface-cm-warm-grey-subtler);
127
+ --_on-surface: var(--eds-c-on-surface-cm-warm-grey-subtler);
128
+ }
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ /** Local narrowed size union — the avatar's size contract (ported 1:1 from Angular `eds-avatar`). */
3
+ export type EdsAvatarSize = '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl';
4
+ export interface EdsAvatarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
5
+ /** Data attribute for E2E testing. @default 'eds-avatar' */
6
+ e2eAttr?: string;
7
+ /** Size of the avatar. @default 'm' */
8
+ size?: EdsAvatarSize;
9
+ /**
10
+ * ARIA label for accessibility. When `null`/omitted no `aria-label` is rendered — ensure
11
+ * visible text or an explicit label is provided. @default null
12
+ */
13
+ ariaLabel?: string | null;
14
+ /**
15
+ * Extra color palette applied to the avatar surface (maps to an EDS color palette, e.g.
16
+ * `info`, `success`, or a `cm-*` palette). Empty string uses the default neutral surface.
17
+ * @default ''
18
+ */
19
+ color?: string;
20
+ /**
21
+ * Avatar content — the surface slots (`EdsAvatarIcon` / `EdsAvatarText` / `EdsAvatarImage`
22
+ * / `EdsAvatarBadge`) rendered inside the round wrapper, plus an optional `EdsAvatarContent`
23
+ * rendered beside it. Mirrors the Angular `<ng-content select="…">` split.
24
+ */
25
+ children?: React.ReactNode;
26
+ }
27
+ /**
28
+ * `EdsAvatar` — pure React port of the Angular `eds-avatar`.
29
+ *
30
+ * A round identity surface with a color palette and six sizes, holding a projected icon /
31
+ * text / image and an optional overlay badge, plus an optional label column beside it. The
32
+ * Angular template splits projection into a round `.eds-avatar-wrapper` (icon / text / image
33
+ * / badge) and a sibling content slot (`eds-avatar-content`); here `children` are split by
34
+ * element type into the same two regions. `size` / `color` reflect as `data-*`; `data-image`
35
+ * is set when an `EdsAvatarImage` is present (mirroring the Angular `contentChild` query).
36
+ */
37
+ export declare const EdsAvatar: React.ForwardRefExoticComponent<EdsAvatarProps & React.RefAttributes<HTMLDivElement>>;
38
+ //# sourceMappingURL=eds-avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eds-avatar.d.ts","sourceRoot":"","sources":["../../src/eds-avatar/eds-avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,qGAAqG;AACrG,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACvF,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAcD;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,uFAoCpB,CAAC"}