@vonage/vivid 3.0.0-next.21 → 3.0.0-next.24
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 +2 -2
- package/accordion-item/index.js +12 -7
- package/action-group/index.js +19 -4
- package/badge/index.js +1 -1
- package/banner/index.js +9 -11
- package/breadcrumb/index.js +1 -0
- package/breadcrumb-item/index.js +11 -4
- package/button/index.js +5 -3
- package/calendar/index.js +31 -9
- package/calendar-event/index.js +19 -32
- package/card/index.js +11 -19
- package/checkbox/index.js +176 -0
- package/elevation/index.js +1 -1
- package/fab/index.js +5 -3
- package/focus/index.js +1 -1
- package/header/index.js +91 -0
- package/icon/index.js +1 -1
- package/index.js +13 -9
- package/lib/accordion-item/index.d.ts +2 -0
- package/lib/action-group/action-group.d.ts +1 -0
- package/lib/banner/banner.template.d.ts +0 -2
- package/lib/banner/index.d.ts +1 -0
- package/lib/breadcrumb-item/index.d.ts +1 -0
- package/lib/calendar/calendar.d.ts +3 -1
- package/lib/calendar/index.d.ts +0 -1
- package/lib/calendar-event/calendar-event.d.ts +3 -1
- package/lib/card/index.d.ts +0 -1
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +2 -0
- package/lib/header/header.d.ts +11 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +8 -1
- package/lib/sidenav-item/index.d.ts +1 -0
- package/note/index.js +1 -1
- package/package.json +7 -3
- package/popup/index.js +7 -5
- package/progress/index.js +30 -24
- package/shared/aria-global.js +3 -40
- package/shared/button.js +1 -1
- package/shared/calendar-event.js +26 -0
- package/shared/es.object.assign.js +1 -1
- package/shared/export.js +444 -444
- package/shared/focus2.js +2 -459
- package/shared/form-associated.js +547 -0
- package/shared/icon.js +2 -2
- package/shared/index.js +1 -1
- package/shared/{object-set-prototype-of.js → iterators.js} +20 -20
- package/shared/object-keys.js +1 -1
- package/shared/ref.js +41 -0
- package/shared/text-anchor.template.js +5 -2
- package/shared/to-string.js +1 -1
- package/shared/web.dom-collections.iterator.js +2 -2
- package/side-drawer/index.js +8587 -11
- package/sidenav-item/index.js +7 -6
- package/text/index.js +1 -1
- package/text-anchor/index.js +4 -1
- package/text-field/index.js +7 -5
- package/tooltip/index.js +4 -2
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import '../icon/index.js';
|
|
2
|
+
import '../focus/index.js';
|
|
3
|
+
import { F as FoundationElement, _ as __decorate, a as attr, o as observable, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
4
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
5
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
6
|
+
import { C as CheckableFormAssociated, k as keySpace$1 } from '../shared/form-associated.js';
|
|
7
|
+
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
8
|
+
import { I as Icon } from '../shared/icon.js';
|
|
9
|
+
import { w as when } from '../shared/when.js';
|
|
10
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
11
|
+
import '../shared/export.js';
|
|
12
|
+
import '../shared/iterators.js';
|
|
13
|
+
import '../shared/to-string.js';
|
|
14
|
+
import '../shared/_has.js';
|
|
15
|
+
import '../shared/focus.js';
|
|
16
|
+
import '../shared/object-keys.js';
|
|
17
|
+
|
|
18
|
+
class _Checkbox extends FoundationElement {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A form-associated base class for the {@link @microsoft/fast-foundation#(Checkbox:class)} component.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
class FormAssociatedCheckbox extends CheckableFormAssociated(_Checkbox) {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.proxy = document.createElement("input");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A Checkbox Custom HTML Element.
|
|
34
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#checkbox | ARIA checkbox }.
|
|
35
|
+
*
|
|
36
|
+
* @slot checked-indicator - The checked indicator
|
|
37
|
+
* @slot indeterminate-indicator - The indeterminate indicator
|
|
38
|
+
* @slot - The default slot for the label
|
|
39
|
+
* @csspart control - The element representing the visual checkbox control
|
|
40
|
+
* @csspart label - The label
|
|
41
|
+
* @fires change - Emits a custom change event when the checked state changes
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
class Checkbox$1 extends FormAssociatedCheckbox {
|
|
46
|
+
constructor() {
|
|
47
|
+
super();
|
|
48
|
+
/**
|
|
49
|
+
* The element's value to be included in form submission when checked.
|
|
50
|
+
* Default to "on" to reach parity with input[type="checkbox"]
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
this.initialValue = "on";
|
|
55
|
+
/**
|
|
56
|
+
* The indeterminate state of the control
|
|
57
|
+
*/
|
|
58
|
+
this.indeterminate = false;
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
this.keypressHandler = (e) => {
|
|
63
|
+
switch (e.key) {
|
|
64
|
+
case keySpace$1:
|
|
65
|
+
this.checked = !this.checked;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
this.clickHandler = (e) => {
|
|
73
|
+
if (!this.disabled && !this.readOnly) {
|
|
74
|
+
this.checked = !this.checked;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
this.proxy.setAttribute("type", "checkbox");
|
|
78
|
+
}
|
|
79
|
+
readOnlyChanged() {
|
|
80
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
81
|
+
this.proxy.readOnly = this.readOnly;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
__decorate([
|
|
86
|
+
attr({ attribute: "readonly", mode: "boolean" })
|
|
87
|
+
], Checkbox$1.prototype, "readOnly", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
observable
|
|
90
|
+
], Checkbox$1.prototype, "defaultSlottedNodes", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
observable
|
|
93
|
+
], Checkbox$1.prototype, "indeterminate", void 0);
|
|
94
|
+
|
|
95
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.base {\n display: inline-flex;\n align-items: center;\n gap: 12px;\n outline: 0 none;\n}\n.base {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-on-primary: var(--vvd-color-canvas);\n}\n.base {\n --_appearance-color-text: var(--vvd-color-on-canvas);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-neutral-50);\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-on-canvas);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-on-canvas);\n}\n.base:where(:checked, .checked):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: var(--_connotation-color-primary);\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: var(--vvd-color-neutral-20);\n --_appearance-color-outline: var(--vvd-color-neutral-50);\n}\n.base:where(:readonly, .readonly):where(:not(:disabled, .disabled, :hover, .hover, :active, .active)) {\n --_appearance-color-text: var(--vvd-color-on-canvas);\n --_appearance-color-fill: var(--vvd-color-neutral-20);\n --_appearance-color-outline: var(--vvd-color-neutral-50);\n}\n.base:where(:indeterminate, .indeterminate):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: var(--_connotation-color-primary);\n}\n@supports ((-webkit-user-select: none) or (user-select: none)) {\n .base {\n -webkit-user-select: none;\n user-select: none;\n }\n}\n\n.control {\n position: relative;\n display: inline-flex;\n width: 24px;\n height: 24px;\n align-items: center;\n justify-content: center;\n background-color: var(--_appearance-color-fill);\n border-radius: 3px;\n box-shadow: inset 0 0 0 2px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n cursor: pointer;\n}\n\n.indicator {\n font-size: 16px;\n}\n.base:not(.checked) .indicator.checkmark {\n display: none;\n}\n\n.base:not(.indeterminate) .indicator.minus, .base.checked .indicator.minus {\n display: none;\n}\n\nlabel {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n color: var(--vvd-color-on-canvas);\n cursor: pointer;\n}\n\n.focus-indicator {\n --focus-inset: -3px;\n --focus-stroke-gap-color: transparent;\n border-radius: 6px;\n}\n.base:not(:focus-visible) .focus-indicator {\n display: none;\n}";
|
|
96
|
+
styleInject(css_248z);
|
|
97
|
+
|
|
98
|
+
const keySpace = ' ';
|
|
99
|
+
class Checkbox extends Checkbox$1 {
|
|
100
|
+
constructor() {
|
|
101
|
+
super(...arguments);
|
|
102
|
+
|
|
103
|
+
this.keypressHandler = e => {
|
|
104
|
+
switch (e.key) {
|
|
105
|
+
case keySpace:
|
|
106
|
+
if (this.indeterminate) {
|
|
107
|
+
this.indeterminate = false;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
this.checked = !this.checked;
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
this.clickHandler = () => {
|
|
116
|
+
if (!this.disabled && !this.readOnly) {
|
|
117
|
+
if (this.indeterminate) {
|
|
118
|
+
this.indeterminate = false;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
this.checked = !this.checked;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
__decorate([attr, __metadata("design:type", String)], Checkbox.prototype, "label", void 0);
|
|
129
|
+
|
|
130
|
+
let _ = t => t,
|
|
131
|
+
_t,
|
|
132
|
+
_t2;
|
|
133
|
+
|
|
134
|
+
const getClasses = ({
|
|
135
|
+
readOnly,
|
|
136
|
+
checked,
|
|
137
|
+
disabled,
|
|
138
|
+
indeterminate
|
|
139
|
+
}) => classNames('base', ['readonly', Boolean(readOnly)], ['checked', Boolean(checked)], ['disabled', Boolean(disabled)], ['indeterminate', Boolean(indeterminate)]);
|
|
140
|
+
|
|
141
|
+
const CheckboxTemplate = context => {
|
|
142
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
143
|
+
const iconTag = context.tagFor(Icon);
|
|
144
|
+
return html(_t || (_t = _`<span
|
|
145
|
+
role="checkbox"
|
|
146
|
+
aria-checked="${0}"
|
|
147
|
+
aria-required="${0}"
|
|
148
|
+
aria-disabled="${0}"
|
|
149
|
+
aria-readonly="${0}"
|
|
150
|
+
tabindex="${0}"
|
|
151
|
+
@keypress="${0}"
|
|
152
|
+
@click="${0}"
|
|
153
|
+
class="${0}"
|
|
154
|
+
>
|
|
155
|
+
<div class="control">
|
|
156
|
+
<${0} class="indicator checkmark" type="check-solid"></${0}>
|
|
157
|
+
<${0} class="indicator minus" type="minus-solid"></${0}>
|
|
158
|
+
${0}
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
${0}
|
|
162
|
+
|
|
163
|
+
</span>`), x => x.checked, x => x.required, x => x.disabled, x => x.readOnly, x => x.disabled ? null : 0, (x, c) => x.keypressHandler(c.event), x => x.clickHandler(), getClasses, iconTag, iconTag, iconTag, iconTag, () => focusTemplate, when(x => x.label, html(_t2 || (_t2 = _`<label>${0}</label>`), x => x.label)));
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const vividCheckbox = Checkbox.compose({
|
|
167
|
+
baseName: 'checkbox',
|
|
168
|
+
template: CheckboxTemplate,
|
|
169
|
+
styles: css_248z,
|
|
170
|
+
shadowOptions: {
|
|
171
|
+
delegatesFocus: true
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
designSystem.register(vividCheckbox());
|
|
175
|
+
|
|
176
|
+
export { vividCheckbox };
|
package/elevation/index.js
CHANGED
|
@@ -6,7 +6,7 @@ class Elevation extends FoundationElement {}
|
|
|
6
6
|
|
|
7
7
|
__decorate([attr, __metadata("design:type", Number)], Elevation.prototype, "dp", void 0);
|
|
8
8
|
|
|
9
|
-
var css_248z = ".control.dp-0 {\n --_elevation-fill: var(--vvd-color-surface-0dp);\n --_elevation-shadow: var(--vvd-shadow-surface-0dp);\n}\n.control.dp-4 {\n --_elevation-fill: var(--vvd-color-surface-4dp);\n --_elevation-shadow: var(--vvd-shadow-surface-4dp);\n}\n.control.dp-8 {\n --_elevation-fill: var(--vvd-color-surface-8dp);\n --_elevation-shadow: var(--vvd-shadow-surface-8dp);\n}\n.control.dp-12 {\n --_elevation-fill: var(--vvd-color-surface-12dp);\n --_elevation-shadow: var(--vvd-shadow-surface-12dp);\n}\n.control.dp-16 {\n --_elevation-fill: var(--vvd-color-surface-16dp);\n --_elevation-shadow: var(--vvd-shadow-surface-16dp);\n}\n.control.dp-24 {\n --_elevation-fill: var(--vvd-color-surface-24dp);\n --_elevation-shadow: var(--vvd-shadow-surface-24dp);\n}\n.control:not(.dp-0, .dp-4, .dp-8, .dp-12, .dp-16, .dp-24) {\n --_elevation-fill: var(--vvd-color-surface-2dp);\n --_elevation-shadow: var(--vvd-shadow-surface-2dp);\n}\n.control ::slotted(*) {\n background-color: var(--_elevation-fill);\n filter: var(--_elevation-shadow);\n}";
|
|
9
|
+
var css_248z = ":host {\n display: contents;\n}\n\n.control {\n display: contents;\n}\n.control.dp-0 {\n --_elevation-fill: var(--vvd-color-surface-0dp);\n --_elevation-shadow: var(--vvd-shadow-surface-0dp);\n}\n.control.dp-4 {\n --_elevation-fill: var(--vvd-color-surface-4dp);\n --_elevation-shadow: var(--vvd-shadow-surface-4dp);\n}\n.control.dp-8 {\n --_elevation-fill: var(--vvd-color-surface-8dp);\n --_elevation-shadow: var(--vvd-shadow-surface-8dp);\n}\n.control.dp-12 {\n --_elevation-fill: var(--vvd-color-surface-12dp);\n --_elevation-shadow: var(--vvd-shadow-surface-12dp);\n}\n.control.dp-16 {\n --_elevation-fill: var(--vvd-color-surface-16dp);\n --_elevation-shadow: var(--vvd-shadow-surface-16dp);\n}\n.control.dp-24 {\n --_elevation-fill: var(--vvd-color-surface-24dp);\n --_elevation-shadow: var(--vvd-shadow-surface-24dp);\n}\n.control:not(.dp-0, .dp-4, .dp-8, .dp-12, .dp-16, .dp-24) {\n --_elevation-fill: var(--vvd-color-surface-2dp);\n --_elevation-shadow: var(--vvd-shadow-surface-2dp);\n}\n.control ::slotted(*) {\n background-color: var(--_elevation-fill);\n filter: var(--_elevation-shadow);\n}";
|
|
10
10
|
styleInject(css_248z);
|
|
11
11
|
|
|
12
12
|
let _ = t => t,
|
package/fab/index.js
CHANGED
|
@@ -6,19 +6,21 @@ import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from '../sh
|
|
|
6
6
|
import { B as Button } from '../shared/button.js';
|
|
7
7
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
8
8
|
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
9
|
-
import { r as ref } from '../shared/
|
|
9
|
+
import { r as ref } from '../shared/ref.js';
|
|
10
10
|
import { c as classNames } from '../shared/class-names.js';
|
|
11
11
|
import '../shared/icon.js';
|
|
12
12
|
import '../shared/export.js';
|
|
13
|
-
import '../shared/
|
|
13
|
+
import '../shared/iterators.js';
|
|
14
14
|
import '../shared/to-string.js';
|
|
15
15
|
import '../shared/_has.js';
|
|
16
16
|
import '../shared/when.js';
|
|
17
17
|
import '../shared/focus.js';
|
|
18
18
|
import '../shared/web.dom-collections.iterator.js';
|
|
19
19
|
import '../shared/object-keys.js';
|
|
20
|
+
import '../shared/form-associated.js';
|
|
21
|
+
import '../shared/aria-global.js';
|
|
20
22
|
|
|
21
|
-
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 600 ultra-condensed
|
|
23
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n --_fab-block-size: 40px;\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n border: 0 none;\n background-color: var(--_appearance-color-fill);\n block-size: var(--_fab-block-size);\n border-radius: 24px;\n color: var(--_appearance-color-text);\n column-gap: var(--fab-icon-gap);\n filter: var(--_elevation-shadow);\n outline: 0 none;\n vertical-align: middle;\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n --_connotation-color-on-primary: var(--vvd-color-on-cta);\n --_connotation-color-primary-increment: var(--vvd-color-cta-70);\n --_connotation-color-contrast: var(--vvd-color-cta-90);\n --_connotation-color-fierce: var(--vvd-color-cta-80);\n --_connotation-color-firm: var(--vvd-color-cta-70);\n}\n.control:not(.connotation-cta) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-on-primary: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-90);\n --_connotation-color-contrast: var(--vvd-color-neutral-90);\n --_connotation-color-fierce: var(--vvd-color-neutral-80);\n --_connotation-color-firm: var(--vvd-color-on-canvas);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: var(--vvd-color-neutral-30);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-fierce);\n --_appearance-color-outline: transaprent;\n}\n.control.icon-only {\n border-radius: 50%;\n padding-inline: 0;\n place-content: center;\n}\n@supports (aspect-ratio: 1) {\n .control.icon-only {\n aspect-ratio: 1;\n }\n}\n@supports not (aspect-ratio: 1) {\n .control.icon-only {\n inline-size: var(--_fab-block-size);\n }\n}\n.control:not(.icon-only) {\n --fab-icon-gap: 10px;\n padding-inline: 20px;\n}\n.control:disabled {\n --_elevation-fill: var(--vvd-color-surface-0dp);\n --_elevation-shadow: var(--vvd-shadow-surface-0dp);\n cursor: not-allowed;\n}\n.control:not(:disabled) {\n --_elevation-fill: var(--vvd-color-surface-4dp);\n --_elevation-shadow: var(--vvd-shadow-surface-4dp);\n cursor: pointer;\n}\n.control:not(:disabled):active {\n --_elevation-fill: var(--vvd-color-surface-8dp);\n --_elevation-shadow: var(--vvd-shadow-surface-8dp);\n}\n\n/* Icon */\n.icon {\n font-size: 20px;\n}\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus-visible) .focus-indicator {\n display: none;\n}";
|
|
22
24
|
styleInject(css_248z);
|
|
23
25
|
|
|
24
26
|
class Fab extends Button {}
|
package/focus/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { h as html, d as designSystem } from '../shared/index.js';
|
|
|
2
2
|
import { F as Focus } from '../shared/focus.js';
|
|
3
3
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
4
4
|
|
|
5
|
-
var css_248z = ":host {\n display: contents;\n border-radius: inherit;\n}\n\n.control {\n position: absolute;\n box-sizing: border-box;\n border-radius: inherit;\n box-shadow: inset 0 0 0
|
|
5
|
+
var css_248z = ":host {\n display: contents;\n border-radius: inherit;\n}\n\n.control {\n position: absolute;\n z-index: 1;\n box-sizing: border-box;\n border-radius: inherit;\n box-shadow: inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);\n inset: var(--focus-inset, 0);\n outline: 2px solid var(--focus-stroke-color, var(--vvd-color-on-canvas));\n outline-offset: -2px;\n}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
let _ = t => t,
|
package/header/index.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { F as FoundationElement, c as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, o as observable, v as volatile, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
4
|
+
import { w as when } from '../shared/when.js';
|
|
5
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
6
|
+
import '../shared/export.js';
|
|
7
|
+
import '../shared/object-keys.js';
|
|
8
|
+
import '../shared/iterators.js';
|
|
9
|
+
|
|
10
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n:host {\n --header-z-index: 7;\n}\n\n.control {\n font: 500 condensed 20px / 28px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n z-index: var(--header-z-index);\n display: flex;\n width: 100%;\n height: 64px;\n box-sizing: border-box;\n justify-content: space-between;\n padding: 8px 12px;\n background-color: var(--vvd-color-canvas);\n color: var(--vvd-color-on-canvas);\n column-gap: 12px;\n}\n.control.fixed {\n position: fixed;\n}\n.control.fixed.elevated {\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);\n transition: all 0.15s linear;\n}\n.control .header-content {\n display: inline-flex;\n flex: 1;\n align-items: center;\n}\n.control .start {\n justify-content: flex-start;\n}\n.control .start .heading {\n padding-left: 20px;\n}\n.control .end {\n justify-content: flex-end;\n}\n\n.control.fixed + .app-content {\n padding-top: 64px;\n}\n.control.fixed + .app-content ::slotted(vwc-side-drawer) {\n block-size: calc(100vh - 64px);\n}";
|
|
11
|
+
styleInject(css_248z);
|
|
12
|
+
|
|
13
|
+
var _Header_updateElevatedState;
|
|
14
|
+
class Header extends FoundationElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.fixed = false;
|
|
18
|
+
this.alternate = false;
|
|
19
|
+
this._elevated = false;
|
|
20
|
+
|
|
21
|
+
_Header_updateElevatedState.set(this, () => {
|
|
22
|
+
this._elevated = !this._elevated;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
super.connectedCallback();
|
|
28
|
+
window.addEventListener('scroll', __classPrivateFieldGet(this, _Header_updateElevatedState, "f"));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
super.disconnectedCallback();
|
|
33
|
+
window.removeEventListener('scroll', __classPrivateFieldGet(this, _Header_updateElevatedState, "f"));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
get elevated() {
|
|
37
|
+
return this._elevated && false || this.fixed && window.pageYOffset > 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
_Header_updateElevatedState = new WeakMap();
|
|
42
|
+
|
|
43
|
+
__decorate([attr, __metadata("design:type", String)], Header.prototype, "heading", void 0);
|
|
44
|
+
|
|
45
|
+
__decorate([attr({
|
|
46
|
+
mode: 'boolean'
|
|
47
|
+
}), __metadata("design:type", Object)], Header.prototype, "fixed", void 0);
|
|
48
|
+
|
|
49
|
+
__decorate([attr({
|
|
50
|
+
mode: 'boolean'
|
|
51
|
+
}), __metadata("design:type", Object)], Header.prototype, "alternate", void 0);
|
|
52
|
+
|
|
53
|
+
__decorate([observable, __metadata("design:type", Object)], Header.prototype, "_elevated", void 0);
|
|
54
|
+
|
|
55
|
+
__decorate([volatile, __metadata("design:type", Object), __metadata("design:paramtypes", [])], Header.prototype, "elevated", null);
|
|
56
|
+
|
|
57
|
+
let _ = t => t,
|
|
58
|
+
_t,
|
|
59
|
+
_t2;
|
|
60
|
+
|
|
61
|
+
const getClasses = ({
|
|
62
|
+
fixed,
|
|
63
|
+
alternate,
|
|
64
|
+
elevated
|
|
65
|
+
}) => classNames('control', ['fixed', Boolean(fixed)], ['alternate', Boolean(alternate)], ['elevated', Boolean(elevated)]);
|
|
66
|
+
|
|
67
|
+
const headerTemplate = () => {
|
|
68
|
+
return html(_t || (_t = _`
|
|
69
|
+
<header class="${0}" part="${0}">
|
|
70
|
+
<section class="header-content start" id="navigation">
|
|
71
|
+
<slot></slot>
|
|
72
|
+
${0}
|
|
73
|
+
</section>
|
|
74
|
+
<section class="header-content end" id="actions" role="toolbar">
|
|
75
|
+
<slot name="actionItems"></slot>
|
|
76
|
+
</section>
|
|
77
|
+
</header>
|
|
78
|
+
<div class="app-content">
|
|
79
|
+
<slot name="app-content"></slot>
|
|
80
|
+
</div>
|
|
81
|
+
`), getClasses, x => x.alternate ? 'vvd-theme-alternate' : '', when(x => x.heading, html(_t2 || (_t2 = _`<span class="heading">${0}</span>`), x => x.heading)));
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const vividHeader = Header.compose({
|
|
85
|
+
baseName: 'header',
|
|
86
|
+
template: headerTemplate,
|
|
87
|
+
styles: css_248z
|
|
88
|
+
});
|
|
89
|
+
designSystem.register(vividHeader());
|
|
90
|
+
|
|
91
|
+
export { vividHeader };
|
package/icon/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { I as Icon } from '../shared/icon.js';
|
|
|
4
4
|
import { w as when } from '../shared/when.js';
|
|
5
5
|
import { c as classNames } from '../shared/class-names.js';
|
|
6
6
|
import '../shared/export.js';
|
|
7
|
-
import '../shared/
|
|
7
|
+
import '../shared/iterators.js';
|
|
8
8
|
import '../shared/to-string.js';
|
|
9
9
|
import '../shared/_has.js';
|
|
10
10
|
|
package/index.js
CHANGED
|
@@ -22,30 +22,34 @@ export { vividSidenavItem } from './sidenav-item/index.js';
|
|
|
22
22
|
export { vividText } from './text/index.js';
|
|
23
23
|
export { vividTextfield } from './text-field/index.js';
|
|
24
24
|
export { vividTooltip } from './tooltip/index.js';
|
|
25
|
+
export { vividCheckbox } from './checkbox/index.js';
|
|
26
|
+
export { vividHeader } from './header/index.js';
|
|
25
27
|
export { d as designSystem, p as provideVividDesignSystem } from './shared/index.js';
|
|
26
28
|
import './shared/style-inject.es.js';
|
|
27
29
|
import './shared/class-names.js';
|
|
30
|
+
import './focus/index.js';
|
|
31
|
+
import './shared/focus.js';
|
|
28
32
|
import './shared/web.dom-collections.iterator.js';
|
|
29
33
|
import './shared/export.js';
|
|
30
34
|
import './shared/object-keys.js';
|
|
31
|
-
import './shared/
|
|
35
|
+
import './shared/iterators.js';
|
|
32
36
|
import './shared/affix.js';
|
|
33
37
|
import './shared/icon.js';
|
|
34
38
|
import './shared/to-string.js';
|
|
35
39
|
import './shared/_has.js';
|
|
36
40
|
import './shared/apply-mixins.js';
|
|
41
|
+
import './shared/focus2.js';
|
|
37
42
|
import './shared/when.js';
|
|
38
43
|
import './shared/enums.js';
|
|
39
|
-
import './text-anchor/index.js';
|
|
40
|
-
import './shared/text-anchor.js';
|
|
41
|
-
import './shared/anchor.js';
|
|
42
|
-
import './shared/aria-global.js';
|
|
43
|
-
import './shared/text-anchor.template.js';
|
|
44
|
-
import './focus/index.js';
|
|
45
|
-
import './shared/focus.js';
|
|
46
44
|
import './shared/button.js';
|
|
47
|
-
import './shared/
|
|
45
|
+
import './shared/form-associated.js';
|
|
46
|
+
import './shared/aria-global.js';
|
|
47
|
+
import './shared/ref.js';
|
|
48
48
|
import './shared/breadcrumb-item.js';
|
|
49
|
+
import './shared/anchor.js';
|
|
49
50
|
import './shared/slotted.js';
|
|
51
|
+
import './shared/text-anchor.template.js';
|
|
52
|
+
import './shared/calendar-event.js';
|
|
50
53
|
import './shared/es.object.assign.js';
|
|
51
54
|
import './shared/base-progress.js';
|
|
55
|
+
import './shared/text-anchor.js';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import '../focus';
|
|
1
3
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
4
|
import '../icon';
|
|
3
5
|
export declare const vividAccordionItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
import '../button';
|
|
4
|
-
import '../text-anchor';
|
|
5
3
|
import type { Banner } from './banner';
|
|
6
4
|
export declare const BannerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Banner>;
|
package/lib/banner/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '../button';
|
|
1
2
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
3
|
export declare const vividBanner: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '../icon';
|
|
2
|
+
import '../focus';
|
|
2
3
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
4
|
export declare const vividBreadcrumbItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
2
|
export declare class Calendar extends FoundationElement {
|
|
3
|
+
#private;
|
|
3
4
|
datetime?: Date | string;
|
|
4
5
|
startDay?: 'sunday' | 'monday';
|
|
5
6
|
locales?: string | string[] | undefined;
|
|
6
7
|
hour12: boolean;
|
|
7
8
|
getEventContext: (this: Calendar, e: KeyboardEvent | MouseEvent) => import("./helpers/calendar.event-context").CalendarEventContext | null;
|
|
9
|
+
private getCalendarEventContainingCell;
|
|
8
10
|
private arrowKeysInteractions;
|
|
9
|
-
private
|
|
11
|
+
private activateElement;
|
|
10
12
|
onKeydown({ key }: KeyboardEvent): boolean;
|
|
11
13
|
}
|
package/lib/calendar/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import '../elevation';
|
|
2
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
2
|
export declare const vividCalendar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import type { Connotation } from '../enums';
|
|
2
|
+
import type { Appearance, Connotation } from '../enums';
|
|
3
3
|
declare type CalendarEventConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Warning | Connotation.Info | Connotation.Announcement>;
|
|
4
|
+
declare type CalendarEventAppearance = Extract<Appearance, Appearance.Filled | Appearance.Duotone | Appearance.Subtle>;
|
|
4
5
|
export declare class CalendarEvent extends FoundationElement {
|
|
5
6
|
heading?: string;
|
|
6
7
|
description?: string;
|
|
7
8
|
connotation?: CalendarEventConnotation;
|
|
9
|
+
appearance?: CalendarEventAppearance;
|
|
8
10
|
overlapCount?: number;
|
|
9
11
|
start?: number;
|
|
10
12
|
duration?: number;
|
package/lib/card/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import '../elevation';
|
|
2
2
|
import '../icon';
|
|
3
|
-
import '../button';
|
|
4
3
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
5
4
|
export declare const vividCard: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { CheckboxOptions, FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Checkbox } from './checkbox';
|
|
4
|
+
export declare const CheckboxTemplate: FoundationElementTemplate<ViewTemplate<Checkbox>, CheckboxOptions>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import '../focus';
|
|
3
|
+
import type { CheckboxOptions } from '@microsoft/fast-foundation';
|
|
4
|
+
export declare const vividCheckbox: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<CheckboxOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<CheckboxOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/components.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare class Header extends FoundationElement {
|
|
3
|
+
#private;
|
|
4
|
+
heading?: string;
|
|
5
|
+
fixed: boolean;
|
|
6
|
+
alternate: boolean;
|
|
7
|
+
_elevated: boolean;
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
get elevated(): boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Header } from './header';
|
|
4
|
+
export declare const headerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Header>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividHeader: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import 'blocking-elements';
|
|
2
|
+
import 'wicg-inert';
|
|
3
|
+
import 'babel-polyfill';
|
|
1
4
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
5
|
export declare class SideDrawer extends FoundationElement {
|
|
6
|
+
#private;
|
|
7
|
+
asideEl: HTMLElement;
|
|
8
|
+
scrimEl: any;
|
|
3
9
|
alternate: boolean;
|
|
4
10
|
modal: boolean;
|
|
5
11
|
open: boolean;
|
|
6
12
|
position?: 'start' | 'end';
|
|
7
|
-
|
|
13
|
+
headerSlottedContent?: HTMLElement[];
|
|
14
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
8
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '../icon';
|
|
2
|
+
import '../focus';
|
|
2
3
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
4
|
export declare const vividSidenavItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/note/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { w as when } from '../shared/when.js';
|
|
|
10
10
|
import { c as classNames } from '../shared/class-names.js';
|
|
11
11
|
import '../shared/icon.js';
|
|
12
12
|
import '../shared/export.js';
|
|
13
|
-
import '../shared/
|
|
13
|
+
import '../shared/iterators.js';
|
|
14
14
|
import '../shared/to-string.js';
|
|
15
15
|
import '../shared/_has.js';
|
|
16
16
|
import '../shared/object-keys.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./index.esm.js",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"./sidenav-item": "./sidenav-item",
|
|
29
29
|
"./text": "./text",
|
|
30
30
|
"./text-field": "./text-field",
|
|
31
|
-
"./tooltip": "./tooltip"
|
|
31
|
+
"./tooltip": "./tooltip",
|
|
32
|
+
"./checkbox": "./checkbox"
|
|
32
33
|
},
|
|
33
34
|
"typings": "./index.d.ts",
|
|
34
35
|
"dependencies": {
|
|
@@ -36,7 +37,10 @@
|
|
|
36
37
|
"@microsoft/fast-foundation": "^2.46.9",
|
|
37
38
|
"@microsoft/fast-web-utilities": "^5.4.1",
|
|
38
39
|
"ramda": "^0.27.2",
|
|
39
|
-
"@floating-ui/dom": "^0.5.2"
|
|
40
|
+
"@floating-ui/dom": "^0.5.2",
|
|
41
|
+
"blocking-elements": "^0.1.1",
|
|
42
|
+
"wicg-inert": "^3.1.2",
|
|
43
|
+
"babel-polyfill": "^6.26.0"
|
|
40
44
|
},
|
|
41
45
|
"peerDependencies": {}
|
|
42
46
|
}
|
package/popup/index.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import '../elevation/index.js';
|
|
2
2
|
import '../button/index.js';
|
|
3
|
-
import { F as FoundationElement, c as __classPrivateFieldGet,
|
|
3
|
+
import { F as FoundationElement, c as __classPrivateFieldGet, i as __classPrivateFieldSet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
4
4
|
import { s as speciesConstructor$1, f as functionApply } from '../shared/icon.js';
|
|
5
5
|
import { o as objectCreate } from '../shared/web.dom-collections.iterator.js';
|
|
6
6
|
import '../shared/es.object.assign.js';
|
|
7
|
-
import {
|
|
7
|
+
import { j as anObject$3, e as fails$5, g as global$3, v as functionCall, f as functionUncurryThis, Q as shared$1, y as internalState, _ as _export, w as wellKnownSymbol$2, u as defineBuiltIn$1, K as createNonEnumerableProperty$1, x as isObject$1, c as classofRaw, B as requireObjectCoercible$2, R as toIntegerOrInfinity$1, S as toPropertyKey$1, o as objectDefineProperty, J as createPropertyDescriptor$1, A as lengthOfArrayLike$1, T as toAbsoluteIndex$1, i as isCallable$1, U as toLength$1, z as getMethod$1 } from '../shared/export.js';
|
|
8
8
|
import { t as toString$3 } from '../shared/to-string.js';
|
|
9
9
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
10
10
|
import { w as when } from '../shared/when.js';
|
|
11
|
-
import { r as ref } from '../shared/
|
|
11
|
+
import { r as ref } from '../shared/ref.js';
|
|
12
12
|
import { c as classNames } from '../shared/class-names.js';
|
|
13
13
|
import '../icon/index.js';
|
|
14
|
-
import '../shared/
|
|
14
|
+
import '../shared/iterators.js';
|
|
15
15
|
import '../shared/_has.js';
|
|
16
16
|
import '../focus/index.js';
|
|
17
17
|
import '../shared/focus.js';
|
|
18
18
|
import '../shared/affix.js';
|
|
19
19
|
import '../shared/button.js';
|
|
20
20
|
import '../shared/apply-mixins.js';
|
|
21
|
+
import '../shared/form-associated.js';
|
|
22
|
+
import '../shared/aria-global.js';
|
|
21
23
|
import '../shared/focus2.js';
|
|
22
24
|
import '../shared/object-keys.js';
|
|
23
25
|
|
|
@@ -2069,7 +2071,7 @@ __decorate([attr({
|
|
|
2069
2071
|
|
|
2070
2072
|
__decorate([attr, __metadata("design:type", String)], Popup.prototype, "anchor", void 0);
|
|
2071
2073
|
|
|
2072
|
-
var css_248z = ".control {\n background-color: var(--vvd-color-surface-4dp);\n border-radius: inherit;\n contain: layout;\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n}\n.control:not(.open) {\n display: none;\n}\n\n.popup-wrapper {\n position: fixed;\n border-radius: 6px;\n}\n\n.popup-content {\n display: grid;\n color: var(--vvd-color-on-canvas); /* neutral-100 */\n}\n.dismissible .popup-content {\n align-content: start;\n grid-template-columns: 1fr auto;\n}\n\n.arrow {\n position: absolute;\n z-index: -1;\n width: 8px;\n height: 8px;\n background-color: var(--vvd-color-surface-4dp);\n transform: rotate(45deg);\n}\n\n.dismissible-button {\n align-self: flex-start;\n margin-block-start:
|
|
2074
|
+
var css_248z = ".control {\n background-color: var(--vvd-color-surface-4dp);\n border-radius: inherit;\n contain: layout;\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n}\n.control:not(.open) {\n display: none;\n}\n\n.popup-wrapper {\n position: fixed;\n border-radius: 6px;\n}\n\n.popup-content {\n display: grid;\n color: var(--vvd-color-on-canvas); /* neutral-100 */\n}\n.dismissible .popup-content {\n align-content: start;\n grid-template-columns: 1fr auto;\n}\n\n.arrow {\n position: absolute;\n z-index: -1;\n width: 8px;\n height: 8px;\n background-color: var(--vvd-color-surface-4dp);\n transform: rotate(45deg);\n}\n\n.dismissible-button {\n align-self: flex-start;\n margin-block-start: 4px;\n margin-inline-end: 4px;\n}";
|
|
2073
2075
|
styleInject(css_248z);
|
|
2074
2076
|
|
|
2075
2077
|
let _ = t => t,
|