@vonage/vivid 3.55.0 → 3.57.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.
@@ -10,7 +10,7 @@ import { w as when } from './when.js';
10
10
  import { r as ref } from './ref.js';
11
11
  import { c as classNames } from './class-names.js';
12
12
 
13
- const styles = ".base{display:inline-flex;align-items:center;padding:8px;color:var(--vvd-color-canvas-text);user-select:none}.base .slider{min-inline-size:var(--audio-player-min-inline-size, 200px)}.base .controls{display:flex;align-items:center;gap:16px}.base .time-stamp{display:inline-flex}.base .time-stamp .current-time,.base .time-stamp .total-time{margin-inline:6px;min-inline-size:32px}";
13
+ const styles = ":host{display:block;max-inline-size:350px}.wrapper{container-type:inline-size}.base{display:inline-flex;box-sizing:border-box;align-items:center;padding:8px;color:var(--vvd-color-canvas-text);gap:16px;inline-size:100%;user-select:none}.base .slider{flex:1;grid-area:slider;min-inline-size:var(--audio-player-min-inline-size, 200px)}.base .controls{display:flex;align-items:center;justify-content:center;gap:8px;grid-area:controls}.base .time-stamp{display:inline-flex}.base .time-stamp .current-time,.base .time-stamp .total-time{margin-inline:6px;min-inline-size:32px}.base .playback{grid-area:playback}@container (max-width: 500px){.base.two-lines{display:inline-grid;grid-template:auto auto/1fr;grid-template-areas:\"slider\" \"controls\";inline-size:100%;row-gap:4px}.base.two-lines .time-stamp{margin-inline:auto 2px}.base.two-lines.playback{grid-template-areas:\"slider slider\" \"controls playback\";grid-template-columns:1fr auto}.base.two-lines.playback .time-stamp{margin-inline:auto}.base .slider{box-sizing:border-box;min-inline-size:auto;padding-inline:2px}}";
14
14
 
15
15
  var __defProp = Object.defineProperty;
