@wistia/ui 0.6.21 → 0.6.22-beta.40584006.8e9fb4e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.21
3
+ * @license @wistia/ui v0.6.22-beta.40584006.8e9fb4e
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -1125,6 +1125,7 @@ var colorAliasTokens = css4`
1125
1125
 
1126
1126
  /* Disabled */
1127
1127
  --wui-color-bg-surface-disabled: var(--wui-gray-3);
1128
+ --wui-color-bg-border-disabled: var(--wui-gray-4);
1128
1129
  --wui-color-icon-disabled: var(--wui-gray-8);
1129
1130
  --wui-color-text-disabled: var(--wui-gray-10);
1130
1131
  --wui-color-focus-ring-disabled: var(--wui-gray-6);
@@ -2116,6 +2117,7 @@ var ellipsisStyle = css13`
2116
2117
  overflow: hidden;
2117
2118
  text-overflow: ellipsis;
2118
2119
  white-space: nowrap;
2120
+ display: block;
2119
2121
 
2120
2122
  /*
2121
2123
  Using feature detection (i.e., -webkit-named-image) we only target Safari browsers
@@ -2138,7 +2140,7 @@ var ellipsisStyle = css13`
2138
2140
  var ellipsisFlexParentStyle = css13`
2139
2141
  min-width: 0;
2140
2142
  `;
2141
- var EllipsisComponent = styled.div`
2143
+ var EllipsisComponent = styled.span`
2142
2144
  ${ellipsisStyle};
2143
2145
  ${({ $lines }) => {
2144
2146
  if (isNotNil2($lines)) {
@@ -7414,12 +7416,12 @@ Card.displayName = "Card";
7414
7416
 
7415
7417
  // src/components/Checkbox/Checkbox.tsx
7416
7418
  import { forwardRef as forwardRef6, useId } from "react";
7417
- import styled17, { css as css20 } from "styled-components";
7419
+ import styled18, { css as css20 } from "styled-components";
7418
7420
  import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
7419
7421
 
7420
7422
  // src/private/components/FormControlLabel/FormControlLabel.tsx
7421
- import styled16, { css as css19 } from "styled-components";
7422
- import { isNil as isNil12, isNotNil as isNotNil8 } from "@wistia/type-guards";
7423
+ import styled17, { css as css19 } from "styled-components";
7424
+ import { isNil as isNil12, isNotNil as isNotNil9 } from "@wistia/type-guards";
7423
7425
 
7424
7426
  // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
7425
7427
  import styled15, { css as css18 } from "styled-components";
@@ -7457,16 +7459,39 @@ var FormControlLabelDescription = ({
7457
7459
  };
7458
7460
  FormControlLabelDescription.displayName = "FormControlLabelDescription";
7459
7461
 
7462
+ // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7463
+ import styled16 from "styled-components";
7464
+ import { isNotNil as isNotNil8 } from "@wistia/type-guards";
7465
+ import { jsx as jsx200 } from "react/jsx-runtime";
7466
+ var VisuallyHidden = styled16.div({ ...visuallyHiddenStyle });
7467
+ var VisuallyHiddenButFocusable = styled16.div({
7468
+ "&:not(:focus-within)": visuallyHiddenStyle
7469
+ });
7470
+ var ScreenReaderOnly = ({
7471
+ text,
7472
+ children,
7473
+ focusable = false,
7474
+ ...otherProps
7475
+ }) => {
7476
+ const accessibleText = isNotNil8(text) ? text : children;
7477
+ if (focusable) {
7478
+ return /* @__PURE__ */ jsx200(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7479
+ }
7480
+ return /* @__PURE__ */ jsx200(VisuallyHidden, { ...otherProps, children: accessibleText });
7481
+ };
7482
+ ScreenReaderOnly.displayName = "ScreenReaderOnly";
7483
+
7460
7484
  // src/private/components/FormControlLabel/FormControlLabel.tsx
