@wistia/ui 0.6.20 → 0.6.21-beta.436de70c.1b0ebf9

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.20
3
+ * @license @wistia/ui v0.6.21-beta.436de70c.1b0ebf9
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7530,207 +7530,124 @@ var Card = ({
7530
7530
  Card.displayName = "Card";
7531
7531
 
7532
7532
  // src/components/Checkbox/Checkbox.tsx
7533
- var import_react19 = require("react");
7534
- var import_react_checkbox = require("@radix-ui/react-checkbox");
7533
+ var import_react18 = require("react");
7535
7534
  var import_styled_components34 = __toESM(require("styled-components"));
7536
- var import_type_guards20 = require("@wistia/type-guards");
7535
+ var import_type_guards22 = require("@wistia/type-guards");
7537
7536
 
7538
- // src/components/Label/Label.tsx
7539
- var import_styled_components32 = __toESM(require("styled-components"));
7537
+ // src/private/components/FormControlLabel/FormControlLabel.tsx
7538
+ var import_styled_components33 = __toESM(require("styled-components"));
7539
+ var import_type_guards21 = require("@wistia/type-guards");
7540
7540
 
7541
- // src/components/Heading/Heading.tsx
7542
- var import_react18 = require("react");
7541
+ // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
7543
7542
  var import_styled_components31 = __toESM(require("styled-components"));
7543
+ var import_type_guards19 = require("@wistia/type-guards");
7544
7544
  var import_jsx_runtime199 = require("react/jsx-runtime");
7545
- var heroStyle = import_styled_components31.css`
7546
- --font-family: var(--wui-typography-heading-hero-family);
7547
- --font-size: var(--wui-typography-heading-hero-size);
7548
- --font-weight: var(--wui-typography-heading-hero-weight);
7549
- --line-height: var(--wui-typography-heading-hero-line-height);
7550
- `;
7551
- var heading1TextStyle = import_styled_components31.css`
7552
- --font-family: var(--wui-typography-heading-1-family);
7553
- --font-size: var(--wui-typography-heading-1-size);
7554
- --font-weight: var(--wui-typography-heading-1-weight);
7555
- --line-height: var(--wui-typography-heading-1-line-height);
7556
- `;
7557
- var heading2TextStyle = import_styled_components31.css`
7558
- --font-family: var(--wui-typography-heading-2-family);
7559
- --font-size: var(--wui-typography-heading-2-size);
7560
- --font-weight: var(--wui-typography-heading-2-weight);
7561
- --line-height: var(--wui-typography-heading-2-line-height);
7562
- `;
7563
- var heading3TextStyle = import_styled_components31.css`
7564
- --font-family: var(--wui-typography-heading-3-family);
7565
- --font-size: var(--wui-typography-heading-3-size);
7566
- --font-weight: var(--wui-typography-heading-3-weight);
7567
- --line-height: var(--wui-typography-heading-3-line-height);
7568
- `;
7569
- var heading4TextStyle = import_styled_components31.css`
7570
- --font-family: var(--wui-typography-heading-4-family);
7571
- --font-size: var(--wui-typography-heading-4-size);
7572
- --font-weight: var(--wui-typography-heading-4-weight);
7573
- --line-height: var(--wui-typography-heading-4-line-height);
7574
- `;
7575
- var heading5TextStyle = import_styled_components31.css`
7576
- --font-family: var(--wui-typography-heading-5-family);
7577
- --font-size: var(--wui-typography-heading-5-size);
7578
- --font-weight: var(--wui-typography-heading-5-weight);
7579
- --line-height: var(--wui-typography-heading-5-line-height);
7580
- `;
7581
- var heading6TextStyle = import_styled_components31.css`
7582
- --font-family: var(--wui-typography-heading-6-family);
7583
- --font-size: var(--wui-typography-heading-6-size);
7584
- --font-weight: var(--wui-typography-heading-6-weight);
7585
- --line-height: var(--wui-typography-heading-6-line-height);
7545
+ var disabledStyle = import_styled_components31.css`
7546
+ color: var(--wui-color-text-disabled);
7586
7547
  `;
7587
- var variantStyleMap = {
7588
- hero: heroStyle,
7589
- heading1: heading1TextStyle,
7590
- heading2: heading2TextStyle,
7591
- heading3: heading3TextStyle,
7592
- heading4: heading4TextStyle,
7593
- heading5: heading5TextStyle,
7594
- heading6: heading6TextStyle
7595
- };
7596
- var DEFAULT_ELEMENT2 = "h1";
7597
- var StyledHeading = import_styled_components31.default.div`
7598
- ${({ $colorScheme }) => getColorScheme($colorScheme)};
7599
- font-family: var(--font-family);
7600
- font-size: var(--font-size);
7601
- font-weight: var(--font-weight);
7602
- line-height: var(--line-height);
7603
- color: var(--wui-color-text);
7604
- ${({ $variant }) => variantStyleMap[$variant]}
7605
- ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
7606
- ${({ $inline }) => $inline && import_styled_components31.css`
7607
- display: inline-block;
7608
- `}
7609
- ${({ $disabled }) => $disabled && import_styled_components31.css`
7610
- color: var(--wui-color-text-disabled);
7611
- `}
7612
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components31.css`
7613
- user-select: none;
7614
- `}
7615
- ${({ $align }) => import_styled_components31.css`
7616
- text-align: ${$align};
7617
- `}
7618
- margin: 0;
7548
+ var StyledFormControlLabelDescription = import_styled_components31.default.div`
7549
+ color: var(--wui-color-text-secondary);
7550
+ display: block;
7551
+ font-size: var(--wui-typography-body-4-size);
7552
+ font-weight: var(--wui-typography-body-4-weight);
7553
+ line-height: var(--wui-typography-body-4-line-height);
7554
+ margin-top: var(--wui-space-01);
7555
+
7556
+ ${({ $disabled }) => $disabled && disabledStyle}
7619
7557
  `;
7620
- var variantElementMap = {
7621
- hero: DEFAULT_ELEMENT2,
7622
- heading1: DEFAULT_ELEMENT2,
7623
- heading2: "h2",
7624
- heading3: "h3",
7625
- heading4: "h4",
7626
- heading5: "h5",
7627
- heading6: "h6"
7628
- };
7629
- var HeadingComponent = (0, import_react18.forwardRef)(
7630
- ({
7631
- align = "left",
7632
- colorScheme = "inherit",
7633
- disabled = false,
7634
- ellipsis = false,
7635
- inline = false,
7636
- preventUserSelect = false,
7637
- variant = "heading1",
7638
- renderAs,
7639
- ...otherProps
7640
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7641
- StyledHeading,
7558
+ var FormControlLabelDescription = ({
7559
+ children,
7560
+ disabled = false,
7561
+ ...props
7562
+ }) => {
7563
+ if ((0, import_type_guards19.isNil)(children)) {
7564
+ return null;
7565
+ }
7566
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7567
+ StyledFormControlLabelDescription,
7642
7568
  {
7643
- ref,
7644
- $align: align,
7645
- $colorScheme: colorScheme,
7569
+ ...props,
7646
7570
  $disabled: disabled,
7647
- $ellipsis: ellipsis,
7648
- $inline: inline,
7649
- $preventUserSelect: preventUserSelect,
7650
- $variant: variant,
7651
- as: renderAs ?? variantElementMap[variant],
7652
- ...otherProps
7571
+ children
7653
7572
  }
7654
- )
7655
- );
7656
- HeadingComponent.displayName = "Heading";
7657
- var Heading = makePolymorphic(HeadingComponent);
7573
+ );
7574
+ };
7575
+ FormControlLabelDescription.displayName = "FormControlLabelDescription";
7658
7576
 
7659
- // src/components/Label/Label.tsx
7577
+ // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7578
+ var import_styled_components32 = __toESM(require("styled-components"));
7579
+ var import_type_guards20 = require("@wistia/type-guards");
7660
7580
  var import_jsx_runtime200 = require("react/jsx-runtime");
7661
- var requiredStyle = import_styled_components32.css`
7662
- &::after {
7663
- color: var(--wui-color-text-error);
7664
- display: inline;
7665
- padding-left: var(--wui-space-01);
7666
- content: '*';
7581
+ var VisuallyHidden = import_styled_components32.default.div({ ...visuallyHiddenStyle });
7582
+ var VisuallyHiddenButFocusable = import_styled_components32.default.div({
7583
+ "&:not(:focus-within)": visuallyHiddenStyle
7584
+ });
7585
+ var ScreenReaderOnly = ({
7586
+ text,
7587
+ children,
7588
+ focusable = false,
7589
+ ...otherProps
7590
+ }) => {
7591
+ const accessibleText = (0, import_type_guards20.isNotNil)(text) ? text : children;
7592
+ if (focusable) {
7593
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7667
7594
  }
7668
- `;
7669
- var disabledStyle = import_styled_components32.css`
7595
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
7596
+ };
7597
+ ScreenReaderOnly.displayName = "ScreenReaderOnly";
7598
+
7599
+ // src/private/components/FormControlLabel/FormControlLabel.tsx
7600
+ var import_jsx_runtime201 = require("react/jsx-runtime");
7601
+ var disabledStyle2 = import_styled_components33.css`
7670
7602
  color: var(--wui-color-text-disabled);
7671
7603
  `;
7672
- var StyledLabel2 = (0, import_styled_components32.default)(Heading).attrs({
7673
- variant: "heading6",
7674
- renderAs: "label"
7675
- })`
7676
- display: block;
7604
+ var StyledLabelWrapper = import_styled_components33.default.div`
7605
+ display: flex;
7606
+ flex-direction: column;
7607
+ `;
7608
+ var StyledFormControlLabel = import_styled_components33.default.label`
7609
+ cursor: pointer;
7610
+ display: flex;
7611
+ align-items: center;
7612
+ gap: var(--wui-space-01);
7677
7613
  width: 100%;
7614
+ color: var(--wui-color-tex);
7615
+ font-size: var(--wui-typography-label-3-size);
7616
+ font-weight: var(--wui-typography-label-3-weight);
7617
+ line-height: var(--wui-typography-label-3-line-height);
7678
7618
 
7679
- /* if label is wrapping an input this ensures it appears beneath the label with a nice margin */
7680
- > input,
7681
- > textarea,
7682
- > select {
7683
- display: block;
7684
- }
7685
-
7686
- > label {
7687
- font-weight: normal;
7688
- }
7689
-
7690
- ${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
7691
- ${({ $disabled }) => $disabled && disabledStyle}
7692
- ${({ $required }) => $required && requiredStyle}
7619
+ ${({ $disabled }) => $disabled && disabledStyle2}
7693
7620
  `;
7694
- var Label = ({
7695
- children,
7621
+ var FormControlLabel = ({
7622
+ label,
7623
+ description,
7696
7624
  disabled = false,
7625
+ controlSlot,
7697
7626
  htmlFor,
7698
- required = false,
7699
- screenReaderOnly = false,
7700
- ...otherProps
7701
- }) => /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7702
- StyledLabel2,
7703
- {
7704
- ...otherProps,
7705
- $disabled: disabled,
7706
- $required: required,
7707
- $screenReaderOnly: screenReaderOnly,
7708
- htmlFor,
7709
- children
7710
- }
7711
- );
7712
- Label.displayName = "Label";
7713
-
7714
- // src/components/Label/LabelDescription.tsx
7715
- var import_styled_components33 = __toESM(require("styled-components"));
7716
- var import_type_guards19 = require("@wistia/type-guards");
7717
- var import_jsx_runtime201 = require("react/jsx-runtime");
7718
- var StyledLabelDescription = import_styled_components33.default.div`
7719
- color: var(--wui-color-text-secondary);
7720
- font-size: var(--wui-typography-body-4-size);
7721
- font-weight: var(--wui-typography-body-4-weight);
7722
- line-height: var(--wui-typography-body-4-line-height);
7723
- `;
7724
- var LabelDescription = ({
7725
- children,
7627
+ hideLabel = false,
7726
7628
  ...props
7727
7629
  }) => {
7728
- if ((0, import_type_guards19.isNil)(children)) {
7630
+ if ((0, import_type_guards21.isNil)(label)) {
7729
7631
  return null;
7730
7632
  }
7731
- return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(StyledLabelDescription, { ...props, children });
7633
+ const labelContent = hideLabel ? /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(StyledLabelWrapper, { children: [
7634
+ label,
7635
+ /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(FormControlLabelDescription, { children: description })
7636
+ ] });
7637
+ return /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(
7638
+ StyledFormControlLabel,
7639
+ {
7640
+ $disabled: disabled,
7641
+ htmlFor,
7642
+ ...props,
7643
+ children: [
7644
+ (0, import_type_guards21.isNotNil)(controlSlot) ? controlSlot : null,
7645
+ labelContent
7646
+ ]
7647
+ }
7648
+ );
7732
7649
  };
7733
- LabelDescription.displayName = "LabelDescription";
7650
+ FormControlLabel.displayName = "FormControlLabel";
7734
7651
 
7735
7652
  // src/components/Checkbox/Checkbox.tsx
7736
7653
  var import_jsx_runtime202 = require("react/jsx-runtime");
@@ -7746,133 +7663,145 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7746
7663
  "path",
7747
7664
  {
7748
7665
  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",
7749
- fill: "white"
7666
+ fill: "currentColor"
7750
7667
  }
7751
7668
  )
7752
7669
  }
7753
7670
  );
7671
+ var disabledStyle3 = import_styled_components34.css`
7672
+ cursor: not-allowed;
7673
+ opacity: 0.5;
7674
+ `;
7675
+ var inputSizeSmall = import_styled_components34.css`
7676
+ width: 14px;
7677
+ height: 14px;
7678
+ min-width: 14px;
7679
+ min-height: 14px;
7680
+ `;
7681
+ var inputSizeMedium = import_styled_components34.css`
7682
+ width: 16px;
7683
+ height: 16px;
7684
+ min-width: 16px;
7685
+ min-height: 16px;
7686
+ `;
7687
+ var inputSizeLarge = import_styled_components34.css`
7688
+ width: 20px;
7689
+ height: 20px;
7690
+ min-width: 20px;
7691
+ min-height: 20px;
7692
+ `;
7754
7693
  var StyledCheckboxWrapper = import_styled_components34.default.div`
7755
7694
  display: flex;
7756
- align-items: center;
7757
- cursor: pointer;
7695
+ margin: 0;
7758
7696
 
7759
- &:hover {
7760
- /* TODO Lamp to design hover state */
7761
- }
7697
+ /* TODO this solves a problem but potentially causes and a11y issue */
7698
+ user-select: none;
7762
7699
 
7763
- &:focus-within {
7764
- /* TODO Lamp to design focus state */
7765
- background-color: #efefef;
7766
- }
7700
+ ${({ disabled }) => disabled && disabledStyle3};
7767
7701
  `;
7768
- var StyledCheckboxRoot = (0, import_styled_components34.default)(import_react_checkbox.Root)`
7769
- all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
7770
- background-color: var(--wui-color-bg-fill-white);
7771
- min-width: 16px;
7772
- min-height: 16px;
7702
+ var getSizeCss = (size) => {
7703
+ if (size === "sm") return inputSizeSmall;
7704
+ if (size === "lg") return inputSizeLarge;
7705
+ return inputSizeMedium;
7706
+ };
7707
+ var StyledCheckboxInput = import_styled_components34.default.div`
7708
+ ${({ $size }) => getSizeCss($size)}
7709
+ line-height: 0;
7710
+ margin: 0;
7711
+ border: 1px solid var(--wui-color-border);
7773
7712
  border-radius: var(--wui-border-radius-01);
7774
- border-width: 1px;
7775
- border-style: solid;
7776
- border-color: var(--wui-color-border);
7777
- display: flex;
7778
- align-items: center;
7779
- justify-content: center;
7780
- align-self: start; /* align to the top to handle label descriptions */
7781
-
7782
- &[data-state='checked'] {
7783
- background-color: var(--wui-color-bg-fill);
7784
- }
7713
+ background-color: var(--wui-color-bg-fill-white);
7714
+ display: grid;
7715
+ place-content: center;
7716
+ align-self: flex-start;
7785
7717
 
7786
- &[disabled] {
7787
- background-color: var(--wui-color-bg-surface-disabled);
7718
+ svg {
7719
+ display: none;
7788
7720
 
7789
- svg path {
7790
- fill: var(--wui-color-icon-disabled);
7721
+ path {
7722
+ fill: var(--wui-color-bg-fill-white);
7791
7723
  }
7792
7724
  }
7725
+ `;
7726
+ var StyledHiddenCheckboxInput = import_styled_components34.default.input`
7727
+ ${visuallyHiddenStyle}
7793
7728
 
7794
- &:hover {
7795
- /* TODO Lamp to design hover state */
7729
+ /* toggles display of faux-input background-color */
7730
+ &:checked + label [data-wui-faux-input='true'] {
7731
+ background-color: var(--wui-color-bg-fill);
7796
7732
  }
7797
7733
 
7798
- &:focus {
7799
- /* TODO Lamp to design focus state */
7734
+ /* toggles display of CheckIcon */
7735
+ &:checked + label svg {
7736
+ display: block;
7800
7737
  }
7801
7738
  `;
7802
- var StyledCheckboxIndicator = (0, import_styled_components34.default)(import_react_checkbox.Indicator)`
7803
- display: flex;
7804
- `;
7805
- var StyledLabelWrapper = import_styled_components34.default.div`
7806
- display: flex;
7807
- flex-direction: column;
7808
- margin-left: var(--wui-space-02);
7809
- `;
7810
- var Checkbox = (0, import_react19.forwardRef)(
7739
+ var Checkbox = (0, import_react18.forwardRef)(
7811
7740
  ({
7812
7741
  checked,
7813
7742
  disabled = false,
7814
- forceState,
7815
7743
  id,
7816
7744
  label,
7817
7745
  description,
7818
7746
  name,
7819
7747
  onChange,
7748
+ size = "md",
7749
+ value,
7820
7750
  required = false,
7821
- value = "false",
7822
- ...otherProps
7751
+ hideLabel = false,
7752
+ ...props
7823
7753
  }, ref) => {
7824
- const generatedId = (0, import_react19.useId)();
7825
- const computedId = (0, import_type_guards20.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-group-${generatedId}`;
7826
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(StyledCheckboxWrapper, { children: [
7827
- /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7828
- StyledCheckboxRoot,
7829
- {
7830
- ref,
7831
- "aria-label": label,
7832
- checked: checked ?? void 0,
7833
- defaultChecked: checked === void 0 ? false : void 0,
7834
- disabled,
7835
- id: computedId,
7836
- name,
7837
- onCheckedChange: (state) => {
7838
- if (onChange) {
7839
- const syntheticEvent = {
7840
- target: {
7841
- name,
7842
- id: computedId,
7843
- checked: state === true
7754
+ const generatedId = (0, import_react18.useId)();
7755
+ const computedId = (0, import_type_guards22.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
7756
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(
7757
+ StyledCheckboxWrapper,
7758
+ {
7759
+ ref,
7760
+ disabled,
7761
+ children: [
7762
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7763
+ StyledHiddenCheckboxInput,
7764
+ {
7765
+ ...props,
7766
+ ref,
7767
+ checked,
7768
+ disabled,
7769
+ id: computedId,
7770
+ name,
7771
+ onChange,
7772
+ required,
7773
+ type: "checkbox",
7774
+ value
7775
+ }
7776
+ ),
7777
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7778
+ FormControlLabel,
7779
+ {
7780
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7781
+ StyledCheckboxInput,
7782
+ {
7783
+ $size: size,
7784
+ "data-wui-faux-input": "true",
7785
+ children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(CheckIcon, {})
7844
7786
  }
7845
- };
7846
- onChange(syntheticEvent);
7787
+ ),
7788
+ description,
7789
+ hideLabel,
7790
+ htmlFor: computedId,
7791
+ label
7847
7792
  }
7848
- },
7849
- required,
7850
- value,
7851
- ...otherProps,
7852
- children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(StyledCheckboxIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(CheckIcon, {}) })
7853
- }
7854
- ),
7855
- /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(StyledLabelWrapper, { children: [
7856
- /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7857
- Label,
7858
- {
7859
- disabled,
7860
- htmlFor: computedId,
7861
- required,
7862
- children: label
7863
- }
7864
- ),
7865
- /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(LabelDescription, { children: description })
7866
- ] })
7867
- ] });
7793
+ )
7794
+ ]
7795
+ }
7796
+ );
7868
7797
  }
