@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.
- package/custom-elements.json +22 -174
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.template.d.ts +1 -1
- package/package.json +1 -1
- package/shared/affix.js +1 -1
- package/shared/definition.js +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition16.cjs +1 -2
- package/shared/definition16.js +2 -3
- package/shared/definition17.cjs +9 -7
- package/shared/definition17.js +9 -7
- package/shared/definition22.cjs +2 -1
- package/shared/definition22.js +2 -1
- package/shared/definition24.js +1 -1
- package/shared/definition27.cjs +1 -1
- package/shared/definition27.js +1 -1
- package/shared/definition29.js +1 -1
- package/shared/definition30.js +1 -1
- package/shared/definition31.js +1 -1
- package/shared/definition33.js +1 -1
- package/shared/definition34.cjs +88 -19
- package/shared/definition34.js +72 -3
- package/shared/definition35.cjs +2 -201
- package/shared/definition35.js +4 -201
- package/shared/definition4.js +1 -1
- package/shared/definition42.cjs +3 -3
- package/shared/definition42.js +3 -3
- package/shared/definition43.cjs +9 -9
- package/shared/definition43.js +5 -5
- package/shared/definition47.js +1 -1
- package/shared/definition50.js +1 -1
- package/shared/definition51.cjs +39 -17
- package/shared/definition51.js +24 -2
- package/shared/definition53.js +1 -1
- package/shared/definition59.js +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.js +1 -1
- package/shared/foundation-element.cjs +1417 -0
- package/shared/foundation-element.js +1414 -0
- package/shared/key-codes2.cjs +0 -1469
- package/shared/key-codes2.js +1 -1464
- package/shared/listbox.cjs +3 -3
- package/shared/listbox.js +1 -1
- package/shared/option.cjs +205 -0
- package/shared/option.js +202 -0
- package/shared/start-end.cjs +52 -0
- package/shared/start-end.js +50 -0
- package/shared/text-anchor.js +1 -1
- package/shared/text-field2.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/styles/tokens/vivid-2-compat.css +1 -1
- package/lib/listbox/definition.d.ts +0 -2
- package/lib/listbox/listbox.d.ts +0 -14
- package/lib/listbox/listbox.template.d.ts +0 -2
- package/listbox/index.cjs +0 -54
- package/listbox/index.js +0 -52
- package/shared/aria-global2.cjs +0 -75
- package/shared/aria-global2.js +0 -73
- package/shared/listbox2.cjs +0 -1267
- package/shared/listbox2.js +0 -1264
- package/shared/strings2.cjs +0 -37
- package/shared/strings2.js +0 -33
package/shared/strings2.cjs
DELETED
|
@@ -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;
|
package/shared/strings2.js
DELETED
|
@@ -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 };
|