7461
- import { jsx as jsx200, jsxs as jsxs12 } from "react/jsx-runtime";
7485
+ import { jsx as jsx201, jsxs as jsxs12 } from "react/jsx-runtime";
7462
7486
  var disabledStyle2 = css19`
7487
+ cursor: not-allowed;
7463
7488
  color: var(--wui-color-text-disabled);
7464
7489
  `;
7465
- var StyledLabelWrapper = styled16.div`
7490
+ var StyledLabelWrapper = styled17.div`
7466
7491
  display: flex;
7467
7492
  flex-direction: column;
7468
7493
  `;
7469
- var StyledFormControlLabel = styled16.label`
7494
+ var StyledFormControlLabel = styled17.label`
7470
7495
  cursor: pointer;
7471
7496
  display: flex;
7472
7497
  align-items: center;
@@ -7485,11 +7510,16 @@ var FormControlLabel = ({
7485
7510
  disabled = false,
7486
7511
  controlSlot,
7487
7512
  htmlFor,
7513
+ hideLabel = false,
7488
7514
  ...props
7489
7515
  }) => {
7490
7516
  if (isNil12(label)) {
7491
7517
  return null;
7492
7518
  }
7519
+ const labelContent = hideLabel ? /* @__PURE__ */ jsx201(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ jsxs12(StyledLabelWrapper, { children: [
7520
+ label,
7521
+ /* @__PURE__ */ jsx201(FormControlLabelDescription, { children: description })
7522
+ ] });
7493
7523
  return /* @__PURE__ */ jsxs12(
7494
7524
  StyledFormControlLabel,
7495
7525
  {
@@ -7497,11 +7527,8 @@ var FormControlLabel = ({
7497
7527
  htmlFor,
7498
7528
  ...props,
7499
7529
  children: [
7500
- isNotNil8(controlSlot) ? controlSlot : null,
7501
- /* @__PURE__ */ jsxs12(StyledLabelWrapper, { children: [
7502
- label,
7503
- /* @__PURE__ */ jsx200(FormControlLabelDescription, { children: description })
7504
- ] })
7530
+ isNotNil9(controlSlot) ? controlSlot : null,
7531
+ labelContent
7505
7532
  ]
7506
7533
  }
7507
7534
  );
@@ -7509,8 +7536,8 @@ var FormControlLabel = ({
7509
7536
  FormControlLabel.displayName = "FormControlLabel";
7510
7537
 
7511
7538
  // src/components/Checkbox/Checkbox.tsx
7512
- import { jsx as jsx201, jsxs as jsxs13 } from "react/jsx-runtime";
7513
- var CheckIcon = () => /* @__PURE__ */ jsx201(
7539
+ import { jsx as jsx202, jsxs as jsxs13 } from "react/jsx-runtime";
7540
+ var CheckIcon = () => /* @__PURE__ */ jsx202(
7514
7541
  "svg",
7515
7542
  {
7516
7543
  fill: "inherit",
@@ -7518,7 +7545,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx201(
7518
7545
  viewBox: "0 0 10 8",
7519
7546
  width: "10",
7520
7547
  xmlns: "http://www.w3.org/2000/svg",
7521
- children: /* @__PURE__ */ jsx201(
7548
+ children: /* @__PURE__ */ jsx202(
7522
7549
  "path",
7523
7550
  {
7524
7551
  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",
@@ -7527,10 +7554,6 @@ var CheckIcon = () => /* @__PURE__ */ jsx201(
7527
7554
  )
7528
7555
  }
7529
7556
  );
7530
- var disabledStyle3 = css20`
7531
- cursor: not-allowed;
7532
- opacity: 0.5;
7533
- `;
7534
7557
  var inputSizeSmall = css20`
7535
7558
  width: 14px;
7536
7559
  height: 14px;
@@ -7549,45 +7572,45 @@ var inputSizeLarge = css20`
7549
7572
  min-width: 20px;
7550
7573
  min-height: 20px;
7551
7574
  `;
7552
- var StyledCheckboxWrapper = styled17.div`
7575
+ var StyledCheckboxWrapper = styled18.div`
7553
7576
  display: flex;
7554
7577
  margin: 0;
7555
7578
 
7556
7579
  /* TODO this solves a problem but potentially causes and a11y issue */
