@agorapulse/ui-components 20.3.16 → 20.3.18

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.
@@ -68,6 +68,9 @@ type NavSelectorLeafAction = {
68
68
  * Represent final entry of the nav selector
69
69
  */
70
70
  type NavSelectorLeaf = {
71
+ /** When true, the avatar will be hidden */
72
+ hideAvatar: boolean;
73
+ /** Picture url to display on the avatar, optional */
71
74
  pictureUrl: string | null;
72
75
  /** Counter to display on the entry, to ignore if the leaf has details */
73
76
  counter: number | null;
@@ -113,8 +116,15 @@ type NavSelectorCategory = {
113
116
  emptyStateTitle?: string;
114
117
  /** Action of the empty state */
115
118
  emptyStateAction?: NavSelectorEmptyStateAction;
119
+ avatar?: NavSelectorCategoryAvatar;
116
120
  type: 'CATEGORY';
117
121
  } & NavSelectorBaseNode;
122
+ type NavSelectorCategoryAvatar = {
123
+ pictureUrl: string | null;
124
+ rounded: boolean;
125
+ } | {
126
+ symbolId: agorapulseSymbol;
127
+ };
118
128
  /**
119
129
  * Represent the action available in the empty state
120
130
  */
@@ -221,12 +231,20 @@ type InternalNavSelectorCategory = {
221
231
  emptyStateTitle?: string;
222
232
  /** Action of the empty state */
223
233
  emptyStateAction?: NavSelectorEmptyStateAction;
234
+ /** Avatar configuration of the category */
235
+ avatarDisplayed: boolean;
236
+ avatarRounded: boolean;
237
+ avatarSymbolId: agorapulseSymbol | null;
238
+ avatarPictureUrl: string | undefined;
239
+ avatarPictureUrlDisplayed: boolean;
224
240
  type: 'CATEGORY';
225
241
  } & InternalNavSelectorBaseNode;
226
242
  /**
227
243
  * Represent final entry of the nav selector
228
244
  */
229
245
  type InternalNavSelectorLeaf = {
246
+ /** When true, the avatar will be hidden */
247
+ hideAvatar: boolean;
230
248
  /** Indicates if the actions dropdown could be display. Should not be display if the leaf has an error status. */
231
249
  actionsDisplayable: boolean;
232
250
  /** Actions that can be performed on the leaf */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agorapulse/ui-components",
3
3
  "description": "Agorapulse UI Components Library",
4
- "version": "20.3.16",
4
+ "version": "20.3.18",
5
5
  "author": "Benoit Hediard",
6
6
  "repository": {
7
7
  "type": "git",