@vonage/vivid 3.0.0-next.15 → 3.0.0-next.18
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 +3 -3
- package/banner/index.js +5 -79
- package/button/index.js +7 -650
- package/card/index.js +4 -1
- package/elevation/index.js +3 -3
- package/fab/index.js +94 -0
- package/focus/index.js +20 -3
- package/index.js +31 -19
- package/layout/index.js +3 -3
- package/lib/badge/index.d.ts +1 -1
- 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/side-drawer/index.d.ts +1 -1
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +20 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/note/index.js +65 -0
- package/package.json +25 -4
- package/popup/index.js +115 -72
- package/shared/button.js +188 -0
- package/shared/enums.js +80 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +468 -0
- package/shared/icon.js +1 -1
- package/shared/index.js +16 -1
- package/side-drawer/index.js +3 -3
- package/text-field/index.js +367 -0
- package/tooltip/index.js +4 -1
- package/shared/index2.js +0 -21
package/badge/index.js
CHANGED
|
@@ -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,7 +12,10 @@ 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/focus.js';
|
|
17
|
+
import '../shared/button.js';
|
|
18
|
+
import '../shared/focus2.js';
|
|
15
19
|
import '../shared/aria-global.js';
|
|
16
20
|
import '../shared/text-anchor.js';
|
|
17
21
|
import '../shared/anchor.js';
|
|
@@ -20,84 +24,6 @@ import '../shared/text-anchor.template.js';
|
|
|
20
24
|
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
25
|
styleInject(css_248z);
|
|
22
26
|
|
|
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 Density;
|
|
62
|
-
|
|
63
|
-
(function (Density) {
|
|
64
|
-
Density["Condensed"] = "condensed";
|
|
65
|
-
Density["Normal"] = "normal";
|
|
66
|
-
Density["Extended"] = "extended";
|
|
67
|
-
})(Density || (Density = {}));
|
|
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
27
|
var _Banner_handleRemoveEnd, _Banner_closeOnKeyDown;
|
|
102
28
|
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
29
|
|