@wistia/ui 0.0.1 → 0.0.3

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.0.1
3
+ * @license @wistia/ui v0.0.3
4
4
  *
5
5
  * Copyright (c) 2024-2024, Wistia, Inc. and its affiliates.
6
6
  *
@@ -1015,7 +1015,7 @@ var spacingTokens = css6`
1015
1015
  import { css as css7 } from "styled-components";
1016
1016
  var typographyTokens = css7`
1017
1017
  --typography-family-default: intervariable, sans-serif;
1018
- --typography-family-brand: walsheim, sans-serif;
1018
+ --typography-family-brand: 'GT Walsheim', sans-serif;
1019
1019
  --typography-family-mono: 'IBM Plex Mono', monospace;
1020
1020
 
1021
1021
  /* Brand Weights */
@@ -1243,6 +1243,52 @@ var copyToClipboard = async (textToCopy) => {
1243
1243
  });
1244
1244
  };
1245
1245
 
1246
+ // src/helpers/mq/mq.ts
1247
+ import { getValueAndUnit } from "polished";
1248
+
1249
+ // src/css/breakpoints.ts
1250
+ var breakpoints = {
1251
+ xs: "0em",
1252
+ // 0px
1253
+ sm: "37.5em",
1254
+ // 600px
1255
+ md: "56.5625em",
1256
+ // ~904px
1257
+ lg: "77.5em",
1258
+ // 1240px
1259
+ xl: "90em"
1260
+ // 1440px
1261
+ };
1262
+
1263
+ // src/helpers/mq/mq.ts
1264
+ var getMaxWidth = (breakpoint) => {
1265
+ const breakpointBuffer = 25e-4;
1266
+ const [value, unit] = getValueAndUnit(breakpoint);
1267
+ return `@media (max-width: ${Math.max(value - breakpointBuffer, 0)}${unit})`;
1268
+ };
1269
+ var xsAndUp = () => `@media (min-width: ${breakpoints.xs})`;
1270
+ var smAndUp = () => `@media (min-width: ${breakpoints.sm})`;
1271
+ var mdAndUp = () => `@media (min-width: ${breakpoints.md})`;
1272
+ var lgAndUp = () => `@media (min-width: ${breakpoints.lg})`;
1273
+ var xlAndUp = () => `@media (min-width: ${breakpoints.xl})`;
1274
+ var xsAndDown = () => getMaxWidth(breakpoints.xs);
1275
+ var smAndDown = () => getMaxWidth(breakpoints.sm);
1276
+ var mdAndDown = () => getMaxWidth(breakpoints.md);
1277
+ var lgAndDown = () => getMaxWidth(breakpoints.lg);
1278
+ var xlAndDown = () => getMaxWidth(breakpoints.xl);
1279
+ var mq = {
1280
+ xsAndUp,
1281
+ smAndUp,
1282
+ mdAndUp,
1283
+ lgAndUp,
1284
+ xlAndUp,
1285
+ xsAndDown,
1286
+ smAndDown,
1287
+ mdAndDown,
1288
+ lgAndDown,
1289
+ xlAndDown
1290
+ };
1291
+
1246
1292
  // src/hooks/useMq/useMq.ts
1247
1293
  import { isBoolean } from "@wistia/type-guards";
1248
1294
 
@@ -1273,20 +1319,6 @@ var useWindowSize = (interval = 0) => {
1273
1319
  return dimensions;
1274
1320
  };
1275
1321
 
1276
- // src/css/breakpoints.ts
1277
- var breakpoints = {
1278
- xs: "0em",
1279
- // 0px
1280
- sm: "37.5em",
1281
- // 600px
1282
- md: "56.5625em",
1283
- // ~904px
1284
- lg: "77.5em",
1285
- // 1240px
1286
- xl: "90em"
1287
- // 1440px
1288
- };
1289
-
1290
1322
  // src/hooks/useMq/useMq.ts
1291
1323
  var REM_SIZE = 16;
