@vonage/vivid 3.0.0-next.13 → 3.0.0-next.16
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/badge/index.js +7 -7
- package/banner/index.js +6 -81
- package/button/index.js +13 -655
- package/card/index.js +3 -1
- package/elevation/index.js +4 -4
- package/fab/index.js +93 -0
- package/focus/index.js +20 -3
- package/icon/index.js +1 -1
- package/index.js +30 -19
- package/layout/index.js +3 -3
- package/lib/badge/badge.d.ts +3 -3
- package/lib/badge/index.d.ts +1 -1
- package/lib/button/button.d.ts +3 -3
- package/lib/button/index.d.ts +2 -19
- package/lib/components.d.ts +15 -10
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +2 -1
- package/lib/fab/fab.d.ts +10 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/layout/index.d.ts +1 -1
- package/lib/note/index.d.ts +2 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/popup/index.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +1 -0
- package/lib/side-drawer/index.d.ts +1 -1
- package/note/index.js +65 -0
- package/package.json +24 -4
- package/popup/index.js +114 -72
- package/progress/index.js +1 -1
- package/progress-ring/index.js +8 -3
- package/shared/enums.js +80 -0
- package/shared/focus.js +652 -0
- package/shared/focus2.js +5 -0
- package/shared/icon.js +1 -1
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/index.d.ts +1 -0
- package/side-drawer/index.js +3 -3
- package/text/index.js +1 -1
- package/tooltip/index.js +3 -1
- package/shared/index2.js +0 -21
package/badge/index.js
CHANGED
|
@@ -18,13 +18,13 @@ __decorate([attr, __metadata("design:type", String)], Badge.prototype, "shape",
|
|
|
18
18
|
|
|
19
19
|
__decorate([attr, __metadata("design:type", String)], Badge.prototype, "appearance", void 0);
|
|
20
20
|
|
|
21
|
-
__decorate([attr, __metadata("design:type", String)], Badge.prototype, "
|
|
21
|
+
__decorate([attr, __metadata("design:type", String)], Badge.prototype, "density", void 0);
|
|
22
22
|
|
|
23
23
|
__decorate([attr, __metadata("design:type", String)], Badge.prototype, "text", void 0);
|
|
24
24
|
|
|
25
25
|
applyMixins(Badge, AffixIconWithTrailing);
|
|
26
26
|
|
|
27
|
-
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 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n column-gap: 8px;\n vertical-align: middle;\n}\n.control
|
|
27
|
+
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 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n column-gap: 8px;\n vertical-align: middle;\n}\n.control.connotation-cta {\n --connotation: var(--vvd-color-cta);\n --on-connotation: var(--vvd-color-on-cta);\n --connotation-basis: var(--vvd-color-cta);\n --connotation-soft: var(--vvd-color-cta-20);\n --connotation-contrast: var(--vvd-color-cta-90);\n}\n.control.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n --connotation-basis: var(--vvd-color-success);\n --connotation-soft: var(--vvd-color-success-20);\n --connotation-contrast: var(--vvd-color-success-90);\n}\n.control.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n --connotation-basis: var(--vvd-color-alert);\n --connotation-soft: var(--vvd-color-alert-20);\n --connotation-contrast: var(--vvd-color-alert-90);\n}\n.control.connotation-warning {\n --connotation: var(--vvd-color-warning);\n --on-connotation: var(--vvd-color-on-warning);\n --connotation-basis: var(--vvd-color-warning);\n --connotation-soft: var(--vvd-color-warning-20);\n --connotation-contrast: var(--vvd-color-warning-90);\n}\n.control.connotation-info {\n --connotation: var(--vvd-color-info);\n --on-connotation: var(--vvd-color-on-info);\n --connotation-basis: var(--vvd-color-info);\n --connotation-soft: var(--vvd-color-info-20);\n --connotation-contrast: var(--vvd-color-info-90);\n}\n.control:not(.connotation-cta, .connotation-success, .connotation-alert, .connotation-warning, .connotation-info) {\n --connotation: var(--vvd-color-primary);\n --on-connotation: var(--vvd-color-on-primary);\n --connotation-basis: var(--vvd-color-neutral);\n --connotation-soft: var(--vvd-color-neutral-20);\n --connotation-contrast: var(--vvd-color-neutral-90);\n}\n.control {\n --_appearance-color-text: var(--on-connotation);\n --_appearance-color-fill: var(--connotation);\n --_appearance-color-outline: transaprent;\n}\n.control.appearance-duotone {\n --_appearance-color-text: var(--connotation-contrast);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: var(--connotation-basis);\n}\n.control.appearance-subtle {\n --_appearance-color-text: var(--connotation-contrast);\n --_appearance-color-fill: var(--connotation-soft);\n --_appearance-color-outline: transaprent;\n}\n\n/* Size */\n.control:not(.density-condensed):not(.density-extended) {\n block-size: 24px;\n padding-inline: 10px;\n}\n\n.control.density-condensed {\n block-size: 20px;\n padding-inline: 8px;\n}\n\n.control.density-extended {\n block-size: 28px;\n padding-inline: 12px;\n}\n\n/* Shape */\n.control:not(.shape-pill) {\n border-radius: 4px;\n}\n\n.control.shape-pill {\n border-radius: 14px;\n}\n\n/* Icon */\n.icon-trailing .icon {\n order: 1;\n}";
|
|
28
28
|
styleInject(css_248z);
|
|
29
29
|
|
|
30
30
|
let _ = t => t,
|
|
@@ -34,9 +34,9 @@ const getClasses = ({
|
|
|
34
34
|
connotation,
|
|
35
35
|
appearance,
|
|
36
36
|
shape,
|
|
37
|
-
|
|
37
|
+
density,
|
|
38
38
|
iconTrailing
|
|
39
|
-
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], [`
|
|
39
|
+
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], [`density-${density}`, Boolean(density)], ['icon-trailing', iconTrailing]);
|
|
40
40
|
|
|
41
41
|
const badgeTemplate = context => {
|
|
42
42
|
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
@@ -47,11 +47,11 @@ const badgeTemplate = context => {
|
|
|
47
47
|
</span>`), getClasses, x => affixIconTemplate(x.icon), x => x.text);
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
const
|
|
50
|
+
const vividBadge = Badge.compose({
|
|
51
51
|
baseName: 'badge',
|
|
52
52
|
template: badgeTemplate,
|
|
53
53
|
styles: css_248z
|
|
54
54
|
});
|
|
55
|
-
designSystem.register(
|
|
55
|
+
designSystem.register(vividBadge());
|
|
56
56
|
|
|
57
|
-
export {
|
|
57
|
+
export { vividBadge };
|
package/banner/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { F as FoundationElement, c as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
2
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
3
|
import '../shared/web.dom-collections.iterator.js';
|
|
4
|
+
import { C as Connotation } from '../shared/enums.js';
|
|
4
5
|
import { b as AffixIcon, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
5
6
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
6
7
|
import '../button/index.js';
|
|
@@ -11,93 +12,17 @@ import '../shared/object-set-prototype-of.js';
|
|
|
11
12
|
import '../shared/icon.js';
|
|
12
13
|
import '../shared/_has.js';
|
|
13
14
|
import '../icon/index.js';
|
|
14
|
-
import '../
|
|
15
|
+
import '../focus/index.js';
|
|
16
|
+
import '../shared/focus2.js';
|
|
17
|
+
import '../shared/focus.js';
|
|
15
18
|
import '../shared/aria-global.js';
|
|
16
19
|
import '../shared/text-anchor.js';
|
|
17
20
|
import '../shared/anchor.js';
|
|
18
21
|
import '../shared/text-anchor.template.js';
|
|
19
22
|
|
|
20
|
-
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n overflow: hidden;\n max-height: 10rem;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n transition: max-height var(--transition-delay, 200ms);\n}\n.control.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n --connotation-firm: var(--vvd-color-success-70);\n}\n
|
|
23
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n overflow: hidden;\n max-height: 10rem;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n transition: max-height var(--transition-delay, 200ms);\n}\n.control.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n --connotation-firm: var(--vvd-color-success-70);\n}\n.control.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n --connotation-firm: var(--vvd-color-alert-70);\n}\n.control.connotation-announcement {\n --connotation: var(--vvd-color-announcement);\n --on-connotation: var(--vvd-color-on-announcement);\n --connotation-firm: var(--vvd-color-announcement-70);\n}\n.control.connotation-warning {\n --connotation: var(--vvd-color-warning);\n --on-connotation: var(--vvd-color-on-warning);\n --connotation-firm: var(--vvd-color-warning-70);\n}\n.control:not(.connotation-success, .connotation-alert, .connotation-announcement, .connotation-warning) {\n --connotation: var(--vvd-color-info);\n --on-connotation: var(--vvd-color-on-info);\n --connotation-firm: var(--vvd-color-info-70);\n}\n.control {\n --_appearance-color-text: var(--on-connotation);\n --_appearance-color-fill: var(--connotation);\n --_appearance-color-outline: transaprent;\n}\n.control.removing {\n max-height: 0;\n}\n.control > .header {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n display: flex;\n min-height: 60px;\n align-items: center;\n justify-content: flex-start;\n}\n.control > .header > .user-content {\n display: flex;\n flex: 1 0;\n align-items: center;\n justify-content: center;\n padding-inline: 16px;\n}\n.control > .header > .user-content > .icon {\n flex: 0 0 auto;\n font-size: 20px;\n margin-inline-end: 15px;\n}\n.control > .header > .user-content > .action-items {\n display: inline-block;\n flex: 0 0 auto;\n padding-inline-start: 15px;\n}\n.control > .header > .user-content > .message {\n padding: 20px 0;\n}\n.control > .header > .dismiss-button {\n --vvd-icon-button-color: inherit;\n flex: 0 0 auto;\n margin-inline-end: 8px;\n}";
|
|
21
24
|
styleInject(css_248z);
|
|
22
25
|
|
|
23
|
-
var Connotation;
|
|
24
|
-
|
|
25
|
-
(function (Connotation) {
|
|
26
|
-
Connotation["Primary"] = "primary";
|
|
27
|
-
Connotation["CTA"] = "cta";
|
|
28
|
-
Connotation["Success"] = "success";
|
|
29
|
-
Connotation["Alert"] = "alert";
|
|
30
|
-
Connotation["Warning"] = "warning";
|
|
31
|
-
Connotation["Info"] = "info";
|
|
32
|
-
Connotation["Announcement"] = "announcement";
|
|
33
|
-
})(Connotation || (Connotation = {}));
|
|
34
|
-
|
|
35
|
-
var ConnotationDecorative;
|
|
36
|
-
|
|
37
|
-
(function (ConnotationDecorative) {
|
|
38
|
-
ConnotationDecorative["Pacific"] = "pacific";
|
|
39
|
-
})(ConnotationDecorative || (ConnotationDecorative = {}));
|
|
40
|
-
|
|
41
|
-
var Shape;
|
|
42
|
-
|
|
43
|
-
(function (Shape) {
|
|
44
|
-
Shape["Rounded"] = "rounded";
|
|
45
|
-
Shape["Pill"] = "pill";
|
|
46
|
-
Shape["Circled"] = "circled";
|
|
47
|
-
Shape["Sharp"] = "sharp";
|
|
48
|
-
})(Shape || (Shape = {}));
|
|
49
|
-
|
|
50
|
-
var Appearance;
|
|
51
|
-
|
|
52
|
-
(function (Appearance) {
|
|
53
|
-
Appearance["Text"] = "text";
|
|
54
|
-
Appearance["Filled"] = "filled";
|
|
55
|
-
Appearance["Outlined"] = "outlined";
|
|
56
|
-
Appearance["Duotone"] = "duotone";
|
|
57
|
-
Appearance["Subtle"] = "subtle";
|
|
58
|
-
Appearance["Ghost"] = "ghost";
|
|
59
|
-
})(Appearance || (Appearance = {}));
|
|
60
|
-
|
|
61
|
-
var BlockSize;
|
|
62
|
-
|
|
63
|
-
(function (BlockSize) {
|
|
64
|
-
BlockSize["Condensed"] = "condensed";
|
|
65
|
-
BlockSize["Normal"] = "normal";
|
|
66
|
-
BlockSize["Extended"] = "extended";
|
|
67
|
-
})(BlockSize || (BlockSize = {}));
|
|
68
|
-
|
|
69
|
-
var Size;
|
|
70
|
-
|
|
71
|
-
(function (Size) {
|
|
72
|
-
Size["Small"] = "small";
|
|
73
|
-
Size["Medium"] = "medium";
|
|
74
|
-
Size["Large"] = "large";
|
|
75
|
-
})(Size || (Size = {}));
|
|
76
|
-
|
|
77
|
-
var Position;
|
|
78
|
-
|
|
79
|
-
(function (Position) {
|
|
80
|
-
Position["Top"] = "TOP";
|
|
81
|
-
Position["Bottom"] = "BOTTOM";
|
|
82
|
-
Position["Start"] = "START";
|
|
83
|
-
Position["Center"] = "CENTER";
|
|
84
|
-
Position["End"] = "END";
|
|
85
|
-
})(Position || (Position = {}));
|
|
86
|
-
|
|
87
|
-
var Role;
|
|
88
|
-
|
|
89
|
-
(function (Role) {
|
|
90
|
-
Role["Status"] = "status";
|
|
91
|
-
Role["Alert"] = "alert";
|
|
92
|
-
})(Role || (Role = {}));
|
|
93
|
-
|
|
94
|
-
var AriaLive;
|
|
95
|
-
|
|
96
|
-
(function (AriaLive) {
|
|
97
|
-
AriaLive["Polite"] = "polite";
|
|
98
|
-
AriaLive["Assertive"] = "assertive";
|
|
99
|
-
})(AriaLive || (AriaLive = {}));
|
|
100
|
-
|
|
101
26
|
var _Banner_handleRemoveEnd, _Banner_closeOnKeyDown;
|
|
102
27
|
const connotationIconMap = new Map([[Connotation.Info, 'info-solid'], [Connotation.Announcement, 'megaphone-solid'], [Connotation.Success, 'check-circle-solid'], [Connotation.Warning, 'warning-solid'], [Connotation.Alert, 'error-solid']]);
|
|
103
28
|
|
|
@@ -184,7 +109,7 @@ const getClasses = _ => classNames('control', [`connotation-${_.connotation}`, !
|
|
|
184
109
|
function renderDismissButton() {
|
|
185
110
|
return html(_t || (_t = _2`
|
|
186
111
|
<vwc-button
|
|
187
|
-
|
|
112
|
+
density="condensed"
|
|
188
113
|
class="dismiss-button"
|
|
189
114
|
icon="close-line"
|
|
190
115
|
@click="${0}">
|