@vonage/vivid 4.25.0 → 4.27.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 (196) hide show
  1. package/custom-elements.json +3371 -1999
  2. package/lib/accordion-item/accordion-item.d.ts +2 -2
  3. package/lib/action-group/action-group.d.ts +1 -1
  4. package/lib/alert/alert.d.ts +5 -5
  5. package/lib/audio-player/audio-player.d.ts +3 -3
  6. package/lib/avatar/avatar.d.ts +393 -1
  7. package/lib/avatar/avatar.template.d.ts +2 -2
  8. package/lib/badge/badge.d.ts +2 -2
  9. package/lib/banner/banner.d.ts +6 -6
  10. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  11. package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  12. package/lib/button/button.d.ts +6 -6
  13. package/lib/calendar/calendar.d.ts +2 -0
  14. package/lib/calendar-event/calendar-event.d.ts +1 -1
  15. package/lib/card/card.d.ts +1 -1
  16. package/lib/checkbox/checkbox.d.ts +10 -10
  17. package/lib/combobox/combobox.d.ts +11 -11
  18. package/lib/data-grid/data-grid-cell.d.ts +6 -4
  19. package/lib/data-grid/data-grid-row.d.ts +1 -0
  20. package/lib/data-grid/data-grid.d.ts +1 -1
  21. package/lib/date-picker/date-picker.d.ts +75 -75
  22. package/lib/date-picker/date-picker.template.d.ts +1 -1
  23. package/lib/date-range-picker/date-range-picker.d.ts +44 -44
  24. package/lib/date-range-picker/date-range-picker.template.d.ts +1 -1
  25. package/lib/date-time-picker/date-time-picker.d.ts +64 -64
  26. package/lib/date-time-picker/date-time-picker.template.d.ts +1 -1
  27. package/lib/dial-pad/dial-pad.d.ts +3 -3
  28. package/lib/dialog/dialog.d.ts +5 -4
  29. package/lib/divider/divider.d.ts +1 -1
  30. package/lib/fab/fab.d.ts +2 -2
  31. package/lib/file-picker/file-picker.d.ts +10 -10
  32. package/lib/header/header.d.ts +1 -1
  33. package/lib/menu/menu.d.ts +2 -2
  34. package/lib/menu-item/menu-item.d.ts +3 -3
  35. package/lib/nav/nav.d.ts +1 -1
  36. package/lib/nav-disclosure/nav-disclosure.d.ts +3 -3
  37. package/lib/nav-item/nav-item.d.ts +3 -3
  38. package/lib/note/note.d.ts +2 -2
  39. package/lib/number-field/locale.d.ts +3 -2
  40. package/lib/number-field/number-field.d.ts +15 -15
  41. package/lib/option/option.d.ts +3 -3
  42. package/lib/pagination/locale.d.ts +5 -0
  43. package/lib/pagination/pagination.d.ts +341 -2
  44. package/lib/popup/popup.d.ts +1 -0
  45. package/lib/progress/progress.d.ts +1 -1
  46. package/lib/progress-ring/progress-ring.d.ts +1 -1
  47. package/lib/radio/radio.d.ts +3 -3
  48. package/lib/radio-group/radio-group.d.ts +4 -4
  49. package/lib/range-slider/range-slider.d.ts +5 -5
  50. package/lib/rich-text-editor/menubar/menubar.d.ts +3 -3
  51. package/lib/rich-text-editor/rich-text-editor.d.ts +3 -3
  52. package/lib/searchable-select/locale.d.ts +1 -1
  53. package/lib/searchable-select/option-tag.d.ts +3 -3
  54. package/lib/searchable-select/searchable-select.d.ts +15 -15
  55. package/lib/select/select.d.ts +12 -12
  56. package/lib/selectable-box/selectable-box.d.ts +1 -1
  57. package/lib/slider/slider.d.ts +5 -5
  58. package/lib/split-button/split-button.d.ts +6 -6
  59. package/lib/switch/switch.d.ts +2 -2
  60. package/lib/tab/tab.d.ts +6 -6
  61. package/lib/tab-panel/tab-panel.d.ts +1 -1
  62. package/lib/tag/locale.d.ts +3 -0
  63. package/lib/tag/tag.d.ts +343 -6
  64. package/lib/tag-group/tag-group.d.ts +1 -1
  65. package/lib/text-area/text-area.d.ts +14 -14
  66. package/lib/text-field/text-field.d.ts +16 -16
  67. package/lib/time-picker/time-picker.d.ts +21 -21
  68. package/lib/toggletip/toggletip.d.ts +1 -1
  69. package/lib/tooltip/tooltip.d.ts +1 -1
  70. package/lib/tree-item/tree-item.d.ts +3 -3
  71. package/lib/tree-view/tree-view.d.ts +1 -1
  72. package/lib/video-player/video-player.d.ts +3 -3
  73. package/locales/de-DE.cjs +40 -5
  74. package/locales/de-DE.js +40 -5
  75. package/locales/en-GB.cjs +40 -5
  76. package/locales/en-GB.js +40 -5
  77. package/locales/en-US.cjs +40 -5
  78. package/locales/en-US.js +40 -5
  79. package/locales/ja-JP.cjs +40 -5
  80. package/locales/ja-JP.js +40 -5
  81. package/locales/zh-CN.cjs +40 -5
  82. package/locales/zh-CN.js +40 -5
  83. package/package.json +73 -45
  84. package/shared/aria/delegates-aria.d.ts +1 -1
  85. package/shared/aria/host-semantics.d.ts +1 -1
  86. package/shared/calendar-picker.template.cjs +40 -13
  87. package/shared/calendar-picker.template.js +40 -13
  88. package/shared/definition.cjs +19 -3
  89. package/shared/definition.js +20 -4
  90. package/shared/definition11.cjs +1 -1
  91. package/shared/definition11.js +1 -1
  92. package/shared/definition13.cjs +25 -0
  93. package/shared/definition13.js +26 -1
  94. package/shared/definition15.cjs +1 -1
  95. package/shared/definition15.js +1 -1
  96. package/shared/definition16.cjs +1 -1
  97. package/shared/definition16.js +1 -1
  98. package/shared/definition17.cjs +602 -522
  99. package/shared/definition17.js +600 -520
  100. package/shared/definition18.cjs +8 -1
  101. package/shared/definition18.js +8 -1
  102. package/shared/definition19.cjs +9 -2
  103. package/shared/definition19.js +9 -2
  104. package/shared/definition2.cjs +1 -1
  105. package/shared/definition2.js +1 -1
  106. package/shared/definition20.cjs +3 -1
  107. package/shared/definition20.js +3 -1
  108. package/shared/definition21.cjs +2 -2
  109. package/shared/definition21.js +2 -2
  110. package/shared/definition22.cjs +9 -3
  111. package/shared/definition22.js +9 -3
  112. package/shared/definition28.cjs +2 -2
  113. package/shared/definition28.js +2 -2
  114. package/shared/definition3.cjs +1 -1
  115. package/shared/definition3.js +1 -1
  116. package/shared/definition30.cjs +1 -1
  117. package/shared/definition30.js +1 -1
  118. package/shared/definition31.cjs +1 -1
  119. package/shared/definition31.js +1 -1
  120. package/shared/definition32.cjs +1 -1
  121. package/shared/definition32.js +1 -1
  122. package/shared/definition36.cjs +41 -30
  123. package/shared/definition36.js +34 -23
  124. package/shared/definition38.cjs +30 -23
  125. package/shared/definition38.js +30 -23
  126. package/shared/definition4.cjs +1 -1
  127. package/shared/definition4.js +1 -1
  128. package/shared/definition41.cjs +1 -1
  129. package/shared/definition41.js +1 -1
  130. package/shared/definition42.cjs +2 -2
  131. package/shared/definition42.js +2 -2
  132. package/shared/definition44.cjs +129 -117
  133. package/shared/definition44.js +130 -118
  134. package/shared/definition45.cjs +17 -7
  135. package/shared/definition45.js +17 -7
  136. package/shared/definition46.cjs +1 -1
  137. package/shared/definition46.js +1 -1
  138. package/shared/definition49.cjs +6 -6
  139. package/shared/definition49.js +6 -6
  140. package/shared/definition54.cjs +2 -2
  141. package/shared/definition54.js +2 -2
  142. package/shared/definition56.cjs +5 -4
  143. package/shared/definition56.js +5 -4
  144. package/shared/definition57.cjs +1 -1
  145. package/shared/definition57.js +1 -1
  146. package/shared/definition58.cjs +1 -1
  147. package/shared/definition58.js +1 -1
  148. package/shared/definition59.cjs +3 -1
  149. package/shared/definition59.js +3 -1
  150. package/shared/definition6.cjs +45 -12
  151. package/shared/definition6.js +45 -12
  152. package/shared/definition63.cjs +2 -2
  153. package/shared/definition63.js +2 -2
  154. package/shared/definition64.cjs +136 -38
  155. package/shared/definition64.js +136 -38
  156. package/shared/definition67.cjs +36 -15
  157. package/shared/definition67.js +37 -16
  158. package/shared/feedback/feedback-message.d.ts +1 -1
  159. package/shared/feedback/mixins.d.ts +2 -2
  160. package/shared/form-associated.cjs +4 -0
  161. package/shared/form-associated.js +4 -0
  162. package/shared/foundation/button/button.d.ts +1 -1
  163. package/shared/foundation/vivid-element/vivid-element.d.ts +2 -0
  164. package/shared/key-codes.js +1 -1
  165. package/shared/localization/Locale.d.ts +4 -0
  166. package/shared/mixins.cjs +4 -1
  167. package/shared/mixins.js +4 -1
  168. package/shared/patterns/affix.d.ts +2 -2
  169. package/shared/patterns/char-count/char-count.d.ts +1 -1
  170. package/shared/patterns/form-elements/with-success-text.d.ts +1 -1
  171. package/shared/patterns/linkable.d.ts +1 -1
  172. package/shared/patterns/localized.d.ts +1 -1
  173. package/shared/patterns/trapped-focus.d.ts +1 -1
  174. package/shared/picker-field/mixins/calendar-picker.d.ts +2 -2
  175. package/shared/picker-field/mixins/calendar-picker.locale.d.ts +5 -0
  176. package/shared/picker-field/mixins/calendar-picker.template.d.ts +2 -2
  177. package/shared/picker-field/mixins/calendar-segments/segment.d.ts +1 -0
  178. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +1 -1
  179. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +4 -4
  180. package/shared/picker-field/mixins/single-date-picker.d.ts +4 -4
  181. package/shared/picker-field/mixins/single-value-picker.d.ts +1 -1
  182. package/shared/picker-field/mixins/time-selection-picker.d.ts +2 -2
  183. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +2 -2
  184. package/shared/picker-field/picker-field.d.ts +3 -3
  185. package/shared/picker-field.template.cjs +13 -13
  186. package/shared/picker-field.template.js +13 -13
  187. package/shared/vivid-element.cjs +11 -1
  188. package/shared/vivid-element.js +11 -1
  189. package/styles/core/all.css +5 -5
  190. package/styles/core/theme.css +2 -2
  191. package/styles/core/typography.css +4 -4
  192. package/styles/fonts/spezia-variable.css +15 -15
  193. package/styles/tokens/theme-dark.css +4 -4
  194. package/styles/tokens/theme-light.css +4 -4
  195. package/styles/tokens/vivid-2-compat.css +1 -1
  196. package/vivid.api.json +395 -277
