@vonage/vivid 3.0.0-next.3 → 3.0.0-next.32

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.
Files changed (152) hide show
  1. package/README.md +49 -4
  2. package/accordion/index.js +61 -0
  3. package/accordion-item/index.js +133 -0
  4. package/action-group/index.js +49 -0
  5. package/badge/index.js +27 -22
  6. package/banner/index.js +148 -0
  7. package/breadcrumb/index.js +41 -150
  8. package/breadcrumb-item/index.js +18 -8
  9. package/button/index.js +40 -663
  10. package/calendar/index.js +1550 -0
  11. package/calendar-event/index.js +117 -0
  12. package/card/index.js +134 -0
  13. package/checkbox/index.js +176 -0
  14. package/dialog/index.js +277 -0
  15. package/divider/index.js +88 -0
  16. package/elevation/index.js +4 -38
  17. package/fab/index.js +101 -0
  18. package/focus/index.js +20 -3
  19. package/header/index.js +68 -0
  20. package/icon/index.js +40 -5
  21. package/index.d.ts +1 -0
  22. package/index.js +50 -14
  23. package/layout/index.js +5 -5
  24. package/lib/accordion/accordion.d.ts +9 -0
  25. package/lib/accordion/accordion.template.d.ts +4 -0
  26. package/lib/accordion/index.d.ts +2 -0
  27. package/lib/accordion-item/accordion-item.d.ts +13 -0
  28. package/lib/accordion-item/accordion-item.template.d.ts +4 -0
  29. package/lib/accordion-item/index.d.ts +4 -0
  30. package/lib/action-group/action-group.d.ts +10 -0
  31. package/lib/action-group/action-group.template.d.ts +4 -0
  32. package/lib/action-group/index.d.ts +2 -0
  33. package/lib/badge/badge.d.ts +8 -8
  34. package/lib/badge/index.d.ts +1 -1
  35. package/lib/banner/banner.d.ts +20 -0
  36. package/lib/banner/banner.template.d.ts +4 -0
  37. package/lib/banner/index.d.ts +3 -0
  38. package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
  39. package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  40. package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +0 -1
  41. package/lib/breadcrumb-item/index.d.ts +2 -0
  42. package/lib/button/button.d.ts +9 -8
  43. package/lib/button/index.d.ts +2 -19
  44. package/lib/calendar/calendar.d.ts +13 -0
  45. package/lib/calendar/calendar.template.d.ts +4 -0
  46. package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
  47. package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
  48. package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
  49. package/lib/calendar/index.d.ts +2 -0
  50. package/lib/calendar-event/calendar-event.d.ts +14 -0
  51. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  52. package/lib/calendar-event/index.d.ts +2 -0
  53. package/lib/card/card.d.ts +10 -0
  54. package/lib/card/card.template.d.ts +4 -0
  55. package/lib/card/index.d.ts +4 -0
  56. package/lib/checkbox/checkbox.d.ts +5 -0
  57. package/lib/checkbox/checkbox.template.d.ts +4 -0
  58. package/lib/checkbox/index.d.ts +4 -0
  59. package/lib/components.d.ts +23 -5
  60. package/lib/dialog/dialog.d.ts +20 -0
  61. package/lib/dialog/dialog.template.d.ts +4 -0
  62. package/lib/dialog/index.d.ts +5 -0
  63. package/lib/divider/divider.d.ts +3 -0
  64. package/lib/divider/divider.template.d.ts +4 -0
  65. package/lib/divider/index.d.ts +2 -0
  66. package/lib/elevation/elevation.d.ts +2 -1
  67. package/lib/elevation/index.d.ts +1 -1
  68. package/lib/enums.d.ts +14 -7
  69. package/lib/fab/fab.d.ts +13 -0
  70. package/lib/fab/fab.template.d.ts +4 -0
  71. package/lib/fab/index.d.ts +4 -0
  72. package/lib/focus/index.d.ts +1 -1
  73. package/lib/header/header.d.ts +5 -0
  74. package/lib/header/header.template.d.ts +4 -0
  75. package/lib/header/index.d.ts +3 -0
  76. package/lib/icon/icon.d.ts +4 -5
  77. package/lib/layout/index.d.ts +1 -1
  78. package/lib/layout/layout.d.ts +3 -3
  79. package/lib/note/index.d.ts +2 -0
  80. package/lib/note/note.d.ts +10 -0
  81. package/lib/note/note.template.d.ts +5 -0
  82. package/lib/popup/index.d.ts +4 -0
  83. package/lib/popup/popup.d.ts +17 -0
  84. package/lib/popup/popup.template.d.ts +4 -0
  85. package/lib/progress/index.d.ts +2 -0
  86. package/lib/progress/progress.d.ts +9 -0
  87. package/lib/progress/progress.template.d.ts +5 -0
  88. package/lib/progress-ring/index.d.ts +2 -0
  89. package/lib/progress-ring/progress-ring.d.ts +7 -0
  90. package/lib/progress-ring/progress-ring.template.d.ts +4 -0
  91. package/lib/side-drawer/index.d.ts +2 -0
  92. package/lib/side-drawer/side-drawer.d.ts +7 -0
  93. package/lib/side-drawer/side-drawer.template.d.ts +4 -0
  94. package/lib/sidenav/index.d.ts +2 -0
  95. package/lib/sidenav/sidenav.d.ts +3 -0
  96. package/lib/sidenav/sidenav.template.d.ts +4 -0
  97. package/lib/sidenav-item/index.d.ts +1 -0
  98. package/lib/sidenav-item/sidenav-item.d.ts +4 -5
  99. package/lib/text/index.d.ts +2 -0
  100. package/lib/text/text.d.ts +10 -0
  101. package/lib/text/text.template.d.ts +4 -0
  102. package/lib/text-anchor/text-anchor.d.ts +4 -1
  103. package/lib/text-field/index.d.ts +4 -0
  104. package/lib/text-field/text-field.d.ts +23 -0
  105. package/lib/text-field/text-field.template.d.ts +5 -0
  106. package/lib/tooltip/index.d.ts +3 -0
  107. package/lib/tooltip/tooltip.d.ts +8 -0
  108. package/lib/tooltip/tooltip.template.d.ts +4 -0
  109. package/note/index.js +68 -0
  110. package/package.json +39 -6
  111. package/popup/index.js +2118 -0
  112. package/progress/index.js +107 -0
  113. package/progress-ring/index.js +82 -0
  114. package/shared/_has.js +58 -0
  115. package/shared/affix.js +10 -25
  116. package/shared/anchor.js +10 -3
  117. package/shared/aria-global.js +20 -20
  118. package/shared/base-progress.js +70 -0
  119. package/shared/breadcrumb-item.js +2 -2
  120. package/shared/button.js +195 -0
  121. package/shared/calendar-event.js +26 -0
  122. package/shared/dialog-polyfill.esm.js +858 -0
  123. package/shared/enums.js +79 -0
  124. package/shared/es.object.assign.js +69 -0
  125. package/shared/export.js +972 -0
  126. package/shared/focus.js +5 -0
  127. package/shared/focus2.js +11 -0
  128. package/shared/form-associated.js +548 -0
  129. package/shared/icon.js +1389 -0
  130. package/shared/index.js +4940 -1426
  131. package/shared/index2.js +27 -4901
  132. package/shared/iterators.js +61 -0
  133. package/shared/object-keys.js +13 -0
  134. package/shared/patterns/affix.d.ts +3 -4
  135. package/shared/patterns/focus.d.ts +3 -0
  136. package/shared/patterns/index.d.ts +1 -0
  137. package/shared/slotted.js +119 -0
  138. package/shared/text-anchor.js +12 -0
  139. package/shared/text-anchor.template.js +16 -6
  140. package/shared/to-string.js +51 -0
  141. package/shared/web.dom-collections.iterator.js +46 -1059
  142. package/shared/when.js +15 -0
  143. package/side-drawer/index.js +82 -0
  144. package/sidenav/index.js +17 -0
  145. package/sidenav-item/index.js +24 -61
  146. package/styles/themes/dark.css +16 -4
  147. package/styles/themes/light.css +16 -4
  148. package/text/index.js +48 -0
  149. package/text-anchor/index.js +13 -13
  150. package/text-field/index.js +411 -0
  151. package/tooltip/index.js +70 -0
  152. package/shared/index3.js +0 -21
@@ -0,0 +1,79 @@
1
+ var Connotation;
2
+
3
+ (function (Connotation) {
4
+ Connotation["Accent"] = "accent";
5
+ Connotation["CTA"] = "cta";
6
+ Connotation["Success"] = "success";
7
+ Connotation["Alert"] = "alert";
8
+ Connotation["Warning"] = "warning";
9
+ Connotation["Info"] = "info";
10
+ Connotation["Announcement"] = "announcement";
11
+ })(Connotation || (Connotation = {}));
12
+
13
+ var ConnotationDecorative;
14
+
15
+ (function (ConnotationDecorative) {
16
+ ConnotationDecorative["Pacific"] = "pacific";
17
+ })(ConnotationDecorative || (ConnotationDecorative = {}));
18
+
19
+ var Shape;
20
+
21
+ (function (Shape) {
22
+ Shape["Rounded"] = "rounded";
23
+ Shape["Pill"] = "pill";
24
+ Shape["Circled"] = "circled";
25
+ Shape["Sharp"] = "sharp";
26
+ })(Shape || (Shape = {}));
27
+
28
+ var Appearance;
29
+
30
+ (function (Appearance) {
31
+ Appearance["Filled"] = "filled";
32
+ Appearance["Outlined"] = "outlined";
33
+ Appearance["Duotone"] = "duotone";
34
+ Appearance["Fieldset"] = "fieldset";
35
+ Appearance["Subtle"] = "subtle";
36
+ Appearance["Ghost"] = "ghost";
37
+ })(Appearance || (Appearance = {}));
38
+
39
+ var Density;
40
+
41
+ (function (Density) {
42
+ Density["Condensed"] = "condensed";
43
+ Density["Normal"] = "normal";
44
+ Density["Extended"] = "extended";
45
+ })(Density || (Density = {}));
46
+
47
+ var Size;
48
+
49
+ (function (Size) {
50
+ Size["Small"] = "small";
51
+ Size["Medium"] = "medium";
52
+ Size["Large"] = "large";
53
+ })(Size || (Size = {}));
54
+
55
+ var Position;
56
+
57
+ (function (Position) {
58
+ Position["Top"] = "TOP";
59
+ Position["Bottom"] = "BOTTOM";
60
+ Position["Start"] = "START";
61
+ Position["Center"] = "CENTER";
62
+ Position["End"] = "END";
63
+ })(Position || (Position = {}));
64
+
65
+ var Role;
66
+
67
+ (function (Role) {
68
+ Role["Status"] = "status";
69
+ Role["Alert"] = "alert";
70
+ })(Role || (Role = {}));
71
+
72
+ var AriaLive;
73
+
74
+ (function (AriaLive) {
75
+ AriaLive["Polite"] = "polite";
76
+ AriaLive["Assertive"] = "assertive";
77
+ })(AriaLive || (AriaLive = {}));
78
+
79
+ export { Connotation as C };
@@ -0,0 +1,69 @@
1
+ import { d as descriptors, f as functionUncurryThis, v as functionCall, e as fails$1, I as toObject$1, M as indexedObject, N as objectGetOwnPropertySymbols, O as objectPropertyIsEnumerable, _ as _export } from './export.js';
2
+ import { o as objectKeys$1 } from './object-keys.js';
3
+
4
+ var DESCRIPTORS = descriptors;
5
+ var uncurryThis = functionUncurryThis;
6
+ var call = functionCall;
7
+ var fails = fails$1;
8
+ var objectKeys = objectKeys$1;
9
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
10
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
11
+ var toObject = toObject$1;
12
+ var IndexedObject = indexedObject;
13
+
14
+ // eslint-disable-next-line es-x/no-object-assign -- safe
15
+ var $assign = Object.assign;
16
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
17
+ var defineProperty = Object.defineProperty;
18
+ var concat = uncurryThis([].concat);
19
+
20
+ // `Object.assign` method
21
+ // https://tc39.es/ecma262/#sec-object.assign
22
+ var objectAssign = !$assign || fails(function () {
23
+ // should have correct order of operations (Edge bug)
24
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
25
+ enumerable: true,
26
+ get: function () {
27
+ defineProperty(this, 'b', {
28
+ value: 3,
29
+ enumerable: false
30
+ });
31
+ }
32
+ }), { b: 2 })).b !== 1) return true;
33
+ // should work with symbols and should have deterministic property order (V8 bug)
34
+ var A = {};
35
+ var B = {};
36
+ // eslint-disable-next-line es-x/no-symbol -- safe
37
+ var symbol = Symbol();
38
+ var alphabet = 'abcdefghijklmnopqrst';
39
+ A[symbol] = 7;
40
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
41
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
42
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
43
+ var T = toObject(target);
44
+ var argumentsLength = arguments.length;
45
+ var index = 1;
46
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
47
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
48
+ while (argumentsLength > index) {
49
+ var S = IndexedObject(arguments[index++]);
50
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
51
+ var length = keys.length;
52
+ var j = 0;
53
+ var key;
54
+ while (length > j) {
55
+ key = keys[j++];
56
+ if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
57
+ }
58
+ } return T;
59
+ } : $assign;
60
+
61
+ var $ = _export;
62
+ var assign = objectAssign;
63
+
64
+ // `Object.assign` method
65
+ // https://tc39.es/ecma262/#sec-object.assign
66
+ // eslint-disable-next-line es-x/no-object-assign -- required for testing
67
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
68
+ assign: assign
69
+ });