@brightspace-ui/core 3.319.0 → 3.319.1
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.
|
@@ -47,7 +47,7 @@ function _getRadioStyleSelectors(inputSelectors) {
|
|
|
47
47
|
* A private helper method that should not be used by general consumers
|
|
48
48
|
*/
|
|
49
49
|
export function _generateRadioStyles(selector, containerSelector) {
|
|
50
|
-
if (!_isValidCssSelector(selector) || (containerSelector && !_isValidCssSelector(containerSelector))) return
|
|
50
|
+
if (!_isValidCssSelector(selector) || (containerSelector && !_isValidCssSelector(containerSelector))) return;
|
|
51
51
|
const inputSelectors = [selector];
|
|
52
52
|
if (containerSelector) {
|
|
53
53
|
inputSelectors.push(`${containerSelector} > input[type="radio"]`);
|
|
@@ -38,7 +38,7 @@ function _getSelectFocusStyles(selector) {
|
|
|
38
38
|
* A private helper method that should not be used by general consumers
|
|
39
39
|
*/
|
|
40
40
|
export function _generateSelectStyles(selector) {
|
|
41
|
-
if (!_isValidCssSelector(selector)) return
|
|
41
|
+
if (!_isValidCssSelector(selector)) return;
|
|
42
42
|
const finalSelector = unsafeCSS(selector);
|
|
43
43
|
const selectFocusStyles = _getSelectFocusStyles(finalSelector);
|
|
44
44
|
|
|
@@ -125,7 +125,7 @@ function _generatewebkitSearchStyles(selector) {
|
|
|
125
125
|
* A private helper method that should not be used by general consumers
|
|
126
126
|
*/
|
|
127
127
|
export function _generateInputStyles(selector, focusSelector) {
|
|
128
|
-
if (!_isValidCssSelector(selector) || (focusSelector && !_isValidCssSelector(focusSelector))) return
|
|
128
|
+
if (!_isValidCssSelector(selector) || (focusSelector && !_isValidCssSelector(focusSelector))) return;
|
|
129
129
|
const lastSpaceIndex = selector.lastIndexOf(' ');
|
|
130
130
|
const textareaSelector = unsafeCSS(`${selector.substring(0, lastSpaceIndex + 1)}textarea${selector.substring(lastSpaceIndex + 1)}`);
|
|
131
131
|
const delegates = getStyleDelegates(selector, focusSelector, textareaSelector);
|
|
@@ -191,7 +191,7 @@ export function _generateInputStyles(selector, focusSelector) {
|
|
|
191
191
|
* A private helper method that should not be used by general consumers
|
|
192
192
|
*/
|
|
193
193
|
export function _generateInputTextStyles(selector) {
|
|
194
|
-
if (!_isValidCssSelector(selector)) return
|
|
194
|
+
if (!_isValidCssSelector(selector)) return;
|
|
195
195
|
const finalSelector = unsafeCSS(selector);
|
|
196
196
|
const input = _getInputBaseStyleDelegates(selector);
|
|
197
197
|
|
|
@@ -13,8 +13,8 @@ export const KEYBOARD_STEP = 20; // TO DO: Confirm
|
|
|
13
13
|
export const KEYBOARD_STEP_LARGE = 80; // TO DO: Confirm
|
|
14
14
|
|
|
15
15
|
const DRAG_THRESHOLD = 3; // Number of pixels to move to count as a drag
|
|
16
|
-
const AUTO_EXPAND_WIDTH_FACTOR = 0.1;
|
|
17
|
-
const AUTO_COLLAPSE_WIDTH_FACTOR = 0.75;
|
|
16
|
+
export const AUTO_EXPAND_WIDTH_FACTOR = 0.1;
|
|
17
|
+
export const AUTO_COLLAPSE_WIDTH_FACTOR = 0.75;
|
|
18
18
|
|
|
19
19
|
const clampedSize = (size, min, max) => Math.max(min, Math.min(size, max));
|
|
20
20
|
const isRtl = () => document.documentElement.getAttribute('dir') === 'rtl';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.319.
|
|
3
|
+
"version": "3.319.1",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|