@ezeep/ezeep-js 1.0.166 → 1.0.170

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 (61) hide show
  1. package/dist/cjs/ezeep.cjs.js +2 -2
  2. package/dist/cjs/ezp-auth_14.cjs.entry.js +82 -79
  3. package/dist/cjs/{index-baa7689a.js → index-0b159f85.js} +6 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/components/ezp-auth/ezp-auth.css +2 -2
  6. package/dist/collection/components/ezp-auth/ezp-auth.js +30 -4
  7. package/dist/collection/components/ezp-backdrop/ezp-backdrop.css +1 -1
  8. package/dist/collection/components/ezp-dialog/ezp-dialog.css +5 -5
  9. package/dist/collection/components/ezp-icon/ezp-icon.css +1 -1
  10. package/dist/collection/components/ezp-icon-button/ezp-icon-button.css +16 -16
  11. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +10 -9
  12. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +32 -47
  13. package/dist/collection/components/ezp-printing/ezp-printing.css +203 -133
  14. package/dist/collection/components/ezp-printing/ezp-printing.js +10 -4
  15. package/dist/collection/components/ezp-select/ezp-select.css +21 -21
  16. package/dist/collection/components/ezp-select/ezp-select.js +5 -4
  17. package/dist/collection/components/ezp-status/ezp-status.css +7 -8
  18. package/dist/collection/components/ezp-status/ezp-status.js +2 -3
  19. package/dist/collection/components/ezp-stepper/ezp-stepper.css +12 -12
  20. package/dist/collection/components/ezp-text-button/ezp-text-button.css +14 -14
  21. package/dist/collection/components/ezp-upload/ezp-upload.css +6 -6
  22. package/dist/collection/components/ezp-upload/ezp-upload.js +19 -9
  23. package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +33 -29
  24. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +1 -1
  25. package/dist/custom-elements/index.js +83 -80
  26. package/dist/directives/proxies.ts +2 -2
  27. package/dist/esm/ezeep.js +2 -2
  28. package/dist/esm/ezp-auth_14.entry.js +82 -79
  29. package/dist/esm/{index-18d4bf15.js → index-13f75d28.js} +6 -1
  30. package/dist/esm/loader.js +2 -2
  31. package/dist/esm-es5/ezeep.js +1 -1
  32. package/dist/esm-es5/ezp-auth_14.entry.js +3 -3
  33. package/dist/esm-es5/index-13f75d28.js +1 -0
  34. package/dist/esm-es5/loader.js +1 -1
  35. package/dist/ezeep/ezeep.esm.js +1 -1
  36. package/dist/ezeep/ezeep.js +1 -1
  37. package/{www/build/p-80d5c308.system.js → dist/ezeep/p-16c7584d.system.js} +1 -1
  38. package/dist/ezeep/p-17f25f95.js +1 -0
  39. package/dist/ezeep/{p-cec0b069.system.entry.js → p-68f1313b.system.entry.js} +3 -3
  40. package/dist/ezeep/{p-a91289a6.entry.js → p-91042202.entry.js} +2 -2
  41. package/dist/ezeep/p-c04b764e.system.js +1 -0
  42. package/dist/types/components/ezp-auth/ezp-auth.d.ts +1 -0
  43. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +1 -0
  44. package/dist/types/components/ezp-upload/ezp-upload.d.ts +3 -6
  45. package/dist/types/components.d.ts +2 -0
  46. package/dist/types/shared/types.d.ts +3 -2
  47. package/package.json +3 -1
  48. package/www/build/ezeep.esm.js +1 -1
  49. package/www/build/ezeep.js +1 -1
  50. package/{dist/ezeep/p-80d5c308.system.js → www/build/p-16c7584d.system.js} +1 -1
  51. package/www/build/p-17f25f95.js +1 -0
  52. package/www/build/{p-cec0b069.system.entry.js → p-68f1313b.system.entry.js} +3 -3
  53. package/www/build/{p-a91289a6.entry.js → p-91042202.entry.js} +2 -2
  54. package/www/build/p-c04b764e.system.js +1 -0
  55. package/www/data/locales/en.json +5 -2
  56. package/www/index.html +6 -1
  57. package/dist/esm-es5/index-18d4bf15.js +0 -1
  58. package/dist/ezeep/p-d9b69b53.js +0 -1
  59. package/dist/ezeep/p-f96ca6a7.system.js +0 -1
  60. package/www/build/p-d9b69b53.js +0 -1
  61. package/www/build/p-f96ca6a7.system.js +0 -1
