@wistia/ui 0.26.16-beta.4ecf29db.d3368d9 → 0.26.16-beta.4fd2d055.df45d20
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/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.26.16-beta.
|
|
3
|
+
* @license @wistia/ui v0.26.16-beta.4fd2d055.df45d20
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1338,7 +1338,7 @@ const teardownScopedFocus = () => {
|
|
|
1338
1338
|
};
|
|
1339
1339
|
const scopeTab = (node, event) => {
|
|
1340
1340
|
const tabbable = findTabbableDescendants(node);
|
|
1341
|
-
if (!tabbable
|
|
1341
|
+
if (!isNonEmptyArray(tabbable)) {
|
|
1342
1342
|
event.preventDefault();
|
|
1343
1343
|
return;
|
|
1344
1344
|
}
|
|
@@ -8850,7 +8850,7 @@ const isValidHexChar = (char) => {
|
|
|
8850
8850
|
const normalizeHexInput = (input) => {
|
|
8851
8851
|
let cleaned = input.trim();
|
|
8852
8852
|
if (!cleaned.startsWith("#")) cleaned = `#${cleaned}`;
|
|
8853
|
-
cleaned = `#${cleaned.slice(1).
|
|
8853
|
+
cleaned = `#${cleaned.slice(1).replace(/#/g, "")}`;
|
|
8854
8854
|
return cleaned.slice(0, SIX_DIGIT_HEX_CODE_LENGTH).toLocaleLowerCase();
|
|
8855
8855
|
};
|
|
8856
8856
|
/**
|
|
@@ -9752,7 +9752,7 @@ const Combobox = ({ placeholder, value, onChange, searchValue, onSearchValueChan
|
|
|
9752
9752
|
style: { opacity: value.includes(match) ? 1 : 0 },
|
|
9753
9753
|
type: "checkmark"
|
|
9754
9754
|
})]
|
|
9755
|
-
}, match)), !matches
|
|
9755
|
+
}, match)), !isNonEmptyArray(matches) && /* @__PURE__ */ jsx(NoResults, { children: "No results found" })]
|
|
9756
9756
|
})]
|
|
9757
9757
|
});
|
|
9758
9758
|
};
|
|
@@ -13504,11 +13504,11 @@ const renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
13504
13504
|
const List = ({ children, items, variant, ...otherProps }) => {
|
|
13505
13505
|
const listVariant = variant ?? "bullets";
|
|
13506
13506
|
if (isNotNil(children)) {
|
|
13507
|
-
if (Array.isArray(children) && !children
|
|
13507
|
+
if (Array.isArray(children) && !isNonEmptyArray(children)) return null;
|
|
13508
13508
|
return renderListComponent(children, listVariant, otherProps);
|
|
13509
13509
|
}
|
|
13510
13510
|
if (isNotNil(items)) {
|
|
13511
|
-
if (!items
|
|
13511
|
+
if (!isNonEmptyArray(items)) return null;
|
|
13512
13512
|
return renderListFromArray(items, listVariant, otherProps);
|
|
13513
13513
|
}
|
|
13514
13514
|
return null;
|