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

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.
@@ -0,0 +1,51 @@
1
+ import { w as wellKnownSymbol$2, r as classofRaw$1, i as isCallable$1 } from './export.js';
2
+
3
+ var wellKnownSymbol$1 = wellKnownSymbol$2;
4
+
5
+ var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
6
+ var test = {};
7
+
8
+ test[TO_STRING_TAG$1] = 'z';
9
+
10
+ var toStringTagSupport = String(test) === '[object z]';
11
+
12
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
13
+ var isCallable = isCallable$1;
14
+ var classofRaw = classofRaw$1;
15
+ var wellKnownSymbol = wellKnownSymbol$2;
16
+
17
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
18
+ var $Object = Object;
19
+
20
+ // ES3 wrong here
21
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
22
+
23
+ // fallback for IE11 Script Access Denied error
24
+ var tryGet = function (it, key) {
25
+ try {
26
+ return it[key];
27
+ } catch (error) { /* empty */ }
28
+ };
29
+
30
+ // getting tag from ES6+ `Object.prototype.toString`
31
+ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
32
+ var O, tag, result;
33
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
34
+ // @@toStringTag case
35
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
36
+ // builtinTag case
37
+ : CORRECT_ARGUMENTS ? classofRaw(O)
38
+ // ES3 arguments fallback
39
+ : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
40
+ };
41
+
42
+ var classof = classof$1;
43
+
44
+ var $String = String;
45
+
46
+ var toString = function (argument) {
47
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
48
+ return $String(argument);
49
+ };
50
+
51
+ export { classof$1 as c, toString as t };
@@ -1,17 +1,9 @@
1
- import { o as objectKeysInternal, e as enumBugKeys$2, d as descriptors, v as v8PrototypeDefineBug, a as objectDefineProperty, b as anObject$2, t as toIndexedObject$2, h as hiddenKeys$1, s as sharedKey$2, c as html$1, f as documentCreateElement$2, w as wellKnownSymbol$4, g as fails$2, i as hasOwnProperty_1, j as isCallable$3, k as toObject$1, l as defineBuiltIn$2, m as createPropertyDescriptor$1, n as setToStringTag$2, p as iterators, _ as _export, q as objectSetPrototypeOf, r as createNonEnumerableProperty$2, u as functionCall, x as functionName, y as internalState, z as global$1 } from './object-set-prototype-of.js';
1
+ import { d as descriptors, v as v8PrototypeDefineBug, o as objectDefineProperty, a as anObject$2, t as toIndexedObject$2, h as hiddenKeys$1, s as sharedKey$2, e as enumBugKeys$1, b as documentCreateElement$2, w as wellKnownSymbol$4, f as fails$2, c as hasOwnProperty_1, i as isCallable$3, g as toObject$1, j as defineBuiltIn$2, k as createPropertyDescriptor$1, _ as _export, l as createNonEnumerableProperty$2, m as functionCall, n as functionName, p as internalState, q as global$1 } from './export.js';
2
+ import { o as objectKeys$1 } from './object-keys.js';
3
+ import { h as html$1, s as setToStringTag$2, i as iterators, o as objectSetPrototypeOf } from './object-set-prototype-of.js';
2
4
 
3
5
  var objectDefineProperties = {};
4
6
 
5
- var internalObjectKeys = objectKeysInternal;
6
- var enumBugKeys$1 = enumBugKeys$2;
7
-
8
- // `Object.keys` method
9
- // https://tc39.es/ecma262/#sec-object.keys
10
- // eslint-disable-next-line es-x/no-object-keys -- safe
11
- var objectKeys$1 = Object.keys || function keys(O) {
12
- return internalObjectKeys(O, enumBugKeys$1);
13
- };
14
-
15
7
  var DESCRIPTORS$1 = descriptors;
16
8
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
17
9
  var definePropertyModule = objectDefineProperty;
@@ -37,7 +29,7 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
37
29
 
38
30
  var anObject = anObject$2;
39
31
  var definePropertiesModule = objectDefineProperties;
40
- var enumBugKeys = enumBugKeys$2;
32
+ var enumBugKeys = enumBugKeys$1;
41
33
  var hiddenKeys = hiddenKeys$1;
42
34
  var html = html$1;
43
35
  var documentCreateElement$1 = documentCreateElement$2;
