@vonage/vivid 3.0.0-next.18 → 3.0.0-next.20

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.
@@ -4,7 +4,7 @@ import { B as BaseProgress } from '../shared/base-progress.js';
4
4
  import { w as when } from '../shared/when.js';
5
5
  import { c as classNames } from '../shared/class-names.js';
6
6
 
7
- var css_248z = ".base {\n align-items: center;\n block-size: var(--_density);\n inline-size: var(--_density);\n outline: none;\n}\n.base.connotation-cta {\n --connotation: var(--vvd-color-cta);\n --on-connotation: var(--vvd-color-on-cta);\n}\n.base.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n}\n.base.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n}\n.base:not(.connotation-cta, .connotation-alert, .connotation-success) {\n --connotation: var(--vvd-color-primary);\n --on-connotation: var(--vvd-color-on-primary);\n}\n.base.density-4 {\n --_density: calc(4 * 4px);\n}\n.base.density-5 {\n --_density: calc(5 * 4px);\n}\n.base.density-6 {\n --_density: calc(6 * 4px);\n}\n.base.density-7 {\n --_density: calc(7 * 4px);\n}\n.base.density-8 {\n --_density: calc(8 * 4px);\n}\n.base.density-10 {\n --_density: calc(10 * 4px);\n}\n.base.density-11 {\n --_density: calc(11 * 4px);\n}\n.base.density-12 {\n --_density: calc(12 * 4px);\n}\n.base:not(.density-4, .density-5, .density-6, .density-7, .density-8, .density-10, .density-11, .density-12) {\n --_density: calc(9 * 4px);\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 2px;\n}\n\n.determinate {\n fill: none;\n stroke: var(--connotation);\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.indeterminate-indicator-1 {\n animation: spin-infinite 2s linear infinite;\n fill: none;\n stroke: var(--connotation);\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.base.paused .indeterminate-indicator-1 {\n animation-play-state: paused;\n stroke: var(--vvd-color-neutral);\n}\n\n.base.paused .determinate {\n stroke: var(--vvd-color-neutral);\n}\n\n@keyframes spin-infinite {\n 0% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dasharray: 21.99px 21.99px;\n transform: rotate(450deg);\n }\n 100% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(1080deg);\n }\n}";
7
+ var css_248z = ".base {\n align-items: center;\n block-size: var(--_density);\n color: var(--_appearance-color-text);\n inline-size: var(--_density);\n outline: none;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.base:not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base.density-4 {\n --_density: calc(4 * 4px);\n}\n.base.density-5 {\n --_density: calc(5 * 4px);\n}\n.base.density-6 {\n --_density: calc(6 * 4px);\n}\n.base.density-7 {\n --_density: calc(7 * 4px);\n}\n.base.density-8 {\n --_density: calc(8 * 4px);\n}\n.base.density-10 {\n --_density: calc(10 * 4px);\n}\n.base.density-11 {\n --_density: calc(11 * 4px);\n}\n.base.density-12 {\n --_density: calc(12 * 4px);\n}\n.base:not(.density-4, .density-5, .density-6, .density-7, .density-8, .density-10, .density-11, .density-12) {\n --_density: calc(9 * 4px);\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 2px;\n}\n\n.determinate {\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.indeterminate-indicator-1 {\n animation: spin-infinite 2s linear infinite;\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.base.paused .indeterminate-indicator-1 {\n animation-play-state: paused;\n}\n\n@keyframes spin-infinite {\n 0% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dasharray: 21.99px 21.99px;\n transform: rotate(450deg);\n }\n 100% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(1080deg);\n }\n}";
8
8
  styleInject(css_248z);
9
9
 
10
10
  class ProgressRing extends BaseProgress {}
@@ -20,8 +20,9 @@ let _2 = t => t,
20
20
 
21
21
  const getClasses = ({
22
22
  connotation,
23
- density
24
- }) => classNames('base', [`connotation-${connotation}`, !!connotation], [`density-${(density ? Number(density) : 0) + 9}`, !!density]);
23
+ density,
24
+ paused
25
+ }) => classNames('base', ['disabled', !!paused], [`connotation-${connotation}`, !!connotation], [`density-${(density ? Number(density) : 0) + 9}`, !!density]);
25
26
 
26
27
  const progressSegments = 44;
