@vonage/vivid 4.14.1 → 4.14.2

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 (66) hide show
  1. package/custom-elements.json +22 -174
  2. package/lib/divider/divider.d.ts +1 -1
  3. package/lib/divider/divider.template.d.ts +1 -1
  4. package/package.json +1 -1
  5. package/shared/affix.js +1 -1
  6. package/shared/definition.js +1 -1
  7. package/shared/definition11.js +1 -1
  8. package/shared/definition16.cjs +1 -2
  9. package/shared/definition16.js +2 -3
  10. package/shared/definition17.cjs +9 -7
  11. package/shared/definition17.js +9 -7
  12. package/shared/definition22.cjs +2 -1
  13. package/shared/definition22.js +2 -1
  14. package/shared/definition24.js +1 -1
  15. package/shared/definition27.cjs +1 -1
  16. package/shared/definition27.js +1 -1
  17. package/shared/definition29.js +1 -1
  18. package/shared/definition30.js +1 -1
  19. package/shared/definition31.js +1 -1
  20. package/shared/definition33.js +1 -1
  21. package/shared/definition34.cjs +88 -19
  22. package/shared/definition34.js +72 -3
  23. package/shared/definition35.cjs +2 -201
  24. package/shared/definition35.js +4 -201
  25. package/shared/definition4.js +1 -1
  26. package/shared/definition42.cjs +3 -3
  27. package/shared/definition42.js +3 -3
  28. package/shared/definition43.cjs +9 -9
  29. package/shared/definition43.js +5 -5
  30. package/shared/definition47.js +1 -1
  31. package/shared/definition50.js +1 -1
  32. package/shared/definition51.cjs +39 -17
  33. package/shared/definition51.js +24 -2
  34. package/shared/definition53.js +1 -1
  35. package/shared/definition59.js +1 -1
  36. package/shared/definition7.js +1 -1
  37. package/shared/definition8.js +1 -1
  38. package/shared/foundation-element.cjs +1417 -0
  39. package/shared/foundation-element.js +1414 -0
  40. package/shared/key-codes2.cjs +0 -1469
  41. package/shared/key-codes2.js +1 -1464
  42. package/shared/listbox.cjs +3 -3
  43. package/shared/listbox.js +1 -1
  44. package/shared/option.cjs +205 -0
  45. package/shared/option.js +202 -0
  46. package/shared/start-end.cjs +52 -0
  47. package/shared/start-end.js +50 -0
  48. package/shared/text-anchor.js +1 -1
  49. package/shared/text-field2.js +1 -1
  50. package/styles/core/all.css +1 -1
  51. package/styles/core/theme.css +1 -1
  52. package/styles/core/typography.css +1 -1
  53. package/styles/tokens/theme-dark.css +4 -4
  54. package/styles/tokens/theme-light.css +4 -4
  55. package/styles/tokens/vivid-2-compat.css +1 -1
  56. package/lib/listbox/definition.d.ts +0 -2
  57. package/lib/listbox/listbox.d.ts +0 -14
  58. package/lib/listbox/listbox.template.d.ts +0 -2
  59. package/listbox/index.cjs +0 -54
  60. package/listbox/index.js +0 -52
  61. package/shared/aria-global2.cjs +0 -75
  62. package/shared/aria-global2.js +0 -73
  63. package/shared/listbox2.cjs +0 -1267
  64. package/shared/listbox2.js +0 -1264
  65. package/shared/strings2.cjs +0 -37
  66. package/shared/strings2.js +0 -33
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * This method keeps a given value within the bounds of a min and max value. If the value
5
- * is larger than the max, the minimum value will be returned. If the value is smaller than the minimum,
6
- * the maximum will be returned. Otherwise, the value is returned un-changed.
7
- */
8
- /**
9
- * Ensures that a value is between a min and max value. If value is lower than min, min will be returned.
10
- * If value is greater than max, max will be returned.
11
- */
12
- function limit(min, max, value) {
13
- return Math.min(Math.max(value, min), max);
14
- }
15
- /**
16
- * Determines if a number value is within a specified range.
17
- *
18
- * @param value - the value to check
19
- * @param min - the range start
20
- * @param max - the range end
21
- */
22
- function inRange(value, min, max = 0) {
23
- [min, max] = [min, max].sort((a, b) => a - b);
24
- return min <= value && value < max;
25
- }
26
-
27
- let uniqueIdCounter = 0;
28
- /**
29
- * Generates a unique ID based on incrementing a counter.
30
- */
31
- function uniqueId(prefix = "") {
32
- return `${prefix}${uniqueIdCounter++}`;
33
- }
34
-
35
- exports.inRange = inRange;
36
- exports.limit = limit;
37
- exports.uniqueId = uniqueId;
@@ -1,33 +0,0 @@
1
- /**
2
- * This method keeps a given value within the bounds of a min and max value. If the value
3
- * is larger than the max, the minimum value will be returned. If the value is smaller than the minimum,
4
- * the maximum will be returned. Otherwise, the value is returned un-changed.
5
- */
6
- /**
7
- * Ensures that a value is between a min and max value. If value is lower than min, min will be returned.
8
- * If value is greater than max, max will be returned.
9
- */
10
- function limit(min, max, value) {
11
- return Math.min(Math.max(value, min), max);
12
- }
13
- /**
14
- * Determines if a number value is within a specified range.
15
- *
16
- * @param value - the value to check
17
- * @param min - the range start
18
- * @param max - the range end
19
- */
20
- function inRange(value, min, max = 0) {
21
- [min, max] = [min, max].sort((a, b) => a - b);
22
- return min <= value && value < max;
23
- }
24
-
25
- let uniqueIdCounter = 0;
26
- /**
27
- * Generates a unique ID based on incrementing a counter.
28
- */
29
- function uniqueId(prefix = "") {
30
- return `${prefix}${uniqueIdCounter++}`;
31
- }
32
-
33
- export { inRange as i, limit as l, uniqueId as u };