@@ -471,4 +463,4 @@ for (var COLLECTION_NAME in DOMIterables) {
471
463
 
472
464
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
473
465
 
474
- export { objectCreate as a, objectKeys$1 as o };
466
+ export { objectCreate as o };
@@ -4,6 +4,8 @@ import { s as styleInject } from '../shared/style-inject.es.js';
4
4
  import { w as when } from '../shared/when.js';
5
5
  import { s as slotted } from '../shared/slotted.js';
6
6
  import { c as classNames } from '../shared/class-names.js';
7
+ import '../shared/export.js';
8
+ import '../shared/object-keys.js';
7
9
  import '../shared/object-set-prototype-of.js';
8
10
 
9
11
  class SideDrawer extends FoundationElement {
@@ -6,11 +6,14 @@ import { T as TextAnchor } from '../shared/text-anchor.js';
6
6
  import { a as applyMixins } from '../shared/apply-mixins.js';
7
7
  import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
8
8
  import '../shared/icon.js';
9
+ import '../shared/export.js';
9
10
  import '../shared/object-set-prototype-of.js';
11
+ import '../shared/to-string.js';
10
12
  import '../shared/_has.js';
11
13
  import '../shared/when.js';
12
14
  import '../shared/class-names.js';
13
15
  import '../shared/web.dom-collections.iterator.js';
16
+ import '../shared/object-keys.js';
14
17
  import '../shared/anchor.js';
15
18
  import '../shared/aria-global.js';
16
19
 
package/text/index.js CHANGED
@@ -2,6 +2,8 @@ import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h
2
2
  import { s as styleInject } from '../shared/style-inject.es.js';
3
3
  import '../shared/web.dom-collections.iterator.js';
4
4
  import { c as classNames } from '../shared/class-names.js';
5
+ import '../shared/export.js';
6
+ import '../shared/object-keys.js';
5
7
  import '../shared/object-set-prototype-of.js';
6
8
 
7
9
  var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control:not(.tight):not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2), .control.font-face-body-1:not(.tight), .control.font-face-body-1-bold:not(.tight), .control.font-face-body-1-code:not(.tight), .control.font-face-body-1-link:not(.tight), .control.font-face-body-2:not(.tight), .control.font-face-body-2-bold:not(.tight), .control.font-face-body-2-code:not(.tight), .control.font-face-body-2-link:not(.tight), .control.font-face-subtitle-1:not(.tight), .control.font-face-subtitle-2:not(.tight), .control.font-face-title-1:not(.tight), .control.font-face-title-2:not(.tight), .control.font-face-headline-1:not(.tight), .control.font-face-headline-2:not(.tight) {\n display: block;\n margin: var(--font-face-margin, 0);\n}\n\n.control {\n color: var(--_connotation-color-primary);\n}\n.control.font-face-body-1 {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-bold {\n font: 600 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-code {\n font: 400 ultra-condensed 16px / 24px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-link {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-body-2 {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-bold {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-code {\n font: 400 ultra-condensed 14px / 20px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-link {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-button {\n font: 600 ultra-condensed 14px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-button-dense {\n font: 600 ultra-condensed 12px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-button-enlarge {\n font: 600 ultra-condensed 16px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-bold {\n font: 600 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-code {\n font: 400 ultra-condensed 12px / 16px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-link {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-headline-1 {\n font: 500 condensed 66px / 88px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-headline-2 {\n font: 500 condensed 52px / 68px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-subtitle-1 {\n font: 500 condensed 26px / 36px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-subtitle-2 {\n font: 500 condensed 20px / 28px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-title-1 {\n font: 500 condensed 40px / 52px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-title-2 {\n font: 500 condensed 32px / 44px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control:not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2) {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement);\n}\n.control.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n}\n.control.font-face-headline-1, .control.font-face-headline-2 {\n --font-face-margin: 2.5rem 0;\n}\n.control.font-face-title-1, .control.font-face-title-2 {\n --font-face-margin: 2rem 0;\n}\n.control.font-face-subtitle-1, .control.font-face-subtitle-2 {\n --font-face-margin: 1.5rem 0;\n}\n.control:not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2), .control.font-face-body-1, .control.font-face-body-1-bold, .control.font-face-body-1-code, .control.font-face-body-1-link, .control.font-face-body-2, .control.font-face-body-2-bold, .control.font-face-body-2-code, .control.font-face-body-2-link {\n --font-face-margin: 1rem 0;\n}\n\n::slotted(:where(h1, h2, h3, h4, h5, h6, p)) {\n margin: initial;\n}\n\n::slotted(*) {\n color: inherit;\n font: inherit;\n}";
@@ -3,8 +3,11 @@ import { T as TextAnchor } from '../shared/text-anchor.js';
3
3
  import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
4
4
  import '../shared/affix.js';
5
5
  import '../shared/web.dom-collections.iterator.js';
6
+ import '../shared/export.js';
7
+ import '../shared/object-keys.js';
6
8
  import '../shared/object-set-prototype-of.js';
7
9
  import '../shared/icon.js';
10
+ import '../shared/to-string.js';
8
11
  import '../shared/_has.js';
9
12
  import '../shared/anchor.js';
10
13
  import '../shared/apply-mixins.js';
@@ -11,8 +11,11 @@ import { s as styleInject } from '../shared/style-inject.es.js';
11
11
  import { w as when } from '../shared/when.js';
12
12
  import { c as classNames } from '../shared/class-names.js';
13
13
  import '../shared/icon.js';
14
+ import '../shared/export.js';
14
15
  import '../shared/object-set-prototype-of.js';
16
+ import '../shared/to-string.js';
15
17
  import '../shared/_has.js';
18
+ import '../shared/object-keys.js';
16
19
 
17
20
  class _TextField extends FoundationElement {
18
21
  }
@@ -268,6 +271,8 @@ __decorate([attr, __metadata("design:type", String)], TextField.prototype, "shap
268
271
 
269
272
  __decorate([observable, __metadata("design:type", Object)], TextField.prototype, "userValid", void 0);
270
273
 
274
+ __decorate([attr, __metadata("design:type", String)], TextField.prototype, "autoComplete", void 0);
275
+
271
276
  __decorate([volatile, __metadata("design:type", Object), __metadata("design:paramtypes", [])], TextField.prototype, "errorValidationMessage", null);
272
277
 
273
278
  applyMixins(TextField, AffixIcon);
@@ -340,7 +345,9 @@ const TextfieldTemplate = context => {
340
345
  placeholder="${0}"
341
346
  ?readonly="${0}"
342
347
  ?required="${0}"
343
- size="${0}"
348
+ size="${0}"
349
+ autocomplete="${0}"
350
+ name="${0}"
344
351
  ?spellcheck="${0}"
345
352
  :value="${0}"
346
353
  type="${0}"
@@ -369,7 +376,7 @@ const TextfieldTemplate = context => {
369
376
  </div>
370
377
  ${0}
371
378
  ${0}
372
- </div>`), getStateClasses, when(x => x.charCount && x.maxlength, renderCharCount()), when(x => x.label, renderLabel()), x => affixIconTemplate(x.icon), x => x.handleTextInput(), x => x.handleChange(), x => x.autofocus, x => x.disabled, x => x.list, x => x.maxlength, x => x.minlength, x => x.pattern, x => x.placeholder, x => x.readOnly, x => x.required, x => x.size, x => x.spellcheck, x => x.value, x => x.type, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, when(x => {
379
+ </div>`), getStateClasses, when(x => x.charCount && x.maxlength, renderCharCount()), when(x => x.label, renderLabel()), x => affixIconTemplate(x.icon), x => x.handleTextInput(), x => x.handleChange(), x => x.autofocus, x => x.disabled, x => x.list, x => x.maxlength, x => x.minlength, x => x.pattern, x => x.placeholder, x => x.readOnly, x => x.required, x => x.size, x => x.autoComplete, x => x.name, x => x.spellcheck, x => x.value, x => x.type, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, when(x => {
373
380
  var _a;
374
381
 
375
382
  return !x.errorValidationMessage && ((_a = x.helperText) === null || _a === void 0 ? void 0 : _a.length);
package/tooltip/index.js CHANGED
@@ -7,7 +7,9 @@ import '../elevation/index.js';
7
7
  import '../button/index.js';
8
8
  import '../icon/index.js';
9
9
  import '../shared/icon.js';
10
+ import '../shared/export.js';
10
11
  import '../shared/object-set-prototype-of.js';
12
+ import '../shared/to-string.js';
11
13
  import '../shared/_has.js';
12
14
  import '../shared/when.js';
13
15
  import '../focus/index.js';
@@ -17,6 +19,7 @@ import '../shared/button.js';
17
19
  import '../shared/apply-mixins.js';
18
20
  import '../shared/focus2.js';
19
21
  import '../shared/aria-global.js';
22
+ import '../shared/object-keys.js';
20
23
  import '../shared/es.object.assign.js';
21
24
 
22
25
  var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n pointer-events: none;\n}\n\n.tooltip {\n width: var(--tooltip-inline-size, 240px);\n}\n.tooltip-text {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n padding: 8px 12px;\n color: var(--vvd-color-on-canvas);\n}";