@@ -2539,6 +2539,7 @@ const createRegisterFunction = (definition) => (prefix = "vwc") => {
2539
2539
  const registerComponent = (componentDefinition) => {
2540
2540
  const tag = prefixed(componentDefinition.name);
2541
2541
  let type = componentDefinition.type;
2542
+ type.componentName = componentDefinition.name;
2542
2543
  if (registeredTags.has(tag)) {
2543
2544
  return;
2544
2545
  } else if (tagByType.has(type) && tagByType.get(type) !== tag) {
@@ -2731,7 +2732,16 @@ const ReplacedPropHandling = (Base) => {
2731
2732
 
2732
2733
  class VividElement extends AriaMixin(ReplacedPropHandling(FASTElement)) {
2733
2734
  static {
2734
- this.VIVID_VERSION = "4.25.0";
2735
+ this.VIVID_VERSION = "4.27.0";
2736
+ }
2737
+ /**
2738
+ * Add data-vvd-component attribute with component name globally,
2739
+ * for referring to the elements in CSS, testing or debugging
2740
+ */
2741
+ connectedCallback() {
2742
+ super.connectedCallback();
2743
+ const name = this.constructor.componentName;
2744
+ this.setAttribute("data-vvd-component", name);
2735
2745
  }
2736
2746
  }
2737
2747
 
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
3
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
4
4
  */
5
5
  .vvd-root {
6
- color-scheme: var(--vvd-color-scheme);
7
6
  background-color: var(--vvd-color-canvas);
8
7
  color: var(--vvd-color-canvas-text);
8
+ color-scheme: var(--vvd-color-scheme);
9
9
  }
10
10
 
11
11
  .vvd-scrollbar {
@@ -74,16 +74,16 @@
74
74
  .vvd-root:root > body {
75
75
  font: var(--vvd-typography-base);
76
76
  font-feature-settings: "kern"; /* turns on kerning */
77
- text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
78
77
  -webkit-font-smoothing: antialiased; /* apply font anti-aliasing for Webkit on OSX */
79
78
  -moz-osx-font-smoothing: grayscale; /* apply font anti-aliasing for Firefox on OSX */
79
+ text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
80
80
  }
81
81
  .vvd-root:not(:root) {
82
82
  font: var(--vvd-typography-base);
83
83
  font-feature-settings: "kern"; /* turns on kerning */
84
- text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
85
84
  -webkit-font-smoothing: antialiased; /* apply font anti-aliasing for Webkit on OSX */
86
85
  -moz-osx-font-smoothing: grayscale; /* apply font anti-aliasing for Firefox on OSX */
86
+ text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
87
87
  }
88
88
  .vvd-root p,
89
89
  .vvd-root .font-base {
@@ -185,10 +185,10 @@
185
185
  }
186
186
  .vvd-root sub,
187
187
  .vvd-root sup {
188
+ position: relative;
188
189
  font: var(--vvd-typography-base-condensed);
189
190
  font-size: 75%;
190
191
  line-height: 0;
191
- position: relative;
192
192
  vertical-align: baseline;
193
193
  }
194
194
  .vvd-root sub {
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
3
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
4
4
  */
5
5
  .vvd-root {
6
- color-scheme: var(--vvd-color-scheme);
7
6
  background-color: var(--vvd-color-canvas);
8
7
  color: var(--vvd-color-canvas-text);
8
+ color-scheme: var(--vvd-color-scheme);
9
9
  }
10
10
 
11
11
  .vvd-scrollbar {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
3
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
4
4
  */
5
5
  .vvd-root:root {
6
6
  --vvd-size-font-scale-base: 1rem;
@@ -9,16 +9,16 @@
9
9
  .vvd-root:root > body {
10
10
  font: var(--vvd-typography-base);
11
11
  font-feature-settings: "kern"; /* turns on kerning */
12
- text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
13
12
  -webkit-font-smoothing: antialiased; /* apply font anti-aliasing for Webkit on OSX */
14
13
  -moz-osx-font-smoothing: grayscale; /* apply font anti-aliasing for Firefox on OSX */
14
+ text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
15
15
  }
16
16
  .vvd-root:not(:root) {
17
17
  font: var(--vvd-typography-base);
18
18
  font-feature-settings: "kern"; /* turns on kerning */
19
- text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
20
19
  -webkit-font-smoothing: antialiased; /* apply font anti-aliasing for Webkit on OSX */
21
20
  -moz-osx-font-smoothing: grayscale; /* apply font anti-aliasing for Firefox on OSX */
21
+ text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
22
22
  }
23
23
  .vvd-root p,
24
24
  .vvd-root .font-base {
@@ -120,10 +120,10 @@
120
120
  }
121
121
  .vvd-root sub,
122
122
  .vvd-root sup {
123
+ position: relative;
123
124
  font: var(--vvd-typography-base-condensed);
124
125
  font-size: 75%;
125
126
  line-height: 0;
126
- position: relative;
127
127
  vertical-align: baseline;
128
128
  }
129
129
  .vvd-root sub {
@@ -1,55 +1,55 @@
1
1
  @font-face {
2
+ font-display: block;
2
3
  font-family: SpeziaCompleteVariableUpright;
3
4
  font-stretch: 50% 200%;
4
5
  font-weight: 1 1000;
5
- font-display: block;
6
6
  src: url("https://fonts.resources.vonage.com/fonts/v2/SpeziaCompleteVariableUprightWeb.woff2") format("woff2");
7
7
  }
8
8
  @font-face {
9
+ font-display: block;
9
10
  font-family: SpeziaMonoCompleteVariable;
10
11
  font-stretch: 50% 200%;
11
12
  font-weight: 1 1000;
12
- font-display: block;
13
13
  src: url("https://fonts.resources.vonage.com/fonts/v2/SpeziaMonoCompleteVariableWeb.woff2") format("woff2");
14
14
  }
15
15
  .vvd-root {
16
16
  --vvd-typography-headline: 500 condensed
17
17
  calc(var(--vvd-size-font-scale-base, 16px) * 4.125) / 1.3333333333333333
18
- SpeziaCompleteVariableUpright;
18
+ speziacompletevariableupright;
19
19
  --vvd-typography-subtitle: 500 condensed
20
20
  calc(var(--vvd-size-font-scale-base, 16px) * 3.25) / 1.3076923076923077
21
- SpeziaCompleteVariableUpright;
21
+ speziacompletevariableupright;
22
22
  --vvd-typography-heading-1: 500 condensed
23
23
  calc(var(--vvd-size-font-scale-base, 16px) * 2.5) / 1.3
24
- SpeziaCompleteVariableUpright;
24
+ speziacompletevariableupright;
25
25
  --vvd-typography-heading-2: 500 condensed
26
26
  calc(var(--vvd-size-font-scale-base, 16px) * 2) / 1.375
27
- SpeziaCompleteVariableUpright;
27
+ speziacompletevariableupright;
28
28
  --vvd-typography-heading-3: 500 condensed
29
29
  calc(var(--vvd-size-font-scale-base, 16px) * 1.625) / 1.3846153846153846
30
- SpeziaCompleteVariableUpright;
30
+ speziacompletevariableupright;
31
31
  --vvd-typography-heading-4: 500 condensed
32
32
  calc(var(--vvd-size-font-scale-base, 16px) * 1.25) / 1.4
33
- SpeziaCompleteVariableUpright;
33
+ speziacompletevariableupright;
34
34
  --vvd-typography-base: 400 ultra-condensed
35
35
  calc(var(--vvd-size-font-scale-base, 16px) * 0.875) / 1.4285714285714286
36
- SpeziaCompleteVariableUpright;
36
+ speziacompletevariableupright;
37
37
  --vvd-typography-base-bold: 600 ultra-condensed
38
38
  calc(var(--vvd-size-font-scale-base, 16px) * 0.875) / 1.4285714285714286
39
- SpeziaCompleteVariableUpright;
39
+ speziacompletevariableupright;
40
40
  --vvd-typography-base-code: 400 ultra-condensed
41
41
  calc(var(--vvd-size-font-scale-base, 16px) * 0.875) / 1.4285714285714286
42
- SpeziaMonoCompleteVariable;
42
+ speziamonocompletevariable;
43
43
  --vvd-typography-base-condensed: 400 ultra-condensed
44
44
  calc(var(--vvd-size-font-scale-base, 16px) * 0.75) / 1.3333333333333333
45
- SpeziaCompleteVariableUpright;
45
+ speziacompletevariableupright;
46
46
  --vvd-typography-base-condensed-bold: 600 ultra-condensed
47
47
  calc(var(--vvd-size-font-scale-base, 16px) * 0.75) / 1.3333333333333333
48
- SpeziaCompleteVariableUpright;
48
+ speziacompletevariableupright;
49
49
  --vvd-typography-base-extended: 400 ultra-condensed
50
50
  calc(var(--vvd-size-font-scale-base, 16px)) / 1.5
51
- SpeziaCompleteVariableUpright;
51
+ speziacompletevariableupright;
52
52
  --vvd-typography-base-extended-bold: 600 ultra-condensed
53
53
  calc(var(--vvd-size-font-scale-base, 16px)) / 1.5
54
- SpeziaCompleteVariableUpright;
54
+ speziacompletevariableupright;
55
55
  }
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
3
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
7
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
11
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
15
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
16
16
  */
17
17
  @property --vvd-size-density {
18
18
  syntax: "<integer>";
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
3
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
7
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
11
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
15
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
16
16
  */
17
17
  @property --vvd-size-density {
18
18
  syntax: "<integer>";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 14:00:28 GMT
3
+ * Generated on Thu, 26 Jun 2025 11:10:08 GMT
4
4
  */
5
5
  .vvd-root, ::part(vvd-root),
6
6
  .vvd-theme-alternate, ::part(vvd-theme-alternate) {