@vonage/vivid 3.0.0-next.129 → 3.0.0-next.130
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/combobox/index.js +33 -0
- package/custom-elements.json +102 -0
- package/dialog/index.js +1 -1
- package/divider/index.js +1 -1
- package/fab/index.js +1 -1
- package/header/index.js +1 -1
- package/index.js +30 -26
- package/layout/index.js +1 -1
- package/lib/combobox/combobox.d.ts +14 -0
- package/lib/combobox/combobox.template.d.ts +4 -0
- package/lib/combobox/definition.d.ts +3 -0
- package/lib/combobox/index.d.ts +1 -0
- package/lib/components.d.ts +1 -0
- package/listbox/index.js +3 -2
- package/menu/index.js +3 -3
- package/menu-item/index.js +1 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.js +1 -1
- package/number-field/index.js +4 -3
- package/option/index.js +1 -1
- package/package.json +1 -1
- package/popup/index.js +1 -1
- package/progress/index.js +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.js +1 -1
- package/shared/definition.js +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition13.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition16.js +1 -1
- package/shared/definition17.js +709 -198
- package/shared/definition18.js +1630 -64
- package/shared/definition19.js +242 -68
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +205 -40
- package/shared/definition21.js +67 -33
- package/shared/definition22.js +70 -1038
- package/shared/definition23.js +44 -247
- package/shared/definition24.js +35 -339
- package/shared/definition25.js +46 -1632
- package/shared/definition26.js +268 -271
- package/shared/definition27.js +344 -14
- package/shared/definition28.js +13 -67
- package/shared/definition29.js +65 -21
- package/shared/definition30.js +20 -45
- package/shared/definition31.js +40 -78
- package/shared/definition32.js +76 -59
- package/shared/definition33.js +67 -35
- package/shared/definition34.js +31 -421
- package/shared/definition35.js +418 -69
- package/shared/definition36.js +66 -572
- package/shared/definition37.js +526 -81
- package/shared/definition38.js +85 -217
- package/shared/definition39.js +246 -85
- package/shared/definition4.js +1 -1
- package/shared/definition40.js +110 -68
- package/shared/definition41.js +77 -0
- package/shared/definition5.js +1 -1
- package/shared/definition6.js +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.js +1 -1
- package/shared/definition9.js +1 -1
- package/shared/form-elements.js +3 -225
- package/shared/listbox.js +1002 -0
- package/shared/patterns/form-elements/form-elements.d.ts +2 -2
- package/shared/text-field.js +3 -0
- package/shared/text-field2.js +225 -0
- package/side-drawer/index.js +1 -1
- package/slider/index.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/switch/index.js +1 -1
- package/text-area/index.js +2 -1
- package/text-field/index.js +3 -1
- package/tooltip/index.js +2 -2
- package/vivid.api.json +123 -0
package/shared/definition21.js
CHANGED
|
@@ -1,44 +1,78 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate, a as attr,
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, h as html, r as registerFactory } from './index.js';
|
|
2
|
+
import { O as Orientation } from './aria.js';
|
|
2
3
|
import { c as classNames } from './class-names.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
attribute: 'auto-sizing'
|
|
19
|
-
}), __metadata("design:type", String)], Layout.prototype, "autoSizing", void 0);
|
|
5
|
+
/**
|
|
6
|
+
* Divider roles
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
const DividerRole = {
|
|
10
|
+
/**
|
|
11
|
+
* The divider semantically separates content
|
|
12
|
+
*/
|
|
13
|
+
separator: "separator",
|
|
14
|
+
/**
|
|
15
|
+
* The divider has no semantic value and is for visual presentation only.
|
|
16
|
+
*/
|
|
17
|
+
presentation: "presentation",
|
|
18
|
+
};
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* A Divider Custom HTML Element.
|
|
22
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#separator | ARIA separator } or {@link https://www.w3.org/TR/wai-aria-1.1/#presentation | ARIA presentation}.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
class Divider$1 extends FoundationElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
/**
|
|
30
|
+
* The role of the element.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
* @remarks
|
|
34
|
+
* HTML Attribute: role
|
|
35
|
+
*/
|
|
36
|
+
this.role = DividerRole.separator;
|
|
37
|
+
/**
|
|
38
|
+
* The orientation of the divider.
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
* @remarks
|
|
42
|
+
* HTML Attribute: orientation
|
|
43
|
+
*/
|
|
44
|
+
this.orientation = Orientation.horizontal;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
__decorate([
|
|
48
|
+
attr
|
|
49
|
+
], Divider$1.prototype, "role", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
attr
|
|
52
|
+
], Divider$1.prototype, "orientation", void 0);
|
|
53
|
+
|
|
54
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 05 Jan 2023 11:33:10 GMT\n */\n:host {\n display: block;\n}\n\n.base {\n display: block;\n background-color: var(--vvd-color-neutral-200);\n}\n.base:not(.vertical) {\n block-size: 1px;\n inline-size: 100%;\n}\n.base.vertical {\n block-size: 100%;\n inline-size: 1px;\n}";
|
|
55
|
+
|
|
56
|
+
class Divider extends Divider$1 {}
|
|
22
57
|
|
|
23
58
|
let _ = t => t,
|
|
24
59
|
_t;
|
|
25
60
|
const getClasses = ({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</div>`), getClasses);
|
|
61
|
+
orientation
|
|
62
|
+
}) => classNames('base', [`${orientation}`, Boolean(orientation)]);
|
|
63
|
+
const DividerTemplate = () => html(_t || (_t = _`
|
|
64
|
+
<span
|
|
65
|
+
class="${0}"
|
|
66
|
+
orientation="${0}"
|
|
67
|
+
role="${0}"
|
|
68
|
+
></span>`), getClasses, x => x.orientation, x => x.role);
|
|
35
69
|
|
|
36
|
-
const
|
|
37
|
-
baseName: '
|
|
38
|
-
template:
|
|
70
|
+
const dividerDefinition = Divider.compose({
|
|
71
|
+
baseName: 'divider',
|
|
72
|
+
template: DividerTemplate,
|
|
39
73
|
styles: css_248z
|
|
40
74
|
});
|
|
41
|
-
const
|
|
42
|
-
const
|
|
75
|
+
const dividerRegistries = [dividerDefinition()];
|
|
76
|
+
const registerDivider = registerFactory(dividerRegistries);
|
|
43
77
|
|
|
44
|
-
export {
|
|
78
|
+
export { Divider as D, dividerDefinition as a, dividerRegistries as d, registerDivider as r };
|