@vonage/vivid 3.0.0-next.12 → 3.0.0-next.120
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/README.md +170 -4
- package/accordion/index.js +4 -60
- package/accordion-item/index.js +14 -118
- package/action-group/index.js +5 -0
- package/avatar/index.js +11 -0
- package/badge/index.js +9 -53
- package/banner/index.js +20 -210
- package/breadcrumb/index.js +7 -96
- package/breadcrumb-item/index.js +15 -46
- package/button/index.js +19 -751
- package/calendar/index.js +5 -1520
- package/calendar-event/index.js +9 -0
- package/card/index.js +13 -0
- package/checkbox/index.js +16 -0
- package/custom-elements.json +5784 -0
- package/dialog/index.js +24 -0
- package/divider/index.js +6 -0
- package/elevation/index.js +4 -30
- package/fab/index.js +22 -0
- package/focus/index.js +4 -2
- package/header/index.js +58 -0
- package/icon/index.js +8 -36
- package/index.js +65 -26
- package/layout/index.js +4 -52
- package/lib/accordion/definition.d.ts +3 -0
- package/lib/accordion/index.d.ts +1 -2
- package/lib/accordion-item/definition.d.ts +3 -0
- package/lib/accordion-item/index.d.ts +1 -3
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
- package/lib/action-group/definition.d.ts +3 -0
- package/lib/action-group/index.d.ts +1 -0
- package/lib/avatar/avatar.d.ts +15 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/definition.d.ts +3 -0
- package/lib/avatar/index.d.ts +1 -0
- package/lib/badge/badge.d.ts +2 -4
- package/lib/badge/definition.d.ts +3 -0
- package/lib/badge/index.d.ts +1 -3
- package/lib/banner/banner.d.ts +1 -1
- package/lib/banner/banner.template.d.ts +0 -2
- package/lib/banner/definition.d.ts +3 -0
- package/lib/banner/index.d.ts +1 -2
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb/definition.d.ts +3 -0
- package/lib/breadcrumb/index.d.ts +1 -2
- package/lib/breadcrumb-item/definition.d.ts +3 -0
- package/lib/breadcrumb-item/index.d.ts +1 -3
- package/lib/button/button.d.ts +3 -2
- package/lib/button/definition.d.ts +3 -0
- package/lib/button/index.d.ts +1 -21
- package/lib/calendar/calendar.d.ts +3 -1
- package/lib/calendar/definition.d.ts +3 -0
- package/lib/calendar/index.d.ts +1 -3
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/definition.d.ts +3 -0
- package/lib/calendar-event/index.d.ts +1 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/{text/text.template.d.ts → card/card.template.d.ts} +2 -2
- package/lib/card/definition.d.ts +3 -0
- package/lib/card/index.d.ts +1 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/definition.d.ts +3 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/components.d.ts +38 -16
- package/lib/dialog/definition.d.ts +3 -0
- package/lib/dialog/dialog.d.ts +23 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/divider/definition.d.ts +3 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +1 -0
- package/lib/elevation/definition.d.ts +3 -0
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/elevation/index.d.ts +1 -2
- package/lib/enums.d.ts +19 -6
- package/lib/fab/definition.d.ts +3 -0
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +1 -0
- package/lib/focus/definition.d.ts +3 -0
- package/lib/focus/index.d.ts +1 -2
- package/lib/header/definition.d.ts +3 -0
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +1 -0
- package/lib/icon/definition.d.ts +3 -0
- package/lib/icon/icon.d.ts +5 -6
- package/lib/icon/index.d.ts +1 -2
- package/lib/layout/definition.d.ts +3 -0
- package/lib/layout/index.d.ts +1 -2
- package/lib/layout/layout.d.ts +4 -4
- package/lib/listbox/definition.d.ts +3 -0
- package/lib/listbox/index.d.ts +1 -0
- package/lib/listbox/listbox.d.ts +9 -0
- package/lib/listbox/listbox.template.d.ts +4 -0
- package/lib/menu/definition.d.ts +7 -0
- package/lib/menu/index.d.ts +1 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/definition.d.ts +3 -0
- package/lib/menu-item/index.d.ts +1 -0
- package/lib/menu-item/menu-item.d.ts +7 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/definition.d.ts +3 -0
- package/lib/nav/index.d.ts +1 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/definition.d.ts +3 -0
- package/lib/nav-disclosure/index.d.ts +1 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/definition.d.ts +3 -0
- package/lib/nav-item/index.d.ts +1 -0
- package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/note/definition.d.ts +3 -0
- package/lib/note/index.d.ts +1 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +4 -0
- package/lib/number-field/definition.d.ts +3 -0
- package/lib/number-field/index.d.ts +1 -0
- package/lib/number-field/number-field.d.ts +14 -0
- package/lib/number-field/number-field.template.d.ts +4 -0
- package/lib/option/definition.d.ts +3 -0
- package/lib/option/index.d.ts +1 -0
- package/lib/option/option.d.ts +9 -0
- package/lib/option/option.template.d.ts +4 -0
- package/lib/popup/definition.d.ts +4 -0
- package/lib/popup/index.d.ts +1 -4
- package/lib/popup/popup.d.ts +6 -4
- package/lib/progress/definition.d.ts +3 -0
- package/lib/progress/index.d.ts +1 -2
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/definition.d.ts +3 -0
- package/lib/progress-ring/index.d.ts +1 -2
- package/lib/progress-ring/progress-ring.d.ts +2 -1
- package/lib/radio/definition.d.ts +3 -0
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.template.d.ts +4 -0
- package/lib/radio-group/definition.d.ts +7 -0
- package/lib/radio-group/index.d.ts +1 -0
- package/lib/radio-group/radio-group.d.ts +4 -0
- package/lib/radio-group/radio-group.template.d.ts +4 -0
- package/lib/side-drawer/definition.d.ts +3 -0
- package/lib/side-drawer/index.d.ts +1 -2
- package/lib/side-drawer/side-drawer.d.ts +3 -2
- package/lib/slider/definition.d.ts +3 -0
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/slider.d.ts +4 -0
- package/lib/slider/slider.template.d.ts +4 -0
- package/lib/switch/definition.d.ts +3 -0
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/switch.d.ts +7 -0
- package/lib/switch/switch.template.d.ts +4 -0
- package/lib/text-anchor/definition.d.ts +3 -0
- package/lib/text-anchor/index.d.ts +1 -2
- package/lib/text-area/definition.d.ts +3 -0
- package/lib/text-area/index.d.ts +1 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/lib/text-field/definition.d.ts +3 -0
- package/lib/text-field/index.d.ts +1 -0
- package/lib/text-field/text-field.d.ts +14 -0
- package/lib/text-field/text-field.template.d.ts +4 -0
- package/lib/tooltip/definition.d.ts +3 -0
- package/lib/tooltip/index.d.ts +1 -3
- package/lib/tooltip/tooltip.d.ts +6 -6
- package/listbox/index.js +24 -0
- package/menu/index.js +30 -0
- package/menu-item/index.js +20 -0
- package/nav/index.js +4 -0
- package/nav-disclosure/index.js +17 -0
- package/nav-item/index.js +22 -0
- package/note/index.js +15 -0
- package/number-field/index.js +458 -0
- package/option/index.js +20 -0
- package/package.json +62 -10
- package/popup/index.js +21 -2062
- package/progress/index.js +6 -98
- package/progress-ring/index.js +6 -75
- package/radio/index.js +12 -0
- package/radio-group/index.js +11 -0
- package/shared/affix.js +2 -8
- package/shared/anchor.js +11 -3
- package/shared/apply-mixins.js +5 -4
- package/shared/aria-global.js +2 -86
- package/shared/aria.js +9 -0
- package/shared/base-progress.js +6 -1
- package/shared/breadcrumb-item.js +2 -2
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +19 -0
- package/shared/definition.js +53 -0
- package/shared/definition10.js +99 -0
- package/shared/definition11.js +48 -0
- package/shared/definition12.js +1523 -0
- package/shared/definition13.js +111 -0
- package/shared/definition14.js +114 -0
- package/shared/definition15.js +32 -0
- package/shared/definition16.js +172 -0
- package/shared/definition17.js +223 -0
- package/shared/definition18.js +78 -0
- package/shared/definition19.js +87 -0
- package/shared/definition2.js +106 -0
- package/shared/definition20.js +44 -0
- package/shared/definition21.js +1078 -0
- package/shared/definition22.js +261 -0
- package/shared/definition23.js +348 -0
- package/shared/definition24.js +1529 -0
- package/shared/definition25.js +351 -0
- package/shared/definition26.js +18 -0
- package/shared/definition27.js +75 -0
- package/shared/definition28.js +31 -0
- package/shared/definition29.js +56 -0
- package/shared/definition3.js +29 -0
- package/shared/definition30.js +94 -0
- package/shared/definition31.js +77 -0
- package/shared/definition32.js +45 -0
- package/shared/definition33.js +435 -0
- package/shared/definition34.js +86 -0
- package/shared/definition35.js +592 -0
- package/shared/definition36.js +147 -0
- package/shared/definition37.js +279 -0
- package/shared/definition38.js +119 -0
- package/shared/definition39.js +77 -0
- package/shared/definition4.js +19 -0
- package/shared/definition5.js +38 -0
- package/shared/definition6.js +60 -0
- package/shared/definition7.js +45 -0
- package/shared/definition8.js +113 -0
- package/shared/definition9.js +107 -0
- package/shared/design-system/index.d.ts +1 -2
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/direction.js +20 -0
- package/shared/dom.js +8 -0
- package/shared/enums.js +70 -0
- package/shared/es.object.assign.js +2 -3
- package/shared/es.regexp.to-string.js +59 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +343 -0
- package/shared/icon.js +538 -567
- package/shared/index.js +1664 -83
- package/shared/key-codes.js +97 -0
- package/shared/numbers.js +25 -0
- package/shared/patterns/affix.d.ts +1 -1
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements/form-elements.d.ts +31 -0
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/index.d.ts +2 -0
- package/shared/radio.js +127 -0
- package/shared/ref.js +41 -0
- package/shared/slotted.js +1 -1
- package/shared/start-end.js +50 -0
- package/shared/string-trim.js +40 -0
- package/shared/text-anchor.js +0 -2
- package/shared/text-anchor.template.js +6 -5
- package/shared/to-string.js +51 -0
- package/side-drawer/index.js +5 -81
- package/slider/index.js +17 -0
- package/styles/core/all.css +86 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +80 -0
- package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
- package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
- package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
- package/styles/fonts/spezia.css +9 -12
- package/styles/tokens/theme-dark.css +230 -0
- package/styles/tokens/theme-light.css +230 -0
- package/switch/index.js +17 -0
- package/text-anchor/index.js +12 -7
- package/text-area/index.js +22 -0
- package/text-field/index.js +22 -0
- package/tooltip/index.js +18 -55
- package/vivid.api.json +3769 -0
- package/lib/sidenav-item/index.d.ts +0 -3
- package/lib/text/index.d.ts +0 -2
- package/lib/text/text.d.ts +0 -10
- package/shared/index2.js +0 -21
- package/shared/object-set-prototype-of.js +0 -1009
- package/shared/style-inject.es.js +0 -28
- package/shared/web.dom-collections.iterator.js +0 -473
- package/sidenav-item/index.js +0 -39
- package/styles/themes/dark.css +0 -205
- package/styles/themes/light.css +0 -205
- package/text/index.js +0 -46
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactorial } from './index.js';
|
|
2
|
+
import { c as classNames } from './class-names.js';
|
|
3
|
+
|
|
4
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 14 Dec 2022 16:38:57 GMT\n */\n.base {\n display: flex;\n flex-direction: column;\n}\n\n::slotted(:not(:only-of-type)) {\n border-bottom: 1px solid var(--vvd-color-neutral-200);\n}";
|
|
5
|
+
|
|
6
|
+
class Accordion extends FoundationElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.accordionItems = undefined;
|
|
10
|
+
this.multi = false;
|
|
11
|
+
this.addEventListener('opened', this.handleOpened);
|
|
12
|
+
}
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
super.connectedCallback();
|
|
15
|
+
this.accordionItems = this.children;
|
|
16
|
+
}
|
|
17
|
+
handleOpened(e) {
|
|
18
|
+
if (!this.multi && this.accordionItems) {
|
|
19
|
+
for (let i = 0; i < this.accordionItems.length; i++) {
|
|
20
|
+
if (this.accordionItems[i] !== e.target) {
|
|
21
|
+
this.accordionItems[i].open = false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
closeAll() {
|
|
27
|
+
if (this.accordionItems) {
|
|
28
|
+
for (let i = 0; i < this.accordionItems.length; i++) {
|
|
29
|
+
this.accordionItems[i].open = false;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
__decorate([attr({
|
|
35
|
+
mode: 'boolean'
|
|
36
|
+
}), __metadata("design:type", Object)], Accordion.prototype, "multi", void 0);
|
|
37
|
+
|
|
38
|
+
let _2 = t => t,
|
|
39
|
+
_t;
|
|
40
|
+
const getClasses = _ => classNames('base');
|
|
41
|
+
const AccordionTemplate = () => html(_t || (_t = _2`<div class="${0}">
|
|
42
|
+
<slot></slot>
|
|
43
|
+
</div>`), getClasses);
|
|
44
|
+
|
|
45
|
+
const accordion = Accordion.compose({
|
|
46
|
+
baseName: 'accordion',
|
|
47
|
+
template: AccordionTemplate,
|
|
48
|
+
styles: css_248z
|
|
49
|
+
})();
|
|
50
|
+
const accordionElements = [accordion];
|
|
51
|
+
const registerAccordion = registerFactorial(accordionElements);
|
|
52
|
+
|
|
53
|
+
export { accordion as a, accordionElements as b, registerAccordion as r };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, N as observable, h as html, r as registerFactorial } from './index.js';
|
|
2
|
+
import { s as slotted, e as elements } from './slotted.js';
|
|
3
|
+
import { B as BreadcrumbItem } from './breadcrumb-item.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A Breadcrumb Custom HTML Element.
|
|
7
|
+
* @slot - The default slot for the breadcrumb items
|
|
8
|
+
* @csspart list - The element wrapping the slotted items
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
class Breadcrumb$1 extends FoundationElement {
|
|
13
|
+
slottedBreadcrumbItemsChanged() {
|
|
14
|
+
if (this.$fastController.isConnected) {
|
|
15
|
+
if (this.slottedBreadcrumbItems === undefined ||
|
|
16
|
+
this.slottedBreadcrumbItems.length === 0) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const lastNode = this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length - 1];
|
|
20
|
+
this.slottedBreadcrumbItems.forEach((item) => {
|
|
21
|
+
const itemIsLastNode = item === lastNode;
|
|
22
|
+
this.setItemSeparator(item, itemIsLastNode);
|
|
23
|
+
this.setAriaCurrent(item, itemIsLastNode);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
setItemSeparator(item, isLastNode) {
|
|
28
|
+
if (item instanceof BreadcrumbItem) {
|
|
29
|
+
item.separator = !isLastNode;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Finds href on childnodes in the light DOM or shadow DOM.
|
|
34
|
+
* We look in the shadow DOM because we insert an anchor when breadcrumb-item has an href.
|
|
35
|
+
*/
|
|
36
|
+
findChildWithHref(node) {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
if (node.childElementCount > 0) {
|
|
39
|
+
return node.querySelector("a[href]");
|
|
40
|
+
}
|
|
41
|
+
else if ((_a = node.shadowRoot) === null || _a === void 0 ? void 0 : _a.childElementCount) {
|
|
42
|
+
return (_b = node.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("a[href]");
|
|
43
|
+
}
|
|
44
|
+
else
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Sets ARIA Current for the current node
|
|
49
|
+
* If child node with an anchor tag and with href is found then set aria-current to correct value for the child node,
|
|
50
|
+
* otherwise apply aria-current to the host element, with an href
|
|
51
|
+
*/
|
|
52
|
+
setAriaCurrent(item, isLastNode) {
|
|
53
|
+
const childNodeWithHref = this.findChildWithHref(item);
|
|
54
|
+
if (childNodeWithHref === null &&
|
|
55
|
+
item.hasAttribute("href") &&
|
|
56
|
+
item instanceof BreadcrumbItem) {
|
|
57
|
+
isLastNode
|
|
58
|
+
? item.setAttribute("aria-current", "page")
|
|
59
|
+
: item.removeAttribute("aria-current");
|
|
60
|
+
}
|
|
61
|
+
else if (childNodeWithHref !== null) {
|
|
62
|
+
isLastNode
|
|
63
|
+
? childNodeWithHref.setAttribute("aria-current", "page")
|
|
64
|
+
: childNodeWithHref.removeAttribute("aria-current");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
__decorate([
|
|
69
|
+
observable
|
|
70
|
+
], Breadcrumb$1.prototype, "slottedBreadcrumbItems", void 0);
|
|
71
|
+
|
|
72
|
+
let _ = t => t,
|
|
73
|
+
_t;
|
|
74
|
+
const breadcrumbTemplate = () => html(_t || (_t = _`
|
|
75
|
+
<nav aria-label="breadcrumbs" class="base">
|
|
76
|
+
<div role="list" class="list">
|
|
77
|
+
<slot
|
|
78
|
+
${0}
|
|
79
|
+
></slot>
|
|
80
|
+
</div>
|
|
81
|
+
</nav>
|
|
82
|
+
`), slotted({
|
|
83
|
+
property: 'slottedBreadcrumbItems',
|
|
84
|
+
filter: elements()
|
|
85
|
+
}));
|
|
86
|
+
|
|
87
|
+
var css_248z = ".list {\n display: flex;\n}";
|
|
88
|
+
|
|
89
|
+
class Breadcrumb extends Breadcrumb$1 {}
|
|
90
|
+
|
|
91
|
+
const breadcrumb = Breadcrumb.compose({
|
|
92
|
+
baseName: 'breadcrumb',
|
|
93
|
+
template: breadcrumbTemplate,
|
|
94
|
+
styles: css_248z
|
|
95
|
+
})();
|
|
96
|
+
const breadcrumbElements = [breadcrumb];
|
|
97
|
+
const registerBreadcrumb = registerFactorial(breadcrumbElements);
|
|
98
|
+
|
|
99
|
+
export { breadcrumbElements as a, breadcrumb as b, registerBreadcrumb as r };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactorial } from './index.js';
|
|
2
|
+
import { i as iconElements } from './definition3.js';
|
|
3
|
+
import { f as focusElements } from './definition4.js';
|
|
4
|
+
import { B as BreadcrumbItem$1 } from './breadcrumb-item.js';
|
|
5
|
+
import { t as textAnchorTemplate } from './text-anchor.template.js';
|
|
6
|
+
import { I as Icon } from './icon.js';
|
|
7
|
+
import { w as when } from './when.js';
|
|
8
|
+
import { c as classNames } from './class-names.js';
|
|
9
|
+
|
|
10
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 14 Dec 2022 16:38:57 GMT\n */\n.base {\n display: flex;\n align-items: center;\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-typography-base);\n}\n.base .separator {\n margin: 0 16px;\n color: var(--vvd-color-neutral-600);\n font-size: 12px;\n}\n\n.control {\n position: relative;\n font: inherit;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control:any-link {\n color: var(--vvd-color-cta-600);\n text-decoration: none;\n}\n.control:any-link:hover {\n text-decoration: underline;\n}\n\n.focus-indicator {\n --focus-inset: -4px -8px;\n --focus-stroke-gap-color: transparent;\n border-radius: 6px;\n}\n.control:not(:focus-visible) > .focus-indicator {\n display: none;\n}";
|
|
11
|
+
|
|
12
|
+
class BreadcrumbItem extends BreadcrumbItem$1 {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
__decorate([attr, __metadata("design:type", String)], BreadcrumbItem.prototype, "text", void 0);
|
|
18
|
+
|
|
19
|
+
let _2 = t => t,
|
|
20
|
+
_t,
|
|
21
|
+
_t2,
|
|
22
|
+
_t3,
|
|
23
|
+
_t4;
|
|
24
|
+
const getClasses = _ => classNames('base');
|
|
25
|
+
const BreadcrumbItemTemplate = (context, definition) => {
|
|
26
|
+
const iconTag = context.tagFor(Icon);
|
|
27
|
+
return html(_t || (_t = _2`
|
|
28
|
+
<div role="listitem" class="${0}">
|
|
29
|
+
${0}
|
|
30
|
+
|
|
31
|
+
${0}
|
|
32
|
+
|
|
33
|
+
${0}
|
|
34
|
+
</div>`), getClasses, when(x => x.text && !x.href, html(_t2 || (_t2 = _2`${0}`), x => x.text)), when(x => x.text && x.href && x.href.length > 0, html(_t3 || (_t3 = _2`${0}`), textAnchorTemplate(context))), when(x => x.separator, html(_t4 || (_t4 = _2`<${0} class="separator" name="chevron-right-solid"></${0}>`), iconTag, iconTag)));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const breadcrumbItem = BreadcrumbItem.compose({
|
|
38
|
+
baseName: 'breadcrumb-item',
|
|
39
|
+
template: BreadcrumbItemTemplate,
|
|
40
|
+
styles: css_248z,
|
|
41
|
+
shadowOptions: {
|
|
42
|
+
delegatesFocus: true
|
|
43
|
+
}
|
|
44
|
+
})();
|
|
45
|
+
const breadcrumbItemElements = [breadcrumbItem, ...iconElements, ...focusElements];
|
|
46
|
+
const registerBreadcrumbItem = registerFactorial(breadcrumbItemElements);
|
|
47
|
+
|
|
48
|
+
export { breadcrumbItemElements as a, breadcrumbItem as b, registerBreadcrumbItem as r };
|