@wistia/ui 0.8.22 → 0.8.23-beta.3716df75.ff92946

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.8.22
3
+ * @license @wistia/ui v0.8.23-beta.3716df75.ff92946
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7298,6 +7298,7 @@ var Button = (0, import_react22.forwardRef)(
7298
7298
  {
7299
7299
  ref,
7300
7300
  as: Link,
7301
+ disabled: isAriaDisabled(),
7301
7302
  ...props,
7302
7303
  ...commonProps,
7303
7304
  children: unstyled ? children : /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
@@ -7789,7 +7790,6 @@ var makePolymorphic = (component) => {
7789
7790
 
7790
7791
  // src/components/Box/Box.tsx
7791
7792
  var import_jsx_runtime199 = require("react/jsx-runtime");
7792
- var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
7793
7793
  var getGapStyle = (gap) => {
7794
7794
  if ((0, import_type_guards20.isNotNil)(gap)) {
7795
7795
  if ((0, import_type_guards20.isRecord)(gap)) {
@@ -7884,22 +7884,6 @@ var StyledBoxComponent = import_styled_components27.default.div`
7884
7884
  justify-content: ${({ $justifyContent }) => $justifyContent};
7885
7885
  order: ${({ $order }) => (0, import_type_guards20.isNotNil)($order) ? $order : null};
7886
7886
  `;
7887
- var wrapChildren = (children) => {
7888
- if ((0, import_type_guards20.isNotNil)(children)) {
7889
- if (typeof children === "object" && isDev) {
7890
- return import_react26.Children.map(children, (child) => {
7891
- if ((0, import_type_guards20.isNil)(child)) return null;
7892
- const elementParams = {};
7893
- if (child.type?.displayName === "Box" || child.type?.displayName === "Box_UI") {
7894
- elementParams.hasBoxParent = true;
7895
- }
7896
- return (0, import_react26.cloneElement)(child, elementParams);
7897
- });
7898
- }
7899
- return children;
7900
- }
7901
- return null;
7902
- };
7903
7887
  var DEFAULT_ELEMENT = "div";
7904
7888
  var BoxComponent = (0, import_react26.forwardRef)(
7905
7889
  ({
@@ -7913,8 +7897,6 @@ var BoxComponent = (0, import_react26.forwardRef)(
7913
7897
  fillViewport = false,
7914
7898
  gap,
7915
7899
  grow,
7916
- hasBoxParent = false,
7917
- // eslint-disable-line @typescript-eslint/no-unused-vars
7918
7900
  height,
7919
7901
  inline = false,
7920
7902
  justifyContent = "flex-start",
@@ -7975,7 +7957,7 @@ var BoxComponent = (0, import_react26.forwardRef)(
7975
7957
  $wrapItems: wrapItems,
7976
7958
  as: renderAs ?? DEFAULT_ELEMENT,
7977
7959
  ...props,
7978
- children: wrapChildren(children)
7960
+ children
7979
7961
  }
7980
7962
  );
7981
7963
  }