@zanichelli/albe-web-components 2.28.0 → 2.30.0-rc3

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 (79) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/web-components-library.cjs.js +1 -1
  3. package/dist/cjs/z-alert_66.cjs.entry.js +55 -70
  4. package/dist/cjs/z-app-header.cjs.entry.js +1 -1
  5. package/dist/collection/components/logo/z-logo/index.js +1 -1
  6. package/dist/collection/components/navigation/z-app-header/styles.css +63 -44
  7. package/dist/collection/components/navigation/z-app-topbar/index.js +76 -47
  8. package/dist/collection/components/navigation/z-app-topbar/styles.css +35 -53
  9. package/dist/collection/components/navigation/z-menu/styles.css +17 -13
  10. package/dist/collection/components/navigation/z-menu-section/styles.css +9 -3
  11. package/dist/collection/components/navigation/z-user-dropdown/index.js +82 -66
  12. package/dist/collection/components/navigation/z-user-dropdown/styles.css +197 -69
  13. package/dist/esm/{index-ac6e10aa.js → index-0258069c.js} +1 -1
  14. package/dist/esm/index.js +2 -2
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/{utils-4da869b8.js → utils-0345e333.js} +1 -1
  17. package/dist/esm/web-components-library.js +1 -1
  18. package/dist/esm/z-alert_66.entry.js +58 -73
  19. package/dist/esm/z-app-header.entry.js +1 -1
  20. package/dist/esm/z-cookiebar.entry.js +1 -1
  21. package/dist/esm/z-messages-pocket.entry.js +1 -1
  22. package/dist/esm/z-modal-login.entry.js +1 -1
  23. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  24. package/dist/esm/z-myz-card-info.entry.js +2 -2
  25. package/dist/esm/z-myz-topbar.entry.js +1 -1
  26. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  27. package/dist/esm/z-otp.entry.js +1 -1
  28. package/dist/esm/z-pocket_3.entry.js +2 -2
  29. package/dist/esm/z-slideshow.entry.js +2 -2
  30. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  31. package/dist/esm/z-toast-notification.entry.js +1 -1
  32. package/dist/types/components/logo/z-logo/index.d.ts +1 -1
  33. package/dist/types/components/navigation/z-app-topbar/index.d.ts +14 -11
  34. package/dist/types/components/navigation/z-user-dropdown/index.d.ts +11 -12
  35. package/dist/types/components.d.ts +42 -18
  36. package/dist/web-components-library/index.esm.js +1 -1
  37. package/dist/web-components-library/{p-e86e2a5f.entry.js → p-02e55441.entry.js} +1 -1
  38. package/dist/web-components-library/{p-44de8dac.entry.js → p-14543c46.entry.js} +1 -1
  39. package/{www/build/p-418044b0.entry.js → dist/web-components-library/p-18f6f866.entry.js} +1 -1
  40. package/dist/web-components-library/{p-ba400b3b.entry.js → p-231e7797.entry.js} +1 -1
  41. package/dist/web-components-library/{p-cfa47b41.entry.js → p-2f354863.entry.js} +1 -1
  42. package/{www/build/p-8f5eaf9d.entry.js → dist/web-components-library/p-35b1f338.entry.js} +1 -1
  43. package/dist/web-components-library/{p-787b1b39.entry.js → p-38c9077a.entry.js} +2 -2
  44. package/dist/web-components-library/{p-5ff2bb78.entry.js → p-3cdefa38.entry.js} +1 -1
  45. package/dist/web-components-library/{p-cfd7f25f.entry.js → p-4a6ec3df.entry.js} +1 -1
  46. package/{www/build/p-3ad9ef65.entry.js → dist/web-components-library/p-5cdcaa8c.entry.js} +1 -1
  47. package/dist/web-components-library/p-6c3a77ef.entry.js +1 -0
  48. package/dist/web-components-library/{p-6b7ee18b.entry.js → p-b80081c9.entry.js} +1 -1
  49. package/dist/web-components-library/{p-6fed64d8.entry.js → p-d4830f32.entry.js} +1 -1
  50. package/dist/web-components-library/{p-8dfa676e.js → p-d63b9ed3.js} +1 -1
  51. package/dist/web-components-library/{p-feb1a4a6.js → p-e7304c42.js} +1 -1
  52. package/dist/web-components-library/{p-fbfde057.entry.js → p-ff6b02d1.entry.js} +1 -1
  53. package/dist/web-components-library/web-components-library.esm.js +1 -1
  54. package/package.json +1 -1
  55. package/www/build/index.esm.js +1 -1
  56. package/www/build/{p-e86e2a5f.entry.js → p-02e55441.entry.js} +1 -1
  57. package/www/build/{p-44de8dac.entry.js → p-14543c46.entry.js} +1 -1
  58. package/{dist/web-components-library/p-418044b0.entry.js → www/build/p-18f6f866.entry.js} +1 -1
  59. package/www/build/{p-ba400b3b.entry.js → p-231e7797.entry.js} +1 -1
  60. package/www/build/{p-cfa47b41.entry.js → p-2f354863.entry.js} +1 -1
  61. package/{dist/web-components-library/p-8f5eaf9d.entry.js → www/build/p-35b1f338.entry.js} +1 -1
  62. package/www/build/{p-787b1b39.entry.js → p-38c9077a.entry.js} +2 -2
  63. package/www/build/{p-5ff2bb78.entry.js → p-3cdefa38.entry.js} +1 -1
  64. package/www/build/{p-cfd7f25f.entry.js → p-4a6ec3df.entry.js} +1 -1
  65. package/{dist/web-components-library/p-3ad9ef65.entry.js → www/build/p-5cdcaa8c.entry.js} +1 -1
  66. package/www/build/p-6c3a77ef.entry.js +1 -0
  67. package/www/build/p-a354f241.js +1 -0
  68. package/www/build/{p-6b7ee18b.entry.js → p-b80081c9.entry.js} +1 -1
  69. package/www/build/{p-6fed64d8.entry.js → p-d4830f32.entry.js} +1 -1
  70. package/www/build/{p-8dfa676e.js → p-d63b9ed3.js} +1 -1
  71. package/www/build/{p-feb1a4a6.js → p-e7304c42.js} +1 -1
  72. package/www/build/p-ea943cbd.css +1 -0
  73. package/www/build/{p-fbfde057.entry.js → p-ff6b02d1.entry.js} +1 -1
  74. package/www/build/web-components-library.esm.js +1 -1
  75. package/www/index.html +4 -9
  76. package/dist/web-components-library/p-ccf4d1e7.entry.js +0 -1
  77. package/www/build/p-3ea8117a.js +0 -122
  78. package/www/build/p-97a11655.css +0 -789
  79. package/www/build/p-ccf4d1e7.entry.js +0 -1
