@vonage/vivid 3.50.0 → 3.50.1
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.cjs +0 -2
- package/accordion/index.js +0 -2
- package/accordion-item/index.cjs +0 -2
- package/accordion-item/index.js +0 -2
- package/alert/index.cjs +1 -3
- package/alert/index.js +1 -3
- package/audio-player/index.cjs +0 -2
- package/audio-player/index.js +0 -2
- package/banner/index.cjs +0 -2
- package/banner/index.js +0 -2
- package/breadcrumb-item/index.cjs +0 -2
- package/breadcrumb-item/index.js +0 -2
- package/button/index.cjs +0 -2
- package/button/index.js +0 -2
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.cjs +0 -2
- package/checkbox/index.js +0 -2
- package/combobox/index.cjs +6 -6
- package/combobox/index.js +6 -6
- package/custom-elements.json +33 -187
- package/data-grid/index.cjs +0 -2
- package/data-grid/index.js +0 -2
- package/date-picker/index.cjs +4 -4
- package/date-picker/index.js +4 -4
- package/date-range-picker/index.cjs +3 -3
- package/date-range-picker/index.js +3 -3
- package/dialog/index.cjs +1 -4
- package/dialog/index.js +1 -4
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +1 -1
- package/fab/index.cjs +0 -2
- package/fab/index.js +0 -2
- package/file-picker/index.cjs +1 -2
- package/file-picker/index.js +1 -2
- package/focus/index.cjs +1 -1
- package/focus/index.js +1 -1
- package/header/index.cjs +1 -1
- package/header/index.js +1 -1
- package/index.cjs +3 -3
- package/index.js +3 -3
- package/lib/file-picker/file-picker.d.ts +2 -2
- package/lib/menu/definition.d.ts +2 -2
- package/lib/radio-group/definition.d.ts +2 -2
- package/lib/switch/switch.d.ts +2 -2
- package/listbox/index.cjs +4 -12
- package/listbox/index.js +4 -12
- package/menu/index.cjs +2 -4
- package/menu/index.js +2 -4
- package/menu-item/index.cjs +0 -2
- package/menu-item/index.js +0 -2
- package/nav-disclosure/index.cjs +0 -2
- package/nav-disclosure/index.js +0 -2
- package/nav-item/index.cjs +0 -2
- package/nav-item/index.js +0 -2
- package/number-field/index.cjs +1 -2
- package/number-field/index.js +1 -2
- package/option/index.cjs +0 -5
- package/option/index.js +0 -5
- package/package.json +1 -1
- package/pagination/index.cjs +0 -2
- package/pagination/index.js +0 -2
- package/popup/index.cjs +2 -4
- package/popup/index.js +2 -4
- package/radio/index.cjs +0 -2
- package/radio/index.js +0 -2
- package/select/index.cjs +2 -5
- package/select/index.js +2 -5
- package/selectable-box/index.cjs +0 -3
- package/selectable-box/index.js +0 -3
- package/shared/definition.cjs +2 -6
- package/shared/definition.js +2 -6
- package/shared/definition11.cjs +1 -2
- package/shared/definition11.js +1 -2
- package/shared/definition14.cjs +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition15.cjs +2 -3
- package/shared/definition15.js +2 -3
- package/shared/definition16.cjs +2 -2
- package/shared/definition16.js +2 -2
- package/shared/definition17.cjs +1 -4
- package/shared/definition17.js +1 -4
- package/shared/definition18.cjs +3 -5
- package/shared/definition18.js +1 -3
- package/shared/definition19.cjs +3 -5
- package/shared/definition19.js +1 -3
- package/shared/definition20.cjs +2 -5
- package/shared/definition20.js +2 -5
- package/shared/definition23.cjs +1 -2
- package/shared/definition23.js +1 -2
- package/shared/definition24.cjs +2 -5
- package/shared/definition24.js +2 -5
- package/shared/definition25.cjs +1 -1
- package/shared/definition25.js +1 -1
- package/shared/definition28.cjs +2 -3
- package/shared/definition28.js +2 -3
- package/shared/definition29.cjs +1 -1
- package/shared/definition29.js +1 -1
- package/shared/definition30.cjs +2 -3
- package/shared/definition30.js +2 -3
- package/shared/definition31.cjs +2 -3
- package/shared/definition31.js +2 -3
- package/shared/definition34.cjs +1 -1
- package/shared/definition34.js +1 -1
- package/shared/definition35.cjs +2 -7
- package/shared/definition35.js +2 -7
- package/shared/definition4.cjs +4 -4
- package/shared/definition4.js +5 -5
- package/shared/definition40.cjs +1 -2
- package/shared/definition40.js +1 -2
- package/shared/definition41.cjs +6 -7
- package/shared/definition41.js +5 -6
- package/shared/definition42.cjs +5 -10
- package/shared/definition42.js +3 -8
- package/shared/definition44.cjs +1 -2
- package/shared/definition44.js +1 -2
- package/shared/definition45.cjs +1 -2
- package/shared/definition45.js +1 -2
- package/shared/definition46.cjs +1 -2
- package/shared/definition46.js +1 -2
- package/shared/definition48.cjs +2 -6
- package/shared/definition48.js +2 -6
- package/shared/definition5.cjs +1 -2
- package/shared/definition5.js +1 -2
- package/shared/definition51.cjs +2 -6
- package/shared/definition51.js +2 -6
- package/shared/definition52.cjs +2 -3
- package/shared/definition52.js +2 -3
- package/shared/definition53.cjs +1 -1
- package/shared/definition53.js +1 -1
- package/shared/definition54.cjs +1 -1
- package/shared/definition54.js +1 -1
- package/shared/definition55.cjs +1 -1
- package/shared/definition55.js +1 -1
- package/shared/definition56.cjs +1 -1
- package/shared/definition56.js +1 -1
- package/shared/definition57.cjs +2 -6
- package/shared/definition57.js +2 -6
- package/shared/definition59.cjs +42 -11
- package/shared/definition59.js +41 -11
- package/shared/definition60.cjs +1782 -23
- package/shared/definition60.js +1781 -22
- package/shared/definition61.cjs +11 -1801
- package/shared/definition61.js +11 -1800
- package/shared/definition9.cjs +1 -2
- package/shared/definition9.js +1 -2
- package/shared/icon.cjs +1 -1
- package/shared/icon.js +1 -1
- package/shared/presentationDate.cjs +6 -11
- package/shared/presentationDate.js +6 -11
- package/shared/text-field.cjs +1 -1
- package/shared/text-field.js +1 -1
- package/slider/index.cjs +0 -2
- package/slider/index.js +0 -2
- package/split-button/index.cjs +0 -2
- package/split-button/index.js +0 -2
- 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/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/index.cjs +0 -2
- package/switch/index.js +0 -2
- package/tab/index.cjs +0 -3
- package/tab/index.js +0 -3
- package/tabs/index.cjs +0 -3
- package/tabs/index.js +0 -3
- package/tag/index.cjs +0 -3
- package/tag/index.js +0 -3
- package/text-area/index.cjs +0 -2
- package/text-area/index.js +0 -2
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/index.cjs +3 -3
- package/time-picker/index.js +3 -3
- package/toggletip/index.cjs +2 -4
- package/toggletip/index.js +2 -4
- package/tooltip/index.cjs +2 -4
- package/tooltip/index.js +2 -4
- package/tree-item/index.cjs +0 -3
- package/tree-item/index.js +0 -3
- package/vivid.api.json +6 -42
- package/style.css +0 -1
package/shared/definition59.js
CHANGED
|
@@ -1,17 +1,47 @@
|
|
|
1
|
-
import { h as html, r as registerFactory } from './index.js';
|
|
2
|
-
import {
|
|
1
|
+
import { a as attr, F as FoundationElement, h as html, r as registerFactory } from './index.js';
|
|
2
|
+
import { c as classNames } from './class-names.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
8
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9
|
+
if (decorator = decorators[i])
|
|
10
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11
|
+
if (kind && result)
|
|
12
|
+
__defProp(target, key, result);
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
class Elevation extends FoundationElement {
|
|
16
|
+
}
|
|
17
|
+
__decorateClass([
|
|
18
|
+
attr
|
|
19
|
+
], Elevation.prototype, "dp", 2);
|
|
20
|
+
__decorateClass([
|
|
21
|
+
attr({ attribute: "no-shadow", mode: "boolean" })
|
|
22
|
+
], Elevation.prototype, "noShadow", 2);
|
|
5
23
|
|
|
6
|
-
const
|
|
7
|
-
<span class="control"></span>`;
|
|
24
|
+
const styles = ":host{display:contents}.control{display:contents}.control.dp-0{--_elevation-fill: var(--vvd-color-surface-0dp);--_elevation-shadow: var(--vvd-shadow-surface-0dp)}.control.dp-4{--_elevation-fill: var(--vvd-color-surface-4dp);--_elevation-shadow: var(--vvd-shadow-surface-4dp)}.control.dp-8{--_elevation-fill: var(--vvd-color-surface-8dp);--_elevation-shadow: var(--vvd-shadow-surface-8dp)}.control.dp-12{--_elevation-fill: var(--vvd-color-surface-12dp);--_elevation-shadow: var(--vvd-shadow-surface-12dp)}.control.dp-16{--_elevation-fill: var(--vvd-color-surface-16dp);--_elevation-shadow: var(--vvd-shadow-surface-16dp)}.control.dp-24{--_elevation-fill: var(--vvd-color-surface-24dp);--_elevation-shadow: var(--vvd-shadow-surface-24dp)}.control:not(.dp-0,.dp-4,.dp-8,.dp-12,.dp-16,.dp-24){--_elevation-fill: var(--vvd-color-surface-2dp);--_elevation-shadow: var(--vvd-shadow-surface-2dp)}.control ::slotted(*){position:relative;isolation:isolate}.control ::slotted(*):before{position:absolute;z-index:-1;background:var(--_elevation-fill);block-size:100%;border-radius:inherit;content:\"\";filter:var(--_elevation-shadow);inline-size:100%;inset-block-start:0;inset-inline-start:0;transition:background-color .15s linear,filter .15s linear}.control.no-shadow ::slotted(*):before{filter:none}\n";
|
|
8
25
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
26
|
+
const getClasses = ({
|
|
27
|
+
dp,
|
|
28
|
+
noShadow
|
|
29
|
+
}) => classNames(
|
|
30
|
+
"control",
|
|
31
|
+
[`dp-${dp}`, Boolean(dp)],
|
|
32
|
+
["no-shadow", Boolean(noShadow)]
|
|
33
|
+
);
|
|
34
|
+
const elevationTemplate = () => html`
|
|
35
|
+
<div class="${getClasses}" part="base">
|
|
36
|
+
<slot></slot>
|
|
37
|
+
</div>`;
|
|
38
|
+
|
|
39
|
+
const elevationDefinition = Elevation.compose({
|
|
40
|
+
baseName: "elevation",
|
|
41
|
+
template: elevationTemplate,
|
|
12
42
|
styles
|
|
13
43
|
});
|
|
14
|
-
const
|
|
15
|
-
const
|
|
44
|
+
const elevationRegistries = [elevationDefinition()];
|
|
45
|
+
const registerElevation = registerFactory(elevationRegistries);
|
|
16
46
|
|
|
17
|
-
export {
|
|
47
|
+
export { Elevation as E, elevationRegistries as e, registerElevation as r };
|