@vonage/vivid 4.7.0 → 4.9.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/custom-elements.json +75 -1
- package/lib/breadcrumb/breadcrumb.d.ts +4 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -3
- package/package.json +1 -1
- package/shared/breadcrumb-item.cjs +162 -20
- package/shared/breadcrumb-item.js +163 -21
- package/shared/definition10.cjs +52 -68
- package/shared/definition10.js +54 -70
- package/shared/definition11.cjs +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition17.cjs +1 -1
- package/shared/definition17.js +1 -1
- package/shared/definition20.cjs +73 -54
- package/shared/definition20.js +73 -54
- package/shared/definition21.cjs +27 -12
- package/shared/definition21.js +27 -12
- package/shared/definition36.cjs +1 -1
- package/shared/definition36.js +1 -1
- package/shared/definition44.cjs +7 -0
- package/shared/definition44.js +7 -0
- package/shared/definition46.cjs +24 -9
- package/shared/definition46.js +24 -9
- package/shared/definition48.cjs +1 -1
- package/shared/definition48.js +1 -1
- package/shared/definition6.cjs +1 -1
- package/shared/definition6.js +1 -1
- package/shared/definition9.cjs +1 -19
- package/shared/definition9.js +2 -20
- package/shared/patterns/anchor.d.ts +18 -0
- package/shared/patterns/anchored.d.ts +4 -4
- package/shared/patterns/aria-global.d.ts +21 -0
- package/shared/text-anchor.cjs +84 -2
- package/shared/text-anchor.js +84 -2
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/shared/anchor.cjs +0 -90
- package/shared/anchor.js +0 -87
package/shared/anchor.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
|
|
2
|
-
import { a as applyMixins } from './apply-mixins.js';
|
|
3
|
-
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
4
|
-
import { S as StartEnd } from './start-end.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* An Anchor Custom HTML Element.
|
|
8
|
-
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
|
|
9
|
-
*
|
|
10
|
-
* @slot start - Content which can be provided before the anchor content
|
|
11
|
-
* @slot end - Content which can be provided after the anchor content
|
|
12
|
-
* @slot - The default slot for anchor content
|
|
13
|
-
* @csspart control - The anchor element
|
|
14
|
-
* @csspart content - The element wrapping anchor content
|
|
15
|
-
*
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
class Anchor extends FoundationElement {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
/**
|
|
22
|
-
* Overrides the focus call for where delegatesFocus is unsupported.
|
|
23
|
-
* This check works for Chrome, Edge Chromium, FireFox, and Safari
|
|
24
|
-
* Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
|
|
25
|
-
*/
|
|
26
|
-
this.handleUnsupportedDelegatesFocus = () => {
|
|
27
|
-
var _a;
|
|
28
|
-
// Check to see if delegatesFocus is supported
|
|
29
|
-
if (window.ShadowRoot &&
|
|
30
|
-
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
31
|
-
((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
|
|
32
|
-
this.focus = () => {
|
|
33
|
-
var _a;
|
|
34
|
-
(_a = this.control) === null || _a === void 0 ? void 0 : _a.focus();
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
connectedCallback() {
|
|
43
|
-
super.connectedCallback();
|
|
44
|
-
this.handleUnsupportedDelegatesFocus();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
__decorate([
|
|
48
|
-
attr
|
|
49
|
-
], Anchor.prototype, "download", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
attr
|
|
52
|
-
], Anchor.prototype, "href", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
attr
|
|
55
|
-
], Anchor.prototype, "hreflang", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
attr
|
|
58
|
-
], Anchor.prototype, "ping", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
attr
|
|
61
|
-
], Anchor.prototype, "referrerpolicy", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
attr
|
|
64
|
-
], Anchor.prototype, "rel", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
attr
|
|
67
|
-
], Anchor.prototype, "target", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
attr
|
|
70
|
-
], Anchor.prototype, "type", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
observable
|
|
73
|
-
], Anchor.prototype, "defaultSlottedContent", void 0);
|
|
74
|
-
/**
|
|
75
|
-
* Includes ARIA states and properties relating to the ARIA link role
|
|
76
|
-
*
|
|
77
|
-
* @public
|
|
78
|
-
*/
|
|
79
|
-
class DelegatesARIALink {
|
|
80
|
-
}
|
|
81
|
-
__decorate([
|
|
82
|
-
attr({ attribute: "aria-expanded" })
|
|
83
|
-
], DelegatesARIALink.prototype, "ariaExpanded", void 0);
|
|
84
|
-
applyMixins(DelegatesARIALink, ARIAGlobalStatesAndProperties);
|
|
85
|
-
applyMixins(Anchor, StartEnd, DelegatesARIALink);
|
|
86
|
-
|
|
87
|
-
export { Anchor as A, DelegatesARIALink as D };
|