@@ -30,7 +30,7 @@
30
30
  */
31
31
  :host {
32
32
  align-items: center;
33
- background: var(--ezp-color-overlay-primary);
33
+ background: var(--ezp-core-backdrop);
34
34
  border-radius: 6px;
35
35
  box-sizing: border-box;
36
36
  display: flex;
@@ -50,16 +50,15 @@
50
50
  }
51
51
 
52
52
  #box {
53
- --ezp-icon-fill: var(--ezp-color-theme-solid);
53
+ --ezp-icon-fill: var(--ezp-theme-solid);
54
54
  align-items: center;
55
- background: var(--ezp-color-surface-tertiary);
55
+ background: var(--ezp-core-surface-tertiary);
56
56
  border-radius: 3px;
57
- box-shadow: var(--ezp-status-box-boxShadowPosition, 0 0 0 1px) var(--ezp-color-outline);
57
+ box-shadow: var(--ezp-status-box-boxShadow, 0 0 0 1px var(--ezp-black-10));
58
58
  display: flex;
59
59
  flex-direction: column;
60
60
  gap: var(--ezp-spacing-4);
61
61
  padding: var(--ezp-spacing-4) var(--ezp-spacing-5);
62
- margin-bottom: 100px;
63
62
  }
64
63
 
65
64
  #indicator {
@@ -72,14 +71,14 @@
72
71
 
73
72
  #track {
74
73
  fill: none;
75
- stroke: var(--ezp-color-outline);
74
+ stroke: var(--ezp-core-outline);
76
75
  stroke-width: 4px;
77
76
  }
78
77
 
79
78
  #value {
80
79
  animation: offset var(--ezp-duration-6) linear alternate infinite;
81
80
  fill: none;
82
- stroke: var(--ezp-color-theme-solid);
81
+ stroke: var(--ezp-theme-solid);
83
82
  stroke-dasharray: 110;
84
83
  stroke-dashoffset: 110;
85
84
  stroke-linecap: round;
@@ -87,7 +86,7 @@
87
86
  }
88
87
 
89
88
  #description {
90
- color: var(--ezp-color-foreground-primary);
89
+ color: var(--ezp-core-foreground-primary);
91
90
  }
92
91
 
93
92
  #footer {
@@ -43,11 +43,10 @@ export class EzpStatus {
43
43
  h("circle", { id: "track", cx: "21", cy: "21", r: "18" }),
44
44
  h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null,
45
45
  h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }),
46
- h("div", { id: "footer" },
46
+ (this.cancel || this.close || this.retry) && (h("div", { id: "footer" },
47
47
  this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string' ? this.cancel : i18next.t('button_actions.cancel') })),
48
48
  this.close && (h("ezp-text-button", { level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })),
49
- this.retry && (h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })),
50
- h("slot", null)))));
49
+ this.retry && (h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })))))));
51
50
  }
52
51
  static get is() { return "ezp-status"; }
53
52
  static get encapsulation() { return "shadow"; }
@@ -30,9 +30,9 @@
30
30
  */
31
31
  :host {
32
32
  align-items: center;
33
- background: var(--ezp-color-surface-tertiary);
33
+ background: var(--ezp-core-surface-tertiary);
34
34
  border-radius: 3px;
35
- box-shadow: var(--ezp-stepper-boxShadowPosition, 0 0 0 1px) var(--ezp-color-outline);
35
+ box-shadow: var(--ezp-stepper-boxShadowPosition, 0 0 0 1px) var(--ezp-core-outline);
36
36
  display: grid;
37
37
  gap: var(--ezp-spacing-3);
38
38
  grid-template: var(--ezp-stepper-gridTemplate, auto/auto 1fr auto);
@@ -41,8 +41,8 @@
41
41
  z-index: 0;
42
42
  }
43
43
  :host(.focused) {
44
- --ezp-stepper-icon-color: var(--ezp-color-theme-solid);
45
- --ezp-stepper-label-color: var(--ezp-color-theme-solid);
44
+ --ezp-stepper-icon-color: var(--ezp-theme-solid);
45
+ --ezp-stepper-label-color: var(--ezp-theme-solid);
46
46
  }
47
47
 
48
48
  :host(.has-icon) {
@@ -62,17 +62,17 @@
62
62
  }
63
63
  @media (hover: hover) {
64
64
  #toggle:hover {
65
- --ezp-stepper-toggle-background: var(--ezp-color-shade-primary);
65
+ --ezp-stepper-toggle-background: var(--ezp-core-shade-primary);
66
66
  }
