@wistia/ui 0.14.39 → 0.14.40-beta.8c900830.91fd9cb

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.14.39
3
+ * @license @wistia/ui v0.14.40-beta.8c900830.91fd9cb
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7706,7 +7706,7 @@ Icon.displayName = "Icon_UI";
7706
7706
  // src/components/Link/Link.tsx
7707
7707
  var import_react22 = require("react");
7708
7708
  var import_styled_components21 = __toESM(require("styled-components"));
7709
- var import_react_router_dom = require("react-router-dom");
7709
+ var import_react_router = require("react-router");
7710
7710
  var import_type_guards14 = require("@wistia/type-guards");
7711
7711
  var import_jsx_runtime197 = require("react/jsx-runtime");
7712
7712
  var generateHref = (href, type, disabled) => {
@@ -7761,7 +7761,7 @@ var Link = (0, import_react22.forwardRef)(
7761
7761
  role,
7762
7762
  ...props
7763
7763
  }, ref) => {
7764
- const inRouterContext = (0, import_react_router_dom.useInRouterContext)();
7764
+ const inRouterContext = (0, import_react_router.useInRouterContext)();
7765
7765
  const to = generateHref(props.href, type, disabled);
7766
7766
  const shouldUseReactRouterLink = inRouterContext && type !== "external" && !to?.startsWith("http");
7767
7767
  const handleClick = async (event) => {
@@ -7813,7 +7813,7 @@ var Link = (0, import_react22.forwardRef)(
7813
7813
  const routerSpecificProps = shouldUseReactRouterLink ? {
7814
7814
  // TODO: Using 'any' here due to styled-components typing limitations with RouterLink
7815
7815
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
7816
- as: import_react_router_dom.Link,
7816
+ as: import_react_router.Link,
7817
7817
  to: to ?? ""
7818
7818
  } : {
7819
7819
  as: "a",
@@ -16896,6 +16896,7 @@ var Select = (0, import_react90.forwardRef)(
16896
16896
  ({
16897
16897
  colorScheme = "inherit",
16898
16898
  children,
16899
+ onOpenChange = () => null,
16899
16900
  onChange = () => null,
16900
16901
  placeholder = "Select...",
16901
16902
  fullWidth = false,
@@ -16905,6 +16906,7 @@ var Select = (0, import_react90.forwardRef)(
16905
16906
  const responsiveFullWidth = useResponsiveProp(fullWidth);
16906
16907
  const rootProps = {
16907
16908
  ...props,
16909
+ onOpenChange,
16908
16910
  onValueChange: onChange
16909
16911
  };
16910
16912
  if (forceOpen) {