7557
7580
  user-select: none;
7558
-
7559
- ${({ disabled }) => disabled && disabledStyle3};
7560
7581
  `;
7561
7582
  var getSizeCss = (size) => {
7562
7583
  if (size === "sm") return inputSizeSmall;
7563
7584
  if (size === "lg") return inputSizeLarge;
7564
7585
  return inputSizeMedium;
7565
7586
  };
7566
- var StyledCheckboxInput = styled17.div`
7587
+ var StyledCheckboxInput = styled18.div`
7567
7588
  ${({ $size }) => getSizeCss($size)}
7568
7589
  line-height: 0;
7569
7590
  margin: 0;
7570
- border: 1px solid var(--wui-color-border);
7571
7591
  border-radius: var(--wui-border-radius-01);
7572
- background-color: var(--wui-color-bg-fill-white);
7573
7592
  display: grid;
7574
7593
  place-content: center;
7575
7594
  align-self: flex-start;
7595
+ background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface)"};
7596
+ border: 1px solid
7597
+ ${({ $disabled }) => $disabled ? "var(--wui-color-icon-disabled)" : "var(--wui-color-border)"};
7576
7598
 
7599
+ /* checkmark icon */
7577
7600
  svg {
7578
7601
  display: none;
7579
7602
 
7580
7603
  path {
7581
- fill: var(--wui-color-bg-fill-white);
7604
+ fill: ${({ $disabled }) => $disabled ? "var(--wui-color-icon-disabled)" : "var(--wui-color-bg-fill-white)"};
7582
7605
  }
7583
7606
  }
7584
7607
  `;
7585
- var StyledHiddenCheckboxInput = styled17.input`
7608
+ var StyledHiddenCheckboxInput = styled18.input`
7586
7609
  ${visuallyHiddenStyle}
7587
7610
 
7588
7611
  /* toggles display of faux-input background-color */
7589
7612
  &:checked + label [data-wui-faux-input='true'] {
7590
- background-color: var(--wui-color-bg-fill);
7613
+ background-color: ${({ disabled }) => disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-fill)"};
7591
7614
  }
7592
7615
 
7593
7616
  /* toggles display of CheckIcon */
