@vonage/vivid 3.0.0-test.0 → 3.0.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.
- package/accordion-item/index.js +3 -8
- package/badge/index.js +5 -12
- package/banner/index.js +3 -1
- package/breadcrumb-item/index.js +5 -7
- package/button/index.js +5 -12
- package/calendar/index.js +1 -0
- package/card/index.js +136 -0
- package/icon/index.js +6 -2
- package/index.js +2 -1
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/badge/badge.d.ts +2 -2
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/card/card.d.ts +10 -0
- package/lib/card/card.template.d.ts +4 -0
- package/lib/card/index.d.ts +5 -0
- package/lib/enums.d.ts +1 -0
- package/lib/icon/icon.d.ts +1 -1
- package/lib/text-anchor/text-anchor.d.ts +1 -1
- package/lib/tooltip/tooltip.d.ts +1 -1
- package/package.json +1 -2
- package/popup/index.js +2 -1
- package/progress/index.js +2 -1
- package/shared/es.object.assign.js +2 -1
- package/shared/icon.js +5 -10
- package/shared/object-set-prototype-of.js +1009 -0
- package/shared/text-anchor.js +2 -11
- package/shared/web.dom-collections.iterator.js +51 -1057
- package/side-drawer/index.js +1 -0
- package/sidenav-item/index.js +2 -1
- package/text/index.js +1 -0
- package/text-anchor/index.js +2 -1
- package/tooltip/index.js +2 -4
package/shared/icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as global$e, r as redefine$3, w as wellKnownSymbol$8, A as getBuiltIn$4, a as objectDefineProperty, d as descriptors, B as objectIsPrototypeOf, C as functionUncurryThis, D as functionBindNative, E as aCallable$4, p as iterators, F as classofRaw$1, k as isCallable$5, G as getMethod$2, x as functionCall, b as anObject$5, H as tryToString$3, I as lengthOfArrayLike$1, g as fails$4, J as inspectSource$2, K as engineUserAgent, c as html$1, f as documentCreateElement, j as hasOwnProperty_1, L as objectGetOwnPropertyDescriptor, M as isObject$2, _ as _export, q as objectSetPrototypeOf, n as setToStringTag$1, N as isForced_1, O as engineV8Version, z as internalState, P as requireObjectCoercible$1, y as functionName } from './object-set-prototype-of.js';
|
|
2
2
|
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable } from './index.js';
|
|
3
3
|
import { _ as _curry1, a as _curry2, b as _has } from './_has.js';
|
|
4
4
|
|
|
@@ -1356,25 +1356,20 @@ const loadSvg = iconId => fetch(baseUrlTemplate([iconId, 'svg'].join('.'), ICON_
|
|
|
1356
1356
|
|
|
1357
1357
|
const resolveIcon = memoizeWith$1(identity$1, (iconId = '') => iconId.trim() ? loadSvg(iconId) : Promise.resolve(''));
|
|
1358
1358
|
class Icon extends FoundationElement {
|
|
1359
|
-
constructor() {
|
|
1360
|
-
super(...arguments);
|
|
1361
|
-
this.svg = '';
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
1359
|
async typeChanged() {
|
|
1365
|
-
this.svg =
|
|
1360
|
+
this.svg = undefined;
|
|
1366
1361
|
let timeout = setTimeout(() => {
|
|
1367
1362
|
this.svg = PLACEHOLDER_ICON;
|
|
1368
1363
|
timeout = setTimeout(() => {
|
|
1369
1364
|
if (this.svg === PLACEHOLDER_ICON) {
|
|
1370
|
-
this.svg =
|
|
1365
|
+
this.svg = undefined;
|
|
1371
1366
|
}
|
|
1372
1367
|
}, PLACEHOLDER_TIMEOUT);
|
|
1373
1368
|
}, PLACEHOLDER_DELAY);
|
|
1374
1369
|
await resolveIcon(this.type).then(svg => {
|
|
1375
1370
|
this.svg = svg;
|
|
1376
1371
|
}).catch(() => {
|
|
1377
|
-
this.svg =
|
|
1372
|
+
this.svg = undefined;
|
|
1378
1373
|
}).finally(() => {
|
|
1379
1374
|
clearTimeout(timeout);
|
|
1380
1375
|
});
|
|
@@ -1386,7 +1381,7 @@ __decorate([attr, __metadata("design:type", String)], Icon.prototype, "connotati
|
|
|
1386
1381
|
|
|
1387
1382
|
__decorate([attr, __metadata("design:type", String)], Icon.prototype, "size", void 0);
|
|
1388
1383
|
|
|
1389
|
-
__decorate([observable, __metadata("design:type",
|
|
1384
|
+
__decorate([observable, __metadata("design:type", String)], Icon.prototype, "svg", void 0);
|
|
1390
1385
|
|
|
1391
1386
|
__decorate([attr, __metadata("design:type", String)], Icon.prototype, "type", void 0);
|
|
1392
1387
|
|