@@ -1,94 +1,98 @@
1
- import { Component, Prop, State, Event, Listen, h, } from "@stencil/core";
2
- import { ThemeVariant } from "../../../beans";
1
+ import { Component, Prop, State, Event, Listen, h, Host } from "@stencil/core";
3
2
  import { mobileBreakpoint } from "../../../constants/breakpoints";
4
3
  export class ZUserDropdown {
5
4
  constructor() {
6
- /** theme variant, default 'dark' */
7
- this.theme = ThemeVariant.dark;
5
+ /** if inner components colors are inverted, or not, default false */
6
+ this.useinversecolors = false;
8
7
  this.ismenuopen = false;
9
- this.handleToggle = this.handleToggle.bind(this);
8
+ this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
10
9
  this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
11
10
  }
12
- componentWillLoad() {
13
- this.setMobileAndGhostDivWidth();
14
- }
15
11
  componentDidLoad() {
16
- this.setMobileAndGhostDivWidth();
12
+ this.setMobileAndDivToResizeWidth();
17
13
  }
18
14
  componentWillUpdate() {
19
- this.setMobileAndGhostDivWidth();
15
+ this.setMobileAndDivToResizeWidth();
20
16
  }
21
17
  componentWillRender() {
22
- this.linkarray =
23
- typeof this.menucontent === "string"
24
- ? JSON.parse(this.menucontent)
25
- : this.menucontent;
18
+ if (this.menucontent) {
19
+ this.linkarray = typeof this.menucontent === "string" ? JSON.parse(this.menucontent) : this.menucontent;
20
+ }
26
21
  }
27
- setMobileAndGhostDivWidth() {
22
+ setMobileAndDivToResizeWidth() {
28
23
  var _a;
29
- this.isMobile =
30
- window.screen.width <= mobileBreakpoint ||
31
- window.innerWidth <= mobileBreakpoint;
32
- if (this.gosthDiv)
33
- this.gosthDiv.style.width =
34
- this.logged && !this.isMobile && this.ismenuopen
35
- ? `${(_a = this.userButton) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`
36
- : "";
24
+ if (this.divtoresize) {
25
+ this.ismobile = window.screen.width <= mobileBreakpoint || window.innerWidth <= mobileBreakpoint;
26
+ if (this.logged && !this.ismobile && this.ismenuopen) {
27
+ this.divtoresize.style.width = `${(_a = this.userbutton) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`;
28
+ }
29
+ else {
30
+ this.divtoresize.removeAttribute('style');
31
+ }
32
+ }
37
33
  }
38
34
  emitUserButtonClick() {
39
35
  this.userButtonClick.emit(this.ismenuopen);
40
36
  }
41
37
  emitDropdownMenuLinkClick(e) {
38
+ this.ismenuopen = false;
42
39
  this.dropdownMenuLinkClick.emit({ e, linkId: e.detail.linkId });
43
40
  }
44
41
  handleResize() {
45
- this.isMobile = window.innerWidth <= mobileBreakpoint;
42
+ this.ismobile = window.innerWidth <= mobileBreakpoint;
46
43
  }
47
44
  handleOrientationChange() {
48
- this.isMobile = screen.width <= mobileBreakpoint;
45
+ this.ismobile = screen.width <= mobileBreakpoint;
49
46
  }
50
47
  handleClickOutside(e) {
51
48
  if (e.target.nodeName !== "Z-USER-DROPDOWN") {
52
49
  this.ismenuopen = false;
53
50
  }
54
51
  }
55
- handleToggle() {
52
+ handleLoggedButtonClick() {
56
53
  this.ismenuopen = !this.ismenuopen;
57
54
  this.emitUserButtonClick();
58
55
  }
59
- renderCaretIcon() {
60
- const direction = this.ismenuopen ? "up" : "down";
61
- return (h("z-icon", { name: `caret-${direction}-filled`, height: 18, width: 18 }));
62
- }
63
56
  renderGuestButton() {
64
- return (h("z-link", { onClick: () => this.emitUserButtonClick(), big: true, icon: "enter", textcolor: this.theme === ThemeVariant.light ? "black" : "white" }, "Entra"));
57
+ return (h("button", { id: "guestbutton", class: this.useinversecolors ? "inverse" : "", onClick: () => this.emitUserButtonClick() }, "ENTRA"));
65
58
  }
66
59
  renderLoggedButton() {
67
- return (h("button", { ref: (el) => (this.userButton = el), title: this.userfullname, class: `${this.ismenuopen ? "open" : ""} ${this.theme}`, onClick: () => this.handleToggle() },
68
- h("z-icon", { name: "user-avatar-filled", height: 18, width: 18 }),
69
- h("span", { class: "userfullname" }, this.userfullname),
70
- this.renderCaretIcon()));
71
- }
72
- retrieveLiTextColor() {
73
- if (this.theme === ThemeVariant.light)
74
- return "black";
75
- return this.isMobile ? "white" : "black";
76
- }
77
- renderGhostDiv() {
78
- return h("div", { ref: (el) => (this.gosthDiv = el) });
60
+ const direction = this.ismenuopen ? "up" : "down";
61
+ const colorClass = this.useinversecolors ? "inverse" : "";
62
+ return (h("button", { ref: (el) => (this.userbutton = el), title: this.userfullname, class: `${colorClass} ${this.ismenuopen ? "open" : ""}`, onClick: this.handleLoggedButtonClick },
63
+ h("div", null,
64
+ h("div", { class: "firstline" },
65
+ h("z-icon", { class: colorClass, name: "user-avatar-filled", height: 16, width: 16 }),
66
+ !this.ismobile && h("div", { class: `userfullname ${colorClass}` }, this.userfullname),
67
+ h("z-icon", { class: colorClass, name: `caret-${direction}-filled`, height: 16, width: 16 })),
68
+ !this.ismobile && this.ismenuopen && h("div", { class: `useremail ${colorClass}` }, this.useremail))));
69
+ }
70
+ getZLinkTextcolor() {
71
+ if (this.ismobile) {
72
+ return this.useinversecolors ? "black" : "white";
73
+ }
74
+ else {
75
+ return this.useinversecolors ? "white" : "black";
76
+ }
79
77
  }
80
78
  renderDropdownMenu() {
81
- return (this.ismenuopen && (h("ul", { class: this.theme }, this.linkarray.map((link) => {
82
- return (h("li", { id: link.id },
83
- h("z-link", { textcolor: this.retrieveLiTextColor(), big: true, href: link.link, htmlid: link.id, target: link.target, icon: link.icon, onZLinkClick: this.emitDropdownMenuLinkClick }, link.label)));
84
- }))));
79
+ const colorClass = this.useinversecolors ? "inverse" : "";
80
+ return (this.ismenuopen && (h("ul", { class: colorClass },
81
+ this.ismobile &&
82
+ h("li", { class: colorClass },
83
+ h("div", { class: `userfullname ${colorClass}` }, this.userfullname),
84
+ h("div", { class: `useremail ${colorClass}` }, this.useremail)),
85
+ this.linkarray && this.linkarray.map((link) => h("li", { id: link.id, class: colorClass },
86
+ h("z-link", { textcolor: this.getZLinkTextcolor(), href: link.link, htmlid: link.id, target: link.target, icon: link.icon, onZLinkClick: this.emitDropdownMenuLinkClick }, link.label))))));
85
87
  }
86
88
  render() {
87
- return (h("div", null,
88
- this.logged && !this.isMobile && this.renderGhostDiv(),
89
- h("div", { class: `${this.logged && this.ismenuopen ? "open" : ""}` },
90
- this.logged ? this.renderLoggedButton() : this.renderGuestButton(),
91
- this.logged && this.renderDropdownMenu())));
89
+ const openClass = `${this.logged && this.ismenuopen ? "open" : ""}`;
90
+ const colorClass = this.useinversecolors ? "inverse" : "";
91
+ return (h(Host, { class: colorClass },
92
+ h("div", { ref: (el) => (this.divtoresize = el), class: openClass, onClick: (e) => e.stopPropagation() },
93
+ h("div", { class: `${colorClass} ${openClass}` },
94
+ this.logged ? this.renderLoggedButton() : this.renderGuestButton(),
95
+ this.logged && this.renderDropdownMenu()))));
92
96
  }
93
97
  static get is() { return "z-user-dropdown"; }
94
98
  static get encapsulation() { return "shadow"; }
@@ -133,6 +137,23 @@ export class ZUserDropdown {
133
137
  "attribute": "userfullname",
134
138
  "reflect": false
135
139
  },
140
+ "useremail": {
141
+ "type": "string",
142
+ "mutable": false,
143
+ "complexType": {
144
+ "original": "string",
145
+ "resolved": "string",
146
+ "references": {}
147
+ },
148
+ "required": false,
149
+ "optional": true,
150
+ "docs": {
151
+ "tags": [],
152
+ "text": "user email"
153
+ },
154
+ "attribute": "useremail",
155
+ "reflect": false
156
+ },
136
157
  "menucontent": {
137
158
  "type": "string",
138
159
  "mutable": false,
@@ -155,33 +176,28 @@ export class ZUserDropdown {
155
176
  "attribute": "menucontent",
156
177
  "reflect": false
157
178
  },
158
- "theme": {
159
- "type": "string",
179
+ "useinversecolors": {
180
+ "type": "boolean",
160
181
  "mutable": false,
161
182
  "complexType": {
162
- "original": "ThemeVariantBean",
163
- "resolved": "\"dark\" | \"light\"",
164
- "references": {
165
- "ThemeVariantBean": {
166
- "location": "import",
167
- "path": "../../../beans"
168
- }
169
- }
183
+ "original": "boolean",
184
+ "resolved": "boolean",
185
+ "references": {}
170
186
  },
171
187
  "required": false,
172
188
  "optional": true,
173
189
  "docs": {
174
190
  "tags": [],
175
- "text": "theme variant, default 'dark'"
191
+ "text": "if inner components colors are inverted, or not, default false"
176
192
  },
177
- "attribute": "theme",
193
+ "attribute": "useinversecolors",
178
194
  "reflect": false,
179
- "defaultValue": "ThemeVariant.dark"
195
+ "defaultValue": "false"
180
196
  }
181
197
  }; }
182
198
  static get states() { return {
183
199
  "ismenuopen": {},
184
- "isMobile": {}
200
+ "ismobile": {}
185
201
  }; }
186
202
  static get events() { return [{
187
203
  "method": "userButtonClick",
@@ -1,83 +1,175 @@
1
1
  :host {
2
- font-family: var(--dashboard-font);
3
- font-weight: var(--font-rg);
2
+ background-color: var(--bg-grey-900);
3
+ }
4
+
5
+ :host(.inverse) {
6
+ background-color: var(--bg-white);
4
7
  }
5
8
 
6
9
  button {
7
10
  cursor: pointer;
8
11
  display: flex;
12
+ flex-direction: column;
13
+ width: 100%;
9
14
  margin: 0;
10
- background: var(--bg-grey-900);
15
+ background-color: var(--bg-grey-900);
11
16
  border: none;
12
- font-size: calc(var(--space-unit) * 2);
13
- padding: calc(var(--space-unit) - 2px) 0;
17
+ padding: 0;
18
+ letter-spacing: 0.16px;
19
+ white-space: nowrap;
14
20
  }
15
21
 
16
- button > z-icon {
17
- padding: 0 2px;
18
- fill: var(--bg-white);
19
- }
20
-
21
- button > span {
22
- padding: 0 6px;
23
- color: var(--text-white);
24
- font-weight: var(--font-sb);
25
- line-height: 19px;
22
+ button.inverse {
23
+ background-color: var(--bg-white);
26
24
  }
27
25
 
28
- button.light {
29
- background: var(--bg-white);
26
+ button div.firstline {
27
+ display: flex;
28
+ justify-content: flex-end;
29
+ align-items: center;
30
+ max-width: 200px;
30
31
  }
31
32
 
32
- button.light > z-icon {
33
- fill: var(--bg-grey-900);
33
+ button.open div.firstline {
34
+ max-width: none;
34
35
  }
35
36
 
36
- button.light > span {
37
- color: var(--bg-grey-900);
37
+ z-icon {
38
+ padding: 0 2px;
39
+ fill: var(--text-white);
38
40
  }
39
41
 
40
- button > .userfullname {
41
- display: none;
42
+ z-icon.inverse {
43
+ fill: var(--bg-grey-900);
42
44
  }
43
45
 
44
46
  ul {
45
47
  position: absolute;
46
48
  left: 0;
47
- padding: var(--space-unit) 0 0 0;
49
+ padding: calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0 calc(var(--space-unit) * 2);
48
50
  width: 100%;
49
- margin: 0;
50
- background: var(--bg-grey-900);
51
+ margin: calc(var(--space-unit) * 1.5) 0 0 0;
52
+ background-color: var(--bg-grey-900);
53
+ font-family: var(--dashboard-font);
54
+ font-weight: var(--font-sb);
55
+ font-size: 14px;
56
+ line-height: 20px;
57
+ letter-spacing: 0.3px;
51
58
  }
52
59
 
53
- ul.light {
54
- background: var(--bg-white);
60
+ ul.inverse {
61
+ background-color: var(--bg-white);
55
62
  }
56
63
 
57
64
  ul > li {
58
65
  display: flex;
59
66
  justify-content: flex-end;
60
- padding: var(--space-unit);
61
- margin: 0 var(--space-unit);
67
+ padding: calc(var(--space-unit) * 1.5 - 1px) 0;
68
+ margin: 0 calc(var(--space-unit) * 4) 0 0;
62
69
  border-bottom: var(--border-base) solid var(--bg-grey-700);
63
70
  }
64
71
 
72
+ ul > li.inverse {
73
+ border-bottom-color: var(--gray400);
74
+ }
75
+
65
76
  ul > li:first-child {
66
- border-top: var(--border-base) solid var(--bg-grey-700);
77
+ border-top: none;
78
+ padding-top: 0;
79
+ flex-direction: column;
80
+ align-items: end;
67
81
  }
68
82
 
69
83
  ul > li:last-child {
70
84
  border-bottom: none;
85
+ margin-bottom: 0;
86
+ }
87
+
88
+ #guestbutton {
89
+ box-sizing: border-box;
90
+ display: inline-flex;
91
+ flex-direction: row;
92
+ align-items: center;
93
+ justify-content: center;
94
+ width: 100%;
95
+ font-family: var(--dashboard-font);
96
+ font-weight: var(--font-sb);
97
+ font-size: 14px;
98
+ line-height: 1;
99
+ letter-spacing: 0.3px;
100
+ border-width: var(--border-size-medium);
101
+ border-style: solid;
102
+ border-radius: var(--border-radius);
103
+ vertical-align: middle;
104
+ text-transform: uppercase;
105
+ text-decoration: none;
106
+ cursor: pointer;
107
+ outline: none;
108
+ fill: currentColor;
109
+ height: 32px;
110
+ min-width: 32px;
111
+ padding: 0 calc(var(--space-unit) * 2);
112
+ background-color: var(--bg-white);
113
+ border-color: var(--bg-white);
114
+ color: var(--text-grey-800);
115
+ }
116
+
117
+ #guestbutton.inverse {
118
+ background-color: var(--bg-grey-800);
119
+ border-color: var(--bg-grey-800);
120
+ color: var(--text-white);
121
+ }
122
+
123
+ .userfullname {
124
+ padding: 0;
125
+ overflow: hidden;
126
+ max-width: 250px;
127
+ text-overflow: ellipsis;
128
+ color: var(--text-white);
129
+ font-family: var(--dashboard-font);
130
+ font-weight: var(--font-sb);
131
+ font-size: 16px;
132
+ line-height: 24px;
133
+ letter-spacing: 0;
134
+ }
135
+
136
+ .userfullname.inverse {
137
+ color: var(--text-grey-800);
138
+ }
139
+
140
+ .useremail {
141
+ color: var(--text-white);
142
+ font-family: var(--dashboard-font);
143
+ font-weight: var(--font-rg);
144
+ font-size: 12px;
145
+ line-height: 16px;
146
+ letter-spacing: 0.32px;
147
+ }
148
+
149
+ .useremail.inverse {
150
+ color: var(--text-grey-800);
71
151
  }
72
152
 
73
153
  /* Tablet breakpoint */
74
154
  @media only screen and (min-width: 768px) {
75
155
  :host {
76
156
  height: calc(var(--space-unit) * 4);
157
+ background-color: var(--bg-grey-900);
158
+ }
159
+
160
+ :host(.inverse) {
161
+ background-color: var(--bg-white);
77
162
  }
78
163
 
79
164
  :host > div {
80
165
  position: relative;
166
+ top: 50%;
167
+ transform: translateY(-50%);
168
+ }
169
+
170
+ :host > div.open {
171
+ top: auto;
172
+ transform: none;
81
173
  }
82
174
 
83
175
  :host > div > div {
@@ -85,22 +177,19 @@ ul > li:last-child {
85
177
  }
86
178
 
87
179
  :host > div > div.open {
88
- display: flex;
89
- flex-direction: column;
90
- flex-wrap: nowrap;
91
- justify-content: flex-start;
92
- align-items: flex-end;
93
- align-content: stretch;
94
- width: min-content;
95
180
  position: absolute;
96
181
  right: calc(var(--space-unit) * -1);
97
182
  box-shadow: 0px 2px calc(var(--space-unit) * .5) 0px rgba(0, 0, 0, 0.5);
98
- background: var(--bg-white);
99
- border-radius: calc(var(--space-unit) * .5);
100
- padding: calc(var(--space-unit) * .5) var(--space-unit);
183
+ background-color: var(--bg-white);
184
+ margin-top: calc(var(--space-unit) / 2);
185
+ padding: calc(var(--space-unit) / 2 + 1px) var(--space-unit) 0 var(--space-unit);
101
186
  transform: translate(0, -4px);
102
187
  }
103
188
 
189
+ :host > div > div.inverse.open {
190
+ background-color: var(--bg-grey-800);
191
+ }
192
+
104
193
  button {
105
194
  display: flex;
106
195
  flex-direction: row;
@@ -108,34 +197,74 @@ ul > li:last-child {
108
197
  justify-content: flex-end;
109
198
  align-items: end;
110
199
  align-content: center;
111
- max-width: 200px;
112
200
  }
113
201
 
114
- button > span {
115
- padding: 0 var(--space-unit);
116
- }
117
202
  button.open {
118
203
  background-color: var(--bg-white);
119
204
  border-top: var(--border-size-small) solid var(--bg-white);
120
205
  border-top-left-radius: calc(var(--space-unit) * .5);
121
206
  border-top-right-radius: calc(var(--space-unit) * .5);
122
207
  max-width: initial;
208
+ margin-left: var(--space-unit);
209
+ padding-right: var(--space-unit);
210
+ padding-bottom: calc(var(--space-unit) * 2);
123
211
  }
124
212
 
125
- button > .userfullname {
126
- display: initial;
127
- white-space: nowrap;
128
- overflow: hidden;
129
- max-width: 250px;
130
- text-overflow: ellipsis;
213
+ button.open.inverse {
214
+ border-top-color: var(--bg-grey-800);
215
+ background-color: var(--bg-grey-800);
131
216
  }
132
217
 
133
- button.open > z-icon {
134
- fill: var(--gray900);
218
+ button:not(.open) z-icon {
219
+ fill: var(--text-white);
220
+ }
221
+
222
+ button:not(.open) z-icon.inverse {
223
+ fill: var(--text-grey-800);
224
+ }
225
+
226
+ button.open z-icon {
227
+ fill: var(--text-grey-800);
228
+ }
229
+
230
+ button.open z-icon.inverse {
231
+ fill: var(--text-white);
135
232
  }
136
233
 
137
- button.open > span {
138
- color: var(--gray900);
234
+ .userfullname {
235
+ font-family: var(--dashboard-font);
236
+ font-weight: var(--font-sb);
237
+ font-size: 14px;
238
+ line-height: 20px;
239
+ letter-spacing: 0.16px;
240
+ padding: 0 calc(var(--space-unit) - 2px);
241
+ }
242
+
243
+ .userfullname.inverse {
244
+ color: var(--text-grey-800);
245
+ }
246
+
247
+ button.open div.userfullname {
248
+ color: var(--text-grey-800);
249
+ max-width: none;
250
+ text-overflow: clip;
251
+ }
252
+
253
+ button.open div.userfullname.inverse {
254
+ color: var(--text-white);
255
+ }
256
+
257
+ .useremail {
258
+ margin-right: calc(var(--space-unit) * 3 + 2px);
259
+ text-align: end;
260
+ }
261
+
262
+ button.open div.useremail {
263
+ color: var(--text-grey-800);
264
+ }
265
+
266
+ button.open div.useremail.inverse {
267
+ color: var(--text-white);
139
268
  }
140
269
 
141
270
  ul {
@@ -150,31 +279,30 @@ ul > li:last-child {
150
279
  border-bottom-right-radius: var(--border-radius-base);
151
280
  }
152
281
 
153
- ul > li {
154
- color: var(--gray900);
155
- border-bottom: var(--border-base) solid rgb(202, 204, 206);
156
- padding: calc(var(--space-unit) * .5);
157
- margin: unset;
282
+ ul.inverse {
283
+ border-bottom-color: var(--bg-grey-800);
284
+ background-color: var(--bg-grey-800);
158
285
  }
159
286
 
160
- ul > li > * {
161
- width: max-content;
287
+ ul > li {
288
+ color: var(--text-grey-800);
289
+ border-bottom: var(--border-base) solid var(--gray400);
290
+ margin: 0 var(--space-unit);
162
291
  }
163
292
 
293
+ ul > li.inverse {
294
+ color: var(--text-white);
295
+ }
296
+
164
297
  ul > li:first-child {
165
- border-top: none;
298
+ border-top: var(--border-base) solid var(--gray400);
299
+ padding-top: calc(var(--space-unit) + 3px);
166
300
  }
167
301
 
168
- ul > li:last-child {
169
- border-bottom: none;
170
- }
171
302
  }
172
303
 
173
304
  /* Desktop breakpoint */
174
305
  @media only screen and (min-width: 1152px) {
175
- button {
176
- max-width: initial;
177
- }
178
306
  }
179
307
 
180
308
  /* Wide breakpoint */
@@ -248,4 +248,4 @@ var ZRegistroTableRowExpandedType;
248
248
  ZRegistroTableRowExpandedType["none"] = "none";
249
249
  })(ZRegistroTableRowExpandedType || (ZRegistroTableRowExpandedType = {}));
250
250
 
251
- export { AvatarSize as A, ButtonTypeEnum as B, CardVariants as C, DeviceEnum as D, ExpandableListButtonAlign as E, InputTypeEnum as I, KeyboardKeys as K, ListSize as L, NotificationType as N, PopoverPosition as P, SortDirectionEnum as S, ThemeVariant as T, ZRegistroTableRowExpandedType as Z, ButtonVariantEnum as a, ButtonSizeEnum as b, DividerSize as c, DividerOrientation as d, ListDividerType as e, ExpandableListStyle as f, LicenseTypeEnum as g, AlertTypesEnum as h, PopoverBorderRadius as i, PopoverShadow as j, keybordKeyCodeEnum as k, TableHeaderSize as l, InputStatusEnum as m, StatusTagStatus as n, TooltipPosition as o, PocketStatusEnum as p, TabOrientationEnum as q, TabSizeEnum as r, ToastNotificationTransitionsEnum as s, ToastNotificationPositionsEnum as t };
251
+ export { AvatarSize as A, ButtonTypeEnum as B, CardVariants as C, DeviceEnum as D, ExpandableListButtonAlign as E, InputTypeEnum as I, KeyboardKeys as K, ListSize as L, NotificationType as N, PopoverPosition as P, SortDirectionEnum as S, ThemeVariant as T, ZRegistroTableRowExpandedType as Z, DividerOrientation as a, ButtonVariantEnum as b, ButtonSizeEnum as c, DividerSize as d, ListDividerType as e, ExpandableListStyle as f, LicenseTypeEnum as g, AlertTypesEnum as h, PopoverBorderRadius as i, PopoverShadow as j, keybordKeyCodeEnum as k, TableHeaderSize as l, InputStatusEnum as m, StatusTagStatus as n, TooltipPosition as o, PocketStatusEnum as p, TabOrientationEnum as q, TabSizeEnum as r, ToastNotificationTransitionsEnum as s, ToastNotificationPositionsEnum as t };
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as colorFromId } from './utils-4da869b8.js';
2
- import './index-ac6e10aa.js';
1
+ import { c as colorFromId } from './utils-0345e333.js';
2
+ import './index-0258069c.js';
3
3
  import './breakpoints-c386984e.js';
4
4
 
5
5
  const Utils = {