@@ -7607,50 +7630,47 @@ var Checkbox = forwardRef6(
7607
7630
  size = "md",
7608
7631
  value,
7609
7632
  required = false,
7633
+ hideLabel = false,
7610
7634
  ...props
7611
7635
  }, ref) => {
7612
7636
  const generatedId = useId();
7613
7637
  const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox-${generatedId}`;
7614
- return /* @__PURE__ */ jsxs13(
7615
- StyledCheckboxWrapper,
7616
- {
7617
- ref,
7618
- disabled,
7619
- children: [
7620
- /* @__PURE__ */ jsx201(
7621
- StyledHiddenCheckboxInput,
7638
+ return /* @__PURE__ */ jsxs13(StyledCheckboxWrapper, { disabled, children: [
7639
+ /* @__PURE__ */ jsx202(
7640
+ StyledHiddenCheckboxInput,
7641
+ {
7642
+ ...props,
7643
+ ref,
7644
+ checked,
7645
+ disabled,
7646
+ id: computedId,
7647
+ name,
7648
+ onChange,
7649
+ required,
7650
+ type: "checkbox",
7651
+ value
7652
+ }
7653
+ ),
7654
+ /* @__PURE__ */ jsx202(
7655
+ FormControlLabel,
7656
+ {
7657
+ controlSlot: /* @__PURE__ */ jsx202(
7658
+ StyledCheckboxInput,
7622
7659
  {
7623
- ...props,
7624
- ref,
7625
- checked,
7626
- disabled,
7627
- id: computedId,
7628
- name,
7629
- onChange,
7630
- required,
7631
- type: "checkbox",
7632
- value
7660
+ $disabled: disabled,
7661
+ $size: size,
7662
+ "data-wui-faux-input": "true",
7663
+ children: /* @__PURE__ */ jsx202(CheckIcon, {})
7633
7664
  }
7634
7665
  ),
7635
- /* @__PURE__ */ jsx201(
7636
- FormControlLabel,
7637
- {
7638
- controlSlot: /* @__PURE__ */ jsx201(
7639
- StyledCheckboxInput,
7640
- {
7641
- $size: size,
7642
- "data-wui-faux-input": "true",
7643
- children: /* @__PURE__ */ jsx201(CheckIcon, {})
7644
- }
7645
- ),
7646
- description,
7647
- htmlFor: computedId,
7648
- label
7649
- }
7650
- )
7651
- ]
7652
- }
7653
- );
7666
+ description,
7667
+ disabled,
7668
+ hideLabel,
7669
+ htmlFor: computedId,
7670
+ label
7671
+ }
7672
+ )
7673
+ ] });
7654
7674
  }
7655
7675
  );
7656
7676
  Checkbox.displayName = "Checkbox";
@@ -7692,10 +7712,10 @@ ClickRegion.displayName = "ClickRegion";
7692
7712
 
7693
7713
  // src/components/Collapsible/Collapsible.tsx
7694
7714
  import { Root } from "@radix-ui/react-collapsible";
7695
- import { isNotNil as isNotNil9 } from "@wistia/type-guards";
7696
- import styled18 from "styled-components";
7697
- import { jsx as jsx202 } from "react/jsx-runtime";
7698
- var StyledRoot = styled18(Root)`
7715
+ import { isNotNil as isNotNil10 } from "@wistia/type-guards";
7716
+ import styled19 from "styled-components";
7717
+ import { jsx as jsx203 } from "react/jsx-runtime";
7718
+ var StyledRoot = styled19(Root)`
7699
7719
  &[data-state='closed'] [data-wui-collapsible-content] {
7700
7720
  display: -webkit-box;
7701
7721
  -webkit-box-orient: vertical;
@@ -7709,47 +7729,47 @@ var Collapsible = ({
7709
7729
  onOpenChange
7710
7730
  }) => {
7711
7731
  const controlProps = {
7712
- ...isNotNil9(onOpenChange) && isNotNil9(isOpen) ? { open: isOpen, onOpenChange } : {}
7732
+ ...isNotNil10(onOpenChange) && isNotNil10(isOpen) ? { open: isOpen, onOpenChange } : {}
7713
7733
  };
7714
- return /* @__PURE__ */ jsx202(StyledRoot, { ...controlProps, children });
7734
+ return /* @__PURE__ */ jsx203(StyledRoot, { ...controlProps, children });
7715
7735
  };
7716
7736
  Collapsible.displayName = "Collapsible";
7717
7737
 
7718
7738
  // src/components/Collapsible/CollapsibleTrigger.tsx
7719
7739
  import { Children as Children4 } from "react";
7720
7740
  import { Trigger } from "@radix-ui/react-collapsible";
7721
- import { jsx as jsx203 } from "react/jsx-runtime";
7741
+ import { jsx as jsx204 } from "react/jsx-runtime";
7722
7742
  var CollapsibleTrigger = ({ children }) => {
7723
7743
  Children4.only(children);
7724
- return /* @__PURE__ */ jsx203(Trigger, { asChild: true, children });
7744
+ return /* @__PURE__ */ jsx204(Trigger, { asChild: true, children });
7725
7745
  };
7726
7746
 
7727
7747
  // src/components/Collapsible/CollapsibleContent.tsx
7728
- import styled19 from "styled-components";
7748
+ import styled20 from "styled-components";
7729
7749
  import { Content } from "@radix-ui/react-collapsible";
7730
7750
  import { isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
7731
- import { Fragment as Fragment4, jsx as jsx204, jsxs as jsxs14 } from "react/jsx-runtime";
7732
- var ClampedContent = styled19.div.attrs({ "data-wui-collapsible-content": true })`
7751
+ import { Fragment as Fragment4, jsx as jsx205, jsxs as jsxs14 } from "react/jsx-runtime";
7752
+ var ClampedContent = styled20.div.attrs({ "data-wui-collapsible-content": true })`
7733
7753
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
7734
7754
  `;
7735
7755
  var CollapsibleContent = ({ clamp, children }) => {
7736
7756
  if (isNotUndefined5(clamp)) {
7737
- return /* @__PURE__ */ jsx204(ClampedContent, { $clamp: clamp, children });
7757
+ return /* @__PURE__ */ jsx205(ClampedContent, { $clamp: clamp, children });
7738
7758
  }
7739
- return /* @__PURE__ */ jsx204(Content, { asChild: true, children: /* @__PURE__ */ jsxs14(Fragment4, { children: [
7759
+ return /* @__PURE__ */ jsx205(Content, { asChild: true, children: /* @__PURE__ */ jsxs14(Fragment4, { children: [
7740
7760
  children,
7741
7761
  " "
7742
7762
  ] }) });
7743
7763
  };
7744
7764
 
7745
7765
  // src/components/DataCards/DataCard.tsx
7746
- import styled21, { keyframes } from "styled-components";
7766
+ import styled22, { keyframes } from "styled-components";
7747
7767
  import { isNotNull } from "@wistia/type-guards";
7748
7768
 
7749
7769
  // src/components/Heading/Heading.tsx
7750
7770
  import { forwardRef as forwardRef7 } from "react";
7751
- import styled20, { css as css21 } from "styled-components";
7752
- import { jsx as jsx205 } from "react/jsx-runtime";
7771
+ import styled21, { css as css21 } from "styled-components";
7772
+ import { jsx as jsx206 } from "react/jsx-runtime";
7753
7773
  var heroStyle = css21`
7754
7774
  --font-family: var(--wui-typography-heading-hero-family);
7755
7775
  --font-size: var(--wui-typography-heading-hero-size);
@@ -7802,7 +7822,7 @@ var variantStyleMap = {
7802
7822
  heading6: heading6TextStyle
7803
7823
  };
7804
7824
  var DEFAULT_ELEMENT2 = "h1";
7805
- var StyledHeading = styled20.div`
7825
+ var StyledHeading = styled21.div`
7806
7826
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7807
7827
  font-family: var(--font-family);
7808
7828
  font-size: var(--font-size);
@@ -7845,7 +7865,7 @@ var HeadingComponent = forwardRef7(
7845
7865
  variant = "heading1",
7846
7866
  renderAs,
7847
7867
  ...otherProps
7848
- }, ref) => /* @__PURE__ */ jsx205(
7868
+ }, ref) => /* @__PURE__ */ jsx206(
7849
7869
  StyledHeading,
7850
7870
  {
7851
7871
  ref,
@@ -7865,8 +7885,8 @@ HeadingComponent.displayName = "Heading";
7865
7885
  var Heading = makePolymorphic(HeadingComponent);
7866
7886
 
7867
7887
  // src/components/DataCards/DataCard.tsx
7868
- import { jsx as jsx206, jsxs as jsxs15 } from "react/jsx-runtime";
7869
- var StyledDataCard = styled21.div`
7888
+ import { jsx as jsx207, jsxs as jsxs15 } from "react/jsx-runtime";
7889
+ var StyledDataCard = styled22.div`
7870
7890
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
7871
7891
  display: grid;
7872
7892
  grid-template-areas: 'label slot' 'value value';
@@ -7887,7 +7907,7 @@ var shimmer = keyframes`
7887
7907
  background-position: -200% 0;
7888
7908
  }
7889
7909
  `;
7890
- var LoadingBackground = styled21.div`
7910
+ var LoadingBackground = styled22.div`
7891
7911
  background: linear-gradient(
7892
7912
  90deg,
7893
7913
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -7898,27 +7918,27 @@ var LoadingBackground = styled21.div`
7898
7918
  animation: ${shimmer} 1.5s infinite;
7899
7919
  border-radius: var(--wui-border-radius-01);
7900
7920
  `;
7901
- var StyledLoadingLabel = styled21(LoadingBackground)`
7921
+ var StyledLoadingLabel = styled22(LoadingBackground)`
7902
7922
  width: 80px;
7903
7923
  height: var(--wui-typography-heading-6-line-height);
7904
7924
  `;
7905
- var StyledLoadingValue = styled21(LoadingBackground)`
7925
+ var StyledLoadingValue = styled22(LoadingBackground)`
7906
7926
  width: 90%;
7907
7927
  height: var(--wui-typography-heading-3-line-height);
7908
7928
  `;
7909
- var StyledLabel2 = styled21(Heading)`
7929
+ var StyledLabel2 = styled22(Heading)`
7910
7930
  grid-area: label;
7911
7931
  `;
7912
- var StyledValue = styled21(Heading)`
7932
+ var StyledValue = styled22(Heading)`
7913
7933
  grid-area: value;
7914
7934
  `;
7915
- var StyledSlot = styled21.div`
7935
+ var StyledSlot = styled22.div`
7916
7936
  display: flex;
7917
7937
  justify-content: flex-end;
7918
7938
  grid-area: slot;
7919
7939
  align-self: center;
7920
7940
  `;
7921
- var StyledDataCardTrendContainer = styled21.div`
7941
+ var StyledDataCardTrendContainer = styled22.div`
7922
7942
  position: absolute;
7923
7943
  bottom: var(--wui-space-01);
7924
7944
  right: var(--wui-space-01);
@@ -7937,33 +7957,33 @@ var DataCard = ({
7937
7957
  $colorScheme: colorScheme,
7938
7958
  ...props,
7939
7959
  children: [
7940
- /* @__PURE__ */ jsx206(
7960
+ /* @__PURE__ */ jsx207(
7941
7961
  StyledLabel2,
7942
7962
  {
7943
7963
  renderAs: "dt",
7944
7964
  variant: "heading6",
7945
- children: isLoading ? /* @__PURE__ */ jsx206(StyledLoadingLabel, {}) : label
7965
+ children: isLoading ? /* @__PURE__ */ jsx207(StyledLoadingLabel, {}) : label
7946
7966
  }
7947
7967
  ),
7948
- /* @__PURE__ */ jsx206(
7968
+ /* @__PURE__ */ jsx207(
7949
7969
  StyledValue,
7950
7970
  {
7951
7971
  renderAs: "dd",
7952
7972
  variant: "heading3",
7953
- children: isLoading ? /* @__PURE__ */ jsx206(StyledLoadingValue, {}) : value
7973
+ children: isLoading ? /* @__PURE__ */ jsx207(StyledLoadingValue, {}) : value
7954
7974
  }
7955
7975
  ),
7956
- isNotNull(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx206(StyledSlot, { children: upperRightSlot }),
7957
- isNotNull(trend) && !isLoading && /* @__PURE__ */ jsx206(StyledDataCardTrendContainer, { children: trend })
7976
+ isNotNull(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx207(StyledSlot, { children: upperRightSlot }),
7977
+ isNotNull(trend) && !isLoading && /* @__PURE__ */ jsx207(StyledDataCardTrendContainer, { children: trend })
7958
7978
  ]
7959
7979
  }
7960
7980
  );
7961
7981
  DataCard.displayName = "DataCard";
7962
7982
 
7963
7983
  // src/components/DataCards/DataCards.tsx
7964
- import styled22 from "styled-components";
7965
- import { jsx as jsx207 } from "react/jsx-runtime";
7966
- var StyledDataCards = styled22(Box)`
7984
+ import styled23 from "styled-components";
7985
+ import { jsx as jsx208 } from "react/jsx-runtime";
7986
+ var StyledDataCards = styled23(Box)`
7967
7987
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7968
7988
  margin-top: 0; /* Remove default <dl> style */
7969
7989
  > * {
@@ -7977,7 +7997,7 @@ var DataCards = ({
7977
7997
  colorScheme = "inherit",
7978
7998
  ...props
7979
7999
  }) => {
7980
- return /* @__PURE__ */ jsx207(
8000
+ return /* @__PURE__ */ jsx208(
7981
8001
  StyledDataCards,
7982
8002
  {
7983
8003
  ...props,
@@ -7995,12 +8015,12 @@ var DataCards = ({
7995
8015
  DataCards.displayName = "DataCards";
7996
8016
 
7997
8017
  // src/components/DataCards/DataCardTrend.tsx
7998
- import styled24 from "styled-components";
8018
+ import styled25 from "styled-components";
7999
8019
 
8000
8020
  // src/components/Text/Text.tsx
8001
8021
  import { forwardRef as forwardRef8 } from "react";
8002
- import styled23, { css as css22 } from "styled-components";
8003
- import { jsx as jsx208 } from "react/jsx-runtime";
8022
+ import styled24, { css as css22 } from "styled-components";
8023
+ import { jsx as jsx209 } from "react/jsx-runtime";
8004
8024
  var bodyBoldStyles = css22`
8005
8025
  > strong,
8006
8026
  b {
@@ -8120,7 +8140,7 @@ var variantElementMap2 = {
8120
8140
  label3: labelElement,
8121
8141
  label4: labelElement
8122
8142
  };
8123
- var StyledText = styled23.div`
8143
+ var StyledText = styled24.div`
8124
8144
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8125
8145
  --text-color: ${({ $prominence, $disabled }) => {
8126
8146
  if ($disabled) {
@@ -8177,7 +8197,7 @@ var TextComponent = forwardRef8(
8177
8197
  renderAs,
8178
8198
  ...otherProps
8179
8199
  }, ref) => {
8180
- return /* @__PURE__ */ jsx208(
8200
+ return /* @__PURE__ */ jsx209(
8181
8201
  StyledText,
8182
8202
  {
8183
8203
  ref,
@@ -8199,8 +8219,8 @@ TextComponent.displayName = "Text";
8199
8219
  var Text = makePolymorphic(TextComponent);
8200
8220
 
8201
8221
  // src/components/DataCards/DataCardTrend.tsx
8202
- import { jsx as jsx209, jsxs as jsxs16 } from "react/jsx-runtime";
8203
- var StyledDataCardTrend = styled24.div`
8222
+ import { jsx as jsx210, jsxs as jsxs16 } from "react/jsx-runtime";
8223
+ var StyledDataCardTrend = styled25.div`
8204
8224
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
8205
8225
  background: var(--wui-color-bg-app);
8206
8226
  border-radius: var(--wui-border-radius-rounded);
@@ -8216,7 +8236,7 @@ var DataCardTrend = ({
8216
8236
  ...props
8217
8237
  }) => {
8218
8238
  return /* @__PURE__ */ jsxs16(StyledDataCardTrend, { $outlook: outlook, children: [
8219
- /* @__PURE__ */ jsx209(
8239
+ /* @__PURE__ */ jsx210(
8220
8240
  Icon,
8221
8241
  {
8222
8242
  size: "md",
@@ -8224,7 +8244,7 @@ var DataCardTrend = ({
8224
8244
  ...props
8225
8245
  }
8226
8246
  ),
8227
- /* @__PURE__ */ jsx209(
8247
+ /* @__PURE__ */ jsx210(
8228
8248
  Text,
8229
8249
  {
8230
8250
  prominence: "secondary",
@@ -8236,8 +8256,8 @@ var DataCardTrend = ({
8236
8256
  };
8237
8257
 
8238
8258
  // src/components/Divider/Divider.tsx
8239
- import styled25, { css as css23 } from "styled-components";
8240
- import { jsx as jsx210 } from "react/jsx-runtime";
8259
+ import styled26, { css as css23 } from "styled-components";
8260
+ import { jsx as jsx211 } from "react/jsx-runtime";
8241
8261
  var horizontalBorderCss = css23`
8242
8262
  border-top-color: var(--wui-color-border);
8243
8263
  border-top-style: solid;
@@ -8251,7 +8271,7 @@ var verticalBorderCss = css23`
8251
8271
  min-height: 100%;
8252
8272
  width: 1px;
8253
8273
  `;
8254
- var DividerComponent = styled25.div`
8274
+ var DividerComponent = styled26.div`
8255
8275
  ${({ $orientation }) => {
8256
8276
  switch ($orientation) {
8257
8277
  case "vertical":
@@ -8266,7 +8286,7 @@ var Divider = ({
8266
8286
  orientation = "horizontal",
8267
8287
  ...otherProps
8268
8288
  }) => {
8269
- return /* @__PURE__ */ jsx210(
8289
+ return /* @__PURE__ */ jsx211(
8270
8290
  DividerComponent,
8271
8291
  {
8272
8292
  $orientation: orientation,
@@ -8282,28 +8302,6 @@ Divider.displayName = "Divider";
8282
8302
  import styled29, { css as css26 } from "styled-components";
8283
8303
  import { useState as useState5, useRef as useRef4 } from "react";
8284
8304
 
8285
- // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
8286
- import styled26 from "styled-components";
8287
- import { isNotNil as isNotNil10 } from "@wistia/type-guards";
8288
- import { jsx as jsx211 } from "react/jsx-runtime";
8289
- var VisuallyHidden = styled26.div({ ...visuallyHiddenStyle });
8290
- var VisuallyHiddenButFocusable = styled26.div({
8291
- "&:not(:focus-within)": visuallyHiddenStyle
8292
- });
8293
- var ScreenReaderOnly = ({
8294
- text,
8295
- children,
8296
- focusable = false,
8297
- ...otherProps
8298
- }) => {
8299
- const accessibleText = isNotNil10(text) ? text : children;
8300
- if (focusable) {
8301
- return /* @__PURE__ */ jsx211(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
8302
- }
8303
- return /* @__PURE__ */ jsx211(VisuallyHidden, { ...otherProps, children: accessibleText });
8304
- };
8305
- ScreenReaderOnly.displayName = "ScreenReaderOnly";
8306
-
8307
8305
  // src/components/Tooltip/Tooltip.tsx
8308
8306
  import {
8309
8307
  Root as TooltipRoot,
@@ -8945,7 +8943,7 @@ var requiredStyle = css27`
8945
8943
  content: '*';
8946
8944
  }
8947
8945
  `;
8948
- var disabledStyle4 = css27`
8946
+ var disabledStyle3 = css27`
8949
8947
  color: var(--wui-color-text-disabled);
8950
8948
  `;
8951
8949
  var StyledLabel3 = styled32.label`
@@ -8969,7 +8967,7 @@ var StyledLabel3 = styled32.label`
8969
8967
  }
8970
8968
 
8971
8969
  ${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
8972
- ${({ $disabled }) => $disabled && disabledStyle4}
8970
+ ${({ $disabled }) => $disabled && disabledStyle3}
8973
8971
  ${({ $required }) => $required && requiredStyle}
8974
8972
  `;
8975
8973
  var Label = ({
@@ -10339,7 +10337,7 @@ var StyledRadioInput = styled49.div`
10339
10337
  }
10340
10338
  }
10341
10339
  `;
10342
- var disabledStyle5 = css30`
10340
+ var disabledStyle4 = css30`
10343
10341
  cursor: not-allowed;
10344
10342
  opacity: 0.5;
10345
10343
  `;
@@ -10350,7 +10348,7 @@ var StyledRadioWrapper = styled49.div`
10350
10348
  /* TODO this solves a problem but potentially causes and a11y issue */
10351
10349
  user-select: none;
10352
10350
 
10353
- ${({ $disabled }) => $disabled && disabledStyle5};
10351
+ ${({ $disabled }) => $disabled && disabledStyle4};
10354
10352
  `;
10355
10353
  var Radio = forwardRef18(
10356
10354
  ({
@@ -10364,6 +10362,7 @@ var Radio = forwardRef18(
10364
10362
  size = "md",
10365
10363
  value = "false",
10366
10364
  required = false,
10365
+ hideLabel = false,
10367
10366
  ...props
10368
10367
  }, ref) => {
10369
10368
  const generatedId = useId3();
@@ -10401,6 +10400,7 @@ var Radio = forwardRef18(
10401
10400
  }
10402
10401
  ),
10403
10402
  description,
10403
+ hideLabel,
10404
10404
  htmlFor: computedId,
10405
10405
  label
10406
10406
  }