@nova-design-system/nova-react 3.12.0 → 3.13.0

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 (59) hide show
  1. package/README.md +27 -58
  2. package/dist/cjs/collapse.animation-acda1bf5-BuORVmQv.js +214 -0
  3. package/dist/cjs/{constants-a857c476-Cj2b-su0.js → constants-d0f19e7b-s0SCO_vi.js} +5 -0
  4. package/dist/cjs/fade.animation-eb454088-Bma0SpTf.js +724 -0
  5. package/dist/cjs/{index-jBgPO7HC.js → index-Jgn7NELT.js} +2090 -1681
  6. package/dist/cjs/index.js +6 -1
  7. package/dist/cjs/{nv-accordion-item.entry-BUb_Apy8.js → nv-accordion-item.entry-C7vVmDCg.js} +74 -40
  8. package/dist/cjs/nv-accordion.entry-CFynyAOo.js +178 -0
  9. package/dist/cjs/{nv-alert.entry-nzJu8E5h.js → nv-alert.entry-C_FMs0Yi.js} +20 -20
  10. package/dist/cjs/{nv-avatar.entry-BPp1d-QO.js → nv-avatar.entry-BvjSzIHn.js} +7 -7
  11. package/dist/cjs/{nv-badge_2.entry-Bk56p4jv.js → nv-badge_2.entry-CLNvgVtj.js} +11 -11
  12. package/dist/cjs/{nv-breadcrumb.entry-DB3zR7FC.js → nv-breadcrumb.entry-Ch2Cvr_a.js} +1 -1
  13. package/dist/cjs/{nv-breadcrumbs.entry-CoGgEsro.js → nv-breadcrumbs.entry-DmH8AGIm.js} +1 -1
  14. package/dist/cjs/{nv-button.entry-psZ3_t6i.js → nv-button.entry-B0lusQ2w.js} +7 -7
  15. package/dist/cjs/{nv-buttongroup.entry-cNenBx1F.js → nv-buttongroup.entry-DLVCcdh9.js} +1 -1
  16. package/dist/cjs/{nv-calendar.entry-nkrORr_V.js → nv-calendar.entry-BmX0f_Or.js} +20 -16
  17. package/dist/cjs/{nv-col.entry-D4mInxLU.js → nv-col.entry-lysICYEC.js} +1 -1
  18. package/dist/cjs/{nv-datagrid.entry-D50O7eyc.js → nv-datagrid.entry-vG3h5dj3.js} +6 -6
  19. package/dist/cjs/{nv-datagridcolumn.entry-BuGX-3ev.js → nv-datagridcolumn.entry-9NynF9K-.js} +1 -1
  20. package/dist/cjs/{nv-dialog.entry-yiZIq-TV.js → nv-dialog.entry-Ctsz1K-O.js} +3 -3
  21. package/dist/cjs/{nv-dialogfooter_2.entry-C9ykJQK6.js → nv-dialogfooter_2.entry-B17HEgyc.js} +10 -7
  22. package/dist/cjs/{nv-fieldcheckbox.entry-CCRvvFJ3.js → nv-fieldcheckbox.entry-DMiADwqV.js} +1 -1
  23. package/dist/cjs/{nv-fielddate.entry-C4k6k980.js → nv-fielddate.entry-D3X6Jl3u.js} +1 -1
  24. package/dist/cjs/{nv-fielddaterange.entry-BhfV2KCd.js → nv-fielddaterange.entry-C8_SFFXW.js} +1 -1
  25. package/dist/cjs/{nv-fielddropdown.entry-Xkkvl_gb.js → nv-fielddropdown.entry-BiBR8Qgs.js} +1 -1
  26. package/dist/cjs/{nv-fielddropdownitem.entry-Ckwq6k6r.js → nv-fielddropdownitem.entry-DQ8QK4AS.js} +1 -1
  27. package/dist/cjs/{nv-fieldmultiselect.entry-D4PgRSFv.js → nv-fieldmultiselect.entry-J5VTOPum.js} +1 -31
  28. package/dist/cjs/{nv-fieldnumber.entry-BEnJ81XX.js → nv-fieldnumber.entry-Djpg1HMq.js} +2 -2
  29. package/dist/cjs/{nv-fieldpassword.entry-elzveqP8.js → nv-fieldpassword.entry-DKT9Xn5H.js} +1 -1
  30. package/dist/cjs/{nv-fieldradio.entry-xJpdsXGo.js → nv-fieldradio.entry-CPYf3K2o.js} +1 -1
  31. package/dist/cjs/{nv-fieldselect.entry-DVyO7LMD.js → nv-fieldselect.entry-DnbL7aZB.js} +1 -1
  32. package/dist/cjs/{nv-fieldslider.entry-O4TFO-Rl.js → nv-fieldslider.entry-CNRJuo7v.js} +25 -17
  33. package/dist/cjs/{nv-fieldtext.entry-p-9GEp1g.js → nv-fieldtext.entry-B9lIHck7.js} +1 -1
  34. package/dist/cjs/{nv-fieldtextarea.entry-Cvik8cci.js → nv-fieldtextarea.entry-B2EDj8cm.js} +1 -1
  35. package/dist/cjs/{nv-fieldtime.entry-mnsDon9M.js → nv-fieldtime.entry-CpoXpAPx.js} +60 -60
  36. package/dist/cjs/{nv-icon.entry-CrgnozDL.js → nv-icon.entry-DbOeEd4f.js} +7 -7
  37. package/dist/cjs/{nv-iconbutton_2.entry-M5EY3-1s.js → nv-iconbutton_2.entry-DR_wR73O.js} +1 -1
  38. package/dist/cjs/{nv-menu.entry-D7bORqXp.js → nv-menu.entry-DB_G8hS_.js} +1 -1
  39. package/dist/cjs/{nv-menuitem.entry-CaN6qNoB.js → nv-menuitem.entry-PBCNIzPI.js} +1 -1
  40. package/dist/cjs/nv-notification.entry-CyumbQS_.js +178 -0
  41. package/dist/cjs/{nv-popover.entry-DGeXSyhZ.js → nv-popover.entry-ttESQMgj.js} +9 -9
  42. package/dist/cjs/{nv-row.entry-B17DsCjM.js → nv-row.entry-DPEGaFeS.js} +2 -2
  43. package/dist/cjs/{nv-stack.entry-Dv3YU4nJ.js → nv-stack.entry-CTPwlz23.js} +2 -2
  44. package/dist/cjs/{nv-table.entry-BILyG-43.js → nv-table.entry-Dv1mZKcu.js} +3 -3
  45. package/dist/cjs/{nv-tablecolumn.entry-II6Z_gdO.js → nv-tablecolumn.entry-DrAaeHm-.js} +1 -1
  46. package/dist/cjs/{nv-toggle.entry-5Wmww2Cd.js → nv-toggle.entry-D2TRd371.js} +3 -3
  47. package/dist/cjs/{nv-togglebutton.entry-Dnmfrj0O.js → nv-togglebutton.entry-D95qOQ1K.js} +2 -2
  48. package/dist/cjs/{nv-togglebuttongroup.entry-C9mplQcb.js → nv-togglebuttongroup.entry-BNvyZgbh.js} +2 -2
  49. package/dist/cjs/{nv-tooltip.entry-CcUQrjAv.js → nv-tooltip.entry-oOw6EmyL.js} +2 -2
  50. package/dist/cjs/{stylefire.es-74da334a-y0piPjlz.js → style-value-types.es-f5d10b79-D0QCM8OB.js} +50 -694
  51. package/dist/cjs/{timeline.animation-adf35ecb-CE6Dsdxr.js → timeline.animation-79215cd4-KteJaZPb.js} +19 -0
  52. package/dist/generated/components.js +8 -0
  53. package/dist/generated/components.server.js +18 -1
  54. package/dist/types/generated/components.d.ts +5 -0
  55. package/dist/types/generated/components.server.d.ts +5 -0
  56. package/package.json +1 -1
  57. package/dist/cjs/collapse.animation-16e3af45-CChx_tQJ.js +0 -84
  58. package/dist/cjs/fade.animation-71e8e34c-BAw_TYsB.js +0 -68
  59. package/dist/cjs/nv-accordion.entry-hi3M0POV.js +0 -164
