@vonage/vivid 3.49.0 → 3.50.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.cjs +1 -1
- package/accordion/index.js +1 -1
- package/accordion-item/index.cjs +1 -1
- package/accordion-item/index.js +1 -1
- package/alert/index.cjs +2 -2
- package/alert/index.js +2 -2
- package/audio-player/index.cjs +1 -1
- package/audio-player/index.js +1 -1
- package/banner/index.cjs +1 -1
- package/banner/index.js +1 -1
- package/breadcrumb-item/index.cjs +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.cjs +1 -2
- package/checkbox/index.js +1 -2
- package/combobox/index.cjs +3 -3
- package/combobox/index.js +3 -3
- package/custom-elements.json +797 -124
- package/date-picker/index.cjs +4 -3
- package/date-picker/index.js +4 -3
- package/date-range-picker/index.cjs +3 -2
- package/date-range-picker/index.js +3 -2
- package/dialog/index.cjs +2 -2
- package/dialog/index.js +2 -2
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +1 -1
- package/fab/index.cjs +1 -1
- package/fab/index.js +1 -1
- package/file-picker/index.cjs +1 -1
- package/file-picker/index.js +1 -1
- 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 +21 -16
- package/index.js +10 -8
- package/lib/components.d.ts +1 -0
- package/lib/time-picker/definition.d.ts +3 -0
- package/lib/time-picker/locale.d.ts +12 -0
- package/lib/time-picker/time/picker.d.ts +9 -0
- package/lib/time-picker/time/presentationTime.d.ts +5 -0
- package/lib/time-picker/time/time.d.ts +15 -0
- package/lib/time-picker/time-picker.d.ts +16 -0
- package/lib/time-picker/time-picker.form-associated.d.ts +10 -0
- package/lib/time-picker/time-picker.template.d.ts +4 -0
- package/listbox/index.cjs +1 -1
- package/listbox/index.js +1 -1
- package/locales/en-GB.cjs +15 -0
- package/locales/en-GB.js +15 -0
- package/locales/en-US.cjs +15 -0
- package/locales/en-US.js +15 -0
- package/locales/ja-JP.cjs +15 -0
- package/locales/ja-JP.js +15 -0
- package/locales/zh-CN.cjs +15 -0
- package/locales/zh-CN.js +15 -0
- package/menu/index.cjs +3 -3
- package/menu/index.js +3 -3
- package/menu-item/index.cjs +1 -1
- package/menu-item/index.js +1 -1
- package/nav-disclosure/index.cjs +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.cjs +1 -1
- package/nav-item/index.js +1 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +1 -1
- package/pagination/index.cjs +1 -1
- package/pagination/index.js +1 -1
- package/popup/index.cjs +3 -3
- package/popup/index.js +3 -3
- package/radio/index.cjs +1 -2
- package/radio/index.js +1 -2
- package/select/index.cjs +3 -3
- package/select/index.js +3 -3
- package/selectable-box/index.cjs +2 -2
- package/selectable-box/index.js +2 -2
- package/shared/date-picker/date-picker-base.d.ts +2 -2
- package/shared/definition.cjs +1 -1
- package/shared/definition.js +1 -1
- package/shared/definition11.cjs +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition14.cjs +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition15.cjs +2 -5
- package/shared/definition15.js +2 -5
- package/shared/definition16.cjs +2 -2
- package/shared/definition16.js +2 -2
- package/shared/definition18.cjs +2 -2
- package/shared/definition18.js +2 -2
- package/shared/definition19.cjs +2 -2
- package/shared/definition19.js +2 -2
- package/shared/definition20.cjs +1 -1
- package/shared/definition20.js +1 -1
- package/shared/definition23.cjs +1 -1
- package/shared/definition23.js +1 -1
- package/shared/definition24.cjs +1 -1
- package/shared/definition24.js +1 -1
- package/shared/definition25.cjs +1 -1
- package/shared/definition25.js +1 -1
- package/shared/definition28.cjs +1 -1
- package/shared/definition28.js +1 -1
- package/shared/definition29.cjs +1 -1
- package/shared/definition29.js +1 -1
- package/shared/definition30.cjs +1 -1
- package/shared/definition30.js +1 -1
- package/shared/definition31.cjs +1 -1
- package/shared/definition31.js +1 -1
- package/shared/definition35.cjs +1 -1
- package/shared/definition35.js +1 -1
- package/shared/definition4.cjs +1 -1
- package/shared/definition4.js +1 -1
- package/shared/definition40.cjs +3 -6
- package/shared/definition40.js +3 -6
- package/shared/definition41.cjs +2 -2
- package/shared/definition41.js +2 -2
- package/shared/definition42.cjs +1 -1
- package/shared/definition42.js +1 -1
- package/shared/definition44.cjs +1 -1
- package/shared/definition44.js +1 -1
- package/shared/definition45.cjs +1 -1
- package/shared/definition45.js +1 -1
- package/shared/definition46.cjs +1 -1
- package/shared/definition46.js +1 -1
- package/shared/definition48.cjs +1 -1
- package/shared/definition48.js +1 -1
- package/shared/definition5.cjs +1 -1
- package/shared/definition5.js +1 -1
- package/shared/definition51.cjs +1 -1
- package/shared/definition51.js +1 -1
- package/shared/definition52.cjs +1 -1
- package/shared/definition52.js +1 -1
- package/shared/definition53.cjs +1 -1
- package/shared/definition53.js +1 -1
- package/shared/definition54.cjs +769 -91
- package/shared/definition54.js +768 -90
- package/shared/definition55.cjs +76 -58
- package/shared/definition55.js +75 -57
- package/shared/definition56.cjs +100 -71
- package/shared/definition56.js +99 -70
- package/shared/definition57.cjs +80 -291
- package/shared/definition57.js +81 -292
- package/shared/definition58.cjs +303 -13
- package/shared/definition58.js +302 -13
- package/shared/definition59.cjs +11 -42
- package/shared/definition59.js +11 -41
- package/shared/definition60.cjs +23 -1782
- package/shared/definition60.js +22 -1781
- package/shared/definition61.cjs +1810 -0
- package/shared/definition61.js +1806 -0
- package/shared/definition9.cjs +1 -1
- package/shared/definition9.js +1 -1
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/patterns/trapped-focus.d.ts +4 -0
- package/shared/presentationDate.cjs +11 -25
- package/shared/presentationDate.js +11 -25
- package/shared/trapped-focus.cjs +29 -0
- package/shared/trapped-focus.js +27 -0
- package/slider/index.cjs +1 -1
- package/slider/index.js +1 -1
- package/split-button/index.cjs +1 -1
- package/split-button/index.js +1 -1
- package/style.css +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/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -1
- package/tab/index.cjs +1 -1
- package/tab/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +1 -1
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/index.cjs +38 -0
- package/time-picker/index.js +36 -0
- package/toggletip/index.cjs +4 -4
- package/toggletip/index.js +4 -4
- package/tooltip/index.cjs +4 -4
- package/tooltip/index.js +4 -4
- package/tree-item/index.cjs +2 -2
- package/tree-item/index.js +2 -2
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +1 -1
- package/vivid.api.json +105 -0
package/shared/definition59.cjs
CHANGED
|
@@ -1,51 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index.cjs');
|
|
4
|
-
const
|
|
4
|
+
const focus = require('./focus.cjs');
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
-
if (decorator = decorators[i])
|
|
12
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
|
-
if (kind && result)
|
|
14
|
-
__defProp(target, key, result);
|
|
15
|
-
return result;
|
|
16
|
-
};
|
|
17
|
-
class Elevation extends index.FoundationElement {
|
|
18
|
-
}
|
|
19
|
-
__decorateClass([
|
|
20
|
-
index.attr
|
|
21
|
-
], Elevation.prototype, "dp", 2);
|
|
22
|
-
__decorateClass([
|
|
23
|
-
index.attr({ attribute: "no-shadow", mode: "boolean" })
|
|
24
|
-
], Elevation.prototype, "noShadow", 2);
|
|
6
|
+
const styles = ":host{display:contents;border-radius:inherit}.control{position:absolute;z-index:1;box-sizing:border-box;border-radius:inherit;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);inset:var(--focus-inset, 0);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:-2px}\n";
|
|
25
7
|
|
|
26
|
-
const
|
|
8
|
+
const focusTemplate = () => index.html`
|
|
9
|
+
<span class="control"></span>`;
|
|
27
10
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}) => classNames.classNames(
|
|
32
|
-
"control",
|
|
33
|
-
[`dp-${dp}`, Boolean(dp)],
|
|
34
|
-
["no-shadow", Boolean(noShadow)]
|
|
35
|
-
);
|
|
36
|
-
const elevationTemplate = () => index.html`
|
|
37
|
-
<div class="${getClasses}" part="base">
|
|
38
|
-
<slot></slot>
|
|
39
|
-
</div>`;
|
|
40
|
-
|
|
41
|
-
const elevationDefinition = Elevation.compose({
|
|
42
|
-
baseName: "elevation",
|
|
43
|
-
template: elevationTemplate,
|
|
11
|
+
const focusDefinition = focus.Focus.compose({
|
|
12
|
+
baseName: "focus",
|
|
13
|
+
template: focusTemplate,
|
|
44
14
|
styles
|
|
45
15
|
});
|
|
46
|
-
const
|
|
47
|
-
const
|
|
16
|
+
const focusRegistries = [focusDefinition()];
|
|
17
|
+
const registerFocus = index.registerFactory(focusRegistries);
|
|
48
18
|
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.registerElevation = registerElevation;
|
|
19
|
+
exports.focusRegistries = focusRegistries;
|
|
20
|
+
exports.registerFocus = registerFocus;
|
package/shared/definition59.js
CHANGED
|
@@ -1,47 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { h as html, r as registerFactory } from './index.js';
|
|
2
|
+
import { F as Focus } from './focus.js';
|
|
3
3
|
|
|
4
|
-
|
|
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);
|
|
4
|
+
const styles = ":host{display:contents;border-radius:inherit}.control{position:absolute;z-index:1;box-sizing:border-box;border-radius:inherit;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);inset:var(--focus-inset, 0);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:-2px}\n";
|
|
23
5
|
|
|
24
|
-
const
|
|
6
|
+
const focusTemplate = () => html`
|
|
7
|
+
<span class="control"></span>`;
|
|
25
8
|
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
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,
|
|
9
|
+
const focusDefinition = Focus.compose({
|
|
10
|
+
baseName: "focus",
|
|
11
|
+
template: focusTemplate,
|
|
42
12
|
styles
|
|
43
13
|
});
|
|
44
|
-
const
|
|
45
|
-
const
|
|
14
|
+
const focusRegistries = [focusDefinition()];
|
|
15
|
+
const registerFocus = registerFactory(focusRegistries);
|
|
46
16
|
|
|
47
|
-
export {
|
|
17
|
+
export { focusRegistries as f, registerFocus as r };
|