67
67
  }
68
68
 
69
69
  #icon {
70
- color: var(--ezp-stepper-icon-color, var(--ezp-color-foreground-secondary));
70
+ color: var(--ezp-stepper-icon-color, var(--ezp-core-foreground-secondary));
71
71
  pointer-events: none;
72
72
  }
73
73
 
74
74
  #label {
75
- color: var(--ezp-stepper-label-color, var(--ezp-color-foreground-secondary));
75
+ color: var(--ezp-stepper-label-color, var(--ezp-core-foreground-secondary));
76
76
  pointer-events: none;
77
77
  }
78
78
 
@@ -92,7 +92,7 @@
92
92
  border-radius: 3px;
93
93
  box-shadow: none;
94
94
  box-sizing: border-box;
95
- color: var(--ezp-color-foreground-primary);
95
+ color: var(--ezp-core-foreground-primary);
96
96
  cursor: inherit;
97
97
  font-family: inherit;
98
98
  font-feature-settings: "tnum";
@@ -125,7 +125,7 @@
125
125
  border: 0;
126
126
  border-radius: 50%;
127
127
  box-shadow: none;
128
- color: var(--ezp-stepper-button-color, var(--ezp-color-theme-solid));
128
+ color: var(--ezp-stepper-button-color, var(--ezp-theme-solid));
129
129
  cursor: var(--ezp-stepper-button-cursor, pointer);
130
130
  display: flex;
131
131
  justify-content: center;
@@ -135,13 +135,13 @@
135
135
  }
136
136
  @media (hover: hover) {
137
137
  .button:not(:disabled):hover {
138
- --ezp-stepper-button-background: var(--ezp-color-shade-primary);
138
+ --ezp-stepper-button-background: var(--ezp-core-shade-primary);
139
139
  }
140
140
  .button:not(:disabled):active {
141
- --ezp-stepper-button-background: var(--ezp-color-shade-secondary);
141
+ --ezp-stepper-button-background: var(--ezp-core-shade-secondary);
142
142
  }
143
143
  }
144
144
  .button:disabled {
145
- --ezp-stepper-button-color: var(--ezp-color-foreground-tertiary);
145
+ --ezp-stepper-button-color: var(--ezp-core-foreground-tertiary);
146
146
  --ezp-stepper-button-cursor: default;
147
147
  }
@@ -7,30 +7,30 @@
7
7
  display: flex;
8
8
  }
9
9
  :host(.primary) {
10
- --ezp-textButton-background-disabled: var(--ezp-color-shade-primary);
11
- --ezp-textButton-background-init: var(--ezp-color-theme-solid);
12
- --ezp-textButton-color-disabled: var(--ezp-color-foreground-tertiary);
13
- --ezp-textButton-color-init: var(--ezp-color-on-theme);
10
+ --ezp-textButton-background-disabled: var(--ezp-core-shade-primary);
11
+ --ezp-textButton-background-init: var(--ezp-theme-solid);
12
+ --ezp-textButton-color-disabled: var(--ezp-core-foreground-tertiary);
13
+ --ezp-textButton-color-init: var(--ezp-white-100);
14
14
  --ezp-textButton-opacity-active: 0.74;
15
15
  --ezp-textButton-opacity-hover: 0.84;
16
16
  }
17
17
 
18
18
  :host(.secondary) {
19
- --ezp-textButton-background-active: var(--ezp-color-shade-tertiary);
20
- --ezp-textButton-background-disabled: var(--ezp-color-shade-primary);
21
- --ezp-textButton-background-hover: var(--ezp-color-shade-secondary);
22
- --ezp-textButton-background-init: var(--ezp-color-shade-primary);
23
- --ezp-textButton-color-disabled: var(--ezp-color-foreground-tertiary);
24
- --ezp-textButton-color-init: var(--ezp-color-theme-solid);
19
+ --ezp-textButton-background-active: var(--ezp-core-shade-tertiary);
20
+ --ezp-textButton-background-disabled: var(--ezp-core-shade-primary);
21
+ --ezp-textButton-background-hover: var(--ezp-core-shade-secondary);
22
+ --ezp-textButton-background-init: var(--ezp-core-shade-primary);
23
+ --ezp-textButton-color-disabled: var(--ezp-core-foreground-tertiary);
24
+ --ezp-textButton-color-init: var(--ezp-theme-solid);
25
25
  }
26
26
 