package/dist/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-jBgPO7HC.js');
3
+ var index = require('./index-Jgn7NELT.js');
4
4
  require('react');
5
5
 
6
6
 
@@ -43,6 +43,10 @@ Object.defineProperty(exports, "LoaderColors", {
43
43
  enumerable: true,
44
44
  get: function () { return index.LoaderColors; }
45
45
  });
46
+ Object.defineProperty(exports, "NotificationEmphasis", {
47
+ enumerable: true,
48
+ get: function () { return index.NotificationEmphasis; }
49
+ });
46
50
  exports.NvAccordion = index.NvAccordion;
47
51
  exports.NvAccordionItem = index.NvAccordionItem;
48
52
  exports.NvAlert = index.NvAlert;
@@ -79,6 +83,7 @@ exports.NvIconbutton = index.NvIconbutton;
79
83
  exports.NvLoader = index.NvLoader;
80
84
  exports.NvMenu = index.NvMenu;
81
85
  exports.NvMenuitem = index.NvMenuitem;
86
+ exports.NvNotification = index.NvNotification;
82
87
  exports.NvPopover = index.NvPopover;
83
88
  exports.NvRow = index.NvRow;
84
89
  exports.NvStack = index.NvStack;
@@ -1,27 +1,36 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-jBgPO7HC.js');
4
- var collapse_animation16e3af45 = require('./collapse.animation-16e3af45-CChx_tQJ.js');
5
- require('./stylefire.es-74da334a-y0piPjlz.js');
3
+ var index = require('./index-Jgn7NELT.js');
4
+ var collapse_animationAcda1bf5 = require('./collapse.animation-acda1bf5-BuORVmQv.js');
5
+ require('./style-value-types.es-f5d10b79-D0QCM8OB.js');
6
6
  require('react');
7
7
 
8
- const nvAccordionItemCss = "nv-accordion-item{display:block;border-bottom:var(--spacing-px) solid var(--color-content-low-border)}nv-accordion-item:last-child{border-bottom:none}nv-accordion-item .nv-accordion-item__header{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-4)}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__chevron{margin-left:var(--spacing-2);flex-shrink:0}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__header-content{display:flex;flex-direction:column;gap:var(--spacing-0-5);flex:1;min-width:0}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__title{color:var(--color-content-high-text);font-size:var(--font-size-lg);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--line-height-lg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__subtitle{color:var(--color-content-low-text);font-size:var(--font-size-md);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--line-height-base);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}nv-accordion-item .nv-accordion-item__content{background:var(--color-level-10-background)}nv-accordion-item .nv-accordion-item__content .nv-accordion-item__content-inner{padding:var(--spacing-4);color:var(--color-content-low-text);font-size:var(--font-size-md);font-style:normal;font-weight:500;line-height:var(--line-height-base);}nv-accordion-item.is-disabled{opacity:var(--opacity-disabled);pointer-events:none}nv-accordion-item.is-open .nv-accordion-item__header{border-bottom:var(--spacing-px) solid var(--color-content-low-border)}";
8
+ const nvAccordionItemCss = "nv-accordion-item{display:block;border-bottom:var(--spacing-px) solid var(--color-content-low-border)}nv-accordion-item:last-child{border-bottom:none}nv-accordion-item .nv-accordion-item__header{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-4)}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__chevron{margin-left:var(--spacing-2);flex-shrink:0}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__header-content{display:flex;flex-direction:column;gap:var(--spacing-0-5);flex:1;min-width:0}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__title{color:var(--color-content-high-text);font-size:var(--font-size-lg);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--line-height-lg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__subtitle{color:var(--color-content-low-text);font-size:var(--font-size-md);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--line-height-base);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}nv-accordion-item .nv-accordion-item__content{background:var(--color-level-10-background)}nv-accordion-item .nv-accordion-item__content .nv-accordion-item__content-inner{padding:var(--spacing-4);color:var(--color-content-low-text);font-size:var(--font-size-md);font-style:normal;font-weight:500;line-height:var(--line-height-base);}nv-accordion-item.is-disabled{opacity:var(--opacity-disabled);pointer-events:none}nv-accordion-item.is-open .nv-accordion-item__header{border-bottom:var(--spacing-px) solid var(--color-content-low-border)}nv-accordion-item:last-child .nv-accordion-item__content{border-radius:0 0 calc(var(--radius-rounded-lg) - var(--spacing-px)) calc(var(--radius-rounded-lg) - var(--spacing-px))}";
9
9
  const NvAccordionItemStyle0 = nvAccordionItemCss;
