@wistia/ui 0.4.10-beta.f4fe6fa2.2799dfc → 0.4.10

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.4.10-beta.f4fe6fa2.2799dfc
3
+ * @license @wistia/ui v0.4.10
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -6074,13 +6074,6 @@ Badge.displayName = "Badge";
6074
6074
  var import_react16 = require("react");
6075
6075
  var import_styled_components23 = __toESM(require("styled-components"));
6076
6076
  var import_type_guards15 = require("@wistia/type-guards");
6077
-
6078
- // src/private/helpers/makePolymorphic/makePolymorphic.tsx
6079
- var makePolymorphic = (component) => {
6080
- return component;
6081
- };
6082
-
6083
- // src/components/Box/Box.tsx
6084
6077
  var import_jsx_runtime167 = require("react/jsx-runtime");
6085
6078
  var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
6086
6079
  var getGapStyle = (gap) => {
@@ -6124,7 +6117,7 @@ var getFillViewportStyle = (fillViewport) => {
6124
6117
  }
6125
6118
  return void 0;
6126
6119
  };
6127
- var StyledBoxComponent = import_styled_components23.default.div`
6120
+ var BoxComponent = import_styled_components23.default.div`
6128
6121
  align-content: ${({ $alignContent }) => $alignContent};
6129
6122
  align-items: ${({ $alignItems }) => $alignItems};
6130
6123
  align-self: ${({ $alignSelf }) => $alignSelf ?? null};
@@ -6158,56 +6151,50 @@ var wrapChildren = (children) => {
6158
6151
  }
6159
6152
  return null;
6160
6153
  };
6161
- var DEFAULT_ELEMENT = "div";
6162
- var BoxComponent = (0, import_react16.forwardRef)(
6163
- ({
6164
- alignContent = "stretch",
6165
- alignItems = "flex-start",
6166
- alignSelf,
6167
- basis,
6168
- children,
6169
- direction = "row",
6170
- fill = false,
6171
- fillViewport = false,
6172
- gap,
6173
- grow,
6174
- hasBoxParent = false,
6175
- // eslint-disable-line @typescript-eslint/no-unused-vars
6176
- inline = false,
6177
- justifyContent = "flex-start",
6178
- order,
6179
- renderAs,
6180
- shrink,
6181
- wrapItems = false,
6182
- ...otherProps
6183
- }, ref) => {
6184
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
6185
- StyledBoxComponent,
6186
- {
6187
- ref,
6188
- $alignContent: alignContent,
6189
- $alignItems: alignItems,
6190
- $alignSelf: alignSelf,
6191
- $basis: basis,
6192
- $fillBox: fill,
6193
- $fillViewport: fillViewport,
6194
- $flexDirection: direction,
6195
- $gap: gap,
6196
- $grow: grow,
6197
- $inline: inline,
6198
- $justifyContent: justifyContent,
6199
- $order: order,
6200
- $shrink: shrink,
6201
- $wrapItems: wrapItems,
6202
- as: renderAs ?? DEFAULT_ELEMENT,
6203
- ...otherProps,
6204
- children: wrapChildren(children)
6205
- }
6206
- );
6207
- }
6208
- );
6209
- BoxComponent.displayName = "Box";
6210
- var Box = makePolymorphic(BoxComponent);
6154
+ var Box = ({
6155
+ alignContent = "stretch",
6156
+ alignItems = "flex-start",
6157
+ alignSelf,
6158
+ basis,
6159
+ children,
6160
+ direction = "row",
6161
+ fill = false,
6162
+ fillViewport = false,
6163
+ gap,
6164
+ grow,
6165
+ hasBoxParent = false,
6166
+ // eslint-disable-line @typescript-eslint/no-unused-vars
6167
+ inline = false,
6168
+ justifyContent = "flex-start",
6169
+ order,
6170
+ shrink,
6171
+ wrapItems = false,
6172
+ ...otherProps
6173
+ }) => {
6174
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
6175
+ BoxComponent,
6176
+ {
6177
+ $alignContent: alignContent,
6178
+ $alignItems: alignItems,
6179
+ $alignSelf: alignSelf,
6180
+ $basis: basis,
6181
+ $fillBox: fill,
6182
+ $fillViewport: fillViewport,
6183
+ $flexDirection: direction,
6184
+ $gap: gap,
6185
+ $grow: grow,
6186
+ $inline: inline,
6187
+ $justifyContent: justifyContent,
6188
+ $order: order,
6189
+ $shrink: shrink,
6190
+ $wrapItems: wrapItems,
6191
+ as: "div",
6192
+ ...otherProps,
6193
+ children: wrapChildren(children)
6194
+ }
6195
+ );
6196
+ };
6197
+ Box.displayName = "Box";
6211
6198
 