27
27
  :host(.tertiary) {
28
- --ezp-textButton-background-active: var(--ezp-color-shade-secondary);
28
+ --ezp-textButton-background-active: var(--ezp-core-shade-secondary);
29
29
  --ezp-textButton-background-disabled: transparent;
30
- --ezp-textButton-background-hover: var(--ezp-color-shade-primary);
30
+ --ezp-textButton-background-hover: var(--ezp-core-shade-primary);
31
31
  --ezp-textButton-background-init: transparent;
32
- --ezp-textButton-color-disabled: var(--ezp-color-foreground-tertiary);
33
- --ezp-textButton-color-init: var(--ezp-color-theme-solid);
32
+ --ezp-textButton-color-disabled: var(--ezp-core-foreground-tertiary);
33
+ --ezp-textButton-color-init: var(--ezp-theme-solid);
34
34
  }
35
35
 
36
36
  #button {
@@ -6,10 +6,10 @@
6
6
  :host {
7
7
  align-content: center;
8
8
  background: var(--ezp-upload-background, transparent);
9
- border: 1px dashed var(--ezp-upload-border-color, var(--ezp-color-foreground-tertiary));
9
+ border: 1px dashed var(--ezp-upload-border-color, var(--ezp-core-foreground-tertiary));
10
10
  border-radius: 3px;
11
11
  box-sizing: border-box;
12
- color: var(--ezp-color-foreground-primary);
12
+ color: var(--ezp-core-foreground-primary);
13
13
  display: grid;
14
14
  grid-template: auto/minmax(auto, 280px);
15
15
  height: var(--ezp-upload-height, auto);
@@ -20,14 +20,14 @@
20
20
  width: var(--ezp-upload-width, auto);
21
21
  }
22
22
  :host(.dragging) {
23
- --ezp-upload-background: var(--ezp-color-theme-translucent);
24
- --ezp-upload-border-color: var(--ezp-color-theme-translucent);
23
+ --ezp-upload-background: var(--ezp-theme-translucent);
24
+ --ezp-upload-border-color: var(--ezp-theme-translucent);
25
25
  --ezp-upload-header-blur: 16px;
26
26
  --ezp-upload-header-opacity: 0.42;
27
27
  }
28
28
 
29
29
  #header {
30
- --ezp-icon-fill: var(--ezp-color-theme-solid);
30
+ --ezp-icon-fill: var(--ezp-theme-solid);
31
31
  align-items: center;
32
32
  display: flex;
33
33
  filter: blur(var(--ezp-upload-header-blur, 0));
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  #select {
49
- color: var(--ezp-color-theme-solid);
49
+ color: var(--ezp-theme-solid);
50
50
  cursor: pointer;
51
51
  opacity: var(--ezp-upload-select-opacity, 1);
52
52
  text-decoration: underline;
@@ -1,4 +1,4 @@
1
- import { Component, Host, Listen, Event, State, h } from '@stencil/core';
1
+ import { Component, Host, Listen, Event, State, h, Fragment } from '@stencil/core';
2
2
  import i18next from 'i18next';
3
3
  export class EzpUpload {
4
4
  constructor() {
@@ -7,6 +7,7 @@ export class EzpUpload {
7
7
  * States
8
8
  *
9
9
  */
10
+ this.filename = '';
10
11
  this.dragging = false;
11
12
  /**
12
13
  *
@@ -14,6 +15,7 @@ export class EzpUpload {
14
15
  *
15
16
  */
16
17
  this.handleInput = () => {
18
+ this.filename = this.input.files[0].name;
17
19
  this.uploadFile.emit(this.input.files);
18
20
  };
19
21
  }
@@ -37,14 +39,12 @@ export class EzpUpload {
37
39
  event.stopPropagation();
38
40
  event.preventDefault();
39
41
  this.dragging = false;
42
+ this.filename = event.dataTransfer.files[0].name;
40
43
  this.uploadFile.emit(event.dataTransfer.files);
41
44
  }
42
- /**
43
- *
44
- * Lifecycle methods
45
- *
46
- */
47
- componentWillLoad() {
45
+ listenPrintCancel() {
46
+ this.form.reset();
47
+ this.filename = '';
48
48
  }
49
49
  /**
50
50
  *
@@ -53,7 +53,7 @@ export class EzpUpload {
53
53
  */
54
54
  render() {
55
55
  return (h(Host, { class: { dragging: this.dragging } },
56
- h("div", { id: "box" },
56
+ h("form", { id: "form", ref: (form) => (this.form = form) },
57
57
  h("div", { id: "header" },
58
58
  h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }),
59
59
  h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }),
@@ -62,7 +62,10 @@ export class EzpUpload {
62
62
  h("label", { htmlFor: "input", id: "select" },
63
63
  h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })),
64
64
  h("input", { type: "file", name: "input", id: "input", ref: (input) => (this.input = input), onInput: this.handleInput }),
65
- h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') }))))));
65
+ h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })),
66
+ this.filename != '' && (h(Fragment, null,
67
+ h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_file') }),
68
+ h("ezp-label", { level: "tertiary", text: this.filename })))))));
66
69
  }
