@vonage/vivid 3.0.0-next.9 → 3.0.0-next.90
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/README.md +141 -4
- package/accordion/index.js +3 -12
- package/accordion-item/index.js +30 -38
- package/action-group/index.js +41 -0
- package/avatar/index.js +60 -0
- package/badge/index.js +16 -30
- package/banner/index.js +25 -111
- package/breadcrumb/index.js +21 -18
- package/breadcrumb-item/index.js +23 -20
- package/button/index.js +19 -757
- package/calendar/index.js +72 -67
- package/calendar-event/index.js +112 -0
- package/card/index.js +113 -0
- package/checkbox/index.js +176 -0
- package/dialog/index.js +229 -0
- package/divider/index.js +4 -0
- package/elevation/index.js +3 -31
- package/fab/index.js +99 -0
- package/focus/index.js +18 -3
- package/header/index.js +61 -0
- package/icon/index.js +10 -9
- package/index.js +57 -20
- package/layout/index.js +5 -15
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/accordion-item/index.d.ts +2 -1
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
- package/lib/{sidenav-item → action-group}/index.d.ts +1 -2
- package/lib/avatar/avatar.d.ts +15 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/index.d.ts +3 -0
- package/lib/badge/badge.d.ts +3 -5
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +1 -1
- package/lib/banner/banner.template.d.ts +0 -2
- package/lib/banner/index.d.ts +1 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb-item/index.d.ts +1 -0
- package/lib/button/button.d.ts +6 -5
- package/lib/button/index.d.ts +2 -19
- package/lib/calendar/calendar.d.ts +3 -1
- package/lib/calendar/index.d.ts +0 -1
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/{text/text.template.d.ts → card/card.template.d.ts} +2 -2
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +29 -10
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +11 -6
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +4 -3
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +3 -3
- package/lib/listbox-option/index.d.ts +4 -0
- package/lib/listbox-option/listbox-option.d.ts +7 -0
- package/lib/listbox-option/listbox-option.template.d.ts +4 -0
- package/lib/menu/index.d.ts +12 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/index.d.ts +3 -0
- package/lib/menu-item/menu-item.d.ts +7 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/index.d.ts +2 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/index.d.ts +4 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/index.d.ts +4 -0
- package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/{text → note}/index.d.ts +1 -1
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/number-field/index.d.ts +4 -0
- package/lib/number-field/number-field.d.ts +14 -0
- package/lib/number-field/number-field.template.d.ts +4 -0
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/popup.d.ts +2 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +2 -1
- package/lib/radio/index.d.ts +3 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.template.d.ts +4 -0
- package/lib/radio-group/index.d.ts +10 -0
- package/lib/radio-group/radio-group.d.ts +4 -0
- package/lib/radio-group/radio-group.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +1 -1
- package/lib/side-drawer/side-drawer.d.ts +3 -2
- package/lib/text-anchor/text-anchor.d.ts +1 -1
- package/lib/text-area/index.d.ts +4 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +14 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/listbox-option/index.js +248 -0
- package/menu/index.js +376 -0
- package/menu-item/index.js +20 -0
- package/nav/index.js +17 -0
- package/nav-disclosure/index.js +81 -0
- package/nav-item/index.js +45 -0
- package/note/index.js +58 -0
- package/number-field/index.js +516 -0
- package/package.json +58 -10
- package/popup/index.js +22 -2061
- package/progress/index.js +35 -36
- package/progress-ring/index.js +11 -11
- package/radio/index.js +50 -0
- package/radio-group/index.js +435 -0
- package/shared/affix.js +1 -6
- package/shared/anchor.js +10 -2
- package/shared/apply-mixins.js +5 -4
- package/shared/aria-global.js +2 -86
- package/shared/aria.js +9 -0
- package/shared/base-progress.js +5 -0
- package/shared/breadcrumb-item.js +1 -1
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +19 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/direction.js +20 -0
- package/shared/enums.js +62 -0
- package/shared/es.object.assign.js +3 -2
- package/shared/export.js +1017 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +331 -0
- package/shared/icon.js +534 -531
- package/shared/index.js +108 -79
- package/shared/index2.js +100 -14
- package/shared/index3.js +31 -0
- package/shared/index4.js +77 -0
- package/shared/index5.js +1525 -0
- package/shared/index6.js +349 -0
- package/shared/iterators.js +61 -0
- package/shared/key-codes.js +96 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements/form-elements.d.ts +28 -0
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/index.d.ts +2 -0
- package/shared/radio.js +127 -0
- package/shared/ref.js +41 -0
- package/shared/slotted.js +1 -1
- package/shared/start-end.js +50 -0
- package/shared/text-anchor.js +2 -13
- package/shared/text-anchor.template.js +6 -5
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +74 -1081
- package/side-drawer/index.js +41 -33
- package/styles/core/all.css +75 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +69 -0
- package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
- package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
- package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
- package/styles/fonts/spezia.css +9 -12
- package/styles/tokens/theme-dark.css +230 -0
- package/styles/tokens/theme-light.css +230 -0
- package/text-anchor/index.js +9 -1
- package/text-area/index.js +288 -0
- package/text-field/index.js +129 -0
- package/tooltip/index.js +23 -24
- package/lib/text/text.d.ts +0 -10
- package/shared/style-inject.es.js +0 -28
- package/sidenav-item/index.js +0 -38
- package/styles/themes/dark.css +0 -205
- package/styles/themes/light.css +0 -205
- package/text/index.js +0 -45
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expose ltr and rtl strings
|
|
3
|
+
*/
|
|
4
|
+
var Direction;
|
|
5
|
+
(function (Direction) {
|
|
6
|
+
Direction["ltr"] = "ltr";
|
|
7
|
+
Direction["rtl"] = "rtl";
|
|
8
|
+
})(Direction || (Direction = {}));
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* a method to determine the current localization direction of the view
|
|
12
|
+
* @param rootNode - the HTMLElement to begin the query from, usually "this" when used in a component controller
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
const getDirection = (rootNode) => {
|
|
16
|
+
const dirNode = rootNode.closest("[dir]");
|
|
17
|
+
return dirNode !== null && dirNode.dir === "rtl" ? Direction.rtl : Direction.ltr;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { Direction as D, getDirection as g };
|
package/shared/enums.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var Connotation;
|
|
2
|
+
(function (Connotation) {
|
|
3
|
+
Connotation["Accent"] = "accent";
|
|
4
|
+
Connotation["CTA"] = "cta";
|
|
5
|
+
Connotation["Success"] = "success";
|
|
6
|
+
Connotation["Alert"] = "alert";
|
|
7
|
+
Connotation["Warning"] = "warning";
|
|
8
|
+
Connotation["Information"] = "information";
|
|
9
|
+
Connotation["Announcement"] = "announcement";
|
|
10
|
+
})(Connotation || (Connotation = {}));
|
|
11
|
+
var ConnotationDecorative;
|
|
12
|
+
(function (ConnotationDecorative) {
|
|
13
|
+
ConnotationDecorative["Pacific"] = "pacific";
|
|
14
|
+
})(ConnotationDecorative || (ConnotationDecorative = {}));
|
|
15
|
+
var Shape;
|
|
16
|
+
(function (Shape) {
|
|
17
|
+
Shape["Rounded"] = "rounded";
|
|
18
|
+
Shape["Pill"] = "pill";
|
|
19
|
+
Shape["Circled"] = "circled";
|
|
20
|
+
Shape["Sharp"] = "sharp";
|
|
21
|
+
})(Shape || (Shape = {}));
|
|
22
|
+
var Appearance;
|
|
23
|
+
(function (Appearance) {
|
|
24
|
+
Appearance["Filled"] = "filled";
|
|
25
|
+
Appearance["Outlined"] = "outlined";
|
|
26
|
+
Appearance["Duotone"] = "duotone";
|
|
27
|
+
Appearance["Fieldset"] = "fieldset";
|
|
28
|
+
Appearance["Subtle"] = "subtle";
|
|
29
|
+
Appearance["Ghost"] = "ghost";
|
|
30
|
+
})(Appearance || (Appearance = {}));
|
|
31
|
+
var Density;
|
|
32
|
+
(function (Density) {
|
|
33
|
+
Density["Condensed"] = "condensed";
|
|
34
|
+
Density["Normal"] = "normal";
|
|
35
|
+
Density["Extended"] = "extended";
|
|
36
|
+
})(Density || (Density = {}));
|
|
37
|
+
var Size;
|
|
38
|
+
(function (Size) {
|
|
39
|
+
Size["Small"] = "small";
|
|
40
|
+
Size["Medium"] = "medium";
|
|
41
|
+
Size["Large"] = "large";
|
|
42
|
+
})(Size || (Size = {}));
|
|
43
|
+
var Position;
|
|
44
|
+
(function (Position) {
|
|
45
|
+
Position["Top"] = "TOP";
|
|
46
|
+
Position["Bottom"] = "BOTTOM";
|
|
47
|
+
Position["Start"] = "START";
|
|
48
|
+
Position["Center"] = "CENTER";
|
|
49
|
+
Position["End"] = "END";
|
|
50
|
+
})(Position || (Position = {}));
|
|
51
|
+
var Role;
|
|
52
|
+
(function (Role) {
|
|
53
|
+
Role["Status"] = "status";
|
|
54
|
+
Role["Alert"] = "alert";
|
|
55
|
+
})(Role || (Role = {}));
|
|
56
|
+
var AriaLive;
|
|
57
|
+
(function (AriaLive) {
|
|
58
|
+
AriaLive["Polite"] = "polite";
|
|
59
|
+
AriaLive["Assertive"] = "assertive";
|
|
60
|
+
})(AriaLive || (AriaLive = {}));
|
|
61
|
+
|
|
62
|
+
export { Connotation as C, Shape as S };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { d as descriptors, f as functionUncurryThis,
|
|
1
|
+
import { d as descriptors, f as functionUncurryThis, x as functionCall, e as fails$1, J as toObject$1, N as indexedObject, O as objectGetOwnPropertySymbols, P as objectPropertyIsEnumerable, _ as _export } from './export.js';
|
|
2
|
+
import { o as objectKeys$1 } from './object-keys.js';
|
|
2
3
|
|
|
3
4
|
var DESCRIPTORS = descriptors;
|
|
4
5
|
var uncurryThis = functionUncurryThis;
|
|
@@ -63,6 +64,6 @@ var assign = objectAssign;
|
|
|
63
64
|
// `Object.assign` method
|
|
64
65
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
65
66
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
66
|
-
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
67
|
+
$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
67
68
|
assign: assign
|
|
68
69
|
});
|