6212
6199
  // src/components/Breadcrumbs/Breadcrumbs.tsx
6213
6200
  var import_styled_components24 = __toESM(require("styled-components"));
@@ -6377,6 +6364,13 @@ var import_styled_components28 = __toESM(require("styled-components"));
6377
6364
  // src/components/Heading/Heading.tsx
6378
6365
  var import_react17 = require("react");
6379
6366
  var import_styled_components27 = __toESM(require("styled-components"));
6367
+
6368
+ // src/private/helpers/makePolymorphic/makePolymorphic.tsx
6369
+ var makePolymorphic = (component) => {
6370
+ return component;
6371
+ };
6372
+
6373
+ // src/components/Heading/Heading.tsx
6380
6374
  var import_jsx_runtime172 = require("react/jsx-runtime");
6381
6375
  var heroStyle = import_styled_components27.css`
6382
6376
  --font-family: var(--wui-typography-heading-hero-family);
@@ -6429,7 +6423,7 @@ var variantStyleMap = {
6429
6423
  heading5: heading5TextStyle,
6430
6424
  heading6: heading6TextStyle
6431
6425
  };
6432
- var DEFAULT_ELEMENT2 = "h1";
6426
+ var DEFAULT_ELEMENT = "h1";
6433
6427
  var StyledHeading = import_styled_components27.default.div`
6434
6428
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6435
6429
  font-family: var(--font-family);
@@ -6454,8 +6448,8 @@ var StyledHeading = import_styled_components27.default.div`
6454
6448
  margin: 0;
6455
6449
  `;
6456
6450
  var variantElementMap = {
6457
- hero: DEFAULT_ELEMENT2,
6458
- heading1: DEFAULT_ELEMENT2,
6451
+ hero: DEFAULT_ELEMENT,
6452
+ heading1: DEFAULT_ELEMENT,
6459
6453
  heading2: "h2",
6460
6454
  heading3: "h3",
6461
6455
  heading4: "h4",
@@ -6757,7 +6751,7 @@ var import_type_guards19 = require("@wistia/type-guards");
6757
6751
  var import_react19 = require("react");
6758
6752
  var import_styled_components32 = __toESM(require("styled-components"));
6759
6753
  var import_jsx_runtime177 = require("react/jsx-runtime");
6760
- var DEFAULT_ELEMENT3 = "div";
6754
+ var DEFAULT_ELEMENT2 = "div";
6761
6755
  var StyledStack = import_styled_components32.default.div`
6762
6756
  display: flex;
6763
6757
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
@@ -6773,7 +6767,7 @@ var StackComponent = (0, import_react19.forwardRef)(
6773
6767
  ref,
6774
6768
  $direction: responsiveDirection,
6775
6769
  $gap: responsiveGap,
6776
- as: renderAs ?? DEFAULT_ELEMENT3,
6770
+ as: renderAs ?? DEFAULT_ELEMENT2,
6777
6771
  ...props
6778
6772
  }
6779
6773
  );
@@ -7094,7 +7088,7 @@ var StyledText = import_styled_components34.default.div`
7094
7088
  display: block;
7095
7089
  `}
7096
7090
  `;
7097
- var DEFAULT_ELEMENT4 = "div";
7091
+ var DEFAULT_ELEMENT3 = "div";
7098
7092
  var TextComponent = (0, import_react23.forwardRef)(
7099
7093
  ({
7100
7094
  align = "left",
@@ -7120,7 +7114,7 @@ var TextComponent = (0, import_react23.forwardRef)(
7120
7114
  $preventUserSelect: preventUserSelect,
7121
7115
  $prominence: prominence,
7122
7116
  $variant: variant,
7123
- as: renderAs ?? DEFAULT_ELEMENT4,
7117
+ as: renderAs ?? DEFAULT_ELEMENT3,
7124
7118
  ...otherProps
7125
7119
  }
7126
7120
  );
@@ -8207,7 +8201,6 @@ var ModalContent = (0, import_react36.forwardRef)(
8207
8201
  ref,
8208
8202
  $fullHeight: fullHeight,
8209
8203
  $width: width,
8210
- "aria-describedby": void 0,
8211
8204
  ...otherProps,
8212
8205
  children
8213
8206
  }
@@ -8303,6 +8296,7 @@ var Modal = (0, import_react38.forwardRef)(
8303
8296
  ModalContent,
8304
8297
  {
8305
8298
  ref,
8299
+ "aria-describedby": void 0,
8306
8300
  fullHeight,
8307
8301
  onOpenAutoFocus: (event) => {
8308
8302
  if ((0, import_type_guards28.isNotNil)(initialFocusRef) && initialFocusRef.current) {