67
70
  static get is() { return "ezp-upload"; }
68
71
  static get encapsulation() { return "shadow"; }
@@ -73,6 +76,7 @@ export class EzpUpload {
73
76
  "$": ["ezp-upload.css"]
74
77
  }; }
75
78
  static get states() { return {
79
+ "filename": {},
76
80
  "dragging": {}
77
81
  }; }
78
82
  static get events() { return [{
@@ -115,5 +119,11 @@ export class EzpUpload {
115
119
  "target": undefined,
116
120
  "capture": false,
117
121
  "passive": false
122
+ }, {
123
+ "name": "printCancel",
124
+ "method": "listenPrintCancel",
125
+ "target": "document",
126
+ "capture": false,
127
+ "passive": false
118
128
  }]; }
119
129
  }
@@ -29,9 +29,9 @@
29
29
  *
30
30
  */
31
31
  :host {
32
- background: var(--ezp-color-surface-tertiary);
32
+ background: var(--ezp-core-surface-tertiary);
33
33
  border-radius: 6px;
34
- box-shadow: var(--ezp-userMenu-boxShadowPosition, 0 0 0 1px) var(--ezp-color-outline);
34
+ box-shadow: var(--ezp-userMenu-boxShadow, 0 0 0 1px var(--ezp-black-10));
35
35
  display: block;
36
36
  opacity: var(--ezp-userMenu-opacity, 0);
37
37
  position: absolute;
@@ -59,7 +59,7 @@
59
59
 
60
60
  #header {
61
61
  align-items: center;
62
- box-shadow: var(--ezp-userMenu-header-boxShadowPosition, 0 1px 0 0) var(--ezp-color-outline);
62
+ box-shadow: var(--ezp-userMenu-header-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);
63
63
  box-shadow: 0;
64
64
  display: grid;
65
65
  grid-template: auto/1fr auto;
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  #name {
70
- color: var(--ezp-color-foreground-primary);
70
+ color: var(--ezp-core-foreground-primary);
71
71
  }
72
72
 
73
73
  #close {
@@ -75,7 +75,7 @@
75
75
  }
76
76
 
77
77
  #links {
78
- box-shadow: var(--ezp-userMenu-links-boxShadowPosition, 0 1px 0 0) var(--ezp-color-outline);
78
+ box-shadow: var(--ezp-userMenu-links-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);
79
79
  display: flex;
80
80
  flex-direction: column;
81
81
  padding: var(--ezp-spacing-2);
@@ -85,7 +85,7 @@
85
85
  align-items: center;
86
86
  background: var(--ezp-userMenu-link-background, transparent);
87
87
  border-radius: 3px;
88
- color: var(--ezp-color-foreground-primary);
88
+ color: var(--ezp-core-foreground-primary);
89
89
  cursor: pointer;
90
90
  display: grid;
91
91
  gap: var(--ezp-spacing-3);
@@ -94,19 +94,19 @@
94
94
  text-decoration: none;
95
95
  }
96
96
  .link:hover {
97
- --ezp-userMenu-link-background: var(--ezp-color-shade-primary);
97
+ --ezp-userMenu-link-background: var(--ezp-core-shade-primary);
98
98
  }
99
99
  .link__icon {
100
- color: var(--ezp-color-theme-solid);
100
+ color: var(--ezp-theme-solid);
101
101
  margin: calc(var(--ezp-spacing-2) * -1) 0;
102
102
  }
103
103
 
104
104
  .caption {
105
- color: var(--ezp-color-foreground-primary);
105
+ color: var(--ezp-core-foreground-primary);
106
106
  }
107
107
 
108
108
  #theme {
109
- box-shadow: var(--ezp-userMenu-theme-boxShadowPosition, 0 1px 0 0) var(--ezp-color-outline);
109
+ box-shadow: var(--ezp-userMenu-theme-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);
110
110
  display: grid;
111
111
  gap: var(--ezp-spacing-3);
112
112
  grid-template: repeat(2, auto)/1fr;
@@ -150,32 +150,36 @@
150
150
  animation: dot-bounce var(--ezp-duration-2) ease-in-out;
151
151
  }
152
152
  .swatch--blue {
153
- --ezp-userMenu-swatch-theme-solid: var(--ezp-color-blue-solid);
154
- --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-blue-translucent);
153
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-accent-blue-solid);
154
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-accent-blue-translucent);
155
155
  }
156
156
  .swatch--cyan {
157
- --ezp-userMenu-swatch-theme-solid: var(--ezp-color-cyan-solid);
158
- --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-cyan-translucent);
157
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-accent-cyan-solid);
158
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-accent-cyan-translucent);
159
159
  }
160
160
  .swatch--green {
161
- --ezp-userMenu-swatch-theme-solid: var(--ezp-color-green-solid);
162
- --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-green-translucent);
161
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-accent-green-solid);
162
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-accent-green-translucent);
163
+ }
164
+ .swatch--teal {
165
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-accent-teal-solid);
166
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-accent-teal-translucent);
163
167
  }
164
168
  .swatch--orange {
165
- --ezp-userMenu-swatch-theme-solid: var(--ezp-color-orange-solid);
166
- --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-orange-translucent);
169
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-accent-orange-solid);
170
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-accent-orange-translucent);
167
171
  }
168
172
  .swatch--pink {
169
- --ezp-userMenu-swatch-theme-solid: var(--ezp-color-pink-solid);
170
- --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-pink-translucent);
173
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-accent-pink-solid);
174
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-accent-pink-translucent);
171
175
  }
172
176
  .swatch--red {
173
- --ezp-userMenu-swatch-theme-solid: var(--ezp-color-red-solid);
174
- --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-red-translucent);
177
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-accent-red-solid);
178
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-accent-red-translucent);
175
179
  }
176
180
  .swatch--violet {
177
- --ezp-userMenu-swatch-theme-solid: var(--ezp-color-violet-solid);
178
- --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-violet-translucent);
181
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-accent-violet-solid);
182
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-accent-violet-translucent);
179
183
  }
180
184
 
181
185
  .dot {
@@ -207,7 +211,7 @@
207
211
  background: var(--ezp-userMenu-tab-background, transparent);
208
212
  border: 0;
209
213
  border-radius: 14px;
210
- color: var(--ezp-userMenu-tab-color, var(--ezp-color-foreground-secondary));
214
+ color: var(--ezp-userMenu-tab-color, var(--ezp-core-foreground-secondary));
211
215
  cursor: var(--ezp-userMenu-tab-cursor, pointer);
212
216
  display: flex;
213
217
  gap: var(--ezp-spacing-2);
@@ -218,15 +222,15 @@
218
222
  }
219
223
  @media (hover: hover) {
220
224
  .tab:not(.selected):hover {
221
- --ezp-userMenu-tab-background: var(--ezp-color-shade-primary);
225
+ --ezp-userMenu-tab-background: var(--ezp-core-shade-primary);
222
226
  }
223
227
  .tab:not(.selected):active {
224
- --ezp-userMenu-tab-background: var(--ezp-color-shade-secondary);
228
+ --ezp-userMenu-tab-background: var(--ezp-core-shade-secondary);
225
229
  }
226
230
  }
227
231
  .tab.selected {
228
- --ezp-userMenu-tab-background: var(--ezp-color-theme-translucent);
229
- --ezp-userMenu-tab-color: var(--ezp-color-theme-solid);
232
+ --ezp-userMenu-tab-background: var(--ezp-theme-translucent);
233
+ --ezp-userMenu-tab-color: var(--ezp-theme-solid);
230
234
  --ezp-userMenu-tab-cursor: normal;
231
235
  }
232
236
 
@@ -17,7 +17,7 @@ export class EzpUserMenu {
17
17
  href: 'https://support.ezeep.com',
18
18
  },
19
19
  ];
20
- this.themes = ['pink', 'red', 'orange', 'green', 'cyan', 'blue', 'violet'];
20
+ this.themes = ['pink', 'red', 'orange', 'green', 'teal', 'cyan', 'blue', 'violet'];
21
21
  this.appearances = [
22
22
  { title: i18next.t('user_menu.system'), name: 'system' },
23
23
  { title: i18next.t('user_menu.light'), name: 'light' },