@wistia/ui 0.6.42-beta.d7be0ff8.11657cc → 0.6.42

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.6.42-beta.d7be0ff8.11657cc
3
+ * @license @wistia/ui v0.6.42
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2363,11 +2363,11 @@ var EllipsisComponent = import_styled_components13.default.span`
2363
2363
  return void 0;
2364
2364
  }}
2365
2365
  `;
2366
- var Ellipsis = ({ children, lines, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2366
+ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2367
2367
  EllipsisComponent,
2368
2368
  {
2369
2369
  $lines: lines,
2370
- ...props,
2370
+ ...otherProps,
2371
2371
  children
2372
2372
  }
2373
2373
  );
@@ -6934,7 +6934,7 @@ var Icon = ({
6934
6934
  size = "lg",
6935
6935
  style,
6936
6936
  type,
6937
- ...props
6937
+ ...otherProps
6938
6938
  }) => {
6939
6939
  const responsiveSize = useResponsiveProp(size);
6940
6940
  if ((0, import_type_guards13.isNil)(type)) {
@@ -6966,7 +6966,7 @@ var Icon = ({
6966
6966
  viewBox: "0 0 24 24",
6967
6967
  width: `${iconSizeMap[responsiveSize]}px`,
6968
6968
  xmlns: "http://www.w3.org/2000/svg",
6969
- ...props,
6969
+ ...otherProps,
6970
6970
  color: iconColor
6971
6971
  }
6972
6972
  );
@@ -7384,204 +7384,128 @@ ActionButton.displayName = "ActionButton";
7384
7384
 
7385
7385
  // src/components/Avatar/Avatar.tsx
7386
7386
  var import_react18 = require("react");
7387
- var import_type_guards18 = require("@wistia/type-guards");
7388
- var import_styled_components24 = __toESM(require("styled-components"));
7389
-
7390
- // src/components/Avatar/formatNameForDisplay.tsx
7391
- var import_type_guards16 = require("@wistia/type-guards");
7392
- var containsEmojiCharacter = (char) => {
7393
- const emojiRegex = /<a?:.+?:\d{18}>|\p{Extended_Pictographic}/gu;
7394
- return emojiRegex.test(char);
7395
- };
7396
- var formatNameForDisplay = (name) => {
7397
- if ((0, import_type_guards16.isNil)(name) || !(0, import_type_guards16.isString)(name) || (0, import_type_guards16.isEmptyString)(name) || containsEmojiCharacter(name)) {
7398
- return "U";
7399
- }
7400
- const firstChar = name.trim().substring(0, 1);
7401
- return firstChar.toUpperCase();
7402
- };
7403
-
7404
- // src/components/Image/Image.tsx
7405
- var import_styled_components22 = __toESM(require("styled-components"));
7406
7387
  var import_type_guards17 = require("@wistia/type-guards");
7407
- var import_jsx_runtime195 = require("react/jsx-runtime");
7408
- var getFillStyle = (fillContainer) => {
7409
- if (fillContainer === "horizontal") {
7410
- return "width: 100%;";
7411
- }
7412
- if (fillContainer === "vertical") {
7413
- return "height: 100%;";
7414
- }
7415
- if (fillContainer === true) {
7416
- return `
7417
- width: 100%;
7418
- height: 100%;
7419
- `;
7420
- }
7421
- return void 0;
7422
- };
7423
- var StyledImage = import_styled_components22.default.img`
7424
- border-radius: ${({ $borderRadius }) => (0, import_type_guards17.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
7425
- ${({ $fillContainer }) => getFillStyle($fillContainer)};
7426
- object-fit: ${({ $objFit }) => $objFit};
7427
- object-position: ${({ $objPosition }) => $objPosition};
7428
- `;
7429
- var Image = ({
7430
- src,
7431
- alt,
7432
- borderRadius,
7433
- fill: fillContainer = false,
7434
- fit: objFit,
7435
- loading = "lazy",
7436
- position: objPosition,
7437
- onLoad,
7438
- onError,
7439
- ...props
7440
- }) => /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
7441
- StyledImage,
7442
- {
7443
- $borderRadius: borderRadius,
7444
- $fillContainer: fillContainer,
7445
- $objFit: objFit,
7446
- $objPosition: objPosition,
7447
- alt,
7448
- loading,
7449
- onError,
7450
- onLoad,
7451
- src,
7452
- ...props
7453
- }
7454
- );
7455
- Image.displayName = "Image";
7388
+ var import_styled_components23 = __toESM(require("styled-components"));
7456
7389
 
7457
7390
  // src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
7458
- var import_styled_components23 = __toESM(require("styled-components"));
7459
- var import_jsx_runtime196 = require("react/jsx-runtime");
7460
- var defaultColorSchemeOptions = ["default", "inherit"];
7461
- var semanticColorSchemeOptions = ["error", "info", "success", "warning"];
7462
- var brandColorSchemeOptions = [
7391
+ var import_styled_components22 = __toESM(require("styled-components"));
7392
+ var import_jsx_runtime195 = require("react/jsx-runtime");
7393
+ var colorSchemeOptions = [
7394
+ "inherit",
7395
+ "default",
7396
+ "info",
7397
+ "success",
7398
+ "warning",
7399
+ "error",
7463
7400
  "blue",
7464
7401
  "green",
7465
7402
  "orange",
7466
7403
  "pink",
7467
7404
  "purple",
7468
- "yellow"
7469
- ];
7470
- var vendorColorSchemeOptions = [
7405
+ "yellow",
7471
7406
  "vendor-hubspot",
7472
7407
  "vendor-marketo",
7473
7408
  "vendor-pardot"
7474
7409
  ];
7475
- var colorSchemeOptions = [
7476
- ...defaultColorSchemeOptions,
7477
- ...semanticColorSchemeOptions,
7478
- ...brandColorSchemeOptions,
7479
- ...vendorColorSchemeOptions
7480
- ];
7481
- var StyledColorSchemeWrapper = import_styled_components23.default.div`
7410
+ var StyledColorSchemeWrapper = import_styled_components22.default.div`
7482
7411
  ${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
7483
7412
  `;
7484
7413
  var ColorSchemeWrapper = ({
7485
7414
  __nav = false,
7486
7415
  colorScheme = "inherit",
7487
7416
  children,
7488
- ...props
7489
- }) => /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7417
+ ...otherProps
7418
+ }) => /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
7490
7419
  StyledColorSchemeWrapper,
7491
7420
  {
7492
7421
  $colorScheme: colorScheme,
7493
7422
  $nav: __nav,
7494
- ...props,
7423
+ ...otherProps,
7495
7424
  children
7496
7425
  }
7497
7426
  );
7498
7427
  ColorSchemeWrapper.displayName = "ColorSchemeWrapper";
7499
7428
 
7429
+ // src/components/Avatar/formatNameForDisplay.tsx
7430
+ var import_type_guards16 = require("@wistia/type-guards");
7431
+ var containsEmojiCharacter = (char) => {
7432
+ const emojiRegex = /<a?:.+?:\d{18}>|\p{Extended_Pictographic}/gu;
7433
+ return emojiRegex.test(char);
7434
+ };
7435
+ var formatNameForDisplay = (name) => {
7436
+ if ((0, import_type_guards16.isNil)(name) || !(0, import_type_guards16.isString)(name) || (0, import_type_guards16.isEmptyString)(name) || containsEmojiCharacter(name)) {
7437
+ return "U";
7438
+ }
7439
+ const firstChar = name.trim().substring(0, 1);
7440
+ return firstChar.toUpperCase();
7441
+ };
7442
+
7500
7443
  // src/components/Avatar/Avatar.tsx
7501
- var import_jsx_runtime197 = require("react/jsx-runtime");
7444
+ var import_jsx_runtime196 = require("react/jsx-runtime");
7445
+ var AvatarImage = import_styled_components23.default.img`
7446
+ align-items: center;
7447
+ background-color: white;
7448
+ border-radius: 50%;
7449
+ display: flex;
7450
+ height: ${({ $heightAndWidth }) => $heightAndWidth}px;
7451
+ justify-content: center;
7452
+ object-fit: cover;
7453
+ overflow: hidden;
7454
+ pointer-events: none;
7455
+ user-select: none;
7456
+ width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7457
+ transition: box-shadow var(--wui-duration-01) var(--wui-motion-ease);
7458
+
7459
+ a:hover & {
7460
+ box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
7461
+ }
7462
+
7463
+ a:active & {
7464
+ box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
7465
+ }
7466
+ `;
7502
7467
  var avatarSizeMap = {
7503
7468
  sm: 16,
7504
7469
  md: 24,
7505
7470
  lg: 32
7506
7471
  };
7507
- var Initial = ({ initial }) => /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7508
- "svg",
7509
- {
7510
- "data-wui-avatar-initial": true,
7511
- style: { width: "100%", height: "100%", color: "var(--wui-color-text-on-fill)" },
7512
- viewBox: "0 0 24 24",
7513
- xmlns: "http://www.w3.org/2000/svg",
7514
- children: [
7515
- /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7516
- "path",
7517
- {
7518
- d: "M0 13.5h24",
7519
- id: "P"
7520
- }
7521
- ),
7522
- /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("text", { children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7523
- "textPath",
7524
- {
7525
- dominantBaseline: "middle",
7526
- fill: "currentColor",
7527
- fontSize: "16px",
7528
- href: "#P",
7529
- startOffset: "50%",
7530
- textAnchor: "middle",
7531
- children: initial
7532
- }
7533
- ) })
7534
- ]
7535
- }
7536
- );
7537
- var AvatarWrapper = import_styled_components24.default.div`
7472
+ var fontSizeScaleMultiplier = 0.55;
7473
+ var InitialsContainer = import_styled_components23.default.div`
7538
7474
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7539
- width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7475
+ align-items: center;
7476
+ background-color: var(--wui-color-bg-fill);
7477
+ border: 1px solid var(--wui-color-border);
7478
+ border-radius: 50%;
7479
+ color: var(--wui-color-text-on-fill);
7480
+ display: flex;
7481
+ font-size: ${({ $heightAndWidth }) => $heightAndWidth * fontSizeScaleMultiplier}px;
7540
7482
  height: ${({ $heightAndWidth }) => $heightAndWidth}px;
7541
- place-content: center;
7483
+ justify-content: center;
7542
7484
  overflow: hidden;
7543
- background-color: var(--wui-color-bg-fill);
7544
- border-radius: var(--wui-border-radius-rounded);
7545
- display: grid;
7546
- user-select: none;
7485
+ width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7547
7486
 
7548
- > * {
7549
- grid-area: 1 / 1;
7487
+ a:hover & {
7488
+ box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
7550
7489
  }
7551
7490
 
7552
- --wui-avatar-inset-opacity: 10%;
7553
-
7554
- outline: 2px solid rgb(0 0 0 / var(--wui-avatar-inset-opacity));
7555
- outline-offset: -2px;
7556
-
7557
- [data-wui-avatar-initial] {
7558
- font-family: var(--wui-typography-family-default);
7559
- font-weight: var(--wui-typography-weight-label-bold);
7560
- padding: min(12.5%, 4px);
7561
- }
7562
-
7563
- &:only-child {
7564
- a:hover & {
7565
- --wui-avatar-inset-opacity: 20%;
7566
-
7567
- background-color: var(--wui-color-bg-fill-hover);
7568
- }
7569
-
7570
- a:active & {
7571
- --wui-avatar-inset-opacity: 30%;
7572
-
7573
- background-color: var(--wui-color-bg-fill-active);
7574
- }
7491
+ a:active & {
7492
+ box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
7575
7493
  }
7576
7494
  `;
7495
+ var AvatarWrapper = import_styled_components23.default.div`
7496
+ max-height: ${({ $maxHeight }) => $maxHeight}px;
7497
+ `;
7577
7498
  var chooseColorScheme = (name) => {
7578
- if ((0, import_type_guards18.isNil)(name) || name === "Anonymous") {
7579
- return "blue";
7499
+ if ((0, import_type_guards17.isNil)(name) || name === "Anonymous") {
7500
+ return "default";
7580
7501
  }
7502
+ const filteredColors = colorSchemeOptions.filter(
7503
+ (color) => color !== "inherit" && color !== "default"
7504
+ );
7581
7505
  const multiplier = 31;
7582
7506
  const hashCode = (str) => Array.from(str).reduce((sum, char) => Math.imul(multiplier, sum) + char.charCodeAt(0) | 0, 0);
7583
- const index = Math.abs(hashCode(name)) % brandColorSchemeOptions.length;
7584
- return brandColorSchemeOptions[index] ?? "blue";
7507
+ const index = Math.abs(hashCode(name)) % filteredColors.length;
7508
+ return filteredColors[index] ?? "default";
7585
7509
  };
7586
7510
  var Avatar = ({
7587
7511
  imageUrl,
@@ -7589,7 +7513,7 @@ var Avatar = ({
7589
7513
  name,
7590
7514
  size = "md",
7591
7515
  onImageLoad,
7592
- ...props
7516
+ ...otherProps
7593
7517
  }) => {
7594
7518
  const [imageLoadState, setImageLoadState] = (0, import_react18.useState)("loading");
7595
7519
  (0, import_react18.useEffect)(() => {
@@ -7605,26 +7529,29 @@ var Avatar = ({
7605
7529
  };
7606
7530
  const avatarSize = heightAndWidth ?? avatarSizeMap[size];
7607
7531
  const avatarColor = (0, import_react18.useMemo)(() => chooseColorScheme(name), [name]);
7608
- return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7532
+ const showInitials = (0, import_type_guards17.isNil)(imageUrl) || imageLoadState === "error";
7533
+ return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7609
7534
  AvatarWrapper,
7610
7535
  {
7611
- $colorScheme: avatarColor,
7612
- $heightAndWidth: avatarSize,
7613
- ...props,
7614
- children: [
7615
- /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Initial, { initial: formatNameForDisplay(name) }),
7616
- (0, import_type_guards18.isNotNil)(imageUrl) && imageLoadState !== "error" && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7617
- Image,
7618
- {
7619
- alt: (0, import_type_guards18.isNotNil)(name) ? name : "",
7620
- "data-state": imageLoadState,
7621
- fit: "cover",
7622
- onError: handleImageLoadError,
7623
- onLoad: handleImageLoad,
7624
- src: imageUrl
7625
- }
7626
- )
7627
- ]
7536
+ ...otherProps,
7537
+ $maxHeight: avatarSize,
7538
+ children: showInitials ? /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7539
+ InitialsContainer,
7540
+ {
7541
+ $colorScheme: avatarColor,
7542
+ $heightAndWidth: avatarSize,
7543
+ children: formatNameForDisplay(name)
7544
+ }
7545
+ ) : /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7546
+ AvatarImage,
7547
+ {
7548
+ $heightAndWidth: avatarSize,
7549
+ alt: name ?? "Unavailable",
7550
+ onError: handleImageLoadError,
7551
+ onLoad: handleImageLoad,
7552
+ src: imageUrl
7553
+ }
7554
+ )
7628
7555
  }
7629
7556
  );
7630
7557
  };
@@ -7632,10 +7559,10 @@ Avatar.displayName = "Avatar";
7632
7559
 
7633
7560
  // src/components/Badge/Badge.tsx
7634
7561
  var import_react19 = require("react");
7635
- var import_styled_components25 = __toESM(require("styled-components"));
7636
- var import_type_guards19 = require("@wistia/type-guards");
7637
- var import_jsx_runtime198 = require("react/jsx-runtime");
7638
- var StyledBadge = import_styled_components25.default.div`
7562
+ var import_styled_components24 = __toESM(require("styled-components"));
7563
+ var import_type_guards18 = require("@wistia/type-guards");
7564
+ var import_jsx_runtime197 = require("react/jsx-runtime");
7565
+ var StyledBadge = import_styled_components24.default.div`
7639
7566
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7640
7567
  align-items: center;
7641
7568
  background-color: var(--wui-color-bg-surface-secondary);
@@ -7656,18 +7583,18 @@ var StyledBadge = import_styled_components25.default.div`
7656
7583
  }
7657
7584
  `;
7658
7585
  var Badge = (0, import_react19.forwardRef)(
7659
- ({ colorScheme = "inherit", label, icon, ...props }, ref) => {
7660
- const hasIcon = (0, import_type_guards19.isNotNil)(icon);
7661
- return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)(
7586
+ ({ colorScheme = "inherit", label, icon, ...otherProps }, ref) => {
7587
+ const hasIcon = (0, import_type_guards18.isNotNil)(icon);
7588
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7662
7589
  StyledBadge,
7663
7590
  {
7664
7591
  ref,
7665
- ...props,
7592
+ ...otherProps,
7666
7593
  $colorScheme: colorScheme,
7667
7594
  $hasIcon: hasIcon,
7668
7595
  children: [
7669
7596
  hasIcon ? icon : null,
7670
- /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("span", { children: label })
7597
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("span", { children: label })
7671
7598
  ]
7672
7599
  }
7673
7600
  );
@@ -7677,8 +7604,8 @@ Badge.displayName = "Badge";
7677
7604
 
7678
7605
  // src/components/Box/Box.tsx
7679
7606
  var import_react20 = require("react");
7680
- var import_styled_components26 = __toESM(require("styled-components"));
7681
- var import_type_guards20 = require("@wistia/type-guards");
7607
+ var import_styled_components25 = __toESM(require("styled-components"));
7608
+ var import_type_guards19 = require("@wistia/type-guards");
7682
7609
 
7683
7610
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
7684
7611
  var makePolymorphic = (component) => {
@@ -7686,11 +7613,11 @@ var makePolymorphic = (component) => {
7686
7613
  };
7687
7614
 
7688
7615
  // src/components/Box/Box.tsx
7689
- var import_jsx_runtime199 = require("react/jsx-runtime");
7616
+ var import_jsx_runtime198 = require("react/jsx-runtime");
7690
7617
  var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
7691
7618
  var getGapStyle = (gap) => {
7692
- if ((0, import_type_guards20.isNotNil)(gap)) {
7693
- if ((0, import_type_guards20.isRecord)(gap)) {
7619
+ if ((0, import_type_guards19.isNotNil)(gap)) {
7620
+ if ((0, import_type_guards19.isRecord)(gap)) {
7694
7621
  return Object.entries(gap).map(([key, value]) => {
7695
7622
  return `${key}-gap: var(--wui-${value})};`;
7696
7623
  }).join("");
@@ -7699,7 +7626,7 @@ var getGapStyle = (gap) => {
7699
7626
  }
7700
7627
  return void 0;
7701
7628
  };
7702
- var getFillStyle2 = (fill) => {
7629
+ var getFillStyle = (fill) => {
7703
7630
  if (fill === "horizontal") {
7704
7631
  return "width: 100%;";
7705
7632
  }
@@ -7734,41 +7661,41 @@ var getFlexStyle = (flexMode) => {
7734
7661
  switch (flexMode) {
7735
7662
  // grows to fill space, won't shrink, starts at 0
7736
7663
  case "grow":
7737
- return import_styled_components26.css`
7664
+ return import_styled_components25.css`
7738
7665
  flex: 1 0 0;
7739
7666
  `;
7740
7667
  // default behavior, can shrink but won't grow
7741
7668
  case "initial":
7742
- return import_styled_components26.css`
7669
+ return import_styled_components25.css`
7743
7670
  flex: 0 1 auto;
7744
7671
  `;
7745
7672
  // equal distribution of space
7746
7673
  case "equal":
7747
- return import_styled_components26.css`
7674
+ return import_styled_components25.css`
7748
7675
  flex: 1;
7749
7676
  `;
7750
7677
  // won't grow or shrink
7751
7678
  case "rigid":
7752
- return import_styled_components26.css`
7679
+ return import_styled_components25.css`
7753
7680
  flex: 0 0 auto;
7754
7681
  `;
7755
7682
  // can grow and shrink from content size
7756
7683
  case "fluid":
7757
- return import_styled_components26.css`
7684
+ return import_styled_components25.css`
7758
7685
  flex: 1 1 auto;
7759
7686
  `;
7760
7687
  default:
7761
7688
  return null;
7762
7689
  }
7763
7690
  };
7764
- var StyledBoxComponent = import_styled_components26.default.div`
7691
+ var StyledBoxComponent = import_styled_components25.default.div`
7765
7692
  align-content: ${({ $alignContent }) => $alignContent};
7766
7693
  align-items: ${({ $alignItems }) => $alignItems};
7767
7694
  align-self: ${({ $alignSelf }) => $alignSelf ?? null};
7768
- display: ${({ $inline }) => (0, import_type_guards20.isNotNil)($inline) && $inline ? "inline-flex" : "flex"};
7769
- flex-basis: ${({ $basis }) => (0, import_type_guards20.isNotNil)($basis) ? $basis : null};
7695
+ display: ${({ $inline }) => (0, import_type_guards19.isNotNil)($inline) && $inline ? "inline-flex" : "flex"};
7696
+ flex-basis: ${({ $basis }) => (0, import_type_guards19.isNotNil)($basis) ? $basis : null};
7770
7697
  flex-direction: ${({ $flexDirection }) => $flexDirection};
7771
- ${({ $fillBox: fill }) => getFillStyle2(fill)};
7698
+ ${({ $fillBox: fill }) => getFillStyle(fill)};
7772
7699
  ${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
7773
7700
  ${({ $flexMode }) => getFlexStyle($flexMode)};
7774
7701
  ${({ $gap }) => getGapStyle($gap)};
@@ -7776,17 +7703,17 @@ var StyledBoxComponent = import_styled_components26.default.div`
7776
7703
  width: ${({ $width }) => $width ?? null};
7777
7704
 
7778
7705
  /* Box children styles */
7779
- flex-grow: ${({ $grow }) => (0, import_type_guards20.isNotNil)($grow) ? $grow : null};
7780
- flex-shrink: ${({ $shrink }) => (0, import_type_guards20.isNotNil)($shrink) ? $shrink : null};
7706
+ flex-grow: ${({ $grow }) => (0, import_type_guards19.isNotNil)($grow) ? $grow : null};
7707
+ flex-shrink: ${({ $shrink }) => (0, import_type_guards19.isNotNil)($shrink) ? $shrink : null};
7781
7708
  flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
7782
7709
  justify-content: ${({ $justifyContent }) => $justifyContent};
7783
- order: ${({ $order }) => (0, import_type_guards20.isNotNil)($order) ? $order : null};
7710
+ order: ${({ $order }) => (0, import_type_guards19.isNotNil)($order) ? $order : null};
7784
7711
  `;
7785
7712
  var wrapChildren = (children) => {
7786
- if ((0, import_type_guards20.isNotNil)(children)) {
7713
+ if ((0, import_type_guards19.isNotNil)(children)) {
7787
7714
  if (typeof children === "object" && isDev) {
7788
7715
  return import_react20.Children.map(children, (child) => {
7789
- if ((0, import_type_guards20.isNil)(child)) return null;
7716
+ if ((0, import_type_guards19.isNil)(child)) return null;
7790
7717
  const elementParams = {};
7791
7718
  if (child.type?.displayName === "Box" || child.type?.displayName === "Box_UI") {
7792
7719
  elementParams.hasBoxParent = true;
@@ -7822,9 +7749,9 @@ var BoxComponent = (0, import_react20.forwardRef)(
7822
7749
  width,
7823
7750
  wrapItems = false,
7824
7751
  flexMode,
7825
- ...props
7752
+ ...otherProps
7826
7753
  }, ref) => {
7827
- if ((0, import_type_guards20.isNotUndefined)(height)) {
7754
+ if ((0, import_type_guards19.isNotUndefined)(height)) {
7828
7755
  if (fill === true || fill === "vertical") {
7829
7756
  throw new Error('Cannot use height prop with fill="vertical" or fill={true}');
7830
7757
  }
@@ -7834,7 +7761,7 @@ var BoxComponent = (0, import_react20.forwardRef)(
7834
7761
  );
7835
7762
  }
7836
7763
  }
7837
- if ((0, import_type_guards20.isNotUndefined)(width)) {
7764
+ if ((0, import_type_guards19.isNotUndefined)(width)) {
7838
7765
  if (fill === true || fill === "horizontal") {
7839
7766
  throw new Error('Cannot use width prop with fill="horizontal" or fill={true}');
7840
7767
  }
@@ -7844,7 +7771,7 @@ var BoxComponent = (0, import_react20.forwardRef)(
7844
7771
  );
7845
7772
  }
7846
7773
  }
7847
- return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7774
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
7848
7775
  StyledBoxComponent,
7849
7776
  {
7850
7777
  ref,
@@ -7866,7 +7793,7 @@ var BoxComponent = (0, import_react20.forwardRef)(
7866
7793
  $width: width,
7867
7794
  $wrapItems: wrapItems,
7868
7795
  as: renderAs ?? DEFAULT_ELEMENT,
7869
- ...props,
7796
+ ...otherProps,
7870
7797
  children: wrapChildren(children)
7871
7798
  }
7872
7799
  );
@@ -7877,9 +7804,9 @@ var Box = makePolymorphic(BoxComponent);
7877
7804
 
7878
7805
  // src/components/Breadcrumbs/Breadcrumbs.tsx
7879
7806
  var import_react21 = require("react");
7880
- var import_styled_components27 = __toESM(require("styled-components"));
7881
- var import_jsx_runtime200 = require("react/jsx-runtime");
7882
- var StyledBreadcrumbs = import_styled_components27.default.nav`
7807
+ var import_styled_components26 = __toESM(require("styled-components"));
7808
+ var import_jsx_runtime199 = require("react/jsx-runtime");
7809
+ var StyledBreadcrumbs = import_styled_components26.default.nav`
7883
7810
  display: flex;
7884
7811
  align-items: center;
7885
7812
  gap: var(--wui-space-01);
@@ -7897,8 +7824,8 @@ var Breadcrumbs = ({ children, ...props }) => {
7897
7824
  crumbs = crumbs.slice(-1);
7898
7825
  }
7899
7826
  const crumbMaxWidth = Math.floor(100 / crumbs.length) - BUFFER_WIDTH;
7900
- return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(import_jsx_runtime200.Fragment, { children: [
7901
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("style", { type: "text/css", children: `
7827
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)(import_jsx_runtime199.Fragment, { children: [
7828
+ /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("style", { type: "text/css", children: `
7902
7829
  [data-wui-breadcrumbs] {
7903
7830
  container-type: inline-size;
7904
7831
  container-name: breadcrumbs;
@@ -7910,7 +7837,7 @@ var Breadcrumbs = ({ children, ...props }) => {
7910
7837
  }
7911
7838
  }
7912
7839
  ` }),
7913
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7840
+ /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7914
7841
  StyledBreadcrumbs,
7915
7842
  {
7916
7843
  "aria-label": "Breadcrumbs",
@@ -7924,9 +7851,9 @@ var Breadcrumbs = ({ children, ...props }) => {
7924
7851
  Breadcrumbs.displayName = "Breadcrumbs";
7925
7852
 
7926
7853
  // src/components/Breadcrumbs/Breadcrumb.tsx
7927
- var import_styled_components28 = __toESM(require("styled-components"));
7928
- var import_jsx_runtime201 = require("react/jsx-runtime");
7929
- var BreadcrumbContent = import_styled_components28.default.span`
7854
+ var import_styled_components27 = __toESM(require("styled-components"));
7855
+ var import_jsx_runtime200 = require("react/jsx-runtime");
7856
+ var BreadcrumbContent = import_styled_components27.default.span`
7930
7857
  overflow: hidden;
7931
7858
  white-space: nowrap;
7932
7859
  display: block;
@@ -7935,18 +7862,18 @@ var BreadcrumbContent = import_styled_components28.default.span`
7935
7862
  flex: 0;
7936
7863
  `;
7937
7864
  var Breadcrumb = ({ icon, href, children, ...props }) => {
7938
- return /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(import_jsx_runtime201.Fragment, { children: [
7939
- /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
7865
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(import_jsx_runtime200.Fragment, { children: [
7866
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7940
7867
  Button,
7941
7868
  {
7942
7869
  ...props,
7943
7870
  href,
7944
7871
  leftIcon: icon,
7945
7872
  variant: "ghost",
7946
- children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
7873
+ children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
7947
7874
  }
7948
7875
  ),
7949
- /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { "data-wui-breadcrumb-divider": true, children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
7876
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("div", { "data-wui-breadcrumb-divider": true, children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7950
7877
  Icon,
7951
7878
  {
7952
7879
  size: "sm",
@@ -7958,9 +7885,9 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
7958
7885
  };
7959
7886
 
7960
7887
  // src/components/ButtonGroup/ButtonGroup.tsx
7961
- var import_styled_components29 = __toESM(require("styled-components"));
7962
- var import_type_guards21 = require("@wistia/type-guards");
7963
- var import_jsx_runtime202 = require("react/jsx-runtime");
7888
+ var import_styled_components28 = __toESM(require("styled-components"));
7889
+ var import_type_guards20 = require("@wistia/type-guards");
7890
+ var import_jsx_runtime201 = require("react/jsx-runtime");
7964
7891
  var getAlignment = (align) => {
7965
7892
  if (align === "center") {
7966
7893
  return "center";
@@ -7973,7 +7900,7 @@ var getAlignment = (align) => {
7973
7900
  }
7974
7901
  return "flex-start";
7975
7902
  };
7976
- var ButtonGroupComponent = import_styled_components29.default.div`
7903
+ var ButtonGroupComponent = import_styled_components28.default.div`
7977
7904
  display: flex;
7978
7905
 
7979
7906
  /* this helps ensure that primary buttons appear at the top of the column */
@@ -8003,18 +7930,18 @@ var ButtonGroup = ({
8003
7930
  align = "left",
8004
7931
  fullWidth = false,
8005
7932
  collapseOnSmallScreens = true,
8006
- ...props
7933
+ ...otherProps
8007
7934
  }) => {
8008
- if ((0, import_type_guards21.isNil)(children)) {
7935
+ if ((0, import_type_guards20.isNil)(children)) {
8009
7936
  return null;
8010
7937
  }
8011
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7938
+ return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
8012
7939
  ButtonGroupComponent,
8013
7940
  {
8014
7941
  $align: align,
8015
7942
  $collapse: collapseOnSmallScreens,
8016
7943
  $fullWidth: fullWidth,
8017
- ...props,
7944
+ ...otherProps,
8018
7945
  children
8019
7946
  }
8020
7947
  );
@@ -8022,9 +7949,9 @@ var ButtonGroup = ({
8022
7949
  ButtonGroup.displayName = "ButtonGroup";
8023
7950
 
8024
7951
  // src/components/Card/Card.tsx
8025
- var import_styled_components30 = __toESM(require("styled-components"));
8026
- var import_jsx_runtime203 = require("react/jsx-runtime");
8027
- var StyledCard = (0, import_styled_components30.default)(Box)`
7952
+ var import_styled_components29 = __toESM(require("styled-components"));
7953
+ var import_jsx_runtime202 = require("react/jsx-runtime");
7954
+ var StyledCard = (0, import_styled_components29.default)(Box)`
8028
7955
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8029
7956
  box-sizing: border-box;
8030
7957
  padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
@@ -8061,7 +7988,7 @@ var Card = ({
8061
7988
  height,
8062
7989
  width,
8063
7990
  ...props
8064
- }) => /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
7991
+ }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
8065
7992
  StyledCard,
8066
7993
  {
8067
7994
  $backgroundColor: prominenceMap[prominence].backgroundColor,
@@ -8080,9 +8007,9 @@ Card.displayName = "Card";
8080
8007
 
8081
8008
  // src/components/Center/Center.tsx
8082
8009
  var import_react22 = require("react");
8083
- var import_styled_components31 = __toESM(require("styled-components"));
8084
- var import_jsx_runtime204 = require("react/jsx-runtime");
8085
- var StyledCenter = import_styled_components31.default.div`
8010
+ var import_styled_components30 = __toESM(require("styled-components"));
8011
+ var import_jsx_runtime203 = require("react/jsx-runtime");
8012
+ var StyledCenter = import_styled_components30.default.div`
8086
8013
  box-sizing: border-box;
8087
8014
  margin-left: auto;
8088
8015
  margin-right: auto;
@@ -8095,7 +8022,7 @@ var StyledCenter = import_styled_components31.default.div`
8095
8022
  `}
8096
8023
  `;
8097
8024
  var Center = (0, import_react22.forwardRef)(
8098
- ({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
8025
+ ({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
8099
8026
  StyledCenter,
8100
8027
  {
8101
8028
  ref,
@@ -8111,21 +8038,21 @@ Center.displayName = "Center";
8111
8038
 
8112
8039
  // src/components/Checkbox/Checkbox.tsx
8113
8040
  var import_react23 = require("react");
8114
- var import_styled_components35 = __toESM(require("styled-components"));
8115
- var import_type_guards25 = require("@wistia/type-guards");
8116
-
8117
- // src/private/components/FormControlLabel/FormControlLabel.tsx
8118
8041
  var import_styled_components34 = __toESM(require("styled-components"));
8119
8042
  var import_type_guards24 = require("@wistia/type-guards");
8120
8043
 
8044
+ // src/private/components/FormControlLabel/FormControlLabel.tsx
8045
+ var import_styled_components33 = __toESM(require("styled-components"));
8046
+ var import_type_guards23 = require("@wistia/type-guards");
8047
+
8121
8048
  // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
8122
- var import_styled_components32 = __toESM(require("styled-components"));
8123
- var import_type_guards22 = require("@wistia/type-guards");
8124
- var import_jsx_runtime205 = require("react/jsx-runtime");
8125
- var disabledStyle = import_styled_components32.css`
8049
+ var import_styled_components31 = __toESM(require("styled-components"));
8050
+ var import_type_guards21 = require("@wistia/type-guards");
8051
+ var import_jsx_runtime204 = require("react/jsx-runtime");
8052
+ var disabledStyle = import_styled_components31.css`
8126
8053
  color: var(--wui-color-text-disabled);
8127
8054
  `;
8128
- var StyledFormControlLabelDescription = import_styled_components32.default.div`
8055
+ var StyledFormControlLabelDescription = import_styled_components31.default.div`
8129
8056
  color: var(--wui-color-text-secondary);
8130
8057
  display: block;
8131
8058
  font-size: var(--wui-typography-body-4-size);
@@ -8140,10 +8067,10 @@ var FormControlLabelDescription = ({
8140
8067
  disabled = false,
8141
8068
  ...props
8142
8069
  }) => {
8143
- if ((0, import_type_guards22.isNil)(children)) {
8070
+ if ((0, import_type_guards21.isNil)(children)) {
8144
8071
  return null;
8145
8072
  }
8146
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
8073
+ return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
8147
8074
  StyledFormControlLabelDescription,
8148
8075
  {
8149
8076
  ...props,
@@ -8155,38 +8082,38 @@ var FormControlLabelDescription = ({
8155
8082
  FormControlLabelDescription.displayName = "FormControlLabelDescription";
8156
8083
 
8157
8084
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
8158
- var import_styled_components33 = __toESM(require("styled-components"));
8159
- var import_type_guards23 = require("@wistia/type-guards");
8160
- var import_jsx_runtime206 = require("react/jsx-runtime");
8161
- var VisuallyHidden = import_styled_components33.default.div({ ...visuallyHiddenStyle });
8162
- var VisuallyHiddenButFocusable = import_styled_components33.default.div({
8085
+ var import_styled_components32 = __toESM(require("styled-components"));
8086
+ var import_type_guards22 = require("@wistia/type-guards");
8087
+ var import_jsx_runtime205 = require("react/jsx-runtime");
8088
+ var VisuallyHidden = import_styled_components32.default.div({ ...visuallyHiddenStyle });
8089
+ var VisuallyHiddenButFocusable = import_styled_components32.default.div({
8163
8090
  "&:not(:focus-within)": visuallyHiddenStyle
8164
8091
  });
8165
8092
  var ScreenReaderOnly = ({
8166
8093
  text,
8167
8094
  children,
8168
8095
  focusable = false,
8169
- ...props
8096
+ ...otherProps
8170
8097
  }) => {
8171
- const accessibleText = (0, import_type_guards23.isNotNil)(text) ? text : children;
8098
+ const accessibleText = (0, import_type_guards22.isNotNil)(text) ? text : children;
8172
8099
  if (focusable) {
8173
- return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
8100
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
8174
8101
  }
8175
- return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(VisuallyHidden, { ...props, children: accessibleText });
8102
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
8176
8103
  };
8177
8104
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
8178
8105
 
8179
8106
  // src/private/components/FormControlLabel/FormControlLabel.tsx
8180
- var import_jsx_runtime207 = require("react/jsx-runtime");
8181
- var disabledStyle2 = import_styled_components34.css`
8107
+ var import_jsx_runtime206 = require("react/jsx-runtime");
8108
+ var disabledStyle2 = import_styled_components33.css`
8182
8109
  cursor: not-allowed;
8183
8110
  color: var(--wui-color-text-disabled);
8184
8111
  `;
8185
- var StyledLabelWrapper = import_styled_components34.default.div`
8112
+ var StyledLabelWrapper = import_styled_components33.default.div`
8186
8113
  display: flex;
8187
8114
  flex-direction: column;
8188
8115
  `;
8189
- var StyledFormControlLabel = import_styled_components34.default.label`
8116
+ var StyledFormControlLabel = import_styled_components33.default.label`
8190
8117
  cursor: pointer;
8191
8118
  display: flex;
8192
8119
  align-items: center;
@@ -8208,21 +8135,21 @@ var FormControlLabel = ({
8208
8135
  hideLabel = false,
8209
8136
  ...props
8210
8137
  }) => {
8211
- if ((0, import_type_guards24.isNil)(label)) {
8138
+ if ((0, import_type_guards23.isNil)(label)) {
8212
8139
  return null;
8213
8140
  }
8214
- const labelContent = hideLabel ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(StyledLabelWrapper, { children: [
8141
+ const labelContent = hideLabel ? /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(StyledLabelWrapper, { children: [
8215
8142
  label,
8216
- /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(FormControlLabelDescription, { children: description })
8143
+ /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(FormControlLabelDescription, { children: description })
8217
8144
  ] });
8218
- return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
8145
+ return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
8219
8146
  StyledFormControlLabel,
8220
8147
  {
8221
8148
  $disabled: disabled,
8222
8149
  htmlFor,
8223
8150
  ...props,
8224
8151
  children: [
8225
- (0, import_type_guards24.isNotNil)(controlSlot) ? controlSlot : null,
8152
+ (0, import_type_guards23.isNotNil)(controlSlot) ? controlSlot : null,
8226
8153
  labelContent
8227
8154
  ]
8228
8155
  }
@@ -8231,8 +8158,8 @@ var FormControlLabel = ({
8231
8158
  FormControlLabel.displayName = "FormControlLabel";
8232
8159
 
8233
8160
  // src/components/Checkbox/Checkbox.tsx
8234
- var import_jsx_runtime208 = require("react/jsx-runtime");
8235
- var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8161
+ var import_jsx_runtime207 = require("react/jsx-runtime");
8162
+ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8236
8163
  "svg",
8237
8164
  {
8238
8165
  fill: "inherit",
@@ -8240,7 +8167,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8240
8167
  viewBox: "0 0 10 8",
8241
8168
  width: "10",
8242
8169
  xmlns: "http://www.w3.org/2000/svg",
8243
- children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8170
+ children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8244
8171
  "path",
8245
8172
  {
8246
8173
  d: "M3.47281 7.19303L0.377565 4.07999C0.191609 3.89297 0.191609 3.58973 0.377565 3.40268L1.05098 2.72537C1.23694 2.53833 1.53847 2.53833 1.72442 2.72537L3.80953 4.82245L8.27558 0.330729C8.46154 0.143704 8.76306 0.143704 8.94902 0.330729L9.62244 1.00804C9.8084 1.19506 9.8084 1.49831 9.62244 1.68535L4.14624 7.19305C3.96027 7.38008 3.65876 7.38008 3.47281 7.19303Z",
@@ -8249,7 +8176,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8249
8176
  )
8250
8177
  }
8251
8178
  );
8252
- var sizeSmall = import_styled_components35.css`
8179
+ var sizeSmall = import_styled_components34.css`
8253
8180
  width: 14px;
8254
8181
  height: 14px;
8255
8182
  min-width: 14px;
@@ -8260,7 +8187,7 @@ var sizeSmall = import_styled_components35.css`
8260
8187
  height: 7px;
8261
8188
  }
8262
8189
  `;
8263
- var sizeMedium = import_styled_components35.css`
8190
+ var sizeMedium = import_styled_components34.css`
8264
8191
  width: 16px;
8265
8192
  height: 16px;
8266
8193
  min-width: 16px;
@@ -8271,7 +8198,7 @@ var sizeMedium = import_styled_components35.css`
8271
8198
  height: 9px;
8272
8199
  }
8273
8200
  `;
8274
- var sizeLarge = import_styled_components35.css`
8201
+ var sizeLarge = import_styled_components34.css`
8275
8202
  width: 20px;
8276
8203
  height: 20px;
8277
8204
  min-width: 20px;
@@ -8287,14 +8214,14 @@ var getSizeCss = (size) => {
8287
8214
  if (size === "lg") return sizeLarge;
8288
8215
  return sizeMedium;
8289
8216
  };
8290
- var StyledCheckboxWrapper = import_styled_components35.default.div`
8217
+ var StyledCheckboxWrapper = import_styled_components34.default.div`
8291
8218
  display: flex;
8292
8219
  margin: 0;
8293
8220
 
8294
8221
  /* TODO this solves a problem but potentially causes and a11y issue */
8295
8222
  user-select: none;
8296
8223
  `;
8297
- var StyledCheckboxInput = import_styled_components35.default.div`
8224
+ var StyledCheckboxInput = import_styled_components34.default.div`
8298
8225
  ${({ $size }) => getSizeCss($size)}
8299
8226
  line-height: 0;
8300
8227
  margin: 0;
@@ -8316,7 +8243,7 @@ var StyledCheckboxInput = import_styled_components35.default.div`
8316
8243
  }
8317
8244
  }
8318
8245
  `;
8319
- var StyledHiddenCheckboxInput = import_styled_components35.default.input`
8246
+ var StyledHiddenCheckboxInput = import_styled_components34.default.input`
8320
8247
  ${visuallyHiddenStyle}
8321
8248
 
8322
8249
  /* toggles display of faux-input background-color */
@@ -8346,9 +8273,9 @@ var Checkbox = (0, import_react23.forwardRef)(
8346
8273
  ...props
8347
8274
  }, ref) => {
8348
8275
  const generatedId = (0, import_react23.useId)();
8349
- const computedId = (0, import_type_guards25.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8350
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8351
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8276
+ const computedId = (0, import_type_guards24.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8277
+ return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8278
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8352
8279
  StyledHiddenCheckboxInput,
8353
8280
  {
8354
8281
  ...props,
@@ -8363,16 +8290,16 @@ var Checkbox = (0, import_react23.forwardRef)(
8363
8290
  value
8364
8291
  }
8365
8292
  ),
8366
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8293
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8367
8294
  FormControlLabel,
8368
8295
  {
8369
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8296
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8370
8297
  StyledCheckboxInput,
8371
8298
  {
8372
8299
  $disabled: disabled,
8373
8300
  $size: size,
8374
8301
  "data-wui-faux-input": "true",
8375
- children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(CheckIcon, {})
8302
+ children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(CheckIcon, {})
8376
8303
  }
8377
8304
  ),
8378
8305
  description,
@@ -8424,10 +8351,10 @@ ClickRegion.displayName = "ClickRegion";
8424
8351
 
8425
8352
  // src/components/Collapsible/Collapsible.tsx
8426
8353
  var import_react_collapsible = require("@radix-ui/react-collapsible");
8427
- var import_type_guards26 = require("@wistia/type-guards");
8428
- var import_styled_components36 = __toESM(require("styled-components"));
8429
- var import_jsx_runtime209 = require("react/jsx-runtime");
8430
- var StyledRoot = (0, import_styled_components36.default)(import_react_collapsible.Root)`
8354
+ var import_type_guards25 = require("@wistia/type-guards");
8355
+ var import_styled_components35 = __toESM(require("styled-components"));
8356
+ var import_jsx_runtime208 = require("react/jsx-runtime");
8357
+ var StyledRoot = (0, import_styled_components35.default)(import_react_collapsible.Root)`
8431
8358
  &[data-state='closed'] [data-wui-collapsible-content] {
8432
8359
  display: -webkit-box;
8433
8360
  -webkit-box-orient: vertical;
@@ -8441,84 +8368,84 @@ var Collapsible = ({
8441
8368
  onOpenChange
8442
8369
  }) => {
8443
8370
  const controlProps = {
8444
- ...(0, import_type_guards26.isNotNil)(onOpenChange) && (0, import_type_guards26.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
8371
+ ...(0, import_type_guards25.isNotNil)(onOpenChange) && (0, import_type_guards25.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
8445
8372
  };
8446
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(StyledRoot, { ...controlProps, children });
8373
+ return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(StyledRoot, { ...controlProps, children });
8447
8374
  };
8448
8375
  Collapsible.displayName = "Collapsible";
8449
8376
 
8450
8377
  // src/components/Collapsible/CollapsibleTrigger.tsx
8451
8378
  var import_react25 = require("react");
8452
8379
  var import_react_collapsible2 = require("@radix-ui/react-collapsible");
8453
- var import_jsx_runtime210 = require("react/jsx-runtime");
8380
+ var import_jsx_runtime209 = require("react/jsx-runtime");
8454
8381
  var CollapsibleTrigger = ({ children }) => {
8455
8382
  import_react25.Children.only(children);
8456
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8383
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8457
8384
  };
8458
8385
 
8459
8386
  // src/components/Collapsible/CollapsibleContent.tsx
8460
- var import_styled_components37 = __toESM(require("styled-components"));
8387
+ var import_styled_components36 = __toESM(require("styled-components"));
8461
8388
  var import_react_collapsible3 = require("@radix-ui/react-collapsible");
8462
- var import_type_guards27 = require("@wistia/type-guards");
8463
- var import_jsx_runtime211 = require("react/jsx-runtime");
8464
- var ClampedContent = import_styled_components37.default.div.attrs({ "data-wui-collapsible-content": true })`
8389
+ var import_type_guards26 = require("@wistia/type-guards");
8390
+ var import_jsx_runtime210 = require("react/jsx-runtime");
8391
+ var ClampedContent = import_styled_components36.default.div.attrs({ "data-wui-collapsible-content": true })`
8465
8392
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
8466
8393
  `;
8467
8394
  var CollapsibleContent = ({ clamp, children }) => {
8468
- if ((0, import_type_guards27.isNotUndefined)(clamp)) {
8469
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(ClampedContent, { $clamp: clamp, children });
8395
+ if ((0, import_type_guards26.isNotUndefined)(clamp)) {
8396
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(ClampedContent, { $clamp: clamp, children });
8470
8397
  }
8471
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(import_jsx_runtime211.Fragment, { children: [
8398
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(import_jsx_runtime210.Fragment, { children: [
8472
8399
  children,
8473
8400
  " "
8474
8401
  ] }) });
8475
8402
  };
8476
8403
 
8477
8404
  // src/components/DataCards/DataCard.tsx
8478
- var import_styled_components39 = __toESM(require("styled-components"));
8479
- var import_type_guards28 = require("@wistia/type-guards");
8405
+ var import_styled_components38 = __toESM(require("styled-components"));
8406
+ var import_type_guards27 = require("@wistia/type-guards");
8480
8407
 
8481
8408
  // src/components/Heading/Heading.tsx
8482
8409
  var import_react26 = require("react");
8483
- var import_styled_components38 = __toESM(require("styled-components"));
8484
- var import_jsx_runtime212 = require("react/jsx-runtime");
8485
- var heroStyle = import_styled_components38.css`
8410
+ var import_styled_components37 = __toESM(require("styled-components"));
8411
+ var import_jsx_runtime211 = require("react/jsx-runtime");
8412
+ var heroStyle = import_styled_components37.css`
8486
8413
  --font-family: var(--wui-typography-heading-hero-family);
8487
8414
  --font-size: var(--wui-typography-heading-hero-size);
8488
8415
  --font-weight: var(--wui-typography-heading-hero-weight);
8489
8416
  --line-height: var(--wui-typography-heading-hero-line-height);
8490
8417
  `;
8491
- var heading1TextStyle = import_styled_components38.css`
8418
+ var heading1TextStyle = import_styled_components37.css`
8492
8419
  --font-family: var(--wui-typography-heading-1-family);
8493
8420
  --font-size: var(--wui-typography-heading-1-size);
8494
8421
  --font-weight: var(--wui-typography-heading-1-weight);
8495
8422
  --line-height: var(--wui-typography-heading-1-line-height);
8496
8423
  `;
8497
- var heading2TextStyle = import_styled_components38.css`
8424
+ var heading2TextStyle = import_styled_components37.css`
8498
8425
  --font-family: var(--wui-typography-heading-2-family);
8499
8426
  --font-size: var(--wui-typography-heading-2-size);
8500
8427
  --font-weight: var(--wui-typography-heading-2-weight);
8501
8428
  --line-height: var(--wui-typography-heading-2-line-height);
8502
8429
  `;
8503
- var heading3TextStyle = import_styled_components38.css`
8430
+ var heading3TextStyle = import_styled_components37.css`
8504
8431
  --font-family: var(--wui-typography-heading-3-family);
8505
8432
  --font-size: var(--wui-typography-heading-3-size);
8506
8433
  --font-weight: var(--wui-typography-heading-3-weight);
8507
8434
  --line-height: var(--wui-typography-heading-3-line-height);
8508
8435
  `;
8509
- var heading4TextStyle = import_styled_components38.css`
8436
+ var heading4TextStyle = import_styled_components37.css`
8510
8437
  --font-family: var(--wui-typography-heading-4-family);
8511
8438
  --font-size: var(--wui-typography-heading-4-size);
8512
8439
  --font-weight: var(--wui-typography-heading-4-weight);
8513
8440
  --line-height: var(--wui-typography-heading-4-line-height);
8514
8441
  `;
8515
- var heading5TextStyle = import_styled_components38.css`
8442
+ var heading5TextStyle = import_styled_components37.css`
8516
8443
  --font-family: var(--wui-typography-heading-5-family);
8517
8444
  --font-size: var(--wui-typography-heading-5-size);
8518
8445
  --font-weight: var(--wui-typography-heading-5-weight);
8519
8446
  --line-height: var(--wui-typography-heading-5-line-height);
8520
8447
  `;
8521
- var heading6TextStyle = import_styled_components38.css`
8448
+ var heading6TextStyle = import_styled_components37.css`
8522
8449
  --font-family: var(--wui-typography-heading-6-family);
8523
8450
  --font-size: var(--wui-typography-heading-6-size);
8524
8451
  --font-weight: var(--wui-typography-heading-6-weight);
@@ -8534,7 +8461,7 @@ var variantStyleMap = {
8534
8461
  heading6: heading6TextStyle
8535
8462
  };
8536
8463
  var DEFAULT_ELEMENT2 = "h1";
8537
- var StyledHeading = import_styled_components38.default.div`
8464
+ var StyledHeading = import_styled_components37.default.div`
8538
8465
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8539
8466
  font-family: var(--font-family);
8540
8467
  font-size: var(--font-size);
@@ -8543,16 +8470,16 @@ var StyledHeading = import_styled_components38.default.div`
8543
8470
  color: var(--wui-color-text);
8544
8471
  ${({ $variant }) => variantStyleMap[$variant]}
8545
8472
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8546
- ${({ $inline }) => $inline && import_styled_components38.css`
8473
+ ${({ $inline }) => $inline && import_styled_components37.css`
8547
8474
  display: inline-block;
8548
8475
  `}
8549
- ${({ $disabled }) => $disabled && import_styled_components38.css`
8476
+ ${({ $disabled }) => $disabled && import_styled_components37.css`
8550
8477
  color: var(--wui-color-text-disabled);
8551
8478
  `}
8552
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components38.css`
8479
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
8553
8480
  user-select: none;
8554
8481
  `}
8555
- ${({ $align }) => import_styled_components38.css`
8482
+ ${({ $align }) => import_styled_components37.css`
8556
8483
  text-align: ${$align};
8557
8484
  `}
8558
8485
  margin: 0;
@@ -8576,8 +8503,8 @@ var HeadingComponent = (0, import_react26.forwardRef)(
8576
8503
  preventUserSelect = false,
8577
8504
  variant = "heading1",
8578
8505
  renderAs,
8579
- ...props
8580
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8506
+ ...otherProps
8507
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
8581
8508
  StyledHeading,
8582
8509
  {
8583
8510
  ref,
@@ -8589,7 +8516,7 @@ var HeadingComponent = (0, import_react26.forwardRef)(
8589
8516
  $preventUserSelect: preventUserSelect,
8590
8517
  $variant: variant,
8591
8518
  as: renderAs ?? variantElementMap[variant],
8592
- ...props
8519
+ ...otherProps
8593
8520
  }
8594
8521
  )
8595
8522
  );
@@ -8597,8 +8524,8 @@ HeadingComponent.displayName = "Heading";
8597
8524
  var Heading = makePolymorphic(HeadingComponent);
8598
8525
 
8599
8526
  // src/components/DataCards/DataCard.tsx
8600
- var import_jsx_runtime213 = require("react/jsx-runtime");
8601
- var StyledDataCard = import_styled_components39.default.div`
8527
+ var import_jsx_runtime212 = require("react/jsx-runtime");
8528
+ var StyledDataCard = import_styled_components38.default.div`
8602
8529
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
8603
8530
  display: grid;
8604
8531
  grid-template-areas: 'label slot' 'value value';
@@ -8611,7 +8538,7 @@ var StyledDataCard = import_styled_components39.default.div`
8611
8538
  border-radius: var(--wui-border-radius-02);
8612
8539
  position: relative;
8613
8540
  `;
8614
- var shimmer = import_styled_components39.keyframes`
8541
+ var shimmer = import_styled_components38.keyframes`
8615
8542
  0% {
8616
8543
  background-position: 200% 0;
8617
8544
  }
@@ -8619,7 +8546,7 @@ var shimmer = import_styled_components39.keyframes`
8619
8546
  background-position: -200% 0;
8620
8547
  }
8621
8548
  `;
8622
- var LoadingBackground = import_styled_components39.default.div`
8549
+ var LoadingBackground = import_styled_components38.default.div`
8623
8550
  background: linear-gradient(
8624
8551
  90deg,
8625
8552
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -8630,27 +8557,27 @@ var LoadingBackground = import_styled_components39.default.div`
8630
8557
  animation: ${shimmer} 1.5s infinite;
8631
8558
  border-radius: var(--wui-border-radius-01);
8632
8559
  `;
8633
- var StyledLoadingLabel = (0, import_styled_components39.default)(LoadingBackground)`
8560
+ var StyledLoadingLabel = (0, import_styled_components38.default)(LoadingBackground)`
8634
8561
  width: 80px;
8635
8562
  height: var(--wui-typography-heading-6-line-height);
8636
8563
  `;
8637
- var StyledLoadingValue = (0, import_styled_components39.default)(LoadingBackground)`
8564
+ var StyledLoadingValue = (0, import_styled_components38.default)(LoadingBackground)`
8638
8565
  width: 90%;
8639
8566
  height: var(--wui-typography-heading-3-line-height);
8640
8567
  `;
8641
- var StyledLabel2 = (0, import_styled_components39.default)(Heading)`
8568
+ var StyledLabel2 = (0, import_styled_components38.default)(Heading)`
8642
8569
  grid-area: label;
8643
8570
  `;
8644
- var StyledValue = (0, import_styled_components39.default)(Heading)`
8571
+ var StyledValue = (0, import_styled_components38.default)(Heading)`
8645
8572
  grid-area: value;
8646
8573
  `;
8647
- var StyledSlot = import_styled_components39.default.div`
8574
+ var StyledSlot = import_styled_components38.default.div`
8648
8575
  display: flex;
8649
8576
  justify-content: flex-end;
8650
8577
  grid-area: slot;
8651
8578
  align-self: center;
8652
8579
  `;
8653
- var StyledDataCardTrendContainer = import_styled_components39.default.div`
8580
+ var StyledDataCardTrendContainer = import_styled_components38.default.div`
8654
8581
  position: absolute;
8655
8582
  bottom: var(--wui-space-01);
8656
8583
  right: var(--wui-space-01);
@@ -8663,39 +8590,39 @@ var DataCard = ({
8663
8590
  isLoading = false,
8664
8591
  trend,
8665
8592
  ...props
8666
- }) => /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
8593
+ }) => /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
8667
8594
  StyledDataCard,
8668
8595
  {
8669
8596
  $colorScheme: colorScheme,
8670
8597
  ...props,
8671
8598
  children: [
8672
- /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8599
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8673
8600
  StyledLabel2,
8674
8601
  {
8675
8602
  renderAs: "dt",
8676
8603
  variant: "heading6",
8677
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledLoadingLabel, {}) : label
8604
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledLoadingLabel, {}) : label
8678
8605
  }
8679
8606
  ),
8680
- /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8607
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8681
8608
  StyledValue,
8682
8609
  {
8683
8610
  renderAs: "dd",
8684
8611
  variant: "heading3",
8685
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledLoadingValue, {}) : value
8612
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledLoadingValue, {}) : value
8686
8613
  }
8687
8614
  ),
8688
- (0, import_type_guards28.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledSlot, { children: upperRightSlot }),
8689
- (0, import_type_guards28.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledDataCardTrendContainer, { children: trend })
8615
+ (0, import_type_guards27.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledSlot, { children: upperRightSlot }),
8616
+ (0, import_type_guards27.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledDataCardTrendContainer, { children: trend })
8690
8617
  ]
8691
8618
  }
8692
8619
  );
8693
8620
  DataCard.displayName = "DataCard";
8694
8621
 
8695
8622
  // src/components/DataCards/DataCards.tsx
8696
- var import_styled_components40 = __toESM(require("styled-components"));
8697
- var import_jsx_runtime214 = require("react/jsx-runtime");
8698
- var StyledDataCards = (0, import_styled_components40.default)(Box)`
8623
+ var import_styled_components39 = __toESM(require("styled-components"));
8624
+ var import_jsx_runtime213 = require("react/jsx-runtime");
8625
+ var StyledDataCards = (0, import_styled_components39.default)(Box)`
8699
8626
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8700
8627
  margin-top: 0; /* Remove default <dl> style */
8701
8628
  > * {
@@ -8709,7 +8636,7 @@ var DataCards = ({
8709
8636
  colorScheme = "inherit",
8710
8637
  ...props
8711
8638
  }) => {
8712
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8639
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8713
8640
  StyledDataCards,
8714
8641
  {
8715
8642
  ...props,
@@ -8727,25 +8654,25 @@ var DataCards = ({
8727
8654
  DataCards.displayName = "DataCards";
8728
8655
 
8729
8656
  // src/components/DataCards/DataCardTrend.tsx
8730
- var import_styled_components42 = __toESM(require("styled-components"));
8657
+ var import_styled_components41 = __toESM(require("styled-components"));
8731
8658
 
8732
8659
  // src/components/Text/Text.tsx
8733
8660
  var import_react27 = require("react");
8734
- var import_styled_components41 = __toESM(require("styled-components"));
8735
- var import_jsx_runtime215 = require("react/jsx-runtime");
8736
- var bodyBoldStyles = import_styled_components41.css`
8661
+ var import_styled_components40 = __toESM(require("styled-components"));
8662
+ var import_jsx_runtime214 = require("react/jsx-runtime");
8663
+ var bodyBoldStyles = import_styled_components40.css`
8737
8664
  > strong,
8738
8665
  b {
8739
8666
  font-weight: var(--wui-typography-weight-body-bold);
8740
8667
  }
8741
8668
  `;
8742
- var labelBoldStyles = import_styled_components41.css`
8669
+ var labelBoldStyles = import_styled_components40.css`
8743
8670
  > strong,
8744
8671
  b {
8745
8672
  font-weight: var(--wui-typography-weight-label-bold);
8746
8673
  }
8747
8674
  `;
8748
- var body1TextStyle = import_styled_components41.css`
8675
+ var body1TextStyle = import_styled_components40.css`
8749
8676
  --font-family: var(--wui-typography-body-1-family);
8750
8677
  --font-size: var(--wui-typography-body-1-size);
8751
8678
  --font-weight: var(--wui-typography-body-1-weight);
@@ -8753,7 +8680,7 @@ var body1TextStyle = import_styled_components41.css`
8753
8680
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8754
8681
  ${bodyBoldStyles}
8755
8682
  `;
8756
- var body2TextStyle = import_styled_components41.css`
8683
+ var body2TextStyle = import_styled_components40.css`
8757
8684
  --font-family: var(--wui-typography-body-2-family);
8758
8685
  --font-size: var(--wui-typography-body-2-size);
8759
8686
  --font-weight: var(--wui-typography-body-2-weight);
@@ -8761,7 +8688,7 @@ var body2TextStyle = import_styled_components41.css`
8761
8688
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8762
8689
  ${bodyBoldStyles}
8763
8690
  `;
8764
- var body3TextStyle = import_styled_components41.css`
8691
+ var body3TextStyle = import_styled_components40.css`
8765
8692
  --font-family: var(--wui-typography-body-3-family);
8766
8693
  --font-size: var(--wui-typography-body-3-size);
8767
8694
  --font-weight: var(--wui-typography-body-3-weight);
@@ -8769,7 +8696,7 @@ var body3TextStyle = import_styled_components41.css`
8769
8696
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8770
8697
  ${bodyBoldStyles}
8771
8698
  `;
8772
- var body4TextStyle = import_styled_components41.css`
8699
+ var body4TextStyle = import_styled_components40.css`
8773
8700
  --font-family: var(--wui-typography-body-4-family);
8774
8701
  --font-size: var(--wui-typography-body-4-size);
8775
8702
  --font-weight: var(--wui-typography-body-4-weight);
@@ -8777,47 +8704,47 @@ var body4TextStyle = import_styled_components41.css`
8777
8704
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8778
8705
  ${bodyBoldStyles}
8779
8706
  `;
8780
- var label1TextStyle = import_styled_components41.css`
8707
+ var label1TextStyle = import_styled_components40.css`
8781
8708
  --font-family: var(--wui-typography-label-1-family);
8782
8709
  --font-size: var(--wui-typography-label-1-size);
8783
8710
  --font-weight: var(--wui-typography-label-1-weight);
8784
8711
  --line-height: var(--wui-typography-label-1-line-height);
8785
8712
  ${labelBoldStyles}
8786
8713
  `;
8787
- var label2TextStyle = import_styled_components41.css`
8714
+ var label2TextStyle = import_styled_components40.css`
8788
8715
  --font-family: var(--wui-typography-label-2-family);
8789
8716
  --font-size: var(--wui-typography-label-2-size);
8790
8717
  --font-weight: var(--wui-typography-label-2-weight);
8791
8718
  --line-height: var(--wui-typography-label-2-line-height);
8792
8719
  ${labelBoldStyles}
8793
8720
  `;
8794
- var label3TextStyle = import_styled_components41.css`
8721
+ var label3TextStyle = import_styled_components40.css`
8795
8722
  --font-family: var(--wui-typography-label-3-family);
8796
8723
  --font-size: var(--wui-typography-label-3-size);
8797
8724
  --font-weight: var(--wui-typography-label-3-weight);
8798
8725
  --line-height: var(--wui-typography-label-3-line-height);
8799
8726
  ${labelBoldStyles}
8800
8727
  `;
8801
- var label4TextStyle = import_styled_components41.css`
8728
+ var label4TextStyle = import_styled_components40.css`
8802
8729
  --font-family: var(--wui-typography-label-4-family);
8803
8730
  --font-size: var(--wui-typography-label-4-size);
8804
8731
  --font-weight: var(--wui-typography-label-4-weight);
8805
8732
  --line-height: var(--wui-typography-label-4-line-height);
8806
8733
  ${labelBoldStyles}
8807
8734
  `;
8808
- var body1MonoTextStyle = import_styled_components41.css`
8735
+ var body1MonoTextStyle = import_styled_components40.css`
8809
8736
  ${body1TextStyle};
8810
8737
  --font-family: var(--wui-typography-family-mono);
8811
8738
  `;
8812
- var body2MonoTextStyle = import_styled_components41.css`
8739
+ var body2MonoTextStyle = import_styled_components40.css`
8813
8740
  ${body2TextStyle};
8814
8741
  --font-family: var(--wui-typography-family-mono);
8815
8742
  `;
8816
- var body3MonoTextStyle = import_styled_components41.css`
8743
+ var body3MonoTextStyle = import_styled_components40.css`
8817
8744
  ${body3TextStyle};
8818
8745
  --font-family: var(--wui-typography-family-mono);
8819
8746
  `;
8820
- var body4MonoTextStyle = import_styled_components41.css`
8747
+ var body4MonoTextStyle = import_styled_components40.css`
8821
8748
  ${body4TextStyle};
8822
8749
  --font-family: var(--wui-typography-family-mono);
8823
8750
  `;
@@ -8852,7 +8779,7 @@ var variantElementMap2 = {
8852
8779
  label3: labelElement,
8853
8780
  label4: labelElement
8854
8781
  };
8855
- var StyledText = import_styled_components41.default.div`
8782
+ var StyledText = import_styled_components40.default.div`
8856
8783
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8857
8784
  --text-color: ${({ $prominence, $disabled }) => {
8858
8785
  if ($disabled) {
@@ -8876,19 +8803,19 @@ var StyledText = import_styled_components41.default.div`
8876
8803
  margin: 0;
8877
8804
  ${({ $variant }) => variantStyleMap2[$variant]}
8878
8805
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8879
- ${({ $inline }) => $inline && import_styled_components41.css`
8806
+ ${({ $inline }) => $inline && import_styled_components40.css`
8880
8807
  display: inline-block;
8881
8808
  `}
8882
- ${({ $disabled }) => $disabled && import_styled_components41.css`
8809
+ ${({ $disabled }) => $disabled && import_styled_components40.css`
8883
8810
  --text-color: var(--wui-color-text-disabled);
8884
8811
  `}
8885
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components41.css`
8812
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components40.css`
8886
8813
  user-select: none;
8887
8814
  `}
8888
- ${({ $align }) => import_styled_components41.css`
8815
+ ${({ $align }) => import_styled_components40.css`
8889
8816
  text-align: ${$align};
8890
8817
  `}
8891
- ${({ as }) => as === "p" && import_styled_components41.css`
8818
+ ${({ as }) => as === "p" && import_styled_components40.css`
8892
8819
  display: block;
8893
8820
 
8894
8821
  + p {
@@ -8907,9 +8834,9 @@ var TextComponent = (0, import_react27.forwardRef)(
8907
8834
  prominence = "primary",
8908
8835
  variant = "body2",
8909
8836
  renderAs,
8910
- ...props
8837
+ ...otherProps
8911
8838
  }, ref) => {
8912
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8839
+ return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8913
8840
  StyledText,
8914
8841
  {
8915
8842
  ref,
@@ -8922,7 +8849,7 @@ var TextComponent = (0, import_react27.forwardRef)(
8922
8849
  $prominence: prominence,
8923
8850
  $variant: variant,
8924
8851
  as: renderAs ?? variantElementMap2[variant],
8925
- ...props
8852
+ ...otherProps
8926
8853
  }
8927
8854
  );
8928
8855
  }
@@ -8931,8 +8858,8 @@ TextComponent.displayName = "Text";
8931
8858
  var Text = makePolymorphic(TextComponent);
8932
8859
 
8933
8860
  // src/components/DataCards/DataCardTrend.tsx
8934
- var import_jsx_runtime216 = require("react/jsx-runtime");
8935
- var StyledDataCardTrend = import_styled_components42.default.div`
8861
+ var import_jsx_runtime215 = require("react/jsx-runtime");
8862
+ var StyledDataCardTrend = import_styled_components41.default.div`
8936
8863
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
8937
8864
  background: var(--wui-color-bg-app);
8938
8865
  border-radius: var(--wui-border-radius-rounded);
@@ -8947,8 +8874,8 @@ var DataCardTrend = ({
8947
8874
  children,
8948
8875
  ...props
8949
8876
  }) => {
8950
- return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
8951
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8877
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
8878
+ /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8952
8879
  Icon,
8953
8880
  {
8954
8881
  size: "md",
@@ -8956,7 +8883,7 @@ var DataCardTrend = ({
8956
8883
  ...props
8957
8884
  }
8958
8885
  ),
8959
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8886
+ /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8960
8887
  Text,
8961
8888
  {
8962
8889
  prominence: "secondary",
@@ -8968,22 +8895,22 @@ var DataCardTrend = ({
8968
8895
  };
8969
8896
 
8970
8897
  // src/components/Divider/Divider.tsx
8971
- var import_styled_components43 = __toESM(require("styled-components"));
8972
- var import_jsx_runtime217 = require("react/jsx-runtime");
8973
- var horizontalBorderCss = import_styled_components43.css`
8898
+ var import_styled_components42 = __toESM(require("styled-components"));
8899
+ var import_jsx_runtime216 = require("react/jsx-runtime");
8900
+ var horizontalBorderCss = import_styled_components42.css`
8974
8901
  border-top-color: var(--wui-color-border);
8975
8902
  border-top-style: solid;
8976
8903
  border-top-width: 1px;
8977
8904
  clear: both; /* for horizontal dividers, ensure it clears any floats */
8978
8905
  height: 0;
8979
8906
  `;
8980
- var verticalBorderCss = import_styled_components43.css`
8907
+ var verticalBorderCss = import_styled_components42.css`
8981
8908
  background-color: var(--wui-color-border);
8982
8909
  max-width: 1px;
8983
8910
  min-height: 100%;
8984
8911
  width: 1px;
8985
8912
  `;
8986
- var DividerComponent = import_styled_components43.default.div`
8913
+ var DividerComponent = import_styled_components42.default.div`
8987
8914
  ${({ $orientation }) => {
8988
8915
  switch ($orientation) {
8989
8916
  case "vertical":
@@ -8994,35 +8921,38 @@ var DividerComponent = import_styled_components43.default.div`
8994
8921
  }
8995
8922
  }}
8996
8923
  `;
8997
- var Divider = ({ orientation = "horizontal", ...props }) => {
8998
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
8924
+ var Divider = ({
8925
+ orientation = "horizontal",
8926
+ ...otherProps
8927
+ }) => {
8928
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8999
8929
  DividerComponent,
9000
8930
  {
9001
8931
  $orientation: orientation,
9002
8932
  "aria-orientation": orientation,
9003
8933
  role: "separator",
9004
- ...props
8934
+ ...otherProps
9005
8935
  }
9006
8936
  );
9007
8937
  };
9008
8938
  Divider.displayName = "Divider";
9009
8939
 
9010
8940
  // src/components/EditableHeading/EditableHeading.tsx
9011
- var import_styled_components47 = __toESM(require("styled-components"));
8941
+ var import_styled_components46 = __toESM(require("styled-components"));
9012
8942
  var import_react29 = require("react");
9013
8943
 
9014
8944
  // src/components/Tooltip/Tooltip.tsx
9015
8945
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
9016
- var import_styled_components44 = __toESM(require("styled-components"));
9017
- var import_jsx_runtime218 = require("react/jsx-runtime");
9018
- var CompactTooltipStyles = import_styled_components44.css`
8946
+ var import_styled_components43 = __toESM(require("styled-components"));
8947
+ var import_jsx_runtime217 = require("react/jsx-runtime");
8948
+ var CompactTooltipStyles = import_styled_components43.css`
9019
8949
  --tooltip-font-size: var(--wui-typography-label-4-size);
9020
8950
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
9021
8951
  --tooltip-font-weight: var(--wui-typography-label-4-weight);
9022
8952
  --tooltip-horizontal-padding: var(--wui-space-02);
9023
8953
  --tooltip-vertical-padding: var(--wui-space-03);
9024
8954
  `;
9025
- var StyledContent = (0, import_styled_components44.default)(import_react_tooltip2.Content)`
8955
+ var StyledContent = (0, import_styled_components43.default)(import_react_tooltip2.Content)`
9026
8956
  --tooltip-font-family: var(--wui-typography-family-default);
9027
8957
  --tooltip-border-radius: var(--wui-border-radius-05);
9028
8958
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -9081,14 +9011,14 @@ var Tooltip = ({
9081
9011
  if (forceOpen === true) {
9082
9012
  rootProps.open = true;
9083
9013
  }
9084
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9014
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
9085
9015
  import_react_tooltip2.Root,
9086
9016
  {
9087
9017
  delayDuration: delay,
9088
9018
  ...rootProps,
9089
9019
  children: [
9090
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
9091
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9020
+ /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
9021
+ /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
9092
9022
  StyledContent,
9093
9023
  {
9094
9024
  $compact: compact,
@@ -9096,7 +9026,7 @@ var Tooltip = ({
9096
9026
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
9097
9027
  children: [
9098
9028
  content,
9099
- !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9029
+ !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
9100
9030
  "svg",
9101
9031
  {
9102
9032
  fill: "var(--tooltip-bg)",
@@ -9105,7 +9035,7 @@ var Tooltip = ({
9105
9035
  viewBox: "0 0 12 8",
9106
9036
  width: "12",
9107
9037
  xmlns: "http://www.w3.org/2000/svg",
9108
- children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
9038
+ children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
9109
9039
  }
9110
9040
  ) }) : null
9111
9041
  ]
@@ -9119,12 +9049,12 @@ Tooltip.displayName = "Tooltip";
9119
9049
 
9120
9050
  // src/components/Input/Input.tsx
9121
9051
  var import_react28 = require("react");
9122
- var import_styled_components46 = __toESM(require("styled-components"));
9123
- var import_type_guards29 = require("@wistia/type-guards");
9052
+ var import_styled_components45 = __toESM(require("styled-components"));
9053
+ var import_type_guards28 = require("@wistia/type-guards");
9124
9054
 
9125
9055
  // src/css/sharedStyles/inputCssVariables.ts
9126
- var import_styled_components45 = require("styled-components");
9127
- var inputCssVariables = import_styled_components45.css`
9056
+ var import_styled_components44 = require("styled-components");
9057
+ var inputCssVariables = import_styled_components44.css`
9128
9058
  --wui-input-color-bg: var(--wui-color-bg-surface);
9129
9059
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
9130
9060
  --wui-input-color-border: var(--wui-color-border-secondary);
@@ -9141,8 +9071,8 @@ var inputCssVariables = import_styled_components45.css`
9141
9071
  `;
9142
9072
 
9143
9073
  // src/components/Input/Input.tsx
9144
- var import_jsx_runtime219 = require("react/jsx-runtime");
9145
- var inputStyles = import_styled_components46.css`
9074
+ var import_jsx_runtime218 = require("react/jsx-runtime");
9075
+ var inputStyles = import_styled_components45.css`
9146
9076
  ${inputCssVariables}
9147
9077
  input,
9148
9078
  textarea {
@@ -9177,7 +9107,7 @@ var inputStyles = import_styled_components46.css`
9177
9107
  }
9178
9108
  }
9179
9109
  `;
9180
- var StyledInputContainer = import_styled_components46.default.div`
9110
+ var StyledInputContainer = import_styled_components45.default.div`
9181
9111
  display: inline-flex;
9182
9112
  position: relative;
9183
9113
  ${inputStyles};
@@ -9257,27 +9187,27 @@ var Input = (0, import_react28.forwardRef)(
9257
9187
  const internalRef = (0, import_react28.useRef)();
9258
9188
  const ref = (
9259
9189
  // eslint-disable-next-line react-compiler/react-compiler
9260
- (0, import_type_guards29.isNotNil)(externalRef) && (0, import_type_guards29.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
9190
+ (0, import_type_guards28.isNotNil)(externalRef) && (0, import_type_guards28.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
9261
9191
  );
9262
9192
  let leftIconToDisplay = leftIcon;
9263
- if ((0, import_type_guards29.isNil)(leftIcon) && type === "search") {
9264
- leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon, { type: "search" });
9193
+ if ((0, import_type_guards28.isNil)(leftIcon) && type === "search") {
9194
+ leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Icon, { type: "search" });
9265
9195
  }
9266
- if ((0, import_type_guards29.isNotNil)(leftIconToDisplay)) {
9196
+ if ((0, import_type_guards28.isNotNil)(leftIconToDisplay)) {
9267
9197
  leftIconToDisplay = (0, import_react28.cloneElement)(leftIconToDisplay, {
9268
9198
  size: "md",
9269
9199
  className: "wui-input-left-icon"
9270
9200
  });
9271
9201
  }
9272
9202
  let rightIconToDisplay = rightIcon;
9273
- if ((0, import_type_guards29.isNotNil)(rightIconToDisplay)) {
9203
+ if ((0, import_type_guards28.isNotNil)(rightIconToDisplay)) {
9274
9204
  rightIconToDisplay = (0, import_react28.cloneElement)(rightIconToDisplay, {
9275
9205
  size: "md",
9276
9206
  className: "wui-input-right-icon"
9277
9207
  });
9278
9208
  }
9279
9209
  const handleFocus2 = (event) => {
9280
- if ((0, import_type_guards29.isNotNil)(props.onFocus)) {
9210
+ if ((0, import_type_guards28.isNotNil)(props.onFocus)) {
9281
9211
  props.onFocus(event);
9282
9212
  }
9283
9213
  if (autoSelect && isValidRef(ref) && "current" in ref) {
@@ -9286,21 +9216,21 @@ var Input = (0, import_react28.forwardRef)(
9286
9216
  });
9287
9217
  }
9288
9218
  };
9289
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
9219
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9290
9220
  StyledInputContainer,
9291
9221
  {
9292
9222
  $fullWidth: fullWidth,
9293
9223
  $monospace: monospace,
9294
9224
  children: [
9295
9225
  leftIconToDisplay ?? null,
9296
- type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9226
+ type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9297
9227
  "textarea",
9298
9228
  {
9299
9229
  ...props,
9300
9230
  ref,
9301
9231
  onFocus: handleFocus2
9302
9232
  }
9303
- ) : /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9233
+ ) : /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9304
9234
  "input",
9305
9235
  {
9306
9236
  ...props,
@@ -9318,8 +9248,8 @@ var Input = (0, import_react28.forwardRef)(
9318
9248
  Input.displayName = "Input";
9319
9249
 
9320
9250
  // src/components/EditableHeading/EditableHeading.tsx
9321
- var import_jsx_runtime220 = require("react/jsx-runtime");
9322
- var StyledInput = (0, import_styled_components47.default)(Input)`
9251
+ var import_jsx_runtime219 = require("react/jsx-runtime");
9252
+ var StyledInput = (0, import_styled_components46.default)(Input)`
9323
9253
  :not([rows]) {
9324
9254
  min-height: unset;
9325
9255
  }
@@ -9339,7 +9269,7 @@ var StyledInput = (0, import_styled_components47.default)(Input)`
9339
9269
  height: ${({ $height }) => `${$height}px`};
9340
9270
  }
9341
9271
  `;
9342
- var editableStyles = import_styled_components47.css`
9272
+ var editableStyles = import_styled_components46.css`
9343
9273
  &:has(+ :focus-within) {
9344
9274
  background: var(--wui-color-bg-surface-hover);
9345
9275
  }
@@ -9349,7 +9279,7 @@ var editableStyles = import_styled_components47.css`
9349
9279
  cursor: pointer;
9350
9280
  }
9351
9281
  `;
9352
- var StyledHeading2 = (0, import_styled_components47.default)(Heading)`
9282
+ var StyledHeading2 = (0, import_styled_components46.default)(Heading)`
9353
9283
  width: 100%;
9354
9284
  border-radius: var(--wui-border-radius-02);
9355
9285
  padding: var(--wui-space-02);
@@ -9403,7 +9333,7 @@ var EditableHeading = ({
9403
9333
  handleSetEditing(false);
9404
9334
  }
9405
9335
  };
9406
- const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9336
+ const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9407
9337
  StyledHeading2,
9408
9338
  {
9409
9339
  ref: headingRef,
@@ -9417,7 +9347,7 @@ var EditableHeading = ({
9417
9347
  return HeadingComponent2;
9418
9348
  }
9419
9349
  if (isEditing || forceEditing) {
9420
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9350
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9421
9351
  StyledInput,
9422
9352
  {
9423
9353
  $height: headingHeight,
@@ -9435,8 +9365,8 @@ var EditableHeading = ({
9435
9365
  }
9436
9366
  );
9437
9367
  }
9438
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
9439
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9368
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, { children: [
9369
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9440
9370
  Tooltip,
9441
9371
  {
9442
9372
  compact: true,
@@ -9444,7 +9374,7 @@ var EditableHeading = ({
9444
9374
  children: HeadingComponent2
9445
9375
  }
9446
9376
  ),
9447
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9377
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9448
9378
  "button",
9449
9379
  {
9450
9380
  "aria-label": ariaLabel,
@@ -9457,15 +9387,15 @@ var EditableHeading = ({
9457
9387
 
9458
9388
  // src/components/Form/Form.tsx
9459
9389
  var import_react31 = require("react");
9460
- var import_styled_components49 = __toESM(require("styled-components"));
9461
- var import_type_guards30 = require("@wistia/type-guards");
9390
+ var import_styled_components48 = __toESM(require("styled-components"));
9391
+ var import_type_guards29 = require("@wistia/type-guards");
9462
9392
 
9463
9393
  // src/components/Stack/Stack.tsx
9464
9394
  var import_react30 = require("react");
9465
- var import_styled_components48 = __toESM(require("styled-components"));
9466
- var import_jsx_runtime221 = require("react/jsx-runtime");
9395
+ var import_styled_components47 = __toESM(require("styled-components"));
9396
+ var import_jsx_runtime220 = require("react/jsx-runtime");
9467
9397
  var DEFAULT_ELEMENT4 = "div";
9468
- var StyledStack = import_styled_components48.default.div`
9398
+ var StyledStack = import_styled_components47.default.div`
9469
9399
  display: flex;
9470
9400
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
9471
9401
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
@@ -9476,7 +9406,7 @@ var StackComponent = (0, import_react30.forwardRef)(
9476
9406
  const responsiveGap = useResponsiveProp(gap);
9477
9407
  const responsiveDirection = useResponsiveProp(direction);
9478
9408
  const responsiveAlignItems = useResponsiveProp(alignItems);
9479
- return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9409
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9480
9410
  StyledStack,
9481
9411
  {
9482
9412
  ref,
@@ -9493,8 +9423,8 @@ StackComponent.displayName = "Stack";
9493
9423
  var Stack = makePolymorphic(StackComponent);
9494
9424
 
9495
9425
  // src/components/Form/Form.tsx
9496
- var import_jsx_runtime222 = require("react/jsx-runtime");
9497
- var StyledForm = import_styled_components49.default.form`
9426
+ var import_jsx_runtime221 = require("react/jsx-runtime");
9427
+ var StyledForm = import_styled_components48.default.form`
9498
9428
  --form-default-width: 690px;
9499
9429
 
9500
9430
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
@@ -9524,7 +9454,7 @@ var FormComponent = ({
9524
9454
  const id = props.id ?? autoId;
9525
9455
  const handleValidate = (nextFormData) => {
9526
9456
  const nextData = Object.fromEntries(nextFormData.entries());
9527
- if ((0, import_type_guards30.isUndefined)(validate)) {
9457
+ if ((0, import_type_guards29.isUndefined)(validate)) {
9528
9458
  return {};
9529
9459
  }
9530
9460
  return validate(nextData);
@@ -9534,7 +9464,7 @@ var FormComponent = ({
9534
9464
  props.onBlur(event);
9535
9465
  }
9536
9466
  const formData = new FormData(event.currentTarget);
9537
- if ((0, import_type_guards30.isNotUndefined)(validate)) {
9467
+ if ((0, import_type_guards29.isNotUndefined)(validate)) {
9538
9468
  handleValidate(formData);
9539
9469
  }
9540
9470
  };
@@ -9573,7 +9503,7 @@ var FormComponent = ({
9573
9503
  }, [labelPosition, values, errors, id, hasSubmitted]);
9574
9504
  return (
9575
9505
  // @ts-expect-error - generic context providers are a giant pain
9576
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9506
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9577
9507
  Stack,
9578
9508
  {
9579
9509
  ...props,
@@ -9631,10 +9561,10 @@ var useFormState = (action, initialData = {}) => {
9631
9561
 
9632
9562
  // src/components/Form/FormErrorSummary.tsx
9633
9563
  var import_react33 = require("react");
9634
- var import_type_guards31 = require("@wistia/type-guards");
9635
- var import_jsx_runtime223 = require("react/jsx-runtime");
9564
+ var import_type_guards30 = require("@wistia/type-guards");
9565
+ var import_jsx_runtime222 = require("react/jsx-runtime");
9636
9566
  var ErrorItem = ({ name, error, formId }) => {
9637
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9567
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9638
9568
  };
9639
9569
  var FormErrorSummary = ({ description }) => {
9640
9570
  const ref = (0, import_react33.useRef)(null);
@@ -9643,10 +9573,10 @@ var FormErrorSummary = ({ description }) => {
9643
9573
  if (isValid || !hasSubmitted) {
9644
9574
  return null;
9645
9575
  }
9646
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)("div", { ref, children: [
9647
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("p", { children: description }),
9648
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards31.isNotUndefined)(error)).map(
9649
- ([name, error]) => (0, import_type_guards31.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9576
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("div", { ref, children: [
9577
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("p", { children: description }),
9578
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards30.isNotUndefined)(error)).map(
9579
+ ([name, error]) => (0, import_type_guards30.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9650
9580
  ErrorItem,
9651
9581
  {
9652
9582
  error: err,
@@ -9654,7 +9584,7 @@ var FormErrorSummary = ({ description }) => {
9654
9584
  name
9655
9585
  },
9656
9586
  err
9657
- )) : /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9587
+ )) : /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9658
9588
  ErrorItem,
9659
9589
  {
9660
9590
  error: error ?? "",
@@ -9669,13 +9599,13 @@ var FormErrorSummary = ({ description }) => {
9669
9599
 
9670
9600
  // src/components/FormField/FormField.tsx
9671
9601
  var import_react36 = require("react");
9672
- var import_styled_components52 = __toESM(require("styled-components"));
9673
- var import_type_guards32 = require("@wistia/type-guards");
9602
+ var import_styled_components51 = __toESM(require("styled-components"));
9603
+ var import_type_guards31 = require("@wistia/type-guards");
9674
9604
 
9675
9605
  // src/components/Label/Label.tsx
9676
- var import_styled_components50 = __toESM(require("styled-components"));
9677
- var import_jsx_runtime224 = require("react/jsx-runtime");
9678
- var requiredStyle = import_styled_components50.css`
9606
+ var import_styled_components49 = __toESM(require("styled-components"));
9607
+ var import_jsx_runtime223 = require("react/jsx-runtime");
9608
+ var requiredStyle = import_styled_components49.css`
9679
9609
  &::after {
9680
9610
  color: var(--wui-color-text-error);
9681
9611
  display: inline;
@@ -9683,10 +9613,10 @@ var requiredStyle = import_styled_components50.css`
9683
9613
  content: '*';
9684
9614
  }
9685
9615
  `;
9686
- var disabledStyle3 = import_styled_components50.css`
9616
+ var disabledStyle3 = import_styled_components49.css`
9687
9617
  color: var(--wui-color-text-disabled);
9688
9618
  `;
9689
- var StyledLabel3 = import_styled_components50.default.label`
9619
+ var StyledLabel3 = import_styled_components49.default.label`
9690
9620
  display: block;
9691
9621
  width: 100%;
9692
9622
  color: var(--wui-color-text);
@@ -9716,12 +9646,12 @@ var Label = ({
9716
9646
  htmlFor,
9717
9647
  required = false,
9718
9648
  screenReaderOnly = false,
9719
- ...props
9649
+ ...otherProps
9720
9650
  }) => {
9721
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9651
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9722
9652
  StyledLabel3,
9723
9653
  {
9724
- ...props,
9654
+ ...otherProps,
9725
9655
  $disabled: disabled,
9726
9656
  $required: required,
9727
9657
  $screenReaderOnly: screenReaderOnly,
@@ -9736,25 +9666,25 @@ Label.displayName = "Label";
9736
9666
  var import_react35 = require("react");
9737
9667
 
9738
9668
  // src/components/FormGroup/FormGroup.tsx
9739
- var import_styled_components51 = __toESM(require("styled-components"));
9669
+ var import_styled_components50 = __toESM(require("styled-components"));
9740
9670
  var import_react34 = require("react");
9741
- var import_jsx_runtime225 = require("react/jsx-runtime");
9742
- var StyledFieldset = import_styled_components51.default.fieldset`
9671
+ var import_jsx_runtime224 = require("react/jsx-runtime");
9672
+ var StyledFieldset = import_styled_components50.default.fieldset`
9743
9673
  border: 0;
9744
9674
  `;
9745
- var StyledLegend = import_styled_components51.default.legend`
9675
+ var StyledLegend = import_styled_components50.default.legend`
9746
9676
  margin-bottom: var(--space-01);
9747
9677
  `;
9748
9678
  var FormGroup = ({ children, label, ...props }) => {
9749
9679
  const ref = (0, import_react34.useRef)();
9750
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
9680
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
9751
9681
  Stack,
9752
9682
  {
9753
9683
  ...props,
9754
9684
  ref,
9755
9685
  renderAs: StyledFieldset,
9756
9686
  children: [
9757
- /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9687
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9758
9688
  Heading,
9759
9689
  {
9760
9690
  renderAs: StyledLegend,
@@ -9770,7 +9700,7 @@ var FormGroup = ({ children, label, ...props }) => {
9770
9700
  FormGroup.displayName = "FormGroup";
9771
9701
 
9772
9702
  // src/components/FormGroup/CheckboxGroup.tsx
9773
- var import_jsx_runtime226 = require("react/jsx-runtime");
9703
+ var import_jsx_runtime225 = require("react/jsx-runtime");
9774
9704
  var CheckboxGroupContext = (0, import_react35.createContext)(null);
9775
9705
  var CheckboxGroup = ({
9776
9706
  children,
@@ -9785,13 +9715,13 @@ var CheckboxGroup = ({
9785
9715
  onChange
9786
9716
  };
9787
9717
  }, [name, onChange]);
9788
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(FormGroup, { ...props, children }) });
9718
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(FormGroup, { ...props, children }) });
9789
9719
  };
9790
9720
  CheckboxGroup.displayName = "CheckboxGroup";
9791
9721
 
9792
9722
  // src/components/FormField/FormField.tsx
9793
- var import_jsx_runtime227 = require("react/jsx-runtime");
9794
- var StyledFormField = import_styled_components52.default.div`
9723
+ var import_jsx_runtime226 = require("react/jsx-runtime");
9724
+ var StyledFormField = import_styled_components51.default.div`
9795
9725
  --form-field-spacing: var(--wui-space-01);
9796
9726
  --form-field-spacing-inline: var(--wui-space-02);
9797
9727
  --form-field-error-color: var(--wui-color-text-secondary-error);
@@ -9821,7 +9751,7 @@ var StyledFormField = import_styled_components52.default.div`
9821
9751
  grid-template-rows: 1fr;
9822
9752
  }
9823
9753
  `;
9824
- var StyledErrorList = import_styled_components52.default.ul`
9754
+ var StyledErrorList = import_styled_components51.default.ul`
9825
9755
  margin: 0;
9826
9756
  padding: 0;
9827
9757
  padding-left: var(--wui-space-04);
@@ -9830,8 +9760,8 @@ var StyledErrorList = import_styled_components52.default.ul`
9830
9760
  gap: var(--wui-space-01);
9831
9761
  `;
9832
9762
  var ErrorMessages = ({ errors, id }) => {
9833
- const isMultipleErrors = (0, import_type_guards32.isArray)(errors);
9834
- return isMultipleErrors ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
9763
+ const isMultipleErrors = (0, import_type_guards31.isArray)(errors);
9764
+ return isMultipleErrors ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9835
9765
  Text,
9836
9766
  {
9837
9767
  colorScheme: "error",
@@ -9841,7 +9771,7 @@ var ErrorMessages = ({ errors, id }) => {
9841
9771
  children: error
9842
9772
  },
9843
9773
  `${id}-${index}`
9844
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
9774
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9845
9775
  Text,
9846
9776
  {
9847
9777
  colorScheme: "error",
@@ -9880,19 +9810,19 @@ var FormField = ({
9880
9810
  "aria-describedby": ariaDescribedby,
9881
9811
  ...props
9882
9812
  };
9883
- if ((0, import_type_guards32.isUndefined)(value) && (0, import_type_guards32.isNotUndefined)(defaultValue)) {
9813
+ if ((0, import_type_guards31.isUndefined)(value) && (0, import_type_guards31.isNotUndefined)(defaultValue)) {
9884
9814
  childProps = {
9885
9815
  ...childProps,
9886
9816
  defaultValue
9887
9817
  };
9888
9818
  }
9889
- if ((0, import_type_guards32.isNotNil)(checkboxGroup)) {
9890
- const computedName = (0, import_type_guards32.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9819
+ if ((0, import_type_guards31.isNotNil)(checkboxGroup)) {
9820
+ const computedName = (0, import_type_guards31.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9891
9821
  const handleChange = (event) => {
9892
- if ((0, import_type_guards32.isNotUndefined)(props.onChange)) {
9822
+ if ((0, import_type_guards31.isNotUndefined)(props.onChange)) {
9893
9823
  props.onChange(event);
9894
9824
  }
9895
- if ((0, import_type_guards32.isNotUndefined)(checkboxGroup.onChange)) {
9825
+ if ((0, import_type_guards31.isNotUndefined)(checkboxGroup.onChange)) {
9896
9826
  checkboxGroup.onChange(event);
9897
9827
  }
9898
9828
  };
@@ -9900,22 +9830,22 @@ var FormField = ({
9900
9830
  ...childProps,
9901
9831
  name: computedName,
9902
9832
  onChange: handleChange,
9903
- "aria-invalid": (0, import_type_guards32.isNotNil)(error)
9833
+ "aria-invalid": (0, import_type_guards31.isNotNil)(error)
9904
9834
  };
9905
9835
  }
9906
9836
  import_react36.Children.only(children);
9907
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
9837
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
9908
9838
  StyledFormField,
9909
9839
  {
9910
9840
  ...props,
9911
9841
  "data-label-position": labelPosition ?? formState.labelPosition,
9912
9842
  children: [
9913
- !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Label, { htmlFor: computedId, children: label }),
9914
- (0, import_type_guards32.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9843
+ !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Label, { htmlFor: computedId, children: label }),
9844
+ (0, import_type_guards31.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9915
9845
  (0, import_react36.cloneElement)(children, childProps),
9916
- (0, import_type_guards32.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, { children: [
9917
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", {}),
9918
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
9846
+ (0, import_type_guards31.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, { children: [
9847
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", {}),
9848
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9919
9849
  ErrorMessages,
9920
9850
  {
9921
9851
  errors: computedError,
@@ -9931,7 +9861,7 @@ FormField.displayName = "FormField";
9931
9861
 
9932
9862
  // src/components/FormGroup/RadioGroup.tsx
9933
9863
  var import_react37 = require("react");
9934
- var import_jsx_runtime228 = require("react/jsx-runtime");
9864
+ var import_jsx_runtime227 = require("react/jsx-runtime");
9935
9865
  var RadioGroupContext = (0, import_react37.createContext)(null);
9936
9866
  var RadioGroup = ({
9937
9867
  children,
@@ -9946,15 +9876,15 @@ var RadioGroup = ({
9946
9876
  onChange
9947
9877
  };
9948
9878
  }, [name, onChange]);
9949
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(FormGroup, { ...props, children }) });
9879
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(FormGroup, { ...props, children }) });
9950
9880
  };
9951
9881
  RadioGroup.displayName = "RadioGroup";
9952
9882
 
9953
9883
  // src/components/IconButton/IconButton.tsx
9954
9884
  var import_react38 = require("react");
9955
- var import_styled_components53 = __toESM(require("styled-components"));
9956
- var import_jsx_runtime229 = require("react/jsx-runtime");
9957
- var StyledButton2 = (0, import_styled_components53.default)(Button)`
9885
+ var import_styled_components52 = __toESM(require("styled-components"));
9886
+ var import_jsx_runtime228 = require("react/jsx-runtime");
9887
+ var StyledButton2 = (0, import_styled_components52.default)(Button)`
9958
9888
  --icon-button-size-sm: 24px;
9959
9889
  --icon-button-size-md: 32px;
9960
9890
  --icon-button-size-lg: 40px;
@@ -9971,7 +9901,7 @@ var StyledButton2 = (0, import_styled_components53.default)(Button)`
9971
9901
  var IconButton = (0, import_react38.forwardRef)(
9972
9902
  ({ children, label, size = "md", ...props }, ref) => {
9973
9903
  const responsiveSize = useResponsiveProp(size);
9974
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
9904
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
9975
9905
  StyledButton2,
9976
9906
  {
9977
9907
  ...props,
@@ -9988,6 +9918,55 @@ var IconButton = (0, import_react38.forwardRef)(
9988
9918
  );
9989
9919
  IconButton.displayName = "IconButton";
9990
9920
 
9921
+ // src/components/Image/Image.tsx
9922
+ var import_styled_components53 = __toESM(require("styled-components"));
9923
+ var import_type_guards32 = require("@wistia/type-guards");
9924
+ var import_jsx_runtime229 = require("react/jsx-runtime");
9925
+ var getFillStyle2 = (fillContainer) => {
9926
+ if (fillContainer === "horizontal") {
9927
+ return "width: 100%;";
9928
+ }
9929
+ if (fillContainer === "vertical") {
9930
+ return "height: 100%;";
9931
+ }
9932
+ if (fillContainer === true) {
9933
+ return `
9934
+ width: 100%;
9935
+ height: 100%;
9936
+ `;
9937
+ }
9938
+ return void 0;
9939
+ };
9940
+ var StyledImage = import_styled_components53.default.img`
9941
+ border-radius: ${({ $borderRadius }) => (0, import_type_guards32.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
9942
+ ${({ $fillContainer }) => getFillStyle2($fillContainer)};
9943
+ object-fit: ${({ $objFit }) => $objFit};
9944
+ object-position: ${({ $objPosition }) => $objPosition};
9945
+ `;
9946
+ var Image = ({
9947
+ src,
9948
+ alt,
9949
+ borderRadius,
9950
+ fill: fillContainer = false,
9951
+ fit: objFit,
9952
+ loading = "lazy",
9953
+ position: objPosition,
9954
+ ...otherProps
9955
+ }) => /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
9956
+ StyledImage,
9957
+ {
9958
+ $borderRadius: borderRadius,
9959
+ $fillContainer: fillContainer,
9960
+ $objFit: objFit,
9961
+ $objPosition: objPosition,
9962
+ alt,
9963
+ loading,
9964
+ src,
9965
+ ...otherProps
9966
+ }
9967
+ );
9968
+ Image.displayName = "Image";
9969
+
9991
9970
  // src/components/Menu/Menu.tsx
9992
9971
  var import_styled_components54 = __toESM(require("styled-components"));
9993
9972
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
@@ -10663,7 +10642,7 @@ var StyledModalContent = (0, import_styled_components61.default)(import_react_di
10663
10642
  }
10664
10643
  `;
10665
10644
  var ModalContent = (0, import_react45.forwardRef)(
10666
- ({ fullHeight, width, children, ...props }, ref) => {
10645
+ ({ fullHeight, width, children, ...otherProps }, ref) => {
10667
10646
  useFocusRestore();
10668
10647
  return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10669
10648
  StyledModalContent,
@@ -10672,7 +10651,7 @@ var ModalContent = (0, import_react45.forwardRef)(
10672
10651
  $fullHeight: fullHeight,
10673
10652
  $width: width,
10674
10653
  "aria-describedby": void 0,
10675
- ...props,
10654
+ ...otherProps,
10676
10655
  children
10677
10656
  }
10678
10657
  );
@@ -11508,7 +11487,6 @@ Select.displayName = "Select";
11508
11487
  var import_react_select2 = require("@radix-ui/react-select");
11509
11488
  var import_react55 = require("react");
11510
11489
  var import_styled_components71 = __toESM(require("styled-components"));
11511
- var import_type_guards43 = require("@wistia/type-guards");
11512
11490
  var import_jsx_runtime252 = require("react/jsx-runtime");
11513
11491
  var StyledItem = (0, import_styled_components71.default)(import_react_select2.Item)`
11514
11492
  ${variantStyleMap2.body3};
@@ -11538,24 +11516,21 @@ var StyledIconContainer = import_styled_components71.default.span`
11538
11516
  width: 12px;
11539
11517
  `;
11540
11518
  var SelectOption = (0, import_react55.forwardRef)(
11541
- ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11519
+ ({ children, ...props }, forwardedRef) => {
11542
11520
  return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
11543
11521
  StyledItem,
11544
11522
  {
11545
11523
  ...props,
11546
11524
  ref: forwardedRef,
11547
11525
  children: [
11548
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
11526
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StyledIconContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
11549
11527
  Icon,
11550
11528
  {
11551
11529
  size: "sm",
11552
11530
  type: "checkmark"
11553
11531
  }
11554
11532
  ) }) }),
11555
- (0, import_type_guards43.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("div", { children: [
11556
- children,
11557
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
11558
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select2.ItemText, { children })
11533
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select2.ItemText, { children })
11559
11534
  ]
11560
11535
  }
11561
11536
  );
@@ -11587,7 +11562,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11587
11562
  // src/components/Switch/Switch.tsx
11588
11563
  var import_react56 = require("react");
11589
11564
  var import_styled_components73 = __toESM(require("styled-components"));
11590
- var import_type_guards44 = require("@wistia/type-guards");
11565
+ var import_type_guards43 = require("@wistia/type-guards");
11591
11566
  var import_jsx_runtime254 = require("react/jsx-runtime");
11592
11567
  var sizeSmall3 = import_styled_components73.css`
11593
11568
  --wui-size-small-width: 24px;
@@ -11706,7 +11681,7 @@ var Switch = (0, import_react56.forwardRef)(
11706
11681
  ...props
11707
11682
  }, ref) => {
11708
11683
  const generatedId = (0, import_react56.useId)();
11709
- const computedId = (0, import_type_guards44.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
11684
+ const computedId = (0, import_type_guards43.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
11710
11685
  return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
11711
11686
  /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
11712
11687
  StyledHiddenSwitchInput,
@@ -11853,7 +11828,7 @@ var TableRow = ({ children, ...props }) => {
11853
11828
  // src/components/Tabs/Tabs.tsx
11854
11829
  var import_react63 = require("react");
11855
11830
  var import_react_tabs4 = require("@radix-ui/react-tabs");
11856
- var import_type_guards46 = require("@wistia/type-guards");
11831
+ var import_type_guards45 = require("@wistia/type-guards");
11857
11832
  var import_styled_components84 = __toESM(require("styled-components"));
11858
11833
 
11859
11834
  // src/components/Tabs/TabPanel.tsx
@@ -11909,7 +11884,7 @@ TabList.displayName = "TabList";
11909
11884
  var import_react60 = require("react");
11910
11885
  var import_styled_components82 = __toESM(require("styled-components"));
11911
11886
  var import_react_tabs3 = require("@radix-ui/react-tabs");
11912
- var import_type_guards45 = require("@wistia/type-guards");
11887
+ var import_type_guards44 = require("@wistia/type-guards");
11913
11888
 
11914
11889
  // src/components/Tabs/useTabsValue.tsx
11915
11890
  var import_react59 = require("react");
@@ -11967,8 +11942,8 @@ var TabItem = (0, import_react60.forwardRef)(
11967
11942
  StyledTabItem,
11968
11943
  {
11969
11944
  ref: combinedRef,
11970
- $hasLabel: (0, import_type_guards45.isNotNil)(label),
11971
- "aria-label": (0, import_type_guards45.isNotNil)(label) ? void 0 : ariaLabel,
11945
+ $hasLabel: (0, import_type_guards44.isNotNil)(label),
11946
+ "aria-label": (0, import_type_guards44.isNotNil)(label) ? void 0 : ariaLabel,
11972
11947
  disabled,
11973
11948
  value,
11974
11949
  children: [
@@ -12065,7 +12040,7 @@ var Tabs = (0, import_react63.forwardRef)(
12065
12040
  selectedValue,
12066
12041
  onSelectedValueChange,
12067
12042
  stickyHeaders = true,
12068
- ...props
12043
+ ...otherProps
12069
12044
  }, ref) => {
12070
12045
  const tabItems = extractTabItems(children);
12071
12046
  const [internalSelectedValue, setInternalSelectedValue] = (0, import_react63.useState)(defaultSelectedValue);
@@ -12080,7 +12055,7 @@ var Tabs = (0, import_react63.forwardRef)(
12080
12055
  ref,
12081
12056
  $stickyHeaders: stickyHeaders,
12082
12057
  activationMode: "automatic",
12083
- ...props,
12058
+ ...otherProps,
12084
12059
  ...modeProps,
12085
12060
  children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(SelectedItemMeasurementsProvider, { children: [
12086
12061
  /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
@@ -12098,7 +12073,7 @@ var Tabs = (0, import_react63.forwardRef)(
12098
12073
  label,
12099
12074
  "aria-label": ariaLabelForTab
12100
12075
  } = tab.props;
12101
- if ((0, import_type_guards46.isNil)(icon)) {
12076
+ if ((0, import_type_guards45.isNil)(icon)) {
12102
12077
  return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
12103
12078
  TabItem,
12104
12079
  {
@@ -12109,7 +12084,7 @@ var Tabs = (0, import_react63.forwardRef)(
12109
12084
  value
12110
12085
  );
12111
12086
  }
12112
- if ((0, import_type_guards46.isNotNil)(label)) {
12087
+ if ((0, import_type_guards45.isNotNil)(label)) {
12113
12088
  return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
12114
12089
  TabItem,
12115
12090
  {
@@ -12121,7 +12096,7 @@ var Tabs = (0, import_react63.forwardRef)(
12121
12096
  value
12122
12097
  );
12123
12098
  }
12124
- if ((0, import_type_guards46.isNotNil)(ariaLabelForTab)) {
12099
+ if ((0, import_type_guards45.isNotNil)(ariaLabelForTab)) {
12125
12100
  return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
12126
12101
  TabItem,
12127
12102
  {
@@ -12164,7 +12139,7 @@ Tab.displayName = "Tab";
12164
12139
  // src/components/Tag/Tag.tsx
12165
12140
  var import_react65 = require("react");
12166
12141
  var import_styled_components85 = __toESM(require("styled-components"));
12167
- var import_type_guards47 = require("@wistia/type-guards");
12142
+ var import_type_guards46 = require("@wistia/type-guards");
12168
12143
  var import_jsx_runtime267 = require("react/jsx-runtime");
12169
12144
  var TagLabel = import_styled_components85.default.a`
12170
12145
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -12249,10 +12224,10 @@ var StyledTag = import_styled_components85.default.div`
12249
12224
  }
12250
12225
  `;
12251
12226
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12252
- if ((0, import_type_guards47.isNil)(onClickRemove)) {
12227
+ if ((0, import_type_guards46.isNil)(onClickRemove)) {
12253
12228
  return null;
12254
12229
  }
12255
- if ((0, import_type_guards47.isNil)(onClickRemoveLabel)) {
12230
+ if ((0, import_type_guards46.isNil)(onClickRemoveLabel)) {
12256
12231
  throw new Error(
12257
12232
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12258
12233
  );
@@ -12280,15 +12255,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12280
12255
  ] });
12281
12256
  };
12282
12257
  var Tag = (0, import_react65.forwardRef)(
12283
- ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12284
- const hasIcon = (0, import_type_guards47.isNotNil)(icon);
12285
- const labelProps = (0, import_type_guards47.isNotNil)(href) && (0, import_type_guards47.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12258
+ ({
12259
+ onClickRemove,
12260
+ colorScheme = "inherit",
12261
+ href,
12262
+ icon,
12263
+ label,
12264
+ onClickRemoveLabel,
12265
+ ...otherProps
12266
+ }, ref) => {
12267
+ const hasIcon = (0, import_type_guards46.isNotNil)(icon);
12268
+ const labelProps = (0, import_type_guards46.isNotNil)(href) && (0, import_type_guards46.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12286
12269
  return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
12287
12270
  StyledTag,
12288
12271
  {
12289
12272
  ref,
12290
12273
  $colorScheme: colorScheme,
12291
- ...props,
12274
+ ...otherProps,
12292
12275
  children: [
12293
12276
  /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
12294
12277
  TagLabel,
@@ -12318,7 +12301,7 @@ Tag.displayName = "Tag";
12318
12301
 
12319
12302
  // src/components/WistiaLogo/WistiaLogo.tsx
12320
12303
  var import_styled_components86 = __toESM(require("styled-components"));
12321
- var import_type_guards48 = require("@wistia/type-guards");
12304
+ var import_type_guards47 = require("@wistia/type-guards");
12322
12305
  var import_jsx_runtime268 = require("react/jsx-runtime");
12323
12306
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12324
12307
  if (iconOnly) {
@@ -12396,7 +12379,7 @@ var WistiaLogo = ({
12396
12379
  opticallyCentered = false,
12397
12380
  title = "Wistia Logo",
12398
12381
  variant = "standard",
12399
- ...props
12382
+ ...otherProps
12400
12383
  }) => {
12401
12384
  const primaryColor = "#2949e5";
12402
12385
  const darkColor = "#000934";
@@ -12428,10 +12411,10 @@ var WistiaLogo = ({
12428
12411
  role: "img",
12429
12412
  viewBox: computedViewBox(iconOnly),
12430
12413
  xmlns: "http://www.w3.org/2000/svg",
12431
- ...props,
12414
+ ...otherProps,
12432
12415
  children: [
12433
12416
  /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("title", { children: title }),
12434
- (0, import_type_guards48.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("desc", { children: description }) : null,
12417
+ (0, import_type_guards47.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("desc", { children: description }) : null,
12435
12418
  renderBrandmark(brandmarkColor, iconOnly),
12436
12419
  renderLogotype(logotypeColor, iconOnly)
12437
12420
  ]
@@ -12443,7 +12426,7 @@ WistiaLogo.displayName = "WistiaLogo";
12443
12426
 
12444
12427
  // src/components/Thumbnail/ThumbnailBadge.tsx
12445
12428
  var import_styled_components87 = __toESM(require("styled-components"));
12446
- var import_type_guards49 = require("@wistia/type-guards");
12429
+ var import_type_guards48 = require("@wistia/type-guards");
12447
12430
  var import_jsx_runtime269 = require("react/jsx-runtime");
12448
12431
  var StyledThumbnailBadge = import_styled_components87.default.div`
12449
12432
  align-items: center;
@@ -12469,9 +12452,13 @@ var StyledThumbnailBadge = import_styled_components87.default.div`
12469
12452
  }
12470
12453
  }
12471
12454
  `;
12472
- var ThumbnailBadge = ({ icon, label, ...props }) => {
12473
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(StyledThumbnailBadge, { ...props, children: [
12474
- (0, import_type_guards49.isNotNil)(icon) && icon,
12455
+ var ThumbnailBadge = ({
12456
+ icon,
12457
+ label,
12458
+ ...otherProps
12459
+ }) => {
12460
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(StyledThumbnailBadge, { ...otherProps, children: [
12461
+ (0, import_type_guards48.isNotNil)(icon) && icon,
12475
12462
  /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("span", { children: label })
12476
12463
  ] });
12477
12464
  };
@@ -12480,10 +12467,10 @@ ThumbnailBadge.displayName = "ThumbnailBadge";
12480
12467
  // src/components/Thumbnail/Thumbnail.tsx
12481
12468
  var import_react66 = require("react");
12482
12469
  var import_styled_components89 = __toESM(require("styled-components"));
12483
- var import_type_guards51 = require("@wistia/type-guards");
12470
+ var import_type_guards50 = require("@wistia/type-guards");
12484
12471
 
12485
12472
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12486
- var import_type_guards50 = require("@wistia/type-guards");
12473
+ var import_type_guards49 = require("@wistia/type-guards");
12487
12474
  var import_styled_components88 = require("styled-components");
12488
12475
  var gradients = {
12489
12476
  defaultDarkOne: import_styled_components88.css`
@@ -12611,7 +12598,7 @@ var gradients = {
12611
12598
  };
12612
12599
  var gradientMap = Object.keys(gradients);
12613
12600
  var getBackgroundGradient = (gradientName = void 0) => {
12614
- return (0, import_type_guards50.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12601
+ return (0, import_type_guards49.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12615
12602
  };
12616
12603
 
12617
12604
  // src/components/Thumbnail/Thumbnail.tsx
@@ -12645,15 +12632,10 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12645
12632
  );
12646
12633
  };
12647
12634
  var StyledThumbnail = import_styled_components89.default.div`
12648
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards51.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12649
- ${({ $backgroundUrl, $gradientBackground }) => (
12650
- // if we don't have $backgroundUrl show a gradient
12651
- (0, import_type_guards51.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12652
- )};
12653
- background-position: center center;
12654
- background-size: cover;
12635
+ ${({ $gradientBackground }) => getBackgroundGradient($gradientBackground)};
12655
12636
  aspect-ratio: 16 / 9;
12656
- border-radius: var(--wui-border-radius-01);
12637
+ background: ${({ $backgroundUrl }) => (0, import_type_guards50.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}') center / cover` : void 0};
12638
+ border-radius: 4px;
12657
12639
  display: flex;
12658
12640
  overflow: hidden;
12659
12641
  position: relative;
@@ -12666,9 +12648,9 @@ var Thumbnail = (0, import_react66.forwardRef)(
12666
12648
  thumbnailUrl,
12667
12649
  width = "100%",
12668
12650
  children,
12669
- ...props
12651
+ ...otherProps
12670
12652
  }, ref) => {
12671
- const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards51.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12653
+ const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards50.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12672
12654
  return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12673
12655
  StyledThumbnail,
12674
12656
  {
@@ -12676,16 +12658,16 @@ var Thumbnail = (0, import_react66.forwardRef)(
12676
12658
  $backgroundUrl: backgroundUrl,
12677
12659
  $gradientBackground: gradientBackground,
12678
12660
  $width: width,
12679
- ...props,
12661
+ ...otherProps,
12680
12662
  children: [
12681
- (0, import_type_guards51.isNotNil)(children) ? children : null,
12682
- (0, import_type_guards51.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12663
+ (0, import_type_guards50.isNotNil)(children) && children,
12664
+ (0, import_type_guards50.isNotNil)(thumbnailUrl) && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12683
12665
  ThumbnailImage,
12684
12666
  {
12685
12667
  thumbnailImageType,
12686
12668
  thumbnailUrl
12687
12669
  }
12688
- ) : null
12670
+ )
12689
12671
  ]
12690
12672
  }
12691
12673
  );