@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.cjs 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
  *
@@ -7028,7 +7028,7 @@ var Link = (0, import_react15.forwardRef)(
7028
7028
  }, ref) => {
7029
7029
  const inRouterContext = (0, import_react_router_dom.useInRouterContext)();
7030
7030
  const to = generateHref(props.href, type, disabled);
7031
- const handleClick = async (event, routingCallback = null) => {
7031
+ const handleClick = async (event) => {
7032
7032
  if (disabled) {
7033
7033
  event.preventDefault();
7034
7034
  } else if (beforeAction) {
@@ -7040,11 +7040,9 @@ var Link = (0, import_react15.forwardRef)(
7040
7040
  } finally {
7041
7041
  if ((0, import_type_guards14.isFunction)(props.onClick)) {
7042
7042
  props.onClick(event);
7043
- } else if (routingCallback !== null) {
7044
- routingCallback();
7045
- } else if ((0, import_type_guards14.isNotNil)(to)) {
7043
+ }
7044
+ if (!inRouterContext && (0, import_type_guards14.isNotNil)(to)) {
7046
7045
  window.location.assign(to);
7047
- } else {
7048
7046
  }
7049
7047
  }
7050
7048
  } else if ((0, import_type_guards14.isFunction)(props.onClick)) {
@@ -7384,30 +7382,101 @@ ActionButton.displayName = "ActionButton";
7384
7382
 
7385
7383
  // src/components/Avatar/Avatar.tsx
7386
7384
  var import_react18 = require("react");
7387
- var import_type_guards17 = require("@wistia/type-guards");
7388
- var import_styled_components23 = __toESM(require("styled-components"));
7385
+ var import_type_guards18 = require("@wistia/type-guards");
7386
+ var import_styled_components24 = __toESM(require("styled-components"));
7389
7387
 
7390
- // src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
7388
+ // src/components/Avatar/formatNameForDisplay.tsx
7389
+ var import_type_guards16 = require("@wistia/type-guards");
7390
+ var containsEmojiCharacter = (char) => {
7391
+ const emojiRegex = /<a?:.+?:\d{18}>|\p{Extended_Pictographic}/gu;
7392
+ return emojiRegex.test(char);
7393
+ };
7394
+ var formatNameForDisplay = (name) => {
7395
+ if ((0, import_type_guards16.isNil)(name) || !(0, import_type_guards16.isString)(name) || (0, import_type_guards16.isEmptyString)(name) || containsEmojiCharacter(name)) {
7396
+ return "U";
7397
+ }
7398
+ const firstChar = name.trim().substring(0, 1);
7399
+ return firstChar.toUpperCase();
7400
+ };
7401
+
7402
+ // src/components/Image/Image.tsx
7391
7403
  var import_styled_components22 = __toESM(require("styled-components"));
7404
+ var import_type_guards17 = require("@wistia/type-guards");
7392
7405
  var import_jsx_runtime195 = require("react/jsx-runtime");
7393
- var colorSchemeOptions = [
7394
- "inherit",
7395
- "default",
7396
- "info",
7397
- "success",
7398
- "warning",
7399
- "error",
7406
+ var getFillStyle = (fillContainer) => {
7407
+ if (fillContainer === "horizontal") {
7408
+ return "width: 100%;";
7409
+ }
7410
+ if (fillContainer === "vertical") {
7411
+ return "height: 100%;";
7412
+ }
7413
+ if (fillContainer === true) {
7414
+ return `
7415
+ width: 100%;
7416
+ height: 100%;
7417
+ `;
7418
+ }
7419
+ return void 0;
7420
+ };
7421
+ var StyledImage = import_styled_components22.default.img`
7422
+ border-radius: ${({ $borderRadius }) => (0, import_type_guards17.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
7423
+ ${({ $fillContainer }) => getFillStyle($fillContainer)};
7424
+ object-fit: ${({ $objFit }) => $objFit};
7425
+ object-position: ${({ $objPosition }) => $objPosition};
7426
+ `;
7427
+ var Image = ({
7428
+ src,
7429
+ alt,
7430
+ borderRadius,
7431
+ fill: fillContainer = false,
7432
+ fit: objFit,
7433
+ loading = "lazy",
7434
+ position: objPosition,
7435
+ onLoad,
7436
+ onError,
7437
+ ...props
7438
+ }) => /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
7439
+ StyledImage,
7440
+ {
7441
+ $borderRadius: borderRadius,
7442
+ $fillContainer: fillContainer,
7443
+ $objFit: objFit,
7444
+ $objPosition: objPosition,
7445
+ alt,
7446
+ loading,
7447
+ onError,
7448
+ onLoad,
7449
+ src,
7450
+ ...props
7451
+ }
7452
+ );
7453
+ Image.displayName = "Image";
7454
+
7455
+ // src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
7456
+ var import_styled_components23 = __toESM(require("styled-components"));
7457
+ var import_jsx_runtime196 = require("react/jsx-runtime");
7458
+ var defaultColorSchemeOptions = ["default", "inherit"];
7459
+ var semanticColorSchemeOptions = ["error", "info", "success", "warning"];
7460
+ var brandColorSchemeOptions = [
7400
7461
  "blue",
7401
7462
  "green",
7402
7463
  "orange",
7403
7464
  "pink",
7404
7465
  "purple",
7405
- "yellow",
7466
+ "yellow"
7467
+ ];
7468
+ var vendorColorSchemeOptions = [
7406
7469
  "vendor-hubspot",
7407
7470
  "vendor-marketo",
7408
7471
  "vendor-pardot"
7409
7472
  ];
7410
- var StyledColorSchemeWrapper = import_styled_components22.default.div`
7473
+ var colorSchemeOptions = [
7474
+ ...defaultColorSchemeOptions,
7475
+ ...semanticColorSchemeOptions,
7476
+ ...brandColorSchemeOptions,
7477
+ ...vendorColorSchemeOptions
7478
+ ];
7479
+ var StyledColorSchemeWrapper = import_styled_components23.default.div`
7411
7480
  ${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
7412
7481
  `;
7413
7482
  var ColorSchemeWrapper = ({
@@ -7415,7 +7484,7 @@ var ColorSchemeWrapper = ({
7415
7484
  colorScheme = "inherit",
7416
7485
  children,
7417
7486
  ...props
7418
- }) => /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
7487
+ }) => /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7419
7488
  StyledColorSchemeWrapper,
7420
7489
  {
7421
7490
  $colorScheme: colorScheme,
@@ -7426,86 +7495,91 @@ var ColorSchemeWrapper = ({
7426
7495
  );
7427
7496
  ColorSchemeWrapper.displayName = "ColorSchemeWrapper";
7428
7497
 
7429
- // src/components/Avatar/formatNameForDisplay.tsx
7430
- var import_type_guards16 = require("@wistia/type-guards");
7431
- var containsEmojiCharacter = (char) => {
7432
- const emojiRegex = /<a?:.+?:\d{18}>|\p{Extended_Pictographic}/gu;
7433
- return emojiRegex.test(char);
7434
- };
7435
- var formatNameForDisplay = (name) => {
7436
- if ((0, import_type_guards16.isNil)(name) || !(0, import_type_guards16.isString)(name) || (0, import_type_guards16.isEmptyString)(name) || containsEmojiCharacter(name)) {
7437
- return "U";
7438
- }
7439
- const firstChar = name.trim().substring(0, 1);
7440
- return firstChar.toUpperCase();
7441
- };
7442
-
7443
7498
  // src/components/Avatar/Avatar.tsx
7444
- var import_jsx_runtime196 = require("react/jsx-runtime");
7445
- var AvatarImage = import_styled_components23.default.img`
7446
- align-items: center;
7447
- background-color: white;
7448
- border-radius: 50%;
7449
- display: flex;
7450
- height: ${({ $heightAndWidth }) => $heightAndWidth}px;
7451
- justify-content: center;
7452
- object-fit: cover;
7453
- overflow: hidden;
7454
- pointer-events: none;
7455
- user-select: none;
7456
- width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7457
- transition: box-shadow var(--wui-duration-01) var(--wui-motion-ease);
7458
-
7459
- a:hover & {
7460
- box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
7461
- }
7462
-
7463
- a:active & {
7464
- box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
7465
- }
7466
- `;
7499
+ var import_jsx_runtime197 = require("react/jsx-runtime");
7467
7500
  var avatarSizeMap = {
7468
7501
  sm: 16,
7469
7502
  md: 24,
7470
7503
  lg: 32
7471
7504
  };
7472
- var fontSizeScaleMultiplier = 0.55;
7473
- var InitialsContainer = import_styled_components23.default.div`
7505
+ var Initial = ({ initial }) => /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7506
+ "svg",
7507
+ {
7508
+ "data-wui-avatar-initial": true,
7509
+ style: { width: "100%", height: "100%", color: "var(--wui-color-text-on-fill)" },
7510
+ viewBox: "0 0 24 24",
7511
+ xmlns: "http://www.w3.org/2000/svg",
7512
+ children: [
7513
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7514
+ "path",
7515
+ {
7516
+ d: "M0 13.5h24",
7517
+ id: "P"
7518
+ }
7519
+ ),
7520
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("text", { children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7521
+ "textPath",
7522
+ {
7523
+ dominantBaseline: "middle",
7524
+ fill: "currentColor",
7525
+ fontSize: "16px",
7526
+ href: "#P",
7527
+ startOffset: "50%",
7528
+ textAnchor: "middle",
7529
+ children: initial
7530
+ }
7531
+ ) })
7532
+ ]
7533
+ }
7534
+ );
7535
+ var AvatarWrapper = import_styled_components24.default.div`
7474
7536
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7475
- align-items: center;
7476
- background-color: var(--wui-color-bg-fill);
7477
- border: 1px solid var(--wui-color-border);
7478
- border-radius: 50%;
7479
- color: var(--wui-color-text-on-fill);
7480
- display: flex;
7481
- font-size: ${({ $heightAndWidth }) => $heightAndWidth * fontSizeScaleMultiplier}px;
7537
+ width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7482
7538
  height: ${({ $heightAndWidth }) => $heightAndWidth}px;
7483
- justify-content: center;
7539
+ place-content: center;
7484
7540
  overflow: hidden;
7485
- width: ${({ $heightAndWidth }) => $heightAndWidth}px;
7541
+ background-color: var(--wui-color-bg-fill);
7542
+ border-radius: var(--wui-border-radius-rounded);
7543
+ display: grid;
7544
+ user-select: none;
7486
7545
 
7487
- a:hover & {
7488
- box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
7546
+ > * {
7547
+ grid-area: 1 / 1;
7489
7548
  }
7490
7549
 
7491
- a:active & {
7492
- box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
7550
+ --wui-avatar-inset-opacity: 10%;
7551
+
7552
+ outline: 2px solid rgb(0 0 0 / var(--wui-avatar-inset-opacity));
7553
+ outline-offset: -2px;
7554
+
7555
+ [data-wui-avatar-initial] {
7556
+ font-family: var(--wui-typography-family-default);
7557
+ font-weight: var(--wui-typography-weight-label-bold);
7558
+ padding: min(12.5%, 4px);
7559
+ }
7560
+
7561
+ &:only-child {
7562
+ a:hover & {
7563
+ --wui-avatar-inset-opacity: 20%;
7564
+
7565
+ background-color: var(--wui-color-bg-fill-hover);
7566
+ }
7567
+
7568
+ a:active & {
7569
+ --wui-avatar-inset-opacity: 30%;
7570
+
7571
+ background-color: var(--wui-color-bg-fill-active);
7572
+ }
7493
7573
  }
7494
- `;
7495
- var AvatarWrapper = import_styled_components23.default.div`
7496
- max-height: ${({ $maxHeight }) => $maxHeight}px;
7497
7574
  `;
7498
7575
  var chooseColorScheme = (name) => {
7499
- if ((0, import_type_guards17.isNil)(name) || name === "Anonymous") {
7500
- return "default";
7576
+ if ((0, import_type_guards18.isNil)(name) || name === "Anonymous") {
7577
+ return "blue";
7501
7578
  }
7502
- const filteredColors = colorSchemeOptions.filter(
7503
- (color) => color !== "inherit" && color !== "default"
7504
- );
7505
7579
  const multiplier = 31;
7506
7580
  const hashCode = (str) => Array.from(str).reduce((sum, char) => Math.imul(multiplier, sum) + char.charCodeAt(0) | 0, 0);
7507
- const index = Math.abs(hashCode(name)) % filteredColors.length;
7508
- return filteredColors[index] ?? "default";
7581
+ const index = Math.abs(hashCode(name)) % brandColorSchemeOptions.length;
7582
+ return brandColorSchemeOptions[index] ?? "blue";
7509
7583
  };
7510
7584
  var Avatar = ({
7511
7585
  imageUrl,
@@ -7529,29 +7603,26 @@ var Avatar = ({
7529
7603
  };
7530
7604
  const avatarSize = heightAndWidth ?? avatarSizeMap[size];
7531
7605
  const avatarColor = (0, import_react18.useMemo)(() => chooseColorScheme(name), [name]);
7532
- const showInitials = (0, import_type_guards17.isNil)(imageUrl) || imageLoadState === "error";
7533
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7606
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7534
7607
  AvatarWrapper,
7535
7608
  {
7609
+ $colorScheme: avatarColor,
7610
+ $heightAndWidth: avatarSize,
7536
7611
  ...props,
7537
- $maxHeight: avatarSize,
7538
- children: showInitials ? /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7539
- InitialsContainer,
7540
- {
7541
- $colorScheme: avatarColor,
7542
- $heightAndWidth: avatarSize,
7543
- children: formatNameForDisplay(name)
7544
- }
7545
- ) : /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7546
- AvatarImage,
7547
- {
7548
- $heightAndWidth: avatarSize,
7549
- alt: name ?? "Unavailable",
7550
- onError: handleImageLoadError,
7551
- onLoad: handleImageLoad,
7552
- src: imageUrl
7553
- }
7554
- )
7612
+ children: [
7613
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Initial, { initial: formatNameForDisplay(name) }),
7614
+ (0, import_type_guards18.isNotNil)(imageUrl) && imageLoadState !== "error" && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7615
+ Image,
7616
+ {
7617
+ alt: (0, import_type_guards18.isNotNil)(name) ? name : "",
7618
+ "data-state": imageLoadState,
7619
+ fit: "cover",
7620
+ onError: handleImageLoadError,
7621
+ onLoad: handleImageLoad,
7622
+ src: imageUrl
7623
+ }
7624
+ )
7625
+ ]
7555
7626
  }
7556
7627
  );
7557
7628
  };
@@ -7559,10 +7630,10 @@ Avatar.displayName = "Avatar";
7559
7630
 
7560
7631
  // src/components/Badge/Badge.tsx
7561
7632
  var import_react19 = require("react");
7562
- var import_styled_components24 = __toESM(require("styled-components"));
7563
- var import_type_guards18 = require("@wistia/type-guards");
7564
- var import_jsx_runtime197 = require("react/jsx-runtime");
7565
- var StyledBadge = import_styled_components24.default.div`
7633
+ var import_styled_components25 = __toESM(require("styled-components"));
7634
+ var import_type_guards19 = require("@wistia/type-guards");
7635
+ var import_jsx_runtime198 = require("react/jsx-runtime");
7636
+ var StyledBadge = import_styled_components25.default.div`
7566
7637
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7567
7638
  align-items: center;
7568
7639
  background-color: var(--wui-color-bg-surface-secondary);
@@ -7584,8 +7655,8 @@ var StyledBadge = import_styled_components24.default.div`
7584
7655
  `;
7585
7656
  var Badge = (0, import_react19.forwardRef)(
7586
7657
  ({ colorScheme = "inherit", label, icon, ...props }, ref) => {
7587
- const hasIcon = (0, import_type_guards18.isNotNil)(icon);
7588
- return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7658
+ const hasIcon = (0, import_type_guards19.isNotNil)(icon);
7659
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)(
7589
7660
  StyledBadge,
7590
7661
  {
7591
7662
  ref,
@@ -7594,7 +7665,7 @@ var Badge = (0, import_react19.forwardRef)(
7594
7665
  $hasIcon: hasIcon,
7595
7666
  children: [
7596
7667
  hasIcon ? icon : null,
7597
- /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("span", { children: label })
7668
+ /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("span", { children: label })
7598
7669
  ]
7599
7670
  }
7600
7671
  );
@@ -7604,8 +7675,8 @@ Badge.displayName = "Badge";
7604
7675
 
7605
7676
  // src/components/Box/Box.tsx
7606
7677
  var import_react20 = require("react");
7607
- var import_styled_components25 = __toESM(require("styled-components"));
7608
- var import_type_guards19 = require("@wistia/type-guards");
7678
+ var import_styled_components26 = __toESM(require("styled-components"));
7679
+ var import_type_guards20 = require("@wistia/type-guards");
7609
7680
 
7610
7681
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
7611
7682
  var makePolymorphic = (component) => {
@@ -7613,11 +7684,11 @@ var makePolymorphic = (component) => {
7613
7684
  };
7614
7685
 
7615
7686
  // src/components/Box/Box.tsx
7616
- var import_jsx_runtime198 = require("react/jsx-runtime");
7687
+ var import_jsx_runtime199 = require("react/jsx-runtime");
7617
7688
  var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
7618
7689
  var getGapStyle = (gap) => {
7619
- if ((0, import_type_guards19.isNotNil)(gap)) {
7620
- if ((0, import_type_guards19.isRecord)(gap)) {
7690
+ if ((0, import_type_guards20.isNotNil)(gap)) {
7691
+ if ((0, import_type_guards20.isRecord)(gap)) {
7621
7692
  return Object.entries(gap).map(([key, value]) => {
7622
7693
  return `${key}-gap: var(--wui-${value})};`;
7623
7694
  }).join("");
@@ -7626,7 +7697,7 @@ var getGapStyle = (gap) => {
7626
7697
  }
7627
7698
  return void 0;
7628
7699
  };
7629
- var getFillStyle = (fill) => {
7700
+ var getFillStyle2 = (fill) => {
7630
7701
  if (fill === "horizontal") {
7631
7702
  return "width: 100%;";
7632
7703
  }
@@ -7661,41 +7732,41 @@ var getFlexStyle = (flexMode) => {
7661
7732
  switch (flexMode) {
7662
7733
  // grows to fill space, won't shrink, starts at 0
7663
7734
  case "grow":
7664
- return import_styled_components25.css`
7735
+ return import_styled_components26.css`
7665
7736
  flex: 1 0 0;
7666
7737
  `;
7667
7738
  // default behavior, can shrink but won't grow
7668
7739
  case "initial":
7669
- return import_styled_components25.css`
7740
+ return import_styled_components26.css`
7670
7741
  flex: 0 1 auto;
7671
7742
  `;
7672
7743
  // equal distribution of space
7673
7744
  case "equal":
7674
- return import_styled_components25.css`
7745
+ return import_styled_components26.css`
7675
7746
  flex: 1;
7676
7747
  `;
7677
7748
  // won't grow or shrink
7678
7749
  case "rigid":
7679
- return import_styled_components25.css`
7750
+ return import_styled_components26.css`
7680
7751
  flex: 0 0 auto;
7681
7752
  `;
7682
7753
  // can grow and shrink from content size
7683
7754
  case "fluid":
7684
- return import_styled_components25.css`
7755
+ return import_styled_components26.css`
7685
7756
  flex: 1 1 auto;
7686
7757
  `;
7687
7758
  default:
7688
7759
  return null;
7689
7760
  }
7690
7761
  };
7691
- var StyledBoxComponent = import_styled_components25.default.div`
7762
+ var StyledBoxComponent = import_styled_components26.default.div`
7692
7763
  align-content: ${({ $alignContent }) => $alignContent};
7693
7764
  align-items: ${({ $alignItems }) => $alignItems};
7694
7765
  align-self: ${({ $alignSelf }) => $alignSelf ?? null};
7695
- display: ${({ $inline }) => (0, import_type_guards19.isNotNil)($inline) && $inline ? "inline-flex" : "flex"};
7696
- flex-basis: ${({ $basis }) => (0, import_type_guards19.isNotNil)($basis) ? $basis : null};
7766
+ display: ${({ $inline }) => (0, import_type_guards20.isNotNil)($inline) && $inline ? "inline-flex" : "flex"};
7767
+ flex-basis: ${({ $basis }) => (0, import_type_guards20.isNotNil)($basis) ? $basis : null};
7697
7768
  flex-direction: ${({ $flexDirection }) => $flexDirection};
7698
- ${({ $fillBox: fill }) => getFillStyle(fill)};
7769
+ ${({ $fillBox: fill }) => getFillStyle2(fill)};
7699
7770
  ${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
7700
7771
  ${({ $flexMode }) => getFlexStyle($flexMode)};
7701
7772
  ${({ $gap }) => getGapStyle($gap)};
@@ -7703,17 +7774,17 @@ var StyledBoxComponent = import_styled_components25.default.div`
7703
7774
  width: ${({ $width }) => $width ?? null};
7704
7775
 
7705
7776
  /* Box children styles */
7706
- flex-grow: ${({ $grow }) => (0, import_type_guards19.isNotNil)($grow) ? $grow : null};
7707
- flex-shrink: ${({ $shrink }) => (0, import_type_guards19.isNotNil)($shrink) ? $shrink : null};
7777
+ flex-grow: ${({ $grow }) => (0, import_type_guards20.isNotNil)($grow) ? $grow : null};
7778
+ flex-shrink: ${({ $shrink }) => (0, import_type_guards20.isNotNil)($shrink) ? $shrink : null};
7708
7779
  flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
7709
7780
  justify-content: ${({ $justifyContent }) => $justifyContent};
7710
- order: ${({ $order }) => (0, import_type_guards19.isNotNil)($order) ? $order : null};
7781
+ order: ${({ $order }) => (0, import_type_guards20.isNotNil)($order) ? $order : null};
7711
7782
  `;
7712
7783
  var wrapChildren = (children) => {
7713
- if ((0, import_type_guards19.isNotNil)(children)) {
7784
+ if ((0, import_type_guards20.isNotNil)(children)) {
7714
7785
  if (typeof children === "object" && isDev) {
7715
7786
  return import_react20.Children.map(children, (child) => {
7716
- if ((0, import_type_guards19.isNil)(child)) return null;
7787
+ if ((0, import_type_guards20.isNil)(child)) return null;
7717
7788
  const elementParams = {};
7718
7789
  if (child.type?.displayName === "Box" || child.type?.displayName === "Box_UI") {
7719
7790
  elementParams.hasBoxParent = true;
@@ -7751,7 +7822,7 @@ var BoxComponent = (0, import_react20.forwardRef)(
7751
7822
  flexMode,
7752
7823
  ...props
7753
7824
  }, ref) => {
7754
- if ((0, import_type_guards19.isNotUndefined)(height)) {
7825
+ if ((0, import_type_guards20.isNotUndefined)(height)) {
7755
7826
  if (fill === true || fill === "vertical") {
7756
7827
  throw new Error('Cannot use height prop with fill="vertical" or fill={true}');
7757
7828
  }
@@ -7761,7 +7832,7 @@ var BoxComponent = (0, import_react20.forwardRef)(
7761
7832
  );
7762
7833
  }
7763
7834
  }
7764
- if ((0, import_type_guards19.isNotUndefined)(width)) {
7835
+ if ((0, import_type_guards20.isNotUndefined)(width)) {
7765
7836
  if (fill === true || fill === "horizontal") {
7766
7837
  throw new Error('Cannot use width prop with fill="horizontal" or fill={true}');
7767
7838
  }
@@ -7771,7 +7842,7 @@ var BoxComponent = (0, import_react20.forwardRef)(
7771
7842
  );
7772
7843
  }
7773
7844
  }
7774
- return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
7845
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7775
7846
  StyledBoxComponent,
7776
7847
  {
7777
7848
  ref,
@@ -7804,9 +7875,9 @@ var Box = makePolymorphic(BoxComponent);
7804
7875
 
7805
7876
  // src/components/Breadcrumbs/Breadcrumbs.tsx
7806
7877
  var import_react21 = require("react");
7807
- var import_styled_components26 = __toESM(require("styled-components"));
7808
- var import_jsx_runtime199 = require("react/jsx-runtime");
7809
- var StyledBreadcrumbs = import_styled_components26.default.nav`
7878
+ var import_styled_components27 = __toESM(require("styled-components"));
7879
+ var import_jsx_runtime200 = require("react/jsx-runtime");
7880
+ var StyledBreadcrumbs = import_styled_components27.default.nav`
7810
7881
  display: flex;
7811
7882
  align-items: center;
7812
7883
  gap: var(--wui-space-01);
@@ -7824,8 +7895,8 @@ var Breadcrumbs = ({ children, ...props }) => {
7824
7895
  crumbs = crumbs.slice(-1);
7825
7896
  }
7826
7897
  const crumbMaxWidth = Math.floor(100 / crumbs.length) - BUFFER_WIDTH;
7827
- return /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)(import_jsx_runtime199.Fragment, { children: [
7828
- /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("style", { type: "text/css", children: `
7898
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(import_jsx_runtime200.Fragment, { children: [
7899
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("style", { type: "text/css", children: `
7829
7900
  [data-wui-breadcrumbs] {
7830
7901
  container-type: inline-size;
7831
7902
  container-name: breadcrumbs;
@@ -7837,7 +7908,7 @@ var Breadcrumbs = ({ children, ...props }) => {
7837
7908
  }
7838
7909
  }
7839
7910
  ` }),
7840
- /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7911
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7841
7912
  StyledBreadcrumbs,
7842
7913
  {
7843
7914
  "aria-label": "Breadcrumbs",
@@ -7851,9 +7922,9 @@ var Breadcrumbs = ({ children, ...props }) => {
7851
7922
  Breadcrumbs.displayName = "Breadcrumbs";
7852
7923
 
7853
7924
  // src/components/Breadcrumbs/Breadcrumb.tsx
7854
- var import_styled_components27 = __toESM(require("styled-components"));
7855
- var import_jsx_runtime200 = require("react/jsx-runtime");
7856
- var BreadcrumbContent = import_styled_components27.default.span`
7925
+ var import_styled_components28 = __toESM(require("styled-components"));
7926
+ var import_jsx_runtime201 = require("react/jsx-runtime");
7927
+ var BreadcrumbContent = import_styled_components28.default.span`
7857
7928
  overflow: hidden;
7858
7929
  white-space: nowrap;
7859
7930
  display: block;
@@ -7862,18 +7933,18 @@ var BreadcrumbContent = import_styled_components27.default.span`
7862
7933
  flex: 0;
7863
7934
  `;
7864
7935
  var Breadcrumb = ({ icon, href, children, ...props }) => {
7865
- return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(import_jsx_runtime200.Fragment, { children: [
7866
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7936
+ return /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(import_jsx_runtime201.Fragment, { children: [
7937
+ /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
7867
7938
  Button,
7868
7939
  {
7869
7940
  ...props,
7870
7941
  href,
7871
7942
  leftIcon: icon,
7872
7943
  variant: "ghost",
7873
- children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
7944
+ children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
7874
7945
  }
7875
7946
  ),
7876
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("div", { "data-wui-breadcrumb-divider": true, children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7947
+ /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { "data-wui-breadcrumb-divider": true, children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
7877
7948
  Icon,
7878
7949
  {
7879
7950
  size: "sm",
@@ -7885,9 +7956,9 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
7885
7956
  };
7886
7957
 
7887
7958
  // src/components/ButtonGroup/ButtonGroup.tsx
7888
- var import_styled_components28 = __toESM(require("styled-components"));
7889
- var import_type_guards20 = require("@wistia/type-guards");
7890
- var import_jsx_runtime201 = require("react/jsx-runtime");
7959
+ var import_styled_components29 = __toESM(require("styled-components"));
7960
+ var import_type_guards21 = require("@wistia/type-guards");
7961
+ var import_jsx_runtime202 = require("react/jsx-runtime");
7891
7962
  var getAlignment = (align) => {
7892
7963
  if (align === "center") {
7893
7964
  return "center";
@@ -7900,7 +7971,7 @@ var getAlignment = (align) => {
7900
7971
  }
7901
7972
  return "flex-start";
7902
7973
  };
7903
- var ButtonGroupComponent = import_styled_components28.default.div`
7974
+ var ButtonGroupComponent = import_styled_components29.default.div`
7904
7975
  display: flex;
7905
7976
 
7906
7977
  /* this helps ensure that primary buttons appear at the top of the column */
@@ -7932,10 +8003,10 @@ var ButtonGroup = ({
7932
8003
  collapseOnSmallScreens = true,
7933
8004
  ...props
7934
8005
  }) => {
7935
- if ((0, import_type_guards20.isNil)(children)) {
8006
+ if ((0, import_type_guards21.isNil)(children)) {
7936
8007
  return null;
7937
8008
  }
7938
- return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
8009
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7939
8010
  ButtonGroupComponent,
7940
8011
  {
7941
8012
  $align: align,
@@ -7949,9 +8020,9 @@ var ButtonGroup = ({
7949
8020
  ButtonGroup.displayName = "ButtonGroup";
7950
8021
 
7951
8022
  // src/components/Card/Card.tsx
7952
- var import_styled_components29 = __toESM(require("styled-components"));
7953
- var import_jsx_runtime202 = require("react/jsx-runtime");
7954
- var StyledCard = (0, import_styled_components29.default)(Box)`
8023
+ var import_styled_components30 = __toESM(require("styled-components"));
8024
+ var import_jsx_runtime203 = require("react/jsx-runtime");
8025
+ var StyledCard = (0, import_styled_components30.default)(Box)`
7955
8026
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7956
8027
  box-sizing: border-box;
7957
8028
  padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
@@ -7988,7 +8059,7 @@ var Card = ({
7988
8059
  height,
7989
8060
  width,
7990
8061
  ...props
7991
- }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
8062
+ }) => /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
7992
8063
  StyledCard,
7993
8064
  {
7994
8065
  $backgroundColor: prominenceMap[prominence].backgroundColor,
@@ -8007,9 +8078,9 @@ Card.displayName = "Card";
8007
8078
 
8008
8079
  // src/components/Center/Center.tsx
8009
8080
  var import_react22 = require("react");
8010
- var import_styled_components30 = __toESM(require("styled-components"));
8011
- var import_jsx_runtime203 = require("react/jsx-runtime");
8012
- var StyledCenter = import_styled_components30.default.div`
8081
+ var import_styled_components31 = __toESM(require("styled-components"));
8082
+ var import_jsx_runtime204 = require("react/jsx-runtime");
8083
+ var StyledCenter = import_styled_components31.default.div`
8013
8084
  box-sizing: border-box;
8014
8085
  margin-left: auto;
8015
8086
  margin-right: auto;
@@ -8022,7 +8093,7 @@ var StyledCenter = import_styled_components30.default.div`
8022
8093
  `}
8023
8094
  `;
8024
8095
  var Center = (0, import_react22.forwardRef)(
8025
- ({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
8096
+ ({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
8026
8097
  StyledCenter,
8027
8098
  {
8028
8099
  ref,
@@ -8038,21 +8109,21 @@ Center.displayName = "Center";
8038
8109
 
8039
8110
  // src/components/Checkbox/Checkbox.tsx
8040
8111
  var import_react23 = require("react");
8041
- var import_styled_components34 = __toESM(require("styled-components"));
8042
- var import_type_guards24 = require("@wistia/type-guards");
8112
+ var import_styled_components35 = __toESM(require("styled-components"));
8113
+ var import_type_guards25 = require("@wistia/type-guards");
8043
8114
 
8044
8115
  // src/private/components/FormControlLabel/FormControlLabel.tsx
8045
- var import_styled_components33 = __toESM(require("styled-components"));
8046
- var import_type_guards23 = require("@wistia/type-guards");
8116
+ var import_styled_components34 = __toESM(require("styled-components"));
8117
+ var import_type_guards24 = require("@wistia/type-guards");
8047
8118
 
8048
8119
  // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
8049
- var import_styled_components31 = __toESM(require("styled-components"));
8050
- var import_type_guards21 = require("@wistia/type-guards");
8051
- var import_jsx_runtime204 = require("react/jsx-runtime");
8052
- var disabledStyle = import_styled_components31.css`
8120
+ var import_styled_components32 = __toESM(require("styled-components"));
8121
+ var import_type_guards22 = require("@wistia/type-guards");
8122
+ var import_jsx_runtime205 = require("react/jsx-runtime");
8123
+ var disabledStyle = import_styled_components32.css`
8053
8124
  color: var(--wui-color-text-disabled);
8054
8125
  `;
8055
- var StyledFormControlLabelDescription = import_styled_components31.default.div`
8126
+ var StyledFormControlLabelDescription = import_styled_components32.default.div`
8056
8127
  color: var(--wui-color-text-secondary);
8057
8128
  display: block;
8058
8129
  font-size: var(--wui-typography-body-4-size);
@@ -8067,10 +8138,10 @@ var FormControlLabelDescription = ({
8067
8138
  disabled = false,
8068
8139
  ...props
8069
8140
  }) => {
8070
- if ((0, import_type_guards21.isNil)(children)) {
8141
+ if ((0, import_type_guards22.isNil)(children)) {
8071
8142
  return null;
8072
8143
  }
8073
- return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
8144
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
8074
8145
  StyledFormControlLabelDescription,
8075
8146
  {
8076
8147
  ...props,
@@ -8082,11 +8153,11 @@ var FormControlLabelDescription = ({
8082
8153
  FormControlLabelDescription.displayName = "FormControlLabelDescription";
8083
8154
 
8084
8155
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
8085
- var import_styled_components32 = __toESM(require("styled-components"));
8086
- var import_type_guards22 = require("@wistia/type-guards");
8087
- var import_jsx_runtime205 = require("react/jsx-runtime");
8088
- var VisuallyHidden = import_styled_components32.default.div({ ...visuallyHiddenStyle });
8089
- var VisuallyHiddenButFocusable = import_styled_components32.default.div({
8156
+ var import_styled_components33 = __toESM(require("styled-components"));
8157
+ var import_type_guards23 = require("@wistia/type-guards");
8158
+ var import_jsx_runtime206 = require("react/jsx-runtime");
8159
+ var VisuallyHidden = import_styled_components33.default.div({ ...visuallyHiddenStyle });
8160
+ var VisuallyHiddenButFocusable = import_styled_components33.default.div({
8090
8161
  "&:not(:focus-within)": visuallyHiddenStyle
8091
8162
  });
8092
8163
  var ScreenReaderOnly = ({
@@ -8095,25 +8166,25 @@ var ScreenReaderOnly = ({
8095
8166
  focusable = false,
8096
8167
  ...props
8097
8168
  }) => {
8098
- const accessibleText = (0, import_type_guards22.isNotNil)(text) ? text : children;
8169
+ const accessibleText = (0, import_type_guards23.isNotNil)(text) ? text : children;
8099
8170
  if (focusable) {
8100
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
8171
+ return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
8101
8172
  }
8102
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(VisuallyHidden, { ...props, children: accessibleText });
8173
+ return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(VisuallyHidden, { ...props, children: accessibleText });
8103
8174
  };
8104
8175
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
8105
8176
 
8106
8177
  // src/private/components/FormControlLabel/FormControlLabel.tsx
8107
- var import_jsx_runtime206 = require("react/jsx-runtime");
8108
- var disabledStyle2 = import_styled_components33.css`
8178
+ var import_jsx_runtime207 = require("react/jsx-runtime");
8179
+ var disabledStyle2 = import_styled_components34.css`
8109
8180
  cursor: not-allowed;
8110
8181
  color: var(--wui-color-text-disabled);
8111
8182
  `;
8112
- var StyledLabelWrapper = import_styled_components33.default.div`
8183
+ var StyledLabelWrapper = import_styled_components34.default.div`
8113
8184
  display: flex;
8114
8185
  flex-direction: column;
8115
8186
  `;
8116
- var StyledFormControlLabel = import_styled_components33.default.label`
8187
+ var StyledFormControlLabel = import_styled_components34.default.label`
8117
8188
  cursor: pointer;
8118
8189
  display: flex;
8119
8190
  align-items: center;
@@ -8135,21 +8206,21 @@ var FormControlLabel = ({
8135
8206
  hideLabel = false,
8136
8207
  ...props
8137
8208
  }) => {
8138
- if ((0, import_type_guards23.isNil)(label)) {
8209
+ if ((0, import_type_guards24.isNil)(label)) {
8139
8210
  return null;
8140
8211
  }
8141
- const labelContent = hideLabel ? /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(StyledLabelWrapper, { children: [
8212
+ const labelContent = hideLabel ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(StyledLabelWrapper, { children: [
8142
8213
  label,
8143
- /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(FormControlLabelDescription, { children: description })
8214
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(FormControlLabelDescription, { children: description })
8144
8215
  ] });
8145
- return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
8216
+ return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
8146
8217
  StyledFormControlLabel,
8147
8218
  {
8148
8219
  $disabled: disabled,
8149
8220
  htmlFor,
8150
8221
  ...props,
8151
8222
  children: [
8152
- (0, import_type_guards23.isNotNil)(controlSlot) ? controlSlot : null,
8223
+ (0, import_type_guards24.isNotNil)(controlSlot) ? controlSlot : null,
8153
8224
  labelContent
8154
8225
  ]
8155
8226
  }
@@ -8158,8 +8229,8 @@ var FormControlLabel = ({
8158
8229
  FormControlLabel.displayName = "FormControlLabel";
8159
8230
 
8160
8231
  // src/components/Checkbox/Checkbox.tsx
8161
- var import_jsx_runtime207 = require("react/jsx-runtime");
8162
- var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8232
+ var import_jsx_runtime208 = require("react/jsx-runtime");
8233
+ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8163
8234
  "svg",
8164
8235
  {
8165
8236
  fill: "inherit",
@@ -8167,7 +8238,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8167
8238
  viewBox: "0 0 10 8",
8168
8239
  width: "10",
8169
8240
  xmlns: "http://www.w3.org/2000/svg",
8170
- children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8241
+ children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8171
8242
  "path",
8172
8243
  {
8173
8244
  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",
@@ -8176,7 +8247,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8176
8247
  )
8177
8248
  }
8178
8249
  );
8179
- var sizeSmall = import_styled_components34.css`
8250
+ var sizeSmall = import_styled_components35.css`
8180
8251
  width: 14px;
8181
8252
  height: 14px;
8182
8253
  min-width: 14px;
@@ -8187,7 +8258,7 @@ var sizeSmall = import_styled_components34.css`
8187
8258
  height: 7px;
8188
8259
  }
8189
8260
  `;
8190
- var sizeMedium = import_styled_components34.css`
8261
+ var sizeMedium = import_styled_components35.css`
8191
8262
  width: 16px;
8192
8263
  height: 16px;
8193
8264
  min-width: 16px;
@@ -8198,7 +8269,7 @@ var sizeMedium = import_styled_components34.css`
8198
8269
  height: 9px;
8199
8270
  }
8200
8271
  `;
8201
- var sizeLarge = import_styled_components34.css`
8272
+ var sizeLarge = import_styled_components35.css`
8202
8273
  width: 20px;
8203
8274
  height: 20px;
8204
8275
  min-width: 20px;
@@ -8214,14 +8285,14 @@ var getSizeCss = (size) => {
8214
8285
  if (size === "lg") return sizeLarge;
8215
8286
  return sizeMedium;
8216
8287
  };
8217
- var StyledCheckboxWrapper = import_styled_components34.default.div`
8288
+ var StyledCheckboxWrapper = import_styled_components35.default.div`
8218
8289
  display: flex;
8219
8290
  margin: 0;
8220
8291
 
8221
8292
  /* TODO this solves a problem but potentially causes and a11y issue */
8222
8293
  user-select: none;
8223
8294
  `;
8224
- var StyledCheckboxInput = import_styled_components34.default.div`
8295
+ var StyledCheckboxInput = import_styled_components35.default.div`
8225
8296
  ${({ $size }) => getSizeCss($size)}
8226
8297
  line-height: 0;
8227
8298
  margin: 0;
@@ -8243,7 +8314,7 @@ var StyledCheckboxInput = import_styled_components34.default.div`
8243
8314
  }
8244
8315
  }
8245
8316
  `;
8246
- var StyledHiddenCheckboxInput = import_styled_components34.default.input`
8317
+ var StyledHiddenCheckboxInput = import_styled_components35.default.input`
8247
8318
  ${visuallyHiddenStyle}
8248
8319
 
8249
8320
  /* toggles display of faux-input background-color */
@@ -8273,9 +8344,9 @@ var Checkbox = (0, import_react23.forwardRef)(
8273
8344
  ...props
8274
8345
  }, ref) => {
8275
8346
  const generatedId = (0, import_react23.useId)();
8276
- const computedId = (0, import_type_guards24.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8277
- return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8278
- /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8347
+ const computedId = (0, import_type_guards25.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8348
+ return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8349
+ /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8279
8350
  StyledHiddenCheckboxInput,
8280
8351
  {
8281
8352
  ...props,
@@ -8290,16 +8361,16 @@ var Checkbox = (0, import_react23.forwardRef)(
8290
8361
  value
8291
8362
  }
8292
8363
  ),
8293
- /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8364
+ /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8294
8365
  FormControlLabel,
8295
8366
  {
8296
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8367
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8297
8368
  StyledCheckboxInput,
8298
8369
  {
8299
8370
  $disabled: disabled,
8300
8371
  $size: size,
8301
8372
  "data-wui-faux-input": "true",
8302
- children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(CheckIcon, {})
8373
+ children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(CheckIcon, {})
8303
8374
  }
8304
8375
  ),
8305
8376
  description,
@@ -8351,10 +8422,10 @@ ClickRegion.displayName = "ClickRegion";
8351
8422
 
8352
8423
  // src/components/Collapsible/Collapsible.tsx
8353
8424
  var import_react_collapsible = require("@radix-ui/react-collapsible");
8354
- var import_type_guards25 = require("@wistia/type-guards");
8355
- var import_styled_components35 = __toESM(require("styled-components"));
8356
- var import_jsx_runtime208 = require("react/jsx-runtime");
8357
- var StyledRoot = (0, import_styled_components35.default)(import_react_collapsible.Root)`
8425
+ var import_type_guards26 = require("@wistia/type-guards");
8426
+ var import_styled_components36 = __toESM(require("styled-components"));
8427
+ var import_jsx_runtime209 = require("react/jsx-runtime");
8428
+ var StyledRoot = (0, import_styled_components36.default)(import_react_collapsible.Root)`
8358
8429
  &[data-state='closed'] [data-wui-collapsible-content] {
8359
8430
  display: -webkit-box;
8360
8431
  -webkit-box-orient: vertical;
@@ -8368,84 +8439,84 @@ var Collapsible = ({
8368
8439
  onOpenChange
8369
8440
  }) => {
8370
8441
  const controlProps = {
8371
- ...(0, import_type_guards25.isNotNil)(onOpenChange) && (0, import_type_guards25.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
8442
+ ...(0, import_type_guards26.isNotNil)(onOpenChange) && (0, import_type_guards26.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
8372
8443
  };
8373
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(StyledRoot, { ...controlProps, children });
8444
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(StyledRoot, { ...controlProps, children });
8374
8445
  };
8375
8446
  Collapsible.displayName = "Collapsible";
8376
8447
 
8377
8448
  // src/components/Collapsible/CollapsibleTrigger.tsx
8378
8449
  var import_react25 = require("react");
8379
8450
  var import_react_collapsible2 = require("@radix-ui/react-collapsible");
8380
- var import_jsx_runtime209 = require("react/jsx-runtime");
8451
+ var import_jsx_runtime210 = require("react/jsx-runtime");
8381
8452
  var CollapsibleTrigger = ({ children }) => {
8382
8453
  import_react25.Children.only(children);
8383
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8454
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8384
8455
  };
8385
8456
 
8386
8457
  // src/components/Collapsible/CollapsibleContent.tsx
8387
- var import_styled_components36 = __toESM(require("styled-components"));
8458
+ var import_styled_components37 = __toESM(require("styled-components"));
8388
8459
  var import_react_collapsible3 = require("@radix-ui/react-collapsible");
8389
- var import_type_guards26 = require("@wistia/type-guards");
8390
- var import_jsx_runtime210 = require("react/jsx-runtime");
8391
- var ClampedContent = import_styled_components36.default.div.attrs({ "data-wui-collapsible-content": true })`
8460
+ var import_type_guards27 = require("@wistia/type-guards");
8461
+ var import_jsx_runtime211 = require("react/jsx-runtime");
8462
+ var ClampedContent = import_styled_components37.default.div.attrs({ "data-wui-collapsible-content": true })`
8392
8463
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
8393
8464
  `;
8394
8465
  var CollapsibleContent = ({ clamp, children }) => {
8395
- if ((0, import_type_guards26.isNotUndefined)(clamp)) {
8396
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(ClampedContent, { $clamp: clamp, children });
8466
+ if ((0, import_type_guards27.isNotUndefined)(clamp)) {
8467
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(ClampedContent, { $clamp: clamp, children });
8397
8468
  }
8398
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(import_jsx_runtime210.Fragment, { children: [
8469
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(import_jsx_runtime211.Fragment, { children: [
8399
8470
  children,
8400
8471
  " "
8401
8472
  ] }) });
8402
8473
  };
8403
8474
 
8404
8475
  // src/components/DataCards/DataCard.tsx
8405
- var import_styled_components38 = __toESM(require("styled-components"));
8406
- var import_type_guards27 = require("@wistia/type-guards");
8476
+ var import_styled_components39 = __toESM(require("styled-components"));
8477
+ var import_type_guards28 = require("@wistia/type-guards");
8407
8478
 
8408
8479
  // src/components/Heading/Heading.tsx
8409
8480
  var import_react26 = require("react");
8410
- var import_styled_components37 = __toESM(require("styled-components"));
8411
- var import_jsx_runtime211 = require("react/jsx-runtime");
8412
- var heroStyle = import_styled_components37.css`
8481
+ var import_styled_components38 = __toESM(require("styled-components"));
8482
+ var import_jsx_runtime212 = require("react/jsx-runtime");
8483
+ var heroStyle = import_styled_components38.css`
8413
8484
  --font-family: var(--wui-typography-heading-hero-family);
8414
8485
  --font-size: var(--wui-typography-heading-hero-size);
8415
8486
  --font-weight: var(--wui-typography-heading-hero-weight);
8416
8487
  --line-height: var(--wui-typography-heading-hero-line-height);
8417
8488
  `;
8418
- var heading1TextStyle = import_styled_components37.css`
8489
+ var heading1TextStyle = import_styled_components38.css`
8419
8490
  --font-family: var(--wui-typography-heading-1-family);
8420
8491
  --font-size: var(--wui-typography-heading-1-size);
8421
8492
  --font-weight: var(--wui-typography-heading-1-weight);
8422
8493
  --line-height: var(--wui-typography-heading-1-line-height);
8423
8494
  `;
8424
- var heading2TextStyle = import_styled_components37.css`
8495
+ var heading2TextStyle = import_styled_components38.css`
8425
8496
  --font-family: var(--wui-typography-heading-2-family);
8426
8497
  --font-size: var(--wui-typography-heading-2-size);
8427
8498
  --font-weight: var(--wui-typography-heading-2-weight);
8428
8499
  --line-height: var(--wui-typography-heading-2-line-height);
8429
8500
  `;
8430
- var heading3TextStyle = import_styled_components37.css`
8501
+ var heading3TextStyle = import_styled_components38.css`
8431
8502
  --font-family: var(--wui-typography-heading-3-family);
8432
8503
  --font-size: var(--wui-typography-heading-3-size);
8433
8504
  --font-weight: var(--wui-typography-heading-3-weight);
8434
8505
  --line-height: var(--wui-typography-heading-3-line-height);
8435
8506
  `;
8436
- var heading4TextStyle = import_styled_components37.css`
8507
+ var heading4TextStyle = import_styled_components38.css`
8437
8508
  --font-family: var(--wui-typography-heading-4-family);
8438
8509
  --font-size: var(--wui-typography-heading-4-size);
8439
8510
  --font-weight: var(--wui-typography-heading-4-weight);
8440
8511
  --line-height: var(--wui-typography-heading-4-line-height);
8441
8512
  `;
8442
- var heading5TextStyle = import_styled_components37.css`
8513
+ var heading5TextStyle = import_styled_components38.css`
8443
8514
  --font-family: var(--wui-typography-heading-5-family);
8444
8515
  --font-size: var(--wui-typography-heading-5-size);
8445
8516
  --font-weight: var(--wui-typography-heading-5-weight);
8446
8517
  --line-height: var(--wui-typography-heading-5-line-height);
8447
8518
  `;
8448
- var heading6TextStyle = import_styled_components37.css`
8519
+ var heading6TextStyle = import_styled_components38.css`
8449
8520
  --font-family: var(--wui-typography-heading-6-family);
8450
8521
  --font-size: var(--wui-typography-heading-6-size);
8451
8522
  --font-weight: var(--wui-typography-heading-6-weight);
@@ -8461,7 +8532,7 @@ var variantStyleMap = {
8461
8532
  heading6: heading6TextStyle
8462
8533
  };
8463
8534
  var DEFAULT_ELEMENT2 = "h1";
8464
- var StyledHeading = import_styled_components37.default.div`
8535
+ var StyledHeading = import_styled_components38.default.div`
8465
8536
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8466
8537
  font-family: var(--font-family);
8467
8538
  font-size: var(--font-size);
@@ -8470,16 +8541,16 @@ var StyledHeading = import_styled_components37.default.div`
8470
8541
  color: var(--wui-color-text);
8471
8542
  ${({ $variant }) => variantStyleMap[$variant]}
8472
8543
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8473
- ${({ $inline }) => $inline && import_styled_components37.css`
8544
+ ${({ $inline }) => $inline && import_styled_components38.css`
8474
8545
  display: inline-block;
8475
8546
  `}
8476
- ${({ $disabled }) => $disabled && import_styled_components37.css`
8547
+ ${({ $disabled }) => $disabled && import_styled_components38.css`
8477
8548
  color: var(--wui-color-text-disabled);
8478
8549
  `}
8479
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
8550
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components38.css`
8480
8551
  user-select: none;
8481
8552
  `}
8482
- ${({ $align }) => import_styled_components37.css`
8553
+ ${({ $align }) => import_styled_components38.css`
8483
8554
  text-align: ${$align};
8484
8555
  `}
8485
8556
  margin: 0;
@@ -8504,7 +8575,7 @@ var HeadingComponent = (0, import_react26.forwardRef)(
8504
8575
  variant = "heading1",
8505
8576
  renderAs,
8506
8577
  ...props
8507
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
8578
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8508
8579
  StyledHeading,
8509
8580
  {
8510
8581
  ref,
@@ -8524,8 +8595,8 @@ HeadingComponent.displayName = "Heading";
8524
8595
  var Heading = makePolymorphic(HeadingComponent);
8525
8596
 
8526
8597
  // src/components/DataCards/DataCard.tsx
8527
- var import_jsx_runtime212 = require("react/jsx-runtime");
8528
- var StyledDataCard = import_styled_components38.default.div`
8598
+ var import_jsx_runtime213 = require("react/jsx-runtime");
8599
+ var StyledDataCard = import_styled_components39.default.div`
8529
8600
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
8530
8601
  display: grid;
8531
8602
  grid-template-areas: 'label slot' 'value value';
@@ -8538,7 +8609,7 @@ var StyledDataCard = import_styled_components38.default.div`
8538
8609
  border-radius: var(--wui-border-radius-02);
8539
8610
  position: relative;
8540
8611
  `;
8541
- var shimmer = import_styled_components38.keyframes`
8612
+ var shimmer = import_styled_components39.keyframes`
8542
8613
  0% {
8543
8614
  background-position: 200% 0;
8544
8615
  }
@@ -8546,7 +8617,7 @@ var shimmer = import_styled_components38.keyframes`
8546
8617
  background-position: -200% 0;
8547
8618
  }
8548
8619
  `;
8549
- var LoadingBackground = import_styled_components38.default.div`
8620
+ var LoadingBackground = import_styled_components39.default.div`
8550
8621
  background: linear-gradient(
8551
8622
  90deg,
8552
8623
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -8557,27 +8628,27 @@ var LoadingBackground = import_styled_components38.default.div`
8557
8628
  animation: ${shimmer} 1.5s infinite;
8558
8629
  border-radius: var(--wui-border-radius-01);
8559
8630
  `;
8560
- var StyledLoadingLabel = (0, import_styled_components38.default)(LoadingBackground)`
8631
+ var StyledLoadingLabel = (0, import_styled_components39.default)(LoadingBackground)`
8561
8632
  width: 80px;
8562
8633
  height: var(--wui-typography-heading-6-line-height);
8563
8634
  `;
8564
- var StyledLoadingValue = (0, import_styled_components38.default)(LoadingBackground)`
8635
+ var StyledLoadingValue = (0, import_styled_components39.default)(LoadingBackground)`
8565
8636
  width: 90%;
8566
8637
  height: var(--wui-typography-heading-3-line-height);
8567
8638
  `;
8568
- var StyledLabel2 = (0, import_styled_components38.default)(Heading)`
8639
+ var StyledLabel2 = (0, import_styled_components39.default)(Heading)`
8569
8640
  grid-area: label;
8570
8641
  `;
8571
- var StyledValue = (0, import_styled_components38.default)(Heading)`
8642
+ var StyledValue = (0, import_styled_components39.default)(Heading)`
8572
8643
  grid-area: value;
8573
8644
  `;
8574
- var StyledSlot = import_styled_components38.default.div`
8645
+ var StyledSlot = import_styled_components39.default.div`
8575
8646
  display: flex;
8576
8647
  justify-content: flex-end;
8577
8648
  grid-area: slot;
8578
8649
  align-self: center;
8579
8650
  `;
8580
- var StyledDataCardTrendContainer = import_styled_components38.default.div`
8651
+ var StyledDataCardTrendContainer = import_styled_components39.default.div`
8581
8652
  position: absolute;
8582
8653
  bottom: var(--wui-space-01);
8583
8654
  right: var(--wui-space-01);
@@ -8590,39 +8661,39 @@ var DataCard = ({
8590
8661
  isLoading = false,
8591
8662
  trend,
8592
8663
  ...props
8593
- }) => /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
8664
+ }) => /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
8594
8665
  StyledDataCard,
8595
8666
  {
8596
8667
  $colorScheme: colorScheme,
8597
8668
  ...props,
8598
8669
  children: [
8599
- /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8670
+ /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8600
8671
  StyledLabel2,
8601
8672
  {
8602
8673
  renderAs: "dt",
8603
8674
  variant: "heading6",
8604
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledLoadingLabel, {}) : label
8675
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledLoadingLabel, {}) : label
8605
8676
  }
8606
8677
  ),
8607
- /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8678
+ /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8608
8679
  StyledValue,
8609
8680
  {
8610
8681
  renderAs: "dd",
8611
8682
  variant: "heading3",
8612
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledLoadingValue, {}) : value
8683
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledLoadingValue, {}) : value
8613
8684
  }
8614
8685
  ),
8615
- (0, import_type_guards27.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledSlot, { children: upperRightSlot }),
8616
- (0, import_type_guards27.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledDataCardTrendContainer, { children: trend })
8686
+ (0, import_type_guards28.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledSlot, { children: upperRightSlot }),
8687
+ (0, import_type_guards28.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledDataCardTrendContainer, { children: trend })
8617
8688
  ]
8618
8689
  }
8619
8690
  );
8620
8691
  DataCard.displayName = "DataCard";
8621
8692
 
8622
8693
  // src/components/DataCards/DataCards.tsx
8623
- var import_styled_components39 = __toESM(require("styled-components"));
8624
- var import_jsx_runtime213 = require("react/jsx-runtime");
8625
- var StyledDataCards = (0, import_styled_components39.default)(Box)`
8694
+ var import_styled_components40 = __toESM(require("styled-components"));
8695
+ var import_jsx_runtime214 = require("react/jsx-runtime");
8696
+ var StyledDataCards = (0, import_styled_components40.default)(Box)`
8626
8697
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8627
8698
  margin-top: 0; /* Remove default <dl> style */
8628
8699
  > * {
@@ -8636,7 +8707,7 @@ var DataCards = ({
8636
8707
  colorScheme = "inherit",
8637
8708
  ...props
8638
8709
  }) => {
8639
- return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8710
+ return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8640
8711
  StyledDataCards,
8641
8712
  {
8642
8713
  ...props,
@@ -8654,25 +8725,25 @@ var DataCards = ({
8654
8725
  DataCards.displayName = "DataCards";
8655
8726
 
8656
8727
  // src/components/DataCards/DataCardTrend.tsx
8657
- var import_styled_components41 = __toESM(require("styled-components"));
8728
+ var import_styled_components42 = __toESM(require("styled-components"));
8658
8729
 
8659
8730
  // src/components/Text/Text.tsx
8660
8731
  var import_react27 = require("react");
8661
- var import_styled_components40 = __toESM(require("styled-components"));
8662
- var import_jsx_runtime214 = require("react/jsx-runtime");
8663
- var bodyBoldStyles = import_styled_components40.css`
8732
+ var import_styled_components41 = __toESM(require("styled-components"));
8733
+ var import_jsx_runtime215 = require("react/jsx-runtime");
8734
+ var bodyBoldStyles = import_styled_components41.css`
8664
8735
  > strong,
8665
8736
  b {
8666
8737
  font-weight: var(--wui-typography-weight-body-bold);
8667
8738
  }
8668
8739
  `;
8669
- var labelBoldStyles = import_styled_components40.css`
8740
+ var labelBoldStyles = import_styled_components41.css`
8670
8741
  > strong,
8671
8742
  b {
8672
8743
  font-weight: var(--wui-typography-weight-label-bold);
8673
8744
  }
8674
8745
  `;
8675
- var body1TextStyle = import_styled_components40.css`
8746
+ var body1TextStyle = import_styled_components41.css`
8676
8747
  --font-family: var(--wui-typography-body-1-family);
8677
8748
  --font-size: var(--wui-typography-body-1-size);
8678
8749
  --font-weight: var(--wui-typography-body-1-weight);
@@ -8680,7 +8751,7 @@ var body1TextStyle = import_styled_components40.css`
8680
8751
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8681
8752
  ${bodyBoldStyles}
8682
8753
  `;
8683
- var body2TextStyle = import_styled_components40.css`
8754
+ var body2TextStyle = import_styled_components41.css`
8684
8755
  --font-family: var(--wui-typography-body-2-family);
8685
8756
  --font-size: var(--wui-typography-body-2-size);
8686
8757
  --font-weight: var(--wui-typography-body-2-weight);
@@ -8688,7 +8759,7 @@ var body2TextStyle = import_styled_components40.css`
8688
8759
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8689
8760
  ${bodyBoldStyles}
8690
8761
  `;
8691
- var body3TextStyle = import_styled_components40.css`
8762
+ var body3TextStyle = import_styled_components41.css`
8692
8763
  --font-family: var(--wui-typography-body-3-family);
8693
8764
  --font-size: var(--wui-typography-body-3-size);
8694
8765
  --font-weight: var(--wui-typography-body-3-weight);
@@ -8696,7 +8767,7 @@ var body3TextStyle = import_styled_components40.css`
8696
8767
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8697
8768
  ${bodyBoldStyles}
8698
8769
  `;
8699
- var body4TextStyle = import_styled_components40.css`
8770
+ var body4TextStyle = import_styled_components41.css`
8700
8771
  --font-family: var(--wui-typography-body-4-family);
8701
8772
  --font-size: var(--wui-typography-body-4-size);
8702
8773
  --font-weight: var(--wui-typography-body-4-weight);
@@ -8704,47 +8775,47 @@ var body4TextStyle = import_styled_components40.css`
8704
8775
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8705
8776
  ${bodyBoldStyles}
8706
8777
  `;
8707
- var label1TextStyle = import_styled_components40.css`
8778
+ var label1TextStyle = import_styled_components41.css`
8708
8779
  --font-family: var(--wui-typography-label-1-family);
8709
8780
  --font-size: var(--wui-typography-label-1-size);
8710
8781
  --font-weight: var(--wui-typography-label-1-weight);
8711
8782
  --line-height: var(--wui-typography-label-1-line-height);
8712
8783
  ${labelBoldStyles}
8713
8784
  `;
8714
- var label2TextStyle = import_styled_components40.css`
8785
+ var label2TextStyle = import_styled_components41.css`
8715
8786
  --font-family: var(--wui-typography-label-2-family);
8716
8787
  --font-size: var(--wui-typography-label-2-size);
8717
8788
  --font-weight: var(--wui-typography-label-2-weight);
8718
8789
  --line-height: var(--wui-typography-label-2-line-height);
8719
8790
  ${labelBoldStyles}
8720
8791
  `;
8721
- var label3TextStyle = import_styled_components40.css`
8792
+ var label3TextStyle = import_styled_components41.css`
8722
8793
  --font-family: var(--wui-typography-label-3-family);
8723
8794
  --font-size: var(--wui-typography-label-3-size);
8724
8795
  --font-weight: var(--wui-typography-label-3-weight);
8725
8796
  --line-height: var(--wui-typography-label-3-line-height);
8726
8797
  ${labelBoldStyles}
8727
8798
  `;
8728
- var label4TextStyle = import_styled_components40.css`
8799
+ var label4TextStyle = import_styled_components41.css`
8729
8800
  --font-family: var(--wui-typography-label-4-family);
8730
8801
  --font-size: var(--wui-typography-label-4-size);
8731
8802
  --font-weight: var(--wui-typography-label-4-weight);
8732
8803
  --line-height: var(--wui-typography-label-4-line-height);
8733
8804
  ${labelBoldStyles}
8734
8805
  `;
8735
- var body1MonoTextStyle = import_styled_components40.css`
8806
+ var body1MonoTextStyle = import_styled_components41.css`
8736
8807
  ${body1TextStyle};
8737
8808
  --font-family: var(--wui-typography-family-mono);
8738
8809
  `;
8739
- var body2MonoTextStyle = import_styled_components40.css`
8810
+ var body2MonoTextStyle = import_styled_components41.css`
8740
8811
  ${body2TextStyle};
8741
8812
  --font-family: var(--wui-typography-family-mono);
8742
8813
  `;
8743
- var body3MonoTextStyle = import_styled_components40.css`
8814
+ var body3MonoTextStyle = import_styled_components41.css`
8744
8815
  ${body3TextStyle};
8745
8816
  --font-family: var(--wui-typography-family-mono);
8746
8817
  `;
8747
- var body4MonoTextStyle = import_styled_components40.css`
8818
+ var body4MonoTextStyle = import_styled_components41.css`
8748
8819
  ${body4TextStyle};
8749
8820
  --font-family: var(--wui-typography-family-mono);
8750
8821
  `;
@@ -8779,7 +8850,7 @@ var variantElementMap2 = {
8779
8850
  label3: labelElement,
8780
8851
  label4: labelElement
8781
8852
  };
8782
- var StyledText = import_styled_components40.default.div`
8853
+ var StyledText = import_styled_components41.default.div`
8783
8854
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8784
8855
  --text-color: ${({ $prominence, $disabled }) => {
8785
8856
  if ($disabled) {
@@ -8803,19 +8874,19 @@ var StyledText = import_styled_components40.default.div`
8803
8874
  margin: 0;
8804
8875
  ${({ $variant }) => variantStyleMap2[$variant]}
8805
8876
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8806
- ${({ $inline }) => $inline && import_styled_components40.css`
8877
+ ${({ $inline }) => $inline && import_styled_components41.css`
8807
8878
  display: inline-block;
8808
8879
  `}
8809
- ${({ $disabled }) => $disabled && import_styled_components40.css`
8880
+ ${({ $disabled }) => $disabled && import_styled_components41.css`
8810
8881
  --text-color: var(--wui-color-text-disabled);
8811
8882
  `}
8812
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components40.css`
8883
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components41.css`
8813
8884
  user-select: none;
8814
8885
  `}
8815
- ${({ $align }) => import_styled_components40.css`
8886
+ ${({ $align }) => import_styled_components41.css`
8816
8887
  text-align: ${$align};
8817
8888
  `}
8818
- ${({ as }) => as === "p" && import_styled_components40.css`
8889
+ ${({ as }) => as === "p" && import_styled_components41.css`
8819
8890
  display: block;
8820
8891
 
8821
8892
  + p {
@@ -8836,7 +8907,7 @@ var TextComponent = (0, import_react27.forwardRef)(
8836
8907
  renderAs,
8837
8908
  ...props
8838
8909
  }, ref) => {
8839
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8910
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8840
8911
  StyledText,
8841
8912
  {
8842
8913
  ref,
@@ -8858,8 +8929,8 @@ TextComponent.displayName = "Text";
8858
8929
  var Text = makePolymorphic(TextComponent);
8859
8930
 
8860
8931
  // src/components/DataCards/DataCardTrend.tsx
8861
- var import_jsx_runtime215 = require("react/jsx-runtime");
8862
- var StyledDataCardTrend = import_styled_components41.default.div`
8932
+ var import_jsx_runtime216 = require("react/jsx-runtime");
8933
+ var StyledDataCardTrend = import_styled_components42.default.div`
8863
8934
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
8864
8935
  background: var(--wui-color-bg-app);
8865
8936
  border-radius: var(--wui-border-radius-rounded);
@@ -8874,8 +8945,8 @@ var DataCardTrend = ({
8874
8945
  children,
8875
8946
  ...props
8876
8947
  }) => {
8877
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
8878
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8948
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
8949
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8879
8950
  Icon,
8880
8951
  {
8881
8952
  size: "md",
@@ -8883,7 +8954,7 @@ var DataCardTrend = ({
8883
8954
  ...props
8884
8955
  }
8885
8956
  ),
8886
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8957
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8887
8958
  Text,
8888
8959
  {
8889
8960
  prominence: "secondary",
@@ -8895,22 +8966,22 @@ var DataCardTrend = ({
8895
8966
  };
8896
8967
 
8897
8968
  // src/components/Divider/Divider.tsx
8898
- var import_styled_components42 = __toESM(require("styled-components"));
8899
- var import_jsx_runtime216 = require("react/jsx-runtime");
8900
- var horizontalBorderCss = import_styled_components42.css`
8969
+ var import_styled_components43 = __toESM(require("styled-components"));
8970
+ var import_jsx_runtime217 = require("react/jsx-runtime");
8971
+ var horizontalBorderCss = import_styled_components43.css`
8901
8972
  border-top-color: var(--wui-color-border);
8902
8973
  border-top-style: solid;
8903
8974
  border-top-width: 1px;
8904
8975
  clear: both; /* for horizontal dividers, ensure it clears any floats */
8905
8976
  height: 0;
8906
8977
  `;
8907
- var verticalBorderCss = import_styled_components42.css`
8978
+ var verticalBorderCss = import_styled_components43.css`
8908
8979
  background-color: var(--wui-color-border);
8909
8980
  max-width: 1px;
8910
8981
  min-height: 100%;
8911
8982
  width: 1px;
8912
8983
  `;
8913
- var DividerComponent = import_styled_components42.default.div`
8984
+ var DividerComponent = import_styled_components43.default.div`
8914
8985
  ${({ $orientation }) => {
8915
8986
  switch ($orientation) {
8916
8987
  case "vertical":
@@ -8922,7 +8993,7 @@ var DividerComponent = import_styled_components42.default.div`
8922
8993
  }}
8923
8994
  `;
8924
8995
  var Divider = ({ orientation = "horizontal", ...props }) => {
8925
- return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8996
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
8926
8997
  DividerComponent,
8927
8998
  {
8928
8999
  $orientation: orientation,
@@ -8935,21 +9006,21 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
8935
9006
  Divider.displayName = "Divider";
8936
9007
 
8937
9008
  // src/components/EditableHeading/EditableHeading.tsx
8938
- var import_styled_components46 = __toESM(require("styled-components"));
9009
+ var import_styled_components47 = __toESM(require("styled-components"));
8939
9010
  var import_react29 = require("react");
8940
9011
 
8941
9012
  // src/components/Tooltip/Tooltip.tsx
8942
9013
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
8943
- var import_styled_components43 = __toESM(require("styled-components"));
8944
- var import_jsx_runtime217 = require("react/jsx-runtime");
8945
- var CompactTooltipStyles = import_styled_components43.css`
9014
+ var import_styled_components44 = __toESM(require("styled-components"));
9015
+ var import_jsx_runtime218 = require("react/jsx-runtime");
9016
+ var CompactTooltipStyles = import_styled_components44.css`
8946
9017
  --tooltip-font-size: var(--wui-typography-label-4-size);
8947
9018
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
8948
9019
  --tooltip-font-weight: var(--wui-typography-label-4-weight);
8949
9020
  --tooltip-horizontal-padding: var(--wui-space-02);
8950
9021
  --tooltip-vertical-padding: var(--wui-space-03);
8951
9022
  `;
8952
- var StyledContent = (0, import_styled_components43.default)(import_react_tooltip2.Content)`
9023
+ var StyledContent = (0, import_styled_components44.default)(import_react_tooltip2.Content)`
8953
9024
  --tooltip-font-family: var(--wui-typography-family-default);
8954
9025
  --tooltip-border-radius: var(--wui-border-radius-05);
8955
9026
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -9008,14 +9079,14 @@ var Tooltip = ({
9008
9079
  if (forceOpen === true) {
9009
9080
  rootProps.open = true;
9010
9081
  }
9011
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
9082
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9012
9083
  import_react_tooltip2.Root,
9013
9084
  {
9014
9085
  delayDuration: delay,
9015
9086
  ...rootProps,
9016
9087
  children: [
9017
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
9018
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
9088
+ /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
9089
+ /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9019
9090
  StyledContent,
9020
9091
  {
9021
9092
  $compact: compact,
@@ -9023,7 +9094,7 @@ var Tooltip = ({
9023
9094
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
9024
9095
  children: [
9025
9096
  content,
9026
- !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
9097
+ !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9027
9098
  "svg",
9028
9099
  {
9029
9100
  fill: "var(--tooltip-bg)",
@@ -9032,7 +9103,7 @@ var Tooltip = ({
9032
9103
  viewBox: "0 0 12 8",
9033
9104
  width: "12",
9034
9105
  xmlns: "http://www.w3.org/2000/svg",
9035
- children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
9106
+ children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
9036
9107
  }
9037
9108
  ) }) : null
9038
9109
  ]
@@ -9046,18 +9117,19 @@ Tooltip.displayName = "Tooltip";
9046
9117
 
9047
9118
  // src/components/Input/Input.tsx
9048
9119
  var import_react28 = require("react");
9049
- var import_styled_components45 = __toESM(require("styled-components"));
9050
- var import_type_guards28 = require("@wistia/type-guards");
9120
+ var import_styled_components46 = __toESM(require("styled-components"));
9121
+ var import_type_guards29 = require("@wistia/type-guards");
9051
9122
 
9052
9123
  // src/css/sharedStyles/inputCssVariables.ts
9053
- var import_styled_components44 = require("styled-components");
9054
- var inputCssVariables = import_styled_components44.css`
9124
+ var import_styled_components45 = require("styled-components");
9125
+ var inputCssVariables = import_styled_components45.css`
9055
9126
  --wui-input-color-bg: var(--wui-color-bg-surface);
9056
9127
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
9057
9128
  --wui-input-color-border: var(--wui-color-border-secondary);
9058
9129
  --wui-input-color-border-focus: var(--wui-color-focus-ring);
9059
9130
  --wui-input-color-border-error: var(--wui-color-invalid-indicator);
9060
9131
  --wui-input-color-border-disabled: var(--wui-color-border-disabled);
9132
+ --wui-input-color-text: var(--wui-color-text);
9061
9133
  --wui-input-border-radius: var(--wui-border-radius-03);
9062
9134
  --wui-input-multiline-border-radius: var(--wui-border-radius-02);
9063
9135
  --wui-input-vertical-padding: var(--wui-space-02);
@@ -9068,8 +9140,8 @@ var inputCssVariables = import_styled_components44.css`
9068
9140
  `;
9069
9141
 
9070
9142
  // src/components/Input/Input.tsx
9071
- var import_jsx_runtime218 = require("react/jsx-runtime");
9072
- var inputStyles = import_styled_components45.css`
9143
+ var import_jsx_runtime219 = require("react/jsx-runtime");
9144
+ var inputStyles = import_styled_components46.css`
9073
9145
  ${inputCssVariables}
9074
9146
  input,
9075
9147
  textarea {
@@ -9082,7 +9154,7 @@ var inputStyles = import_styled_components45.css`
9082
9154
  font-size: var(--wui-input-font-size);
9083
9155
  line-height: var(--wui-input-line-height);
9084
9156
  font-weight: var(--wui-typography-weight-body);
9085
- color: var(--wui-color-text-primary);
9157
+ color: var(--wui-input-color-text);
9086
9158
 
9087
9159
  &::placeholder {
9088
9160
  color: var(--wui-input-placeholder);
@@ -9104,7 +9176,7 @@ var inputStyles = import_styled_components45.css`
9104
9176
  }
9105
9177
  }
9106
9178
  `;
9107
- var StyledInputContainer = import_styled_components45.default.div`
9179
+ var StyledInputContainer = import_styled_components46.default.div`
9108
9180
  display: inline-flex;
9109
9181
  position: relative;
9110
9182
  ${inputStyles};
@@ -9184,27 +9256,27 @@ var Input = (0, import_react28.forwardRef)(
9184
9256
  const internalRef = (0, import_react28.useRef)();
9185
9257
  const ref = (
9186
9258
  // eslint-disable-next-line react-compiler/react-compiler
9187
- (0, import_type_guards28.isNotNil)(externalRef) && (0, import_type_guards28.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
9259
+ (0, import_type_guards29.isNotNil)(externalRef) && (0, import_type_guards29.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
9188
9260
  );
9189
9261
  let leftIconToDisplay = leftIcon;
9190
- if ((0, import_type_guards28.isNil)(leftIcon) && type === "search") {
9191
- leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Icon, { type: "search" });
9262
+ if ((0, import_type_guards29.isNil)(leftIcon) && type === "search") {
9263
+ leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon, { type: "search" });
9192
9264
  }
9193
- if ((0, import_type_guards28.isNotNil)(leftIconToDisplay)) {
9265
+ if ((0, import_type_guards29.isNotNil)(leftIconToDisplay)) {
9194
9266
  leftIconToDisplay = (0, import_react28.cloneElement)(leftIconToDisplay, {
9195
9267
  size: "md",
9196
9268
  className: "wui-input-left-icon"
9197
9269
  });
9198
9270
  }
9199
9271
  let rightIconToDisplay = rightIcon;
9200
- if ((0, import_type_guards28.isNotNil)(rightIconToDisplay)) {
9272
+ if ((0, import_type_guards29.isNotNil)(rightIconToDisplay)) {
9201
9273
  rightIconToDisplay = (0, import_react28.cloneElement)(rightIconToDisplay, {
9202
9274
  size: "md",
9203
9275
  className: "wui-input-right-icon"
9204
9276
  });
9205
9277
  }
9206
9278
  const handleFocus2 = (event) => {
9207
- if ((0, import_type_guards28.isNotNil)(props.onFocus)) {
9279
+ if ((0, import_type_guards29.isNotNil)(props.onFocus)) {
9208
9280
  props.onFocus(event);
9209
9281
  }
9210
9282
  if (autoSelect && isValidRef(ref) && "current" in ref) {
@@ -9213,21 +9285,21 @@ var Input = (0, import_react28.forwardRef)(
9213
9285
  });
9214
9286
  }
9215
9287
  };
9216
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9288
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
9217
9289
  StyledInputContainer,
9218
9290
  {
9219
9291
  $fullWidth: fullWidth,
9220
9292
  $monospace: monospace,
9221
9293
  children: [
9222
9294
  leftIconToDisplay ?? null,
9223
- type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9295
+ type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9224
9296
  "textarea",
9225
9297
  {
9226
9298
  ...props,
9227
9299
  ref,
9228
9300
  onFocus: handleFocus2
9229
9301
  }
9230
- ) : /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9302
+ ) : /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9231
9303
  "input",
9232
9304
  {
9233
9305
  ...props,
@@ -9245,8 +9317,8 @@ var Input = (0, import_react28.forwardRef)(
9245
9317
  Input.displayName = "Input";
9246
9318
 
9247
9319
  // src/components/EditableHeading/EditableHeading.tsx
9248
- var import_jsx_runtime219 = require("react/jsx-runtime");
9249
- var StyledInput = (0, import_styled_components46.default)(Input)`
9320
+ var import_jsx_runtime220 = require("react/jsx-runtime");
9321
+ var StyledInput = (0, import_styled_components47.default)(Input)`
9250
9322
  :not([rows]) {
9251
9323
  min-height: unset;
9252
9324
  }
@@ -9266,7 +9338,7 @@ var StyledInput = (0, import_styled_components46.default)(Input)`
9266
9338
  height: ${({ $height }) => `${$height}px`};
9267
9339
  }
9268
9340
  `;
9269
- var editableStyles = import_styled_components46.css`
9341
+ var editableStyles = import_styled_components47.css`
9270
9342
  &:has(+ :focus-within) {
9271
9343
  background: var(--wui-color-bg-surface-hover);
9272
9344
  }
@@ -9276,7 +9348,7 @@ var editableStyles = import_styled_components46.css`
9276
9348
  cursor: pointer;
9277
9349
  }
9278
9350
  `;
9279
- var StyledHeading2 = (0, import_styled_components46.default)(Heading)`
9351
+ var StyledHeading2 = (0, import_styled_components47.default)(Heading)`
9280
9352
  width: 100%;
9281
9353
  border-radius: var(--wui-border-radius-02);
9282
9354
  padding: var(--wui-space-02);
@@ -9330,7 +9402,7 @@ var EditableHeading = ({
9330
9402
  handleSetEditing(false);
9331
9403
  }
9332
9404
  };
9333
- const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9405
+ const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9334
9406
  StyledHeading2,
9335
9407
  {
9336
9408
  ref: headingRef,
@@ -9344,7 +9416,7 @@ var EditableHeading = ({
9344
9416
  return HeadingComponent2;
9345
9417
  }
9346
9418
  if (isEditing || forceEditing) {
9347
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9419
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9348
9420
  StyledInput,
9349
9421
  {
9350
9422
  $height: headingHeight,
@@ -9362,8 +9434,8 @@ var EditableHeading = ({
9362
9434
  }
9363
9435
  );
9364
9436
  }
9365
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, { children: [
9366
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9437
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
9438
+ /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9367
9439
  Tooltip,
9368
9440
  {
9369
9441
  compact: true,
@@ -9371,7 +9443,7 @@ var EditableHeading = ({
9371
9443
  children: HeadingComponent2
9372
9444
  }
9373
9445
  ),
9374
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9446
+ /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9375
9447
  "button",
9376
9448
  {
9377
9449
  "aria-label": ariaLabel,
@@ -9384,15 +9456,15 @@ var EditableHeading = ({
9384
9456
 
9385
9457
  // src/components/Form/Form.tsx
9386
9458
  var import_react31 = require("react");
9387
- var import_styled_components48 = __toESM(require("styled-components"));
9388
- var import_type_guards29 = require("@wistia/type-guards");
9459
+ var import_styled_components49 = __toESM(require("styled-components"));
9460
+ var import_type_guards30 = require("@wistia/type-guards");
9389
9461
 
9390
9462
  // src/components/Stack/Stack.tsx
9391
9463
  var import_react30 = require("react");
9392
- var import_styled_components47 = __toESM(require("styled-components"));
9393
- var import_jsx_runtime220 = require("react/jsx-runtime");
9464
+ var import_styled_components48 = __toESM(require("styled-components"));
9465
+ var import_jsx_runtime221 = require("react/jsx-runtime");
9394
9466
  var DEFAULT_ELEMENT4 = "div";
9395
- var StyledStack = import_styled_components47.default.div`
9467
+ var StyledStack = import_styled_components48.default.div`
9396
9468
  display: flex;
9397
9469
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
9398
9470
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
@@ -9403,7 +9475,7 @@ var StackComponent = (0, import_react30.forwardRef)(
9403
9475
  const responsiveGap = useResponsiveProp(gap);
9404
9476
  const responsiveDirection = useResponsiveProp(direction);
9405
9477
  const responsiveAlignItems = useResponsiveProp(alignItems);
9406
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9478
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9407
9479
  StyledStack,
9408
9480
  {
9409
9481
  ref,
@@ -9420,8 +9492,8 @@ StackComponent.displayName = "Stack";
9420
9492
  var Stack = makePolymorphic(StackComponent);
9421
9493
 
9422
9494
  // src/components/Form/Form.tsx
9423
- var import_jsx_runtime221 = require("react/jsx-runtime");
9424
- var StyledForm = import_styled_components48.default.form`
9495
+ var import_jsx_runtime222 = require("react/jsx-runtime");
9496
+ var StyledForm = import_styled_components49.default.form`
9425
9497
  --form-default-width: 690px;
9426
9498
 
9427
9499
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
@@ -9451,7 +9523,7 @@ var FormComponent = ({
9451
9523
  const id = props.id ?? autoId;
9452
9524
  const handleValidate = (nextFormData) => {
9453
9525
  const nextData = Object.fromEntries(nextFormData.entries());
9454
- if ((0, import_type_guards29.isUndefined)(validate)) {
9526
+ if ((0, import_type_guards30.isUndefined)(validate)) {
9455
9527
  return {};
9456
9528
  }
9457
9529
  return validate(nextData);
@@ -9461,7 +9533,7 @@ var FormComponent = ({
9461
9533
  props.onBlur(event);
9462
9534
  }
9463
9535
  const formData = new FormData(event.currentTarget);
9464
- if ((0, import_type_guards29.isNotUndefined)(validate)) {
9536
+ if ((0, import_type_guards30.isNotUndefined)(validate)) {
9465
9537
  handleValidate(formData);
9466
9538
  }
9467
9539
  };
@@ -9500,7 +9572,7 @@ var FormComponent = ({
9500
9572
  }, [labelPosition, values, errors, id, hasSubmitted]);
9501
9573
  return (
9502
9574
  // @ts-expect-error - generic context providers are a giant pain
9503
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9575
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9504
9576
  Stack,
9505
9577
  {
9506
9578
  ...props,
@@ -9558,10 +9630,10 @@ var useFormState = (action, initialData = {}) => {
9558
9630
 
9559
9631
  // src/components/Form/FormErrorSummary.tsx
9560
9632
  var import_react33 = require("react");
9561
- var import_type_guards30 = require("@wistia/type-guards");
9562
- var import_jsx_runtime222 = require("react/jsx-runtime");
9633
+ var import_type_guards31 = require("@wistia/type-guards");
9634
+ var import_jsx_runtime223 = require("react/jsx-runtime");
9563
9635
  var ErrorItem = ({ name, error, formId }) => {
9564
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9636
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9565
9637
  };
9566
9638
  var FormErrorSummary = ({ description }) => {
9567
9639
  const ref = (0, import_react33.useRef)(null);
@@ -9570,10 +9642,10 @@ var FormErrorSummary = ({ description }) => {
9570
9642
  if (isValid || !hasSubmitted) {
9571
9643
  return null;
9572
9644
  }
9573
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("div", { ref, children: [
9574
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("p", { children: description }),
9575
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards30.isNotUndefined)(error)).map(
9576
- ([name, error]) => (0, import_type_guards30.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9645
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)("div", { ref, children: [
9646
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("p", { children: description }),
9647
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards31.isNotUndefined)(error)).map(
9648
+ ([name, error]) => (0, import_type_guards31.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9577
9649
  ErrorItem,
9578
9650
  {
9579
9651
  error: err,
@@ -9581,7 +9653,7 @@ var FormErrorSummary = ({ description }) => {
9581
9653
  name
9582
9654
  },
9583
9655
  err
9584
- )) : /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9656
+ )) : /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9585
9657
  ErrorItem,
9586
9658
  {
9587
9659
  error: error ?? "",
@@ -9596,13 +9668,13 @@ var FormErrorSummary = ({ description }) => {
9596
9668
 
9597
9669
  // src/components/FormField/FormField.tsx
9598
9670
  var import_react36 = require("react");
9599
- var import_styled_components51 = __toESM(require("styled-components"));
9600
- var import_type_guards31 = require("@wistia/type-guards");
9671
+ var import_styled_components52 = __toESM(require("styled-components"));
9672
+ var import_type_guards32 = require("@wistia/type-guards");
9601
9673
 
9602
9674
  // src/components/Label/Label.tsx
9603
- var import_styled_components49 = __toESM(require("styled-components"));
9604
- var import_jsx_runtime223 = require("react/jsx-runtime");
9605
- var requiredStyle = import_styled_components49.css`
9675
+ var import_styled_components50 = __toESM(require("styled-components"));
9676
+ var import_jsx_runtime224 = require("react/jsx-runtime");
9677
+ var requiredStyle = import_styled_components50.css`
9606
9678
  &::after {
9607
9679
  color: var(--wui-color-text-error);
9608
9680
  display: inline;
@@ -9610,10 +9682,10 @@ var requiredStyle = import_styled_components49.css`
9610
9682
  content: '*';
9611
9683
  }
9612
9684
  `;
9613
- var disabledStyle3 = import_styled_components49.css`
9685
+ var disabledStyle3 = import_styled_components50.css`
9614
9686
  color: var(--wui-color-text-disabled);
9615
9687
  `;
9616
- var StyledLabel3 = import_styled_components49.default.label`
9688
+ var StyledLabel3 = import_styled_components50.default.label`
9617
9689
  display: block;
9618
9690
  width: 100%;
9619
9691
  color: var(--wui-color-text);
@@ -9645,7 +9717,7 @@ var Label = ({
9645
9717
  screenReaderOnly = false,
9646
9718
  ...props
9647
9719
  }) => {
9648
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9720
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9649
9721
  StyledLabel3,
9650
9722
  {
9651
9723
  ...props,
@@ -9663,25 +9735,25 @@ Label.displayName = "Label";
9663
9735
  var import_react35 = require("react");
9664
9736
 
9665
9737
  // src/components/FormGroup/FormGroup.tsx
9666
- var import_styled_components50 = __toESM(require("styled-components"));
9738
+ var import_styled_components51 = __toESM(require("styled-components"));
9667
9739
  var import_react34 = require("react");
9668
- var import_jsx_runtime224 = require("react/jsx-runtime");
9669
- var StyledFieldset = import_styled_components50.default.fieldset`
9740
+ var import_jsx_runtime225 = require("react/jsx-runtime");
9741
+ var StyledFieldset = import_styled_components51.default.fieldset`
9670
9742
  border: 0;
9671
9743
  `;
9672
- var StyledLegend = import_styled_components50.default.legend`
9744
+ var StyledLegend = import_styled_components51.default.legend`
9673
9745
  margin-bottom: var(--space-01);
9674
9746
  `;
9675
9747
  var FormGroup = ({ children, label, ...props }) => {
9676
9748
  const ref = (0, import_react34.useRef)();
9677
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
9749
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
9678
9750
  Stack,
9679
9751
  {
9680
9752
  ...props,
9681
9753
  ref,
9682
9754
  renderAs: StyledFieldset,
9683
9755
  children: [
9684
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9756
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9685
9757
  Heading,
9686
9758
  {
9687
9759
  renderAs: StyledLegend,
@@ -9697,7 +9769,7 @@ var FormGroup = ({ children, label, ...props }) => {
9697
9769
  FormGroup.displayName = "FormGroup";
9698
9770
 
9699
9771
  // src/components/FormGroup/CheckboxGroup.tsx
9700
- var import_jsx_runtime225 = require("react/jsx-runtime");
9772
+ var import_jsx_runtime226 = require("react/jsx-runtime");
9701
9773
  var CheckboxGroupContext = (0, import_react35.createContext)(null);
9702
9774
  var CheckboxGroup = ({
9703
9775
  children,
@@ -9712,13 +9784,13 @@ var CheckboxGroup = ({
9712
9784
  onChange
9713
9785
  };
9714
9786
  }, [name, onChange]);
9715
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(FormGroup, { ...props, children }) });
9787
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(FormGroup, { ...props, children }) });
9716
9788
  };
9717
9789
  CheckboxGroup.displayName = "CheckboxGroup";
9718
9790
 
9719
9791
  // src/components/FormField/FormField.tsx
9720
- var import_jsx_runtime226 = require("react/jsx-runtime");
9721
- var StyledFormField = import_styled_components51.default.div`
9792
+ var import_jsx_runtime227 = require("react/jsx-runtime");
9793
+ var StyledFormField = import_styled_components52.default.div`
9722
9794
  --form-field-spacing: var(--wui-space-01);
9723
9795
  --form-field-spacing-inline: var(--wui-space-02);
9724
9796
  --form-field-error-color: var(--wui-color-text-secondary-error);
@@ -9748,7 +9820,7 @@ var StyledFormField = import_styled_components51.default.div`
9748
9820
  grid-template-rows: 1fr;
9749
9821
  }
9750
9822
  `;
9751
- var StyledErrorList = import_styled_components51.default.ul`
9823
+ var StyledErrorList = import_styled_components52.default.ul`
9752
9824
  margin: 0;
9753
9825
  padding: 0;
9754
9826
  padding-left: var(--wui-space-04);
@@ -9757,8 +9829,8 @@ var StyledErrorList = import_styled_components51.default.ul`
9757
9829
  gap: var(--wui-space-01);
9758
9830
  `;
9759
9831
  var ErrorMessages = ({ errors, id }) => {
9760
- const isMultipleErrors = (0, import_type_guards31.isArray)(errors);
9761
- return isMultipleErrors ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9832
+ const isMultipleErrors = (0, import_type_guards32.isArray)(errors);
9833
+ return isMultipleErrors ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
9762
9834
  Text,
9763
9835
  {
9764
9836
  colorScheme: "error",
@@ -9768,7 +9840,7 @@ var ErrorMessages = ({ errors, id }) => {
9768
9840
  children: error
9769
9841
  },
9770
9842
  `${id}-${index}`
9771
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9843
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
9772
9844
  Text,
9773
9845
  {
9774
9846
  colorScheme: "error",
@@ -9807,19 +9879,19 @@ var FormField = ({
9807
9879
  "aria-describedby": ariaDescribedby,
9808
9880
  ...props
9809
9881
  };
9810
- if ((0, import_type_guards31.isUndefined)(value) && (0, import_type_guards31.isNotUndefined)(defaultValue)) {
9882
+ if ((0, import_type_guards32.isUndefined)(value) && (0, import_type_guards32.isNotUndefined)(defaultValue)) {
9811
9883
  childProps = {
9812
9884
  ...childProps,
9813
9885
  defaultValue
9814
9886
  };
9815
9887
  }
9816
- if ((0, import_type_guards31.isNotNil)(checkboxGroup)) {
9817
- const computedName = (0, import_type_guards31.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9888
+ if ((0, import_type_guards32.isNotNil)(checkboxGroup)) {
9889
+ const computedName = (0, import_type_guards32.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9818
9890
  const handleChange = (event) => {
9819
- if ((0, import_type_guards31.isNotUndefined)(props.onChange)) {
9891
+ if ((0, import_type_guards32.isNotUndefined)(props.onChange)) {
9820
9892
  props.onChange(event);
9821
9893
  }
9822
- if ((0, import_type_guards31.isNotUndefined)(checkboxGroup.onChange)) {
9894
+ if ((0, import_type_guards32.isNotUndefined)(checkboxGroup.onChange)) {
9823
9895
  checkboxGroup.onChange(event);
9824
9896
  }
9825
9897
  };
@@ -9827,22 +9899,22 @@ var FormField = ({
9827
9899
  ...childProps,
9828
9900
  name: computedName,
9829
9901
  onChange: handleChange,
9830
- "aria-invalid": (0, import_type_guards31.isNotNil)(error)
9902
+ "aria-invalid": (0, import_type_guards32.isNotNil)(error)
9831
9903
  };
9832
9904
  }
9833
9905
  import_react36.Children.only(children);
9834
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
9906
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
9835
9907
  StyledFormField,
9836
9908
  {
9837
9909
  ...props,
9838
9910
  "data-label-position": labelPosition ?? formState.labelPosition,
9839
9911
  children: [
9840
- !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Label, { htmlFor: computedId, children: label }),
9841
- (0, import_type_guards31.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9912
+ !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Label, { htmlFor: computedId, children: label }),
9913
+ (0, import_type_guards32.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9842
9914
  (0, import_react36.cloneElement)(children, childProps),
9843
- (0, import_type_guards31.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, { children: [
9844
- /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", {}),
9845
- /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9915
+ (0, import_type_guards32.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, { children: [
9916
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", {}),
9917
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
9846
9918
  ErrorMessages,
9847
9919
  {
9848
9920
  errors: computedError,
@@ -9858,7 +9930,7 @@ FormField.displayName = "FormField";
9858
9930
 
9859
9931
  // src/components/FormGroup/RadioGroup.tsx
9860
9932
  var import_react37 = require("react");
9861
- var import_jsx_runtime227 = require("react/jsx-runtime");
9933
+ var import_jsx_runtime228 = require("react/jsx-runtime");
9862
9934
  var RadioGroupContext = (0, import_react37.createContext)(null);
9863
9935
  var RadioGroup = ({
9864
9936
  children,
@@ -9873,15 +9945,15 @@ var RadioGroup = ({
9873
9945
  onChange
9874
9946
  };
9875
9947
  }, [name, onChange]);
9876
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(FormGroup, { ...props, children }) });
9948
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(FormGroup, { ...props, children }) });
9877
9949
  };
9878
9950
  RadioGroup.displayName = "RadioGroup";
9879
9951
 
9880
9952
  // src/components/IconButton/IconButton.tsx
9881
9953
  var import_react38 = require("react");
9882
- var import_styled_components52 = __toESM(require("styled-components"));
9883
- var import_jsx_runtime228 = require("react/jsx-runtime");
9884
- var StyledButton2 = (0, import_styled_components52.default)(Button)`
9954
+ var import_styled_components53 = __toESM(require("styled-components"));
9955
+ var import_jsx_runtime229 = require("react/jsx-runtime");
9956
+ var StyledButton2 = (0, import_styled_components53.default)(Button)`
9885
9957
  --icon-button-size-sm: 24px;
9886
9958
  --icon-button-size-md: 32px;
9887
9959
  --icon-button-size-lg: 40px;
@@ -9898,7 +9970,7 @@ var StyledButton2 = (0, import_styled_components52.default)(Button)`
9898
9970
  var IconButton = (0, import_react38.forwardRef)(
9899
9971
  ({ children, label, size = "md", ...props }, ref) => {
9900
9972
  const responsiveSize = useResponsiveProp(size);
9901
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
9973
+ return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
9902
9974
  StyledButton2,
9903
9975
  {
9904
9976
  ...props,
@@ -9915,55 +9987,6 @@ var IconButton = (0, import_react38.forwardRef)(
9915
9987
  );
9916
9988
  IconButton.displayName = "IconButton";
9917
9989
 
9918
- // src/components/Image/Image.tsx
9919
- var import_styled_components53 = __toESM(require("styled-components"));
9920
- var import_type_guards32 = require("@wistia/type-guards");
9921
- var import_jsx_runtime229 = require("react/jsx-runtime");
9922
- var getFillStyle2 = (fillContainer) => {
9923
- if (fillContainer === "horizontal") {
9924
- return "width: 100%;";
9925
- }
9926
- if (fillContainer === "vertical") {
9927
- return "height: 100%;";
9928
- }
9929
- if (fillContainer === true) {
9930
- return `
9931
- width: 100%;
9932
- height: 100%;
9933
- `;
9934
- }
9935
- return void 0;
9936
- };
9937
- var StyledImage = import_styled_components53.default.img`
9938
- border-radius: ${({ $borderRadius }) => (0, import_type_guards32.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
9939
- ${({ $fillContainer }) => getFillStyle2($fillContainer)};
9940
- object-fit: ${({ $objFit }) => $objFit};
9941
- object-position: ${({ $objPosition }) => $objPosition};
9942
- `;
9943
- var Image = ({
9944
- src,
9945
- alt,
9946
- borderRadius,
9947
- fill: fillContainer = false,
9948
- fit: objFit,
9949
- loading = "lazy",
9950
- position: objPosition,
9951
- ...props
9952
- }) => /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
9953
- StyledImage,
9954
- {
9955
- $borderRadius: borderRadius,
9956
- $fillContainer: fillContainer,
9957
- $objFit: objFit,
9958
- $objPosition: objPosition,
9959
- alt,
9960
- loading,
9961
- src,
9962
- ...props
9963
- }
9964
- );
9965
- Image.displayName = "Image";
9966
-
9967
9990
  // src/components/Menu/Menu.tsx
9968
9991
  var import_styled_components54 = __toESM(require("styled-components"));
9969
9992
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
@@ -11381,9 +11404,9 @@ var StyledTrigger = (0, import_styled_components70.default)(import_react_select.
11381
11404
  justify-content: space-between;
11382
11405
  max-width: 100%;
11383
11406
  width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
11384
- color: var(--wui-input-color-text);
11385
11407
  font-size: var(--wui-input-font-size);
11386
11408
  line-height: var(--wui-input-line-height);
11409
+ color: var(--wui-input-color-text);
11387
11410
 
11388
11411
  > span {
11389
11412
  white-space: nowrap;
@@ -11405,7 +11428,7 @@ var StyledTrigger = (0, import_styled_components70.default)(import_react_select.
11405
11428
  background-color: var(--wui-color-bg-surface-disabled);
11406
11429
  }
11407
11430
 
11408
- [data-placeholder] {
11431
+ &[data-placeholder] {
11409
11432
  color: var(--wui-input-placeholder);
11410
11433
  }
11411
11434
  `;
@@ -11451,13 +11474,7 @@ var Select = (0, import_react54.forwardRef)(
11451
11474
  $fullWidth: responsiveFullWidth,
11452
11475
  ...props,
11453
11476
  children: [
11454
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11455
- import_react_select.Value,
11456
- {
11457
- "data-placeholder": placeholder,
11458
- placeholder
11459
- }
11460
- ),
11477
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_select.Value, { placeholder }),
11461
11478
  /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11462
11479
  Icon,
11463
11480
  {