1292
1324
  var useMq = () => {
@@ -1661,7 +1693,7 @@ var buttonSizeStyles = {
1661
1693
  hero: buttonHeroStyles
1662
1694
  };
1663
1695
 
1664
- // src/helpers/getColorScheme/getColorScheme.ts
1696
+ // src/private/getColorScheme/getColorScheme.ts
1665
1697
  import { css as css11 } from "styled-components";
1666
1698
  var colorSchemeSchema = [
1667
1699
  { token: "bg-surface", step: "surface" },
@@ -4941,7 +4973,7 @@ var isButton = (props) => isUndefined2(props.href);
4941
4973
  var isLink = (props) => isNotUndefined2(props.href);
4942
4974
  var StyledLink = styled2.a`
4943
4975
  ${({ href }) => isNil5(href) && buttonResetCss};
4944
- ${({ colorScheme }) => getColorScheme(colorScheme)}
4976
+ ${({ $colorScheme }) => getColorScheme($colorScheme)}
4945
4977
  cursor: pointer;
4946
4978
  font-family: var(--typography-family-default);
4947
4979
  color: var(--color-text-link);
@@ -4980,7 +5012,7 @@ var Link = forwardRef(
4980
5012
  }
4981
5013
  };
4982
5014
  const commonProps = {
4983
- colorScheme,
5015
+ $colorScheme: colorScheme,
4984
5016
  $underline: underline,
4985
5017
  onClick: handleClick
4986
5018
  };
@@ -4999,14 +5031,25 @@ var Link = forwardRef(
4999
5031
  }
5000
5032
  if (isLink(props)) {
5001
5033
  const externalLinkProps = type === "external" ? { target: "_blank", rel: "noopener noreferrer" } : null;
5002
- return /* @__PURE__ */ jsx157(
5034
+ const combinedProps = {
5035
+ ref,
5036
+ ...props,
5037
+ ...commonProps,
5038
+ ...externalLinkProps
5039
+ };
5040
+ return inRouterContext ? /* @__PURE__ */ jsx157(
5003
5041
  StyledLink,
5004
5042
  {
5005
- ref,
5006
- as: inRouterContext ? RouterLink : "a",
5007
- ...props,
5008
- ...commonProps,
5009
- ...externalLinkProps,
5043
+ as: RouterLink,
5044
+ ...combinedProps,
5045
+ to: to ?? "",
5046
+ children
5047
+ }
5048
+ ) : /* @__PURE__ */ jsx157(
5049
+ StyledLink,
5050
+ {
5051
+ as: "a",
5052
+ ...combinedProps,
5010
5053
  href: to,
5011
5054
  children
5012
5055
  }
@@ -5150,38 +5193,6 @@ Button.displayName = "Button";
5150
5193
  // src/components/ButtonGroup/ButtonGroup.tsx
5151
5194
  import styled4 from "styled-components";
5152
5195
  import { isNil as isNil6 } from "@wistia/type-guards";
5153
-
5154
- // src/helpers/mq/mq.ts
5155
- import { getValueAndUnit } from "polished";
5156
- var getMaxWidth = (breakpoint) => {
5157
- const breakpointBuffer = 25e-4;
5158
- const [value, unit] = getValueAndUnit(breakpoint);
5159
- return `@media (max-width: ${Math.max(value - breakpointBuffer, 0)}${unit})`;
5160
- };
5161
- var xsAndUp = () => `@media (min-width: ${breakpoints.xs})`;
5162
- var smAndUp = () => `@media (min-width: ${breakpoints.sm})`;
5163
- var mdAndUp = () => `@media (min-width: ${breakpoints.md})`;
5164
- var lgAndUp = () => `@media (min-width: ${breakpoints.lg})`;
5165
- var xlAndUp = () => `@media (min-width: ${breakpoints.xl})`;
5166
- var xsAndDown = () => getMaxWidth(breakpoints.xs);
5167
- var smAndDown = () => getMaxWidth(breakpoints.sm);
5168
- var mdAndDown = () => getMaxWidth(breakpoints.md);
5169
- var lgAndDown = () => getMaxWidth(breakpoints.lg);
5170
- var xlAndDown = () => getMaxWidth(breakpoints.xl);
5171
- var mq = {
5172
- xsAndUp,
5173
- smAndUp,
5174
- mdAndUp,
5175
- lgAndUp,
5176
- xlAndUp,
5177
- xsAndDown,
5178
- smAndDown,
5179
- mdAndDown,
5180
- lgAndDown,
5181
- xlAndDown
5182
- };
5183
-
5184
- // src/components/ButtonGroup/ButtonGroup.tsx
5185
5196
  import { jsx as jsx159 } from "react/jsx-runtime";
5186
5197
  var getAlignment = (align) => {
5187
5198
  if (align === "center") {
@@ -5447,12 +5458,173 @@ var HeadingComponent = forwardRef3(
5447
5458
  HeadingComponent.displayName = "Heading";
5448
5459
  var Heading = makePolymorphic(HeadingComponent);
5449
5460
 
5461
+ // src/components/IconButton/IconButton.tsx
5462
+ import { Children as Children2, cloneElement as cloneElement2, forwardRef as forwardRef4 } from "react";
5463
+ import styled9 from "styled-components";
5464
+
5465
+ // src/components/Tooltip/Tooltip.tsx
5466
+ import {
5467
+ Root,
5468
+ Content,
5469
+ Trigger,
5470
+ Portal,
5471
+ Arrow
5472
+ } from "@radix-ui/react-tooltip";
5473
+ import styled8, { css as css14 } from "styled-components";
5474
+ import { jsx as jsx163, jsxs as jsxs4 } from "react/jsx-runtime";
5475
+ var CompactTooltipStyles = css14`
5476
+ --tooltip-font-size: var(--typography-label-4-size);
5477
+ --tooltip-line-height: var(--typography-label-4-line-height);
5478
+ --tooltip-font-weight: var(--typography-label-4-weight);
5479
+ --tooltip-horizontal-padding: var(--space-02);
5480
+ --tooltip-vertical-padding: var(--space-03);
5481
+ `;
5482
+ var StyledContent = styled8(Content)`
5483
+ --tooltip-font-family: var(--typography-family-default);
5484
+ --tooltip-border-radius: var(--border-radius-05);
5485
+ --tooltip-bg: var(--color-bg-tooltip);
5486
+ --tooltip-color: var(--color-text-on-fill);
5487
+ --tooltip-font-size: var(--typography-label-3-size);
5488
+ --tooltip-line-height: var(--typography-label-3-line-height);
5489
+ --tooltip-font-weight: var(--typography-label-3-weight);
5490
+ --tooltip-horizontal-padding: var(--space-03);
5491
+ --tooltip-vertical-padding: var(--space-03);
5492
+
5493
+ ${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
5494
+
5495
+ font-family: var(--tooltip-font-family);
5496
+ font-size: var(--tooltip-font-size);
5497
+ border-radius: var(--tooltip-border-radius);
5498
+ padding: var(--tooltip-horizontal-padding) var(--tooltip-vertical-padding);
5499
+ background-color: var(--tooltip-bg);
5500
+ color: var(--tooltip-color);
5501
+ user-select: none;
5502
+ animation-duration: 400ms;
5503
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
5504
+ will-change: transform, opacity;
5505
+ max-width: 30em;
5506
+
5507
+ &[data-state='delayed-open'][data-side='top'] {
5508
+ animation-name: slideDownAndFade;
5509
+ }
5510
+
5511
+ &[data-state='delayed-open'][data-side='right'] {
5512
+ animation-name: slideLeftAndFade;
5513
+ }
5514
+
5515
+ &[data-state='delayed-open'][data-side='bottom'] {
5516
+ animation-name: slideUpAndFade;
5517
+ }
5518
+
5519
+ &[data-state='delayed-open'][data-side='left'] {
5520
+ animation-name: slideRightAndFade;
5521
+ }
5522
+ `;
5523
+ var VISUAL_OFFSET = 6;
5524
+ var Tooltip = ({
5525
+ delay = 700,
5526
+ direction = "top",
5527
+ content,
5528
+ children,
5529
+ forceOpen,
5530
+ compact = false,
5531
+ hideArrow = false
5532
+ }) => {
5533
+ const rootProps = {};
5534
+ if (content === "" || content === null) {
5535
+ rootProps.open = false;
5536
+ }
5537
+ if (forceOpen === true) {
5538
+ rootProps.open = true;
5539
+ }
5540
+ return /* @__PURE__ */ jsxs4(
5541
+ Root,
5542
+ {
5543
+ delayDuration: delay,
5544
+ ...rootProps,
5545
+ children: [
5546
+ /* @__PURE__ */ jsx163(Trigger, { asChild: true, children }),
5547
+ /* @__PURE__ */ jsx163(Portal, { children: /* @__PURE__ */ jsxs4(
5548
+ StyledContent,
5549
+ {
5550
+ $compact: compact,
5551
+ side: direction,
5552
+ sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
5553
+ children: [
5554
+ content,
5555
+ !hideArrow ? /* @__PURE__ */ jsx163(Arrow, { asChild: true, children: /* @__PURE__ */ jsx163(
5556
+ "svg",
5557
+ {
5558
+ fill: "var(--tooltip-bg)",
5559
+ height: "8",
5560
+ style: { transform: "translateY(-2px)" },
5561
+ viewBox: "0 0 12 8",
5562
+ width: "12",
5563
+ xmlns: "http://www.w3.org/2000/svg",
5564
+ children: /* @__PURE__ */ jsx163("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
5565
+ }
5566
+ ) }) : null
5567
+ ]
5568
+ }
5569
+ ) })
5570
+ ]
5571
+ }
5572
+ );
5573
+ };
5574
+ Tooltip.displayName = "Tooltip";
5575
+
5576
+ // src/components/IconButton/IconButton.tsx
5577
+ import { jsx as jsx164 } from "react/jsx-runtime";
5578
+ var buttonIconSizeMap = {
5579
+ small: "sm",
5580
+ medium: "md",
5581
+ large: "lg",
5582
+ hero: "xl"
5583
+ };
5584
+ var StyledButton2 = styled9(Button)`
5585
+ --icon-button-size-small: 24px;
5586
+ --icon-button-size-medium: 32px;
5587
+ --icon-button-size-large: 40px;
5588
+ --icon-button-size-hero: 48px;
5589
+
5590
+ border-radius: 50%;
5591
+ height: ${({ size }) => `var(--icon-button-size-${size})`};
5592
+ width: ${({ size }) => `var(--icon-button-size-${size})`};
5593
+ display: flex;
5594
+ justify-content: center;
5595
+ align-items: center;
5596
+ line-height: 1;
5597
+ `;
5598
+ var IconButton = forwardRef4(
5599
+ ({ children, label, disableTooltip = false, size = "medium", ...props }, ref) => {
5600
+ const responsiveSize = useResponsiveProp(size);
5601
+ const button = /* @__PURE__ */ jsx164(
5602
+ StyledButton2,
5603
+ {
5604
+ ...props,
5605
+ ref,
5606
+ "aria-label": label,
5607
+ "data-wistia-ui-icon-button": true,
5608
+ size: responsiveSize,
5609
+ children: cloneElement2(Children2.only(children), {
5610
+ size: buttonIconSizeMap[responsiveSize]
5611
+ })
5612
+ }
5613
+ );
5614
+ if (disableTooltip) {
5615
+ return button;
5616
+ }
5617
+ return /* @__PURE__ */ jsx164(Tooltip, { content: label, children: button });
5618
+ }
5619
+ );
5620
+ IconButton.displayName = "IconButton";
5621
+
5450
5622
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
5451
- import styled8 from "styled-components";
5623
+ import styled10 from "styled-components";
5452
5624
  import { isNotNil as isNotNil6 } from "@wistia/type-guards";
5453
- import { jsx as jsx163 } from "react/jsx-runtime";
5454
- var VisuallyHidden = styled8.div({ ...visuallyHiddenStyle });
5455
- var VisuallyHiddenButFocusable = styled8.div({
5625
+ import { jsx as jsx165 } from "react/jsx-runtime";
5626
+ var VisuallyHidden = styled10.div({ ...visuallyHiddenStyle });
5627
+ var VisuallyHiddenButFocusable = styled10.div({
5456
5628
  "&:not(:focus-within)": visuallyHiddenStyle
5457
5629
  });
5458
5630
  var ScreenReaderOnly = ({
@@ -5463,18 +5635,18 @@ var ScreenReaderOnly = ({
5463
5635
  }) => {
5464
5636
  const accessibleText = isNotNil6(text) ? text : children;
5465
5637
  if (focusable) {
5466
- return /* @__PURE__ */ jsx163(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
5638
+ return /* @__PURE__ */ jsx165(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
5467
5639
  }
5468
- return /* @__PURE__ */ jsx163(VisuallyHidden, { ...otherProps, children: accessibleText });
5640
+ return /* @__PURE__ */ jsx165(VisuallyHidden, { ...otherProps, children: accessibleText });
5469
5641
  };
5470
5642
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
5471
5643
 
5472
5644
  // src/components/Stack/Stack.tsx
5473
- import { forwardRef as forwardRef4 } from "react";
5474
- import styled9 from "styled-components";
5475
- import { jsx as jsx164 } from "react/jsx-runtime";
5645
+ import { forwardRef as forwardRef5 } from "react";
5646
+ import styled11 from "styled-components";
5647
+ import { jsx as jsx166 } from "react/jsx-runtime";
5476
5648
  var DEFAULT_ELEMENT2 = "div";
5477
- var StyledStack = styled9.div`
5649
+ var StyledStack = styled11.div`
5478
5650
  display: flex;
5479
5651
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
5480
5652
  gap: ${({ gap }) => `var(--${gap})`};
@@ -5483,11 +5655,11 @@ var StyledStack = styled9.div`
5483
5655
  flex: 1;
5484
5656
  }
5485
5657
  `;
5486
- var StackComponent = forwardRef4(
5658
+ var StackComponent = forwardRef5(
5487
5659
  ({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
5488
5660
  const responsiveGap = useResponsiveProp(gap);
5489
5661
  const responsiveDirection = useResponsiveProp(direction);
5490
- return /* @__PURE__ */ jsx164(
5662
+ return /* @__PURE__ */ jsx166(
5491
5663
  StyledStack,
5492
5664
  {
5493
5665
  ref,
@@ -5503,90 +5675,90 @@ StackComponent.displayName = "Stack";
5503
5675
  var Stack = makePolymorphic(StackComponent);
5504
5676
 
5505
5677
  // src/components/Text/Text.tsx
5506
- import { forwardRef as forwardRef5 } from "react";
5507
- import styled10, { css as css14 } from "styled-components";
5508
- import { jsx as jsx165 } from "react/jsx-runtime";
5509
- var bodyBoldStyles = css14`
5678
+ import { forwardRef as forwardRef6 } from "react";
5679
+ import styled12, { css as css15 } from "styled-components";
5680
+ import { jsx as jsx167 } from "react/jsx-runtime";
5681
+ var bodyBoldStyles = css15`
5510
5682
  > strong,
5511
5683
  b {
5512
5684
  font-weight: var(--typography-weight-body-bold);
5513
5685
  }
5514
5686
  `;
5515
- var labelBoldStyles = css14`
5687
+ var labelBoldStyles = css15`
5516
5688
  > strong,
5517
5689
  b {
5518
5690
  font-weight: var(--typography-weight-label-bold);
5519
5691
  }
5520
5692
  `;
5521
- var body1TextStyle = css14`
5693
+ var body1TextStyle = css15`
5522
5694
  --font-family: var(--typography-body-1-family);
5523
5695
  --font-size: var(--typography-body-1-size);
5524
5696
  --font-weight: var(--typography-body-1-weight);
5525
5697
  --line-height: var(--typography-body-1-line-height);
5526
5698
  ${bodyBoldStyles}
5527
5699
  `;
5528
- var body2TextStyle = css14`
5700
+ var body2TextStyle = css15`
5529
5701
  --font-family: var(--typography-body-2-family);
5530
5702
  --font-size: var(--typography-body-2-size);
5531
5703
  --font-weight: var(--typography-body-2-weight);
5532
5704
  --line-height: var(--typography-body-2-line-height);
5533
5705
  ${bodyBoldStyles}
5534
5706
  `;
5535
- var body3TextStyle = css14`
5707
+ var body3TextStyle = css15`
5536
5708
  --font-family: var(--typography-body-3-family);
5537
5709
  --font-size: var(--typography-body-3-size);
5538
5710
  --font-weight: var(--typography-body-3-weight);
5539
5711
  --line-height: var(--typography-body-3-line-height);
5540
5712
  ${bodyBoldStyles}
5541
5713
  `;
5542
- var body4TextStyle = css14`
5714
+ var body4TextStyle = css15`
5543
5715
  --font-family: var(--typography-body-4-family);
5544
5716
  --font-size: var(--typography-body-4-size);
5545
5717
  --font-weight: var(--typography-body-4-weight);
5546
5718
  --line-height: var(--typography-body-4-line-height);
5547
5719
  ${bodyBoldStyles}
5548
5720
  `;
5549
- var label1TextStyle = css14`
5721
+ var label1TextStyle = css15`
5550
5722
  --font-family: var(--typography-label-1-family);
5551
5723
  --font-size: var(--typography-label-1-size);
5552
5724
  --font-weight: var(--typography-label-1-weight);
5553
5725
  --line-height: var(--typography-label-1-line-height);
5554
5726
  ${labelBoldStyles}
5555
5727
  `;
5556
- var label2TextStyle = css14`
5728
+ var label2TextStyle = css15`
5557
5729
  --font-family: var(--typography-label-2-family);
5558
5730
  --font-size: var(--typography-label-2-size);
5559
5731
  --font-weight: var(--typography-label-2-weight);
5560
5732
  --line-height: var(--typography-label-2-line-height);
5561
5733
  ${labelBoldStyles}
5562
5734
  `;
5563
- var label3TextStyle = css14`
5735
+ var label3TextStyle = css15`
5564
5736
  --font-family: var(--typography-label-3-family);
5565
5737
  --font-size: var(--typography-label-3-size);
5566
5738
  --font-weight: var(--typography-label-3-weight);
5567
5739
  --line-height: var(--typography-label-3-line-height);
5568
5740
  ${labelBoldStyles}
5569
5741
  `;
5570
- var label4TextStyle = css14`
5742
+ var label4TextStyle = css15`
5571
5743
  --font-family: var(--typography-label-4-family);
5572
5744
  --font-size: var(--typography-label-4-size);
5573
5745
  --font-weight: var(--typography-label-4-weight);
5574
5746
  --line-height: var(--typography-label-4-line-height);
5575
5747
  ${labelBoldStyles}
5576
5748
  `;
5577
- var body1MonoTextStyle = css14`
5749
+ var body1MonoTextStyle = css15`
5578
5750
  ${body1TextStyle};
5579
5751
  --font-family: var(--typography-family-mono);
5580
5752
  `;
5581
- var body2MonoTextStyle = css14`
5753
+ var body2MonoTextStyle = css15`
5582
5754
  ${body2TextStyle};
5583
5755
  --font-family: var(--typography-family-mono);
5584
5756
  `;
5585
- var body3MonoTextStyle = css14`
5757
+ var body3MonoTextStyle = css15`
5586
5758
  ${body3TextStyle};
5587
5759
  --font-family: var(--typography-family-mono);
5588
5760
  `;
5589
- var body4MonoTextStyle = css14`
5761
+ var body4MonoTextStyle = css15`
5590
5762
  ${body4TextStyle};
5591
5763
  --font-family: var(--typography-family-mono);
5592
5764
  `;
@@ -5604,46 +5776,50 @@ var variantStyleMap2 = {
5604
5776
  label3: label3TextStyle,
5605
5777
  label4: label4TextStyle
5606
5778
  };
5607
- var primaryProminenceStyle = css14`
5608
- --color-text: var(--color-text);
5779
+ var highContrastProminenceStyle = css15`
5780
+ --text-color: var(--color-text-high-contrast);
5609
5781
  `;
5610
- var secondaryProminenceStyle = css14`
5611
- --color-text: var(--color-text-secondary);
5782
+ var vibrantProminenceStyle = css15`
5783
+ --text-color: var(--color-text);
5784
+ `;
5785
+ var secondaryProminenceStyle = css15`
5786
+ --text-color: var(--color-text-secondary);
5612
5787
  `;
5613
5788
  var prominenceMap = {
5614
- primary: primaryProminenceStyle,
5789
+ highContrast: highContrastProminenceStyle,
5790
+ vibrant: vibrantProminenceStyle,
5615
5791
  secondary: secondaryProminenceStyle
5616
5792
  };
5617
- var StyledText = styled10.div`
5793
+ var StyledText = styled12.div`
5618
5794
  ${({ colorScheme }) => getColorScheme(colorScheme)};
5619
5795
  font-family: var(--font-family);
5620
5796
  font-size: var(--font-size);
5621
5797
  font-weight: var(--font-weight);
5622
5798
  line-height: var(--line-height);
5623
- color: var(--color-text);
5799
+ color: var(--text-color);
5624
5800
  font-style: normal;
5625
5801
  margin: 0;
5626
5802
  ${({ variant }) => variantStyleMap2[variant]}
5627
5803
  ${({ prominence }) => prominenceMap[prominence]}
5628
5804
  ${({ ellipsis }) => ellipsis && ellipsisStyle};
5629
- ${({ inline }) => inline && css14`
5805
+ ${({ inline }) => inline && css15`
5630
5806
  display: inline-block;
5631
5807
  `}
5632
- ${({ disabled }) => disabled && css14`
5633
- --color-text: var(--color-text-disabled);
5808
+ ${({ disabled }) => disabled && css15`
5809
+ --text-color: var(--color-text-disabled);
5634
5810
  `}
5635
- ${({ preventUserSelect }) => preventUserSelect && css14`
5811
+ ${({ preventUserSelect }) => preventUserSelect && css15`
5636
5812
  user-select: none;
5637
5813
  `}
5638
- ${({ align }) => css14`
5814
+ ${({ align }) => css15`
5639
5815
  text-align: ${align};
5640
5816
  `}
5641
- ${({ as }) => as === "p" && css14`
5817
+ ${({ as }) => as === "p" && css15`
5642
5818
  display: block;
5643
5819
  `}
5644
5820
  `;
5645
5821
  var DEFAULT_ELEMENT3 = "div";
5646
- var TextComponent = forwardRef5(
5822
+ var TextComponent = forwardRef6(
5647
5823
  ({
5648
5824
  align = "left",
5649
5825
  colorScheme = "inherit",
@@ -5651,12 +5827,12 @@ var TextComponent = forwardRef5(
5651
5827
  ellipsis = false,
5652
5828
  inline = false,
5653
5829
  preventUserSelect = false,
5654
- prominence = "primary",
5830
+ prominence = "highContrast",
5655
5831
  variant = "body2",
5656
5832
  renderAs,
5657
5833
  ...otherProps
5658
5834
  }, ref) => {
5659
- return /* @__PURE__ */ jsx165(
5835
+ return /* @__PURE__ */ jsx167(
5660
5836
  StyledText,
5661
5837
  {
5662
5838
  ref,
@@ -5678,20 +5854,20 @@ TextComponent.displayName = "Text";
5678
5854
  var Text = makePolymorphic(TextComponent);
5679
5855
 
5680
5856
  // src/components/WistiaLogo/WistiaLogo.tsx
5681
- import styled11 from "styled-components";
5857
+ import styled13 from "styled-components";
5682
5858
  import { isNotNil as isNotNil7 } from "@wistia/type-guards";
5683
- import { jsx as jsx166, jsxs as jsxs4 } from "react/jsx-runtime";
5859
+ import { jsx as jsx168, jsxs as jsxs5 } from "react/jsx-runtime";
5684
5860
  var renderBrandmark = (brandmarkColor, iconOnly) => {
5685
5861
  if (iconOnly) {
5686
- return /* @__PURE__ */ jsx166("g", { fill: brandmarkColor, children: /* @__PURE__ */ jsx166("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" }) });
5862
+ return /* @__PURE__ */ jsx168("g", { fill: brandmarkColor, children: /* @__PURE__ */ jsx168("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" }) });
5687
5863
  }
5688
- return /* @__PURE__ */ jsx166("g", { fill: brandmarkColor, children: /* @__PURE__ */ jsx166("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" }) });
5864
+ return /* @__PURE__ */ jsx168("g", { fill: brandmarkColor, children: /* @__PURE__ */ jsx168("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" }) });
5689
5865
  };
5690
5866
  var renderLogotype = (logotypeColor, iconOnly) => {
5691
5867
  if (iconOnly) {
5692
5868
  return null;
5693
5869
  }
5694
- return /* @__PURE__ */ jsx166("g", { fill: logotypeColor, children: /* @__PURE__ */ jsx166("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" }) });
5870
+ return /* @__PURE__ */ jsx168("g", { fill: logotypeColor, children: /* @__PURE__ */ jsx168("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" }) });
5695
5871
  };
5696
5872
  var computedViewBox = (iconOnly) => {
5697
5873
  if (iconOnly) {
@@ -5699,7 +5875,7 @@ var computedViewBox = (iconOnly) => {
5699
5875
  }
5700
5876
  return "0 0 144 31.47";
5701
5877
  };
5702
- var WistiaLogoComponent = styled11.svg`
5878
+ var WistiaLogoComponent = styled13.svg`
5703
5879
  height: ${({ height }) => `${height}px`};
5704
5880
 
5705
5881
  /* ensure it will always fit on mobile */
@@ -5741,7 +5917,7 @@ var WistiaLogo = ({
5741
5917
  };
5742
5918
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
5743
5919
  const logotypeColor = VARIANT_COLORS[variant].logotype;
5744
- const Logo = /* @__PURE__ */ jsxs4(
5920
+ const Logo = /* @__PURE__ */ jsxs5(
5745
5921
  WistiaLogoComponent,
5746
5922
  {
5747
5923
  height,
@@ -5751,175 +5927,16 @@ var WistiaLogo = ({
5751
5927
  xmlns: "http://www.w3.org/2000/svg",
5752
5928
  ...otherProps,
5753
5929
  children: [
5754
- /* @__PURE__ */ jsx166("title", { children: title }),
5755
- isNotNil7(description) ? /* @__PURE__ */ jsx166("desc", { children: description }) : null,
5930
+ /* @__PURE__ */ jsx168("title", { children: title }),
5931
+ isNotNil7(description) ? /* @__PURE__ */ jsx168("desc", { children: description }) : null,
5756
5932
  renderBrandmark(brandmarkColor, iconOnly),
5757
5933
  renderLogotype(logotypeColor, iconOnly)
5758
5934
  ]
5759
5935
  }
5760
5936
  );
5761
- return href !== void 0 ? /* @__PURE__ */ jsx166("a", { href, children: Logo }) : Logo;
5937
+ return href !== void 0 ? /* @__PURE__ */ jsx168("a", { href, children: Logo }) : Logo;
5762
5938
  };
5763
5939
  WistiaLogo.displayName = "WistiaLogo";
5764
-
5765
- // src/components/Tooltip/Tooltip.tsx
5766
- import {
5767
- Root,
5768
- Content,
5769
- Trigger,
5770
- Portal,
5771
- Arrow
5772
- } from "@radix-ui/react-tooltip";
5773
- import styled12, { css as css15 } from "styled-components";
5774
- import { jsx as jsx167, jsxs as jsxs5 } from "react/jsx-runtime";
5775
- var CompactTooltipStyles = css15`
5776
- --tooltip-font-size: var(--typography-label-4-size);
5777
- --tooltip-line-height: var(--typography-label-4-line-height);
5778
- --tooltip-font-weight: var(--typography-label-4-weight);
5779
- --tooltip-horizontal-padding: var(--space-02);
5780
- --tooltip-vertical-padding: var(--space-03);
5781
- `;
5782
- var StyledContent = styled12(Content)`
5783
- --tooltip-font-family: var(--typography-family-default);
5784
- --tooltip-border-radius: var(--border-radius-05);
5785
- --tooltip-bg: var(--color-bg-tooltip);
5786
- --tooltip-color: var(--color-text-on-fill);
5787
- --tooltip-font-size: var(--typography-label-3-size);
5788
- --tooltip-line-height: var(--typography-label-3-line-height);
5789
- --tooltip-font-weight: var(--typography-label-3-weight);
5790
- --tooltip-horizontal-padding: var(--space-03);
5791
- --tooltip-vertical-padding: var(--space-03);
5792
-
5793
- ${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
5794
-
5795
- font-family: var(--tooltip-font-family);
5796
- font-size: var(--tooltip-font-size);
5797
- border-radius: var(--tooltip-border-radius);
5798
- padding: var(--tooltip-horizontal-padding) var(--tooltip-vertical-padding);
5799
- background-color: var(--tooltip-bg);
5800
- color: var(--tooltip-color);
5801
- user-select: none;
5802
- animation-duration: 400ms;
5803
- animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
5804
- will-change: transform, opacity;
5805
- max-width: 30em;
5806
-
5807
- &[data-state='delayed-open'][data-side='top'] {
5808
- animation-name: slideDownAndFade;
5809
- }
5810
-
5811
- &[data-state='delayed-open'][data-side='right'] {
5812
- animation-name: slideLeftAndFade;
5813
- }
5814
-
5815
- &[data-state='delayed-open'][data-side='bottom'] {
5816
- animation-name: slideUpAndFade;
5817
- }
5818
-
5819
- &[data-state='delayed-open'][data-side='left'] {
5820
- animation-name: slideRightAndFade;
5821
- }
5822
- `;
5823
- var VISUAL_OFFSET = 6;
5824
- var Tooltip = ({
5825
- delay = 700,
5826
- direction = "top",
5827
- content,
5828
- children,
5829
- forceOpen,
5830
- compact = false,
5831
- hideArrow = false
5832
- }) => {
5833
- const rootProps = {};
5834
- if (content === "" || content === null) {
5835
- rootProps.open = false;
5836
- }
5837
- if (forceOpen === true) {
5838
- rootProps.open = true;
5839
- }
5840
- return /* @__PURE__ */ jsxs5(
5841
- Root,
5842
- {
5843
- delayDuration: delay,
5844
- ...rootProps,
5845
- children: [
5846
- /* @__PURE__ */ jsx167(Trigger, { asChild: true, children }),
5847
- /* @__PURE__ */ jsx167(Portal, { children: /* @__PURE__ */ jsxs5(
5848
- StyledContent,
5849
- {
5850
- $compact: compact,
5851
- side: direction,
5852
- sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
5853
- children: [
5854
- content,
5855
- !hideArrow ? /* @__PURE__ */ jsx167(Arrow, { asChild: true, children: /* @__PURE__ */ jsx167(
5856
- "svg",
5857
- {
5858
- fill: "var(--tooltip-bg)",
5859
- height: "8",
5860
- style: { transform: "translateY(-2px)" },
5861
- viewBox: "0 0 12 8",
5862
- width: "12",
5863
- xmlns: "http://www.w3.org/2000/svg",
5864
- children: /* @__PURE__ */ jsx167("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
5865
- }
5866
- ) }) : null
5867
- ]
5868
- }
5869
- ) })
5870
- ]
5871
- }
5872
- );
5873
- };
5874
- Tooltip.displayName = "Tooltip";
5875
-
5876
- // src/components/IconButton/IconButton.tsx
5877
- import { Children as Children2, cloneElement as cloneElement2, forwardRef as forwardRef6 } from "react";
5878
- import styled13 from "styled-components";
5879
- import { jsx as jsx168 } from "react/jsx-runtime";
5880
- var buttonIconSizeMap = {
5881
- small: "sm",
5882
- medium: "md",
5883
- large: "lg",
5884
- hero: "xl"
5885
- };
5886
- var StyledButton2 = styled13(Button)`
5887
- --icon-button-size-small: 24px;
5888
- --icon-button-size-medium: 32px;
5889
- --icon-button-size-large: 40px;
5890
- --icon-button-size-hero: 48px;
5891
-
5892
- border-radius: 50%;
5893
- height: ${({ size }) => `var(--icon-button-size-${size})`};
5894
- width: ${({ size }) => `var(--icon-button-size-${size})`};
5895
- display: flex;
5896
- justify-content: center;
5897
- align-items: center;
5898
- line-height: 1;
5899
- `;
5900
- var IconButton = forwardRef6(
5901
- ({ children, label, disableTooltip = false, size = "medium", ...props }, ref) => {
5902
- const responsiveSize = useResponsiveProp(size);
5903
- const button = /* @__PURE__ */ jsx168(
5904
- StyledButton2,
5905
- {
5906
- ...props,
5907
- ref,
5908
- "aria-label": label,
5909
- "data-wistia-ui-icon-button": true,
5910
- size: responsiveSize,
5911
- children: cloneElement2(Children2.only(children), {
5912
- size: buttonIconSizeMap[responsiveSize]
5913
- })
5914
- }
5915
- );
5916
- if (disableTooltip) {
5917
- return button;
5918
- }
5919
- return /* @__PURE__ */ jsx168(Tooltip, { content: label, children: button });
5920
- }
5921
- );
5922
- IconButton.displayName = "IconButton";
5923
5940
  export {
5924
5941
  Box,
5925
5942
  Button,
@@ -5929,6 +5946,7 @@ export {
5929
5946
  Heading,
5930
5947
  Icon,
5931
5948
  IconButton,
5949
+ Link,
5932
5950
  ScreenReaderOnly,
5933
5951
  Stack,
5934
5952
  Text,
@@ -5939,6 +5957,7 @@ export {
5939
5957
  ellipsisFlexParentStyle,
5940
5958
  ellipsisStyle,
5941
5959
  iconSizeMap,
5960
+ mq,
5942
5961
  useActiveMq,
5943
5962
  useAriaLive,
5944
5963
  useMq,