@vonage/vivid 3.10.0 → 3.12.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/accordion/index.js +1 -0
- package/breadcrumb/index.js +1 -0
- package/card/index.js +1 -0
- package/combobox/index.js +1 -0
- package/custom-elements.json +297 -327
- package/data-grid/index.js +2 -1
- package/dialog/index.js +1 -0
- package/index.js +3 -2
- package/lib/enums.d.ts +10 -9
- package/lib/layout/layout.d.ts +2 -0
- package/lib/pagination/definition.d.ts +3 -0
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/pagination.d.ts +18 -0
- package/lib/pagination/pagination.template.d.ts +4 -0
- package/lib/popup/popup.d.ts +2 -2
- package/lib/tooltip/tooltip.d.ts +10 -5
- package/listbox/index.js +1 -0
- package/menu/index.js +1 -0
- package/package.json +1 -1
- package/pagination/index.js +329 -0
- package/radio-group/index.js +2 -1
- package/select/index.js +1 -0
- package/shared/children.js +1 -1
- package/shared/definition.js +3 -2
- package/shared/definition10.js +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +8 -8
- package/shared/definition13.js +2 -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 +1 -1
- package/shared/definition19.js +1 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +5 -17
- package/shared/definition21.js +1 -1
- package/shared/definition22.js +4 -3
- package/shared/definition23.js +2 -2
- package/shared/definition24.js +1 -1
- package/shared/definition25.js +1 -1
- package/shared/definition26.js +1 -1
- package/shared/definition27.js +7 -3
- package/shared/definition28.js +1 -1
- package/shared/definition30.js +10 -4
- package/shared/definition32.js +1 -1
- package/shared/definition33.js +1 -1
- package/shared/definition34.js +1 -1
- package/shared/definition35.js +1 -1
- package/shared/definition36.js +1 -1
- package/shared/definition37.js +1 -1
- package/shared/definition38.js +3 -2
- package/shared/definition39.js +1 -1
- package/shared/definition4.js +1 -1
- package/shared/definition40.js +1 -1
- package/shared/definition42.js +1 -1
- package/shared/definition43.js +1 -1
- package/shared/definition45.js +1 -1
- package/shared/definition46.js +1 -1
- package/shared/definition48.js +1 -1
- package/shared/definition5.js +1 -1
- package/shared/definition50.js +34 -26
- package/shared/definition51.js +3 -2
- package/shared/definition6.js +1 -1
- package/shared/definition7.js +5 -4
- package/shared/definition9.js +1 -1
- package/shared/enums.js +10 -9
- package/shared/form-elements.js +1 -1
- package/shared/index.js +1 -1
- package/shared/node-observation.js +74 -0
- package/shared/patterns/form-elements/form-elements.d.ts +4 -4
- package/shared/slotted.js +3 -73
- package/shared/text-field.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/tabs/index.js +1 -0
- package/tree-item/index.js +1 -0
- package/tree-view/index.js +1 -0
- package/vivid.api.json +37 -16
package/shared/definition9.js
CHANGED
|
@@ -3,7 +3,7 @@ import { B as BaseProgress } from './base-progress.js';
|
|
|
3
3
|
import { w as when } from './when.js';
|
|
4
4
|
import { c as classNames } from './class-names.js';
|
|
5
5
|
|
|
6
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
6
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 14 May 2023 08:16:54 GMT\n */\n.base {\n align-items: center;\n block-size: var(--_size);\n color: var(--_appearance-color-text);\n inline-size: var(--_size);\n outline: none;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base.size--5 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20));\n}\n.base.size--4 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 16));\n}\n.base.size--3 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 12));\n}\n.base.size--2 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 8));\n}\n.base.size--1 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 4));\n}\n.base.size-1 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 4));\n}\n.base.size-2 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8));\n}\n.base.size-3 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 12));\n}\n.base.size-4 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 16));\n}\n.base.size-5 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 20));\n}\n.base:not(.size--5, .size--4, .size--3, .size--2, .size--1, .size-1, .size-2, .size-3, .size-4, .size-5) {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 1px;\n}\n\n.determinate {\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 1px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.indeterminate-indicator-1 {\n animation: spin-infinite 2s linear infinite;\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 1px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.base.paused .indeterminate-indicator-1 {\n animation-play-state: paused;\n}\n\n@keyframes spin-infinite {\n 0% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dasharray: 21.99px 21.99px;\n transform: rotate(450deg);\n }\n 100% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(1080deg);\n }\n}";
|
|
7
7
|
|
|
8
8
|
class ProgressRing extends BaseProgress {}
|
|
9
9
|
__decorate([attr, __metadata("design:type", String)], ProgressRing.prototype, "connotation", void 0);
|
package/shared/enums.js
CHANGED
|
@@ -27,20 +27,21 @@ var Appearance;
|
|
|
27
27
|
Appearance["Fieldset"] = "fieldset";
|
|
28
28
|
Appearance["Subtle"] = "subtle";
|
|
29
29
|
Appearance["Ghost"] = "ghost";
|
|
30
|
+
Appearance["Listitem"] = "listitem";
|
|
30
31
|
})(Appearance || (Appearance = {}));
|
|
31
32
|
var Size;
|
|
32
33
|
(function (Size) {
|
|
33
|
-
Size["UltraCondensed"] = "
|
|
34
|
-
Size["SuperCondensed"] = "
|
|
35
|
-
Size["ExtraCondensed"] = "
|
|
36
|
-
Size["SemiCondensed"] = "
|
|
34
|
+
Size["UltraCondensed"] = "ultra-condensed";
|
|
35
|
+
Size["SuperCondensed"] = "super-condensed";
|
|
36
|
+
Size["ExtraCondensed"] = "extra-condensed";
|
|
37
|
+
Size["SemiCondensed"] = "semi-condensed";
|
|
37
38
|
Size["Condensed"] = "condensed";
|
|
38
39
|
Size["Normal"] = "normal";
|
|
39
|
-
Size["SemiExpanded"] = "
|
|
40
|
+
Size["SemiExpanded"] = "semi-expanded";
|
|
40
41
|
Size["Expanded"] = "expanded";
|
|
41
|
-
Size["ExtraExpanded"] = "
|
|
42
|
-
Size["SuperExpanded"] = "
|
|
43
|
-
Size["UltraExpanded"] = "
|
|
42
|
+
Size["ExtraExpanded"] = "extra-expanded";
|
|
43
|
+
Size["SuperExpanded"] = "super-expanded";
|
|
44
|
+
Size["UltraExpanded"] = "ultra-expanded";
|
|
44
45
|
})(Size || (Size = {}));
|
|
45
46
|
var LayoutSize;
|
|
46
47
|
(function (LayoutSize) {
|
|
@@ -67,4 +68,4 @@ var AriaLive;
|
|
|
67
68
|
AriaLive["Assertive"] = "assertive";
|
|
68
69
|
})(AriaLive || (AriaLive = {}));
|
|
69
70
|
|
|
70
|
-
export { Appearance as A, Connotation as C, LayoutSize as L, Position as P, Role as R, Shape as S,
|
|
71
|
+
export { Appearance as A, Connotation as C, LayoutSize as L, Position as P, Role as R, Shape as S, Size as a, ConnotationDecorative as b, AriaLive as c };
|
package/shared/form-elements.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate, a as attr, b as __metadata, o as observable, V as vola
|
|
|
2
2
|
import { I as Icon } from './icon.js';
|
|
3
3
|
import { w as when } from './when.js';
|
|
4
4
|
|
|
5
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
5
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 14 May 2023 08:16:54 GMT\n */\n.message {\n display: flex;\n contain: inline-size;\n font: var(--vvd-typography-base-condensed);\n gap: 4px;\n grid-column: 1/-1;\n}\n.message-text {\n color: var(--vvd-color-canvas-text);\n}\n.helper-message .message-text {\n color: var(--_low-ink-color);\n}\n.message-icon {\n font-size: 16px;\n}\n.success-message .message-icon {\n color: var(--vvd-color-success-500);\n}\n.error-message .message-icon {\n color: var(--vvd-color-alert-500);\n}";
|
|
6
6
|
|
|
7
7
|
let _2 = t => t,
|
|
8
8
|
_t,
|
package/shared/index.js
CHANGED
|
@@ -6567,4 +6567,4 @@ const defaultPrefix = 'vwc';
|
|
|
6567
6567
|
const designSystem = DesignSystem.getOrCreate();
|
|
6568
6568
|
const registerFactory = registries => (prefix = defaultPrefix) => designSystem.withPrefix(prefix).register(...registries);
|
|
6569
6569
|
|
|
6570
|
-
export { HTMLDirective as $, AttachedBehaviorHTMLDirective as A, hasOwnProperty_1 as B, objectGetOwnPropertyDescriptor as C, isForced_1 as D, engineV8Version as E, FoundationElement as F, _export as G, defineBuiltIn$3 as H, objectSetPrototypeOf as I, setToStringTag$2 as J, functionCall as K, internalState as L, isObject$7 as M, iterators as N, Observable as O, getMethod$1 as P, lengthOfArrayLike$1 as Q, functionName as R, AttributeConfiguration as S, requireObjectCoercible$2 as T, __classPrivateFieldGet as U, volatile as V, __classPrivateFieldSet as W, booleanConverter as X, DOM as Y, SubscriberSet as Z, __decorate as _, attr as a, HTMLView as a0, objectKeys$1 as a1, toObject$2 as a2, indexedObject as a3, objectGetOwnPropertySymbols as a4, objectPropertyIsEnumerable as a5, copyConstructorProperties$1 as a6,
|
|
6570
|
+
export { HTMLDirective as $, AttachedBehaviorHTMLDirective as A, hasOwnProperty_1 as B, objectGetOwnPropertyDescriptor as C, isForced_1 as D, engineV8Version as E, FoundationElement as F, _export as G, defineBuiltIn$3 as H, objectSetPrototypeOf as I, setToStringTag$2 as J, functionCall as K, internalState as L, isObject$7 as M, iterators as N, Observable as O, getMethod$1 as P, lengthOfArrayLike$1 as Q, functionName as R, AttributeConfiguration as S, requireObjectCoercible$2 as T, __classPrivateFieldGet as U, volatile as V, __classPrivateFieldSet as W, booleanConverter as X, DOM as Y, SubscriberSet as Z, __decorate as _, attr as a, HTMLView as a0, objectKeys$1 as a1, toObject$2 as a2, indexedObject as a3, objectGetOwnPropertySymbols as a4, objectPropertyIsEnumerable as a5, copyConstructorProperties$1 as a6, addToUnscopables$1 as a7, arrayIncludes as a8, designSystem as a9, __metadata as b, classofRaw as c, getBuiltIn$4 as d, emptyArray as e, objectDefineProperty as f, global$b as g, html as h, descriptors as i, objectIsPrototypeOf as j, functionUncurryThis as k, fails$a as l, isCallable$e as m, nullableNumberConverter as n, observable as o, inspectSource$1 as p, anObject$5 as q, registerFactory as r, isNullOrUndefined$2 as s, tryToString$1 as t, functionBindNative as u, aCallable$1 as v, wellKnownSymbol$6 as w, engineUserAgent as x, html$2 as y, documentCreateElement$2 as z };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { O as Observable, e as emptyArray } from './index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Creates a function that can be used to filter a Node array, selecting only elements.
|
|
5
|
+
* @param selector - An optional selector to restrict the filter to.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
function elements(selector) {
|
|
9
|
+
if (selector) {
|
|
10
|
+
return function (value, index, array) {
|
|
11
|
+
return value.nodeType === 1 && value.matches(selector);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return function (value, index, array) {
|
|
15
|
+
return value.nodeType === 1;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A base class for node observation.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
class NodeObservationBehavior {
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of NodeObservationBehavior.
|
|
25
|
+
* @param target - The target to assign the nodes property on.
|
|
26
|
+
* @param options - The options to use in configuring node observation.
|
|
27
|
+
*/
|
|
28
|
+
constructor(target, options) {
|
|
29
|
+
this.target = target;
|
|
30
|
+
this.options = options;
|
|
31
|
+
this.source = null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Bind this behavior to the source.
|
|
35
|
+
* @param source - The source to bind to.
|
|
36
|
+
* @param context - The execution context that the binding is operating within.
|
|
37
|
+
*/
|
|
38
|
+
bind(source) {
|
|
39
|
+
const name = this.options.property;
|
|
40
|
+
this.shouldUpdate = Observable.getAccessors(source).some((x) => x.name === name);
|
|
41
|
+
this.source = source;
|
|
42
|
+
this.updateTarget(this.computeNodes());
|
|
43
|
+
if (this.shouldUpdate) {
|
|
44
|
+
this.observe();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Unbinds this behavior from the source.
|
|
49
|
+
* @param source - The source to unbind from.
|
|
50
|
+
*/
|
|
51
|
+
unbind() {
|
|
52
|
+
this.updateTarget(emptyArray);
|
|
53
|
+
this.source = null;
|
|
54
|
+
if (this.shouldUpdate) {
|
|
55
|
+
this.disconnect();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** @internal */
|
|
59
|
+
handleEvent() {
|
|
60
|
+
this.updateTarget(this.computeNodes());
|
|
61
|
+
}
|
|
62
|
+
computeNodes() {
|
|
63
|
+
let nodes = this.getNodes();
|
|
64
|
+
if (this.options.filter !== void 0) {
|
|
65
|
+
nodes = nodes.filter(this.options.filter);
|
|
66
|
+
}
|
|
67
|
+
return nodes;
|
|
68
|
+
}
|
|
69
|
+
updateTarget(value) {
|
|
70
|
+
this.source[this.options.property] = value;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { NodeObservationBehavior as N, elements as e };
|
|
@@ -33,10 +33,10 @@ export declare function formElements<T extends {
|
|
|
33
33
|
[x: string]: any;
|
|
34
34
|
label?: string | undefined;
|
|
35
35
|
userValid: boolean;
|
|
36
|
-
"__#
|
|
36
|
+
"__#9406@#blurred": boolean;
|
|
37
37
|
readonly errorValidationMessage: any;
|
|
38
38
|
connectedCallback(): void;
|
|
39
|
-
"__#
|
|
39
|
+
"__#9406@#handleInvalidEvent": () => void;
|
|
40
40
|
disconnectedCallback(): void;
|
|
41
41
|
validate: () => void;
|
|
42
42
|
};
|
|
@@ -49,8 +49,8 @@ export declare function errorText<T extends {
|
|
|
49
49
|
new (...args: any[]): {
|
|
50
50
|
[x: string]: any;
|
|
51
51
|
errorText?: string | undefined;
|
|
52
|
-
"__#
|
|
53
|
-
"__#
|
|
52
|
+
"__#9407@#shouldValidate": boolean;
|
|
53
|
+
"__#9407@#prevSuccessText": string;
|
|
54
54
|
errorTextChanged(_: string, newmsg: string | undefined): void;
|
|
55
55
|
};
|
|
56
56
|
} & T;
|
package/shared/slotted.js
CHANGED
|
@@ -1,75 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a function that can be used to filter a Node array, selecting only elements.
|
|
5
|
-
* @param selector - An optional selector to restrict the filter to.
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
function elements(selector) {
|
|
9
|
-
if (selector) {
|
|
10
|
-
return function (value, index, array) {
|
|
11
|
-
return value.nodeType === 1 && value.matches(selector);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
return function (value, index, array) {
|
|
15
|
-
return value.nodeType === 1;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A base class for node observation.
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
class NodeObservationBehavior {
|
|
23
|
-
/**
|
|
24
|
-
* Creates an instance of NodeObservationBehavior.
|
|
25
|
-
* @param target - The target to assign the nodes property on.
|
|
26
|
-
* @param options - The options to use in configuring node observation.
|
|
27
|
-
*/
|
|
28
|
-
constructor(target, options) {
|
|
29
|
-
this.target = target;
|
|
30
|
-
this.options = options;
|
|
31
|
-
this.source = null;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Bind this behavior to the source.
|
|
35
|
-
* @param source - The source to bind to.
|
|
36
|
-
* @param context - The execution context that the binding is operating within.
|
|
37
|
-
*/
|
|
38
|
-
bind(source) {
|
|
39
|
-
const name = this.options.property;
|
|
40
|
-
this.shouldUpdate = Observable.getAccessors(source).some((x) => x.name === name);
|
|
41
|
-
this.source = source;
|
|
42
|
-
this.updateTarget(this.computeNodes());
|
|
43
|
-
if (this.shouldUpdate) {
|
|
44
|
-
this.observe();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Unbinds this behavior from the source.
|
|
49
|
-
* @param source - The source to unbind from.
|
|
50
|
-
*/
|
|
51
|
-
unbind() {
|
|
52
|
-
this.updateTarget(emptyArray);
|
|
53
|
-
this.source = null;
|
|
54
|
-
if (this.shouldUpdate) {
|
|
55
|
-
this.disconnect();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/** @internal */
|
|
59
|
-
handleEvent() {
|
|
60
|
-
this.updateTarget(this.computeNodes());
|
|
61
|
-
}
|
|
62
|
-
computeNodes() {
|
|
63
|
-
let nodes = this.getNodes();
|
|
64
|
-
if (this.options.filter !== void 0) {
|
|
65
|
-
nodes = nodes.filter(this.options.filter);
|
|
66
|
-
}
|
|
67
|
-
return nodes;
|
|
68
|
-
}
|
|
69
|
-
updateTarget(value) {
|
|
70
|
-
this.source[this.options.property] = value;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
import { A as AttachedBehaviorHTMLDirective } from './index.js';
|
|
2
|
+
import { N as NodeObservationBehavior } from './node-observation.js';
|
|
73
3
|
|
|
74
4
|
/**
|
|
75
5
|
* The runtime behavior for slotted node observation.
|
|
@@ -116,4 +46,4 @@ function slotted(propertyOrOptions) {
|
|
|
116
46
|
return new AttachedBehaviorHTMLDirective("fast-slotted", SlottedBehavior, propertyOrOptions);
|
|
117
47
|
}
|
|
118
48
|
|
|
119
|
-
export {
|
|
49
|
+
export { slotted as s };
|
package/shared/text-field.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
1
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 14 May 2023 08:16:54 GMT\n */\n:host {\n display: inline-block;\n}\n\n.base {\n --_text-field-gutter: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2))) / 2.5);\n --_text-field-icon-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2))) / 2);\n display: inline-grid;\n width: 100%;\n gap: 4px;\n grid-template-columns: min-content 1fr max-content;\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:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--_connotation-color-backdrop);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)).appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-200);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(:disabled, .disabled).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(.readonly):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-neutral-100);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(.readonly):where(:not(:disabled, .disabled)).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-600);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-backdrop: var(--vvd-color-success-50);\n --_connotation-color-intermediate: var(--vvd-color-success-500);\n --_connotation-color-firm: var(--vvd-color-success-600);\n --_connotation-color-faint: var(--vvd-color-success-50);\n --_connotation-color-soft: var(--vvd-color-success-100);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-backdrop: var(--vvd-color-alert-50);\n --_connotation-color-intermediate: var(--vvd-color-alert-500);\n --_connotation-color-firm: var(--vvd-color-alert-600);\n --_connotation-color-faint: var(--vvd-color-alert-50);\n --_connotation-color-soft: var(--vvd-color-alert-100);\n}\n.base:not(.connotation-success, .connotation-alert) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-backdrop: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-neutral-500);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base:not(.disabled) {\n --_low-ink-color: var(--vvd-color-neutral-600);\n}\n.base.disabled {\n --_low-ink-color: var(--_appearance-color-text);\n}\n\n.label {\n color: var(--vvd-color-canvas-text);\n contain: inline-size;\n font: var(--vvd-typography-base);\n grid-column: 1/4;\n grid-row: 1;\n}\n.char-count + .label {\n grid-column: 1/3;\n}\n\n.char-count {\n color: var(--_low-ink-color);\n font: var(--vvd-typography-base);\n grid-column: 3/4;\n}\n\n.fieldset {\n position: relative;\n display: flex;\n align-items: center;\n grid-column: 1/4;\n transition: color 0.2s;\n /* Shape */\n}\n.base > .fieldset {\n block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n}\n.base:not(.shape-pill) .fieldset {\n border-radius: 6px;\n}\n.base.shape-pill .fieldset {\n border-radius: 24px;\n}\n\n.control {\n width: 100%;\n border: 0 none;\n appearance: none; /* for box-shadow visibility on IOS */\n background-color: var(--_appearance-color-fill);\n block-size: 100%;\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n font: var(--vvd-typography-base);\n padding-block: 0;\n padding-inline-end: var(--_text-field-gutter);\n padding-inline-start: var(--_text-field-gutter);\n transition: box-shadow 0.2s, background-color 0.2s;\n}\n.control:disabled {\n cursor: not-allowed;\n opacity: 1; /* 2. correct opacity on iOS */\n -webkit-text-fill-color: var(--_appearance-color-text); /* 1. sets text fill to current `color` for safari */\n}\n.control::placeholder, .control:disabled::placeholder {\n opacity: 1; /* 2. correct opacity on iOS */\n -webkit-text-fill-color: var(--_low-ink-color); /* 1. sets text fill to current `color` for safari */\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n\n.icon {\n position: absolute;\n z-index: 1;\n color: var(--_low-ink-color);\n font-size: var(--_text-field-icon-size);\n inset-inline-start: var(--_text-field-gutter);\n line-height: 1;\n}\n.icon + .control {\n padding-inline-start: calc(var(--_text-field-icon-size) + var(--_text-field-gutter) * 2);\n}\n\n.focus-indicator {\n --focus-stroke-gap-color: transparent;\n pointer-events: none;\n}\n.fieldset:not(:focus-visible, :focus-within) > .focus-indicator {\n display: none;\n}";
|
|
2
2
|
|
|
3
3
|
export { css_248z as c };
|
package/styles/core/all.css
CHANGED
package/styles/core/theme.css
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Sun, 14 May 2023 08:16:54 GMT
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Sun, 14 May 2023 08:16:54 GMT
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* Do not edit directly
|
|
11
|
-
* Generated on
|
|
11
|
+
* Generated on Sun, 14 May 2023 08:16:54 GMT
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Do not edit directly
|
|
15
|
-
* Generated on
|
|
15
|
+
* Generated on Sun, 14 May 2023 08:16:54 GMT
|
|
16
16
|
*/
|
|
17
17
|
@property --vvd-size-density {
|
|
18
18
|
syntax: "<integer>";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Sun, 14 May 2023 08:16:54 GMT
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Sun, 14 May 2023 08:16:54 GMT
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* Do not edit directly
|
|
11
|
-
* Generated on
|
|
11
|
+
* Generated on Sun, 14 May 2023 08:16:54 GMT
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Do not edit directly
|
|
15
|
-
* Generated on
|
|
15
|
+
* Generated on Sun, 14 May 2023 08:16:54 GMT
|
|
16
16
|
*/
|
|
17
17
|
@property --vvd-size-density {
|
|
18
18
|
syntax: "<integer>";
|
package/tabs/index.js
CHANGED
package/tree-item/index.js
CHANGED
package/tree-view/index.js
CHANGED
package/vivid.api.json
CHANGED
|
@@ -459,6 +459,27 @@
|
|
|
459
459
|
"releaseTag": "Public",
|
|
460
460
|
"name": "Ghost"
|
|
461
461
|
},
|
|
462
|
+
{
|
|
463
|
+
"kind": "EnumMember",
|
|
464
|
+
"canonicalReference": "@vonage/vivid!Appearance.Listitem:member",
|
|
465
|
+
"docComment": "",
|
|
466
|
+
"excerptTokens": [
|
|
467
|
+
{
|
|
468
|
+
"kind": "Content",
|
|
469
|
+
"text": "Listitem = "
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"kind": "Content",
|
|
473
|
+
"text": "\"listitem\""
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"initializerTokenRange": {
|
|
477
|
+
"startIndex": 1,
|
|
478
|
+
"endIndex": 2
|
|
479
|
+
},
|
|
480
|
+
"releaseTag": "Public",
|
|
481
|
+
"name": "Listitem"
|
|
482
|
+
},
|
|
462
483
|
{
|
|
463
484
|
"kind": "EnumMember",
|
|
464
485
|
"canonicalReference": "@vonage/vivid!Appearance.Outlined:member",
|
|
@@ -4090,7 +4111,7 @@
|
|
|
4090
4111
|
"excerptTokens": [
|
|
4091
4112
|
{
|
|
4092
4113
|
"kind": "Content",
|
|
4093
|
-
"text": "anchor
|
|
4114
|
+
"text": "anchor?: "
|
|
4094
4115
|
},
|
|
4095
4116
|
{
|
|
4096
4117
|
"kind": "Content",
|
|
@@ -4107,7 +4128,7 @@
|
|
|
4107
4128
|
}
|
|
4108
4129
|
],
|
|
4109
4130
|
"isReadonly": false,
|
|
4110
|
-
"isOptional":
|
|
4131
|
+
"isOptional": true,
|
|
4111
4132
|
"releaseTag": "Public",
|
|
4112
4133
|
"name": "anchor",
|
|
4113
4134
|
"propertyTypeTokenRange": {
|
|
@@ -4124,23 +4145,23 @@
|
|
|
4124
4145
|
"excerptTokens": [
|
|
4125
4146
|
{
|
|
4126
4147
|
"kind": "Content",
|
|
4127
|
-
"text": "
|
|
4148
|
+
"text": "get anchorEl(): "
|
|
4128
4149
|
},
|
|
4129
4150
|
{
|
|
4130
4151
|
"kind": "Reference",
|
|
4131
|
-
"text": "
|
|
4132
|
-
"canonicalReference": "!
|
|
4152
|
+
"text": "HTMLElement",
|
|
4153
|
+
"canonicalReference": "!HTMLElement:interface"
|
|
4133
4154
|
},
|
|
4134
4155
|
{
|
|
4135
4156
|
"kind": "Content",
|
|
4136
|
-
"text": " | null
|
|
4157
|
+
"text": " | null"
|
|
4137
4158
|
},
|
|
4138
4159
|
{
|
|
4139
4160
|
"kind": "Content",
|
|
4140
4161
|
"text": ";"
|
|
4141
4162
|
}
|
|
4142
4163
|
],
|
|
4143
|
-
"isReadonly":
|
|
4164
|
+
"isReadonly": true,
|
|
4144
4165
|
"isOptional": false,
|
|
4145
4166
|
"releaseTag": "Public",
|
|
4146
4167
|
"name": "anchorEl",
|
|
@@ -4149,7 +4170,7 @@
|
|
|
4149
4170
|
"endIndex": 3
|
|
4150
4171
|
},
|
|
4151
4172
|
"isStatic": false,
|
|
4152
|
-
"isProtected":
|
|
4173
|
+
"isProtected": false
|
|
4153
4174
|
},
|
|
4154
4175
|
{
|
|
4155
4176
|
"kind": "Property",
|
|
@@ -7263,7 +7284,7 @@
|
|
|
7263
7284
|
},
|
|
7264
7285
|
{
|
|
7265
7286
|
"kind": "Content",
|
|
7266
|
-
"text": "\"
|
|
7287
|
+
"text": "\"extra-condensed\""
|
|
7267
7288
|
}
|
|
7268
7289
|
],
|
|
7269
7290
|
"initializerTokenRange": {
|
|
@@ -7284,7 +7305,7 @@
|
|
|
7284
7305
|
},
|
|
7285
7306
|
{
|
|
7286
7307
|
"kind": "Content",
|
|
7287
|
-
"text": "\"
|
|
7308
|
+
"text": "\"extra-expanded\""
|
|
7288
7309
|
}
|
|
7289
7310
|
],
|
|
7290
7311
|
"initializerTokenRange": {
|
|
@@ -7326,7 +7347,7 @@
|
|
|
7326
7347
|
},
|
|
7327
7348
|
{
|
|
7328
7349
|
"kind": "Content",
|
|
7329
|
-
"text": "\"
|
|
7350
|
+
"text": "\"semi-condensed\""
|
|
7330
7351
|
}
|
|
7331
7352
|
],
|
|
7332
7353
|
"initializerTokenRange": {
|
|
@@ -7347,7 +7368,7 @@
|
|
|
7347
7368
|
},
|
|
7348
7369
|
{
|
|
7349
7370
|
"kind": "Content",
|
|
7350
|
-
"text": "\"
|
|
7371
|
+
"text": "\"semi-expanded\""
|
|
7351
7372
|
}
|
|
7352
7373
|
],
|
|
7353
7374
|
"initializerTokenRange": {
|
|
@@ -7368,7 +7389,7 @@
|
|
|
7368
7389
|
},
|
|
7369
7390
|
{
|
|
7370
7391
|
"kind": "Content",
|
|
7371
|
-
"text": "\"
|
|
7392
|
+
"text": "\"super-condensed\""
|
|
7372
7393
|
}
|
|
7373
7394
|
],
|
|
7374
7395
|
"initializerTokenRange": {
|
|
@@ -7389,7 +7410,7 @@
|
|
|
7389
7410
|
},
|
|
7390
7411
|
{
|
|
7391
7412
|
"kind": "Content",
|
|
7392
|
-
"text": "\"
|
|
7413
|
+
"text": "\"super-expanded\""
|
|
7393
7414
|
}
|
|
7394
7415
|
],
|
|
7395
7416
|
"initializerTokenRange": {
|
|
@@ -7410,7 +7431,7 @@
|
|
|
7410
7431
|
},
|
|
7411
7432
|
{
|
|
7412
7433
|
"kind": "Content",
|
|
7413
|
-
"text": "\"
|
|
7434
|
+
"text": "\"ultra-condensed\""
|
|
7414
7435
|
}
|
|
7415
7436
|
],
|
|
7416
7437
|
"initializerTokenRange": {
|
|
@@ -7431,7 +7452,7 @@
|
|
|
7431
7452
|
},
|
|
7432
7453
|
{
|
|
7433
7454
|
"kind": "Content",
|
|
7434
|
-
"text": "\"
|
|
7455
|
+
"text": "\"ultra-expanded\""
|
|
7435
7456
|
}
|
|
7436
7457
|
],
|
|
7437
7458
|
"initializerTokenRange": {
|