16
16
  var __decorateClass = (decorators, target, key, kind) => {
@@ -235,30 +235,33 @@ function renderTimestamp() {
235
235
  </div>`;
236
236
  }
237
237
  const AudioPlayerTemplate = (context) => {
238
- return html` <div
239
- class="base ${getClasses}"
240
- @keyup="${(x, c) => x._handleSliderEvent(c.event)}"
241
- @keydown="${(x, c) => x._handleSliderEvent(c.event)}"
242
- @mousedown="${(x, c) => x._handleSliderEvent(c.event)}"
243
- >
244
- <div class="controls">
245
- ${when(
238
+ return html` <div class="wrapper">
239
+ <div
240
+ class="base ${getClasses}"
241
+ @keyup="${(x, c) => x._handleSliderEvent(c.event)}"
242
+ @keydown="${(x, c) => x._handleSliderEvent(c.event)}"
243
+ @mousedown="${(x, c) => x._handleSliderEvent(c.event)}"
244
+ >
245
+ <div class="controls">
246
+ ${when(
246
247
  (x) => x.skipBy && x.skipBy != MediaSkipBy.Zero,
247
248
  renderBackwardSkipButtons(context)
248
249
  )}
249
- ${renderButton(context)}
250
- ${when(
250
+ ${renderButton(context)}
251
+ ${when(
251
252
  (x) => x.skipBy && x.skipBy != MediaSkipBy.Zero,
252
253
  renderForwardSkipButtons(context)
253
254
  )}
254
- ${when((x) => !x.notime, renderTimestamp())} ${renderSlider(context)}
255
+ ${when((x) => !x.notime, renderTimestamp())}
256
+ </div>
257
+ ${renderSlider(context)}
258
+ <audio
259
+ ${ref("_playerEl")}
260
+ src="${(x) => x.src}"
261
+ @timeupdate="${(x) => x._updateProgress()}"
262
+ @loadedmetadata="${(x) => x._updateTotalTime()}"
263
+ ></audio>
255
264
  </div>
256
- <audio
257
- ${ref("_playerEl")}
258
- src="${(x) => x.src}"
259
- @timeupdate="${(x) => x._updateProgress()}"
260
- @loadedmetadata="${(x) => x._updateTotalTime()}"
261
- ></audio>
262
265
  </div>`;
263
266
  };
264
267
 
package/shared/icon.cjs CHANGED
@@ -141,7 +141,7 @@ _has._curry2(function memoizeWith(mFn, fn) {
141
141
  });
142
142
 
143
143
  const ICONS_BASE_URL = "https://icon.resources.vonage.com";
144
- const ICONS_VERSION = "4.5.6";
144
+ const ICONS_VERSION = "4.5.8";
145
145
 
146
146
  const numberConverter = {
147
147
  toView(value) {
package/shared/icon.js CHANGED
@@ -139,7 +139,7 @@ _curry2(function memoizeWith(mFn, fn) {
139
139
  });
140
140
 
141
141
  const ICONS_BASE_URL = "https://icon.resources.vonage.com";
142
- const ICONS_VERSION = "4.5.6";
142
+ const ICONS_VERSION = "4.5.8";
143
143
 
144
144
  const numberConverter = {
145
145
  toView(value) {
@@ -11,6 +11,10 @@ import type { TimePickerLocale } from '../../lib/time-picker/locale';
11
11
  import type { RangeSliderLocale } from '../../lib/range-slider/locale';
12
12
  import type { DialPadLocale } from '../../lib/dial-pad/locale';
13
13
  export interface Locale {
14
+ lang: string;
15
+ common: {
16
+ useCommaAsDecimalSeparator: boolean;
17
+ };
14
18
  datePicker: DatePickerLocale;
15
19
  timePicker: TimePickerLocale;
16
20
  filePicker: FilePickerLocale;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 10 May 2024 13:06:12 GMT
3
+ * Generated on Wed, 22 May 2024 12:12:29 GMT
4
4
  */
5
5
  .vvd-root {
6
6
  color-scheme: var(--vvd-color-scheme);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 10 May 2024 13:06:12 GMT
3
+ * Generated on Wed, 22 May 2024 12:12:29 GMT
4
4
  */
5
5
  .vvd-root {
6
6
  color-scheme: var(--vvd-color-scheme);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 10 May 2024 13:06:12 GMT
3
+ * Generated on Wed, 22 May 2024 12:12:29 GMT
4
4
  */
5
5
  .vvd-root:root {
6
6
  --vvd-size-font-scale-base: 1rem;
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 10 May 2024 13:06:13 GMT
3
+ * Generated on Wed, 22 May 2024 12:12:30 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Fri, 10 May 2024 13:06:12 GMT
7
+ * Generated on Wed, 22 May 2024 12:12:29 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Fri, 10 May 2024 13:06:13 GMT
11
+ * Generated on Wed, 22 May 2024 12:12:30 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Fri, 10 May 2024 13:06:13 GMT
15
+ * Generated on Wed, 22 May 2024 12:12:30 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 Fri, 10 May 2024 13:06:12 GMT
3
+ * Generated on Wed, 22 May 2024 12:12:29 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Fri, 10 May 2024 13:06:13 GMT
7
+ * Generated on Wed, 22 May 2024 12:12:30 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Fri, 10 May 2024 13:06:13 GMT
11
+ * Generated on Wed, 22 May 2024 12:12:30 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Fri, 10 May 2024 13:06:13 GMT
15
+ * Generated on Wed, 22 May 2024 12:12:30 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 Fri, 10 May 2024 13:06:12 GMT
3
+ * Generated on Wed, 22 May 2024 12:12:29 GMT
4
4
  */
5
5
  .vvd-root, ::part(vvd-root),
6
6
  .vvd-theme-alternate, ::part(vvd-theme-alternate) {
package/vivid.api.json CHANGED
@@ -1501,6 +1501,15 @@
1501
1501
  "text": "Appearance.Ghost",
1502
1502
  "canonicalReference": "@vonage/vivid!Appearance.Ghost:member"
1503
1503
  },
1504
+ {
1505
+ "kind": "Content",
1506
+ "text": " | "
1507
+ },
1508
+ {
1509
+ "kind": "Reference",
1510
+ "text": "Appearance.GhostLight",
1511
+ "canonicalReference": "@vonage/vivid!Appearance.GhostLight:member"
1512
+ },
1504
1513
  {
1505
1514
  "kind": "Content",
1506
1515
  "text": ">"
@@ -1515,7 +1524,7 @@
1515
1524
  "name": "ButtonAppearance",
1516
1525
  "typeTokenRange": {
1517
1526
  "startIndex": 1,
1518
- "endIndex": 11
1527
+ "endIndex": 13
1519
1528
  }
1520
1529
  },
1521
1530
  {
@@ -2969,6 +2978,15 @@
2969
2978
  "text": "Connotation.Accent",
2970
2979
  "canonicalReference": "@vonage/vivid!Connotation.Accent:member"
2971
2980
  },
2981
+ {
2982
+ "kind": "Content",
2983
+ "text": " | "
2984
+ },
2985
+ {
2986
+ "kind": "Reference",
2987
+ "text": "Connotation.Announcement",
2988
+ "canonicalReference": "@vonage/vivid!Connotation.Announcement:member"
2989
+ },
2972
2990
  {
2973
2991
  "kind": "Content",
2974
2992
  "text": ">"
@@ -2983,7 +3001,7 @@
2983
3001
  "name": "FabConnotation",
2984
3002
  "typeTokenRange": {
2985
3003
  "startIndex": 1,
2986
- "endIndex": 9
3004
+ "endIndex": 11
2987
3005
  }
2988
3006
  },
2989
3007
  {