@wistia/ui 3.8.4 → 3.9.0-beta.31bd9966.94c0c9b

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.d.ts CHANGED
@@ -4639,7 +4639,7 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<"svg">, "height" | "href">
4639
4639
  /**
4640
4640
  * Style of the logo
4641
4641
  */
4642
- variant?: "dark" | "light" | "standard";
4642
+ variant?: "black" | "dark" | "light" | "standard";
4643
4643
  /**
4644
4644
  * If true, the logo will be optically centered within its container
4645
4645
  */
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v3.8.4
3
+ * @license @wistia/ui v3.9.0-beta.31bd9966.94c0c9b
4
4
  *
5
5
  * Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
6
6
  *
@@ -1247,7 +1247,7 @@ const useBoolean = (initialValue = false) => {
1247
1247
  };
1248
1248
  // src/private/hooks/useTimedToggle/useTimedToggle.ts
1249
1249
  const useTimedToggle = (initialValue) => {
1250
- const [value, setValue] = useState(false);
1250
+ const [value, setValue] = useState(initialValue);
1251
1251
  const timeoutRef = useRef(void 0);
1252
1252
  const initialValueRef = useRef(initialValue);
1253
1253
  const toggleValue = (timeout) => {
@@ -1547,8 +1547,8 @@ const LINK_ATTRIBUTES = [
1547
1547
  "aria-owns",
1548
1548
  "id"
1549
1549
  ];
1550
- const createAriaHider = (containerNode, selector = "body > :not(script)") => {
1551
- const candidates = [...document.querySelectorAll(selector)];
1550
+ const createAriaHider = (containerNode) => {
1551
+ const candidates = [...document.querySelectorAll("body > :not(script)")];
1552
1552
  const heldNodes = /* @__PURE__ */ new Set();
1553
1553
  const update = () => {
1554
1554
  const regions = getTrapRegions(containerNode);
@@ -17698,7 +17698,12 @@ const WistiaLogo = ({ description, height = 100, hoverColor, href, iconOnly = fa
17698
17698
  const primaryColor = "#2949e5";
17699
17699
  const darkColor = "#000934";
17700
17700
  const lightColor = "#ffffff";
17701
+ const blackColor = "#000000";
17701
17702
  const VARIANT_COLORS = {
17703
+ black: {
17704
+ brandmark: blackColor,
17705
+ logotype: blackColor
17706
+ },
17702
17707
  standard: {
17703
17708
  brandmark: primaryColor,
17704
17709
  logotype: darkColor