7869
7798
  );
7870
7799
  Checkbox.displayName = "Checkbox";
7871
7800
 
7872
7801
  // src/components/ClickRegion/ClickRegion.tsx
7873
- var import_react20 = require("react");
7802
+ var import_react19 = require("react");
7874
7803
  var ClickRegion = ({ children, targetRef }) => {
7875
- (0, import_react20.useEffect)(() => {
7804
+ (0, import_react19.useEffect)(() => {
7876
7805
  if (targetRef.current && targetRef.current.tagName === "A") {
7877
7806
  targetRef.current.setAttribute("data-click-region-target-link", "");
7878
7807
  } else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
@@ -7880,7 +7809,7 @@ var ClickRegion = ({ children, targetRef }) => {
7880
7809
  } else {
7881
7810
  }
7882
7811
  }, [targetRef]);
7883
- const handleClick = (0, import_react20.useCallback)(
7812
+ const handleClick = (0, import_react19.useCallback)(
7884
7813
  (event) => {
7885
7814
  const node = targetRef.current;
7886
7815
  if (event.target instanceof HTMLAnchorElement && !event.target.hasAttribute("data-click-region-target-link") || event.target instanceof HTMLButtonElement && !event.target.hasAttribute("data-click-region-target-button")) {
@@ -7897,7 +7826,7 @@ var ClickRegion = ({ children, targetRef }) => {
7897
7826
  },
7898
7827
  [targetRef]
7899
7828
  );
7900
- return (0, import_react20.cloneElement)(import_react20.Children.only(children), {
7829
+ return (0, import_react19.cloneElement)(import_react19.Children.only(children), {
7901
7830
  "data-click-region": true,
7902
7831
  onClick: handleClick
7903
7832
  });
@@ -7906,7 +7835,7 @@ ClickRegion.displayName = "ClickRegion";
7906
7835
 
7907
7836
  // src/components/Collapsible/Collapsible.tsx
7908
7837
  var import_react_collapsible = require("@radix-ui/react-collapsible");
7909
- var import_type_guards21 = require("@wistia/type-guards");
7838
+ var import_type_guards23 = require("@wistia/type-guards");
7910
7839
  var import_styled_components35 = __toESM(require("styled-components"));
7911
7840
  var import_jsx_runtime203 = require("react/jsx-runtime");
7912
7841
  var StyledRoot = (0, import_styled_components35.default)(import_react_collapsible.Root)`
@@ -7923,31 +7852,31 @@ var Collapsible = ({
7923
7852
  onOpenChange
7924
7853
  }) => {
7925
7854
  const controlProps = {
7926
- ...(0, import_type_guards21.isNotNil)(onOpenChange) && (0, import_type_guards21.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
7855
+ ...(0, import_type_guards23.isNotNil)(onOpenChange) && (0, import_type_guards23.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
7927
7856
  };
7928
7857
  return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(StyledRoot, { ...controlProps, children });
7929
7858
  };
7930
7859
  Collapsible.displayName = "Collapsible";
7931
7860
 
7932
7861
  // src/components/Collapsible/CollapsibleTrigger.tsx
7933
- var import_react21 = require("react");
7862
+ var import_react20 = require("react");
7934
7863
  var import_react_collapsible2 = require("@radix-ui/react-collapsible");
7935
7864
  var import_jsx_runtime204 = require("react/jsx-runtime");
7936
7865
  var CollapsibleTrigger = ({ children }) => {
7937
- import_react21.Children.only(children);
7866
+ import_react20.Children.only(children);
7938
7867
  return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
7939
7868
  };
7940
7869
 
7941
7870
  // src/components/Collapsible/CollapsibleContent.tsx
7942
7871
  var import_styled_components36 = __toESM(require("styled-components"));
7943
7872
  var import_react_collapsible3 = require("@radix-ui/react-collapsible");
7944
- var import_type_guards22 = require("@wistia/type-guards");
7873
+ var import_type_guards24 = require("@wistia/type-guards");
7945
7874
  var import_jsx_runtime205 = require("react/jsx-runtime");
7946
7875
  var ClampedContent = import_styled_components36.default.div.attrs({ "data-wui-collapsible-content": true })`
7947
7876
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
7948
7877
  `;
7949
7878
  var CollapsibleContent = ({ clamp, children }) => {
7950
- if ((0, import_type_guards22.isNotUndefined)(clamp)) {
7879
+ if ((0, import_type_guards24.isNotUndefined)(clamp)) {
7951
7880
  return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(ClampedContent, { $clamp: clamp, children });
7952
7881
  }
7953
7882
  return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(import_react_collapsible3.Content, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(import_jsx_runtime205.Fragment, { children: [
@@ -7957,10 +7886,130 @@ var CollapsibleContent = ({ clamp, children }) => {
7957
7886
  };
7958
7887
 
7959
7888
  // src/components/DataCards/DataCard.tsx
7889
+ var import_styled_components38 = __toESM(require("styled-components"));
7890
+ var import_type_guards25 = require("@wistia/type-guards");
7891
+
7892
+ // src/components/Heading/Heading.tsx
7893
+ var import_react21 = require("react");
7960
7894
  var import_styled_components37 = __toESM(require("styled-components"));
7961
- var import_type_guards23 = require("@wistia/type-guards");
7962
7895
  var import_jsx_runtime206 = require("react/jsx-runtime");
7963
- var StyledDataCard = import_styled_components37.default.div`
7896
+ var heroStyle = import_styled_components37.css`
7897
+ --font-family: var(--wui-typography-heading-hero-family);
7898
+ --font-size: var(--wui-typography-heading-hero-size);
7899
+ --font-weight: var(--wui-typography-heading-hero-weight);
7900
+ --line-height: var(--wui-typography-heading-hero-line-height);
7901
+ `;
7902
+ var heading1TextStyle = import_styled_components37.css`
7903
+ --font-family: var(--wui-typography-heading-1-family);
7904
+ --font-size: var(--wui-typography-heading-1-size);
7905
+ --font-weight: var(--wui-typography-heading-1-weight);
7906
+ --line-height: var(--wui-typography-heading-1-line-height);
7907
+ `;
7908
+ var heading2TextStyle = import_styled_components37.css`
7909
+ --font-family: var(--wui-typography-heading-2-family);
7910
+ --font-size: var(--wui-typography-heading-2-size);
7911
+ --font-weight: var(--wui-typography-heading-2-weight);
7912
+ --line-height: var(--wui-typography-heading-2-line-height);
7913
+ `;
7914
+ var heading3TextStyle = import_styled_components37.css`
7915
+ --font-family: var(--wui-typography-heading-3-family);
7916
+ --font-size: var(--wui-typography-heading-3-size);
7917
+ --font-weight: var(--wui-typography-heading-3-weight);
7918
+ --line-height: var(--wui-typography-heading-3-line-height);
7919
+ `;
7920
+ var heading4TextStyle = import_styled_components37.css`
7921
+ --font-family: var(--wui-typography-heading-4-family);
7922
+ --font-size: var(--wui-typography-heading-4-size);
7923
+ --font-weight: var(--wui-typography-heading-4-weight);
7924
+ --line-height: var(--wui-typography-heading-4-line-height);
7925
+ `;
7926
+ var heading5TextStyle = import_styled_components37.css`
7927
+ --font-family: var(--wui-typography-heading-5-family);
7928
+ --font-size: var(--wui-typography-heading-5-size);
7929
+ --font-weight: var(--wui-typography-heading-5-weight);
7930
+ --line-height: var(--wui-typography-heading-5-line-height);
7931
+ `;
7932
+ var heading6TextStyle = import_styled_components37.css`
7933
+ --font-family: var(--wui-typography-heading-6-family);
7934
+ --font-size: var(--wui-typography-heading-6-size);
7935
+ --font-weight: var(--wui-typography-heading-6-weight);
7936
+ --line-height: var(--wui-typography-heading-6-line-height);
7937
+ `;
7938
+ var variantStyleMap = {
7939
+ hero: heroStyle,
7940
+ heading1: heading1TextStyle,
7941
+ heading2: heading2TextStyle,
7942
+ heading3: heading3TextStyle,
7943
+ heading4: heading4TextStyle,
7944
+ heading5: heading5TextStyle,
7945
+ heading6: heading6TextStyle
7946
+ };
7947
+ var DEFAULT_ELEMENT2 = "h1";
7948
+ var StyledHeading = import_styled_components37.default.div`
7949
+ ${({ $colorScheme }) => getColorScheme($colorScheme)};
7950
+ font-family: var(--font-family);
7951
+ font-size: var(--font-size);
7952
+ font-weight: var(--font-weight);
7953
+ line-height: var(--line-height);
7954
+ color: var(--wui-color-text);
7955
+ ${({ $variant }) => variantStyleMap[$variant]}
7956
+ ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
7957
+ ${({ $inline }) => $inline && import_styled_components37.css`
7958
+ display: inline-block;
7959
+ `}
7960
+ ${({ $disabled }) => $disabled && import_styled_components37.css`
7961
+ color: var(--wui-color-text-disabled);
7962
+ `}
7963
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
7964
+ user-select: none;
7965
+ `}
7966
+ ${({ $align }) => import_styled_components37.css`
7967
+ text-align: ${$align};
7968
+ `}
7969
+ margin: 0;
7970
+ `;
7971
+ var variantElementMap = {
7972
+ hero: DEFAULT_ELEMENT2,
7973
+ heading1: DEFAULT_ELEMENT2,
7974
+ heading2: "h2",
7975
+ heading3: "h3",
7976
+ heading4: "h4",
7977
+ heading5: "h5",
7978
+ heading6: "h6"
7979
+ };
7980
+ var HeadingComponent = (0, import_react21.forwardRef)(
7981
+ ({
7982
+ align = "left",
7983
+ colorScheme = "inherit",
7984
+ disabled = false,
7985
+ ellipsis = false,
7986
+ inline = false,
7987
+ preventUserSelect = false,
7988
+ variant = "heading1",
7989
+ renderAs,
7990
+ ...otherProps
7991
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
7992
+ StyledHeading,
7993
+ {
7994
+ ref,
7995
+ $align: align,
7996
+ $colorScheme: colorScheme,
7997
+ $disabled: disabled,
7998
+ $ellipsis: ellipsis,
7999
+ $inline: inline,
8000
+ $preventUserSelect: preventUserSelect,
8001
+ $variant: variant,
8002
+ as: renderAs ?? variantElementMap[variant],
8003
+ ...otherProps
8004
+ }
8005
+ )
8006
+ );
8007
+ HeadingComponent.displayName = "Heading";
8008
+ var Heading = makePolymorphic(HeadingComponent);
8009
+
8010
+ // src/components/DataCards/DataCard.tsx
8011
+ var import_jsx_runtime207 = require("react/jsx-runtime");
8012
+ var StyledDataCard = import_styled_components38.default.div`
7964
8013
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
7965
8014
  display: grid;
7966
8015
  grid-template-areas: 'label slot' 'value value';
@@ -7973,7 +8022,7 @@ var StyledDataCard = import_styled_components37.default.div`
7973
8022
  border-radius: var(--wui-border-radius-02);
7974
8023
  position: relative;
7975
8024
  `;
7976
- var shimmer = import_styled_components37.keyframes`
8025
+ var shimmer = import_styled_components38.keyframes`
7977
8026
  0% {
7978
8027
  background-position: 200% 0;
7979
8028
  }
@@ -7981,7 +8030,7 @@ var shimmer = import_styled_components37.keyframes`
7981
8030
  background-position: -200% 0;
7982
8031
  }
7983
8032
  `;
7984
- var LoadingBackground = import_styled_components37.default.div`
8033
+ var LoadingBackground = import_styled_components38.default.div`
7985
8034
  background: linear-gradient(
7986
8035
  90deg,
7987
8036
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -7992,27 +8041,27 @@ var LoadingBackground = import_styled_components37.default.div`
7992
8041
  animation: ${shimmer} 1.5s infinite;
7993
8042
  border-radius: var(--wui-border-radius-01);
7994
8043
  `;
7995
- var StyledLoadingLabel = (0, import_styled_components37.default)(LoadingBackground)`
8044
+ var StyledLoadingLabel = (0, import_styled_components38.default)(LoadingBackground)`
7996
8045
  width: 80px;
7997
8046
  height: var(--wui-typography-heading-6-line-height);
7998
8047
  `;
7999
- var StyledLoadingValue = (0, import_styled_components37.default)(LoadingBackground)`
8048
+ var StyledLoadingValue = (0, import_styled_components38.default)(LoadingBackground)`
8000
8049
  width: 90%;
8001
8050
  height: var(--wui-typography-heading-3-line-height);
8002
8051
  `;
8003
- var StyledLabel3 = (0, import_styled_components37.default)(Heading)`
8052
+ var StyledLabel2 = (0, import_styled_components38.default)(Heading)`
8004
8053
  grid-area: label;
8005
8054
  `;
8006
- var StyledValue = (0, import_styled_components37.default)(Heading)`
8055
+ var StyledValue = (0, import_styled_components38.default)(Heading)`
8007
8056
  grid-area: value;
8008
8057
  `;
8009
- var StyledSlot = import_styled_components37.default.div`
8058
+ var StyledSlot = import_styled_components38.default.div`
8010
8059
  display: flex;
8011
8060
  justify-content: flex-end;
8012
8061
  grid-area: slot;
8013
8062
  align-self: center;
8014
8063
  `;
8015
- var StyledDataCardTrendContainer = import_styled_components37.default.div`
8064
+ var StyledDataCardTrendContainer = import_styled_components38.default.div`
8016
8065
  position: absolute;
8017
8066
  bottom: var(--wui-space-01);
8018
8067
  right: var(--wui-space-01);
@@ -8025,39 +8074,39 @@ var DataCard = ({
8025
8074
  isLoading = false,
8026
8075
  trend,
8027
8076
  ...props
8028
- }) => /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
8077
+ }) => /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
8029
8078
  StyledDataCard,
8030
8079
  {
8031
8080
  $colorScheme: colorScheme,
8032
8081
  ...props,
8033
8082
  children: [
8034
- /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
8035
- StyledLabel3,
8083
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8084
+ StyledLabel2,
8036
8085
  {
8037
8086
  renderAs: "dt",
8038
8087
  variant: "heading6",
8039
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(StyledLoadingLabel, {}) : label
8088
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledLoadingLabel, {}) : label
8040
8089
  }
8041
8090
  ),
8042
- /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
8091
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8043
8092
  StyledValue,
8044
8093
  {
8045
8094
  renderAs: "dd",
8046
8095
  variant: "heading3",
8047
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(StyledLoadingValue, {}) : value
8096
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledLoadingValue, {}) : value
8048
8097
  }
8049
8098
  ),
8050
- (0, import_type_guards23.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(StyledSlot, { children: upperRightSlot }),
8051
- (0, import_type_guards23.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(StyledDataCardTrendContainer, { children: trend })
8099
+ (0, import_type_guards25.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledSlot, { children: upperRightSlot }),
8100
+ (0, import_type_guards25.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledDataCardTrendContainer, { children: trend })
8052
8101
  ]
8053
8102
  }
8054
8103
  );
8055
8104
  DataCard.displayName = "DataCard";
8056
8105
 
8057
8106
  // src/components/DataCards/DataCards.tsx
8058
- var import_styled_components38 = __toESM(require("styled-components"));
8059
- var import_jsx_runtime207 = require("react/jsx-runtime");
8060
- var StyledDataCards = (0, import_styled_components38.default)(Box)`
8107
+ var import_styled_components39 = __toESM(require("styled-components"));
8108
+ var import_jsx_runtime208 = require("react/jsx-runtime");
8109
+ var StyledDataCards = (0, import_styled_components39.default)(Box)`
8061
8110
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8062
8111
  margin-top: 0; /* Remove default <dl> style */
8063
8112
  > * {
@@ -8071,7 +8120,7 @@ var DataCards = ({
8071
8120
  colorScheme = "inherit",
8072
8121
  ...props
8073
8122
  }) => {
8074
- return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8123
+ return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8075
8124
  StyledDataCards,
8076
8125
  {
8077
8126
  ...props,
@@ -8089,25 +8138,25 @@ var DataCards = ({
8089
8138
  DataCards.displayName = "DataCards";
8090
8139
 
8091
8140
  // src/components/DataCards/DataCardTrend.tsx
8092
- var import_styled_components40 = __toESM(require("styled-components"));
8141
+ var import_styled_components41 = __toESM(require("styled-components"));
8093
8142
 
8094
8143
  // src/components/Text/Text.tsx
8095
8144
  var import_react22 = require("react");
8096
- var import_styled_components39 = __toESM(require("styled-components"));
8097
- var import_jsx_runtime208 = require("react/jsx-runtime");
8098
- var bodyBoldStyles = import_styled_components39.css`
8145
+ var import_styled_components40 = __toESM(require("styled-components"));
8146
+ var import_jsx_runtime209 = require("react/jsx-runtime");
8147
+ var bodyBoldStyles = import_styled_components40.css`
8099
8148
  > strong,
8100
8149
  b {
8101
8150
  font-weight: var(--wui-typography-weight-body-bold);
8102
8151
  }
8103
8152
  `;
8104
- var labelBoldStyles = import_styled_components39.css`
8153
+ var labelBoldStyles = import_styled_components40.css`
8105
8154
  > strong,
8106
8155
  b {
8107
8156
  font-weight: var(--wui-typography-weight-label-bold);
8108
8157
  }
8109
8158
  `;
8110
- var body1TextStyle = import_styled_components39.css`
8159
+ var body1TextStyle = import_styled_components40.css`
8111
8160
  --font-family: var(--wui-typography-body-1-family);
8112
8161
  --font-size: var(--wui-typography-body-1-size);
8113
8162
  --font-weight: var(--wui-typography-body-1-weight);
@@ -8115,7 +8164,7 @@ var body1TextStyle = import_styled_components39.css`
8115
8164
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8116
8165
  ${bodyBoldStyles}
8117
8166
  `;
8118
- var body2TextStyle = import_styled_components39.css`
8167
+ var body2TextStyle = import_styled_components40.css`
8119
8168
  --font-family: var(--wui-typography-body-2-family);
8120
8169
  --font-size: var(--wui-typography-body-2-size);
8121
8170
  --font-weight: var(--wui-typography-body-2-weight);
@@ -8123,7 +8172,7 @@ var body2TextStyle = import_styled_components39.css`
8123
8172
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8124
8173
  ${bodyBoldStyles}
8125
8174
  `;
8126
- var body3TextStyle = import_styled_components39.css`
8175
+ var body3TextStyle = import_styled_components40.css`
8127
8176
  --font-family: var(--wui-typography-body-3-family);
8128
8177
  --font-size: var(--wui-typography-body-3-size);
8129
8178
  --font-weight: var(--wui-typography-body-3-weight);
@@ -8131,7 +8180,7 @@ var body3TextStyle = import_styled_components39.css`
8131
8180
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8132
8181
  ${bodyBoldStyles}
8133
8182
  `;
8134
- var body4TextStyle = import_styled_components39.css`
8183
+ var body4TextStyle = import_styled_components40.css`
8135
8184
  --font-family: var(--wui-typography-body-4-family);
8136
8185
  --font-size: var(--wui-typography-body-4-size);
8137
8186
  --font-weight: var(--wui-typography-body-4-weight);
@@ -8139,47 +8188,47 @@ var body4TextStyle = import_styled_components39.css`
8139
8188
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8140
8189
  ${bodyBoldStyles}
8141
8190
  `;
8142
- var label1TextStyle = import_styled_components39.css`
8191
+ var label1TextStyle = import_styled_components40.css`
8143
8192
  --font-family: var(--wui-typography-label-1-family);
8144
8193
  --font-size: var(--wui-typography-label-1-size);
8145
8194
  --font-weight: var(--wui-typography-label-1-weight);
8146
8195
  --line-height: var(--wui-typography-label-1-line-height);
8147
8196
  ${labelBoldStyles}
8148
8197
  `;
8149
- var label2TextStyle = import_styled_components39.css`
8198
+ var label2TextStyle = import_styled_components40.css`
8150
8199
  --font-family: var(--wui-typography-label-2-family);
8151
8200
  --font-size: var(--wui-typography-label-2-size);
8152
8201
  --font-weight: var(--wui-typography-label-2-weight);
8153
8202
  --line-height: var(--wui-typography-label-2-line-height);
8154
8203
  ${labelBoldStyles}
8155
8204
  `;
8156
- var label3TextStyle = import_styled_components39.css`
8205
+ var label3TextStyle = import_styled_components40.css`
8157
8206
  --font-family: var(--wui-typography-label-3-family);
8158
8207
  --font-size: var(--wui-typography-label-3-size);
8159
8208
  --font-weight: var(--wui-typography-label-3-weight);
8160
8209
  --line-height: var(--wui-typography-label-3-line-height);
8161
8210
  ${labelBoldStyles}
8162
8211
  `;
8163
- var label4TextStyle = import_styled_components39.css`
8212
+ var label4TextStyle = import_styled_components40.css`
8164
8213
  --font-family: var(--wui-typography-label-4-family);
8165
8214
  --font-size: var(--wui-typography-label-4-size);
8166
8215
  --font-weight: var(--wui-typography-label-4-weight);
8167
8216
  --line-height: var(--wui-typography-label-4-line-height);
8168
8217
  ${labelBoldStyles}
8169
8218
  `;
8170
- var body1MonoTextStyle = import_styled_components39.css`
8219
+ var body1MonoTextStyle = import_styled_components40.css`
8171
8220
  ${body1TextStyle};
8172
8221
  --font-family: var(--wui-typography-family-mono);
8173
8222
  `;
8174
- var body2MonoTextStyle = import_styled_components39.css`
8223
+ var body2MonoTextStyle = import_styled_components40.css`
8175
8224
  ${body2TextStyle};
8176
8225
  --font-family: var(--wui-typography-family-mono);
8177
8226
  `;
8178
- var body3MonoTextStyle = import_styled_components39.css`
8227
+ var body3MonoTextStyle = import_styled_components40.css`
8179
8228
  ${body3TextStyle};
8180
8229
  --font-family: var(--wui-typography-family-mono);
8181
8230
  `;
8182
- var body4MonoTextStyle = import_styled_components39.css`
8231
+ var body4MonoTextStyle = import_styled_components40.css`
8183
8232
  ${body4TextStyle};
8184
8233
  --font-family: var(--wui-typography-family-mono);
8185
8234
  `;
@@ -8214,7 +8263,7 @@ var variantElementMap2 = {
8214
8263
  label3: labelElement,
8215
8264
  label4: labelElement
8216
8265
  };
8217
- var StyledText = import_styled_components39.default.div`
8266
+ var StyledText = import_styled_components40.default.div`
8218
8267
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8219
8268
  --text-color: ${({ $prominence, $disabled }) => {
8220
8269
  if ($disabled) {
@@ -8238,19 +8287,19 @@ var StyledText = import_styled_components39.default.div`
8238
8287
  margin: 0;
8239
8288
  ${({ $variant }) => variantStyleMap2[$variant]}
8240
8289
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8241
- ${({ $inline }) => $inline && import_styled_components39.css`
8290
+ ${({ $inline }) => $inline && import_styled_components40.css`
8242
8291
  display: inline-block;
8243
8292
  `}
8244
- ${({ $disabled }) => $disabled && import_styled_components39.css`
8293
+ ${({ $disabled }) => $disabled && import_styled_components40.css`
8245
8294
  --text-color: var(--wui-color-text-disabled);
8246
8295
  `}
8247
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components39.css`
8296
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components40.css`
8248
8297
  user-select: none;
8249
8298
  `}
8250
- ${({ $align }) => import_styled_components39.css`
8299
+ ${({ $align }) => import_styled_components40.css`
8251
8300
  text-align: ${$align};
8252
8301
  `}
8253
- ${({ as }) => as === "p" && import_styled_components39.css`
8302
+ ${({ as }) => as === "p" && import_styled_components40.css`
8254
8303
  display: block;
8255
8304
 
8256
8305
  + p {
@@ -8271,7 +8320,7 @@ var TextComponent = (0, import_react22.forwardRef)(
8271
8320
  renderAs,
8272
8321
  ...otherProps
8273
8322
  }, ref) => {
8274
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8323
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
8275
8324
  StyledText,
8276
8325
  {
8277
8326
  ref,
@@ -8293,8 +8342,8 @@ TextComponent.displayName = "Text";
8293
8342
  var Text = makePolymorphic(TextComponent);
8294
8343
 
8295
8344
  // src/components/DataCards/DataCardTrend.tsx
8296
- var import_jsx_runtime209 = require("react/jsx-runtime");
8297
- var StyledDataCardTrend = import_styled_components40.default.div`
8345
+ var import_jsx_runtime210 = require("react/jsx-runtime");
8346
+ var StyledDataCardTrend = import_styled_components41.default.div`
8298
8347
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
8299
8348
  background: var(--wui-color-bg-app);
8300
8349
  border-radius: var(--wui-border-radius-rounded);
@@ -8309,8 +8358,8 @@ var DataCardTrend = ({
8309
8358
  children,
8310
8359
  ...props
8311
8360
  }) => {
8312
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
8313
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
8361
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
8362
+ /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
8314
8363
  Icon,
8315
8364
  {
8316
8365
  size: "md",
@@ -8318,7 +8367,7 @@ var DataCardTrend = ({
8318
8367
  ...props
8319
8368
  }
8320
8369
  ),
8321
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
8370
+ /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
8322
8371
  Text,
8323
8372
  {
8324
8373
  prominence: "secondary",
@@ -8330,22 +8379,22 @@ var DataCardTrend = ({
8330
8379
  };
8331
8380
 
8332
8381
  // src/components/Divider/Divider.tsx
8333
- var import_styled_components41 = __toESM(require("styled-components"));
8334
- var import_jsx_runtime210 = require("react/jsx-runtime");
8335
- var horizontalBorderCss = import_styled_components41.css`
8382
+ var import_styled_components42 = __toESM(require("styled-components"));
8383
+ var import_jsx_runtime211 = require("react/jsx-runtime");
8384
+ var horizontalBorderCss = import_styled_components42.css`
8336
8385
  border-top-color: var(--wui-color-border);
8337
8386
  border-top-style: solid;
8338
8387
  border-top-width: 1px;
8339
8388
  clear: both; /* for horizontal dividers, ensure it clears any floats */
8340
8389
  height: 0;
8341
8390
  `;
8342
- var verticalBorderCss = import_styled_components41.css`
8391
+ var verticalBorderCss = import_styled_components42.css`
8343
8392
  background-color: var(--wui-color-border);
8344
8393
  max-width: 1px;
8345
8394
  min-height: 100%;
8346
8395
  width: 1px;
8347
8396
  `;
8348
- var DividerComponent = import_styled_components41.default.div`
8397
+ var DividerComponent = import_styled_components42.default.div`
8349
8398
  ${({ $orientation }) => {
8350
8399
  switch ($orientation) {
8351
8400
  case "vertical":
@@ -8360,7 +8409,7 @@ var Divider = ({
8360
8409
  orientation = "horizontal",
8361
8410
  ...otherProps
8362
8411
  }) => {
8363
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
8412
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
8364
8413
  DividerComponent,
8365
8414
  {
8366
8415
  $orientation: orientation,
@@ -8376,28 +8425,6 @@ Divider.displayName = "Divider";
8376
8425
  var import_styled_components45 = __toESM(require("styled-components"));
8377
8426
  var import_react24 = require("react");
8378
8427
 
8379
- // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
8380
- var import_styled_components42 = __toESM(require("styled-components"));
8381
- var import_type_guards24 = require("@wistia/type-guards");
8382
- var import_jsx_runtime211 = require("react/jsx-runtime");
8383
- var VisuallyHidden = import_styled_components42.default.div({ ...visuallyHiddenStyle });
8384
- var VisuallyHiddenButFocusable = import_styled_components42.default.div({
8385
- "&:not(:focus-within)": visuallyHiddenStyle
8386
- });
8387
- var ScreenReaderOnly = ({
8388
- text,
8389
- children,
8390
- focusable = false,
8391
- ...otherProps
8392
- }) => {
8393
- const accessibleText = (0, import_type_guards24.isNotNil)(text) ? text : children;
8394
- if (focusable) {
8395
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
8396
- }
8397
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
8398
- };
8399
- ScreenReaderOnly.displayName = "ScreenReaderOnly";
8400
-
8401
8428
  // src/components/Tooltip/Tooltip.tsx
8402
8429
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
8403
8430
  var import_styled_components43 = __toESM(require("styled-components"));
@@ -8507,7 +8534,7 @@ Tooltip.displayName = "Tooltip";
8507
8534
  // src/components/Input/Input.tsx
8508
8535
  var import_react23 = require("react");
8509
8536
  var import_styled_components44 = __toESM(require("styled-components"));
8510
- var import_type_guards25 = require("@wistia/type-guards");
8537
+ var import_type_guards26 = require("@wistia/type-guards");
8511
8538
  var import_jsx_runtime213 = require("react/jsx-runtime");
8512
8539
  var inputStyles = import_styled_components44.css`
8513
8540
  --wui-input-color-bg: var(--wui-color-bg-surface);
@@ -8607,27 +8634,27 @@ var Input = (0, import_react23.forwardRef)(
8607
8634
  const internalRef = (0, import_react23.useRef)();
8608
8635
  const ref = (
8609
8636
  // eslint-disable-next-line react-compiler/react-compiler
8610
- (0, import_type_guards25.isNotNil)(externalRef) && (0, import_type_guards25.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
8637
+ (0, import_type_guards26.isNotNil)(externalRef) && (0, import_type_guards26.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
8611
8638
  );
8612
8639
  let leftIconToDisplay = leftIcon;
8613
- if ((0, import_type_guards25.isNil)(leftIcon) && type === "search") {
8640
+ if ((0, import_type_guards26.isNil)(leftIcon) && type === "search") {
8614
8641
  leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Icon, { type: "search" });
8615
8642
  }
8616
- if ((0, import_type_guards25.isNotNil)(leftIconToDisplay)) {
8643
+ if ((0, import_type_guards26.isNotNil)(leftIconToDisplay)) {
8617
8644
  leftIconToDisplay = (0, import_react23.cloneElement)(leftIconToDisplay, {
8618
8645
  size: "md",
8619
8646
  className: "wui-input-left-icon"
8620
8647
  });
8621
8648
  }
8622
8649
  let rightIconToDisplay = rightIcon;
8623
- if ((0, import_type_guards25.isNotNil)(rightIconToDisplay)) {
8650
+ if ((0, import_type_guards26.isNotNil)(rightIconToDisplay)) {
8624
8651
  rightIconToDisplay = (0, import_react23.cloneElement)(rightIconToDisplay, {
8625
8652
  size: "md",
8626
8653
  className: "wui-input-right-icon"
8627
8654
  });
8628
8655
  }
8629
8656
  const handleFocus = (event) => {
8630
- if ((0, import_type_guards25.isNotNil)(props.onFocus)) {
8657
+ if ((0, import_type_guards26.isNotNil)(props.onFocus)) {
8631
8658
  props.onFocus(event);
8632
8659
  }
8633
8660
  if (autoSelect && isValidRef(ref) && "current" in ref) {
@@ -8808,7 +8835,7 @@ var EditableHeading = ({
8808
8835
  // src/components/Form/Form.tsx
8809
8836
  var import_react26 = require("react");
8810
8837
  var import_styled_components47 = __toESM(require("styled-components"));
8811
- var import_type_guards26 = require("@wistia/type-guards");
8838
+ var import_type_guards27 = require("@wistia/type-guards");
8812
8839
 
8813
8840
  // src/components/Stack/Stack.tsx
8814
8841
  var import_react25 = require("react");
@@ -8874,7 +8901,7 @@ var FormComponent = ({
8874
8901
  const id = props.id ?? autoId;
8875
8902
  const handleValidate = (nextFormData) => {
8876
8903
  const nextData = Object.fromEntries(nextFormData.entries());
8877
- if ((0, import_type_guards26.isUndefined)(validate)) {
8904
+ if ((0, import_type_guards27.isUndefined)(validate)) {
8878
8905
  return {};
8879
8906
  }
8880
8907
  return validate(nextData);
@@ -8884,7 +8911,7 @@ var FormComponent = ({
8884
8911
  props.onBlur(event);
8885
8912
  }
8886
8913
  const formData = new FormData(event.currentTarget);
8887
- if ((0, import_type_guards26.isNotUndefined)(validate)) {
8914
+ if ((0, import_type_guards27.isNotUndefined)(validate)) {
8888
8915
  handleValidate(formData);
8889
8916
  }
8890
8917
  };
@@ -8981,7 +9008,7 @@ var useFormState = (action, initialData = {}) => {
8981
9008
 
8982
9009
  // src/components/Form/FormErrorSummary.tsx
8983
9010
  var import_react28 = require("react");
8984
- var import_type_guards27 = require("@wistia/type-guards");
9011
+ var import_type_guards28 = require("@wistia/type-guards");
8985
9012
  var import_jsx_runtime217 = require("react/jsx-runtime");
8986
9013
  var ErrorItem = ({ name, error, formId }) => {
8987
9014
  return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
@@ -8995,8 +9022,8 @@ var FormErrorSummary = ({ description }) => {
8995
9022
  }
8996
9023
  return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { ref, children: [
8997
9024
  /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("p", { children: description }),
8998
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards27.isNotUndefined)(error)).map(
8999
- ([name, error]) => (0, import_type_guards27.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
9025
+ /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards28.isNotUndefined)(error)).map(
9026
+ ([name, error]) => (0, import_type_guards28.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
9000
9027
  ErrorItem,
9001
9028
  {
9002
9029
  error: err,
@@ -9019,32 +9046,92 @@ var FormErrorSummary = ({ description }) => {
9019
9046
 
9020
9047
  // src/components/FormField/FormField.tsx
9021
9048
  var import_react31 = require("react");
9022
- var import_styled_components49 = __toESM(require("styled-components"));
9023
- var import_type_guards28 = require("@wistia/type-guards");
9049
+ var import_styled_components50 = __toESM(require("styled-components"));
9050
+ var import_type_guards29 = require("@wistia/type-guards");
9051
+
9052
+ // src/components/Label/Label.tsx
9053
+ var import_styled_components48 = __toESM(require("styled-components"));
9054
+ var import_jsx_runtime218 = require("react/jsx-runtime");
9055
+ var requiredStyle = import_styled_components48.css`
9056
+ &::after {
9057
+ color: var(--wui-color-text-error);
9058
+ display: inline;
9059
+ padding-left: var(--wui-space-01);
9060
+ content: '*';
9061
+ }
9062
+ `;
9063
+ var disabledStyle4 = import_styled_components48.css`
9064
+ color: var(--wui-color-text-disabled);
9065
+ `;
9066
+ var StyledLabel3 = import_styled_components48.default.label`
9067
+ display: block;
9068
+ width: 100%;
9069
+ color: var(--wui-color-text);
9070
+ font-family: var(--wui-typography-heading-6-family);
9071
+ line-height: var(--wui-typography-heading-6-line-height);
9072
+ font-size: var(--wui-typography-heading-6-size);
9073
+ font-weight: var(--wui-typography-heading-6-weight);
9074
+
9075
+ /* if label is wrapping an input this ensures it appears beneath the label with a nice margin */
9076
+ > input,
9077
+ > textarea,
9078
+ > select {
9079
+ display: block;
9080
+ }
9081
+
9082
+ > label {
9083
+ font-weight: normal;
9084
+ }
9085
+
9086
+ ${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
9087
+ ${({ $disabled }) => $disabled && disabledStyle4}
9088
+ ${({ $required }) => $required && requiredStyle}
9089
+ `;
9090
+ var Label = ({
9091
+ children,
9092
+ disabled = false,
9093
+ htmlFor,
9094
+ required = false,
9095
+ screenReaderOnly = false,
9096
+ ...otherProps
9097
+ }) => {
9098
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9099
+ StyledLabel3,
9100
+ {
9101
+ ...otherProps,
9102
+ $disabled: disabled,
9103
+ $required: required,
9104
+ $screenReaderOnly: screenReaderOnly,
9105
+ htmlFor,
9106
+ children
9107
+ }
9108
+ );
9109
+ };
9110
+ Label.displayName = "Label";
9024
9111
 
9025
9112
  // src/components/FormGroup/CheckboxGroup.tsx
9026
9113
  var import_react30 = require("react");
9027
9114
 
9028
9115
  // src/components/FormGroup/FormGroup.tsx
9029
- var import_styled_components48 = __toESM(require("styled-components"));
9116
+ var import_styled_components49 = __toESM(require("styled-components"));
9030
9117
  var import_react29 = require("react");
9031
- var import_jsx_runtime218 = require("react/jsx-runtime");
9032
- var StyledFieldset = import_styled_components48.default.fieldset`
9118
+ var import_jsx_runtime219 = require("react/jsx-runtime");
9119
+ var StyledFieldset = import_styled_components49.default.fieldset`
9033
9120
  border: 0;
9034
9121
  `;
9035
- var StyledLegend = import_styled_components48.default.legend`
9122
+ var StyledLegend = import_styled_components49.default.legend`
9036
9123
  margin-bottom: var(--space-01);
9037
9124
  `;
9038
9125
  var FormGroup = ({ children, label, ...props }) => {
9039
9126
  const ref = (0, import_react29.useRef)();
9040
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9127
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
9041
9128
  Stack,
9042
9129
  {
9043
9130
  ...props,
9044
9131
  ref,
9045
9132
  renderAs: StyledFieldset,
9046
9133
  children: [
9047
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9134
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9048
9135
  Heading,
9049
9136
  {
9050
9137
  renderAs: StyledLegend,
@@ -9060,7 +9147,7 @@ var FormGroup = ({ children, label, ...props }) => {
9060
9147
  FormGroup.displayName = "FormGroup";
9061
9148
 
9062
9149
  // src/components/FormGroup/CheckboxGroup.tsx
9063
- var import_jsx_runtime219 = require("react/jsx-runtime");
9150
+ var import_jsx_runtime220 = require("react/jsx-runtime");
9064
9151
  var CheckboxGroupContext = (0, import_react30.createContext)(null);
9065
9152
  var CheckboxGroup = ({
9066
9153
  children,
@@ -9075,13 +9162,13 @@ var CheckboxGroup = ({
9075
9162
  onChange
9076
9163
  };
9077
9164
  }, [name, onChange]);
9078
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(FormGroup, { ...props, children }) });
9165
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(FormGroup, { ...props, children }) });
9079
9166
  };
9080
9167
  CheckboxGroup.displayName = "CheckboxGroup";
9081
9168
 
9082
9169
  // src/components/FormField/FormField.tsx
9083
- var import_jsx_runtime220 = require("react/jsx-runtime");
9084
- var StyledFormField = import_styled_components49.default.div`
9170
+ var import_jsx_runtime221 = require("react/jsx-runtime");
9171
+ var StyledFormField = import_styled_components50.default.div`
9085
9172
  --form-field-spacing: var(--wui-space-01);
9086
9173
  --form-field-spacing-inline: var(--wui-space-02);
9087
9174
  --form-field-error-color: var(--wui-color-text-secondary-error);
@@ -9105,7 +9192,7 @@ var StyledFormField = import_styled_components49.default.div`
9105
9192
  grid-template-rows: 1fr;
9106
9193
  }
9107
9194
  `;
9108
- var StyledErrorList = import_styled_components49.default.ul`
9195
+ var StyledErrorList = import_styled_components50.default.ul`
9109
9196
  margin: 0;
9110
9197
  padding: 0;
9111
9198
  padding-left: var(--wui-space-04);
@@ -9114,8 +9201,8 @@ var StyledErrorList = import_styled_components49.default.ul`
9114
9201
  gap: var(--wui-space-01);
9115
9202
  `;
9116
9203
  var ErrorMessages = ({ errors, id }) => {
9117
- const isMultipleErrors = (0, import_type_guards28.isArray)(errors);
9118
- return isMultipleErrors ? /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9204
+ const isMultipleErrors = (0, import_type_guards29.isArray)(errors);
9205
+ return isMultipleErrors ? /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9119
9206
  Text,
9120
9207
  {
9121
9208
  colorScheme: "error",
@@ -9125,7 +9212,7 @@ var ErrorMessages = ({ errors, id }) => {
9125
9212
  children: error
9126
9213
  },
9127
9214
  `${id}-${index}`
9128
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9215
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9129
9216
  Text,
9130
9217
  {
9131
9218
  colorScheme: "error",
@@ -9159,19 +9246,19 @@ var FormField = ({
9159
9246
  label: isIntegratedLabel ? label : void 0,
9160
9247
  ...props
9161
9248
  };
9162
- if ((0, import_type_guards28.isUndefined)(value) && (0, import_type_guards28.isNotUndefined)(defaultValue)) {
9249
+ if ((0, import_type_guards29.isUndefined)(value) && (0, import_type_guards29.isNotUndefined)(defaultValue)) {
9163
9250
  childProps = {
9164
9251
  ...childProps,
9165
9252
  defaultValue
9166
9253
  };
9167
9254
  }
9168
- if ((0, import_type_guards28.isNotNil)(checkboxGroup)) {
9169
- const computedName = (0, import_type_guards28.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9255
+ if ((0, import_type_guards29.isNotNil)(checkboxGroup)) {
9256
+ const computedName = (0, import_type_guards29.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9170
9257
  const handleChange = (event) => {
9171
- if ((0, import_type_guards28.isNotUndefined)(props.onChange)) {
9258
+ if ((0, import_type_guards29.isNotUndefined)(props.onChange)) {
9172
9259
  props.onChange(event);
9173
9260
  }
9174
- if ((0, import_type_guards28.isNotUndefined)(checkboxGroup.onChange)) {
9261
+ if ((0, import_type_guards29.isNotUndefined)(checkboxGroup.onChange)) {
9175
9262
  checkboxGroup.onChange(event);
9176
9263
  }
9177
9264
  };
@@ -9179,22 +9266,22 @@ var FormField = ({
9179
9266
  ...childProps,
9180
9267
  name: computedName,
9181
9268
  onChange: handleChange,
9182
- "aria-invalid": (0, import_type_guards28.isNotNil)(error),
9183
- "aria-describedby": (0, import_type_guards28.isNotNil)(error) ? `${computedId}-error` : void 0
9269
+ "aria-invalid": (0, import_type_guards29.isNotNil)(error),
9270
+ "aria-describedby": (0, import_type_guards29.isNotNil)(error) ? `${computedId}-error` : void 0
9184
9271
  };
9185
9272
  }
9186
9273
  import_react31.Children.only(children);
9187
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
9274
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
9188
9275
  StyledFormField,
9189
9276
  {
9190
9277
  ...props,
9191
9278
  "data-label-position": labelPosition ?? formState.labelPosition,
9192
9279
  children: [
9193
- !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Label, { htmlFor: computedId, children: label }),
9280
+ !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Label, { htmlFor: computedId, children: label }),
9194
9281
  (0, import_react31.cloneElement)(children, childProps),
9195
- (0, import_type_guards28.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
9196
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)("div", {}),
9197
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9282
+ (0, import_type_guards29.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(import_jsx_runtime221.Fragment, { children: [
9283
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", {}),
9284
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9198
9285
  ErrorMessages,
9199
9286
  {
9200
9287
  errors: computedError,
@@ -9210,7 +9297,7 @@ FormField.displayName = "FormField";
9210
9297
 
9211
9298
  // src/components/FormGroup/RadioGroup.tsx
9212
9299
  var import_react32 = require("react");
9213
- var import_jsx_runtime221 = require("react/jsx-runtime");
9300
+ var import_jsx_runtime222 = require("react/jsx-runtime");
9214
9301
  var RadioGroupContext = (0, import_react32.createContext)(null);
9215
9302
  var RadioGroup = ({
9216
9303
  children,
@@ -9225,15 +9312,15 @@ var RadioGroup = ({
9225
9312
  onChange
9226
9313
  };
9227
9314
  }, [name, onChange]);
9228
- return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(FormGroup, { ...props, children }) });
9315
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FormGroup, { ...props, children }) });
9229
9316
  };
9230
9317
  RadioGroup.displayName = "RadioGroup";
9231
9318
 
9232
9319
  // src/components/IconButton/IconButton.tsx
9233
9320
  var import_react33 = require("react");
9234
- var import_styled_components50 = __toESM(require("styled-components"));
9235
- var import_jsx_runtime222 = require("react/jsx-runtime");
9236
- var StyledButton2 = (0, import_styled_components50.default)(Button)`
9321
+ var import_styled_components51 = __toESM(require("styled-components"));
9322
+ var import_jsx_runtime223 = require("react/jsx-runtime");
9323
+ var StyledButton2 = (0, import_styled_components51.default)(Button)`
9237
9324
  --icon-button-size-sm: 24px;
9238
9325
  --icon-button-size-md: 32px;
9239
9326
  --icon-button-size-lg: 40px;
@@ -9250,7 +9337,7 @@ var StyledButton2 = (0, import_styled_components50.default)(Button)`
9250
9337
  var IconButton = (0, import_react33.forwardRef)(
9251
9338
  ({ children, label, size = "md", ...props }, ref) => {
9252
9339
  const responsiveSize = useResponsiveProp(size);
9253
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9340
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9254
9341
  StyledButton2,
9255
9342
  {
9256
9343
  ...props,
@@ -9268,9 +9355,9 @@ var IconButton = (0, import_react33.forwardRef)(
9268
9355
  IconButton.displayName = "IconButton";
9269
9356
 
9270
9357
  // src/components/Image/Image.tsx
9271
- var import_styled_components51 = __toESM(require("styled-components"));
9272
- var import_type_guards29 = require("@wistia/type-guards");
9273
- var import_jsx_runtime223 = require("react/jsx-runtime");
9358
+ var import_styled_components52 = __toESM(require("styled-components"));
9359
+ var import_type_guards30 = require("@wistia/type-guards");
9360
+ var import_jsx_runtime224 = require("react/jsx-runtime");
9274
9361
  var getFillStyle2 = (fillContainer) => {
9275
9362
  if (fillContainer === "horizontal") {
9276
9363
  return "width: 100%;";
@@ -9286,8 +9373,8 @@ var getFillStyle2 = (fillContainer) => {
9286
9373
  }
9287
9374
  return void 0;
9288
9375
  };
9289
- var StyledImage = import_styled_components51.default.img`
9290
- border-radius: ${({ $borderRadius }) => (0, import_type_guards29.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
9376
+ var StyledImage = import_styled_components52.default.img`
9377
+ border-radius: ${({ $borderRadius }) => (0, import_type_guards30.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
9291
9378
  ${({ $fillContainer }) => getFillStyle2($fillContainer)};
9292
9379
  object-fit: ${({ $objFit }) => $objFit};
9293
9380
  object-position: ${({ $objPosition }) => $objPosition};
@@ -9301,7 +9388,7 @@ var Image = ({
9301
9388
  loading = "lazy",
9302
9389
  position: objPosition,
9303
9390
  ...otherProps
9304
- }) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9391
+ }) => /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9305
9392
  StyledImage,
9306
9393
  {
9307
9394
  $borderRadius: borderRadius,
@@ -9317,9 +9404,9 @@ var Image = ({
9317
9404
  Image.displayName = "Image";
9318
9405
 
9319
9406
  // src/components/Menu/Menu.tsx
9320
- var import_styled_components52 = __toESM(require("styled-components"));
9407
+ var import_styled_components53 = __toESM(require("styled-components"));
9321
9408
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
9322
- var import_type_guards30 = require("@wistia/type-guards");
9409
+ var import_type_guards31 = require("@wistia/type-guards");
9323
9410
  var import_react35 = require("react");
9324
9411
 
9325
9412
  // src/components/Menu/MenuContext.tsx
@@ -9328,8 +9415,8 @@ var MenuContext = (0, import_react34.createContext)({ compact: false });
9328
9415
  var useMenuContext = () => (0, import_react34.useContext)(MenuContext);
9329
9416
 
9330
9417
  // src/components/Menu/Menu.tsx
9331
- var import_jsx_runtime224 = require("react/jsx-runtime");
9332
- var open = import_styled_components52.keyframes`
9418
+ var import_jsx_runtime225 = require("react/jsx-runtime");
9419
+ var open = import_styled_components53.keyframes`
9333
9420
  from {
9334
9421
  opacity: 0;
9335
9422
  transform: scale(.97) translateY(-8px);
@@ -9339,7 +9426,7 @@ var open = import_styled_components52.keyframes`
9339
9426
  transform: scale(1);
9340
9427
  }
9341
9428
  `;
9342
- var close = import_styled_components52.keyframes`
9429
+ var close = import_styled_components53.keyframes`
9343
9430
  from {
9344
9431
  opacity: 1;
9345
9432
  transform: scale(1);
@@ -9349,7 +9436,7 @@ var close = import_styled_components52.keyframes`
9349
9436
  transform: scale(.97) translateY(-8px);
9350
9437
  }
9351
9438
  `;
9352
- var menuItemCss = import_styled_components52.css`
9439
+ var menuItemCss = import_styled_components53.css`
9353
9440
  --menu-label-description-gap: var(--wui-space-01);
9354
9441
  --menu-item-inner-gap: var(--wui-space-03);
9355
9442
  --menu-item-left-icon-size: 24px;
@@ -9360,7 +9447,7 @@ var menuItemCss = import_styled_components52.css`
9360
9447
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
9361
9448
  --menu-divider-margin: var(--wui-space-02);
9362
9449
  `;
9363
- var compactMenuItemCss = import_styled_components52.css`
9450
+ var compactMenuItemCss = import_styled_components53.css`
9364
9451
  --menu-label-description-gap: 0;
9365
9452
  --menu-item-inner-gap: var(--wui-space-02);
9366
9453
  --menu-item-left-icon-size: 16px;
@@ -9371,7 +9458,7 @@ var compactMenuItemCss = import_styled_components52.css`
9371
9458
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
9372
9459
  --menu-divider-margin: var(--wui-space-01);
9373
9460
  `;
9374
- var menuContentCss = import_styled_components52.css`
9461
+ var menuContentCss = import_styled_components53.css`
9375
9462
  --menu-font-family: var(--wui-typography-family-default);
9376
9463
  --menu-bg: var(--wui-color-bg-surface);
9377
9464
  --menu-shadow: var(--wui-elevation-01);
@@ -9413,7 +9500,7 @@ var menuContentCss = import_styled_components52.css`
9413
9500
  margin: var(--menu-divider-margin) 0;
9414
9501
  }
9415
9502
  `;
9416
- var MenuContent = (0, import_styled_components52.default)(import_react_dropdown_menu.DropdownMenuContent)`
9503
+ var MenuContent = (0, import_styled_components53.default)(import_react_dropdown_menu.DropdownMenuContent)`
9417
9504
  ${menuContentCss}
9418
9505
  `;
9419
9506
  var Menu = ({
@@ -9431,7 +9518,7 @@ var Menu = ({
9431
9518
  }) => {
9432
9519
  const contextValue = (0, import_react35.useMemo)(() => ({ compact }), [compact]);
9433
9520
  let controlProps = {
9434
- ...(0, import_type_guards30.isNotNil)(onOpenChange) && (0, import_type_guards30.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
9521
+ ...(0, import_type_guards31.isNotNil)(onOpenChange) && (0, import_type_guards31.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
9435
9522
  };
9436
9523
  if (disabled) {
9437
9524
  controlProps = {
@@ -9439,24 +9526,24 @@ var Menu = ({
9439
9526
  onOpenChange: () => null
9440
9527
  };
9441
9528
  }
9442
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
9529
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
9443
9530
  import_react_dropdown_menu.DropdownMenu,
9444
9531
  {
9445
9532
  modal: false,
9446
9533
  ...controlProps,
9447
9534
  children: [
9448
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards30.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9535
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards31.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9449
9536
  Button,
9450
9537
  {
9451
9538
  "aria-expanded": isOpen,
9452
9539
  disabled,
9453
9540
  forceState: isOpen ? "active" : void 0,
9454
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Icon, { type: "caret-down" }),
9541
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Icon, { type: "caret-down" }),
9455
9542
  ...triggerProps,
9456
9543
  children: label
9457
9544
  }
9458
9545
  ) }),
9459
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9546
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9460
9547
  MenuContent,
9461
9548
  {
9462
9549
  ...props,
@@ -9476,19 +9563,19 @@ var Menu = ({
9476
9563
  Menu.displayName = "Menu";
9477
9564
 
9478
9565
  // src/components/Menu/MenuLabel.tsx
9479
- var import_styled_components53 = __toESM(require("styled-components"));
9566
+ var import_styled_components54 = __toESM(require("styled-components"));
9480
9567
  var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
9481
- var import_jsx_runtime225 = require("react/jsx-runtime");
9482
- var StyledMenuLabel = (0, import_styled_components53.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
9568
+ var import_jsx_runtime226 = require("react/jsx-runtime");
9569
+ var StyledMenuLabel = (0, import_styled_components54.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
9483
9570
  padding: var(--wui-space-02);
9484
9571
  `;
9485
9572
  var MenuLabel = ({ children, ...props }) => {
9486
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9573
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9487
9574
  StyledMenuLabel,
9488
9575
  {
9489
9576
  asChild: true,
9490
9577
  ...props,
9491
- children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9578
+ children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9492
9579
  Heading,
9493
9580
  {
9494
9581
  renderAs: "span",
@@ -9504,16 +9591,16 @@ MenuLabel.displayName = "MenuLabel";
9504
9591
 
9505
9592
  // src/components/Menu/SubMenu.tsx
9506
9593
  var import_react37 = require("react");
9507
- var import_styled_components56 = __toESM(require("styled-components"));
9594
+ var import_styled_components57 = __toESM(require("styled-components"));
9508
9595
  var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
9509
- var import_type_guards32 = require("@wistia/type-guards");
9596
+ var import_type_guards33 = require("@wistia/type-guards");
9510
9597
 
9511
9598
  // src/components/Menu/MenuItemButton.tsx
9512
9599
  var import_react36 = require("react");
9513
- var import_styled_components54 = __toESM(require("styled-components"));
9514
- var import_type_guards31 = require("@wistia/type-guards");
9515
- var import_jsx_runtime226 = require("react/jsx-runtime");
9516
- var StyledButton3 = (0, import_styled_components54.default)(Button)`
9600
+ var import_styled_components55 = __toESM(require("styled-components"));
9601
+ var import_type_guards32 = require("@wistia/type-guards");
9602
+ var import_jsx_runtime227 = require("react/jsx-runtime");
9603
+ var StyledButton3 = (0, import_styled_components55.default)(Button)`
9517
9604
  ${({ colorScheme }) => getColorScheme(colorScheme)};
9518
9605
 
9519
9606
  display: flex;
@@ -9552,7 +9639,7 @@ var StyledButton3 = (0, import_styled_components54.default)(Button)`
9552
9639
  padding-left: var(--wui-space-04);
9553
9640
  }
9554
9641
  `;
9555
- var StyledLeftIconContainer = import_styled_components54.default.div`
9642
+ var StyledLeftIconContainer = import_styled_components55.default.div`
9556
9643
  height: var(--menu-item-left-icon-size);
9557
9644
  width: var(--menu-item-left-icon-size);
9558
9645
 
@@ -9563,7 +9650,7 @@ var StyledLeftIconContainer = import_styled_components54.default.div`
9563
9650
  }
9564
9651
  }
9565
9652
  `;
9566
- var StyledRightIconContainer = import_styled_components54.default.div`
9653
+ var StyledRightIconContainer = import_styled_components55.default.div`
9567
9654
  height: var(--menu-item-right-icon-size);
9568
9655
  width: var(--menu-item-right-icon-size);
9569
9656
 
@@ -9574,13 +9661,13 @@ var StyledRightIconContainer = import_styled_components54.default.div`
9574
9661
  }
9575
9662
  }
9576
9663
  `;
9577
- var StyledLabelAndDescriptionContainer = import_styled_components54.default.div`
9664
+ var StyledLabelAndDescriptionContainer = import_styled_components55.default.div`
9578
9665
  display: flex;
9579
9666
  flex-direction: column;
9580
9667
  gap: var(--menu-label-description-gap);
9581
9668
  flex-basis: 100%;
9582
9669
  `;
9583
- var StyledBadgeContainer = import_styled_components54.default.div`
9670
+ var StyledBadgeContainer = import_styled_components55.default.div`
9584
9671
  align-self: start;
9585
9672
  justify-self: end;
9586
9673
  font-size: var(--wui-typography-label-4-size);
@@ -9589,13 +9676,13 @@ var StyledBadgeContainer = import_styled_components54.default.div`
9589
9676
  var MenuItemButton = (0, import_react36.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
9590
9677
  let { colorScheme, badge } = props;
9591
9678
  if (appearance === "dangerous") {
9592
- if ((0, import_type_guards31.isNotUndefined)(colorScheme)) {
9679
+ if ((0, import_type_guards32.isNotUndefined)(colorScheme)) {
9593
9680
  console.warn("colorScheme prop is ignored when appearance is dangerous");
9594
9681
  }
9595
9682
  colorScheme = "error";
9596
9683
  }
9597
9684
  if (appearance === "gated") {
9598
- badge = /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9685
+ badge = /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
9599
9686
  Icon,
9600
9687
  {
9601
9688
  colorScheme: "purple",
@@ -9607,7 +9694,7 @@ var MenuItemButton = (0, import_react36.forwardRef)(({ children, appearance, com
9607
9694
  }
9608
9695
  );
9609
9696
  }
9610
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
9697
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
9611
9698
  StyledButton3,
9612
9699
  {
9613
9700
  ...props,
@@ -9617,10 +9704,10 @@ var MenuItemButton = (0, import_react36.forwardRef)(({ children, appearance, com
9617
9704
  fullWidth: true,
9618
9705
  unstyled: true,
9619
9706
  children: [
9620
- props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
9621
- /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledLabelAndDescriptionContainer, { children }),
9622
- (0, import_type_guards31.isNotNil)(badge) || (0, import_type_guards31.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
9623
- props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
9707
+ props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
9708
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledLabelAndDescriptionContainer, { children }),
9709
+ (0, import_type_guards32.isNotNil)(badge) || (0, import_type_guards32.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
9710
+ props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
9624
9711
  ]
9625
9712
  }
9626
9713
  );
@@ -9628,33 +9715,33 @@ var MenuItemButton = (0, import_react36.forwardRef)(({ children, appearance, com
9628
9715
  MenuItemButton.displayName = "MenuItemButton";
9629
9716
 
9630
9717
  // src/components/Menu/MenuItemLabelDescription.tsx
9631
- var import_styled_components55 = __toESM(require("styled-components"));
9632
- var import_jsx_runtime227 = require("react/jsx-runtime");
9633
- var StyledMenuItemLabel = import_styled_components55.default.span``;
9634
- var StyledMenuItemDescription = (0, import_styled_components55.default)(Text).attrs({
9718
+ var import_styled_components56 = __toESM(require("styled-components"));
9719
+ var import_jsx_runtime228 = require("react/jsx-runtime");
9720
+ var StyledMenuItemLabel = import_styled_components56.default.span``;
9721
+ var StyledMenuItemDescription = (0, import_styled_components56.default)(Text).attrs({
9635
9722
  variant: "body4",
9636
9723
  prominence: "secondary"
9637
9724
  })``;
9638
9725
  var MenuItemLabel = ({ children }) => {
9639
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledMenuItemLabel, { children });
9726
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(StyledMenuItemLabel, { children });
9640
9727
  };
9641
9728
  var MenuItemDescription = ({ children }) => {
9642
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledMenuItemDescription, { children });
9729
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(StyledMenuItemDescription, { children });
9643
9730
  };
9644
9731
 
9645
9732
  // src/components/Menu/SubMenu.tsx
9646
- var import_jsx_runtime228 = require("react/jsx-runtime");
9647
- var SubMenuContent = (0, import_styled_components56.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
9733
+ var import_jsx_runtime229 = require("react/jsx-runtime");
9734
+ var SubMenuContent = (0, import_styled_components57.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
9648
9735
  ${menuContentCss}
9649
9736
 
9650
9737
  ${mq.smAndDown} {
9651
9738
  transform: translateX(-100%) !important;
9652
9739
  }
9653
9740
  `;
9654
- var StyledMobileSubMenuItems = import_styled_components56.default.div`
9741
+ var StyledMobileSubMenuItems = import_styled_components57.default.div`
9655
9742
  margin-left: var(--wui-space-04);
9656
9743
  `;
9657
- var StyledSubTrigger = (0, import_styled_components56.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
9744
+ var StyledSubTrigger = (0, import_styled_components57.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
9658
9745
  outline: none;
9659
9746
 
9660
9747
  &[data-state='open'],
@@ -9665,12 +9752,12 @@ var StyledSubTrigger = (0, import_styled_components56.default)(import_react_drop
9665
9752
  var SubMenuTrigger = ({ icon, ...props }) => {
9666
9753
  const { isSmAndUp } = useMq();
9667
9754
  const Trigger4 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
9668
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
9755
+ return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
9669
9756
  MenuItemButton,
9670
9757
  {
9671
9758
  ...props,
9672
9759
  leftIcon: icon,
9673
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon, { type: "caret-right" })
9760
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Icon, { type: "caret-right" })
9674
9761
  }
9675
9762
  ) });
9676
9763
  };
@@ -9684,14 +9771,14 @@ var SubMenu = ({
9684
9771
  const { isSmAndUp } = useMq();
9685
9772
  const [isExpanded, setIsExpanded] = (0, import_react37.useState)(false);
9686
9773
  const { compact } = useMenuContext();
9687
- return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
9688
- /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(SubMenuTrigger, { ...props, children: [
9689
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(MenuItemLabel, { children: label }),
9690
- (0, import_type_guards32.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(MenuItemDescription, { children: description }) : null
9774
+ return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
9775
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(SubMenuTrigger, { ...props, children: [
9776
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(MenuItemLabel, { children: label }),
9777
+ (0, import_type_guards33.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(MenuItemDescription, { children: description }) : null
9691
9778
  ] }),
9692
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(SubMenuContent, { $compact: compact, children }) })
9693
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
9694
- /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
9779
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(SubMenuContent, { $compact: compact, children }) })
9780
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
9781
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
9695
9782
  SubMenuTrigger,
9696
9783
  {
9697
9784
  ...props,
@@ -9700,12 +9787,12 @@ var SubMenu = ({
9700
9787
  setIsExpanded((prev) => !prev);
9701
9788
  },
9702
9789
  children: [
9703
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(MenuItemLabel, { children: label }),
9704
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(MenuItemDescription, { children: description })
9790
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(MenuItemLabel, { children: label }),
9791
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(MenuItemDescription, { children: description })
9705
9792
  ]
9706
9793
  }
9707
9794
  ),
9708
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
9795
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
9709
9796
  ] });
9710
9797
  };
9711
9798
  SubMenu.displayName = "SubMenu";
@@ -9713,15 +9800,15 @@ SubMenu.displayName = "SubMenu";
9713
9800
  // src/components/Menu/MenuItem.tsx
9714
9801
  var import_react38 = require("react");
9715
9802
  var import_react_dropdown_menu4 = require("@radix-ui/react-dropdown-menu");
9716
- var import_jsx_runtime229 = require("react/jsx-runtime");
9803
+ var import_jsx_runtime230 = require("react/jsx-runtime");
9717
9804
  var MenuItem = (0, import_react38.forwardRef)(
9718
9805
  ({ onSelect = () => null, ...props }, ref) => {
9719
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
9806
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
9720
9807
  import_react_dropdown_menu4.DropdownMenuItem,
9721
9808
  {
9722
9809
  asChild: true,
9723
9810
  onSelect,
9724
- children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
9811
+ children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
9725
9812
  MenuItemButton,
9726
9813
  {
9727
9814
  ...props,
@@ -9737,10 +9824,10 @@ MenuItem.displayName = "MenuItem";
9737
9824
 
9738
9825
  // src/components/Menu/MenuRadioGroup.tsx
9739
9826
  var import_react_dropdown_menu5 = require("@radix-ui/react-dropdown-menu");
9740
- var import_jsx_runtime230 = require("react/jsx-runtime");
9827
+ var import_jsx_runtime231 = require("react/jsx-runtime");
9741
9828
  var MenuRadioGroup = ({ children, label, ...props }) => {
9742
- return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
9743
- /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(MenuLabel, { children: label }),
9829
+ return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
9830
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(MenuLabel, { children: label }),
9744
9831
  children
9745
9832
  ] });
9746
9833
  };
@@ -9748,11 +9835,11 @@ MenuRadioGroup.displayName = "MenuRadioGroup";
9748
9835
 
9749
9836
  // src/components/Menu/RadioMenuItem.tsx
9750
9837
  var import_react_dropdown_menu6 = require("@radix-ui/react-dropdown-menu");
9751
- var import_jsx_runtime231 = require("react/jsx-runtime");
9838
+ var import_jsx_runtime232 = require("react/jsx-runtime");
9752
9839
  var RadioMenuItem = ({
9753
9840
  onSelect,
9754
9841
  value,
9755
- indicator = /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
9842
+ indicator = /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9756
9843
  Icon,
9757
9844
  {
9758
9845
  size: "sm",
@@ -9762,17 +9849,17 @@ var RadioMenuItem = ({
9762
9849
  ...props
9763
9850
  }) => {
9764
9851
  const extraProps = onSelect ? { onSelect } : {};
9765
- return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
9852
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9766
9853
  import_react_dropdown_menu6.DropdownMenuRadioItem,
9767
9854
  {
9768
9855
  ...extraProps,
9769
9856
  asChild: true,
9770
9857
  value,
9771
- children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
9858
+ children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9772
9859
  MenuItemButton,
9773
9860
  {
9774
9861
  ...props,
9775
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
9862
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
9776
9863
  }
9777
9864
  )
9778
9865
  }
@@ -9782,9 +9869,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
9782
9869
 
9783
9870
  // src/components/Menu/CheckboxMenuItem.tsx
9784
9871
  var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
9785
- var import_jsx_runtime232 = require("react/jsx-runtime");
9786
- var CheckboxIndicator2 = ({ checked, ...props }) => {
9787
- return checked ? /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
9872
+ var import_jsx_runtime233 = require("react/jsx-runtime");
9873
+ var CheckboxIndicator = ({ checked, ...props }) => {
9874
+ return checked ? /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
9788
9875
  "svg",
9789
9876
  {
9790
9877
  ...props,
@@ -9794,14 +9881,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
9794
9881
  width: "24",
9795
9882
  xmlns: "http://www.w3.org/2000/svg",
9796
9883
  children: [
9797
- /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9884
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
9798
9885
  "path",
9799
9886
  {
9800
9887
  d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
9801
9888
  fill: "#2949e5"
9802
9889
  }
9803
9890
  ),
9804
- /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9891
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
9805
9892
  "path",
9806
9893
  {
9807
9894
  d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
@@ -9810,7 +9897,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
9810
9897
  )
9811
9898
  ]
9812
9899
  }
9813
- ) : /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
9900
+ ) : /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
9814
9901
  "svg",
9815
9902
  {
9816
9903
  ...props,
@@ -9820,14 +9907,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
9820
9907
  width: "24",
9821
9908
  xmlns: "http://www.w3.org/2000/svg",
9822
9909
  children: [
9823
- /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9910
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
9824
9911
  "path",
9825
9912
  {
9826
9913
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
9827
9914
  fill: "#fcfcfd"
9828
9915
  }
9829
9916
  ),
9830
- /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9917
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
9831
9918
  "path",
9832
9919
  {
9833
9920
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
@@ -9844,18 +9931,18 @@ var CheckboxMenuItem = ({
9844
9931
  onCheckedChange,
9845
9932
  ...props
9846
9933
  }) => {
9847
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9934
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
9848
9935
  import_react_dropdown_menu7.DropdownMenuCheckboxItem,
9849
9936
  {
9850
9937
  asChild: true,
9851
9938
  checked,
9852
9939
  onCheckedChange,
9853
9940
  onSelect,
9854
- children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
9941
+ children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
9855
9942
  MenuItemButton,
9856
9943
  {
9857
9944
  ...props,
9858
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(CheckboxIndicator2, { checked })
9945
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(CheckboxIndicator, { checked })
9859
9946
  }
9860
9947
  )
9861
9948
  }
@@ -9865,36 +9952,36 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
9865
9952
 
9866
9953
  // src/components/Modal/Modal.tsx
9867
9954
  var import_react42 = require("react");
9868
- var import_styled_components61 = __toESM(require("styled-components"));
9955
+ var import_styled_components62 = __toESM(require("styled-components"));
9869
9956
  var import_react_dialog4 = require("@radix-ui/react-dialog");
9870
- var import_type_guards34 = require("@wistia/type-guards");
9957
+ var import_type_guards35 = require("@wistia/type-guards");
9871
9958
 
9872
9959
  // src/components/Modal/ModalHeader.tsx
9873
- var import_styled_components58 = __toESM(require("styled-components"));
9960
+ var import_styled_components59 = __toESM(require("styled-components"));
9874
9961
  var import_react_dialog2 = require("@radix-ui/react-dialog");
9875
9962
 
9876
9963
  // src/components/Modal/ModalCloseButton.tsx
9877
- var import_styled_components57 = __toESM(require("styled-components"));
9964
+ var import_styled_components58 = __toESM(require("styled-components"));
9878
9965
  var import_react_dialog = require("@radix-ui/react-dialog");
9879
- var import_jsx_runtime233 = require("react/jsx-runtime");
9880
- var CloseButton = (0, import_styled_components57.default)(import_react_dialog.Close)`
9966
+ var import_jsx_runtime234 = require("react/jsx-runtime");
9967
+ var CloseButton = (0, import_styled_components58.default)(import_react_dialog.Close)`
9881
9968
  align-self: start;
9882
9969
  `;
9883
9970
  var ModalCloseButton = () => {
9884
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
9971
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
9885
9972
  IconButton,
9886
9973
  {
9887
9974
  label: "Dismiss modal",
9888
9975
  size: "sm",
9889
9976
  variant: "ghost",
9890
- children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Icon, { type: "close" })
9977
+ children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Icon, { type: "close" })
9891
9978
  }
9892
9979
  ) });
9893
9980
  };
9894
9981
 
9895
9982
  // src/components/Modal/ModalHeader.tsx
9896
- var import_jsx_runtime234 = require("react/jsx-runtime");
9897
- var Header = import_styled_components58.default.header`
9983
+ var import_jsx_runtime235 = require("react/jsx-runtime");
9984
+ var Header = import_styled_components59.default.header`
9898
9985
  display: flex;
9899
9986
  order: 1;
9900
9987
  gap: var(--wui-space-01);
@@ -9905,7 +9992,7 @@ var Header = import_styled_components58.default.header`
9905
9992
  margin: 0 0 var(--wui-space-03);
9906
9993
  }
9907
9994
  `;
9908
- var Title = (0, import_styled_components58.default)(import_react_dialog2.Title)`
9995
+ var Title = (0, import_styled_components59.default)(import_react_dialog2.Title)`
9909
9996
  font-family: var(--wui-typography-heading-2-family);
9910
9997
  line-height: var(--wui-typography-heading-2-line-height);
9911
9998
  font-size: var(--wui-typography-heading-2-size);
@@ -9916,21 +10003,21 @@ var ModalHeader = ({
9916
10003
  hideTitle,
9917
10004
  hideCloseButton
9918
10005
  }) => {
9919
- const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Title, { children: title });
9920
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Header, { $hideTitle: hideTitle, children: [
10006
+ const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Title, { children: title });
10007
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(Header, { $hideTitle: hideTitle, children: [
9921
10008
  TitleComponent,
9922
- hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(ModalCloseButton, {})
10009
+ hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(ModalCloseButton, {})
9923
10010
  ] });
9924
10011
  };
9925
10012
 
9926
10013
  // src/components/Modal/ModalContent.tsx
9927
10014
  var import_react40 = require("react");
9928
- var import_styled_components59 = __toESM(require("styled-components"));
10015
+ var import_styled_components60 = __toESM(require("styled-components"));
9929
10016
  var import_react_dialog3 = require("@radix-ui/react-dialog");
9930
10017
 
9931
10018
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
9932
10019
  var import_react39 = require("react");
9933
- var import_type_guards33 = require("@wistia/type-guards");
10020
+ var import_type_guards34 = require("@wistia/type-guards");
9934
10021
  var useFocusRestore = () => {
9935
10022
  const previouslyFocusedRef = (0, import_react39.useRef)(null);
9936
10023
  (0, import_react39.useEffect)(() => {
@@ -9938,7 +10025,7 @@ var useFocusRestore = () => {
9938
10025
  }, []);
9939
10026
  (0, import_react39.useEffect)(() => {
9940
10027
  return () => {
9941
- if ((0, import_type_guards33.isNotNil)(previouslyFocusedRef.current)) {
10028
+ if ((0, import_type_guards34.isNotNil)(previouslyFocusedRef.current)) {
9942
10029
  setTimeout(() => {
9943
10030
  previouslyFocusedRef.current?.focus();
9944
10031
  }, 0);
@@ -9948,8 +10035,8 @@ var useFocusRestore = () => {
9948
10035
  };
9949
10036
 
9950
10037
  // src/components/Modal/ModalContent.tsx
9951
- var import_jsx_runtime235 = require("react/jsx-runtime");
9952
- var StyledModalContent = (0, import_styled_components59.default)(import_react_dialog3.Content)`
10038
+ var import_jsx_runtime236 = require("react/jsx-runtime");
10039
+ var StyledModalContent = (0, import_styled_components60.default)(import_react_dialog3.Content)`
9953
10040
  background-color: var(--wui-color-bg-app);
9954
10041
  box-sizing: border-box;
9955
10042
  display: flex;
@@ -9993,7 +10080,7 @@ var StyledModalContent = (0, import_styled_components59.default)(import_react_di
9993
10080
  var ModalContent = (0, import_react40.forwardRef)(
9994
10081
  ({ fullHeight, width, children, ...otherProps }, ref) => {
9995
10082
  useFocusRestore();
9996
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10083
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
9997
10084
  StyledModalContent,
9998
10085
  {
9999
10086
  ref,
@@ -10009,8 +10096,8 @@ var ModalContent = (0, import_react40.forwardRef)(
10009
10096
 
10010
10097
  // src/private/components/Backdrop/Backdrop.tsx
10011
10098
  var import_react41 = require("react");
10012
- var import_styled_components60 = __toESM(require("styled-components"));
10013
- var import_jsx_runtime236 = require("react/jsx-runtime");
10099
+ var import_styled_components61 = __toESM(require("styled-components"));
10100
+ var import_jsx_runtime237 = require("react/jsx-runtime");
10014
10101
  var backdropAnimationDuration = 150;
10015
10102
  var alignVerticalMap = {
10016
10103
  stretch: "normal",
@@ -10023,7 +10110,7 @@ var alignHorizontalMap = {
10023
10110
  center: "center",
10024
10111
  right: "end"
10025
10112
  };
10026
- var BackdropComponent = import_styled_components60.default.div`
10113
+ var BackdropComponent = import_styled_components61.default.div`
10027
10114
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
10028
10115
  animation-name: backdropShow;
10029
10116
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -10047,7 +10134,7 @@ var BackdropComponent = import_styled_components60.default.div`
10047
10134
  }
10048
10135
  `;
10049
10136
  var Backdrop = (0, import_react41.forwardRef)(
10050
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10137
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10051
10138
  BackdropComponent,
10052
10139
  {
10053
10140
  ref,
@@ -10061,9 +10148,9 @@ var Backdrop = (0, import_react41.forwardRef)(
10061
10148
  Backdrop.displayName = "Backdrop";
10062
10149
 
10063
10150
  // src/components/Modal/Modal.tsx
10064
- var import_jsx_runtime237 = require("react/jsx-runtime");
10151
+ var import_jsx_runtime238 = require("react/jsx-runtime");
10065
10152
  var DEFAULT_MODAL_WIDTH = "532px";
10066
- var ModalBody = import_styled_components61.default.div`
10153
+ var ModalBody = import_styled_components62.default.div`
10067
10154
  flex-direction: column;
10068
10155
  display: flex;
10069
10156
  order: 2;
@@ -10081,24 +10168,24 @@ var Modal = (0, import_react42.forwardRef)(
10081
10168
  width = DEFAULT_MODAL_WIDTH,
10082
10169
  ...props
10083
10170
  }, ref) => {
10084
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10171
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10085
10172
  import_react_dialog4.Root,
10086
10173
  {
10087
10174
  onOpenChange: (open2) => {
10088
- if (!open2 && (0, import_type_guards34.isNotNil)(onRequestClose)) {
10175
+ if (!open2 && (0, import_type_guards35.isNotNil)(onRequestClose)) {
10089
10176
  onRequestClose();
10090
10177
  }
10091
10178
  },
10092
10179
  open: isOpen,
10093
- children: /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(import_react_dialog4.Portal, { children: [
10094
- /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Backdrop, {}),
10095
- /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
10180
+ children: /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(import_react_dialog4.Portal, { children: [
10181
+ /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Backdrop, {}),
10182
+ /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
10096
10183
  ModalContent,
10097
10184
  {
10098
10185
  ref,
10099
10186
  fullHeight,
10100
10187
  onOpenAutoFocus: (event) => {
10101
- if ((0, import_type_guards34.isNotNil)(initialFocusRef) && initialFocusRef.current) {
10188
+ if ((0, import_type_guards35.isNotNil)(initialFocusRef) && initialFocusRef.current) {
10102
10189
  event.preventDefault();
10103
10190
  requestAnimationFrame(() => {
10104
10191
  initialFocusRef.current?.focus();
@@ -10108,8 +10195,8 @@ var Modal = (0, import_react42.forwardRef)(
10108
10195
  width,
10109
10196
  ...props,
10110
10197
  children: [
10111
- /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(ModalBody, { children }),
10112
- /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10198
+ /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(ModalBody, { children }),
10199
+ /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10113
10200
  ModalHeader,
10114
10201
  {
10115
10202
  hideCloseButton,
@@ -10129,18 +10216,18 @@ Modal.displayName = "Modal";
10129
10216
 
10130
10217
  // src/components/Popover/Popover.tsx
10131
10218
  var import_react_popover = require("@radix-ui/react-popover");
10132
- var import_styled_components62 = __toESM(require("styled-components"));
10219
+ var import_styled_components63 = __toESM(require("styled-components"));
10133
10220
 
10134
10221
  // src/private/helpers/getControls/getControlProps.tsx
10135
- var import_type_guards35 = require("@wistia/type-guards");
10222
+ var import_type_guards36 = require("@wistia/type-guards");
10136
10223
  var getControlProps = (isOpen, onOpenChange) => {
10137
- return (0, import_type_guards35.isNotNil)(onOpenChange) && (0, import_type_guards35.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
10224
+ return (0, import_type_guards36.isNotNil)(onOpenChange) && (0, import_type_guards36.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
10138
10225
  };
10139
10226
 
10140
10227
  // src/components/Popover/Popover.tsx
10141
- var import_jsx_runtime238 = require("react/jsx-runtime");
10142
- var StyledContent2 = (0, import_styled_components62.default)(import_react_popover.Content)`
10143
- ${({ $unstyled }) => !$unstyled && import_styled_components62.css`
10228
+ var import_jsx_runtime239 = require("react/jsx-runtime");
10229
+ var StyledContent2 = (0, import_styled_components63.default)(import_react_popover.Content)`
10230
+ ${({ $unstyled }) => !$unstyled && import_styled_components63.css`
10144
10231
  border-radius: var(--wui-border-radius-02);
10145
10232
  padding: var(--wui-space-04);
10146
10233
  max-width: 320px;
@@ -10164,25 +10251,25 @@ var Popover = ({
10164
10251
  unstyled = false,
10165
10252
  ...props
10166
10253
  }) => {
10167
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
10168
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_popover.Trigger, { asChild: true, children: trigger }),
10169
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
10254
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
10255
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_react_popover.Trigger, { asChild: true, children: trigger }),
10256
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
10170
10257
  StyledContent2,
10171
10258
  {
10172
10259
  sideOffset: 8,
10173
10260
  ...props,
10174
10261
  $unstyled: unstyled,
10175
10262
  children: [
10176
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10263
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10177
10264
  IconButton,
10178
10265
  {
10179
10266
  "data-wui-popover-close": true,
10180
10267
  label: "Close",
10181
10268
  variant: "ghost",
10182
- children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Icon, { type: "close" })
10269
+ children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Icon, { type: "close" })
10183
10270
  }
10184
10271
  ) }),
10185
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("div", { children })
10272
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("div", { children })
10186
10273
  ]
10187
10274
  }
10188
10275
  ) })
@@ -10191,11 +10278,11 @@ var Popover = ({
10191
10278
  Popover.displayName = "Popover";
10192
10279
 
10193
10280
  // src/components/ProgressBar/ProgressBar.tsx
10194
- var import_styled_components63 = __toESM(require("styled-components"));
10281
+ var import_styled_components64 = __toESM(require("styled-components"));
10195
10282
  var import_react_progress = require("@radix-ui/react-progress");
10196
- var import_type_guards36 = require("@wistia/type-guards");
10197
- var import_jsx_runtime239 = require("react/jsx-runtime");
10198
- var ProgressBarWrapper = import_styled_components63.default.div`
10283
+ var import_type_guards37 = require("@wistia/type-guards");
10284
+ var import_jsx_runtime240 = require("react/jsx-runtime");
10285
+ var ProgressBarWrapper = import_styled_components64.default.div`
10199
10286
  --progress-bar-height: 8px;
10200
10287
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
10201
10288
  --progress-bar-background-color: var(--wui-color-bg-surface-secondary);
@@ -10211,7 +10298,7 @@ var getTranslateValue = (progress, max) => {
10211
10298
  const progressPercentage = progress / max * 100;
10212
10299
  return `translateX(-${100 - progressPercentage}%)`;
10213
10300
  };
10214
- var ProgressBarLabel = import_styled_components63.default.div`
10301
+ var ProgressBarLabel = import_styled_components64.default.div`
10215
10302
  display: flex;
10216
10303
  line-height: var(--wui-typography-label-3-line-height);
10217
10304
  font-size: var(--wui-typography-label-3-size);
@@ -10219,7 +10306,7 @@ var ProgressBarLabel = import_styled_components63.default.div`
10219
10306
  color: var(--wui-color-text-secondary);
10220
10307
  flex-shrink: 0;
10221
10308
  `;
10222
- var StyledProgressIndicator = (0, import_styled_components63.default)(import_react_progress.Indicator)`
10309
+ var StyledProgressIndicator = (0, import_styled_components64.default)(import_react_progress.Indicator)`
10223
10310
  background-color: var(--progress-bar-indicator-color);
10224
10311
  width: 100%;
10225
10312
  height: 100%;
@@ -10228,7 +10315,7 @@ var StyledProgressIndicator = (0, import_styled_components63.default)(import_rea
10228
10315
  transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
10229
10316
  transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
10230
10317
  `;
10231
- var StyledProgressBar = (0, import_styled_components63.default)(import_react_progress.Root)`
10318
+ var StyledProgressBar = (0, import_styled_components64.default)(import_react_progress.Root)`
10232
10319
  position: relative;
10233
10320
  overflow: hidden;
10234
10321
  background: var(--progress-bar-background-color);
@@ -10247,15 +10334,15 @@ var ProgressBar = ({
10247
10334
  labelRight,
10248
10335
  ...props
10249
10336
  }) => {
10250
- return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(ProgressBarWrapper, { children: [
10251
- (0, import_type_guards36.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
10252
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10337
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(ProgressBarWrapper, { children: [
10338
+ (0, import_type_guards37.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
10339
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10253
10340
  StyledProgressBar,
10254
10341
  {
10255
10342
  max,
10256
10343
  value: progress,
10257
10344
  ...props,
10258
- children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10345
+ children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10259
10346
  StyledProgressIndicator,
10260
10347
  {
10261
10348
  $max: max,
@@ -10264,85 +10351,102 @@ var ProgressBar = ({
10264
10351
  )
10265
10352
  }
10266
10353
  ),
10267
- (0, import_type_guards36.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ProgressBarLabel, { children: labelRight }) : null
10354
+ (0, import_type_guards37.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ProgressBarLabel, { children: labelRight }) : null
10268
10355
  ] });
10269
10356
  };
10270
10357
  ProgressBar.displayName = "ProgressBar";
10271
10358
 
10272
10359
  // src/components/Radio/Radio.tsx
10273
10360
  var import_react43 = require("react");
10274
- var import_styled_components64 = __toESM(require("styled-components"));
10275
- var import_type_guards37 = require("@wistia/type-guards");
10276
- var import_jsx_runtime240 = require("react/jsx-runtime");
10277
- var StyledLabelWrapper2 = import_styled_components64.default.div`
10278
- display: flex;
10279
- flex-direction: column;
10280
- padding-left: var(--wui-space-02);
10361
+ var import_styled_components65 = __toESM(require("styled-components"));
10362
+ var import_type_guards38 = require("@wistia/type-guards");
10363
+ var import_jsx_runtime241 = require("react/jsx-runtime");
10364
+ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10365
+ "svg",
10366
+ {
10367
+ fill: "inherit",
10368
+ height: "12",
10369
+ viewBox: "0 0 12 12",
10370
+ width: "12",
10371
+ xmlns: "http://www.w3.org/2000/svg",
10372
+ children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10373
+ "circle",
10374
+ {
10375
+ cx: "6",
10376
+ cy: "6",
10377
+ fill: "currentColor",
10378
+ r: "4"
10379
+ }
10380
+ )
10381
+ }
10382
+ );
10383
+ var StyledHiddenRadioInput = import_styled_components65.default.input`
10384
+ ${visuallyHiddenStyle}
10385
+
10386
+ /* toggles display of faux-input background-color */
10387
+ &:checked + label [data-wui-faux-input='true'] {
10388
+ border-color: var(--wui-color-bg-fill);
10389
+ }
10390
+
10391
+ /* toggles display of RadioIcon */
10392
+ &:checked + label svg {
10393
+ display: block;
10394
+ }
10281
10395
  `;
10282
- var StyledRadio = import_styled_components64.default.input`
10283
- box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
10284
- appearance: none;
10285
- margin: 0;
10286
- color: currentcolor;
10396
+ var inputSizeSmall2 = import_styled_components65.css`
10287
10397
  width: 14px;
10288
- min-width: 14px;
10289
10398
  height: 14px;
10399
+ min-width: 14px;
10400
+ min-height: 14px;
10401
+ `;
10402
+ var inputSizeMedium2 = import_styled_components65.css`
10403
+ width: 16px;
10404
+ height: 16px;
10405
+ min-width: 16px;
10406
+ min-height: 16px;
10407
+ `;
10408
+ var inputSizeLarge2 = import_styled_components65.css`
10409
+ width: 20px;
10410
+ height: 20px;
10411
+ min-width: 20px;
10412
+ min-height: 20px;
10413
+ `;
10414
+ var getSizeCss2 = (size) => {
10415
+ if (size === "sm") return inputSizeSmall2;
10416
+ if (size === "lg") return inputSizeLarge2;
10417
+ return inputSizeMedium2;
10418
+ };
10419
+ var StyledRadioInput = import_styled_components65.default.div`
10420
+ ${({ $size }) => getSizeCss2($size)}
10421
+ line-height: 0;
10422
+ margin: 0;
10290
10423
  border: 1px solid var(--wui-color-border);
10291
- border-radius: 50%;
10424
+ border-radius: 50%; /* TODO --wui-border-radius-rounded */
10425
+ background-color: var(--wui-color-bg-fill-white);
10292
10426
  display: grid;
10293
10427
  place-content: center;
10428
+ align-self: flex-start;
10294
10429
 
10295
- &&::before {
10296
- content: '';
10297
- width: 10px;
10298
- height: 10px;
10299
- border-radius: 50%;
10300
- transform: scale(0);
10301
- box-shadow: inset 1em 1em var(--wui-color-bg-fill);
10302
- }
10430
+ svg {
10431
+ display: none;
10303
10432
 
10304
- &&:checked::before {
10305
- transform: scale(1);
10433
+ circle {
10434
+ fill: var(--wui-color-bg-fill);
10435
+ }
10306
10436
  }
10307
10437
  `;
10308
- var disabledStyle2 = import_styled_components64.css`
10438
+ var disabledStyle5 = import_styled_components65.css`
10309
10439
  cursor: not-allowed;
10310
10440
  opacity: 0.5;
10311
10441
  `;
10312
- var errorStyle = import_styled_components64.css`
10313
- /* TODO Lamp to design error state */
10314
- &:hover,
10315
- &:focus,
10316
- &:active {
10317
- border-color: transparent !important;
10318
- }
10319
- `;
10320
- var defaultHoverStyle = import_styled_components64.css`
10321
- /* TODO Lamp to design hover state */
10322
- cursor: pointer;
10323
- `;
10324
- var StyledRadioWrapper = import_styled_components64.default.div`
10325
- align-items: baseline;
10326
- border: 1px solid transparent;
10327
- border-radius: 4px;
10442
+ var StyledRadioWrapper = import_styled_components65.default.div`
10328
10443
  display: flex;
10329
- gap: var(--wui-space-02);
10330
- padding: var(--wui-space-02);
10331
-
10332
- &:hover {
10333
- ${defaultHoverStyle}
10334
- }
10335
-
10336
- &:focus-within {
10337
- /* TODO Lamp to design focus state */
10338
- background-color: #efefef;
10339
- }
10444
+ margin: 0;
10340
10445
 
10341
- &[aria-invalid='true'] {
10342
- ${errorStyle};
10343
- }
10446
+ /* TODO this solves a problem but potentially causes and a11y issue */
10447
+ user-select: none;
10344
10448
 
10345
- ${({ disabled }) => disabled && disabledStyle2};
10449
+ ${({ $disabled }) => $disabled && disabledStyle5};
10346
10450
  `;
10347
10451
  var Radio = (0, import_react43.forwardRef)(
10348
10452
  ({
@@ -10353,45 +10457,52 @@ var Radio = (0, import_react43.forwardRef)(
10353
10457
  description,
10354
10458
  name,
10355
10459
  onChange,
10356
- required = false,
10460
+ size = "md",
10357
10461
  value = "false",
10358
- ...otherProps
10462
+ required = false,
10463
+ hideLabel = false,
10464
+ ...props
10359
10465
  }, ref) => {
10360
10466
  const generatedId = (0, import_react43.useId)();
10361
- const computedId = (0, import_type_guards37.isNonEmptyString)(id) ? id : `ui-radio-${generatedId}`;
10362
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
10467
+ const computedId = (0, import_type_guards38.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
10468
+ return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
10363
10469
  StyledRadioWrapper,
10364
10470
  {
10365
- "aria-invalid": otherProps["aria-invalid"],
10366
- disabled,
10471
+ $disabled: disabled,
10472
+ "aria-invalid": props["aria-invalid"],
10367
10473
  children: [
10368
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10369
- StyledRadio,
10474
+ /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10475
+ StyledHiddenRadioInput,
10370
10476
  {
10477
+ ...props,
10371
10478
  ref,
10372
- "aria-checked": checked,
10373
10479
  checked,
10374
10480
  disabled,
10375
10481
  id: computedId,
10376
10482
  name,
10377
10483
  onChange,
10484
+ required,
10378
10485
  type: "radio",
10379
- value,
10380
- ...otherProps
10486
+ value
10381
10487
  }
10382
10488
  ),
10383
- /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(StyledLabelWrapper2, { children: [
10384
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10385
- Label,
10386
- {
10387
- disabled,
10388
- htmlFor: computedId,
10389
- required,
10390
- children: label
10391
- }
10392
- ),
10393
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(LabelDescription, { children: description })
10394
- ] })
10489
+ /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10490
+ FormControlLabel,
10491
+ {
10492
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10493
+ StyledRadioInput,
10494
+ {
10495
+ $size: size,
10496
+ "data-wui-faux-input": "true",
10497
+ children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(RadioIcon, {})
10498
+ }
10499
+ ),
10500
+ description,
10501
+ hideLabel,
10502
+ htmlFor: computedId,
10503
+ label
10504
+ }
10505
+ )
10395
10506
  ]
10396
10507
  }
10397
10508
  );
@@ -10401,13 +10512,13 @@ Radio.displayName = "Radio";
10401
10512
 
10402
10513
  // src/components/SegmentedControl/SegmentedControl.tsx
10403
10514
  var import_react47 = require("react");
10404
- var import_styled_components66 = __toESM(require("styled-components"));
10515
+ var import_styled_components67 = __toESM(require("styled-components"));
10405
10516
  var import_react_toggle_group = require("@radix-ui/react-toggle-group");
10406
- var import_type_guards38 = require("@wistia/type-guards");
10517
+ var import_type_guards39 = require("@wistia/type-guards");
10407
10518
 
10408
10519
  // src/components/SegmentedControl/useSelectedItemMeasurements.tsx
10409
10520
  var import_react44 = require("react");
10410
- var import_jsx_runtime241 = require("react/jsx-runtime");
10521
+ var import_jsx_runtime242 = require("react/jsx-runtime");
10411
10522
  var SelectedItemMeasurementsContext = (0, import_react44.createContext)(
10412
10523
  null
10413
10524
  );
@@ -10422,7 +10533,7 @@ var SelectedItemMeasurementsProvider = ({
10422
10533
  }),
10423
10534
  [selectedItemMeasurements]
10424
10535
  );
10425
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
10536
+ return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
10426
10537
  };
10427
10538
  var useSelectedItemMeasurements = () => {
10428
10539
  const context = (0, import_react44.useContext)(SelectedItemMeasurementsContext);
@@ -10436,7 +10547,7 @@ var useSelectedItemMeasurements = () => {
10436
10547
 
10437
10548
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
10438
10549
  var import_react46 = require("react");
10439
- var import_styled_components65 = __toESM(require("styled-components"));
10550
+ var import_styled_components66 = __toESM(require("styled-components"));
10440
10551
 
10441
10552
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
10442
10553
  var import_react45 = require("react");
@@ -10451,8 +10562,8 @@ var useSegmentedControlValue = () => {
10451
10562
  };
10452
10563
 
10453
10564
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
10454
- var import_jsx_runtime242 = require("react/jsx-runtime");
10455
- var SelectedItemIndicatorDiv = import_styled_components65.default.div`
10565
+ var import_jsx_runtime243 = require("react/jsx-runtime");
10566
+ var SelectedItemIndicatorDiv = import_styled_components66.default.div`
10456
10567
  background-color: var(--wui-color-bg-fill-white);
10457
10568
  border-radius: var(--wui-border-radius-rounded);
10458
10569
  left: 0;
@@ -10478,7 +10589,7 @@ var SelectedItemIndicator = () => {
10478
10589
  if (!selectedValue) {
10479
10590
  return null;
10480
10591
  }
10481
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
10592
+ return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
10482
10593
  SelectedItemIndicatorDiv,
10483
10594
  {
10484
10595
  style: {
@@ -10491,8 +10602,8 @@ var SelectedItemIndicator = () => {
10491
10602
  };
10492
10603
 
10493
10604
  // src/components/SegmentedControl/SegmentedControl.tsx
10494
- var import_jsx_runtime243 = require("react/jsx-runtime");
10495
- var segmentedControlStyles = import_styled_components66.css`
10605
+ var import_jsx_runtime244 = require("react/jsx-runtime");
10606
+ var segmentedControlStyles = import_styled_components67.css`
10496
10607
  display: inline-flex;
10497
10608
  background-color: var(--wui-color-bg-surface-secondary);
10498
10609
  border-radius: var(--wui-border-radius-rounded);
@@ -10502,7 +10613,7 @@ var segmentedControlStyles = import_styled_components66.css`
10502
10613
  position: relative;
10503
10614
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
10504
10615
  `;
10505
- var StyledSegmentedControl = (0, import_styled_components66.default)(import_react_toggle_group.Root)`
10616
+ var StyledSegmentedControl = (0, import_styled_components67.default)(import_react_toggle_group.Root)`
10506
10617
  ${segmentedControlStyles}
10507
10618
  `;
10508
10619
  var SegmentedControl = (0, import_react47.forwardRef)(
@@ -10514,10 +10625,10 @@ var SegmentedControl = (0, import_react47.forwardRef)(
10514
10625
  onSelectedValueChange,
10515
10626
  ...props
10516
10627
  }, ref) => {
10517
- if ((0, import_type_guards38.isNil)(children)) {
10628
+ if ((0, import_type_guards39.isNil)(children)) {
10518
10629
  return null;
10519
10630
  }
10520
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
10631
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
10521
10632
  StyledSegmentedControl,
10522
10633
  {
10523
10634
  ref,
@@ -10529,8 +10640,8 @@ var SegmentedControl = (0, import_react47.forwardRef)(
10529
10640
  type: "single",
10530
10641
  value: selectedValue,
10531
10642
  ...props,
10532
- children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(SelectedItemMeasurementsProvider, { children: [
10533
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(SelectedItemIndicator, {}),
10643
+ children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(SelectedItemMeasurementsProvider, { children: [
10644
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(SelectedItemIndicator, {}),
10534
10645
  children
10535
10646
  ] }) })
10536
10647
  }
@@ -10541,27 +10652,27 @@ SegmentedControl.displayName = "SegmentedControl";
10541
10652
 
10542
10653
  // src/components/SegmentedControl/SegmentedControlItem.tsx
10543
10654
  var import_react48 = require("react");
10544
- var import_styled_components67 = __toESM(require("styled-components"));
10655
+ var import_styled_components68 = __toESM(require("styled-components"));
10545
10656
  var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
10546
- var import_type_guards40 = require("@wistia/type-guards");
10657
+ var import_type_guards41 = require("@wistia/type-guards");
10547
10658
 
10548
10659
  // src/private/helpers/mergeRefs/mergeRefs.ts
10549
- var import_type_guards39 = require("@wistia/type-guards");
10660
+ var import_type_guards40 = require("@wistia/type-guards");
10550
10661
  var mergeRefs = (refs) => (value) => {
10551
10662
  refs.forEach((ref) => {
10552
- if ((0, import_type_guards39.isFunction)(ref)) {
10663
+ if ((0, import_type_guards40.isFunction)(ref)) {
10553
10664
  ref(value);
10554
10665
  return;
10555
10666
  }
10556
- if ((0, import_type_guards39.isNotNil)(ref)) {
10667
+ if ((0, import_type_guards40.isNotNil)(ref)) {
10557
10668
  ref.current = value;
10558
10669
  }
10559
10670
  });
10560
10671
  };
10561
10672
 
10562
10673
  // src/components/SegmentedControl/SegmentedControlItem.tsx
10563
- var import_jsx_runtime244 = require("react/jsx-runtime");
10564
- var segmentedControlItemStyles = import_styled_components67.css`
10674
+ var import_jsx_runtime245 = require("react/jsx-runtime");
10675
+ var segmentedControlItemStyles = import_styled_components68.css`
10565
10676
  all: unset; /* ToggleGroupItem is a button element */
10566
10677
  align-items: center;
10567
10678
  border-radius: var(--wui-border-radius-rounded);
@@ -10620,7 +10731,7 @@ var segmentedControlItemStyles = import_styled_components67.css`
10620
10731
  }
10621
10732
  }
10622
10733
  `;
10623
- var StyledSegmentedControlItem = (0, import_styled_components67.default)(import_react_toggle_group2.Item)`
10734
+ var StyledSegmentedControlItem = (0, import_styled_components68.default)(import_react_toggle_group2.Item)`
10624
10735
  ${segmentedControlItemStyles}
10625
10736
  `;
10626
10737
  var SegmentedControlItem = (0, import_react48.forwardRef)(
@@ -10661,12 +10772,12 @@ var SegmentedControlItem = (0, import_react48.forwardRef)(
10661
10772
  resizeObserver.disconnect();
10662
10773
  };
10663
10774
  }, [selectedValue, setSelectedItemMeasurements, value]);
10664
- return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
10775
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
10665
10776
  StyledSegmentedControlItem,
10666
10777
  {
10667
10778
  ref: combinedRef,
10668
- $hasLabel: (0, import_type_guards40.isNotNil)(label),
10669
- "aria-label": (0, import_type_guards40.isNotNil)(label) ? void 0 : ariaLabel,
10779
+ $hasLabel: (0, import_type_guards41.isNotNil)(label),
10780
+ "aria-label": (0, import_type_guards41.isNotNil)(label) ? void 0 : ariaLabel,
10670
10781
  disabled,
10671
10782
  onClick: handleClick,
10672
10783
  value,
@@ -10683,9 +10794,9 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
10683
10794
  // src/components/Select/Select.tsx
10684
10795
  var import_react_select = require("@radix-ui/react-select");
10685
10796
  var import_react49 = require("react");
10686
- var import_styled_components68 = __toESM(require("styled-components"));
10687
- var import_jsx_runtime245 = require("react/jsx-runtime");
10688
- var StyledTrigger = (0, import_styled_components68.default)(import_react_select.Trigger)`
10797
+ var import_styled_components69 = __toESM(require("styled-components"));
10798
+ var import_jsx_runtime246 = require("react/jsx-runtime");
10799
+ var StyledTrigger = (0, import_styled_components69.default)(import_react_select.Trigger)`
10689
10800
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10690
10801
  --wui-select-color-bg: var(--wui-color-bg-surface);
10691
10802
  --wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -10733,7 +10844,7 @@ var StyledTrigger = (0, import_styled_components68.default)(import_react_select.
10733
10844
  background-color: var(--wui-color-bg-surface-disabled);
10734
10845
  }
10735
10846
  `;
10736
- var StyledContent3 = (0, import_styled_components68.default)(import_react_select.Content)`
10847
+ var StyledContent3 = (0, import_styled_components69.default)(import_react_select.Content)`
10737
10848
  --wui-select-content-border: var(--wui-color-border);
10738
10849
  --wui-select-content-bg: var(--wui-color-bg-surface);
10739
10850
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -10761,13 +10872,13 @@ var Select = (0, import_react49.forwardRef)(
10761
10872
  ...props
10762
10873
  }, forwardedRef) => {
10763
10874
  const responsiveFullWidth = useResponsiveProp(fullWidth);
10764
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
10875
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
10765
10876
  import_react_select.Root,
10766
10877
  {
10767
10878
  ...props,
10768
10879
  onValueChange: onChange,
10769
10880
  children: [
10770
- /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
10881
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
10771
10882
  StyledTrigger,
10772
10883
  {
10773
10884
  ref: forwardedRef,
@@ -10775,8 +10886,8 @@ var Select = (0, import_react49.forwardRef)(
10775
10886
  $fullWidth: responsiveFullWidth,
10776
10887
  ...props,
10777
10888
  children: [
10778
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_select.Value, { placeholder }),
10779
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
10889
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_select.Value, { placeholder }),
10890
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
10780
10891
  Icon,
10781
10892
  {
10782
10893
  size: "md",
@@ -10786,10 +10897,10 @@ var Select = (0, import_react49.forwardRef)(
10786
10897
  ]
10787
10898
  }
10788
10899
  ),
10789
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(StyledContent3, { position: "popper", children: [
10790
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Icon, { type: "caret-up" }) }),
10791
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_select.Viewport, { children }),
10792
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Icon, { type: "caret-down" }) })
10900
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(StyledContent3, { position: "popper", children: [
10901
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { type: "caret-up" }) }),
10902
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_select.Viewport, { children }),
10903
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { type: "caret-down" }) })
10793
10904
  ] }) })
10794
10905
  ]
10795
10906
  }
@@ -10801,9 +10912,9 @@ Select.displayName = "Select";
10801
10912
  // src/components/Select/SelectOption.tsx
10802
10913
  var import_react_select2 = require("@radix-ui/react-select");
10803
10914
  var import_react50 = require("react");
10804
- var import_styled_components69 = __toESM(require("styled-components"));
10805
- var import_jsx_runtime246 = require("react/jsx-runtime");
10806
- var StyledItem = (0, import_styled_components69.default)(import_react_select2.Item)`
10915
+ var import_styled_components70 = __toESM(require("styled-components"));
10916
+ var import_jsx_runtime247 = require("react/jsx-runtime");
10917
+ var StyledItem = (0, import_styled_components70.default)(import_react_select2.Item)`
10807
10918
  ${variantStyleMap2.body3};
10808
10919
  display: flex;
10809
10920
  padding: var(--wui-select-option-padding);
@@ -10826,25 +10937,25 @@ var StyledItem = (0, import_styled_components69.default)(import_react_select2.It
10826
10937
  background-color: transparent;
10827
10938
  }
10828
10939
  `;
10829
- var StyledIconContainer = import_styled_components69.default.span`
10940
+ var StyledIconContainer = import_styled_components70.default.span`
10830
10941
  width: 12px;
10831
10942
  `;
10832
10943
  var SelectOption = (0, import_react50.forwardRef)(
10833
10944
  ({ children, ...props }, forwardedRef) => {
10834
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
10945
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
10835
10946
  StyledItem,
10836
10947
  {
10837
10948
  ...props,
10838
10949
  ref: forwardedRef,
10839
10950
  children: [
10840
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(StyledIconContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
10951
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(StyledIconContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
10841
10952
  Icon,
10842
10953
  {
10843
10954
  size: "sm",
10844
10955
  type: "checkmark"
10845
10956
  }
10846
10957
  ) }) }),
10847
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_select2.ItemText, { children })
10958
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(import_react_select2.ItemText, { children })
10848
10959
  ]
10849
10960
  }
10850
10961
  );
@@ -10854,14 +10965,14 @@ SelectOption.displayName = "Option";
10854
10965
 
10855
10966
  // src/components/Select/SelectOptionGroup.tsx
10856
10967
  var import_react_select3 = require("@radix-ui/react-select");
10857
- var import_styled_components70 = __toESM(require("styled-components"));
10858
- var import_jsx_runtime247 = require("react/jsx-runtime");
10859
- var StyledLabel4 = (0, import_styled_components70.default)(import_react_select3.Label)`
10968
+ var import_styled_components71 = __toESM(require("styled-components"));
10969
+ var import_jsx_runtime248 = require("react/jsx-runtime");
10970
+ var StyledLabel4 = (0, import_styled_components71.default)(import_react_select3.Label)`
10860
10971
  padding: var(--wui-select-option-padding);
10861
10972
  `;
10862
10973
  var SelectOptionGroup = ({ children, label, ...props }) => {
10863
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(import_react_select3.Group, { ...props, children: [
10864
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
10974
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(import_react_select3.Group, { ...props, children: [
10975
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
10865
10976
  Text,
10866
10977
  {
10867
10978
  prominence: "secondary",
@@ -10874,19 +10985,19 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
10874
10985
  };
10875
10986
 
10876
10987
  // src/components/Table/Table.tsx
10877
- var import_styled_components71 = __toESM(require("styled-components"));
10878
- var import_jsx_runtime248 = require("react/jsx-runtime");
10879
- var StyledTable = import_styled_components71.default.table`
10988
+ var import_styled_components72 = __toESM(require("styled-components"));
10989
+ var import_jsx_runtime249 = require("react/jsx-runtime");
10990
+ var StyledTable = import_styled_components72.default.table`
10880
10991
  width: 100%;
10881
10992
  border-collapse: collapse;
10882
10993
 
10883
- ${({ $striped }) => $striped && import_styled_components71.css`
10994
+ ${({ $striped }) => $striped && import_styled_components72.css`
10884
10995
  tbody tr:nth-child(even) {
10885
10996
  background-color: var(--wui-color-bg-surface-secondary);
10886
10997
  }
10887
10998
  `}
10888
10999
 
10889
- ${({ $divided }) => $divided && import_styled_components71.css`
11000
+ ${({ $divided }) => $divided && import_styled_components72.css`
10890
11001
  tr {
10891
11002
  border-bottom: 1px solid var(--wui-color-border);
10892
11003
  }
@@ -10898,7 +11009,7 @@ var Table = ({
10898
11009
  divided = false,
10899
11010
  ...props
10900
11011
  }) => {
10901
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11012
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10902
11013
  StyledTable,
10903
11014
  {
10904
11015
  $divided: divided,
@@ -10910,35 +11021,35 @@ var Table = ({
10910
11021
  };
10911
11022
 
10912
11023
  // src/components/Table/TableBody.tsx
10913
- var import_styled_components72 = __toESM(require("styled-components"));
11024
+ var import_styled_components73 = __toESM(require("styled-components"));
10914
11025
 
10915
11026
  // src/components/Table/TableSectionContext.ts
10916
11027
  var import_react51 = require("react");
10917
11028
  var TableSectionContext = (0, import_react51.createContext)(null);
10918
11029
 
10919
11030
  // src/components/Table/TableBody.tsx
10920
- var import_jsx_runtime249 = require("react/jsx-runtime");
10921
- var StyledTbody = import_styled_components72.default.tbody``;
11031
+ var import_jsx_runtime250 = require("react/jsx-runtime");
11032
+ var StyledTbody = import_styled_components73.default.tbody``;
10922
11033
  var TableBody = ({ children, ...props }) => {
10923
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(StyledTbody, { ...props, children }) });
11034
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(StyledTbody, { ...props, children }) });
10924
11035
  };
10925
11036
 
10926
11037
  // src/components/Table/TableCell.tsx
10927
11038
  var import_react52 = require("react");
10928
- var import_styled_components73 = __toESM(require("styled-components"));
10929
- var import_jsx_runtime250 = require("react/jsx-runtime");
10930
- var sharedStyles = import_styled_components73.css`
11039
+ var import_styled_components74 = __toESM(require("styled-components"));
11040
+ var import_jsx_runtime251 = require("react/jsx-runtime");
11041
+ var sharedStyles = import_styled_components74.css`
10931
11042
  color: var(--wui-color-text);
10932
11043
  padding: var(--wui-space-02);
10933
11044
  text-align: left;
10934
11045
  `;
10935
- var StyledTh = import_styled_components73.default.th`
11046
+ var StyledTh = import_styled_components74.default.th`
10936
11047
  ${sharedStyles}
10937
11048
  font-size: var(--wui-typography-body-4-size);
10938
11049
  font-weight: var(--wui-typography-weight-label-bold);
10939
11050
  line-height: var(--wui-typography-body-4-line-height);
10940
11051
  `;
10941
- var StyledTd = import_styled_components73.default.td`
11052
+ var StyledTd = import_styled_components74.default.td`
10942
11053
  ${sharedStyles}
10943
11054
  font-size: var(--wui-typography-body-2-size);
10944
11055
  font-weight: var(--wui-typography-body-2-weight);
@@ -10947,51 +11058,51 @@ var StyledTd = import_styled_components73.default.td`
10947
11058
  var TableCell = ({ children, ...props }) => {
10948
11059
  const section = (0, import_react52.useContext)(TableSectionContext);
10949
11060
  if (section === "head") {
10950
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(StyledTh, { ...props, children });
11061
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(StyledTh, { ...props, children });
10951
11062
  }
10952
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(StyledTd, { ...props, children });
11063
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(StyledTd, { ...props, children });
10953
11064
  };
10954
11065
 
10955
11066
  // src/components/Table/TableFooter.tsx
10956
- var import_styled_components74 = __toESM(require("styled-components"));
10957
- var import_jsx_runtime251 = require("react/jsx-runtime");
10958
- var StyledTfoot = import_styled_components74.default.tfoot``;
11067
+ var import_styled_components75 = __toESM(require("styled-components"));
11068
+ var import_jsx_runtime252 = require("react/jsx-runtime");
11069
+ var StyledTfoot = import_styled_components75.default.tfoot``;
10959
11070
  var TableFooter = ({ children, ...props }) => {
10960
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(StyledTfoot, { ...props, children }) });
11071
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StyledTfoot, { ...props, children }) });
10961
11072
  };
10962
11073
 
10963
11074
  // src/components/Table/TableHead.tsx
10964
- var import_styled_components75 = __toESM(require("styled-components"));
10965
- var import_jsx_runtime252 = require("react/jsx-runtime");
10966
- var StyledThead = import_styled_components75.default.thead``;
11075
+ var import_styled_components76 = __toESM(require("styled-components"));
11076
+ var import_jsx_runtime253 = require("react/jsx-runtime");
11077
+ var StyledThead = import_styled_components76.default.thead``;
10967
11078
  var TableHead = ({ children, ...props }) => {
10968
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StyledThead, { ...props, children }) });
11079
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(StyledThead, { ...props, children }) });
10969
11080
  };
10970
11081
 
10971
11082
  // src/components/Table/TableRow.tsx
10972
- var import_styled_components76 = __toESM(require("styled-components"));
10973
- var import_jsx_runtime253 = require("react/jsx-runtime");
10974
- var StyledTr = import_styled_components76.default.tr``;
11083
+ var import_styled_components77 = __toESM(require("styled-components"));
11084
+ var import_jsx_runtime254 = require("react/jsx-runtime");
11085
+ var StyledTr = import_styled_components77.default.tr``;
10975
11086
  var TableRow = ({ children, ...props }) => {
10976
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(StyledTr, { ...props, children });
11087
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(StyledTr, { ...props, children });
10977
11088
  };
10978
11089
 
10979
11090
  // src/components/Tabs/Tabs.tsx
10980
11091
  var import_react57 = require("react");
10981
11092
  var import_react_tabs4 = require("@radix-ui/react-tabs");
10982
- var import_type_guards42 = require("@wistia/type-guards");
10983
- var import_styled_components81 = __toESM(require("styled-components"));
11093
+ var import_type_guards43 = require("@wistia/type-guards");
11094
+ var import_styled_components82 = __toESM(require("styled-components"));
10984
11095
 
10985
11096
  // src/components/Tabs/TabPanel.tsx
10986
- var import_styled_components77 = __toESM(require("styled-components"));
11097
+ var import_styled_components78 = __toESM(require("styled-components"));
10987
11098
  var import_react_tabs = require("@radix-ui/react-tabs");
10988
- var import_jsx_runtime254 = require("react/jsx-runtime");
10989
- var StyledTabPanel = (0, import_styled_components77.default)(import_react_tabs.Content)`
11099
+ var import_jsx_runtime255 = require("react/jsx-runtime");
11100
+ var StyledTabPanel = (0, import_styled_components78.default)(import_react_tabs.Content)`
10990
11101
  display: flex;
10991
11102
  flex-direction: column;
10992
11103
  `;
10993
11104
  var TabPanel = ({ children, value, ...props }) => {
10994
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
11105
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
10995
11106
  StyledTabPanel,
10996
11107
  {
10997
11108
  value,
@@ -11003,10 +11114,10 @@ var TabPanel = ({ children, value, ...props }) => {
11003
11114
  TabPanel.displayName = "TabPanel";
11004
11115
 
11005
11116
  // src/components/Tabs/TabList.tsx
11006
- var import_styled_components78 = __toESM(require("styled-components"));
11117
+ var import_styled_components79 = __toESM(require("styled-components"));
11007
11118
  var import_react_tabs2 = require("@radix-ui/react-tabs");
11008
- var import_jsx_runtime255 = require("react/jsx-runtime");
11009
- var StyledTabList = (0, import_styled_components78.default)(import_react_tabs2.List)`
11119
+ var import_jsx_runtime256 = require("react/jsx-runtime");
11120
+ var StyledTabList = (0, import_styled_components79.default)(import_react_tabs2.List)`
11010
11121
  ${segmentedControlStyles}
11011
11122
 
11012
11123
  margin-bottom: var(--wui-space-04);
@@ -11019,7 +11130,7 @@ var TabList = ({
11019
11130
  ariaLabel,
11020
11131
  ...props
11021
11132
  }) => {
11022
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
11133
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11023
11134
  StyledTabList,
11024
11135
  {
11025
11136
  $fullWidth: fullWidth,
@@ -11033,9 +11144,9 @@ TabList.displayName = "TabList";
11033
11144
 
11034
11145
  // src/components/Tabs/TabItem.tsx
11035
11146
  var import_react54 = require("react");
11036
- var import_styled_components79 = __toESM(require("styled-components"));
11147
+ var import_styled_components80 = __toESM(require("styled-components"));
11037
11148
  var import_react_tabs3 = require("@radix-ui/react-tabs");
11038
- var import_type_guards41 = require("@wistia/type-guards");
11149
+ var import_type_guards42 = require("@wistia/type-guards");
11039
11150
 
11040
11151
  // src/components/Tabs/useTabsValue.tsx
11041
11152
  var import_react53 = require("react");
@@ -11050,8 +11161,8 @@ var useTabsValue = () => {
11050
11161
  };
11051
11162
 
11052
11163
  // src/components/Tabs/TabItem.tsx
11053
- var import_jsx_runtime256 = require("react/jsx-runtime");
11054
- var StyledTabItem = (0, import_styled_components79.default)(import_react_tabs3.Trigger)`
11164
+ var import_jsx_runtime257 = require("react/jsx-runtime");
11165
+ var StyledTabItem = (0, import_styled_components80.default)(import_react_tabs3.Trigger)`
11055
11166
  ${segmentedControlItemStyles}
11056
11167
 
11057
11168
  &:focus-visible {
@@ -11089,12 +11200,12 @@ var TabItem = (0, import_react54.forwardRef)(
11089
11200
  resizeObserver.disconnect();
11090
11201
  };
11091
11202
  }, [selectedValue, setSelectedItemMeasurements, value]);
11092
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
11203
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
11093
11204
  StyledTabItem,
11094
11205
  {
11095
11206
  ref: combinedRef,
11096
- $hasLabel: (0, import_type_guards41.isNotNil)(label),
11097
- "aria-label": (0, import_type_guards41.isNotNil)(label) ? void 0 : ariaLabel,
11207
+ $hasLabel: (0, import_type_guards42.isNotNil)(label),
11208
+ "aria-label": (0, import_type_guards42.isNotNil)(label) ? void 0 : ariaLabel,
11098
11209
  disabled,
11099
11210
  value,
11100
11211
  children: [
@@ -11131,9 +11242,9 @@ var extractTabItems = (children) => {
11131
11242
 
11132
11243
  // src/components/Tabs/SelectedItemIndicator.tsx
11133
11244
  var import_react56 = require("react");
11134
- var import_styled_components80 = __toESM(require("styled-components"));
11135
- var import_jsx_runtime257 = require("react/jsx-runtime");
11136
- var TabsSelectedItemIndicatorDiv = (0, import_styled_components80.default)(SelectedItemIndicatorDiv)`
11245
+ var import_styled_components81 = __toESM(require("styled-components"));
11246
+ var import_jsx_runtime258 = require("react/jsx-runtime");
11247
+ var TabsSelectedItemIndicatorDiv = (0, import_styled_components81.default)(SelectedItemIndicatorDiv)`
11137
11248
  &:has(~ ${StyledTabItem}:focus-visible) {
11138
11249
  outline: 2px solid var(--wui-color-focus-ring);
11139
11250
  }
@@ -11152,7 +11263,7 @@ var SelectedItemIndicator2 = () => {
11152
11263
  if (selectedValue == null) {
11153
11264
  return null;
11154
11265
  }
11155
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
11266
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
11156
11267
  TabsSelectedItemIndicatorDiv,
11157
11268
  {
11158
11269
  style: {
@@ -11165,19 +11276,19 @@ var SelectedItemIndicator2 = () => {
11165
11276
  };
11166
11277
 
11167
11278
  // src/components/Tabs/Tabs.tsx
11168
- var import_jsx_runtime258 = require("react/jsx-runtime");
11169
- var TabsContainer = import_styled_components81.default.div`
11279
+ var import_jsx_runtime259 = require("react/jsx-runtime");
11280
+ var TabsContainer = import_styled_components82.default.div`
11170
11281
  display: flex;
11171
11282
  flex-direction: column;
11172
11283
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
11173
11284
  overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
11174
11285
  `;
11175
- var StickyTabContent = import_styled_components81.default.div`
11286
+ var StickyTabContent = import_styled_components82.default.div`
11176
11287
  flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
11177
11288
  overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
11178
11289
  overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
11179
11290
  `;
11180
- var StyledTabsRoot = (0, import_styled_components81.default)(import_react_tabs4.Root)`
11291
+ var StyledTabsRoot = (0, import_styled_components82.default)(import_react_tabs4.Root)`
11181
11292
  display: flex;
11182
11293
  flex-direction: column;
11183
11294
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
@@ -11200,7 +11311,7 @@ var Tabs = (0, import_react57.forwardRef)(
11200
11311
  onValueChange: setInternalSelectedValue
11201
11312
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
11202
11313
  const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
11203
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
11314
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11204
11315
  StyledTabsRoot,
11205
11316
  {
11206
11317
  ref,
@@ -11208,14 +11319,14 @@ var Tabs = (0, import_react57.forwardRef)(
11208
11319
  activationMode: "automatic",
11209
11320
  ...otherProps,
11210
11321
  ...modeProps,
11211
- children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(SelectedItemMeasurementsProvider, { children: [
11212
- /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
11322
+ children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(SelectedItemMeasurementsProvider, { children: [
11323
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
11213
11324
  TabList,
11214
11325
  {
11215
11326
  ariaLabel,
11216
11327
  fullWidth,
11217
11328
  children: [
11218
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(SelectedItemIndicator2, {}),
11329
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(SelectedItemIndicator2, {}),
11219
11330
  tabItems.map((tab) => {
11220
11331
  const {
11221
11332
  value,
@@ -11224,8 +11335,8 @@ var Tabs = (0, import_react57.forwardRef)(
11224
11335
  label,
11225
11336
  "aria-label": ariaLabelForTab
11226
11337
  } = tab.props;
11227
- if ((0, import_type_guards42.isNil)(icon)) {
11228
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
11338
+ if ((0, import_type_guards43.isNil)(icon)) {
11339
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11229
11340
  TabItem,
11230
11341
  {
11231
11342
  disabled,
@@ -11235,8 +11346,8 @@ var Tabs = (0, import_react57.forwardRef)(
11235
11346
  value
11236
11347
  );
11237
11348
  }
11238
- if ((0, import_type_guards42.isNotNil)(label)) {
11239
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
11349
+ if ((0, import_type_guards43.isNotNil)(label)) {
11350
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11240
11351
  TabItem,
11241
11352
  {
11242
11353
  disabled,
@@ -11247,8 +11358,8 @@ var Tabs = (0, import_react57.forwardRef)(
11247
11358
  value
11248
11359
  );
11249
11360
  }
11250
- if ((0, import_type_guards42.isNotNil)(ariaLabelForTab)) {
11251
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
11361
+ if ((0, import_type_guards43.isNotNil)(ariaLabelForTab)) {
11362
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11252
11363
  TabItem,
11253
11364
  {
11254
11365
  "aria-label": ariaLabelForTab,
@@ -11264,7 +11375,7 @@ var Tabs = (0, import_react57.forwardRef)(
11264
11375
  ]
11265
11376
  }
11266
11377
  ),
11267
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
11378
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11268
11379
  TabPanel,
11269
11380
  {
11270
11381
  value: tab.props.value,
@@ -11281,27 +11392,34 @@ Tabs.displayName = "Tabs";
11281
11392
 
11282
11393
  // src/components/Tabs/Tab.tsx
11283
11394
  var import_react58 = require("react");
11284
- var import_jsx_runtime259 = require("react/jsx-runtime");
11395
+ var import_jsx_runtime260 = require("react/jsx-runtime");
11285
11396
  var Tab = (0, import_react58.forwardRef)(({ children }, ref) => {
11286
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("div", { ref, children });
11397
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("div", { ref, children });
11287
11398
  });
11288
11399
  Tab.displayName = "Tab";
11289
11400
 
11290
11401
  // src/components/Tag/Tag.tsx
11291
11402
  var import_react59 = require("react");
11292
- var import_styled_components82 = __toESM(require("styled-components"));
11293
- var import_type_guards43 = require("@wistia/type-guards");
11294
- var import_jsx_runtime260 = require("react/jsx-runtime");
11295
- var TagLabel = import_styled_components82.default.a`
11403
+ var import_styled_components83 = __toESM(require("styled-components"));
11404
+ var import_type_guards44 = require("@wistia/type-guards");
11405
+ var import_jsx_runtime261 = require("react/jsx-runtime");
11406
+ var TagLabel = import_styled_components83.default.a`
11296
11407
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11297
11408
  font-size: var(--wui-typography-label-4-size);
11298
11409
  font-weight: var(--wui-typography-label-4-weight);
11299
11410
  line-height: var(--wui-typography-label-4-line-height);
11300
11411
  border-radius: var(--wui-border-radius-01);
11412
+ display: flex;
11301
11413
  align-items: center;
11302
11414
  color: var(--wui-color-text);
11303
11415
  text-decoration: none;
11304
11416
  padding: var(--wui-space-01);
11417
+ gap: var(--wui-space-01);
11418
+
11419
+ svg {
11420
+ height: 12px;
11421
+ width: 12px;
11422
+ }
11305
11423
 
11306
11424
  :not(:only-child) {
11307
11425
  padding-right: var(--wui-space-01);
@@ -11320,14 +11438,14 @@ var TagLabel = import_styled_components82.default.a`
11320
11438
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
11321
11439
  }
11322
11440
  `;
11323
- var TagDivider = import_styled_components82.default.div`
11441
+ var TagDivider = import_styled_components83.default.div`
11324
11442
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11325
11443
  border-left: 1px solid var(--wui-color-border);
11326
11444
  display: flex;
11327
11445
  height: 14px;
11328
11446
  width: 1px;
11329
11447
  `;
11330
- var StyledRemoveButton = import_styled_components82.default.button`
11448
+ var StyledRemoveButton = import_styled_components83.default.button`
11331
11449
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11332
11450
  all: unset;
11333
11451
  cursor: pointer;
@@ -11355,7 +11473,7 @@ var StyledRemoveButton = import_styled_components82.default.button`
11355
11473
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
11356
11474
  }
11357
11475
  `;
11358
- var StyledTag = import_styled_components82.default.div`
11476
+ var StyledTag = import_styled_components83.default.div`
11359
11477
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11360
11478
  align-items: center;
11361
11479
  background-color: var(--wui-color-bg-surface-secondary);
@@ -11368,55 +11486,67 @@ var StyledTag = import_styled_components82.default.div`
11368
11486
  }
11369
11487
  `;
11370
11488
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
11371
- if ((0, import_type_guards43.isNil)(onClickRemove)) {
11489
+ if ((0, import_type_guards44.isNil)(onClickRemove)) {
11372
11490
  return null;
11373
11491
  }
11374
- if ((0, import_type_guards43.isNil)(onClickRemoveLabel)) {
11492
+ if ((0, import_type_guards44.isNil)(onClickRemoveLabel)) {
11375
11493
  throw new Error(
11376
11494
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
11377
11495
  );
11378
11496
  }
11379
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(import_jsx_runtime260.Fragment, { children: [
11380
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(TagDivider, { $colorScheme: colorScheme }),
11381
- /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
11497
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(import_jsx_runtime261.Fragment, { children: [
11498
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(TagDivider, { $colorScheme: colorScheme }),
11499
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
11382
11500
  StyledRemoveButton,
11383
11501
  {
11384
11502
  $colorScheme: colorScheme,
11385
11503
  onClick: onClickRemove,
11386
11504
  type: "button",
11387
11505
  children: [
11388
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11506
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11389
11507
  Icon,
11390
11508
  {
11391
11509
  size: "sm",
11392
11510
  type: "close"
11393
11511
  }
11394
11512
  ),
11395
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
11513
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
11396
11514
  ]
11397
11515
  }
11398
11516
  )
11399
11517
  ] });
11400
11518
  };
11401
11519
  var Tag = (0, import_react59.forwardRef)(
11402
- ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
11403
- const labelProps = (0, import_type_guards43.isNotNil)(href) && (0, import_type_guards43.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
11404
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
11520
+ ({
11521
+ onClickRemove,
11522
+ colorScheme = "inherit",
11523
+ href,
11524
+ icon,
11525
+ label,
11526
+ onClickRemoveLabel,
11527
+ ...otherProps
11528
+ }, ref) => {
11529
+ const hasIcon = (0, import_type_guards44.isNotNil)(icon);
11530
+ const labelProps = (0, import_type_guards44.isNotNil)(href) && (0, import_type_guards44.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
11531
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
11405
11532
  StyledTag,
11406
11533
  {
11407
11534
  ref,
11408
11535
  $colorScheme: colorScheme,
11409
11536
  ...otherProps,
11410
11537
  children: [
11411
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11538
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
11412
11539
  TagLabel,
11413
11540
  {
11414
11541
  ...labelProps,
11415
11542
  $colorScheme: colorScheme,
11416
- children: label
11543
+ children: [
11544
+ hasIcon ? icon : null,
11545
+ label
11546
+ ]
11417
11547
  }
11418
11548
  ),
11419
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11549
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11420
11550
  RemoveButton,
11421
11551
  {
11422
11552
  colorScheme,
@@ -11432,26 +11562,26 @@ var Tag = (0, import_react59.forwardRef)(
11432
11562
  Tag.displayName = "Tag";
11433
11563
 
11434
11564
  // src/components/WistiaLogo/WistiaLogo.tsx
11435
- var import_styled_components83 = __toESM(require("styled-components"));
11436
- var import_type_guards44 = require("@wistia/type-guards");
11437
- var import_jsx_runtime261 = require("react/jsx-runtime");
11565
+ var import_styled_components84 = __toESM(require("styled-components"));
11566
+ var import_type_guards45 = require("@wistia/type-guards");
11567
+ var import_jsx_runtime262 = require("react/jsx-runtime");
11438
11568
  var renderBrandmark = (brandmarkColor, iconOnly) => {
11439
11569
  if (iconOnly) {
11440
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11570
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11441
11571
  "g",
11442
11572
  {
11443
11573
  "data-testid": "ui-wistia-logo-brandmark",
11444
11574
  fill: brandmarkColor,
11445
- children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
11575
+ children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
11446
11576
  }
11447
11577
  );
11448
11578
  }
11449
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11579
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11450
11580
  "g",
11451
11581
  {
11452
11582
  "data-testid": "ui-wistia-logo-brandmark",
11453
11583
  fill: brandmarkColor,
11454
- children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
11584
+ children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
11455
11585
  }
11456
11586
  );
11457
11587
  };
@@ -11459,12 +11589,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
11459
11589
  if (iconOnly) {
11460
11590
  return null;
11461
11591
  }
11462
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11592
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11463
11593
  "g",
11464
11594
  {
11465
11595
  "data-testid": "ui-wistia-logo-logotype",
11466
11596
  fill: logotypeColor,
11467
- children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
11597
+ children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
11468
11598
  }
11469
11599
  );
11470
11600
  };
@@ -11474,7 +11604,7 @@ var computedViewBox = (iconOnly) => {
11474
11604
  }
11475
11605
  return "0 0 144 31.47";
11476
11606
  };
11477
- var WistiaLogoComponent = import_styled_components83.default.svg`
11607
+ var WistiaLogoComponent = import_styled_components84.default.svg`
11478
11608
  height: ${({ height }) => `${height}px`};
11479
11609
 
11480
11610
  /* ensure it will always fit on mobile */
@@ -11490,12 +11620,12 @@ var WistiaLogoComponent = import_styled_components83.default.svg`
11490
11620
  ${({ $opticallyCentered, $iconOnly }) => {
11491
11621
  if ($opticallyCentered) {
11492
11622
  if ($iconOnly) {
11493
- return import_styled_components83.css`
11623
+ return import_styled_components84.css`
11494
11624
  aspect-ratio: 1;
11495
11625
  padding: 11.85% 3.12% 13.91%;
11496
11626
  `;
11497
11627
  }
11498
- return import_styled_components83.css`
11628
+ return import_styled_components84.css`
11499
11629
  aspect-ratio: 127 / 32;
11500
11630
  `;
11501
11631
  }
@@ -11532,7 +11662,7 @@ var WistiaLogo = ({
11532
11662
  };
11533
11663
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
11534
11664
  const logotypeColor = VARIANT_COLORS[variant].logotype;
11535
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
11665
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
11536
11666
  WistiaLogoComponent,
11537
11667
  {
11538
11668
  $hoverColor: hoverColor,
@@ -11545,14 +11675,14 @@ var WistiaLogo = ({
11545
11675
  xmlns: "http://www.w3.org/2000/svg",
11546
11676
  ...otherProps,
11547
11677
  children: [
11548
- /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("title", { children: title }),
11549
- (0, import_type_guards44.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("desc", { children: description }) : null,
11678
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("title", { children: title }),
11679
+ (0, import_type_guards45.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("desc", { children: description }) : null,
11550
11680
  renderBrandmark(brandmarkColor, iconOnly),
11551
11681
  renderLogotype(logotypeColor, iconOnly)
11552
11682
  ]
11553
11683
  }
11554
11684
  );
11555
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("a", { href, children: Logo }) : Logo;
11685
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("a", { href, children: Logo }) : Logo;
11556
11686
  };
11557
11687
  WistiaLogo.displayName = "WistiaLogo";
11558
11688
  // Annotate the CommonJS export names for ESM import in node: