@vonage/vivid 3.36.0 → 3.37.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.
Files changed (112) hide show
  1. package/accordion/index.js +1 -2
  2. package/accordion-item/index.js +1 -0
  3. package/alert/index.js +1 -0
  4. package/badge/index.js +1 -0
  5. package/banner/index.js +1 -0
  6. package/breadcrumb/index.js +0 -1
  7. package/breadcrumb-item/index.js +1 -0
  8. package/button/index.js +1 -0
  9. package/card/index.js +0 -1
  10. package/checkbox/index.js +1 -2
  11. package/combobox/index.js +1 -2
  12. package/custom-elements.json +167 -76
  13. package/data-grid/index.js +1 -2
  14. package/date-picker/index.js +1 -2
  15. package/dialog/index.js +1 -2
  16. package/empty-state/index.js +0 -1
  17. package/fab/index.js +1 -0
  18. package/file-picker/index.js +1 -0
  19. package/index.js +1 -2
  20. package/lib/date-picker/date-picker.d.ts +12 -12
  21. package/lib/date-picker/date-picker.form-associated.d.ts +11 -0
  22. package/lib/number-field/number-field.d.ts +6 -2
  23. package/lib/tree-item/tree-item.template.d.ts +1 -1
  24. package/listbox/index.js +1 -2
  25. package/menu/index.js +1 -2
  26. package/menu-item/index.js +1 -2
  27. package/nav-disclosure/index.js +1 -0
  28. package/nav-item/index.js +1 -0
  29. package/note/index.js +1 -0
  30. package/number-field/index.js +1 -0
  31. package/option/index.js +1 -0
  32. package/package.json +1 -1
  33. package/pagination/index.js +1 -1
  34. package/popup/index.js +1 -0
  35. package/radio-group/index.js +1 -2
  36. package/select/index.js +1 -2
  37. package/shared/affix.js +5 -1
  38. package/shared/apply-mixins.js +1 -1
  39. package/shared/children.js +2 -2
  40. package/shared/definition.js +3 -3
  41. package/shared/definition10.js +1 -1
  42. package/shared/definition11.js +1 -1
  43. package/shared/definition12.js +1 -1
  44. package/shared/definition13.js +1 -1
  45. package/shared/definition14.js +1 -1
  46. package/shared/definition15.js +1 -1
  47. package/shared/definition16.js +3 -4
  48. package/shared/definition17.js +99 -45
  49. package/shared/definition18.js +1 -1
  50. package/shared/definition19.js +1 -1
  51. package/shared/definition2.js +2 -3
  52. package/shared/definition20.js +1 -1
  53. package/shared/definition21.js +6 -5
  54. package/shared/definition22.js +1 -1
  55. package/shared/definition23.js +1 -1
  56. package/shared/definition26.js +3 -4
  57. package/shared/definition27.js +1 -1
  58. package/shared/definition28.js +1 -1
  59. package/shared/definition29.js +1 -1
  60. package/shared/definition3.js +1 -1
  61. package/shared/definition31.js +1 -1
  62. package/shared/definition32.js +56 -9
  63. package/shared/definition33.js +1 -1
  64. package/shared/definition34.js +2 -2
  65. package/shared/definition35.js +1 -1
  66. package/shared/definition36.js +1 -1
  67. package/shared/definition37.js +2 -3
  68. package/shared/definition38.js +1 -1
  69. package/shared/definition39.js +1 -1
  70. package/shared/definition4.js +1 -1
  71. package/shared/definition40.js +1 -1
  72. package/shared/definition42.js +1 -1
  73. package/shared/definition43.js +1 -1
  74. package/shared/definition45.js +1 -1
  75. package/shared/definition46.js +1 -1
  76. package/shared/definition48.js +1 -1
  77. package/shared/definition49.js +1 -1
  78. package/shared/definition5.js +1 -1
  79. package/shared/definition51.js +1 -1
  80. package/shared/definition52.js +1 -1
  81. package/shared/definition53.js +5 -6
  82. package/shared/definition55.js +1 -1
  83. package/shared/definition6.js +4 -4
  84. package/shared/definition7.js +3 -3
  85. package/shared/definition8.js +1 -1
  86. package/shared/definition9.js +1 -2
  87. package/shared/index.js +1 -1
  88. package/shared/index2.js +1 -1
  89. package/shared/patterns/affix.d.ts +3 -1
  90. package/shared/ref.js +1 -1
  91. package/shared/slotted.js +73 -3
  92. package/shared/text-field.js +1 -1
  93. package/split-button/index.js +1 -0
  94. package/style.css +69 -64
  95. package/styles/core/all.css +44 -13
  96. package/styles/core/theme.css +1 -1
  97. package/styles/core/typography.css +44 -13
  98. package/styles/tokens/theme-dark.css +4 -4
  99. package/styles/tokens/theme-light.css +4 -4
  100. package/styles/tokens/vivid-2-compat.css +1 -1
  101. package/switch/index.js +1 -0
  102. package/tab/index.js +1 -0
  103. package/tabs/index.js +1 -2
  104. package/tag/index.js +1 -0
  105. package/text-anchor/index.js +1 -0
  106. package/text-area/index.js +1 -0
  107. package/text-field/index.js +1 -2
  108. package/toggletip/index.js +1 -0
  109. package/tooltip/index.js +1 -0
  110. package/tree-item/index.js +1 -2
  111. package/tree-view/index.js +0 -1
  112. package/shared/node-observation.js +0 -74
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
3
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
4
4
  */
