@vonage/vivid 3.0.0-next.20 → 3.0.0-next.21
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/accordion-item/index.js +3 -0
- package/badge/index.js +3 -0
- package/banner/index.js +3 -0
- package/breadcrumb-item/index.js +3 -0
- package/button/index.js +3 -0
- package/calendar/index.js +2 -0
- package/calendar-event/index.js +130 -0
- package/card/index.js +3 -0
- package/fab/index.js +3 -0
- package/icon/index.js +2 -0
- package/index.js +4 -0
- package/lib/calendar-event/calendar-event.d.ts +12 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/components.d.ts +1 -0
- package/lib/text-field/text-field.d.ts +1 -0
- package/note/index.js +3 -0
- package/package.json +2 -1
- package/popup/index.js +6 -3
- package/progress/index.js +3 -1
- package/shared/es.object.assign.js +2 -2
- package/shared/export.js +972 -0
- package/shared/icon.js +23 -69
- package/shared/object-keys.js +13 -0
- package/shared/object-set-prototype-of.js +7 -976
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +5 -13
- package/side-drawer/index.js +2 -0
- package/sidenav-item/index.js +3 -0
- package/text/index.js +2 -0
- package/text-anchor/index.js +3 -0
- package/text-field/index.js +9 -2
- package/tooltip/index.js +3 -0
package/accordion-item/index.js
CHANGED
|
@@ -6,8 +6,11 @@ import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
|
6
6
|
import { w as when } from '../shared/when.js';
|
|
7
7
|
import { c as classNames } from '../shared/class-names.js';
|
|
8
8
|
import '../icon/index.js';
|
|
9
|
+
import '../shared/export.js';
|
|
10
|
+
import '../shared/object-keys.js';
|
|
9
11
|
import '../shared/object-set-prototype-of.js';
|
|
10
12
|
import '../shared/icon.js';
|
|
13
|
+
import '../shared/to-string.js';
|
|
11
14
|
import '../shared/_has.js';
|
|
12
15
|
|
|
13
16
|
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.body {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n padding: 8px 32px 24px 16px;\n}\n.icon:not(.icon-trailing) .body {\n padding-left: 48px;\n}\n\n.control {\n display: flex;\n flex-direction: column;\n}\n.control:not(.open) .toggle-close,\n.control:not(.open) .body {\n display: none;\n}\n.control.open .toggle-open {\n display: none;\n}\n.control.open .toggle-close {\n display: initial;\n}\n\n.header {\n padding: 0;\n margin: 0;\n}\n\n.button {\n font: 500 condensed 20px / 28px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n padding: 16px;\n border: 0 none;\n background: transparent;\n cursor: pointer;\n}\n.button:hover {\n background: var(--vvd-color-neutral-10);\n}\n.button .heading-text {\n flex-grow: 1;\n margin-inline-end: auto;\n text-align: left;\n}\n.button .meta {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n overflow: hidden;\n max-width: 20%;\n flex-shrink: 0;\n color: var(--vvd-color-neutral-70);\n margin-inline-start: 1rem;\n text-align: end;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.button .indicator {\n display: flex;\n}\n.button .indicator vwc-icon,\n.button .indicator slot[name=indicator i]::slotted(vwc-icon) {\n margin-inline-start: 16px;\n}\n.button .icon {\n margin-inline-end: 16px;\n}\n\n/* Icon */\n.icon-trailing .icon {\n order: 1;\n}";
|
package/badge/index.js
CHANGED
|
@@ -5,10 +5,13 @@ import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
|
5
5
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
6
6
|
import { c as classNames } from '../shared/class-names.js';
|
|
7
7
|
import '../shared/icon.js';
|
|
8
|
+
import '../shared/export.js';
|
|
8
9
|
import '../shared/object-set-prototype-of.js';
|
|
10
|
+
import '../shared/to-string.js';
|
|
9
11
|
import '../shared/_has.js';
|
|
10
12
|
import '../shared/when.js';
|
|
11
13
|
import '../shared/web.dom-collections.iterator.js';
|
|
14
|
+
import '../shared/object-keys.js';
|
|
12
15
|
|
|
13
16
|
class Badge extends FoundationElement {}
|
|
14
17
|
|
package/banner/index.js
CHANGED
|
@@ -8,8 +8,11 @@ import '../button/index.js';
|
|
|
8
8
|
import '../text-anchor/index.js';
|
|
9
9
|
import { w as when } from '../shared/when.js';
|
|
10
10
|
import { c as classNames } from '../shared/class-names.js';
|
|
11
|
+
import '../shared/export.js';
|
|
12
|
+
import '../shared/object-keys.js';
|
|
11
13
|
import '../shared/object-set-prototype-of.js';
|
|
12
14
|
import '../shared/icon.js';
|
|
15
|
+
import '../shared/to-string.js';
|
|
13
16
|
import '../shared/_has.js';
|
|
14
17
|
import '../icon/index.js';
|
|
15
18
|
import '../focus/index.js';
|
package/breadcrumb-item/index.js
CHANGED
|
@@ -6,13 +6,16 @@ import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
|
6
6
|
import { w as when } from '../shared/when.js';
|
|
7
7
|
import { c as classNames } from '../shared/class-names.js';
|
|
8
8
|
import '../shared/icon.js';
|
|
9
|
+
import '../shared/export.js';
|
|
9
10
|
import '../shared/object-set-prototype-of.js';
|
|
11
|
+
import '../shared/to-string.js';
|
|
10
12
|
import '../shared/_has.js';
|
|
11
13
|
import '../shared/anchor.js';
|
|
12
14
|
import '../shared/apply-mixins.js';
|
|
13
15
|
import '../shared/aria-global.js';
|
|
14
16
|
import '../shared/affix.js';
|
|
15
17
|
import '../shared/web.dom-collections.iterator.js';
|
|
18
|
+
import '../shared/object-keys.js';
|
|
16
19
|
|
|
17
20
|
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.breadcrumb-item {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n display: flex;\n align-items: center;\n color: var(--vvd-color-on-canvas);\n}\n.breadcrumb-item a {\n color: var(--vvd-color-cta-70);\n font: inherit;\n text-decoration: none;\n}\n.breadcrumb-item a:hover {\n text-decoration: underline;\n}\n.breadcrumb-item vwc-icon {\n margin: 0 16px;\n color: var(--vvd-color-neutral-70);\n font-size: 12px;\n}";
|
|
18
21
|
styleInject(css_248z);
|
package/button/index.js
CHANGED
|
@@ -10,10 +10,13 @@ import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
|
10
10
|
import { r as ref } from '../shared/aria-global.js';
|
|
11
11
|
import { c as classNames } from '../shared/class-names.js';
|
|
12
12
|
import '../shared/icon.js';
|
|
13
|
+
import '../shared/export.js';
|
|
13
14
|
import '../shared/object-set-prototype-of.js';
|
|
15
|
+
import '../shared/to-string.js';
|
|
14
16
|
import '../shared/_has.js';
|
|
15
17
|
import '../shared/when.js';
|
|
16
18
|
import '../shared/focus.js';
|
|
19
|
+
import '../shared/object-keys.js';
|
|
17
20
|
|
|
18
21
|
class Button extends Button$1 {
|
|
19
22
|
constructor() {
|
package/calendar/index.js
CHANGED
|
@@ -5,6 +5,8 @@ import '../shared/web.dom-collections.iterator.js';
|
|
|
5
5
|
import '../shared/es.object.assign.js';
|
|
6
6
|
import { b as _has, _ as _curry1, a as _curry2 } from '../shared/_has.js';
|
|
7
7
|
import '../shared/class-names.js';
|
|
8
|
+
import '../shared/export.js';
|
|
9
|
+
import '../shared/object-keys.js';
|
|
8
10
|
import '../shared/object-set-prototype-of.js';
|
|
9
11
|
|
|
10
12
|
/** @internal */
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, n as nullableNumberConverter, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
|
+
import '../shared/es.object.assign.js';
|
|
4
|
+
import { _ as _export, d as descriptors, q as global$1, y as functionUncurryThis, c as hasOwnProperty_1, i as isCallable$1, o as objectDefineProperty, P as copyConstructorProperties$1, x as objectIsPrototypeOf } from '../shared/export.js';
|
|
5
|
+
import { t as toString$1 } from '../shared/to-string.js';
|
|
6
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
7
|
+
import '../shared/object-keys.js';
|
|
8
|
+
|
|
9
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n:host {\n display: contents;\n}\n\n.base {\n /* 4 as the indentation limit */\n /* per cell divider */\n /* per cell divider */\n --vvd-calendar-event--indent: calc(0px + var(--vvd-calendar-event--overlap-count, 0) * 8px);\n position: absolute;\n z-index: var(--vvd-calendar-event--overlap-count);\n top: calc(var(--vvd-calendar-event--start, 0) * (100% - 23px) / 24 + calc(1px * var(--vvd-calendar-event--start, 0)));\n overflow: hidden;\n box-sizing: border-box;\n padding: 4px 8px;\n background-color: var(--_connotation-color-primary);\n block-size: calc(var(--vvd-calendar-event--duration, 1) * calc((100% - 23px) / 24) + calc(1px * (var(--vvd-calendar-event--duration, 1) - 1)) - 4px);\n border-radius: 6px;\n color: var(--_connotation-color-on-primary);\n inline-size: calc(100% - 8px - min(var(--vvd-calendar-event--indent), 32px));\n margin-block-start: 2px;\n margin-inline-end: 8px;\n margin-inline-start: min(var(--vvd-calendar-event--indent), 32px);\n max-block-size: calc(100% - calc(var(--vvd-calendar-event--start, 0) * (100% - 23px) / 24 + calc(1px * var(--vvd-calendar-event--start, 0))) - 4px);\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n --_connotation-color-on-primary: var(--vvd-color-on-cta);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n --_connotation-color-on-primary: var(--vvd-color-on-success);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n --_connotation-color-on-primary: var(--vvd-color-on-alert);\n}\n.base.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning);\n --_connotation-color-on-primary: var(--vvd-color-on-warning);\n}\n.base.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n --_connotation-color-on-primary: var(--vvd-color-on-info);\n}\n.base.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement);\n --_connotation-color-on-primary: var(--vvd-color-on-announcement);\n}\n.base:not(.connotation-cta, .connotation-success, .connotation-alert, .connotation-warning, .connotation-info, .connotation-announcement) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-on-primary: var(--vvd-color-canvas);\n}\n@supports (contain: content) {\n .base {\n contain: strict;\n }\n}\n@supports not (contain: content) {\n .base {\n overflow: hidden;\n }\n}\n.base:focus {\n z-index: 2000;\n filter: var(--vvd-shadow-surface-8dp);\n outline: none;\n}\n\nh2 {\n font: 600 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n margin: 0;\n}\nh2 > strong {\n font: inherit;\n}\n\np {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n margin: 0;\n}";
|
|
10
|
+
styleInject(css_248z);
|
|
11
|
+
|
|
12
|
+
class CalendarEvent extends FoundationElement {}
|
|
13
|
+
|
|
14
|
+
__decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "heading", void 0);
|
|
15
|
+
|
|
16
|
+
__decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "description", void 0);
|
|
17
|
+
|
|
18
|
+
__decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "connotation", void 0);
|
|
19
|
+
|
|
20
|
+
__decorate([attr({
|
|
21
|
+
converter: nullableNumberConverter,
|
|
22
|
+
attribute: 'overlap-count'
|
|
23
|
+
}), __metadata("design:type", Number)], CalendarEvent.prototype, "overlapCount", void 0);
|
|
24
|
+
|
|
25
|
+
__decorate([attr({
|
|
26
|
+
converter: nullableNumberConverter
|
|
27
|
+
}), __metadata("design:type", Number)], CalendarEvent.prototype, "start", void 0);
|
|
28
|
+
|
|
29
|
+
__decorate([attr({
|
|
30
|
+
converter: nullableNumberConverter
|
|
31
|
+
}), __metadata("design:type", Number)], CalendarEvent.prototype, "duration", void 0);
|
|
32
|
+
|
|
33
|
+
var $ = _export;
|
|
34
|
+
var DESCRIPTORS = descriptors;
|
|
35
|
+
var global = global$1;
|
|
36
|
+
var uncurryThis = functionUncurryThis;
|
|
37
|
+
var hasOwn = hasOwnProperty_1;
|
|
38
|
+
var isCallable = isCallable$1;
|
|
39
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
40
|
+
var toString = toString$1;
|
|
41
|
+
var defineProperty = objectDefineProperty.f;
|
|
42
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
43
|
+
|
|
44
|
+
var NativeSymbol = global.Symbol;
|
|
45
|
+
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
46
|
+
|
|
47
|
+
if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
48
|
+
// Safari 12 bug
|
|
49
|
+
NativeSymbol().description !== undefined
|
|
50
|
+
)) {
|
|
51
|
+
var EmptyStringDescriptionStore = {};
|
|
52
|
+
// wrap Symbol constructor for correct work with undefined description
|
|
53
|
+
var SymbolWrapper = function Symbol() {
|
|
54
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
|
|
55
|
+
var result = isPrototypeOf(SymbolPrototype, this)
|
|
56
|
+
? new NativeSymbol(description)
|
|
57
|
+
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
58
|
+
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
59
|
+
if (description === '') EmptyStringDescriptionStore[result] = true;
|
|
60
|
+
return result;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
64
|
+
SymbolWrapper.prototype = SymbolPrototype;
|
|
65
|
+
SymbolPrototype.constructor = SymbolWrapper;
|
|
66
|
+
|
|
67
|
+
var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
68
|
+
var symbolToString = uncurryThis(SymbolPrototype.toString);
|
|
69
|
+
var symbolValueOf = uncurryThis(SymbolPrototype.valueOf);
|
|
70
|
+
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
71
|
+
var replace = uncurryThis(''.replace);
|
|
72
|
+
var stringSlice = uncurryThis(''.slice);
|
|
73
|
+
|
|
74
|
+
defineProperty(SymbolPrototype, 'description', {
|
|
75
|
+
configurable: true,
|
|
76
|
+
get: function description() {
|
|
77
|
+
var symbol = symbolValueOf(this);
|
|
78
|
+
var string = symbolToString(symbol);
|
|
79
|
+
if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
|
|
80
|
+
var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
|
|
81
|
+
return desc === '' ? undefined : desc;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
$({ global: true, constructor: true, forced: true }, {
|
|
86
|
+
Symbol: SymbolWrapper
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
let _ = t => t,
|
|
91
|
+
_t;
|
|
92
|
+
|
|
93
|
+
const getClasses = ({
|
|
94
|
+
connotation
|
|
95
|
+
}) => classNames('base', [`connotation-${connotation}`, Boolean(connotation)]);
|
|
96
|
+
|
|
97
|
+
const getStyles = ({
|
|
98
|
+
start,
|
|
99
|
+
duration,
|
|
100
|
+
overlapCount
|
|
101
|
+
}) => {
|
|
102
|
+
const stylesObj = Object.assign(Object.assign(Object.assign({}, overlapCount && {
|
|
103
|
+
'--vvd-calendar-event--overlap-count': overlapCount
|
|
104
|
+
}), start && {
|
|
105
|
+
'--vvd-calendar-event--start': start
|
|
106
|
+
}), duration && {
|
|
107
|
+
'--vvd-calendar-event--duration': duration
|
|
108
|
+
});
|
|
109
|
+
return Object.entries(stylesObj).map(entry => entry.join(':')).join(';');
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const CalendarEventTemplate = () => html(_t || (_t = _`
|
|
113
|
+
<section
|
|
114
|
+
style="${0}"
|
|
115
|
+
class="${0}"
|
|
116
|
+
role="button"
|
|
117
|
+
tabindex="0"
|
|
118
|
+
>
|
|
119
|
+
<h2><strong>${0}</strong></h2>
|
|
120
|
+
<p>${0}</p>
|
|
121
|
+
</section>`), getStyles, getClasses, x => x.heading, x => x.description);
|
|
122
|
+
|
|
123
|
+
const vividCalendarEvent = CalendarEvent.compose({
|
|
124
|
+
baseName: 'calendar-event',
|
|
125
|
+
template: CalendarEventTemplate,
|
|
126
|
+
styles: css_248z
|
|
127
|
+
});
|
|
128
|
+
designSystem.register(vividCalendarEvent());
|
|
129
|
+
|
|
130
|
+
export { vividCalendarEvent };
|
package/card/index.js
CHANGED
|
@@ -7,11 +7,14 @@ import { s as slotted } from '../shared/slotted.js';
|
|
|
7
7
|
import { w as when } from '../shared/when.js';
|
|
8
8
|
import { c as classNames } from '../shared/class-names.js';
|
|
9
9
|
import '../shared/icon.js';
|
|
10
|
+
import '../shared/export.js';
|
|
10
11
|
import '../shared/object-set-prototype-of.js';
|
|
12
|
+
import '../shared/to-string.js';
|
|
11
13
|
import '../shared/_has.js';
|
|
12
14
|
import '../focus/index.js';
|
|
13
15
|
import '../shared/focus.js';
|
|
14
16
|
import '../shared/web.dom-collections.iterator.js';
|
|
17
|
+
import '../shared/object-keys.js';
|
|
15
18
|
import '../shared/affix.js';
|
|
16
19
|
import '../shared/button.js';
|
|
17
20
|
import '../shared/apply-mixins.js';
|
package/fab/index.js
CHANGED
|
@@ -9,11 +9,14 @@ import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
|
9
9
|
import { r as ref } from '../shared/aria-global.js';
|
|
10
10
|
import { c as classNames } from '../shared/class-names.js';
|
|
11
11
|
import '../shared/icon.js';
|
|
12
|
+
import '../shared/export.js';
|
|
12
13
|
import '../shared/object-set-prototype-of.js';
|
|
14
|
+
import '../shared/to-string.js';
|
|
13
15
|
import '../shared/_has.js';
|
|
14
16
|
import '../shared/when.js';
|
|
15
17
|
import '../shared/focus.js';
|
|
16
18
|
import '../shared/web.dom-collections.iterator.js';
|
|
19
|
+
import '../shared/object-keys.js';
|
|
17
20
|
|
|
18
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 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n --_fab-block-size: 48px;\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: 24px;\n}\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus) .focus-indicator {\n display: none;\n}";
|
|
19
22
|
styleInject(css_248z);
|
package/icon/index.js
CHANGED
|
@@ -3,7 +3,9 @@ import { s as styleInject } from '../shared/style-inject.es.js';
|
|
|
3
3
|
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
|
+
import '../shared/export.js';
|
|
6
7
|
import '../shared/object-set-prototype-of.js';
|
|
8
|
+
import '../shared/to-string.js';
|
|
7
9
|
import '../shared/_has.js';
|
|
8
10
|
|
|
9
11
|
var css_248z = ":host {\n display: inline-block;\n vertical-align: sub;\n}\n\n.control {\n display: flex;\n margin: unset;\n color: currentColor;\n contain: strict;\n}\n.control.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.control.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n}\n\n.control[class*=connotation] {\n color: var(--_connotation-color-basis);\n}\n\nsvg {\n margin: auto;\n block-size: inherit;\n inline-size: inherit;\n}\n\n/* Size */\n.control:not(.size-small):not(.size-medium):not(.size-large) {\n block-size: 1em;\n inline-size: 1em;\n}\n\n.control.size-small {\n block-size: 16px;\n inline-size: 16px;\n}\n\n.control.size-medium {\n block-size: 24px;\n inline-size: 24px;\n}\n\n.control.size-large {\n block-size: 32px;\n inline-size: 32px;\n}";
|
package/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export { vividBreadcrumb } from './breadcrumb/index.js';
|
|
|
7
7
|
export { vividBreadcrumbItem } from './breadcrumb-item/index.js';
|
|
8
8
|
export { vividButton } from './button/index.js';
|
|
9
9
|
export { vividCalendar } from './calendar/index.js';
|
|
10
|
+
export { vividCalendarEvent } from './calendar-event/index.js';
|
|
10
11
|
export { vividCard } from './card/index.js';
|
|
11
12
|
export { vividElevation } from './elevation/index.js';
|
|
12
13
|
export { vividFab } from './fab/index.js';
|
|
@@ -25,9 +26,12 @@ export { d as designSystem, p as provideVividDesignSystem } from './shared/index
|
|
|
25
26
|
import './shared/style-inject.es.js';
|
|
26
27
|
import './shared/class-names.js';
|
|
27
28
|
import './shared/web.dom-collections.iterator.js';
|
|
29
|
+
import './shared/export.js';
|
|
30
|
+
import './shared/object-keys.js';
|
|
28
31
|
import './shared/object-set-prototype-of.js';
|
|
29
32
|
import './shared/affix.js';
|
|
30
33
|
import './shared/icon.js';
|
|
34
|
+
import './shared/to-string.js';
|
|
31
35
|
import './shared/_has.js';
|
|
32
36
|
import './shared/apply-mixins.js';
|
|
33
37
|
import './shared/when.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Connotation } from '../enums';
|
|
3
|
+
declare type CalendarEventConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Warning | Connotation.Info | Connotation.Announcement>;
|
|
4
|
+
export declare class CalendarEvent extends FoundationElement {
|
|
5
|
+
heading?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
connotation?: CalendarEventConnotation;
|
|
8
|
+
overlapCount?: number;
|
|
9
|
+
start?: number;
|
|
10
|
+
duration?: number;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { CalendarEvent } from './calendar-event';
|
|
4
|
+
export declare const CalendarEventTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<CalendarEvent>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividCalendarEvent: (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/lib/components.d.ts
CHANGED
package/note/index.js
CHANGED
|
@@ -9,8 +9,11 @@ import { C as Connotation } from '../shared/enums.js';
|
|
|
9
9
|
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
|
+
import '../shared/export.js';
|
|
12
13
|
import '../shared/object-set-prototype-of.js';
|
|
14
|
+
import '../shared/to-string.js';
|
|
13
15
|
import '../shared/_has.js';
|
|
16
|
+
import '../shared/object-keys.js';
|
|
14
17
|
|
|
15
18
|
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.base {\n display: flex;\n align-items: stretch;\n padding: 20px;\n border-left: 8px solid var(--_connotation-color-primary);\n background-color: var(--vvd-color-canvas);\n border-radius: 6px;\n box-shadow: inset 0 1px 0 0 var(--vvd-color-neutral-40), inset -1px 0 0 0 var(--vvd-color-neutral-40), inset 0 -1px 0 0 var(--vvd-color-neutral-40);\n color: var(--vvd-color-on-canvas);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.base.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.base.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning);\n}\n.base:not(.connotation-success, .connotation-info, .connotation-alert, .connotation-warning) {\n --_connotation-color-primary: var(--vvd-color-announcement);\n}\n@supports (contain: content) {\n .base {\n contain: content;\n }\n}\n@supports not (contain: content) {\n .base {\n overflow: hidden;\n }\n}\n\n.icon {\n align-self: flex-start;\n font-size: 24px;\n margin-inline-end: 16px;\n}\n\n.text {\n display: flex;\n min-height: 24px;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n gap: 4px;\n text-align: start;\n}\n.text .heading {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.text .message {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}";
|
|
16
19
|
styleInject(css_248z);
|
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.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./index.esm.js",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"./breadcrumb-item": "./breadcrumb-item",
|
|
15
15
|
"./button": "./button",
|
|
16
16
|
"./calendar": "./calendar",
|
|
17
|
+
"./calendar-event": "./calendar-event",
|
|
17
18
|
"./card": "./card",
|
|
18
19
|
"./elevation": "./elevation",
|
|
19
20
|
"./fab": "./fab",
|
package/popup/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import '../elevation/index.js';
|
|
2
2
|
import '../button/index.js';
|
|
3
3
|
import { F as FoundationElement, c as __classPrivateFieldGet, g as __classPrivateFieldSet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { s as speciesConstructor$1, f as functionApply } from '../shared/icon.js';
|
|
5
|
+
import { o as objectCreate } from '../shared/web.dom-collections.iterator.js';
|
|
6
6
|
import '../shared/es.object.assign.js';
|
|
7
|
-
import {
|
|
7
|
+
import { a as anObject$3, f as fails$5, q as global$3, m as functionCall, y as functionUncurryThis, Q as shared$1, p as internalState, _ as _export, w as wellKnownSymbol$2, j as defineBuiltIn$1, l as createNonEnumerableProperty$1, H as isObject$1, r as classofRaw, K as requireObjectCoercible$2, R as toIntegerOrInfinity$1, S as toPropertyKey$1, o as objectDefineProperty, k as createPropertyDescriptor$1, J as lengthOfArrayLike$1, T as toAbsoluteIndex$1, i as isCallable$1, U as toLength$1, I as getMethod$1 } from '../shared/export.js';
|
|
8
|
+
import { t as toString$3 } from '../shared/to-string.js';
|
|
8
9
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
9
10
|
import { w as when } from '../shared/when.js';
|
|
10
11
|
import { r as ref } from '../shared/aria-global.js';
|
|
11
12
|
import { c as classNames } from '../shared/class-names.js';
|
|
12
13
|
import '../icon/index.js';
|
|
14
|
+
import '../shared/object-set-prototype-of.js';
|
|
13
15
|
import '../shared/_has.js';
|
|
14
16
|
import '../focus/index.js';
|
|
15
17
|
import '../shared/focus.js';
|
|
@@ -17,6 +19,7 @@ import '../shared/affix.js';
|
|
|
17
19
|
import '../shared/button.js';
|
|
18
20
|
import '../shared/apply-mixins.js';
|
|
19
21
|
import '../shared/focus2.js';
|
|
22
|
+
import '../shared/object-keys.js';
|
|
20
23
|
|
|
21
24
|
var anObject$2 = anObject$3;
|
|
22
25
|
|
package/progress/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { _ 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 {
|
|
4
|
+
import { r as classofRaw, _ as _export, y as functionUncurryThis } from '../shared/export.js';
|
|
5
5
|
import { B as BaseProgress } from '../shared/base-progress.js';
|
|
6
6
|
import { w as when } from '../shared/when.js';
|
|
7
7
|
import { c as classNames } from '../shared/class-names.js';
|
|
8
|
+
import '../shared/object-keys.js';
|
|
9
|
+
import '../shared/object-set-prototype-of.js';
|
|
8
10
|
|
|
9
11
|
var css_248z = ".base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base:not(.connotation-pacific).connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.base:not(.connotation-pacific).connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.base:not(.connotation-pacific).connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.base:not(.connotation-pacific):not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.base.connotation-pacific {\n --_connotation-color-primary: linear-gradient(to right, var(--vvd-color-info-30), var(--vvd-color-cta-70));\n}\n\n.indeterminate {\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 100%;\n border-radius: 3px;\n}\n\n.progress {\n position: relative;\n display: flex;\n align-items: center;\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 100%;\n}\n.progress .indeterminate {\n background-color: var(--_connotation-color-primary);\n}\n\n.determinate {\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: 3px;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--_connotation-color-primary);\n}\n\n.indeterminate-indicator-1, .indeterminate-indicator-2 {\n position: absolute;\n animation: indeterminate-1 2s infinite;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 30%;\n opacity: 0;\n}\n\n.indeterminate-indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.connotation-pacific .indeterminate-indicator-1, .connotation-pacific .indeterminate-indicator-2 {\n background-image: var(--_connotation-color-primary);\n}\n\n.reverse .indeterminate-indicator-1, .reverse .indeterminate-indicator-2 {\n animation-direction: reverse;\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n\n.base.shape-sharp .determinate, .base.shape-sharp .indeterminate {\n border-radius: 0;\n}\n\n.base.paused .indeterminate-indicator-1,\n.base.paused .indeterminate-indicator-2 {\n animation-play-state: paused;\n background-color: var(--_connotation-color-primary);\n}\n\n.base.paused .determinate {\n background-color: var(--vvd-color-neutral-40);\n}\n\n@keyframes indeterminate-1 {\n 0% {\n opacity: 1;\n transform: translateX(-100%);\n }\n 70% {\n opacity: 1;\n transform: translateX(300%);\n }\n 70.01% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateX(300%);\n }\n}\n@keyframes indeterminate-2 {\n 0% {\n opacity: 0;\n transform: translateX(-150%);\n }\n 29.99% {\n opacity: 0;\n }\n 30% {\n opacity: 1;\n transform: translateX(-150%);\n }\n 100% {\n opacity: 1;\n transform: translateX(166.66%);\n }\n}";
|
|
10
12
|
styleInject(css_248z);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as descriptors,
|
|
2
|
-
import { o as objectKeys$1 } from './
|
|
1
|
+
import { d as descriptors, y as functionUncurryThis, m as functionCall, f as fails$1, g as toObject$1, M as indexedObject, N as objectGetOwnPropertySymbols, O as objectPropertyIsEnumerable, _ as _export } from './export.js';
|
|
2
|
+
import { o as objectKeys$1 } from './object-keys.js';
|
|
3
3
|
|
|
4
4
|
var DESCRIPTORS = descriptors;
|
|
5
5
|
var uncurryThis = functionUncurryThis;
|