10
10
 
11
11
  const NvAccordionItem = class {
12
12
  constructor(hostRef) {
13
13
  index.registerInstance(this, hostRef);
14
14
  this.itemToggle = index.createEvent(this, "itemToggle");
15
- /** Open or closed */
15
+ this.isToggling = false;
16
+ /**
17
+ * Open or closed
18
+ */
16
19
  this.open = false;
17
- /** Disables the item */
20
+ /**
21
+ * Disables the item
22
+ */
18
23
  this.disabled = false;
19
- /** Parent expansion mode (accordion or multi) */
24
+ /**
25
+ * Parent expansion mode (accordion or multi)
26
+ */
20
27
  this.mode = 'accordion';
21
28
  //#endregion EVENTS
22
29
  /****************************************************************************/
23
30
  //#region STATE
24
- /** Internal state for open/close rendering */
31
+ /**
32
+ * Internal state for open/close rendering
33
+ */
25
34
  this.currentOpenState = false;
26
35
  /**
27
36
  * Controls if the panel has been initialized for animations
@@ -42,7 +51,7 @@ const NvAccordionItem = class {
42
51
  * @param {Event} e - Click event
43
52
  */
44
53
  this.handleIconClick = (e) => {
45
- e.stopPropagation(); // Prevent header click from triggering
54
+ e.stopPropagation();
46
55
  this.toggle();
47
56
  };
48
57
  /**
@@ -50,8 +59,10 @@ const NvAccordionItem = class {
50
59
  * @param {KeyboardEvent} e - Keyboard event
51
60
  */
52
61
  this.handleHeaderKeyDown = (e) => {
53
- if (this.disabled)
62
+ if (this.disabled) {
63
+ console.warn('[handleHeaderKeyDown] Ignored (disabled)');
54
64
  return;
65
+ }
55
66
  switch (e.key) {
56
67
  case 'Enter':
57
68
  case ' ':
@@ -61,17 +72,19 @@ const NvAccordionItem = class {
61
72
  case 'ArrowDown':
62
73
  e.preventDefault();
63
74
  if (!this.open) {
75
+ this.isToggling = true;
64
76
  this.open = true;
65
- this.itemToggle.emit(this.open);
66
- this.updateVisibility(this.open);
77
+ this.itemToggle.emit(true);
78
+ this.isToggling = false;
67
79
  }
68
80
  break;
69
81
  case 'ArrowUp':
70
82
  e.preventDefault();
71
83
  if (this.open) {
84
+ this.isToggling = true;
72
85
  this.open = false;
73
- this.itemToggle.emit(this.open);
74
- this.updateVisibility(this.open);
86
+ this.itemToggle.emit(false);
87
+ this.isToggling = false;
75
88
  }
76
89
  break;
77
90
  }
@@ -81,12 +94,23 @@ const NvAccordionItem = class {
81
94
  /****************************************************************************/
82
95
  //#region WATCHERS
83
96
  async onOpenChanged(newValue, oldValue) {
84
- this.currentOpenState = newValue; // Synchronize internal state
85
- // Skip initial render
86
- if (oldValue === undefined) {
97
+ if (this.disabled) {
98
+ console.warn('[onOpenChanged] Item is disabled, forcing closed state');
99
+ this.currentOpenState = false;
100
+ this.open = false;
87
101
  return;
88
102
  }
89
- await this.updateVisibility(newValue);
103
+ this.currentOpenState = newValue;
104
+ const isInitialRender = oldValue === undefined;
105
+ if (!isInitialRender) {
106
+ if (newValue === false && !this.isToggling) {
107
+ this.itemToggle.emit(newValue);
108
+ }
109
+ else if (newValue && !this.isToggling) {
110
+ this.itemToggle.emit(newValue);
111
+ }
112
+ await this.updateVisibility(newValue);
113
+ }
90
114
  }
91
115
  //#endregion WATCHERS
92
116
  /****************************************************************************/
@@ -96,18 +120,18 @@ const NvAccordionItem = class {
96
120
  * @param {boolean} open - Whether the accordion item should be open
97
121
  */
98
122
  async updateVisibility(open) {
99
- if (!this.contentRef)
123
+ if (!this.contentRef) {
124
+ console.error('[updateVisibility] No contentRef available');
100
125
  return;
126
+ }
101
127
  this.isAnimating = true;
102
- const { collapse, expand } = collapse_animation16e3af45.useCollapse(this.contentRef, {
128
+ const { collapse, expand } = collapse_animationAcda1bf5.useCollapse(this.contentRef, {
103
129
  duration: 200,
104
130
  });
105
131
  if (open) {
106
- // Expand with animation
107
132
  await expand();
108
133
  }
109
134
  else {
110
- // Collapse with animation
111
135
  await collapse();
112
136
  }
113
137
  this.isAnimating = false;
@@ -116,19 +140,24 @@ const NvAccordionItem = class {
116
140
  /****************************************************************************/
117
141
  //#region LIFECYCLE
118
142
  componentWillLoad() {
119
- this.currentOpenState = this.open; // Initial synchronization
143
+ this.currentOpenState = this.open;
120
144
  }
121
145
  componentDidLoad() {
122
146
  if (this.contentRef) {
123
- const { setExpanded, setCollapsed } = collapse_animation16e3af45.useCollapse(this.contentRef);
124
- if (this.open) {
125
- // If open by default on initial load, set expanded state without animation
126
- setExpanded();
127
- }
128
- else {
129
- // If closed by default, set collapsed state without animation
130
- setCollapsed();
131
- }
147
+ setTimeout(() => {
148
+ const { setExpanded, setCollapsed } = collapse_animationAcda1bf5.useCollapse(this.contentRef, {
149
+ duration: 200,
150
+ });
151
+ if (this.open) {
152
+ setExpanded();
153
+ this.currentOpenState = true;
154
+ }
155
+ else {
156
+ setCollapsed();
157
+ this.currentOpenState = false;
158
+ }
159
+ this.isInitialized = true;
160
+ }, 0);
132
161
  }
133
162
  }
134
163
  disconnectedCallback() {
@@ -144,10 +173,14 @@ const NvAccordionItem = class {
144
173
  */
145
174
  async toggle() {
146
175
  if (!this.disabled && !this.isAnimating) {
147
- this.open = !this.open;
148
- this.itemToggle.emit(this.open);
149
- // Force animation update directly instead of relying on watcher
150
- await this.updateVisibility(this.open);
176
+ this.isToggling = true;
177
+ const newOpen = !this.open;
178
+ this.open = newOpen;
179
+ this.itemToggle.emit(newOpen);
180
+ this.isToggling = false;
181
+ }
182
+ else {
183
+ console.warn('[toggle] Ignored toggle (disabled or animating)');
151
184
  }
152
185
  }
153
186
  /**
@@ -155,18 +188,19 @@ const NvAccordionItem = class {
155
188
  * @returns {string} The icon name to display in the chevron button
156
189
  */
157
190
  get chevronIconName() {
158
- return this.open ? 'chevron-top' : 'chevron-down';
191
+ const name = this.open ? 'chevron-top' : 'chevron-down';
192
+ return name;
159
193
  }
160
194
  //#endregion METHODS
161
195
  /****************************************************************************/
162
196
  //#region RENDER
163
197
  render() {
164
- return (index.h(index.Host, { key: 'dfb8ca76f8ac40c938323be1ccba4353ea33a616', class: {
198
+ return (index.h(index.Host, { key: '4d5ae52ba3e8cac86316d790f95afd39f6c73019', class: {
165
199
  'nv-accordion-item': true,
166
- 'is-open': this.open,
200
+ 'is-open': this.currentOpenState,
167
201
  'is-disabled': this.disabled,
168
202
  'is-animating': this.isAnimating,
169
- }, role: "listitem", "aria-expanded": this.open ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, index.h("div", { key: '258efe0502a39d963a9e75c16285ee9cbc65cb9f', class: "nv-accordion-item__header", onClick: this.handleHeaderClick, "aria-controls": "content" }, index.h("slot", { key: 'bb4dae743f06e3d41d1f7b8c17793b668df9347b', name: "header" }, index.h("div", { key: 'f3142a81c6be776d95ab9292101b889db6e35805', class: "nv-accordion-item__header-content" }, this.itemTitle && (index.h("span", { key: 'e897d8b4d414ba4e93b2853c152059579063335e', class: "nv-accordion-item__title" }, this.itemTitle)), this.subtitle && (index.h("span", { key: 'b8e03ceb1ca0e4c0b0fe24398f0e1c592ac077ab', class: "nv-accordion-item__subtitle" }, this.subtitle)))), index.h("nv-iconbutton", { key: '145718cd664f6b1015cf99ad3c72dbe80df1f54e', emphasis: "low", size: "sm", shape: "square", name: this.chevronIconName, tabindex: this.disabled ? -1 : 0, onClick: this.handleIconClick, onKeyDown: this.handleHeaderKeyDown, "aria-controls": "content", "aria-label": this.open ? 'Fermer la section' : 'Ouvrir la section' })), index.h("div", { key: '667967ca20edaa1fc738188f42cfa8bf47bb080f', id: "content", class: "nv-accordion-item__content", ref: el => (this.contentRef = el) }, index.h("div", { key: '1f66bac904a5992d5e6cd63852d5aec9bc602ed7', class: "nv-accordion-item__content-inner" }, index.h("slot", { key: 'd7b5cf5c69daab242e7696e7432769905b3d4c72', name: "content" })))));
203
+ }, role: "listitem", "aria-expanded": this.currentOpenState ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, index.h("div", { key: '866562d2f3033189e6d5df8fa5576d2f1540959e', class: "nv-accordion-item__header", onClick: this.handleHeaderClick, "aria-controls": "content" }, index.h("slot", { key: '36d2b14528c6bd6665ccfc94707d62dc406262d0', name: "header" }, index.h("div", { key: 'c78c1e485d0128708db6fc5fb2b64c6c01e4ed0f', class: "nv-accordion-item__header-content" }, this.itemTitle && (index.h("span", { key: '524cf377a4c89752eeed1933dbb8fd2343cd8830', class: "nv-accordion-item__title" }, this.itemTitle)), this.subtitle && (index.h("span", { key: 'b8ee5edc3c798218348490fc43c458c45934ee83', class: "nv-accordion-item__subtitle" }, this.subtitle)))), index.h("nv-iconbutton", { key: 'aa474788bb5551ca7b94261dca1ccb2e5aced3d3', emphasis: "low", size: "sm", shape: "square", name: this.chevronIconName, tabindex: this.disabled ? -1 : 0, onClick: this.handleIconClick, onKeyDown: this.handleHeaderKeyDown, "aria-controls": "content", "aria-label": this.currentOpenState ? 'Close the section' : 'Open the section' })), index.h("div", { key: '3b49afd97cc797b165a8fa6753f564349735aad1', id: "content", class: "nv-accordion-item__content", ref: el => (this.contentRef = el) }, index.h("div", { key: '955b5c7cef3259a2531ecc14eafb806a9d28c9a6', class: "nv-accordion-item__content-inner" }, index.h("slot", { key: '56ff89e2041d425f520fe6e62975bbb7193653f2', name: "content" })))));
170
204
  }
171
205
  get el() { return index.getElement(this); }
172
206
  static get watchers() { return {
@@ -0,0 +1,178 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-Jgn7NELT.js');
4
+ require('react');
5
+
6
+ const nvAccordionCss = "nv-accordion{display:block;border:var(--spacing-px) solid var(--color-content-low-border);border-radius:var(--radius-rounded-lg)}nv-accordion .nv-accordion__footer{padding:var(--spacing-3);background:var(--color-level-05-background);border-radius:0 0 var(--radius-rounded-lg) var(--radius-rounded-lg);margin-top:calc(var(--spacing-px) * -1);border-top:var(--spacing-px) solid var(--color-content-low-border)}nv-accordion .nv-accordion__footer:empty{display:none}";
7
+ const NvAccordionStyle0 = nvAccordionCss;
8
+
9
+ const NvAccordion = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.openChanged = index.createEvent(this, "openChanged");
13
+ /****************************************************************************/
14
+ //#region PROPERTIES
15
+ /**
16
+ * Data to display as a list of items (title, subtitle, content).
17
+ */
18
+ this.data = [];
19
+ /**
20
+ * Expansion mode: 'accordion' (single open) or 'multi' (multiple open)
21
+ */
22
+ this.mode = 'accordion';
23
+ /**
24
+ * Index of open items (external control possible)
25
+ */
26
+ this.openIndexes = [];
27
+ //#endregion PROPERTIES
28
+ /****************************************************************************/
29
+ //#region STATE
30
+ this.updatingFromInternal = false;
31
+ }
32
+ //#endregion EVENTS
33
+ /****************************************************************************/
34
+ //#region METHODS
35
+ /**
36
+ * Opens an item by its index (Public API)
37
+ * @param {number} index Index of the item to open
38
+ */
39
+ async open(index) {
40
+ this.toggleItem(index, true);
41
+ }
42
+ /**
43
+ * Closes an item by its index (Public API)
44
+ * @param {number} index Index of the item to close
45
+ */
46
+ async close(index) {
47
+ this.toggleItem(index, false);
48
+ }
49
+ /**
50
+ * Toggles an item's state (internal)
51
+ * @param {number} index Item index
52
+ * @param {boolean} [forceOpen] Force open (true) or close (false)
53
+ */
54
+ toggleItem(index, forceOpen) {
55
+ const items = Array.from(this.el.querySelectorAll('nv-accordion-item'));
56
+ const item = items[index];
57
+ if (!item || item.disabled) {
58
+ console.warn('[toggleItem] Item not found or disabled:', index);
59
+ this.openChanged.emit({ openIndexes: [...(this.openIndexes || [])] });
60
+ return;
61
+ }
62
+ let openIndexes = [...(this.openIndexes || [])];
63
+ const isOpen = openIndexes.includes(index);
64
+ if (this.mode === 'accordion') {
65
+ openIndexes =
66
+ forceOpen === false || (forceOpen === undefined && isOpen)
67
+ ? []
68
+ : [index];
69
+ }
70
+ else {
71
+ if (forceOpen === false) {
72
+ openIndexes = openIndexes.filter(i => i !== index);
73
+ }
74
+ else if (forceOpen === true && !isOpen) {
75
+ openIndexes.push(index);
76
+ }
77
+ else if (forceOpen === undefined) {
78
+ openIndexes = isOpen
79
+ ? openIndexes.filter(i => i !== index)
80
+ : [...openIndexes, index];
81
+ }
82
+ }
83
+ this.updatingFromInternal = true;
84
+ this.openIndexes = [...openIndexes];
85
+ this.updateChildrenState();
86
+ this.updatingFromInternal = false;
87
+ this.openChanged.emit({ openIndexes: [...openIndexes] });
88
+ }
89
+ /**
90
+ * Updates the open state of child elements based on openIndexes
91
+ */
92
+ async updateChildrenState() {
93
+ const items = Array.from(this.el.querySelectorAll('nv-accordion-item'));
94
+ items.forEach((item, i) => {
95
+ const shouldBeOpen = (this.openIndexes || []).includes(i);
96
+ item.open = shouldBeOpen;
97
+ item.mode = this.mode;
98
+ item.setAttribute('aria-expanded', shouldBeOpen ? 'true' : 'false');
99
+ index.forceUpdate(item);
100
+ });
101
+ }
102
+ /**
103
+ * Listens to itemToggle events from nv-accordion-item elements
104
+ * @param {CustomEvent<boolean>} event Event emitted by nv-accordion-item
105
+ */
106
+ onItemToggle(event) {
107
+ if (this.updatingFromInternal) {
108
+ return;
109
+ }
110
+ const items = Array.from(this.el.querySelectorAll('nv-accordion-item'));
111
+ const targetItem = event.target;
112
+ const index = items.indexOf(targetItem);
113
+ if (index !== -1) {
114
+ this.toggleItem(index, event.detail);
115
+ }
116
+ else {
117
+ console.warn('[onItemToggle] Target item not found in items list');
118
+ }
119
+ }
120
+ //#endregion METHODS
121
+ /****************************************************************************/
122
+ //#region WATCHERS
123
+ onOpenIndexesChange(newValue, oldValue) {
124
+ if (!this.updatingFromInternal &&
125
+ newValue !== undefined &&
126
+ newValue !== oldValue) {
127
+ this.updateChildrenState();
128
+ }
129
+ }
130
+ onModeChange() {
131
+ this.updateChildrenState();
132
+ }
133
+ //#endregion WATCHERS
134
+ /****************************************************************************/
135
+ //#region LIFECYCLE
136
+ componentWillLoad() {
137
+ if (this.openIndexes === undefined) {
138
+ this.openIndexes = [];
139
+ }
140
+ }
141
+ async componentDidLoad() {
142
+ var _a;
143
+ const items = Array.from(this.el.querySelectorAll('nv-accordion-item'));
144
+ // Only initialize openIndexes from child items if no data is provided and openIndexes is not explicitly set
145
+ if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) &&
146
+ (!this.openIndexes || this.openIndexes.length === 0)) {
147
+ const childOpenIndexes = items
148
+ .map((item, i) => (item.hasAttribute('open') || item.open ? i : -1))
149
+ .filter(i => i !== -1);
150
+ if (childOpenIndexes.length > 0) {
151
+ this.updatingFromInternal = true;
152
+ this.openIndexes = [...childOpenIndexes];
153
+ this.updatingFromInternal = false;
154
+ this.openChanged.emit({ openIndexes: [...this.openIndexes] });
155
+ }
156
+ }
157
+ // Ensure children are in sync with current openIndexes state
158
+ await this.updateChildrenState();
159
+ }
160
+ //#endregion LIFECYCLE
161
+ /****************************************************************************/
162
+ //#region RENDER
163
+ render() {
164
+ var _a;
165
+ return (index.h(index.Host, { key: 'b5c36f19bcbd0d06e9d924ae6f9630b8b6cae05a', role: "list", class: "nv-accordion" }, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) ? (this.data.map((item, i) => {
166
+ var _a;
167
+ return (index.h("nv-accordion-item", { key: (_a = item.id) !== null && _a !== void 0 ? _a : i, itemTitle: item.title, disabled: item.disabled, open: (this.openIndexes || []).includes(i), mode: this.mode }, item.subtitle ? (index.h("div", { slot: "header" }, index.h("div", { class: "nv-accordion-item__header-content" }, index.h("span", { class: "nv-accordion-item__title" }, item.title), index.h("span", { class: "nv-accordion-item__subtitle" }, item.subtitle)))) : null, index.h("div", { slot: "content" }, item.content), item.footer && index.h("div", { slot: "footer" }, item.footer)));
168
+ })) : (index.h("slot", null))));
169
+ }
170
+ get el() { return index.getElement(this); }
171
+ static get watchers() { return {
172
+ "openIndexes": ["onOpenIndexesChange"],
173
+ "mode": ["onModeChange"]
174
+ }; }
175
+ };
176
+ NvAccordion.style = NvAccordionStyle0;
177
+
178
+ exports.nv_accordion = NvAccordion;
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-jBgPO7HC.js');
3
+ var index = require('./index-Jgn7NELT.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
- var constantsA857c476 = require('./constants-a857c476-Cj2b-su0.js');
6
- var collapse_animation16e3af45 = require('./collapse.animation-16e3af45-CChx_tQJ.js');
7
- var fade_animation71e8e34c = require('./fade.animation-71e8e34c-BAw_TYsB.js');
8
- require('./stylefire.es-74da334a-y0piPjlz.js');
9
- var timeline_animationAdf35ecb = require('./timeline.animation-adf35ecb-CE6Dsdxr.js');
5
+ var constantsD0f19e7b = require('./constants-d0f19e7b-s0SCO_vi.js');
6
+ var collapse_animationAcda1bf5 = require('./collapse.animation-acda1bf5-BuORVmQv.js');
7
+ var fade_animationEb454088 = require('./fade.animation-eb454088-Bma0SpTf.js');
8
+ require('./style-value-types.es-f5d10b79-D0QCM8OB.js');
9
+ var timeline_animation79215cd4 = require('./timeline.animation-79215cd4-KteJaZPb.js');
10
10
  require('react');
11
11
 
12
- const nvAlertCss = "nv-alert{display:flex !important;align-items:flex-start;position:relative;gap:var(--alert-gap-x);border-radius:var(--alert-radius);font-family:\"TT Norms Pro\", \"Montserrat\", sans-serif}nv-alert>nv-icon{margin-left:var(--alert-icon-position-x);margin-top:var(--alert-icon-position-y)}nv-alert.hidden{display:none !important}nv-alert.feedback-information{background-color:var(--components-alert-information-background);border:1px solid var(--components-alert-information-border) !important}nv-alert.feedback-information>.close:focus,nv-alert.feedback-information>.close:focus-within{outline:none}nv-alert.feedback-information>.close:focus-visible,nv-alert.feedback-information>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-information-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-warning{background-color:var(--components-alert-warning-background);border:1px solid var(--components-alert-warning-border) !important}nv-alert.feedback-warning>.close:focus,nv-alert.feedback-warning>.close:focus-within{outline:none}nv-alert.feedback-warning>.close:focus-visible,nv-alert.feedback-warning>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-warning-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-error{background-color:var(--components-alert-error-background);border:1px solid var(--components-alert-error-border) !important}nv-alert.feedback-error>.close:focus,nv-alert.feedback-error>.close:focus-within{outline:none}nv-alert.feedback-error>.close:focus-visible,nv-alert.feedback-error>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-error-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-success{background-color:var(--components-alert-success-background);border:1px solid var(--components-alert-success-border) !important}nv-alert.feedback-success>.close:focus,nv-alert.feedback-success>.close:focus-within{outline:none}nv-alert.feedback-success>.close:focus-visible,nv-alert.feedback-success>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-success-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-neutral{background-color:var(--components-alert-neutral-background);border:1px solid var(--components-alert-neutral-border) !important}nv-alert.feedback-neutral>.close:focus,nv-alert.feedback-neutral>.close:focus-within{outline:none}nv-alert.feedback-neutral>.close:focus-visible,nv-alert.feedback-neutral>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-neutral-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert>nv-icon.icon-information{color:var(--components-alert-information-icon)}nv-alert>nv-icon.icon-warning{color:var(--components-alert-warning-icon)}nv-alert>nv-icon.icon-error{color:var(--components-alert-error-icon)}nv-alert>nv-icon.icon-success{color:var(--components-alert-success-icon)}nv-alert>nv-icon.icon-neutral{color:var(--components-alert-neutral-icon)}nv-alert>.content{display:flex;padding:var(--alert-padding);padding-right:calc(var(--alert-padding) + var(--icon-md) + var(--spacing-1));padding-left:0;flex-direction:column;gap:var(--alert-gap-y)}nv-alert>.content>.heading{color:var(--components-alert-content-title);font-size:var(--alert-heading-font-size);line-height:var(--alert-heading-line-height);font-weight:var(--alert-heading-font-weight)}nv-alert>.content>.message{color:var(--components-alert-content-description);font-size:var(--alert-message-font-size);line-height:var(--alert-message-line-height)}nv-alert>.close{border-radius:var(--alert-radius);position:absolute;display:flex;top:var(--alert-icon-position-y);right:var(--alert-icon-position-x);padding:0;border:none;background:none;cursor:pointer}";
12
+ const nvAlertCss = "nv-alert{display:flex !important;align-items:flex-start;position:relative;gap:var(--alert-gap-x);border-radius:var(--alert-radius);font-family:\"TT Norms Pro\", \"Montserrat\", sans-serif}nv-alert>nv-icon{margin-left:var(--alert-icon-position-x);margin-top:var(--alert-icon-position-y)}nv-alert.hidden{display:none !important}nv-alert.feedback-information{background-color:var(--components-alert-information-background);border:1px solid var(--components-alert-information-border) !important}nv-alert.feedback-information>.close:focus,nv-alert.feedback-information>.close:focus-within{outline:none}nv-alert.feedback-information>.close:focus-visible,nv-alert.feedback-information>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-information-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-warning{background-color:var(--components-alert-warning-background);border:1px solid var(--components-alert-warning-border) !important}nv-alert.feedback-warning>.close:focus,nv-alert.feedback-warning>.close:focus-within{outline:none}nv-alert.feedback-warning>.close:focus-visible,nv-alert.feedback-warning>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-warning-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-error{background-color:var(--components-alert-error-background);border:1px solid var(--components-alert-error-border) !important}nv-alert.feedback-error>.close:focus,nv-alert.feedback-error>.close:focus-within{outline:none}nv-alert.feedback-error>.close:focus-visible,nv-alert.feedback-error>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-error-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-success{background-color:var(--components-alert-success-background);border:1px solid var(--components-alert-success-border) !important}nv-alert.feedback-success>.close:focus,nv-alert.feedback-success>.close:focus-within{outline:none}nv-alert.feedback-success>.close:focus-visible,nv-alert.feedback-success>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-success-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-neutral{background-color:var(--components-alert-neutral-background);border:1px solid var(--components-alert-neutral-border) !important}nv-alert.feedback-neutral>.close:focus,nv-alert.feedback-neutral>.close:focus-within{outline:none}nv-alert.feedback-neutral>.close:focus-visible,nv-alert.feedback-neutral>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-neutral-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert>nv-icon.icon-information{color:var(--components-alert-information-icon)}nv-alert>nv-icon.icon-warning{color:var(--components-alert-warning-icon)}nv-alert>nv-icon.icon-error{color:var(--components-alert-error-icon)}nv-alert>nv-icon.icon-success{color:var(--components-alert-success-icon)}nv-alert>nv-icon.icon-neutral{color:var(--components-alert-neutral-icon)}nv-alert>.content{display:flex;padding:var(--alert-padding);padding-right:calc(var(--alert-padding) + var(--spacing-5) + var(--spacing-1));padding-left:0;flex-direction:column;gap:var(--alert-gap-y)}nv-alert>.content>.heading{color:var(--components-alert-content-title);font-size:var(--alert-heading-font-size);line-height:var(--alert-heading-line-height);font-weight:var(--alert-heading-font-weight)}nv-alert>.content>.message{color:var(--components-alert-content-description);font-size:var(--alert-message-font-size);line-height:var(--alert-message-line-height)}nv-alert>.close{border-radius:var(--alert-radius);position:absolute;display:flex;top:var(--alert-icon-position-y);right:var(--alert-icon-position-x);padding:0;border:none;background:none;cursor:pointer}";
13
13
  const NvAlertStyle0 = nvAlertCss;
14
14
 
15
15
  const NvAlert = class {
@@ -63,15 +63,15 @@ const NvAlert = class {
63
63
  */
64
64
  this.getDefaultIcon = () => {
65
65
  switch (this.feedback) {
66
- case constantsA857c476.FeedbackColors.Warning:
66
+ case constantsD0f19e7b.FeedbackColors.Warning:
67
67
  return 'alert-circle';
68
- case constantsA857c476.FeedbackColors.Information:
68
+ case constantsD0f19e7b.FeedbackColors.Information:
69
69
  return 'info-circle';
70
- case constantsA857c476.FeedbackColors.Success:
70
+ case constantsD0f19e7b.FeedbackColors.Success:
71
71
  return 'circle-check';
72
- case constantsA857c476.FeedbackColors.Error:
72
+ case constantsD0f19e7b.FeedbackColors.Error:
73
73
  return 'alert-circle';
74
- case constantsA857c476.FeedbackColors.Neutral:
74
+ case constantsD0f19e7b.FeedbackColors.Neutral:
75
75
  return 'help';
76
76
  default:
77
77
  return 'info-circle';
@@ -117,15 +117,15 @@ const NvAlert = class {
117
117
  this.toggleHiddenClass(hidden);
118
118
  return;
119
119
  }
120
- const { fadeIn, fadeOut } = fade_animation71e8e34c.useFade(this.ref, { duration: 150 });
121
- const { collapse, expand } = collapse_animation16e3af45.useCollapse(this.ref, { duration: 150 });
120
+ const { fadeIn, fadeOut } = fade_animationEb454088.useFade(this.el, { duration: 150 });
121
+ const { collapse, expand } = collapse_animationAcda1bf5.useCollapse(this.el, { duration: 250 });
122
122
  if (hidden) {
123
- await timeline_animationAdf35ecb.timeline(fadeOut, collapse).start();
123
+ await timeline_animation79215cd4.timeline(fadeOut, collapse).start();
124
124
  this.toggleHiddenClass(true);
125
125
  }
126
126
  else {
127
127
  this.toggleHiddenClass(false);
128
- await timeline_animationAdf35ecb.timeline(expand, fadeIn).start();
128
+ await timeline_animation79215cd4.timeline(expand, fadeIn).start();
129
129
  }
130
130
  }
131
131
  /**
@@ -133,7 +133,7 @@ const NvAlert = class {
133
133
  * @param {boolean} hidden - Whether to add or remove the hidden class
134
134
  */
135
135
  toggleHiddenClass(hidden) {
136
- this.ref.classList.toggle('hidden', hidden);
136
+ this.el.classList.toggle('hidden', hidden);
137
137
  }
138
138
  //#endregion METHODS
139
139
  /****************************************************************************/
@@ -155,7 +155,7 @@ const NvAlert = class {
155
155
  }
156
156
  }
157
157
  if (this.hidden) {
158
- this.ref.classList.add('hidden');
158
+ this.el.classList.add('hidden');
159
159
  }
160
160
  }
161
161
  //#endregion LIFECYCLE
@@ -163,9 +163,9 @@ const NvAlert = class {
163
163
  //#region RENDER
164
164
  render() {
165
165
  var _a;
166
- return (index.h(index.Host, { key: 'f0e75ac2c38aced1dcf76cb1d5f03becefbee71d', role: "alert", class: clsx297c1ffe.clsx('root', `feedback-${this.feedback}`) }, index.h("nv-icon", { key: '19f7fcf452d62277ab436acd20c285f44fbaecd4', name: (_a = this.icon) !== null && _a !== void 0 ? _a : this.getDefaultIcon(), class: `icon-${this.feedback}`, size: "md" }), index.h("div", { key: '8e656ffd0bce63bd33d92b97df21389af265e182', class: "content" }, this.heading && index.h("p", { key: '0aa928e8ee8605d735f890bc67128563ce3ad379', class: "heading" }, this.heading), this.message && index.h("p", { key: '690d9928646d25a636b2bb04eb65eee40c402f52', class: "message" }, this.message), index.h("slot", { key: '86309f093688dbb81ff805f1c9137b200541e905' })), this.dismissible && (index.h("button", { key: '387695ff1e23a7e289cf58c51042ccc561d451ad', class: "close", type: "button", onClick: this.handleDismiss }, index.h("nv-icon", { key: '788b99b4c56fc8c936a67ac48d2db37fdcca7631', name: "x", size: "sm" })))));
166
+ return (index.h(index.Host, { key: '08bc48f1d9bba66505e46fb26b8400f185dcc716', role: "alert", class: clsx297c1ffe.clsx('root', `feedback-${this.feedback}`) }, index.h("nv-icon", { key: 'b4846e6aee8cf6cfde913372b11675a3c0301fa3', name: (_a = this.icon) !== null && _a !== void 0 ? _a : this.getDefaultIcon(), class: `icon-${this.feedback}`, size: "md" }), index.h("div", { key: '61edadca039963056bdf27914829286515269a4a', class: "content" }, this.heading && index.h("p", { key: '25c0396ade2573a9f955302cfe52702fe5e4f531', class: "heading" }, this.heading), this.message && index.h("p", { key: 'dbef6eac9028f5431bb9665ca5642af5278c20d7', class: "message" }, this.message), index.h("slot", { key: '5aa607cb7c48783371887fd9126b247647e8b37c' })), this.dismissible && (index.h("button", { key: 'e6be3501788f12fac97c162c0ed64c922acd4b22', class: "close", type: "button", onClick: this.handleDismiss }, index.h("nv-icon", { key: 'f39c94a6cf82226eb77143bce7b4d74aff30c05a', name: "x", size: "sm" })))));
167
167
  }
168
- get ref() { return index.getElement(this); }
168
+ get el() { return index.getElement(this); }
169
169
  static get watchers() { return {
170
170
  "hidden": ["handleHiddenChange"]
171
171
  }; }
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-jBgPO7HC.js');
3
+ var index = require('./index-Jgn7NELT.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
- var constantsA857c476 = require('./constants-a857c476-Cj2b-su0.js');
5
+ var constantsD0f19e7b = require('./constants-d0f19e7b-s0SCO_vi.js');
6
6
  require('react');
7
7
 
8
8
  const nvAvatarCss = "nv-avatar{align-items:center !important;background-color:var(--components-avatar-background-1);border-radius:var(--radius-rounded-full) !important;display:flex !important;flex-shrink:0 !important;font-family:\"TT Norms Pro\", sans-serif;font-style:normal;font-weight:var(--font-weight-medium-emphasis);justify-content:center !important;leading-trim:both;line-height:1 !important;text-align:center;text-edge:cap;text-transform:uppercase}nv-avatar.avatar-color-1{background-color:var(--components-avatar-background-1);color:var(--components-avatar-content-1)}nv-avatar.avatar-color-2{background-color:var(--components-avatar-background-2);color:var(--components-avatar-content-2)}nv-avatar.avatar-color-3{background-color:var(--components-avatar-background-3);color:var(--components-avatar-content-3)}nv-avatar.avatar-color-4{background-color:var(--components-avatar-background-4);color:var(--components-avatar-content-4)}nv-avatar.avatar-color-5{background-color:var(--components-avatar-background-5);color:var(--components-avatar-content-5)}nv-avatar.avatar-color-6{background-color:var(--components-avatar-background-6);color:var(--components-avatar-content-6)}nv-avatar.avatar-color-7{background-color:var(--components-avatar-background-7);color:var(--components-avatar-content-7)}nv-avatar.avatar-color-8{background-color:var(--components-avatar-background-8);color:var(--components-avatar-content-8)}nv-avatar.avatar-color-9{background-color:var(--components-avatar-background-9);color:var(--components-avatar-content-9)}nv-avatar.avatar-color-10{background-color:var(--components-avatar-background-10);color:var(--components-avatar-content-10)}nv-avatar img{height:100%;width:100%;object-fit:cover;object-position:center;border-radius:50%}nv-avatar.avatar-xs{width:var(--avatar-xs-size);height:var(--avatar-xs-size);font-size:var(--avatar-xs-font-size);line-height:var(--avatar-xs-font-size)}nv-avatar.avatar-xs nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-avatar.avatar-sm{width:var(--avatar-sm-size);height:var(--avatar-sm-size);font-size:var(--avatar-sm-font-size);line-height:var(--avatar-sm-font-size)}nv-avatar.avatar-sm nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-avatar.avatar-md{width:var(--avatar-md-size);height:var(--avatar-md-size);font-size:var(--avatar-md-font-size);line-height:var(--avatar-md-font-size)}nv-avatar.avatar-md nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-avatar.avatar-lg{width:var(--avatar-lg-size);height:var(--avatar-lg-size);font-size:var(--avatar-lg-font-size);line-height:var(--avatar-lg-font-size)}nv-avatar.avatar-lg nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-avatar.avatar-xl{width:var(--avatar-xl-size);height:var(--avatar-xl-size);font-size:var(--avatar-xl-font-size);line-height:var(--avatar-xl-font-size)}nv-avatar.avatar-xl nv-icon>svg{width:var(--spacing-7);height:var(--spacing-7);stroke-width:1.9px}";
@@ -23,19 +23,19 @@ const NvAvatar = class {
23
23
  }
24
24
  componentWillRender() {
25
25
  if (this.xsmall) {
26
- this.size = constantsA857c476.SemanticSizes.ExtraSmall;
26
+ this.size = constantsD0f19e7b.SemanticSizes.ExtraSmall;
27
27
  }
28
28
  if (this.small) {
29
- this.size = constantsA857c476.SemanticSizes.Small;
29
+ this.size = constantsD0f19e7b.SemanticSizes.Small;
30
30
  }
31
31
  if (this.medium) {
32
- this.size = constantsA857c476.SemanticSizes.Medium;
32
+ this.size = constantsD0f19e7b.SemanticSizes.Medium;
33
33
  }
34
34
  if (this.large) {
35
- this.size = constantsA857c476.SemanticSizes.Large;
35
+ this.size = constantsD0f19e7b.SemanticSizes.Large;
36
36
  }
37
37
  if (this.xlarge) {
38
- this.size = constantsA857c476.SemanticSizes.ExtraLarge;
38
+ this.size = constantsD0f19e7b.SemanticSizes.ExtraLarge;
39
39
  }
40
40
  if (this.text) {
41
41
  this.initials = this.text;