27
28
  const ProgressRingTemplate = _ => html(_t || (_t = _2`
package/shared/anchor.js CHANGED
@@ -6,6 +6,12 @@ import { A as ARIAGlobalStatesAndProperties, S as StartEnd } from './aria-global
6
6
  * An Anchor Custom HTML Element.
7
7
  * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
8
8
  *
9
+ * @slot start - Content which can be provided before the anchor content
10
+ * @slot end - Content which can be provided after the anchor content
11
+ * @slot - The default slot for anchor content
12
+ * @csspart control - The anchor element
13
+ * @csspart content - The element wrapping anchor content
14
+ *
9
15
  * @public
10
16
  */
11
17
  class Anchor extends FoundationElement {
@@ -20,7 +26,8 @@ class Anchor extends FoundationElement {
20
26
  var _a;
21
27
  // Check to see if delegatesFocus is supported
22
28
  if (window.ShadowRoot &&
23
- !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") && ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
29
+ !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
30
+ ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
24
31
  this.focus = () => {
25
32
  this.control.focus();
26
33
  };
@@ -4,6 +4,11 @@ import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumber
4
4
  * An Progress HTML Element.
5
5
  * Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
6
6
  *
7
+ * @slot indeterminate - The slot for a custom indeterminate indicator
8
+ * @csspart progress - Represents the progress element
9
+ * @csspart determinate - The determinate indicator
10
+ * @csspart indeterminate - The indeterminate indicator
11
+ *
7
12
  * @public
8
13
  */
9
14
  class BaseProgress extends FoundationElement {
package/shared/button.js CHANGED
@@ -21,6 +21,12 @@ class FormAssociatedButton extends FormAssociated(_Button) {
21
21
  * A Button Custom HTML Element.
22
22
  * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element }.
23
23
  *
24
+ * @slot start - Content which can be provided before the button content
25
+ * @slot end - Content which can be provided after the button content
26
+ * @slot - The default slot for button content
27
+ * @csspart control - The button element
28
+ * @csspart content - The element wrapping button content
29
+ *
24
30
  * @public
25
31
  */
26
32
  class Button extends FormAssociatedButton {
@@ -72,7 +78,8 @@ class Button extends FormAssociatedButton {
72
78
  var _a;
73
79
  // Check to see if delegatesFocus is supported
74
80
  if (window.ShadowRoot &&
75
- !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") && ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
81
+ !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
82
+ ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
76
83
  this.focus = () => {
77
84
  this.control.focus();
78
85
  };
package/shared/enums.js CHANGED
@@ -1,8 +1,7 @@
1
1
  var Connotation;
2
2
 
3
3
  (function (Connotation) {
4
- Connotation["Canvas"] = "canvas";
5
- Connotation["Primary"] = "primary";
4
+ Connotation["Accent"] = "accent";
6
5
  Connotation["CTA"] = "cta";
7
6
  Connotation["Success"] = "success";
8
7
  Connotation["Alert"] = "alert";
@@ -1,4 +1,4 @@
1
- import { d as descriptors, C as functionUncurryThis, x as functionCall, g as fails$1, l as toObject$1, Q as indexedObject, R as objectGetOwnPropertySymbols, S as objectPropertyIsEnumerable, _ as _export } from './object-set-prototype-of.js';
1
+ import { d as descriptors, D as functionUncurryThis, u as functionCall, g as fails$1, k as toObject$1, Q as indexedObject, R as objectGetOwnPropertySymbols, S as objectPropertyIsEnumerable, _ as _export } from './object-set-prototype-of.js';
2
2
  import { o as objectKeys$1 } from './web.dom-collections.iterator.js';
3
3
 
4
4
  var DESCRIPTORS = descriptors;
@@ -11,9 +11,9 @@ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
11
11
  var toObject = toObject$1;
12
12
  var IndexedObject = indexedObject;
13
13
 
14
- // eslint-disable-next-line es/no-object-assign -- safe
14
+ // eslint-disable-next-line es-x/no-object-assign -- safe
15
15
  var $assign = Object.assign;
16
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
16
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
17
17
  var defineProperty = Object.defineProperty;
18
18
  var concat = uncurryThis([].concat);
19
19
 
@@ -33,7 +33,7 @@ var objectAssign = !$assign || fails(function () {
33
33
  // should work with symbols and should have deterministic property order (V8 bug)
34
34
  var A = {};
35
35
  var B = {};
36
- // eslint-disable-next-line es/no-symbol -- safe
36
+ // eslint-disable-next-line es-x/no-symbol -- safe
37
37
  var symbol = Symbol();
38
38
  var alphabet = 'abcdefghijklmnopqrst';
39
39
  A[symbol] = 7;
@@ -63,7 +63,7 @@ var assign = objectAssign;
63
63
 
64
64
  // `Object.assign` method
65
65
  // https://tc39.es/ecma262/#sec-object.assign
66
- // eslint-disable-next-line es/no-object-assign -- required for testing
67
- $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
66
+ // eslint-disable-next-line es-x/no-object-assign -- required for testing
67
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
68
68
  assign: assign
69
69
  });