@vonage/vivid 3.30.0 → 3.32.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/alert/index.js +2 -1
- package/checkbox/index.js +2 -1
- package/combobox/index.js +2 -1
- package/custom-elements.json +811 -18
- package/date-picker/index.js +35 -0
- package/dialog/index.js +1 -1
- package/divider/index.js +1 -1
- package/empty-state/index.js +1 -1
- package/fab/index.js +1 -1
- package/file-picker/index.js +3 -2
- package/header/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +48 -46
- package/layout/index.js +1 -1
- package/lib/button/button.d.ts +2 -0
- package/lib/components.d.ts +20 -19
- package/lib/date-picker/calendar/calendarGrid.d.ts +17 -0
- package/lib/date-picker/calendar/dateStr.d.ts +6 -0
- package/lib/date-picker/calendar/month.d.ts +11 -0
- package/lib/date-picker/calendar/monthPickerGrid.d.ts +10 -0
- package/lib/date-picker/calendar/presentationDate.d.ts +4 -0
- package/lib/date-picker/date-picker.d.ts +16 -0
- package/lib/date-picker/date-picker.template.d.ts +4 -0
- package/lib/date-picker/definition.d.ts +3 -0
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-picker/locale.d.ts +21 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +1 -0
- package/lib/pagination/definition.d.ts +1 -0
- package/lib/pagination/pagination.d.ts +3 -1
- package/lib/select/select.d.ts +4 -2
- package/listbox/index.js +3 -2
- package/locales/en-GB.d.ts +3 -0
- package/locales/en-GB.js +25 -0
- package/locales/en-US.d.ts +3 -0
- package/locales/en-US.js +25 -0
- package/locales/ja-JP.d.ts +3 -0
- package/locales/ja-JP.js +25 -0
- package/locales/zh-CN.d.ts +3 -0
- package/locales/zh-CN.js +25 -0
- package/menu/index.js +2 -2
- package/menu-item/index.js +1 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.js +3 -2
- package/number-field/index.js +4 -3
- package/option/index.js +2 -1
- package/package.json +2 -1
- package/pagination/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.js +1 -1
- package/select/index.js +3 -2
- package/shared/definition.js +1 -1
- package/shared/definition10.js +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition15.js +1 -1
- package/shared/definition16.js +1 -1
- package/shared/definition17.js +1 -1
- package/shared/definition18.js +2 -2
- package/shared/definition19.js +2 -2
- package/shared/definition2.js +1 -1
- package/shared/definition21.js +3 -3
- package/shared/definition22.js +2 -2
- package/shared/definition23.js +5750 -189
- package/shared/definition24.js +116 -68
- package/shared/definition25.js +68 -38
- package/shared/definition26.js +222 -74
- package/shared/definition27.js +33 -2282
- package/shared/definition28.js +76 -47
- package/shared/definition29.js +2287 -38
- package/shared/definition30.js +39 -417
- package/shared/definition31.js +38 -364
- package/shared/definition32.js +427 -12
- package/shared/definition33.js +351 -53
- package/shared/definition34.js +12 -26
- package/shared/definition35.js +67 -31
- package/shared/definition36.js +20 -431
- package/shared/definition37.js +34 -181
- package/shared/definition38.js +427 -45
- package/shared/definition39.js +195 -33
- package/shared/definition4.js +1 -1
- package/shared/definition40.js +53 -425
- package/shared/definition41.js +29 -645
- package/shared/definition42.js +420 -73
- package/shared/definition43.js +549 -444
- package/shared/definition44.js +68 -90
- package/shared/definition45.js +501 -79
- package/shared/definition46.js +84 -45
- package/shared/definition47.js +131 -17
- package/shared/definition48.js +44 -471
- package/shared/definition49.js +21 -108
- package/shared/definition5.js +1 -1
- package/shared/definition50.js +487 -15
- package/shared/definition51.js +92 -255
- package/shared/definition52.js +16 -115
- package/shared/definition53.js +264 -115
- package/shared/definition54.js +91 -82
- package/shared/definition55.js +111 -65
- package/shared/definition56.js +64 -291
- package/shared/definition57.js +303 -0
- package/shared/definition6.js +2 -2
- package/shared/definition7.js +10 -3
- package/shared/definition9.js +1 -1
- package/shared/{form-elements.js → index2.js} +14 -2
- package/shared/localization/Locale.d.ts +4 -0
- package/shared/localization/index.d.ts +7 -0
- package/shared/patterns/form-elements/form-elements.d.ts +4 -4
- package/shared/patterns/index.d.ts +1 -0
- package/shared/patterns/localized.d.ts +4 -0
- package/shared/text-field.js +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.js +1 -1
- package/split-button/index.js +1 -1
- package/styles/core/all.css +25 -3
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +25 -3
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +14 -0
- package/switch/index.js +3 -2
- package/tab/index.js +1 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.js +3 -3
- package/tag/index.js +1 -1
- package/tag-group/index.js +1 -1
- package/text-area/index.js +3 -2
- package/text-field/index.js +3 -2
- package/toggletip/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/index.js +1 -1
- package/tree-view/index.js +1 -1
- package/vivid.api.json +262 -0
package/shared/definition49.js
CHANGED
|
@@ -1,117 +1,30 @@
|
|
|
1
|
-
import { F as FoundationElement,
|
|
2
|
-
import { i as iconRegistries } from './definition3.js';
|
|
3
|
-
import { f as focusRegistries } from './definition4.js';
|
|
4
|
-
import { b as AffixIcon, a as affixIconTemplateFactory } from './affix.js';
|
|
5
|
-
import { a as applyMixins } from './apply-mixins.js';
|
|
6
|
-
import { f as focusTemplateFactory } from './focus2.js';
|
|
7
|
-
import { I as Icon } from './icon.js';
|
|
8
|
-
import { w as when } from './when.js';
|
|
9
|
-
import { c as classNames } from './class-names.js';
|
|
1
|
+
import { F as FoundationElement, h as html, r as registerFactory } from './index.js';
|
|
10
2
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
_Tag_select.set(this, () => {
|
|
20
|
-
if (!this.selectable || this.disabled) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
this.selected = !this.selected;
|
|
24
|
-
this.$emit('selected-change');
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
remove() {
|
|
28
|
-
if (!this.removable || this.selectable) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
this.$emit('removed');
|
|
32
|
-
this.parentElement && this.parentElement.removeChild(this);
|
|
33
|
-
}
|
|
34
|
-
handleKeydown(e) {
|
|
35
|
-
if (e.key === 'Enter') {
|
|
36
|
-
__classPrivateFieldGet(this, _Tag_select, "f").call(this);
|
|
37
|
-
}
|
|
38
|
-
if (e.key === 'Delete' || e.key === 'Backspace') {
|
|
39
|
-
this.remove();
|
|
40
|
-
}
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
handleClick() {
|
|
44
|
-
__classPrivateFieldGet(this, _Tag_select, "f").call(this);
|
|
45
|
-
}
|
|
3
|
+
/**
|
|
4
|
+
* A TabPanel Component to be used with {@link @microsoft/fast-foundation#(Tabs:class)}
|
|
5
|
+
*
|
|
6
|
+
* @slot - The default slot for the tabpanel content
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
class TabPanel$1 extends FoundationElement {
|
|
46
11
|
}
|
|
47
|
-
_Tag_select = new WeakMap();
|
|
48
|
-
__decorate([attr, __metadata("design:type", String)], Tag.prototype, "connotation", void 0);
|
|
49
|
-
__decorate([attr, __metadata("design:type", String)], Tag.prototype, "shape", void 0);
|
|
50
|
-
__decorate([attr, __metadata("design:type", String)], Tag.prototype, "appearance", void 0);
|
|
51
|
-
__decorate([attr, __metadata("design:type", String)], Tag.prototype, "label", void 0);
|
|
52
|
-
__decorate([attr({
|
|
53
|
-
mode: 'boolean'
|
|
54
|
-
}), __metadata("design:type", Object)], Tag.prototype, "removable", void 0);
|
|
55
|
-
__decorate([attr({
|
|
56
|
-
mode: 'boolean'
|
|
57
|
-
}), __metadata("design:type", Object)], Tag.prototype, "disabled", void 0);
|
|
58
|
-
__decorate([attr({
|
|
59
|
-
mode: 'boolean'
|
|
60
|
-
}), __metadata("design:type", Object)], Tag.prototype, "selectable", void 0);
|
|
61
|
-
__decorate([attr({
|
|
62
|
-
mode: 'boolean'
|
|
63
|
-
}), __metadata("design:type", Object)], Tag.prototype, "selected", void 0);
|
|
64
|
-
applyMixins(Tag, AffixIcon);
|
|
65
12
|
|
|
66
|
-
|
|
13
|
+
class TabPanel extends TabPanel$1 {}
|
|
67
14
|
|
|
68
|
-
|
|
69
|
-
connotation,
|
|
70
|
-
appearance,
|
|
71
|
-
shape,
|
|
72
|
-
disabled,
|
|
73
|
-
selectable,
|
|
74
|
-
removable,
|
|
75
|
-
selected
|
|
76
|
-
}) => classNames('base', ['disabled', disabled], ['selectable', selectable], ['active', selectable && selected], ['removable', removable && !selectable], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)]);
|
|
77
|
-
function renderDismissButton(iconTag) {
|
|
15
|
+
function TabPanelTemplate() {
|
|
78
16
|
return html`
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<${iconTag} name="close-line"></${iconTag}>
|
|
84
|
-
</span>`;
|
|
17
|
+
<template slot="tabpanel" role="tabpanel">
|
|
18
|
+
<slot></slot>
|
|
19
|
+
</template>
|
|
20
|
+
`;
|
|
85
21
|
}
|
|
86
|
-
const tagTemplate = context => {
|
|
87
|
-
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
88
|
-
const iconTag = context.tagFor(Icon);
|
|
89
|
-
const focusTemplate = focusTemplateFactory(context);
|
|
90
|
-
return html`
|
|
91
|
-
<span class="${getClasses}"
|
|
92
|
-
role="option"
|
|
93
|
-
aria-disabled="${x => x.disabled}"
|
|
94
|
-
aria-selected="${x => x.selectable}"
|
|
95
|
-
tabindex="${x => x.disabled ? null : 0}"
|
|
96
|
-
@keydown="${(x, c) => x.handleKeydown(c.event)}"
|
|
97
|
-
@click="${x => x.handleClick()}">
|
|
98
|
-
${x => affixIconTemplate(x.icon)}
|
|
99
|
-
${when(x => x.label, x => html`<span class="label">${x.label}</span>`)}
|
|
100
|
-
${when(x => x.removable && !x.selectable, renderDismissButton(iconTag))}
|
|
101
|
-
${when(x => x.selectable && x.selected, html`<${iconTag} class="selectable-icon" name="check-circle-solid"></${iconTag}>`)}
|
|
102
|
-
${() => focusTemplate}
|
|
103
|
-
</span>`;
|
|
104
|
-
};
|
|
105
22
|
|
|
106
|
-
const
|
|
107
|
-
baseName: '
|
|
108
|
-
template:
|
|
109
|
-
styles: css_248z,
|
|
110
|
-
shadowOptions: {
|
|
111
|
-
delegatesFocus: true
|
|
112
|
-
}
|
|
23
|
+
const tabPanelDefinition = TabPanel.compose({
|
|
24
|
+
baseName: 'tab-panel',
|
|
25
|
+
template: TabPanelTemplate
|
|
113
26
|
});
|
|
114
|
-
const
|
|
115
|
-
const
|
|
27
|
+
const tabPanelRegistries = [tabPanelDefinition()];
|
|
28
|
+
const registerTabPanel = registerFactory(tabPanelRegistries);
|
|
116
29
|
|
|
117
|
-
export {
|
|
30
|
+
export { tabPanelDefinition as a, registerTabPanel as r, tabPanelRegistries as t };
|
package/shared/definition5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
2
2
|
import { c as classNames } from './class-names.js';
|
|
3
3
|
|
|
4
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
4
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 22 Aug 2023 13:37:39 GMT\n */\n:host {\n display: inline-block;\n}\n\n.base {\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n inline-size: inherit;\n vertical-align: middle;\n}\n.base {\n /* @cssprop [--vvd-action-group-accent-backdrop=var(--vvd-color-canvas)] */\n --_connotation-color-backdrop: var(--vvd-action-group-accent-backdrop, var(--vvd-color-canvas));\n /* @cssprop [--vvd-action-group-accent-primary=var(--vvd-color-canvas-text)] */\n --_connotation-color-primary: var(--vvd-action-group-accent-primary, var(--vvd-color-canvas-text));\n /* @cssprop [--vvd-action-group-accent-intermediate=var(--vvd-color-neutral-500)] */\n --_connotation-color-intermediate: var(--vvd-action-group-accent-intermediate, var(--vvd-color-neutral-500));\n /* @cssprop [--vvd-action-group-accent-faint=var(--vvd-color-neutral-50)] */\n --_connotation-color-faint: var(--vvd-action-group-accent-faint, var(--vvd-color-neutral-50));\n}\n.base {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--_connotation-color-backdrop);\n --_appearance-color-outline: var(--_connotation-color-intermediate);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base::before {\n position: absolute;\n z-index: 1;\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n content: \"\";\n inset: 0;\n pointer-events: none;\n}\n.base:not(.tight) {\n padding: 4px;\n column-gap: 4px;\n}\n\n/* Shape */\n.base:not(.shape-pill) {\n border-radius: 6px;\n}\n\n.base.shape-pill {\n border-radius: 24px;\n}\n\n/* Separator */\n::slotted([role=separator]) {\n align-self: stretch;\n margin-block: 4px;\n}";
|
|
5
5
|
|
|
6
6
|
class ActionGroup extends FoundationElement {
|
|
7
7
|
constructor() {
|