@wistia/ui 0.6.43 → 0.6.45-beta.cdb67e81.9dbf4c3

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.43
3
+ * @license @wistia/ui v0.6.45-beta.cdb67e81.9dbf4c3
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -6902,7 +6902,7 @@ var Link = forwardRef(
6902
6902
  }, ref) => {
6903
6903
  const inRouterContext = useInRouterContext();
6904
6904
  const to = generateHref(props.href, type, disabled);
6905
- const handleClick = async (event, routingCallback = null) => {
6905
+ const handleClick = async (event) => {
6906
6906
  if (disabled) {
6907
6907
  event.preventDefault();
6908
6908
  } else if (beforeAction) {
@@ -6914,11 +6914,9 @@ var Link = forwardRef(
6914
6914
  } finally {
6915
6915
  if (isFunction2(props.onClick)) {
6916
6916
  props.onClick(event);
6917
- } else if (routingCallback !== null) {
6918
- routingCallback();
6919
- } else if (isNotNil5(to)) {
6917
+ }
6918
+ if (!inRouterContext && isNotNil5(to)) {
6920
6919
  window.location.assign(to);
6921
- } else {
6922
6920
  }
6923
6921
  }
6924
6922
  } else if (isFunction2(props.onClick)) {
@@ -7258,30 +7256,101 @@ ActionButton.displayName = "ActionButton";
7258
7256
 
7259
7257
  // src/components/Avatar/Avatar.tsx
7260
7258
  import { useState as useState5, useMemo as useMemo3, useEffect as useEffect5 } from "react";
7261
- import { isNil as isNil8 } from "@wistia/type-guards";
7262
- import styled8 from "styled-components";
7259
+ import { isNil as isNil8, isNotNil as isNotNil8 } from "@wistia/type-guards";
7260
+ import styled9 from "styled-components";
7263
7261
 
7264
- // src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
7262
+ // src/components/Avatar/formatNameForDisplay.tsx
7263
+ import { isNil as isNil7, isString, isEmptyString } from "@wistia/type-guards";
7264
+ var containsEmojiCharacter = (char) => {
7265
+ const emojiRegex = /<a?:.+?:\d{18}>|\p{Extended_Pictographic}/gu;
7266
+ return emojiRegex.test(char);
7267
+ };
7268
+ var formatNameForDisplay = (name) => {
7269
+ if (isNil7(name) || !isString(name) || isEmptyString(name) || containsEmojiCharacter(name)) {
7270
+ return "U";
7271
+ }
7272
+ const firstChar = name.trim().substring(0, 1);
7273
+ return firstChar.toUpperCase();
7274
+ };
7275
+
7276
+ // src/components/Image/Image.tsx
7265
7277
  import styled7 from "styled-components";
7278
+ import { isNotNil as isNotNil7 } from "@wistia/type-guards";
7266
7279
  import { jsx as jsx195 } from "react/jsx-runtime";
7267
- var colorSchemeOptions = [
7268
- "inherit",
7269
- "default",
7270
- "info",
7271
- "success",
7272
- "warning",
7273
- "error",
7280
+ var getFillStyle = (fillContainer) => {
7281
+ if (fillContainer === "horizontal") {
7282
+ return "width: 100%;";
7283
+ }
7284
+ if (fillContainer === "vertical") {
7285
+ return "height: 100%;";
7286
+ }
7287
+ if (fillContainer === true) {
7288
+ return `
7289
+ width: 100%;
7290
+ height: 100%;
7291
+ `;
7292
+ }
7293
+ return void 0;
7294
+ };
7295
+ var StyledImage = styled7.img`
7296
+ border-radius: ${({ $borderRadius }) => isNotNil7($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
7297
+ ${({ $fillContainer }) => getFillStyle($fillContainer)};
7298
+ object-fit: ${({ $objFit }) => $objFit};
7299
+ object-position: ${({ $objPosition }) => $objPosition};
7300
+ `;
7301
+ var Image = ({
7302
+ src,
7303
+ alt,
7304
+ borderRadius,
7305
+ fill: fillContainer = false,
7306
+ fit: objFit,
7307
+ loading = "lazy",
7308
+ position: objPosition,
7309
+ onLoad,
7310
+ onError,
7311
+ ...props
7312
+ }) => /* @__PURE__ */ jsx195(
7313
+ StyledImage,
7314
+ {
7315
+ $borderRadius: borderRadius,
7316
+ $fillContainer: fillContainer,
7317
+ $objFit: objFit,
7318
+ $objPosition: objPosition,
7319
+ alt,
7320
+ loading,
7321
+ onError,
7322
+ onLoad,
7323
+ src,
7324
+ ...props
7325
+ }
7326
+ );
7327
+ Image.displayName = "Image";
7328
+
7329
+ // src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
7330
+ import styled8 from "styled-components";
7331
+ import { jsx as jsx196 } from "react/jsx-runtime";
7332
+ var defaultColorSchemeOptions = ["default", "inherit"];
7333
+ var semanticColorSchemeOptions = ["error", "info", "success", "warning"];
7334
+ var brandColorSchemeOptions = [
7274
7335
  "blue",
7275
7336
  "green",
7276
7337
  "orange",
7277
7338
  "pink",
7278
7339
  "purple",
7279
- "yellow",
7340
+ "yellow"
7341
+ ];
7342
+ var vendorColorSchemeOptions = [
7280
7343
  "vendor-hubspot",
7281
7344
  "vendor-marketo",
7282
7345
  "vendor-pardot"
7283
7346
  ];
7284
- var StyledColorSchemeWrapper = styled7.div`
7347
+ var colorSchemeOptions = [
7348
+ ...defaultColorSchemeOptions,
7349
+ ...semanticColorSchemeOptions,
7350
+ ...brandColorSchemeOptions,
7351
+ ...vendorColorSchemeOptions
7352
+ ];
7353
+ var StyledColorSchemeWrapper = styled8.div`
7285
7354
  ${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
7286
7355
  `;
7287
7356
  var ColorSchemeWrapper = ({
@@ -7289,7 +7358,7 @@ var ColorSchemeWrapper = ({
7289
7358
  colorScheme = "inherit",
7290
7359
  children,
7291
7360
  ...props
7292
- }) => /* @__PURE__ */ jsx195(
7361
+ }) => /* @__PURE__ */ jsx196(
7293
7362
  StyledColorSchemeWrapper,
7294
7363
  {
7295
7364
  $colorScheme: colorScheme,
@@ -7300,86 +7369,91 @@ var ColorSchemeWrapper = ({
7300
7369
  );
7301
7370
  ColorSchemeWrapper.displayName = "ColorSchemeWrapper";
7302
7371
 
7303
- // src/components/Avatar/formatNameForDisplay.tsx
7304
- import { isNil as isNil7, isString, isEmptyString } from "@wistia/type-guards";
7305
- var containsEmojiCharacter = (char) => {
7306
- const emojiRegex = /<a?:.+?:\d{18}>|\p{Extended_Pictographic}/gu;
7307
- return emojiRegex.test(char);
7308
- };
7309
- var formatNameForDisplay = (name) => {
7310
- if (isNil7(name) || !isString(name) || isEmptyString(name) || containsEmojiCharacter(name)) {
7311
- return "U";
7312
- }
7313
- const firstChar = name.trim().substring(0, 1);
7314
- return firstChar.toUpperCase();
7315
- };
7316
-
7317
7372
  // src/components/Avatar/Avatar.tsx
7318
- import { jsx as jsx196 } from "react/jsx-runtime";
7319
- var AvatarImage = styled8.img`
7320
- align-items: center;
7321
- background-color: white;
7322
- border-radius: 50%;
7323
- display: flex;
7324
- height: ${({ $heightAndWidth }) => $heightAndWidth}px;
7325
- justify-content: center;
7326
- object-fit: cover;
7327
- overflow: hidden;
7328
- pointer-events: none;
7329
- user-select: none;
7330
- width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7331
- transition: box-shadow var(--wui-duration-01) var(--wui-motion-ease);
7332
-
7333
- a:hover & {
7334
- box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
7335
- }
7336
-
7337
- a:active & {
7338
- box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
7339
- }
7340
- `;
7373
+ import { jsx as jsx197, jsxs as jsxs10 } from "react/jsx-runtime";
7341
7374
  var avatarSizeMap = {
7342
7375
  sm: 16,
7343
7376
  md: 24,
7344
7377
  lg: 32
7345
7378
  };
7346
- var fontSizeScaleMultiplier = 0.55;
7347
- var InitialsContainer = styled8.div`
7379
+ var Initial = ({ initial }) => /* @__PURE__ */ jsxs10(
7380
+ "svg",
7381
+ {
7382
+ "data-wui-avatar-initial": true,
7383
+ style: { width: "100%", height: "100%", color: "var(--wui-color-text-on-fill)" },
7384
+ viewBox: "0 0 24 24",
7385
+ xmlns: "http://www.w3.org/2000/svg",
7386
+ children: [
7387
+ /* @__PURE__ */ jsx197(
7388
+ "path",
7389
+ {
7390
+ d: "M0 13.5h24",
7391
+ id: "P"
7392
+ }
7393
+ ),
7394
+ /* @__PURE__ */ jsx197("text", { children: /* @__PURE__ */ jsx197(
7395
+ "textPath",
7396
+ {
7397
+ dominantBaseline: "middle",
7398
+ fill: "currentColor",
7399
+ fontSize: "16px",
7400
+ href: "#P",
7401
+ startOffset: "50%",
7402
+ textAnchor: "middle",
7403
+ children: initial
7404
+ }
7405
+ ) })
7406
+ ]
7407
+ }
7408
+ );
7409
+ var AvatarWrapper = styled9.div`
7348
7410
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7349
- align-items: center;
7350
- background-color: var(--wui-color-bg-fill);
7351
- border: 1px solid var(--wui-color-border);
7352
- border-radius: 50%;
7353
- color: var(--wui-color-text-on-fill);
7354
- display: flex;
7355
- font-size: ${({ $heightAndWidth }) => $heightAndWidth * fontSizeScaleMultiplier}px;
7411
+ width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7356
7412
  height: ${({ $heightAndWidth }) => $heightAndWidth}px;
7357
- justify-content: center;
7413
+ place-content: center;
7358
7414
  overflow: hidden;
7359
- width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7415
+ background-color: var(--wui-color-bg-fill);
7416
+ border-radius: var(--wui-border-radius-rounded);
7417
+ display: grid;
7418
+ user-select: none;
7360
7419
 
7361
- a:hover & {
7362
- box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
7420
+ > * {
7421
+ grid-area: 1 / 1;
7363
7422
  }
7364
7423
 
7365
- a:active & {
7366
- box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
7424
+ --wui-avatar-inset-opacity: 10%;
7425
+
7426
+ outline: 2px solid rgb(0 0 0 / var(--wui-avatar-inset-opacity));
7427
+ outline-offset: -2px;
7428
+
7429
+ [data-wui-avatar-initial] {
7430
+ font-family: var(--wui-typography-family-default);
7431
+ font-weight: var(--wui-typography-weight-label-bold);
7432
+ padding: min(12.5%, 4px);
7433
+ }
7434
+
7435
+ &:only-child {
7436
+ a:hover & {
7437
+ --wui-avatar-inset-opacity: 20%;
7438
+
7439
+ background-color: var(--wui-color-bg-fill-hover);
7440
+ }
7441
+
7442
+ a:active & {
7443
+ --wui-avatar-inset-opacity: 30%;
7444
+
7445
+ background-color: var(--wui-color-bg-fill-active);
7446
+ }
7367
7447
  }
7368
- `;
7369
- var AvatarWrapper = styled8.div`
7370
- max-height: ${({ $maxHeight }) => $maxHeight}px;
7371
7448
  `;
7372
7449
  var chooseColorScheme = (name) => {
7373
7450
  if (isNil8(name) || name === "Anonymous") {
7374
- return "default";
7451
+ return "blue";
7375
7452
  }
7376
- const filteredColors = colorSchemeOptions.filter(
7377
- (color) => color !== "inherit" && color !== "default"
7378
- );
7379
7453
  const multiplier = 31;
7380
7454
  const hashCode = (str) => Array.from(str).reduce((sum, char) => Math.imul(multiplier, sum) + char.charCodeAt(0) | 0, 0);
7381
- const index = Math.abs(hashCode(name)) % filteredColors.length;
7382
- return filteredColors[index] ?? "default";
7455
+ const index = Math.abs(hashCode(name)) % brandColorSchemeOptions.length;
7456
+ return brandColorSchemeOptions[index] ?? "blue";
7383
7457
  };
7384
7458
  var Avatar = ({
7385
7459
  imageUrl,
@@ -7403,29 +7477,26 @@ var Avatar = ({
7403
7477
  };
7404
7478
  const avatarSize = heightAndWidth ?? avatarSizeMap[size];
7405
7479
  const avatarColor = useMemo3(() => chooseColorScheme(name), [name]);
7406
- const showInitials = isNil8(imageUrl) || imageLoadState === "error";
7407
- return /* @__PURE__ */ jsx196(
7480
+ return /* @__PURE__ */ jsxs10(
7408
7481
  AvatarWrapper,
7409
7482
  {
7483
+ $colorScheme: avatarColor,
7484
+ $heightAndWidth: avatarSize,
7410
7485
  ...props,
7411
- $maxHeight: avatarSize,
7412
- children: showInitials ? /* @__PURE__ */ jsx196(
7413
- InitialsContainer,
7414
- {
7415
- $colorScheme: avatarColor,
7416
- $heightAndWidth: avatarSize,
7417
- children: formatNameForDisplay(name)
7418
- }
7419
- ) : /* @__PURE__ */ jsx196(
7420
- AvatarImage,
7421
- {
7422
- $heightAndWidth: avatarSize,
7423
- alt: name ?? "Unavailable",
7424
- onError: handleImageLoadError,
7425
- onLoad: handleImageLoad,
7426
- src: imageUrl
7427
- }
7428
- )
7486
+ children: [
7487
+ /* @__PURE__ */ jsx197(Initial, { initial: formatNameForDisplay(name) }),
7488
+ isNotNil8(imageUrl) && imageLoadState !== "error" && /* @__PURE__ */ jsx197(
7489
+ Image,
7490
+ {
7491
+ alt: isNotNil8(name) ? name : "",
7492
+ "data-state": imageLoadState,
7493
+ fit: "cover",
7494
+ onError: handleImageLoadError,
7495
+ onLoad: handleImageLoad,
7496
+ src: imageUrl
7497
+ }
7498
+ )
7499
+ ]
7429
7500
  }
7430
7501
  );
7431
7502
  };
@@ -7433,10 +7504,10 @@ Avatar.displayName = "Avatar";
7433
7504
 
7434
7505
  // src/components/Badge/Badge.tsx
7435
7506
  import { forwardRef as forwardRef4 } from "react";
7436
- import styled9 from "styled-components";
7437
- import { isNotNil as isNotNil7 } from "@wistia/type-guards";
7438
- import { jsx as jsx197, jsxs as jsxs10 } from "react/jsx-runtime";
7439
- var StyledBadge = styled9.div`
7507
+ import styled10 from "styled-components";
7508
+ import { isNotNil as isNotNil9 } from "@wistia/type-guards";
7509
+ import { jsx as jsx198, jsxs as jsxs11 } from "react/jsx-runtime";
7510
+ var StyledBadge = styled10.div`
7440
7511
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7441
7512
  align-items: center;
7442
7513
  background-color: var(--wui-color-bg-surface-secondary);
@@ -7458,8 +7529,8 @@ var StyledBadge = styled9.div`
7458
7529
  `;
7459
7530
  var Badge = forwardRef4(
7460
7531
  ({ colorScheme = "inherit", label, icon, ...props }, ref) => {
7461
- const hasIcon = isNotNil7(icon);
7462
- return /* @__PURE__ */ jsxs10(
7532
+ const hasIcon = isNotNil9(icon);
7533
+ return /* @__PURE__ */ jsxs11(
7463
7534
  StyledBadge,
7464
7535
  {
7465
7536
  ref,
@@ -7468,7 +7539,7 @@ var Badge = forwardRef4(
7468
7539
  $hasIcon: hasIcon,
7469
7540
  children: [
7470
7541
  hasIcon ? icon : null,
7471
- /* @__PURE__ */ jsx197("span", { children: label })
7542
+ /* @__PURE__ */ jsx198("span", { children: label })
7472
7543
  ]
7473
7544
  }
7474
7545
  );
@@ -7478,8 +7549,8 @@ Badge.displayName = "Badge";
7478
7549
 
7479
7550
  // src/components/Box/Box.tsx
7480
7551
  import { Children, cloneElement as cloneElement2, forwardRef as forwardRef5 } from "react";
7481
- import styled10, { css as css17 } from "styled-components";
7482
- import { isNotNil as isNotNil8, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
7552
+ import styled11, { css as css17 } from "styled-components";
7553
+ import { isNotNil as isNotNil10, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
7483
7554
 
7484
7555
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
7485
7556
  var makePolymorphic = (component) => {
@@ -7487,10 +7558,10 @@ var makePolymorphic = (component) => {
7487
7558
  };
7488
7559
 
7489
7560
  // src/components/Box/Box.tsx
7490
- import { jsx as jsx198 } from "react/jsx-runtime";
7561
+ import { jsx as jsx199 } from "react/jsx-runtime";
7491
7562
  var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
7492
7563
  var getGapStyle = (gap) => {
7493
- if (isNotNil8(gap)) {
7564
+ if (isNotNil10(gap)) {
7494
7565
  if (isRecord3(gap)) {
7495
7566
  return Object.entries(gap).map(([key, value]) => {
7496
7567
  return `${key}-gap: var(--wui-${value})};`;
@@ -7500,7 +7571,7 @@ var getGapStyle = (gap) => {
7500
7571
  }
7501
7572
  return void 0;
7502
7573
  };
7503
- var getFillStyle = (fill) => {
7574
+ var getFillStyle2 = (fill) => {
7504
7575
  if (fill === "horizontal") {
7505
7576
  return "width: 100%;";
7506
7577
  }
@@ -7562,14 +7633,14 @@ var getFlexStyle = (flexMode) => {
7562
7633
  return null;
7563
7634
  }
7564
7635
  };
7565
- var StyledBoxComponent = styled10.div`
7636
+ var StyledBoxComponent = styled11.div`
7566
7637
  align-content: ${({ $alignContent }) => $alignContent};
7567
7638
  align-items: ${({ $alignItems }) => $alignItems};
7568
7639
  align-self: ${({ $alignSelf }) => $alignSelf ?? null};
7569
- display: ${({ $inline }) => isNotNil8($inline) && $inline ? "inline-flex" : "flex"};
7570
- flex-basis: ${({ $basis }) => isNotNil8($basis) ? $basis : null};
7640
+ display: ${({ $inline }) => isNotNil10($inline) && $inline ? "inline-flex" : "flex"};
7641
+ flex-basis: ${({ $basis }) => isNotNil10($basis) ? $basis : null};
7571
7642
  flex-direction: ${({ $flexDirection }) => $flexDirection};
7572
- ${({ $fillBox: fill }) => getFillStyle(fill)};
7643
+ ${({ $fillBox: fill }) => getFillStyle2(fill)};
7573
7644
  ${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
7574
7645
  ${({ $flexMode }) => getFlexStyle($flexMode)};
7575
7646
  ${({ $gap }) => getGapStyle($gap)};
@@ -7577,14 +7648,14 @@ var StyledBoxComponent = styled10.div`
7577
7648
  width: ${({ $width }) => $width ?? null};
7578
7649
 
7579
7650
  /* Box children styles */
7580
- flex-grow: ${({ $grow }) => isNotNil8($grow) ? $grow : null};
7581
- flex-shrink: ${({ $shrink }) => isNotNil8($shrink) ? $shrink : null};
7651
+ flex-grow: ${({ $grow }) => isNotNil10($grow) ? $grow : null};
7652
+ flex-shrink: ${({ $shrink }) => isNotNil10($shrink) ? $shrink : null};
7582
7653
  flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
7583
7654
  justify-content: ${({ $justifyContent }) => $justifyContent};
7584
- order: ${({ $order }) => isNotNil8($order) ? $order : null};
7655
+ order: ${({ $order }) => isNotNil10($order) ? $order : null};
7585
7656
  `;
7586
7657
  var wrapChildren = (children) => {
7587
- if (isNotNil8(children)) {
7658
+ if (isNotNil10(children)) {
7588
7659
  if (typeof children === "object" && isDev) {
7589
7660
  return Children.map(children, (child) => {
7590
7661
  if (isNil9(child)) return null;
@@ -7645,7 +7716,7 @@ var BoxComponent = forwardRef5(
7645
7716
  );
7646
7717
  }
7647
7718
  }
7648
- return /* @__PURE__ */ jsx198(
7719
+ return /* @__PURE__ */ jsx199(
7649
7720
  StyledBoxComponent,
7650
7721
  {
7651
7722
  ref,
@@ -7678,9 +7749,9 @@ var Box = makePolymorphic(BoxComponent);
7678
7749
 
7679
7750
  // src/components/Breadcrumbs/Breadcrumbs.tsx
7680
7751
  import { Children as Children2 } from "react";
7681
- import styled11 from "styled-components";
7682
- import { Fragment as Fragment2, jsx as jsx199, jsxs as jsxs11 } from "react/jsx-runtime";
7683
- var StyledBreadcrumbs = styled11.nav`
7752
+ import styled12 from "styled-components";
7753
+ import { Fragment as Fragment2, jsx as jsx200, jsxs as jsxs12 } from "react/jsx-runtime";
7754
+ var StyledBreadcrumbs = styled12.nav`
7684
7755
  display: flex;
7685
7756
  align-items: center;
7686
7757
  gap: var(--wui-space-01);
@@ -7698,8 +7769,8 @@ var Breadcrumbs = ({ children, ...props }) => {
7698
7769
  crumbs = crumbs.slice(-1);
7699
7770
  }
7700
7771
  const crumbMaxWidth = Math.floor(100 / crumbs.length) - BUFFER_WIDTH;
7701
- return /* @__PURE__ */ jsxs11(Fragment2, { children: [
7702
- /* @__PURE__ */ jsx199("style", { type: "text/css", children: `
7772
+ return /* @__PURE__ */ jsxs12(Fragment2, { children: [
7773
+ /* @__PURE__ */ jsx200("style", { type: "text/css", children: `
7703
7774
  [data-wui-breadcrumbs] {
7704
7775
  container-type: inline-size;
7705
7776
  container-name: breadcrumbs;
@@ -7711,7 +7782,7 @@ var Breadcrumbs = ({ children, ...props }) => {
7711
7782
  }
7712
7783
  }
7713
7784
  ` }),
7714
- /* @__PURE__ */ jsx199(
7785
+ /* @__PURE__ */ jsx200(
7715
7786
  StyledBreadcrumbs,
7716
7787
  {
7717
7788
  "aria-label": "Breadcrumbs",
@@ -7725,9 +7796,9 @@ var Breadcrumbs = ({ children, ...props }) => {
7725
7796
  Breadcrumbs.displayName = "Breadcrumbs";
7726
7797
 
7727
7798
  // src/components/Breadcrumbs/Breadcrumb.tsx
7728
- import styled12 from "styled-components";
7729
- import { Fragment as Fragment3, jsx as jsx200, jsxs as jsxs12 } from "react/jsx-runtime";
7730
- var BreadcrumbContent = styled12.span`
7799
+ import styled13 from "styled-components";
7800
+ import { Fragment as Fragment3, jsx as jsx201, jsxs as jsxs13 } from "react/jsx-runtime";
7801
+ var BreadcrumbContent = styled13.span`
7731
7802
  overflow: hidden;
7732
7803
  white-space: nowrap;
7733
7804
  display: block;
@@ -7736,18 +7807,18 @@ var BreadcrumbContent = styled12.span`
7736
7807
  flex: 0;
7737
7808
  `;
7738
7809
  var Breadcrumb = ({ icon, href, children, ...props }) => {
7739
- return /* @__PURE__ */ jsxs12(Fragment3, { children: [
7740
- /* @__PURE__ */ jsx200(
7810
+ return /* @__PURE__ */ jsxs13(Fragment3, { children: [
7811
+ /* @__PURE__ */ jsx201(
7741
7812
  Button,
7742
7813
  {
7743
7814
  ...props,
7744
7815
  href,
7745
7816
  leftIcon: icon,
7746
7817
  variant: "ghost",
7747
- children: /* @__PURE__ */ jsx200(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
7818
+ children: /* @__PURE__ */ jsx201(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
7748
7819
  }
7749
7820
  ),
7750
- /* @__PURE__ */ jsx200("div", { "data-wui-breadcrumb-divider": true, children: /* @__PURE__ */ jsx200(
7821
+ /* @__PURE__ */ jsx201("div", { "data-wui-breadcrumb-divider": true, children: /* @__PURE__ */ jsx201(
7751
7822
  Icon,
7752
7823
  {
7753
7824
  size: "sm",
@@ -7759,9 +7830,9 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
7759
7830
  };
7760
7831
 
7761
7832
  // src/components/ButtonGroup/ButtonGroup.tsx
7762
- import styled13 from "styled-components";
7833
+ import styled14 from "styled-components";
7763
7834
  import { isNil as isNil10 } from "@wistia/type-guards";
7764
- import { jsx as jsx201 } from "react/jsx-runtime";
7835
+ import { jsx as jsx202 } from "react/jsx-runtime";
7765
7836
  var getAlignment = (align) => {
7766
7837
  if (align === "center") {
7767
7838
  return "center";
@@ -7774,7 +7845,7 @@ var getAlignment = (align) => {
7774
7845
  }
7775
7846
  return "flex-start";
7776
7847
  };
7777
- var ButtonGroupComponent = styled13.div`
7848
+ var ButtonGroupComponent = styled14.div`
7778
7849
  display: flex;
7779
7850
 
7780
7851
  /* this helps ensure that primary buttons appear at the top of the column */
@@ -7809,7 +7880,7 @@ var ButtonGroup = ({
7809
7880
  if (isNil10(children)) {
7810
7881
  return null;
7811
7882
  }
7812
- return /* @__PURE__ */ jsx201(
7883
+ return /* @__PURE__ */ jsx202(
7813
7884
  ButtonGroupComponent,
7814
7885
  {
7815
7886
  $align: align,
@@ -7823,9 +7894,9 @@ var ButtonGroup = ({
7823
7894
  ButtonGroup.displayName = "ButtonGroup";
7824
7895
 
7825
7896
  // src/components/Card/Card.tsx
7826
- import styled14 from "styled-components";
7827
- import { jsx as jsx202 } from "react/jsx-runtime";
7828
- var StyledCard = styled14(Box)`
7897
+ import styled15 from "styled-components";
7898
+ import { jsx as jsx203 } from "react/jsx-runtime";
7899
+ var StyledCard = styled15(Box)`
7829
7900
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7830
7901
  box-sizing: border-box;
7831
7902
  padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
@@ -7862,7 +7933,7 @@ var Card = ({
7862
7933
  height,
7863
7934
  width,
7864
7935
  ...props
7865
- }) => /* @__PURE__ */ jsx202(
7936
+ }) => /* @__PURE__ */ jsx203(
7866
7937
  StyledCard,
7867
7938
  {
7868
7939
  $backgroundColor: prominenceMap[prominence].backgroundColor,
@@ -7881,9 +7952,9 @@ Card.displayName = "Card";
7881
7952
 
7882
7953
  // src/components/Center/Center.tsx
7883
7954
  import { forwardRef as forwardRef6 } from "react";
7884
- import styled15 from "styled-components";
7885
- import { jsx as jsx203 } from "react/jsx-runtime";
7886
- var StyledCenter = styled15.div`
7955
+ import styled16 from "styled-components";
7956
+ import { jsx as jsx204 } from "react/jsx-runtime";
7957
+ var StyledCenter = styled16.div`
7887
7958
  box-sizing: border-box;
7888
7959
  margin-left: auto;
7889
7960
  margin-right: auto;
@@ -7896,7 +7967,7 @@ var StyledCenter = styled15.div`
7896
7967
  `}
7897
7968
  `;
7898
7969
  var Center = forwardRef6(
7899
- ({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ jsx203(
7970
+ ({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ jsx204(
7900
7971
  StyledCenter,
7901
7972
  {
7902
7973
  ref,
@@ -7912,21 +7983,21 @@ Center.displayName = "Center";
7912
7983
 
7913
7984
  // src/components/Checkbox/Checkbox.tsx
7914
7985
  import { forwardRef as forwardRef7, useId } from "react";
7915
- import styled19, { css as css20 } from "styled-components";
7986
+ import styled20, { css as css20 } from "styled-components";
7916
7987
  import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
7917
7988
 
7918
7989
  // src/private/components/FormControlLabel/FormControlLabel.tsx
7919
- import styled18, { css as css19 } from "styled-components";
7920
- import { isNil as isNil12, isNotNil as isNotNil10 } from "@wistia/type-guards";
7990
+ import styled19, { css as css19 } from "styled-components";
7991
+ import { isNil as isNil12, isNotNil as isNotNil12 } from "@wistia/type-guards";
7921
7992
 
7922
7993
  // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
7923
- import styled16, { css as css18 } from "styled-components";
7994
+ import styled17, { css as css18 } from "styled-components";
7924
7995
  import { isNil as isNil11 } from "@wistia/type-guards";
7925
- import { jsx as jsx204 } from "react/jsx-runtime";
7996
+ import { jsx as jsx205 } from "react/jsx-runtime";
7926
7997
  var disabledStyle = css18`
7927
7998
  color: var(--wui-color-text-disabled);
7928
7999
  `;
7929
- var StyledFormControlLabelDescription = styled16.div`
8000
+ var StyledFormControlLabelDescription = styled17.div`
7930
8001
  color: var(--wui-color-text-secondary);
7931
8002
  display: block;
7932
8003
  font-size: var(--wui-typography-body-4-size);
@@ -7944,7 +8015,7 @@ var FormControlLabelDescription = ({
7944
8015
  if (isNil11(children)) {
7945
8016
  return null;
7946
8017
  }
7947
- return /* @__PURE__ */ jsx204(
8018
+ return /* @__PURE__ */ jsx205(
7948
8019
  StyledFormControlLabelDescription,
7949
8020
  {
7950
8021
  ...props,
@@ -7956,11 +8027,11 @@ var FormControlLabelDescription = ({
7956
8027
  FormControlLabelDescription.displayName = "FormControlLabelDescription";
7957
8028
 
7958
8029
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7959
- import styled17 from "styled-components";
7960
- import { isNotNil as isNotNil9 } from "@wistia/type-guards";
7961
- import { jsx as jsx205 } from "react/jsx-runtime";
7962
- var VisuallyHidden = styled17.div({ ...visuallyHiddenStyle });
7963
- var VisuallyHiddenButFocusable = styled17.div({
8030
+ import styled18 from "styled-components";
8031
+ import { isNotNil as isNotNil11 } from "@wistia/type-guards";
8032
+ import { jsx as jsx206 } from "react/jsx-runtime";
8033
+ var VisuallyHidden = styled18.div({ ...visuallyHiddenStyle });
8034
+ var VisuallyHiddenButFocusable = styled18.div({
7964
8035
  "&:not(:focus-within)": visuallyHiddenStyle
7965
8036
  });
7966
8037
  var ScreenReaderOnly = ({
@@ -7969,25 +8040,25 @@ var ScreenReaderOnly = ({
7969
8040
  focusable = false,
7970
8041
  ...props
7971
8042
  }) => {
7972
- const accessibleText = isNotNil9(text) ? text : children;
8043
+ const accessibleText = isNotNil11(text) ? text : children;
7973
8044
  if (focusable) {
7974
- return /* @__PURE__ */ jsx205(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
8045
+ return /* @__PURE__ */ jsx206(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
7975
8046
  }
7976
- return /* @__PURE__ */ jsx205(VisuallyHidden, { ...props, children: accessibleText });
8047
+ return /* @__PURE__ */ jsx206(VisuallyHidden, { ...props, children: accessibleText });
7977
8048
  };
7978
8049
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
7979
8050
 
7980
8051
  // src/private/components/FormControlLabel/FormControlLabel.tsx
7981
- import { jsx as jsx206, jsxs as jsxs13 } from "react/jsx-runtime";
8052
+ import { jsx as jsx207, jsxs as jsxs14 } from "react/jsx-runtime";
7982
8053
  var disabledStyle2 = css19`
7983
8054
  cursor: not-allowed;
7984
8055
  color: var(--wui-color-text-disabled);
7985
8056
  `;
7986
- var StyledLabelWrapper = styled18.div`
8057
+ var StyledLabelWrapper = styled19.div`
7987
8058
  display: flex;
7988
8059
  flex-direction: column;
7989
8060
  `;
7990
- var StyledFormControlLabel = styled18.label`
8061
+ var StyledFormControlLabel = styled19.label`
7991
8062
  cursor: pointer;
7992
8063
  display: flex;
7993
8064
  align-items: center;
@@ -8012,18 +8083,18 @@ var FormControlLabel = ({
8012
8083
  if (isNil12(label)) {
8013
8084
  return null;
8014
8085
  }
8015
- const labelContent = hideLabel ? /* @__PURE__ */ jsx206(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ jsxs13(StyledLabelWrapper, { children: [
8086
+ const labelContent = hideLabel ? /* @__PURE__ */ jsx207(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ jsxs14(StyledLabelWrapper, { children: [
8016
8087
  label,
8017
- /* @__PURE__ */ jsx206(FormControlLabelDescription, { children: description })
8088
+ /* @__PURE__ */ jsx207(FormControlLabelDescription, { children: description })
8018
8089
  ] });
8019
- return /* @__PURE__ */ jsxs13(
8090
+ return /* @__PURE__ */ jsxs14(
8020
8091
  StyledFormControlLabel,
8021
8092
  {
8022
8093
  $disabled: disabled,
8023
8094
  htmlFor,
8024
8095
  ...props,
8025
8096
  children: [
8026
- isNotNil10(controlSlot) ? controlSlot : null,
8097
+ isNotNil12(controlSlot) ? controlSlot : null,
8027
8098
  labelContent
8028
8099
  ]
8029
8100
  }
@@ -8032,8 +8103,8 @@ var FormControlLabel = ({
8032
8103
  FormControlLabel.displayName = "FormControlLabel";
8033
8104
 
8034
8105
  // src/components/Checkbox/Checkbox.tsx
8035
- import { jsx as jsx207, jsxs as jsxs14 } from "react/jsx-runtime";
8036
- var CheckIcon = () => /* @__PURE__ */ jsx207(
8106
+ import { jsx as jsx208, jsxs as jsxs15 } from "react/jsx-runtime";
8107
+ var CheckIcon = () => /* @__PURE__ */ jsx208(
8037
8108
  "svg",
8038
8109
  {
8039
8110
  fill: "inherit",
@@ -8041,7 +8112,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx207(
8041
8112
  viewBox: "0 0 10 8",
8042
8113
  width: "10",
8043
8114
  xmlns: "http://www.w3.org/2000/svg",
8044
- children: /* @__PURE__ */ jsx207(
8115
+ children: /* @__PURE__ */ jsx208(
8045
8116
  "path",
8046
8117
  {
8047
8118
  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",
@@ -8088,14 +8159,14 @@ var getSizeCss = (size) => {
8088
8159
  if (size === "lg") return sizeLarge;
8089
8160
  return sizeMedium;
8090
8161
  };
8091
- var StyledCheckboxWrapper = styled19.div`
8162
+ var StyledCheckboxWrapper = styled20.div`
8092
8163
  display: flex;
8093
8164
  margin: 0;
8094
8165
 
8095
8166
  /* TODO this solves a problem but potentially causes and a11y issue */
8096
8167
  user-select: none;
8097
8168
  `;
8098
- var StyledCheckboxInput = styled19.div`
8169
+ var StyledCheckboxInput = styled20.div`
8099
8170
  ${({ $size }) => getSizeCss($size)}
8100
8171
  line-height: 0;
8101
8172
  margin: 0;
@@ -8117,7 +8188,7 @@ var StyledCheckboxInput = styled19.div`
8117
8188
  }
8118
8189
  }
8119
8190
  `;
8120
- var StyledHiddenCheckboxInput = styled19.input`
8191
+ var StyledHiddenCheckboxInput = styled20.input`
8121
8192
  ${visuallyHiddenStyle}
8122
8193
 
8123
8194
  /* toggles display of faux-input background-color */
@@ -8148,8 +8219,8 @@ var Checkbox = forwardRef7(
8148
8219
  }, ref) => {
8149
8220
  const generatedId = useId();
8150
8221
  const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8151
- return /* @__PURE__ */ jsxs14(StyledCheckboxWrapper, { disabled, children: [
8152
- /* @__PURE__ */ jsx207(
8222
+ return /* @__PURE__ */ jsxs15(StyledCheckboxWrapper, { disabled, children: [
8223
+ /* @__PURE__ */ jsx208(
8153
8224
  StyledHiddenCheckboxInput,
8154
8225
  {
8155
8226
  ...props,
@@ -8164,16 +8235,16 @@ var Checkbox = forwardRef7(
8164
8235
  value
8165
8236
  }
8166
8237
  ),
8167
- /* @__PURE__ */ jsx207(
8238
+ /* @__PURE__ */ jsx208(
8168
8239
  FormControlLabel,
8169
8240
  {
8170
- controlSlot: /* @__PURE__ */ jsx207(
8241
+ controlSlot: /* @__PURE__ */ jsx208(
8171
8242
  StyledCheckboxInput,
8172
8243
  {
8173
8244
  $disabled: disabled,
8174
8245
  $size: size,
8175
8246
  "data-wui-faux-input": "true",
8176
- children: /* @__PURE__ */ jsx207(CheckIcon, {})
8247
+ children: /* @__PURE__ */ jsx208(CheckIcon, {})
8177
8248
  }
8178
8249
  ),
8179
8250
  description,
@@ -8225,10 +8296,10 @@ ClickRegion.displayName = "ClickRegion";
8225
8296
 
8226
8297
  // src/components/Collapsible/Collapsible.tsx
8227
8298
  import { Root } from "@radix-ui/react-collapsible";
8228
- import { isNotNil as isNotNil11 } from "@wistia/type-guards";
8229
- import styled20 from "styled-components";
8230
- import { jsx as jsx208 } from "react/jsx-runtime";
8231
- var StyledRoot = styled20(Root)`
8299
+ import { isNotNil as isNotNil13 } from "@wistia/type-guards";
8300
+ import styled21 from "styled-components";
8301
+ import { jsx as jsx209 } from "react/jsx-runtime";
8302
+ var StyledRoot = styled21(Root)`
8232
8303
  &[data-state='closed'] [data-wui-collapsible-content] {
8233
8304
  display: -webkit-box;
8234
8305
  -webkit-box-orient: vertical;
@@ -8242,47 +8313,47 @@ var Collapsible = ({
8242
8313
  onOpenChange
8243
8314
  }) => {
8244
8315
  const controlProps = {
8245
- ...isNotNil11(onOpenChange) && isNotNil11(isOpen) ? { open: isOpen, onOpenChange } : {}
8316
+ ...isNotNil13(onOpenChange) && isNotNil13(isOpen) ? { open: isOpen, onOpenChange } : {}
8246
8317
  };
8247
- return /* @__PURE__ */ jsx208(StyledRoot, { ...controlProps, children });
8318
+ return /* @__PURE__ */ jsx209(StyledRoot, { ...controlProps, children });
8248
8319
  };
8249
8320
  Collapsible.displayName = "Collapsible";
8250
8321
 
8251
8322
  // src/components/Collapsible/CollapsibleTrigger.tsx
8252
8323
  import { Children as Children4 } from "react";
8253
8324
  import { Trigger } from "@radix-ui/react-collapsible";
8254
- import { jsx as jsx209 } from "react/jsx-runtime";
8325
+ import { jsx as jsx210 } from "react/jsx-runtime";
8255
8326
  var CollapsibleTrigger = ({ children }) => {
8256
8327
  Children4.only(children);
8257
- return /* @__PURE__ */ jsx209(Trigger, { asChild: true, children });
8328
+ return /* @__PURE__ */ jsx210(Trigger, { asChild: true, children });
8258
8329
  };
8259
8330
 
8260
8331
  // src/components/Collapsible/CollapsibleContent.tsx
8261
- import styled21 from "styled-components";
8332
+ import styled22 from "styled-components";
8262
8333
  import { Content } from "@radix-ui/react-collapsible";
8263
8334
  import { isNotUndefined as isNotUndefined6 } from "@wistia/type-guards";
8264
- import { Fragment as Fragment4, jsx as jsx210, jsxs as jsxs15 } from "react/jsx-runtime";
8265
- var ClampedContent = styled21.div.attrs({ "data-wui-collapsible-content": true })`
8335
+ import { Fragment as Fragment4, jsx as jsx211, jsxs as jsxs16 } from "react/jsx-runtime";
8336
+ var ClampedContent = styled22.div.attrs({ "data-wui-collapsible-content": true })`
8266
8337
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
8267
8338
  `;
8268
8339
  var CollapsibleContent = ({ clamp, children }) => {
8269
8340
  if (isNotUndefined6(clamp)) {
8270
- return /* @__PURE__ */ jsx210(ClampedContent, { $clamp: clamp, children });
8341
+ return /* @__PURE__ */ jsx211(ClampedContent, { $clamp: clamp, children });
8271
8342
  }
8272
- return /* @__PURE__ */ jsx210(Content, { children: /* @__PURE__ */ jsxs15(Fragment4, { children: [
8343
+ return /* @__PURE__ */ jsx211(Content, { children: /* @__PURE__ */ jsxs16(Fragment4, { children: [
8273
8344
  children,
8274
8345
  " "
8275
8346
  ] }) });
8276
8347
  };
8277
8348
 
8278
8349
  // src/components/DataCards/DataCard.tsx
8279
- import styled23, { keyframes } from "styled-components";
8350
+ import styled24, { keyframes } from "styled-components";
8280
8351
  import { isNotNull } from "@wistia/type-guards";
8281
8352
 
8282
8353
  // src/components/Heading/Heading.tsx
8283
8354
  import { forwardRef as forwardRef8 } from "react";
8284
- import styled22, { css as css21 } from "styled-components";
8285
- import { jsx as jsx211 } from "react/jsx-runtime";
8355
+ import styled23, { css as css21 } from "styled-components";
8356
+ import { jsx as jsx212 } from "react/jsx-runtime";
8286
8357
  var heroStyle = css21`
8287
8358
  --font-family: var(--wui-typography-heading-hero-family);
8288
8359
  --font-size: var(--wui-typography-heading-hero-size);
@@ -8335,7 +8406,7 @@ var variantStyleMap = {
8335
8406
  heading6: heading6TextStyle
8336
8407
  };
8337
8408
  var DEFAULT_ELEMENT2 = "h1";
8338
- var StyledHeading = styled22.div`
8409
+ var StyledHeading = styled23.div`
8339
8410
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8340
8411
  font-family: var(--font-family);
8341
8412
  font-size: var(--font-size);
@@ -8378,7 +8449,7 @@ var HeadingComponent = forwardRef8(
8378
8449
  variant = "heading1",
8379
8450
  renderAs,
8380
8451
  ...props
8381
- }, ref) => /* @__PURE__ */ jsx211(
8452
+ }, ref) => /* @__PURE__ */ jsx212(
8382
8453
  StyledHeading,
8383
8454
  {
8384
8455
  ref,
@@ -8398,8 +8469,8 @@ HeadingComponent.displayName = "Heading";
8398
8469
  var Heading = makePolymorphic(HeadingComponent);
8399
8470
 
8400
8471
  // src/components/DataCards/DataCard.tsx
8401
- import { jsx as jsx212, jsxs as jsxs16 } from "react/jsx-runtime";
8402
- var StyledDataCard = styled23.div`
8472
+ import { jsx as jsx213, jsxs as jsxs17 } from "react/jsx-runtime";
8473
+ var StyledDataCard = styled24.div`
8403
8474
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
8404
8475
  display: grid;
8405
8476
  grid-template-areas: 'label slot' 'value value';
@@ -8420,7 +8491,7 @@ var shimmer = keyframes`
8420
8491
  background-position: -200% 0;
8421
8492
  }
8422
8493
  `;
8423
- var LoadingBackground = styled23.div`
8494
+ var LoadingBackground = styled24.div`
8424
8495
  background: linear-gradient(
8425
8496
  90deg,
8426
8497
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -8431,27 +8502,27 @@ var LoadingBackground = styled23.div`
8431
8502
  animation: ${shimmer} 1.5s infinite;
8432
8503
  border-radius: var(--wui-border-radius-01);
8433
8504
  `;
8434
- var StyledLoadingLabel = styled23(LoadingBackground)`
8505
+ var StyledLoadingLabel = styled24(LoadingBackground)`
8435
8506
  width: 80px;
8436
8507
  height: var(--wui-typography-heading-6-line-height);
8437
8508
  `;
8438
- var StyledLoadingValue = styled23(LoadingBackground)`
8509
+ var StyledLoadingValue = styled24(LoadingBackground)`
8439
8510
  width: 90%;
8440
8511
  height: var(--wui-typography-heading-3-line-height);
8441
8512
  `;
8442
- var StyledLabel2 = styled23(Heading)`
8513
+ var StyledLabel2 = styled24(Heading)`
8443
8514
  grid-area: label;
8444
8515
  `;
8445
- var StyledValue = styled23(Heading)`
8516
+ var StyledValue = styled24(Heading)`
8446
8517
  grid-area: value;
8447
8518
  `;
8448
- var StyledSlot = styled23.div`
8519
+ var StyledSlot = styled24.div`
8449
8520
  display: flex;
8450
8521
  justify-content: flex-end;
8451
8522
  grid-area: slot;
8452
8523
  align-self: center;
8453
8524
  `;
8454
- var StyledDataCardTrendContainer = styled23.div`
8525
+ var StyledDataCardTrendContainer = styled24.div`
8455
8526
  position: absolute;
8456
8527
  bottom: var(--wui-space-01);
8457
8528
  right: var(--wui-space-01);
@@ -8464,39 +8535,39 @@ var DataCard = ({
8464
8535
  isLoading = false,
8465
8536
  trend,
8466
8537
  ...props
8467
- }) => /* @__PURE__ */ jsxs16(
8538
+ }) => /* @__PURE__ */ jsxs17(
8468
8539
  StyledDataCard,
8469
8540
  {
8470
8541
  $colorScheme: colorScheme,
8471
8542
  ...props,
8472
8543
  children: [
8473
- /* @__PURE__ */ jsx212(
8544
+ /* @__PURE__ */ jsx213(
8474
8545
  StyledLabel2,
8475
8546
  {
8476
8547
  renderAs: "dt",
8477
8548
  variant: "heading6",
8478
- children: isLoading ? /* @__PURE__ */ jsx212(StyledLoadingLabel, {}) : label
8549
+ children: isLoading ? /* @__PURE__ */ jsx213(StyledLoadingLabel, {}) : label
8479
8550
  }
8480
8551
  ),
8481
- /* @__PURE__ */ jsx212(
8552
+ /* @__PURE__ */ jsx213(
8482
8553
  StyledValue,
8483
8554
  {
8484
8555
  renderAs: "dd",
8485
8556
  variant: "heading3",
8486
- children: isLoading ? /* @__PURE__ */ jsx212(StyledLoadingValue, {}) : value
8557
+ children: isLoading ? /* @__PURE__ */ jsx213(StyledLoadingValue, {}) : value
8487
8558
  }
8488
8559
  ),
8489
- isNotNull(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx212(StyledSlot, { children: upperRightSlot }),
8490
- isNotNull(trend) && !isLoading && /* @__PURE__ */ jsx212(StyledDataCardTrendContainer, { children: trend })
8560
+ isNotNull(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx213(StyledSlot, { children: upperRightSlot }),
8561
+ isNotNull(trend) && !isLoading && /* @__PURE__ */ jsx213(StyledDataCardTrendContainer, { children: trend })
8491
8562
  ]
8492
8563
  }
8493
8564
  );
8494
8565
  DataCard.displayName = "DataCard";
8495
8566
 
8496
8567
  // src/components/DataCards/DataCards.tsx
8497
- import styled24 from "styled-components";
8498
- import { jsx as jsx213 } from "react/jsx-runtime";
8499
- var StyledDataCards = styled24(Box)`
8568
+ import styled25 from "styled-components";
8569
+ import { jsx as jsx214 } from "react/jsx-runtime";
8570
+ var StyledDataCards = styled25(Box)`
8500
8571
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8501
8572
  margin-top: 0; /* Remove default <dl> style */
8502
8573
  > * {
@@ -8510,7 +8581,7 @@ var DataCards = ({
8510
8581
  colorScheme = "inherit",
8511
8582
  ...props
8512
8583
  }) => {
8513
- return /* @__PURE__ */ jsx213(
8584
+ return /* @__PURE__ */ jsx214(
8514
8585
  StyledDataCards,
8515
8586
  {
8516
8587
  ...props,
@@ -8528,12 +8599,12 @@ var DataCards = ({
8528
8599
  DataCards.displayName = "DataCards";
8529
8600
 
8530
8601
  // src/components/DataCards/DataCardTrend.tsx
8531
- import styled26 from "styled-components";
8602
+ import styled27 from "styled-components";
8532
8603
 
8533
8604
  // src/components/Text/Text.tsx
8534
8605
  import { forwardRef as forwardRef9 } from "react";
8535
- import styled25, { css as css22 } from "styled-components";
8536
- import { jsx as jsx214 } from "react/jsx-runtime";
8606
+ import styled26, { css as css22 } from "styled-components";
8607
+ import { jsx as jsx215 } from "react/jsx-runtime";
8537
8608
  var bodyBoldStyles = css22`
8538
8609
  > strong,
8539
8610
  b {
@@ -8653,7 +8724,7 @@ var variantElementMap2 = {
8653
8724
  label3: labelElement,
8654
8725
  label4: labelElement
8655
8726
  };
8656
- var StyledText = styled25.div`
8727
+ var StyledText = styled26.div`
8657
8728
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8658
8729
  --text-color: ${({ $prominence, $disabled }) => {
8659
8730
  if ($disabled) {
@@ -8710,7 +8781,7 @@ var TextComponent = forwardRef9(
8710
8781
  renderAs,
8711
8782
  ...props
8712
8783
  }, ref) => {
8713
- return /* @__PURE__ */ jsx214(
8784
+ return /* @__PURE__ */ jsx215(
8714
8785
  StyledText,
8715
8786
  {
8716
8787
  ref,
@@ -8732,8 +8803,8 @@ TextComponent.displayName = "Text";
8732
8803
  var Text = makePolymorphic(TextComponent);
8733
8804
 
8734
8805
  // src/components/DataCards/DataCardTrend.tsx
8735
- import { jsx as jsx215, jsxs as jsxs17 } from "react/jsx-runtime";
8736
- var StyledDataCardTrend = styled26.div`
8806
+ import { jsx as jsx216, jsxs as jsxs18 } from "react/jsx-runtime";
8807
+ var StyledDataCardTrend = styled27.div`
8737
8808
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
8738
8809
  background: var(--wui-color-bg-app);
8739
8810
  border-radius: var(--wui-border-radius-rounded);
@@ -8748,8 +8819,8 @@ var DataCardTrend = ({
8748
8819
  children,
8749
8820
  ...props
8750
8821
  }) => {
8751
- return /* @__PURE__ */ jsxs17(StyledDataCardTrend, { $outlook: outlook, children: [
8752
- /* @__PURE__ */ jsx215(
8822
+ return /* @__PURE__ */ jsxs18(StyledDataCardTrend, { $outlook: outlook, children: [
8823
+ /* @__PURE__ */ jsx216(
8753
8824
  Icon,
8754
8825
  {
8755
8826
  size: "md",
@@ -8757,7 +8828,7 @@ var DataCardTrend = ({
8757
8828
  ...props
8758
8829
  }
8759
8830
  ),
8760
- /* @__PURE__ */ jsx215(
8831
+ /* @__PURE__ */ jsx216(
8761
8832
  Text,
8762
8833
  {
8763
8834
  prominence: "secondary",
@@ -8769,8 +8840,8 @@ var DataCardTrend = ({
8769
8840
  };
8770
8841
 
8771
8842
  // src/components/Divider/Divider.tsx
8772
- import styled27, { css as css23 } from "styled-components";
8773
- import { jsx as jsx216 } from "react/jsx-runtime";
8843
+ import styled28, { css as css23 } from "styled-components";
8844
+ import { jsx as jsx217 } from "react/jsx-runtime";
8774
8845
  var horizontalBorderCss = css23`
8775
8846
  border-top-color: var(--wui-color-border);
8776
8847
  border-top-style: solid;
@@ -8784,7 +8855,7 @@ var verticalBorderCss = css23`
8784
8855
  min-height: 100%;
8785
8856
  width: 1px;
8786
8857
  `;
8787
- var DividerComponent = styled27.div`
8858
+ var DividerComponent = styled28.div`
8788
8859
  ${({ $orientation }) => {
8789
8860
  switch ($orientation) {
8790
8861
  case "vertical":
@@ -8796,7 +8867,7 @@ var DividerComponent = styled27.div`
8796
8867
  }}
8797
8868
  `;
8798
8869
  var Divider = ({ orientation = "horizontal", ...props }) => {
8799
- return /* @__PURE__ */ jsx216(
8870
+ return /* @__PURE__ */ jsx217(
8800
8871
  DividerComponent,
8801
8872
  {
8802
8873
  $orientation: orientation,
@@ -8809,7 +8880,7 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
8809
8880
  Divider.displayName = "Divider";
8810
8881
 
8811
8882
  // src/components/EditableHeading/EditableHeading.tsx
8812
- import styled30, { css as css27 } from "styled-components";
8883
+ import styled31, { css as css27 } from "styled-components";
8813
8884
  import { useState as useState6, useRef as useRef5 } from "react";
8814
8885
 
8815
8886
  // src/components/Tooltip/Tooltip.tsx
@@ -8820,8 +8891,8 @@ import {
8820
8891
  Portal as TooltipPortal,
8821
8892
  Arrow as TooltipArrow
8822
8893
  } from "@radix-ui/react-tooltip";
8823
- import styled28, { css as css24 } from "styled-components";
8824
- import { jsx as jsx217, jsxs as jsxs18 } from "react/jsx-runtime";
8894
+ import styled29, { css as css24 } from "styled-components";
8895
+ import { jsx as jsx218, jsxs as jsxs19 } from "react/jsx-runtime";
8825
8896
  var CompactTooltipStyles = css24`
8826
8897
  --tooltip-font-size: var(--wui-typography-label-4-size);
8827
8898
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
@@ -8829,7 +8900,7 @@ var CompactTooltipStyles = css24`
8829
8900
  --tooltip-horizontal-padding: var(--wui-space-02);
8830
8901
  --tooltip-vertical-padding: var(--wui-space-03);
8831
8902
  `;
8832
- var StyledContent = styled28(TooltipContent)`
8903
+ var StyledContent = styled29(TooltipContent)`
8833
8904
  --tooltip-font-family: var(--wui-typography-family-default);
8834
8905
  --tooltip-border-radius: var(--wui-border-radius-05);
8835
8906
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -8888,14 +8959,14 @@ var Tooltip = ({
8888
8959
  if (forceOpen === true) {
8889
8960
  rootProps.open = true;
8890
8961
  }
8891
- return /* @__PURE__ */ jsxs18(
8962
+ return /* @__PURE__ */ jsxs19(
8892
8963
  TooltipRoot,
8893
8964
  {
8894
8965
  delayDuration: delay,
8895
8966
  ...rootProps,
8896
8967
  children: [
8897
- /* @__PURE__ */ jsx217(TooltipTrigger, { asChild: true, children }),
8898
- /* @__PURE__ */ jsx217(TooltipPortal, { children: /* @__PURE__ */ jsxs18(
8968
+ /* @__PURE__ */ jsx218(TooltipTrigger, { asChild: true, children }),
8969
+ /* @__PURE__ */ jsx218(TooltipPortal, { children: /* @__PURE__ */ jsxs19(
8899
8970
  StyledContent,
8900
8971
  {
8901
8972
  $compact: compact,
@@ -8903,7 +8974,7 @@ var Tooltip = ({
8903
8974
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
8904
8975
  children: [
8905
8976
  content,
8906
- !hideArrow ? /* @__PURE__ */ jsx217(TooltipArrow, { asChild: true, children: /* @__PURE__ */ jsx217(
8977
+ !hideArrow ? /* @__PURE__ */ jsx218(TooltipArrow, { asChild: true, children: /* @__PURE__ */ jsx218(
8907
8978
  "svg",
8908
8979
  {
8909
8980
  fill: "var(--tooltip-bg)",
@@ -8912,7 +8983,7 @@ var Tooltip = ({
8912
8983
  viewBox: "0 0 12 8",
8913
8984
  width: "12",
8914
8985
  xmlns: "http://www.w3.org/2000/svg",
8915
- children: /* @__PURE__ */ jsx217("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" })
8986
+ children: /* @__PURE__ */ jsx218("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" })
8916
8987
  }
8917
8988
  ) }) : null
8918
8989
  ]
@@ -8926,8 +8997,8 @@ Tooltip.displayName = "Tooltip";
8926
8997
 
8927
8998
  // src/components/Input/Input.tsx
8928
8999
  import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef4 } from "react";
8929
- import styled29, { css as css26 } from "styled-components";
8930
- import { isNil as isNil13, isNotNil as isNotNil12, isRecord as isRecord4 } from "@wistia/type-guards";
9000
+ import styled30, { css as css26 } from "styled-components";
9001
+ import { isNil as isNil13, isNotNil as isNotNil14, isRecord as isRecord4 } from "@wistia/type-guards";
8931
9002
 
8932
9003
  // src/css/sharedStyles/inputCssVariables.ts
8933
9004
  import { css as css25 } from "styled-components";
@@ -8938,6 +9009,7 @@ var inputCssVariables = css25`
8938
9009
  --wui-input-color-border-focus: var(--wui-color-focus-ring);
8939
9010
  --wui-input-color-border-error: var(--wui-color-invalid-indicator);
8940
9011
  --wui-input-color-border-disabled: var(--wui-color-border-disabled);
9012
+ --wui-input-color-text: var(--wui-color-text);
8941
9013
  --wui-input-border-radius: var(--wui-border-radius-03);
8942
9014
  --wui-input-multiline-border-radius: var(--wui-border-radius-02);
8943
9015
  --wui-input-vertical-padding: var(--wui-space-02);
@@ -8948,7 +9020,7 @@ var inputCssVariables = css25`
8948
9020
  `;
8949
9021
 
8950
9022
  // src/components/Input/Input.tsx
8951
- import { jsx as jsx218, jsxs as jsxs19 } from "react/jsx-runtime";
9023
+ import { jsx as jsx219, jsxs as jsxs20 } from "react/jsx-runtime";
8952
9024
  var inputStyles = css26`
8953
9025
  ${inputCssVariables}
8954
9026
  input,
@@ -8962,7 +9034,7 @@ var inputStyles = css26`
8962
9034
  font-size: var(--wui-input-font-size);
8963
9035
  line-height: var(--wui-input-line-height);
8964
9036
  font-weight: var(--wui-typography-weight-body);
8965
- color: var(--wui-color-text-primary);
9037
+ color: var(--wui-input-color-text);
8966
9038
 
8967
9039
  &::placeholder {
8968
9040
  color: var(--wui-input-placeholder);
@@ -8984,7 +9056,7 @@ var inputStyles = css26`
8984
9056
  }
8985
9057
  }
8986
9058
  `;
8987
- var StyledInputContainer = styled29.div`
9059
+ var StyledInputContainer = styled30.div`
8988
9060
  display: inline-flex;
8989
9061
  position: relative;
8990
9062
  ${inputStyles};
@@ -9064,27 +9136,27 @@ var Input = forwardRef10(
9064
9136
  const internalRef = useRef4();
9065
9137
  const ref = (
9066
9138
  // eslint-disable-next-line react-compiler/react-compiler
9067
- isNotNil12(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef
9139
+ isNotNil14(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef
9068
9140
  );
9069
9141
  let leftIconToDisplay = leftIcon;
9070
9142
  if (isNil13(leftIcon) && type === "search") {
9071
- leftIconToDisplay = /* @__PURE__ */ jsx218(Icon, { type: "search" });
9143
+ leftIconToDisplay = /* @__PURE__ */ jsx219(Icon, { type: "search" });
9072
9144
  }
9073
- if (isNotNil12(leftIconToDisplay)) {
9145
+ if (isNotNil14(leftIconToDisplay)) {
9074
9146
  leftIconToDisplay = cloneElement4(leftIconToDisplay, {
9075
9147
  size: "md",
9076
9148
  className: "wui-input-left-icon"
9077
9149
  });
9078
9150
  }
9079
9151
  let rightIconToDisplay = rightIcon;
9080
- if (isNotNil12(rightIconToDisplay)) {
9152
+ if (isNotNil14(rightIconToDisplay)) {
9081
9153
  rightIconToDisplay = cloneElement4(rightIconToDisplay, {
9082
9154
  size: "md",
9083
9155
  className: "wui-input-right-icon"
9084
9156
  });
9085
9157
  }
9086
9158
  const handleFocus2 = (event) => {
9087
- if (isNotNil12(props.onFocus)) {
9159
+ if (isNotNil14(props.onFocus)) {
9088
9160
  props.onFocus(event);
9089
9161
  }
9090
9162
  if (autoSelect && isValidRef(ref) && "current" in ref) {
@@ -9093,21 +9165,21 @@ var Input = forwardRef10(
9093
9165
  });
9094
9166
  }
9095
9167
  };
9096
- return /* @__PURE__ */ jsxs19(
9168
+ return /* @__PURE__ */ jsxs20(
9097
9169
  StyledInputContainer,
9098
9170
  {
9099
9171
  $fullWidth: fullWidth,
9100
9172
  $monospace: monospace,
9101
9173
  children: [
9102
9174
  leftIconToDisplay ?? null,
9103
- type === "multiline" ? /* @__PURE__ */ jsx218(
9175
+ type === "multiline" ? /* @__PURE__ */ jsx219(
9104
9176
  "textarea",
9105
9177
  {
9106
9178
  ...props,
9107
9179
  ref,
9108
9180
  onFocus: handleFocus2
9109
9181
  }
9110
- ) : /* @__PURE__ */ jsx218(
9182
+ ) : /* @__PURE__ */ jsx219(
9111
9183
  "input",
9112
9184
  {
9113
9185
  ...props,
@@ -9125,8 +9197,8 @@ var Input = forwardRef10(
9125
9197
  Input.displayName = "Input";
9126
9198
 
9127
9199
  // src/components/EditableHeading/EditableHeading.tsx
9128
- import { Fragment as Fragment5, jsx as jsx219, jsxs as jsxs20 } from "react/jsx-runtime";
9129
- var StyledInput = styled30(Input)`
9200
+ import { Fragment as Fragment5, jsx as jsx220, jsxs as jsxs21 } from "react/jsx-runtime";
9201
+ var StyledInput = styled31(Input)`
9130
9202
  :not([rows]) {
9131
9203
  min-height: unset;
9132
9204
  }
@@ -9156,7 +9228,7 @@ var editableStyles = css27`
9156
9228
  cursor: pointer;
9157
9229
  }
9158
9230
  `;
9159
- var StyledHeading2 = styled30(Heading)`
9231
+ var StyledHeading2 = styled31(Heading)`
9160
9232
  width: 100%;
9161
9233
  border-radius: var(--wui-border-radius-02);
9162
9234
  padding: var(--wui-space-02);
@@ -9210,7 +9282,7 @@ var EditableHeading = ({
9210
9282
  handleSetEditing(false);
9211
9283
  }
9212
9284
  };
9213
- const HeadingComponent2 = /* @__PURE__ */ jsx219(
9285
+ const HeadingComponent2 = /* @__PURE__ */ jsx220(
9214
9286
  StyledHeading2,
9215
9287
  {
9216
9288
  ref: headingRef,
@@ -9224,7 +9296,7 @@ var EditableHeading = ({
9224
9296
  return HeadingComponent2;
9225
9297
  }
9226
9298
  if (isEditing || forceEditing) {
9227
- return /* @__PURE__ */ jsx219(
9299
+ return /* @__PURE__ */ jsx220(
9228
9300
  StyledInput,
9229
9301
  {
9230
9302
  $height: headingHeight,
@@ -9242,8 +9314,8 @@ var EditableHeading = ({
9242
9314
  }
9243
9315
  );
9244
9316
  }
9245
- return /* @__PURE__ */ jsxs20(Fragment5, { children: [
9246
- /* @__PURE__ */ jsx219(
9317
+ return /* @__PURE__ */ jsxs21(Fragment5, { children: [
9318
+ /* @__PURE__ */ jsx220(
9247
9319
  Tooltip,
9248
9320
  {
9249
9321
  compact: true,
@@ -9251,7 +9323,7 @@ var EditableHeading = ({
9251
9323
  children: HeadingComponent2
9252
9324
  }
9253
9325
  ),
9254
- /* @__PURE__ */ jsx219(ScreenReaderOnly, { children: /* @__PURE__ */ jsx219(
9326
+ /* @__PURE__ */ jsx220(ScreenReaderOnly, { children: /* @__PURE__ */ jsx220(
9255
9327
  "button",
9256
9328
  {
9257
9329
  "aria-label": ariaLabel,
@@ -9264,15 +9336,15 @@ var EditableHeading = ({
9264
9336
 
9265
9337
  // src/components/Form/Form.tsx
9266
9338
  import { forwardRef as forwardRef12, useRef as useRef6, useMemo as useMemo4, createContext as createContext2, useState as useState7, useId as useId2 } from "react";
9267
- import styled32 from "styled-components";
9339
+ import styled33 from "styled-components";
9268
9340
  import { isNotUndefined as isNotUndefined7, isUndefined as isUndefined3 } from "@wistia/type-guards";
9269
9341
 
9270
9342
  // src/components/Stack/Stack.tsx
9271
9343
  import { forwardRef as forwardRef11 } from "react";
9272
- import styled31 from "styled-components";
9273
- import { jsx as jsx220 } from "react/jsx-runtime";
9344
+ import styled32 from "styled-components";
9345
+ import { jsx as jsx221 } from "react/jsx-runtime";
9274
9346
  var DEFAULT_ELEMENT4 = "div";
9275
- var StyledStack = styled31.div`
9347
+ var StyledStack = styled32.div`
9276
9348
  display: flex;
9277
9349
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
9278
9350
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
@@ -9283,7 +9355,7 @@ var StackComponent = forwardRef11(
9283
9355
  const responsiveGap = useResponsiveProp(gap);
9284
9356
  const responsiveDirection = useResponsiveProp(direction);
9285
9357
  const responsiveAlignItems = useResponsiveProp(alignItems);
9286
- return /* @__PURE__ */ jsx220(
9358
+ return /* @__PURE__ */ jsx221(
9287
9359
  StyledStack,
9288
9360
  {
9289
9361
  ref,
@@ -9300,8 +9372,8 @@ StackComponent.displayName = "Stack";
9300
9372
  var Stack = makePolymorphic(StackComponent);
9301
9373
 
9302
9374
  // src/components/Form/Form.tsx
9303
- import { jsx as jsx221 } from "react/jsx-runtime";
9304
- var StyledForm = styled32.form`
9375
+ import { jsx as jsx222 } from "react/jsx-runtime";
9376
+ var StyledForm = styled33.form`
9305
9377
  --form-default-width: 690px;
9306
9378
 
9307
9379
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
@@ -9380,7 +9452,7 @@ var FormComponent = ({
9380
9452
  }, [labelPosition, values, errors, id, hasSubmitted]);
9381
9453
  return (
9382
9454
  // @ts-expect-error - generic context providers are a giant pain
9383
- /* @__PURE__ */ jsx221(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx221(
9455
+ /* @__PURE__ */ jsx222(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx222(
9384
9456
  Stack,
9385
9457
  {
9386
9458
  ...props,
@@ -9439,9 +9511,9 @@ var useFormState = (action, initialData = {}) => {
9439
9511
  // src/components/Form/FormErrorSummary.tsx
9440
9512
  import { useContext as useContext2, useRef as useRef7 } from "react";
9441
9513
  import { isArray, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
9442
- import { jsx as jsx222, jsxs as jsxs21 } from "react/jsx-runtime";
9514
+ import { jsx as jsx223, jsxs as jsxs22 } from "react/jsx-runtime";
9443
9515
  var ErrorItem = ({ name, error, formId }) => {
9444
- return /* @__PURE__ */ jsx222("li", { children: /* @__PURE__ */ jsx222(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9516
+ return /* @__PURE__ */ jsx223("li", { children: /* @__PURE__ */ jsx223(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9445
9517
  };
9446
9518
  var FormErrorSummary = ({ description }) => {
9447
9519
  const ref = useRef7(null);
@@ -9450,10 +9522,10 @@ var FormErrorSummary = ({ description }) => {
9450
9522
  if (isValid || !hasSubmitted) {
9451
9523
  return null;
9452
9524
  }
9453
- return /* @__PURE__ */ jsxs21("div", { ref, children: [
9454
- /* @__PURE__ */ jsx222("p", { children: description }),
9455
- /* @__PURE__ */ jsx222("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined8(error)).map(
9456
- ([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx222(
9525
+ return /* @__PURE__ */ jsxs22("div", { ref, children: [
9526
+ /* @__PURE__ */ jsx223("p", { children: description }),
9527
+ /* @__PURE__ */ jsx223("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined8(error)).map(
9528
+ ([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx223(
9457
9529
  ErrorItem,
9458
9530
  {
9459
9531
  error: err,
@@ -9461,7 +9533,7 @@ var FormErrorSummary = ({ description }) => {
9461
9533
  name
9462
9534
  },
9463
9535
  err
9464
- )) : /* @__PURE__ */ jsx222(
9536
+ )) : /* @__PURE__ */ jsx223(
9465
9537
  ErrorItem,
9466
9538
  {
9467
9539
  error: error ?? "",
@@ -9476,12 +9548,12 @@ var FormErrorSummary = ({ description }) => {
9476
9548
 
9477
9549
  // src/components/FormField/FormField.tsx
9478
9550
  import { Children as Children5, cloneElement as cloneElement5, useContext as useContext3 } from "react";
9479
- import styled35 from "styled-components";
9480
- import { isArray as isArray2, isNotNil as isNotNil13, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
9551
+ import styled36 from "styled-components";
9552
+ import { isArray as isArray2, isNotNil as isNotNil15, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
9481
9553
 
9482
9554
  // src/components/Label/Label.tsx
9483
- import styled33, { css as css28 } from "styled-components";
9484
- import { jsx as jsx223 } from "react/jsx-runtime";
9555
+ import styled34, { css as css28 } from "styled-components";
9556
+ import { jsx as jsx224 } from "react/jsx-runtime";
9485
9557
  var requiredStyle = css28`
9486
9558
  &::after {
9487
9559
  color: var(--wui-color-text-error);
@@ -9493,7 +9565,7 @@ var requiredStyle = css28`
9493
9565
  var disabledStyle3 = css28`
9494
9566
  color: var(--wui-color-text-disabled);
9495
9567
  `;
9496
- var StyledLabel3 = styled33.label`
9568
+ var StyledLabel3 = styled34.label`
9497
9569
  display: block;
9498
9570
  width: 100%;
9499
9571
  color: var(--wui-color-text);
@@ -9525,7 +9597,7 @@ var Label = ({
9525
9597
  screenReaderOnly = false,
9526
9598
  ...props
9527
9599
  }) => {
9528
- return /* @__PURE__ */ jsx223(
9600
+ return /* @__PURE__ */ jsx224(
9529
9601
  StyledLabel3,
9530
9602
  {
9531
9603
  ...props,
@@ -9543,25 +9615,25 @@ Label.displayName = "Label";
9543
9615
  import { createContext as createContext3, useMemo as useMemo5 } from "react";
9544
9616
 
9545
9617
  // src/components/FormGroup/FormGroup.tsx
9546
- import styled34 from "styled-components";
9618
+ import styled35 from "styled-components";
9547
9619
  import { useRef as useRef8 } from "react";
9548
- import { jsx as jsx224, jsxs as jsxs22 } from "react/jsx-runtime";
9549
- var StyledFieldset = styled34.fieldset`
9620
+ import { jsx as jsx225, jsxs as jsxs23 } from "react/jsx-runtime";
9621
+ var StyledFieldset = styled35.fieldset`
9550
9622
  border: 0;
9551
9623
  `;
9552
- var StyledLegend = styled34.legend`
9624
+ var StyledLegend = styled35.legend`
9553
9625
  margin-bottom: var(--space-01);
9554
9626
  `;
9555
9627
  var FormGroup = ({ children, label, ...props }) => {
9556
9628
  const ref = useRef8();
9557
- return /* @__PURE__ */ jsxs22(
9629
+ return /* @__PURE__ */ jsxs23(
9558
9630
  Stack,
9559
9631
  {
9560
9632
  ...props,
9561
9633
  ref,
9562
9634
  renderAs: StyledFieldset,
9563
9635
  children: [
9564
- /* @__PURE__ */ jsx224(
9636
+ /* @__PURE__ */ jsx225(
9565
9637
  Heading,
9566
9638
  {
9567
9639
  renderAs: StyledLegend,
@@ -9577,7 +9649,7 @@ var FormGroup = ({ children, label, ...props }) => {
9577
9649
  FormGroup.displayName = "FormGroup";
9578
9650
 
9579
9651
  // src/components/FormGroup/CheckboxGroup.tsx
9580
- import { jsx as jsx225 } from "react/jsx-runtime";
9652
+ import { jsx as jsx226 } from "react/jsx-runtime";
9581
9653
  var CheckboxGroupContext = createContext3(null);
9582
9654
  var CheckboxGroup = ({
9583
9655
  children,
@@ -9592,13 +9664,13 @@ var CheckboxGroup = ({
9592
9664
  onChange
9593
9665
  };
9594
9666
  }, [name, onChange]);
9595
- return /* @__PURE__ */ jsx225(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx225(FormGroup, { ...props, children }) });
9667
+ return /* @__PURE__ */ jsx226(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx226(FormGroup, { ...props, children }) });
9596
9668
  };
9597
9669
  CheckboxGroup.displayName = "CheckboxGroup";
9598
9670
 
9599
9671
  // src/components/FormField/FormField.tsx
9600
- import { Fragment as Fragment6, jsx as jsx226, jsxs as jsxs23 } from "react/jsx-runtime";
9601
- var StyledFormField = styled35.div`
9672
+ import { Fragment as Fragment6, jsx as jsx227, jsxs as jsxs24 } from "react/jsx-runtime";
9673
+ var StyledFormField = styled36.div`
9602
9674
  --form-field-spacing: var(--wui-space-01);
9603
9675
  --form-field-spacing-inline: var(--wui-space-02);
9604
9676
  --form-field-error-color: var(--wui-color-text-secondary-error);
@@ -9628,7 +9700,7 @@ var StyledFormField = styled35.div`
9628
9700
  grid-template-rows: 1fr;
9629
9701
  }
9630
9702
  `;
9631
- var StyledErrorList = styled35.ul`
9703
+ var StyledErrorList = styled36.ul`
9632
9704
  margin: 0;
9633
9705
  padding: 0;
9634
9706
  padding-left: var(--wui-space-04);
@@ -9638,7 +9710,7 @@ var StyledErrorList = styled35.ul`
9638
9710
  `;
9639
9711
  var ErrorMessages = ({ errors, id }) => {
9640
9712
  const isMultipleErrors = isArray2(errors);
9641
- return isMultipleErrors ? /* @__PURE__ */ jsx226(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx226(
9713
+ return isMultipleErrors ? /* @__PURE__ */ jsx227(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx227(
9642
9714
  Text,
9643
9715
  {
9644
9716
  colorScheme: "error",
@@ -9648,7 +9720,7 @@ var ErrorMessages = ({ errors, id }) => {
9648
9720
  children: error
9649
9721
  },
9650
9722
  `${id}-${index}`
9651
- )) }) : /* @__PURE__ */ jsx226(
9723
+ )) }) : /* @__PURE__ */ jsx227(
9652
9724
  Text,
9653
9725
  {
9654
9726
  colorScheme: "error",
@@ -9693,8 +9765,8 @@ var FormField = ({
9693
9765
  defaultValue
9694
9766
  };
9695
9767
  }
9696
- if (isNotNil13(checkboxGroup)) {
9697
- const computedName = isNotNil13(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9768
+ if (isNotNil15(checkboxGroup)) {
9769
+ const computedName = isNotNil15(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9698
9770
  const handleChange = (event) => {
9699
9771
  if (isNotUndefined9(props.onChange)) {
9700
9772
  props.onChange(event);
@@ -9707,22 +9779,22 @@ var FormField = ({
9707
9779
  ...childProps,
9708
9780
  name: computedName,
9709
9781
  onChange: handleChange,
9710
- "aria-invalid": isNotNil13(error)
9782
+ "aria-invalid": isNotNil15(error)
9711
9783
  };
9712
9784
  }
9713
9785
  Children5.only(children);
9714
- return /* @__PURE__ */ jsxs23(
9786
+ return /* @__PURE__ */ jsxs24(
9715
9787
  StyledFormField,
9716
9788
  {
9717
9789
  ...props,
9718
9790
  "data-label-position": labelPosition ?? formState.labelPosition,
9719
9791
  children: [
9720
- !isIntegratedLabel && /* @__PURE__ */ jsx226(Label, { htmlFor: computedId, children: label }),
9721
- isNotNil13(description) ? /* @__PURE__ */ jsx226(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9792
+ !isIntegratedLabel && /* @__PURE__ */ jsx227(Label, { htmlFor: computedId, children: label }),
9793
+ isNotNil15(description) ? /* @__PURE__ */ jsx227(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9722
9794
  cloneElement5(children, childProps),
9723
- isNotNil13(computedError) ? /* @__PURE__ */ jsxs23(Fragment6, { children: [
9724
- /* @__PURE__ */ jsx226("div", {}),
9725
- /* @__PURE__ */ jsx226(
9795
+ isNotNil15(computedError) ? /* @__PURE__ */ jsxs24(Fragment6, { children: [
9796
+ /* @__PURE__ */ jsx227("div", {}),
9797
+ /* @__PURE__ */ jsx227(
9726
9798
  ErrorMessages,
9727
9799
  {
9728
9800
  errors: computedError,
@@ -9738,7 +9810,7 @@ FormField.displayName = "FormField";
9738
9810
 
9739
9811
  // src/components/FormGroup/RadioGroup.tsx
9740
9812
  import { createContext as createContext4, useMemo as useMemo6 } from "react";
9741
- import { jsx as jsx227 } from "react/jsx-runtime";
9813
+ import { jsx as jsx228 } from "react/jsx-runtime";
9742
9814
  var RadioGroupContext = createContext4(null);
9743
9815
  var RadioGroup = ({
9744
9816
  children,
@@ -9753,15 +9825,15 @@ var RadioGroup = ({
9753
9825
  onChange
9754
9826
  };
9755
9827
  }, [name, onChange]);
9756
- return /* @__PURE__ */ jsx227(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx227(FormGroup, { ...props, children }) });
9828
+ return /* @__PURE__ */ jsx228(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx228(FormGroup, { ...props, children }) });
9757
9829
  };
9758
9830
  RadioGroup.displayName = "RadioGroup";
9759
9831
 
9760
9832
  // src/components/IconButton/IconButton.tsx
9761
9833
  import { Children as Children6, cloneElement as cloneElement6, forwardRef as forwardRef13 } from "react";
9762
- import styled36 from "styled-components";
9763
- import { jsx as jsx228 } from "react/jsx-runtime";
9764
- var StyledButton2 = styled36(Button)`
9834
+ import styled37 from "styled-components";
9835
+ import { jsx as jsx229 } from "react/jsx-runtime";
9836
+ var StyledButton2 = styled37(Button)`
9765
9837
  --icon-button-size-sm: 24px;
9766
9838
  --icon-button-size-md: 32px;
9767
9839
  --icon-button-size-lg: 40px;
@@ -9778,7 +9850,7 @@ var StyledButton2 = styled36(Button)`
9778
9850
  var IconButton = forwardRef13(
9779
9851
  ({ children, label, size = "md", ...props }, ref) => {
9780
9852
  const responsiveSize = useResponsiveProp(size);
9781
- return /* @__PURE__ */ jsx228(
9853
+ return /* @__PURE__ */ jsx229(
9782
9854
  StyledButton2,
9783
9855
  {
9784
9856
  ...props,
@@ -9795,55 +9867,6 @@ var IconButton = forwardRef13(
9795
9867
  );
9796
9868
  IconButton.displayName = "IconButton";
9797
9869
 
9798
- // src/components/Image/Image.tsx
9799
- import styled37 from "styled-components";
9800
- import { isNotNil as isNotNil14 } from "@wistia/type-guards";
9801
- import { jsx as jsx229 } from "react/jsx-runtime";
9802
- var getFillStyle2 = (fillContainer) => {
9803
- if (fillContainer === "horizontal") {
9804
- return "width: 100%;";
9805
- }
9806
- if (fillContainer === "vertical") {
9807
- return "height: 100%;";
9808
- }
9809
- if (fillContainer === true) {
9810
- return `
9811
- width: 100%;
9812
- height: 100%;
9813
- `;
9814
- }
9815
- return void 0;
9816
- };
9817
- var StyledImage = styled37.img`
9818
- border-radius: ${({ $borderRadius }) => isNotNil14($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
9819
- ${({ $fillContainer }) => getFillStyle2($fillContainer)};
9820
- object-fit: ${({ $objFit }) => $objFit};
9821
- object-position: ${({ $objPosition }) => $objPosition};
9822
- `;
9823
- var Image = ({
9824
- src,
9825
- alt,
9826
- borderRadius,
9827
- fill: fillContainer = false,
9828
- fit: objFit,
9829
- loading = "lazy",
9830
- position: objPosition,
9831
- ...props
9832
- }) => /* @__PURE__ */ jsx229(
9833
- StyledImage,
9834
- {
9835
- $borderRadius: borderRadius,
9836
- $fillContainer: fillContainer,
9837
- $objFit: objFit,
9838
- $objPosition: objPosition,
9839
- alt,
9840
- loading,
9841
- src,
9842
- ...props
9843
- }
9844
- );
9845
- Image.displayName = "Image";
9846
-
9847
9870
  // src/components/Menu/Menu.tsx
9848
9871
  import styled38, { css as css29, keyframes as keyframes2 } from "styled-components";
9849
9872
  import {
@@ -9852,7 +9875,7 @@ import {
9852
9875
  DropdownMenuPortal,
9853
9876
  DropdownMenuContent
9854
9877
  } from "@radix-ui/react-dropdown-menu";
9855
- import { isNotNil as isNotNil15, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
9878
+ import { isNotNil as isNotNil16, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
9856
9879
  import { useMemo as useMemo7 } from "react";
9857
9880
 
9858
9881
  // src/components/Menu/MenuContext.tsx
@@ -9861,7 +9884,7 @@ var MenuContext = createContext5({ compact: false });
9861
9884
  var useMenuContext = () => useContext4(MenuContext);
9862
9885
 
9863
9886
  // src/components/Menu/Menu.tsx
9864
- import { jsx as jsx230, jsxs as jsxs24 } from "react/jsx-runtime";
9887
+ import { jsx as jsx230, jsxs as jsxs25 } from "react/jsx-runtime";
9865
9888
  var open = keyframes2`
9866
9889
  from {
9867
9890
  opacity: 0;
@@ -9964,7 +9987,7 @@ var Menu = ({
9964
9987
  }) => {
9965
9988
  const contextValue = useMemo7(() => ({ compact }), [compact]);
9966
9989
  let controlProps = {
9967
- ...isNotNil15(onOpenChange) && isNotNil15(isOpen) ? { open: isOpen, onOpenChange } : {}
9990
+ ...isNotNil16(onOpenChange) && isNotNil16(isOpen) ? { open: isOpen, onOpenChange } : {}
9968
9991
  };
9969
9992
  if (disabled) {
9970
9993
  controlProps = {
@@ -9972,7 +9995,7 @@ var Menu = ({
9972
9995
  onOpenChange: () => null
9973
9996
  };
9974
9997
  }
9975
- return /* @__PURE__ */ jsx230(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs24(
9998
+ return /* @__PURE__ */ jsx230(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs25(
9976
9999
  DropdownMenu,
9977
10000
  {
9978
10001
  modal: false,
@@ -10046,13 +10069,13 @@ import {
10046
10069
  DropdownMenuSubTrigger,
10047
10070
  DropdownMenuItem
10048
10071
  } from "@radix-ui/react-dropdown-menu";
10049
- import { isNotNil as isNotNil17 } from "@wistia/type-guards";
10072
+ import { isNotNil as isNotNil18 } from "@wistia/type-guards";
10050
10073
 
10051
10074
  // src/components/Menu/MenuItemButton.tsx
10052
10075
  import { forwardRef as forwardRef14 } from "react";
10053
10076
  import styled40 from "styled-components";
10054
- import { isNotNil as isNotNil16, isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
10055
- import { jsx as jsx232, jsxs as jsxs25 } from "react/jsx-runtime";
10077
+ import { isNotNil as isNotNil17, isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
10078
+ import { jsx as jsx232, jsxs as jsxs26 } from "react/jsx-runtime";
10056
10079
  var StyledButton3 = styled40(Button)`
10057
10080
  ${({ colorScheme }) => getColorScheme(colorScheme)};
10058
10081
 
@@ -10147,7 +10170,7 @@ var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...pro
10147
10170
  }
10148
10171
  );
10149
10172
  }
10150
- return /* @__PURE__ */ jsxs25(
10173
+ return /* @__PURE__ */ jsxs26(
10151
10174
  StyledButton3,
10152
10175
  {
10153
10176
  ...props,
@@ -10159,7 +10182,7 @@ var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...pro
10159
10182
  children: [
10160
10183
  props.leftIcon ? /* @__PURE__ */ jsx232(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10161
10184
  /* @__PURE__ */ jsx232(StyledLabelAndDescriptionContainer, { children }),
10162
- isNotNil16(badge) || isNotNil16(command) ? /* @__PURE__ */ jsx232(StyledBadgeContainer, { children: badge ?? command }) : null,
10185
+ isNotNil17(badge) || isNotNil17(command) ? /* @__PURE__ */ jsx232(StyledBadgeContainer, { children: badge ?? command }) : null,
10163
10186
  props.rightIcon ? /* @__PURE__ */ jsx232(StyledRightIconContainer, { children: props.rightIcon }) : null
10164
10187
  ]
10165
10188
  }
@@ -10183,7 +10206,7 @@ var MenuItemDescription = ({ children }) => {
10183
10206
  };
10184
10207
 
10185
10208
  // src/components/Menu/SubMenu.tsx
10186
- import { jsx as jsx234, jsxs as jsxs26 } from "react/jsx-runtime";
10209
+ import { jsx as jsx234, jsxs as jsxs27 } from "react/jsx-runtime";
10187
10210
  var SubMenuContent = styled42(DropdownMenuSubContent)`
10188
10211
  ${menuContentCss}
10189
10212
 
@@ -10224,14 +10247,14 @@ var SubMenu = ({
10224
10247
  const { isSmAndUp } = useMq();
10225
10248
  const [isExpanded, setIsExpanded] = useState9(false);
10226
10249
  const { compact } = useMenuContext();
10227
- return isSmAndUp ? /* @__PURE__ */ jsxs26(DropdownMenuSub, { onOpenChange, children: [
10228
- /* @__PURE__ */ jsxs26(SubMenuTrigger, { ...props, children: [
10250
+ return isSmAndUp ? /* @__PURE__ */ jsxs27(DropdownMenuSub, { onOpenChange, children: [
10251
+ /* @__PURE__ */ jsxs27(SubMenuTrigger, { ...props, children: [
10229
10252
  /* @__PURE__ */ jsx234(MenuItemLabel, { children: label }),
10230
- isNotNil17(description) ? /* @__PURE__ */ jsx234(MenuItemDescription, { children: description }) : null
10253
+ isNotNil18(description) ? /* @__PURE__ */ jsx234(MenuItemDescription, { children: description }) : null
10231
10254
  ] }),
10232
10255
  /* @__PURE__ */ jsx234(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx234(SubMenuContent, { $compact: compact, children }) })
10233
- ] }) : /* @__PURE__ */ jsxs26(DropdownMenuGroup, { children: [
10234
- /* @__PURE__ */ jsxs26(
10256
+ ] }) : /* @__PURE__ */ jsxs27(DropdownMenuGroup, { children: [
10257
+ /* @__PURE__ */ jsxs27(
10235
10258
  SubMenuTrigger,
10236
10259
  {
10237
10260
  ...props,
@@ -10279,9 +10302,9 @@ MenuItem.displayName = "MenuItem";
10279
10302
  import {
10280
10303
  DropdownMenuRadioGroup
10281
10304
  } from "@radix-ui/react-dropdown-menu";
10282
- import { jsx as jsx236, jsxs as jsxs27 } from "react/jsx-runtime";
10305
+ import { jsx as jsx236, jsxs as jsxs28 } from "react/jsx-runtime";
10283
10306
  var MenuRadioGroup = ({ children, label, ...props }) => {
10284
- return /* @__PURE__ */ jsxs27(DropdownMenuRadioGroup, { ...props, children: [
10307
+ return /* @__PURE__ */ jsxs28(DropdownMenuRadioGroup, { ...props, children: [
10285
10308
  /* @__PURE__ */ jsx236(MenuLabel, { children: label }),
10286
10309
  children
10287
10310
  ] });
@@ -10329,9 +10352,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
10329
10352
  import {
10330
10353
  DropdownMenuCheckboxItem
10331
10354
  } from "@radix-ui/react-dropdown-menu";
10332
- import { jsx as jsx238, jsxs as jsxs28 } from "react/jsx-runtime";
10355
+ import { jsx as jsx238, jsxs as jsxs29 } from "react/jsx-runtime";
10333
10356
  var CheckboxIndicator = ({ checked, ...props }) => {
10334
- return checked ? /* @__PURE__ */ jsxs28(
10357
+ return checked ? /* @__PURE__ */ jsxs29(
10335
10358
  "svg",
10336
10359
  {
10337
10360
  ...props,
@@ -10357,7 +10380,7 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10357
10380
  )
10358
10381
  ]
10359
10382
  }
10360
- ) : /* @__PURE__ */ jsxs28(
10383
+ ) : /* @__PURE__ */ jsxs29(
10361
10384
  "svg",
10362
10385
  {
10363
10386
  ...props,
@@ -10414,7 +10437,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
10414
10437
  import { forwardRef as forwardRef18 } from "react";
10415
10438
  import styled47 from "styled-components";
10416
10439
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
10417
- import { isNotNil as isNotNil19 } from "@wistia/type-guards";
10440
+ import { isNotNil as isNotNil20 } from "@wistia/type-guards";
10418
10441
 
10419
10442
  // src/components/Modal/ModalHeader.tsx
10420
10443
  import styled44 from "styled-components";
@@ -10440,7 +10463,7 @@ var ModalCloseButton = () => {
10440
10463
  };
10441
10464
 
10442
10465
  // src/components/Modal/ModalHeader.tsx
10443
- import { jsx as jsx240, jsxs as jsxs29 } from "react/jsx-runtime";
10466
+ import { jsx as jsx240, jsxs as jsxs30 } from "react/jsx-runtime";
10444
10467
  var Header = styled44.header`
10445
10468
  display: flex;
10446
10469
  order: 1;
@@ -10464,7 +10487,7 @@ var ModalHeader = ({
10464
10487
  hideCloseButton
10465
10488
  }) => {
10466
10489
  const TitleComponent = hideTitle ? /* @__PURE__ */ jsx240(ScreenReaderOnly, { children: /* @__PURE__ */ jsx240(Title, { children: title }) }) : /* @__PURE__ */ jsx240(Title, { children: title });
10467
- return /* @__PURE__ */ jsxs29(Header, { $hideTitle: hideTitle, children: [
10490
+ return /* @__PURE__ */ jsxs30(Header, { $hideTitle: hideTitle, children: [
10468
10491
  TitleComponent,
10469
10492
  hideCloseButton ? null : /* @__PURE__ */ jsx240(ModalCloseButton, {})
10470
10493
  ] });
@@ -10477,7 +10500,7 @@ import { Content as DialogContent } from "@radix-ui/react-dialog";
10477
10500
 
10478
10501
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
10479
10502
  import { useRef as useRef9, useEffect as useEffect7 } from "react";
10480
- import { isNotNil as isNotNil18 } from "@wistia/type-guards";
10503
+ import { isNotNil as isNotNil19 } from "@wistia/type-guards";
10481
10504
  var useFocusRestore = () => {
10482
10505
  const previouslyFocusedRef = useRef9(null);
10483
10506
  useEffect7(() => {
@@ -10485,7 +10508,7 @@ var useFocusRestore = () => {
10485
10508
  }, []);
10486
10509
  useEffect7(() => {
10487
10510
  return () => {
10488
- if (isNotNil18(previouslyFocusedRef.current)) {
10511
+ if (isNotNil19(previouslyFocusedRef.current)) {
10489
10512
  setTimeout(() => {
10490
10513
  previouslyFocusedRef.current?.focus();
10491
10514
  }, 0);
@@ -10608,7 +10631,7 @@ var Backdrop = forwardRef17(
10608
10631
  Backdrop.displayName = "Backdrop";
10609
10632
 
10610
10633
  // src/components/Modal/Modal.tsx
10611
- import { jsx as jsx243, jsxs as jsxs30 } from "react/jsx-runtime";
10634
+ import { jsx as jsx243, jsxs as jsxs31 } from "react/jsx-runtime";
10612
10635
  var DEFAULT_MODAL_WIDTH = "532px";
10613
10636
  var ModalBody = styled47.div`
10614
10637
  flex-direction: column;
@@ -10632,20 +10655,20 @@ var Modal = forwardRef18(
10632
10655
  DialogRoot,
10633
10656
  {
10634
10657
  onOpenChange: (open2) => {
10635
- if (!open2 && isNotNil19(onRequestClose)) {
10658
+ if (!open2 && isNotNil20(onRequestClose)) {
10636
10659
  onRequestClose();
10637
10660
  }
10638
10661
  },
10639
10662
  open: isOpen,
10640
- children: /* @__PURE__ */ jsxs30(DialogPortal, { children: [
10663
+ children: /* @__PURE__ */ jsxs31(DialogPortal, { children: [
10641
10664
  /* @__PURE__ */ jsx243(Backdrop, {}),
10642
- /* @__PURE__ */ jsxs30(
10665
+ /* @__PURE__ */ jsxs31(
10643
10666
  ModalContent,
10644
10667
  {
10645
10668
  ref,
10646
10669
  fullHeight,
10647
10670
  onOpenAutoFocus: (event) => {
10648
- if (isNotNil19(initialFocusRef) && initialFocusRef.current) {
10671
+ if (isNotNil20(initialFocusRef) && initialFocusRef.current) {
10649
10672
  event.preventDefault();
10650
10673
  requestAnimationFrame(() => {
10651
10674
  initialFocusRef.current?.focus();
@@ -10679,13 +10702,13 @@ import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close
10679
10702
  import styled48, { css as css30 } from "styled-components";
10680
10703
 
10681
10704
  // src/private/helpers/getControls/getControlProps.tsx
10682
- import { isNotNil as isNotNil20 } from "@wistia/type-guards";
10705
+ import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10683
10706
  var getControlProps = (isOpen, onOpenChange) => {
10684
- return isNotNil20(onOpenChange) && isNotNil20(isOpen) ? { open: isOpen, onOpenChange } : {};
10707
+ return isNotNil21(onOpenChange) && isNotNil21(isOpen) ? { open: isOpen, onOpenChange } : {};
10685
10708
  };
10686
10709
 
10687
10710
  // src/components/Popover/Popover.tsx
10688
- import { jsx as jsx244, jsxs as jsxs31 } from "react/jsx-runtime";
10711
+ import { jsx as jsx244, jsxs as jsxs32 } from "react/jsx-runtime";
10689
10712
  var StyledContent2 = styled48(Content2)`
10690
10713
  ${({ $unstyled }) => !$unstyled && css30`
10691
10714
  border-radius: var(--wui-border-radius-02);
@@ -10719,9 +10742,9 @@ var Popover = ({
10719
10742
  "--wui-popover-max-width": maxWidth,
10720
10743
  "--wui-popover-max-height": maxHeight
10721
10744
  };
10722
- return /* @__PURE__ */ jsxs31(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
10745
+ return /* @__PURE__ */ jsxs32(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
10723
10746
  /* @__PURE__ */ jsx244(Trigger2, { asChild: true, children: trigger }),
10724
- /* @__PURE__ */ jsx244(Portal, { children: /* @__PURE__ */ jsxs31(
10747
+ /* @__PURE__ */ jsx244(Portal, { children: /* @__PURE__ */ jsxs32(
10725
10748
  StyledContent2,
10726
10749
  {
10727
10750
  sideOffset: 8,
@@ -10749,8 +10772,8 @@ Popover.displayName = "Popover";
10749
10772
  // src/components/ProgressBar/ProgressBar.tsx
10750
10773
  import styled49 from "styled-components";
10751
10774
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
10752
- import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10753
- import { jsx as jsx245, jsxs as jsxs32 } from "react/jsx-runtime";
10775
+ import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10776
+ import { jsx as jsx245, jsxs as jsxs33 } from "react/jsx-runtime";
10754
10777
  var ProgressBarWrapper = styled49.div`
10755
10778
  --progress-bar-height: 8px;
10756
10779
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
@@ -10803,8 +10826,8 @@ var ProgressBar = ({
10803
10826
  labelRight,
10804
10827
  ...props
10805
10828
  }) => {
10806
- return /* @__PURE__ */ jsxs32(ProgressBarWrapper, { children: [
10807
- isNotNil21(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
10829
+ return /* @__PURE__ */ jsxs33(ProgressBarWrapper, { children: [
10830
+ isNotNil22(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
10808
10831
  /* @__PURE__ */ jsx245(
10809
10832
  StyledProgressBar,
10810
10833
  {
@@ -10820,7 +10843,7 @@ var ProgressBar = ({
10820
10843
  )
10821
10844
  }
10822
10845
  ),
10823
- isNotNil21(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
10846
+ isNotNil22(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
10824
10847
  ] });
10825
10848
  };
10826
10849
  ProgressBar.displayName = "ProgressBar";
@@ -10829,7 +10852,7 @@ ProgressBar.displayName = "ProgressBar";
10829
10852
  import { forwardRef as forwardRef19, useId as useId3 } from "react";
10830
10853
  import styled50, { css as css31 } from "styled-components";
10831
10854
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
10832
- import { jsx as jsx246, jsxs as jsxs33 } from "react/jsx-runtime";
10855
+ import { jsx as jsx246, jsxs as jsxs34 } from "react/jsx-runtime";
10833
10856
  var RadioIcon = () => /* @__PURE__ */ jsx246(
10834
10857
  "svg",
10835
10858
  {
@@ -10946,7 +10969,7 @@ var Radio = forwardRef19(
10946
10969
  }, ref) => {
10947
10970
  const generatedId = useId3();
10948
10971
  const computedId = isNonEmptyString3(id) ? id : `wistia-ui-radio-${generatedId}`;
10949
- return /* @__PURE__ */ jsxs33(
10972
+ return /* @__PURE__ */ jsxs34(
10950
10973
  StyledRadioWrapper,
10951
10974
  {
10952
10975
  $disabled: disabled,
@@ -11085,7 +11108,7 @@ var SelectedItemIndicator = () => {
11085
11108
  };
11086
11109
 
11087
11110
  // src/components/SegmentedControl/SegmentedControl.tsx
11088
- import { jsx as jsx249, jsxs as jsxs34 } from "react/jsx-runtime";
11111
+ import { jsx as jsx249, jsxs as jsxs35 } from "react/jsx-runtime";
11089
11112
  var segmentedControlStyles = css32`
11090
11113
  display: inline-flex;
11091
11114
  background-color: var(--wui-color-bg-surface-secondary);
@@ -11123,7 +11146,7 @@ var SegmentedControl = forwardRef20(
11123
11146
  type: "single",
11124
11147
  value: selectedValue,
11125
11148
  ...props,
11126
- children: /* @__PURE__ */ jsx249(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs34(SelectedItemMeasurementsProvider, { children: [
11149
+ children: /* @__PURE__ */ jsx249(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs35(SelectedItemMeasurementsProvider, { children: [
11127
11150
  /* @__PURE__ */ jsx249(SelectedItemIndicator, {}),
11128
11151
  children
11129
11152
  ] }) })
@@ -11137,8 +11160,8 @@ SegmentedControl.displayName = "SegmentedControl";
11137
11160
  import { forwardRef as forwardRef21, useEffect as useEffect8, useRef as useRef10 } from "react";
11138
11161
  import styled53, { css as css33 } from "styled-components";
11139
11162
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
11140
- import { isNotNil as isNotNil22 } from "@wistia/type-guards";
11141
- import { jsxs as jsxs35 } from "react/jsx-runtime";
11163
+ import { isNotNil as isNotNil23 } from "@wistia/type-guards";
11164
+ import { jsxs as jsxs36 } from "react/jsx-runtime";
11142
11165
  var segmentedControlItemStyles = css33`
11143
11166
  all: unset; /* ToggleGroupItem is a button element */
11144
11167
  align-items: center;
@@ -11240,12 +11263,12 @@ var SegmentedControlItem = forwardRef21(
11240
11263
  resizeObserver.disconnect();
11241
11264
  };
11242
11265
  }, [selectedValue, setSelectedItemMeasurements, value]);
11243
- return /* @__PURE__ */ jsxs35(
11266
+ return /* @__PURE__ */ jsxs36(
11244
11267
  StyledSegmentedControlItem,
11245
11268
  {
11246
11269
  ref: combinedRef,
11247
- $hasLabel: isNotNil22(label),
11248
- "aria-label": isNotNil22(label) ? void 0 : ariaLabel,
11270
+ $hasLabel: isNotNil23(label),
11271
+ "aria-label": isNotNil23(label) ? void 0 : ariaLabel,
11249
11272
  disabled,
11250
11273
  onClick: handleClick,
11251
11274
  value,
@@ -11272,7 +11295,7 @@ import {
11272
11295
  } from "@radix-ui/react-select";
11273
11296
  import { forwardRef as forwardRef22 } from "react";
11274
11297
  import styled54 from "styled-components";
11275
- import { jsx as jsx250, jsxs as jsxs36 } from "react/jsx-runtime";
11298
+ import { jsx as jsx250, jsxs as jsxs37 } from "react/jsx-runtime";
11276
11299
  var StyledTrigger = styled54(Trigger3)`
11277
11300
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11278
11301
  ${inputCssVariables};
@@ -11289,9 +11312,9 @@ var StyledTrigger = styled54(Trigger3)`
11289
11312
  justify-content: space-between;
11290
11313
  max-width: 100%;
11291
11314
  width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
11292
- color: var(--wui-input-color-text);
11293
11315
  font-size: var(--wui-input-font-size);
11294
11316
  line-height: var(--wui-input-line-height);
11317
+ color: var(--wui-input-color-text);
11295
11318
 
11296
11319
  > span {
11297
11320
  white-space: nowrap;
@@ -11313,7 +11336,7 @@ var StyledTrigger = styled54(Trigger3)`
11313
11336
  background-color: var(--wui-color-bg-surface-disabled);
11314
11337
  }
11315
11338
 
11316
- [data-placeholder] {
11339
+ &[data-placeholder] {
11317
11340
  color: var(--wui-input-placeholder);
11318
11341
  }
11319
11342
  `;
@@ -11345,13 +11368,13 @@ var Select = forwardRef22(
11345
11368
  ...props
11346
11369
  }, forwardedRef) => {
11347
11370
  const responsiveFullWidth = useResponsiveProp(fullWidth);
11348
- return /* @__PURE__ */ jsxs36(
11371
+ return /* @__PURE__ */ jsxs37(
11349
11372
  Root3,
11350
11373
  {
11351
11374
  ...props,
11352
11375
  onValueChange: onChange,
11353
11376
  children: [
11354
- /* @__PURE__ */ jsxs36(
11377
+ /* @__PURE__ */ jsxs37(
11355
11378
  StyledTrigger,
11356
11379
  {
11357
11380
  ref: forwardedRef,
@@ -11359,13 +11382,7 @@ var Select = forwardRef22(
11359
11382
  $fullWidth: responsiveFullWidth,
11360
11383
  ...props,
11361
11384
  children: [
11362
- /* @__PURE__ */ jsx250(
11363
- Value,
11364
- {
11365
- "data-placeholder": placeholder,
11366
- placeholder
11367
- }
11368
- ),
11385
+ /* @__PURE__ */ jsx250(Value, { placeholder }),
11369
11386
  /* @__PURE__ */ jsx250(
11370
11387
  Icon,
11371
11388
  {
@@ -11376,7 +11393,7 @@ var Select = forwardRef22(
11376
11393
  ]
11377
11394
  }
11378
11395
  ),
11379
- /* @__PURE__ */ jsx250(Portal2, { children: /* @__PURE__ */ jsxs36(StyledContent3, { position: "popper", children: [
11396
+ /* @__PURE__ */ jsx250(Portal2, { children: /* @__PURE__ */ jsxs37(StyledContent3, { position: "popper", children: [
11380
11397
  /* @__PURE__ */ jsx250(ScrollUpButton, { children: /* @__PURE__ */ jsx250(Icon, { type: "caret-up" }) }),
11381
11398
  /* @__PURE__ */ jsx250(Viewport, { children }),
11382
11399
  /* @__PURE__ */ jsx250(ScrollDownButton, { children: /* @__PURE__ */ jsx250(Icon, { type: "caret-down" }) })
@@ -11392,8 +11409,8 @@ Select.displayName = "Select";
11392
11409
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11393
11410
  import { forwardRef as forwardRef23 } from "react";
11394
11411
  import styled55 from "styled-components";
11395
- import { isNotNil as isNotNil23 } from "@wistia/type-guards";
11396
- import { jsx as jsx251, jsxs as jsxs37 } from "react/jsx-runtime";
11412
+ import { isNotNil as isNotNil24 } from "@wistia/type-guards";
11413
+ import { jsx as jsx251, jsxs as jsxs38 } from "react/jsx-runtime";
11397
11414
  var StyledItem = styled55(Item)`
11398
11415
  ${variantStyleMap2.body3};
11399
11416
  display: flex;
@@ -11423,7 +11440,7 @@ var StyledIconContainer = styled55.span`
11423
11440
  `;
11424
11441
  var SelectOption = forwardRef23(
11425
11442
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11426
- return /* @__PURE__ */ jsxs37(
11443
+ return /* @__PURE__ */ jsxs38(
11427
11444
  StyledItem,
11428
11445
  {
11429
11446
  ...props,
@@ -11436,7 +11453,7 @@ var SelectOption = forwardRef23(
11436
11453
  type: "checkmark"
11437
11454
  }
11438
11455
  ) }) }),
11439
- isNotNil23(selectedDisplayValue) ? /* @__PURE__ */ jsxs37("div", { children: [
11456
+ isNotNil24(selectedDisplayValue) ? /* @__PURE__ */ jsxs38("div", { children: [
11440
11457
  children,
11441
11458
  /* @__PURE__ */ jsx251("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx251(ItemText, { children: selectedDisplayValue }) })
11442
11459
  ] }) : /* @__PURE__ */ jsx251(ItemText, { children })
@@ -11450,12 +11467,12 @@ SelectOption.displayName = "Option";
11450
11467
  // src/components/Select/SelectOptionGroup.tsx
11451
11468
  import { Group, Label as Label2 } from "@radix-ui/react-select";
11452
11469
  import styled56 from "styled-components";
11453
- import { jsx as jsx252, jsxs as jsxs38 } from "react/jsx-runtime";
11470
+ import { jsx as jsx252, jsxs as jsxs39 } from "react/jsx-runtime";
11454
11471
  var StyledLabel4 = styled56(Label2)`
11455
11472
  padding: var(--wui-select-option-padding);
11456
11473
  `;
11457
11474
  var SelectOptionGroup = ({ children, label, ...props }) => {
11458
- return /* @__PURE__ */ jsxs38(Group, { ...props, children: [
11475
+ return /* @__PURE__ */ jsxs39(Group, { ...props, children: [
11459
11476
  /* @__PURE__ */ jsx252(StyledLabel4, { children: /* @__PURE__ */ jsx252(
11460
11477
  Text,
11461
11478
  {
@@ -11472,7 +11489,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11472
11489
  import { forwardRef as forwardRef24, useId as useId4 } from "react";
11473
11490
  import styled57, { css as css34 } from "styled-components";
11474
11491
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11475
- import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
11492
+ import { jsx as jsx253, jsxs as jsxs40 } from "react/jsx-runtime";
11476
11493
  var sizeSmall3 = css34`
11477
11494
  --wui-size-small-width: 24px;
11478
11495
  --wui-size-small-height: 14px;
@@ -11591,7 +11608,7 @@ var Switch = forwardRef24(
11591
11608
  }, ref) => {
11592
11609
  const generatedId = useId4();
11593
11610
  const computedId = isNonEmptyString4(id) ? id : `wistia-ui-switch-${generatedId}`;
11594
- return /* @__PURE__ */ jsxs39(StyledSwitchWrapper, { $disabled: disabled, children: [
11611
+ return /* @__PURE__ */ jsxs40(StyledSwitchWrapper, { $disabled: disabled, children: [
11595
11612
  /* @__PURE__ */ jsx253(
11596
11613
  StyledHiddenSwitchInput,
11597
11614
  {
@@ -11737,7 +11754,7 @@ var TableRow = ({ children, ...props }) => {
11737
11754
  // src/components/Tabs/Tabs.tsx
11738
11755
  import { forwardRef as forwardRef26, useState as useState11 } from "react";
11739
11756
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11740
- import { isNotNil as isNotNil25, isNil as isNil15 } from "@wistia/type-guards";
11757
+ import { isNotNil as isNotNil26, isNil as isNil15 } from "@wistia/type-guards";
11741
11758
  import styled68 from "styled-components";
11742
11759
 
11743
11760
  // src/components/Tabs/TabPanel.tsx
@@ -11793,7 +11810,7 @@ TabList.displayName = "TabList";
11793
11810
  import { forwardRef as forwardRef25, useEffect as useEffect9, useRef as useRef11 } from "react";
11794
11811
  import styled66 from "styled-components";
11795
11812
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
11796
- import { isNotNil as isNotNil24 } from "@wistia/type-guards";
11813
+ import { isNotNil as isNotNil25 } from "@wistia/type-guards";
11797
11814
 
11798
11815
  // src/components/Tabs/useTabsValue.tsx
11799
11816
  import { createContext as createContext9, useContext as useContext8 } from "react";
@@ -11808,7 +11825,7 @@ var useTabsValue = () => {
11808
11825
  };
11809
11826
 
11810
11827
  // src/components/Tabs/TabItem.tsx
11811
- import { jsxs as jsxs40 } from "react/jsx-runtime";
11828
+ import { jsxs as jsxs41 } from "react/jsx-runtime";
11812
11829
  var StyledTabItem = styled66(RadixTab)`
11813
11830
  ${segmentedControlItemStyles}
11814
11831
 
@@ -11847,12 +11864,12 @@ var TabItem = forwardRef25(
11847
11864
  resizeObserver.disconnect();
11848
11865
  };
11849
11866
  }, [selectedValue, setSelectedItemMeasurements, value]);
11850
- return /* @__PURE__ */ jsxs40(
11867
+ return /* @__PURE__ */ jsxs41(
11851
11868
  StyledTabItem,
11852
11869
  {
11853
11870
  ref: combinedRef,
11854
- $hasLabel: isNotNil24(label),
11855
- "aria-label": isNotNil24(label) ? void 0 : ariaLabel,
11871
+ $hasLabel: isNotNil25(label),
11872
+ "aria-label": isNotNil25(label) ? void 0 : ariaLabel,
11856
11873
  disabled,
11857
11874
  value,
11858
11875
  children: [
@@ -11923,7 +11940,7 @@ var SelectedItemIndicator2 = () => {
11923
11940
  };
11924
11941
 
11925
11942
  // src/components/Tabs/Tabs.tsx
11926
- import { jsx as jsx263, jsxs as jsxs41 } from "react/jsx-runtime";
11943
+ import { jsx as jsx263, jsxs as jsxs42 } from "react/jsx-runtime";
11927
11944
  var TabsContainer = styled68.div`
11928
11945
  display: flex;
11929
11946
  flex-direction: column;
@@ -11966,8 +11983,8 @@ var Tabs = forwardRef26(
11966
11983
  activationMode: "automatic",
11967
11984
  ...props,
11968
11985
  ...modeProps,
11969
- children: /* @__PURE__ */ jsx263(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs41(SelectedItemMeasurementsProvider, { children: [
11970
- /* @__PURE__ */ jsxs41(
11986
+ children: /* @__PURE__ */ jsx263(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs42(SelectedItemMeasurementsProvider, { children: [
11987
+ /* @__PURE__ */ jsxs42(
11971
11988
  TabList,
11972
11989
  {
11973
11990
  ariaLabel,
@@ -11993,7 +12010,7 @@ var Tabs = forwardRef26(
11993
12010
  value
11994
12011
  );
11995
12012
  }
11996
- if (isNotNil25(label)) {
12013
+ if (isNotNil26(label)) {
11997
12014
  return /* @__PURE__ */ jsx263(
11998
12015
  TabItem,
11999
12016
  {
@@ -12005,7 +12022,7 @@ var Tabs = forwardRef26(
12005
12022
  value
12006
12023
  );
12007
12024
  }
12008
- if (isNotNil25(ariaLabelForTab)) {
12025
+ if (isNotNil26(ariaLabelForTab)) {
12009
12026
  return /* @__PURE__ */ jsx263(
12010
12027
  TabItem,
12011
12028
  {
@@ -12048,8 +12065,8 @@ Tab.displayName = "Tab";
12048
12065
  // src/components/Tag/Tag.tsx
12049
12066
  import { forwardRef as forwardRef28 } from "react";
12050
12067
  import styled69 from "styled-components";
12051
- import { isNil as isNil16, isNotNil as isNotNil26, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12052
- import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs42 } from "react/jsx-runtime";
12068
+ import { isNil as isNil16, isNotNil as isNotNil27, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12069
+ import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs43 } from "react/jsx-runtime";
12053
12070
  var TagLabel = styled69.a`
12054
12071
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12055
12072
  font-size: var(--wui-typography-label-4-size);
@@ -12141,9 +12158,9 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12141
12158
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12142
12159
  );
12143
12160
  }
12144
- return /* @__PURE__ */ jsxs42(Fragment8, { children: [
12161
+ return /* @__PURE__ */ jsxs43(Fragment8, { children: [
12145
12162
  /* @__PURE__ */ jsx265(TagDivider, { $colorScheme: colorScheme }),
12146
- /* @__PURE__ */ jsxs42(
12163
+ /* @__PURE__ */ jsxs43(
12147
12164
  StyledRemoveButton,
12148
12165
  {
12149
12166
  $colorScheme: colorScheme,
@@ -12165,16 +12182,16 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12165
12182
  };
12166
12183
  var Tag = forwardRef28(
12167
12184
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12168
- const hasIcon = isNotNil26(icon);
12169
- const labelProps = isNotNil26(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12170
- return /* @__PURE__ */ jsxs42(
12185
+ const hasIcon = isNotNil27(icon);
12186
+ const labelProps = isNotNil27(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12187
+ return /* @__PURE__ */ jsxs43(
12171
12188
  StyledTag,
12172
12189
  {
12173
12190
  ref,
12174
12191
  $colorScheme: colorScheme,
12175
12192
  ...props,
12176
12193
  children: [
12177
- /* @__PURE__ */ jsxs42(
12194
+ /* @__PURE__ */ jsxs43(
12178
12195
  TagLabel,
12179
12196
  {
12180
12197
  ...labelProps,
@@ -12202,8 +12219,8 @@ Tag.displayName = "Tag";
12202
12219
 
12203
12220
  // src/components/WistiaLogo/WistiaLogo.tsx
12204
12221
  import styled70, { css as css37 } from "styled-components";
12205
- import { isNotNil as isNotNil27 } from "@wistia/type-guards";
12206
- import { jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
12222
+ import { isNotNil as isNotNil28 } from "@wistia/type-guards";
12223
+ import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
12207
12224
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12208
12225
  if (iconOnly) {
12209
12226
  return /* @__PURE__ */ jsx266(
@@ -12301,7 +12318,7 @@ var WistiaLogo = ({
12301
12318
  };
12302
12319
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12303
12320
  const logotypeColor = VARIANT_COLORS[variant].logotype;
12304
- const Logo = /* @__PURE__ */ jsxs43(
12321
+ const Logo = /* @__PURE__ */ jsxs44(
12305
12322
  WistiaLogoComponent,
12306
12323
  {
12307
12324
  $hoverColor: hoverColor,
@@ -12315,7 +12332,7 @@ var WistiaLogo = ({
12315
12332
  ...props,
12316
12333
  children: [
12317
12334
  /* @__PURE__ */ jsx266("title", { children: title }),
12318
- isNotNil27(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12335
+ isNotNil28(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12319
12336
  renderBrandmark(brandmarkColor, iconOnly),
12320
12337
  renderLogotype(logotypeColor, iconOnly)
12321
12338
  ]
@@ -12327,8 +12344,8 @@ WistiaLogo.displayName = "WistiaLogo";
12327
12344
 
12328
12345
  // src/components/Thumbnail/ThumbnailBadge.tsx
12329
12346
  import styled71 from "styled-components";
12330
- import { isNotNil as isNotNil28 } from "@wistia/type-guards";
12331
- import { jsx as jsx267, jsxs as jsxs44 } from "react/jsx-runtime";
12347
+ import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12348
+ import { jsx as jsx267, jsxs as jsxs45 } from "react/jsx-runtime";
12332
12349
  var StyledThumbnailBadge = styled71.div`
12333
12350
  align-items: center;
12334
12351
  background-color: rgb(0 0 0 / 50%);
@@ -12354,8 +12371,8 @@ var StyledThumbnailBadge = styled71.div`
12354
12371
  }
12355
12372
  `;
12356
12373
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12357
- return /* @__PURE__ */ jsxs44(StyledThumbnailBadge, { ...props, children: [
12358
- isNotNil28(icon) && icon,
12374
+ return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12375
+ isNotNil29(icon) && icon,
12359
12376
  /* @__PURE__ */ jsx267("span", { children: label })
12360
12377
  ] });
12361
12378
  };
@@ -12364,10 +12381,10 @@ ThumbnailBadge.displayName = "ThumbnailBadge";
12364
12381
  // src/components/Thumbnail/Thumbnail.tsx
12365
12382
  import { forwardRef as forwardRef29 } from "react";
12366
12383
  import styled72 from "styled-components";
12367
- import { isNil as isNil17, isNotNil as isNotNil30 } from "@wistia/type-guards";
12384
+ import { isNil as isNil17, isNotNil as isNotNil31 } from "@wistia/type-guards";
12368
12385
 
12369
12386
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12370
- import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12387
+ import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12371
12388
  import { css as css38 } from "styled-components";
12372
12389
  var gradients = {
12373
12390
  defaultDarkOne: css38`
@@ -12495,11 +12512,11 @@ var gradients = {
12495
12512
  };
12496
12513
  var gradientMap = Object.keys(gradients);
12497
12514
  var getBackgroundGradient = (gradientName = void 0) => {
12498
- return isNotNil29(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12515
+ return isNotNil30(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12499
12516
  };
12500
12517
 
12501
12518
  // src/components/Thumbnail/Thumbnail.tsx
12502
- import { jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12519
+ import { jsx as jsx268, jsxs as jsxs46 } from "react/jsx-runtime";
12503
12520
  var WideThumbnailImage = styled72.img`
12504
12521
  height: 100%;
12505
12522
  object-fit: cover;
@@ -12529,7 +12546,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12529
12546
  );
12530
12547
  };
12531
12548
  var StyledThumbnail = styled72.div`
12532
- background-image: ${({ $backgroundUrl }) => isNotNil30($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12549
+ background-image: ${({ $backgroundUrl }) => isNotNil31($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12533
12550
  ${({ $backgroundUrl, $gradientBackground }) => (
12534
12551
  // if we don't have $backgroundUrl show a gradient
12535
12552
  isNil17($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
@@ -12552,8 +12569,8 @@ var Thumbnail = forwardRef29(
12552
12569
  children,
12553
12570
  ...props
12554
12571
  }, ref) => {
12555
- const backgroundUrl = thumbnailImageType === "square" && isNotNil30(thumbnailUrl) ? thumbnailUrl : void 0;
12556
- return /* @__PURE__ */ jsxs45(
12572
+ const backgroundUrl = thumbnailImageType === "square" && isNotNil31(thumbnailUrl) ? thumbnailUrl : void 0;
12573
+ return /* @__PURE__ */ jsxs46(
12557
12574
  StyledThumbnail,
12558
12575
  {
12559
12576
  ref,
@@ -12562,8 +12579,8 @@ var Thumbnail = forwardRef29(
12562
12579
  $width: width,
12563
12580
  ...props,
12564
12581
  children: [
12565
- isNotNil30(children) ? children : null,
12566
- isNotNil30(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12582
+ isNotNil31(children) ? children : null,
12583
+ isNotNil31(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12567
12584
  ThumbnailImage,
12568
12585
  {
12569
12586
  thumbnailImageType,