5
5
  .vvd-root:root {
6
6
  --vvd-size-font-scale-base: 1rem;
@@ -20,13 +20,33 @@
20
20
  -webkit-font-smoothing: antialiased; /* apply font anti-aliasing for Webkit on OSX */
21
21
  -moz-osx-font-smoothing: grayscale; /* apply font anti-aliasing for Firefox on OSX */
22
22
  }
23
- .vvd-root p, .vvd-root .font-base {
23
+ .vvd-root p,
24
+ .vvd-root .font-base {
24
25
  font: var(--vvd-typography-base);
25
26
  margin-block: 16px;
26
27
  }
27
- .vvd-root p.tight, .vvd-root .font-base.tight {
28
+ .vvd-root p.tight,
29
+ .vvd-root .font-base.tight {
28
30
  margin-block: 0;
29
31
  }
32
+ .vvd-root .font-base-bold {
33
+ font: var(--vvd-typography-base-bold);
34
+ }
35
+ .vvd-root .font-base-condensed {
36
+ font: var(--vvd-typography-base-condensed);
37
+ }
38
+ .vvd-root .font-base-condensed-bold {
39
+ font: var(--vvd-typography-base-condensed-bold);
40
+ }
41
+ .vvd-root .font-base-extended {
42
+ font: var(--vvd-typography-base-extended);
43
+ }
44
+ .vvd-root .font-base-extended-bold {
45
+ font: var(--vvd-typography-base-extended-bold);
46
+ }
47
+ .vvd-root .font-base-code {
48
+ font: var(--vvd-typography-base-code);
49
+ }
30
50
  .vvd-root b, .vvd-root strong {
31
51
  font: var(--vvd-typography-base-bold);
32
52
  }
@@ -47,38 +67,49 @@
47
67
  .vvd-root .subtitle.tight {
48
68
  margin-block: 0;
49
69
  }
50
- .vvd-root h1, .vvd-root .heading1 {
70
+ .vvd-root h1,
71
+ .vvd-root .heading1 {
51
72
  font: var(--vvd-typography-heading-1);
52
73
  margin-block: 32px;
53
74
  }
54
- .vvd-root h1.tight, .vvd-root .heading1.tight {
75
+ .vvd-root h1.tight,
76
+ .vvd-root .heading1.tight {
55
77
  margin-block: 0;
56
78
  }
57
- .vvd-root h2, .vvd-root .heading2 {
79
+ .vvd-root h2,
80
+ .vvd-root .heading2 {
58
81
  font: var(--vvd-typography-heading-2);
59
82
  margin-block: 32px;
60
83
  }
61
- .vvd-root h2.tight, .vvd-root .heading2.tight {
84
+ .vvd-root h2.tight,
85
+ .vvd-root .heading2.tight {
62
86
  margin-block: 0;
63
87
  }
64
- .vvd-root h3, .vvd-root .heading3 {
88
+ .vvd-root h3,
89
+ .vvd-root .heading3 {
65
90
  font: var(--vvd-typography-heading-3);
66
91
  margin-block: 24px;
67
92
  }
68
- .vvd-root h3.tight, .vvd-root .heading3.tight {
93
+ .vvd-root h3.tight,
94
+ .vvd-root .heading3.tight {
69
95
  margin-block: 0;
70
96
  }
71
- .vvd-root h4, .vvd-root .heading4 {
97
+ .vvd-root h4,
98
+ .vvd-root .heading4 {
72
99
  font: var(--vvd-typography-heading-4);
73
100
  margin-block: 24px;
74
101
  }
75
- .vvd-root h4.tight, .vvd-root .heading4.tight {
102
+ .vvd-root h4.tight,
103
+ .vvd-root .heading4.tight {
76
104
  margin-block: 0;
77
105
  }
78
- .vvd-root small, .vvd-root figcaption {
106
+ .vvd-root small,
107
+ .vvd-root figcaption {
79
108
  font: var(--vvd-typography-base-condensed);
80
109
  }
81
- .vvd-root small b, .vvd-root small strong, .vvd-root figcaption b, .vvd-root figcaption strong {
110
+ .vvd-root small b, .vvd-root small strong,
111
+ .vvd-root figcaption b,
112
+ .vvd-root figcaption strong {
82
113
  font: var(--vvd-typography-base-condensed-bold);
83
114
  }
84
115
  .vvd-root sub,
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
3
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
7
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
11
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
15
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
16
16
  */
17
17
  @property --vvd-size-density {
18
18
  syntax: "<integer>";
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
3
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
7
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
11
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
15
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
16
16
  */
17
17
  @property --vvd-size-density {
18
18
  syntax: "<integer>";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 13 Sep 2023 10:58:27 GMT
3
+ * Generated on Tue, 26 Sep 2023 13:00:58 GMT
4
4
  */
5
5
  .vvd-root, ::part(vvd-root),
6
6
  .vvd-theme-alternate, ::part(vvd-theme-alternate) {
package/switch/index.js CHANGED
@@ -10,6 +10,7 @@ import '../shared/focus.js';
10
10
  import '../shared/form-associated.js';
11
11
  import '../shared/key-codes.js';
12
12
  import '../shared/affix.js';
13
+ import '../shared/slotted.js';
13
14
  import '../shared/focus2.js';
14
15
  import '../shared/index2.js';
15
16
  import '../locales/en-US.js';
package/tab/index.js CHANGED
@@ -8,6 +8,7 @@ import '../shared/when.js';
8
8
  import '../shared/definition55.js';
9
9
  import '../shared/focus.js';
10
10
  import '../shared/affix.js';
11
+ import '../shared/slotted.js';
11
12
  import '../shared/apply-mixins.js';
12
13
  import '../shared/focus2.js';
13
14
 
package/tabs/index.js CHANGED
@@ -9,6 +9,7 @@ import '../shared/when.js';
9
9
  import '../shared/definition55.js';
10
10
  import '../shared/focus.js';
11
11
  import '../shared/affix.js';
12
+ import '../shared/slotted.js';
12
13
  import '../shared/apply-mixins.js';
13
14
  import '../shared/focus2.js';
14
15
  import '../shared/definition44.js';
@@ -17,7 +18,5 @@ import '../shared/ref.js';
17
18
  import '../shared/key-codes.js';
18
19
  import '../shared/strings.js';
19
20
  import '../shared/numbers.js';
20
- import '../shared/slotted.js';
21
- import '../shared/node-observation.js';
22
21
 
23
22
  registerTabs();
package/tag/index.js CHANGED
@@ -8,6 +8,7 @@ import '../shared/when.js';
8
8
  import '../shared/definition55.js';
9
9
  import '../shared/focus.js';
10
10
  import '../shared/affix.js';
11
+ import '../shared/slotted.js';
11
12
  import '../shared/apply-mixins.js';
12
13
  import '../shared/focus2.js';
13
14
 
@@ -4,6 +4,7 @@ import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
4
4
  import '../shared/affix.js';
5
5
  import '../shared/icon.js';
6
6
  import '../shared/_has.js';
7
+ import '../shared/slotted.js';
7
8
  import '../shared/anchor.js';
8
9
  import '../shared/apply-mixins.js';
9
10
  import '../shared/aria-global.js';
@@ -8,6 +8,7 @@ import '../shared/when.js';
8
8
  import '../shared/definition55.js';
9
9
  import '../shared/focus.js';
10
10
  import '../shared/affix.js';
11
+ import '../shared/slotted.js';
11
12
  import '../shared/index2.js';
12
13
  import '../locales/en-US.js';
13
14
  import '../shared/text-field2.js';
@@ -8,6 +8,7 @@ import '../shared/_has.js';
8
8
  import '../shared/class-names.js';
9
9
  import '../shared/when.js';
10
10
  import '../shared/affix.js';
11
+ import '../shared/slotted.js';
11
12
  import '../shared/index2.js';
12
13
  import '../locales/en-US.js';
13
14
  import '../shared/text-field2.js';
@@ -19,7 +20,5 @@ import '../shared/start-end.js';
19
20
  import '../shared/ref.js';
20
21
  import '../shared/text-field.js';
21
22
  import '../shared/focus2.js';
22
- import '../shared/slotted.js';
23
- import '../shared/node-observation.js';
24
23
 
25
24
  registerTextField();
@@ -12,6 +12,7 @@ import '../shared/focus.js';
12
12
  import '../shared/definition35.js';
13
13
  import '../shared/base-progress.js';
14
14
  import '../shared/affix.js';
15
+ import '../shared/slotted.js';
15
16
  import '../shared/button.js';
16
17
  import '../shared/apply-mixins.js';
17
18
  import '../shared/form-associated.js';
package/tooltip/index.js CHANGED
@@ -12,6 +12,7 @@ import '../shared/focus.js';
12
12
  import '../shared/definition35.js';
13
13
  import '../shared/base-progress.js';
14
14
  import '../shared/affix.js';
15
+ import '../shared/slotted.js';
15
16
  import '../shared/button.js';
16
17
  import '../shared/apply-mixins.js';
17
18
  import '../shared/form-associated.js';
@@ -8,14 +8,13 @@ import '../shared/when.js';
8
8
  import '../shared/definition55.js';
9
9
  import '../shared/focus.js';
10
10
  import '../shared/affix.js';
11
+ import '../shared/slotted.js';
11
12
  import '../shared/tree-item.js';
12
13
  import '../shared/start-end.js';
13
14
  import '../shared/ref.js';
14
15
  import '../shared/apply-mixins.js';
15
16
  import '../shared/dom.js';
16
17
  import '../shared/focus2.js';
17
- import '../shared/node-observation.js';
18
18
  import '../shared/children.js';
19
- import '../shared/slotted.js';
20
19
 
21
20
  registerTreeItem();
@@ -7,7 +7,6 @@ import '../shared/apply-mixins.js';
7
7
  import '../shared/dom.js';
8
8
  import '../shared/key-codes.js';
9
9
  import '../shared/slotted.js';
10
- import '../shared/node-observation.js';
11
10
  import '../shared/class-names.js';
12
11
 
13
12
  registerTreeView();
@@ -1,74 +0,0 @@
1
- import { O as Observable, e as emptyArray } from './index.js';
2
-
3
- /**
4
- * Creates a function that can be used to filter a Node array, selecting only elements.
5
- * @param selector - An optional selector to restrict the filter to.
6
- * @public
7
- */
8
- function elements(selector) {
9
- if (selector) {
10
- return function (value, index, array) {
11
- return value.nodeType === 1 && value.matches(selector);
12
- };
13
- }
14
- return function (value, index, array) {
15
- return value.nodeType === 1;
16
- };
17
- }
18
- /**
19
- * A base class for node observation.
20
- * @internal
21
- */
22
- class NodeObservationBehavior {
23
- /**
24
- * Creates an instance of NodeObservationBehavior.
25
- * @param target - The target to assign the nodes property on.
26
- * @param options - The options to use in configuring node observation.
27
- */
28
- constructor(target, options) {
29
- this.target = target;
30
- this.options = options;
31
- this.source = null;
32
- }
33
- /**
34
- * Bind this behavior to the source.
35
- * @param source - The source to bind to.
36
- * @param context - The execution context that the binding is operating within.
37
- */
38
- bind(source) {
39
- const name = this.options.property;
40
- this.shouldUpdate = Observable.getAccessors(source).some((x) => x.name === name);
41
- this.source = source;
42
- this.updateTarget(this.computeNodes());
43
- if (this.shouldUpdate) {
44
- this.observe();
45
- }
46
- }
47
- /**
48
- * Unbinds this behavior from the source.
49
- * @param source - The source to unbind from.
50
- */
51
- unbind() {
52
- this.updateTarget(emptyArray);
53
- this.source = null;
54
- if (this.shouldUpdate) {
55
- this.disconnect();
56
- }
57
- }
58
- /** @internal */
59
- handleEvent() {
60
- this.updateTarget(this.computeNodes());
61
- }
62
- computeNodes() {
63
- let nodes = this.getNodes();
64
- if (this.options.filter !== void 0) {
65
- nodes = nodes.filter(this.options.filter);
66
- }
67
- return nodes;
68
- }
69
- updateTarget(value) {
70
- this.source[this.options.property] = value;
71
- }
72
- }
73
-
74
- export { NodeObservationBehavior as N, elements as e };