@wistia/ui 0.0.25 → 0.1.1

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.25
3
+ * @license @wistia/ui v0.1.1
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -71,12 +71,13 @@ var resetCss = css`
71
71
  }
72
72
 
73
73
  /* Balance text wrapping on headings */
74
- h1,
74
+
75
+ /* h1,
75
76
  h2,
76
77
  h3,
77
78
  h4 {
78
79
  text-wrap: balance;
79
- }
80
+ } */
80
81
 
81
82
  /* A elements that don't have a class get default styles */
82
83
  a:not([class]) {
@@ -148,7 +149,7 @@ var globalStyleAdjustmentsCss = css2`
148
149
  `;
149
150
 
150
151
  // src/css/designTokens/index.tsx
151
- import { css as css8 } from "styled-components";
152
+ import { css as css9 } from "styled-components";
152
153
 
153
154
  // src/css/designTokens/colorGlobal.tsx
154
155
  import { css as css3 } from "styled-components";
@@ -1276,8 +1277,16 @@ var typographyTokens = css7`
1276
1277
  --wui-typography-label-4-weight: var(--wui-typography-weight-label);
1277
1278
  `;
1278
1279
 
1280
+ // src/css/designTokens/zIndex.tsx
1281
+ import { css as css8 } from "styled-components";
1282
+ var zIndexTokens = css8`
1283
+ --wui-zindex-backdrop: 100;
1284
+ --wui-zindex-modal: 100;
1285
+ --wui-zindex-menu: 500;
1286
+ `;
1287
+
1279
1288
  // src/css/designTokens/index.tsx
1280
- var colorTokens = css8`
1289
+ var colorTokens = css9`
1281
1290
  ${lightGlobalTokens}
1282
1291
  /* Dark mode is disabled until we have a more robust plan for supporting it */
1283
1292
 
@@ -1286,12 +1295,13 @@ var colorTokens = css8`
1286
1295
  } */
1287
1296
  ${colorAliasTokens}
1288
1297
  `;
1289
- var designTokens = css8`
1298
+ var designTokens = css9`
1290
1299
  :root {
1291
1300
  ${colorTokens}
1292
1301
  ${spacingTokens}
1293
1302
  ${borderRadiusTokens}
1294
1303
  ${typographyTokens}
1304
+ ${zIndexTokens}
1295
1305
  }
1296
1306
  `;
1297
1307
 
@@ -1534,9 +1544,9 @@ import { isNotNil as isNotNil2 } from "@wistia/type-guards";
1534
1544
 
1535
1545
  // src/components/Ellipsis/Ellipsis.tsx
1536
1546
  import { isNotNil } from "@wistia/type-guards";
1537
- import styled, { css as css9 } from "styled-components";
1547
+ import styled, { css as css10 } from "styled-components";
1538
1548
  import { jsx as jsx4 } from "react/jsx-runtime";
1539
- var ellipsisStyle = css9`
1549
+ var ellipsisStyle = css10`
1540
1550
  overflow: hidden;
1541
1551
  text-overflow: ellipsis;
1542
1552
  white-space: nowrap;
@@ -1559,14 +1569,14 @@ var ellipsisStyle = css9`
1559
1569
  }
1560
1570
  }
1561
1571
  `;
1562
- var ellipsisFlexParentStyle = css9`
1572
+ var ellipsisFlexParentStyle = css10`
1563
1573
  min-width: 0;
1564
1574
  `;
1565
1575
  var EllipsisComponent = styled.div`
1566
1576
  ${ellipsisStyle};
1567
1577
  ${({ $lines }) => {
1568
1578
  if (isNotNil($lines)) {
1569
- return css9`
1579
+ return css10`
1570
1580
  -webkit-box-orient: vertical;
1571
1581
  -webkit-line-clamp: ${$lines};
1572
1582
  display: -webkit-box;
@@ -1587,7 +1597,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ jsx4(
1587
1597
  Ellipsis.displayName = "Ellipsis";
1588
1598
 
1589
1599
  // src/private/helpers/getColorScheme/getColorScheme.ts
1590
- import { css as css10 } from "styled-components";
1600
+ import { css as css11 } from "styled-components";
1591
1601
  var colorSchemeSchema = [
1592
1602
  { token: "bg-surface", step: "surface" },
1593
1603
  { token: "bg-surface-hover", step: "3" },
@@ -1614,7 +1624,7 @@ var colorSchemeSchema = [
1614
1624
  { token: "icon-on-fill", step: "contrast" },
1615
1625
  { token: "focus-ring", step: "9" }
1616
1626
  ];
1617
- var defaultScheme = css10`
1627
+ var defaultScheme = css11`
1618
1628
  --wui-color-bg-surface: var(--wui-gray-surface);
1619
1629
  --wui-color-bg-surface-hover: var(--wui-gray-3);
1620
1630
  --wui-color-bg-surface-active: var(--wui-gray-4);
@@ -1640,7 +1650,7 @@ var defaultScheme = css10`
1640
1650
  --wui-color-icon-on-fill: var(--wui-gray-contrast);
1641
1651
  --wui-color-focus-ring: var(--wui-blue-9);
1642
1652
  `;
1643
- var navScheme = css10`
1653
+ var navScheme = css11`
1644
1654
  --wui-color-bg-fill-active: var(--wui-blue-5);
1645
1655
  --wui-color-bg-fill-hover: var(--wui-blue-4);
1646
1656
  --wui-color-bg-fill: var(--wui-blue-1);
@@ -1691,7 +1701,7 @@ var getColorScheme = (colorScheme) => {
1691
1701
  if (colorScheme === "default") {
1692
1702
  return defaultScheme;
1693
1703
  }
1694
- return css10`
1704
+ return css11`
1695
1705
  ${colorSchemeSchema.map(({ token, step }) => {
1696
1706
  return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
1697
1707
  }).join("")}
@@ -2161,8 +2171,8 @@ import styled9 from "styled-components";
2161
2171
  import { isNotNil as isNotNil6, isNotUndefined as isNotUndefined3 } from "@wistia/type-guards";
2162
2172
 
2163
2173
  // src/css/buttonResetCss.tsx
2164
- import { css as css11 } from "styled-components";
2165
- var buttonResetCss = css11`
2174
+ import { css as css12 } from "styled-components";
2175
+ var buttonResetCss = css12`
2166
2176
  align-items: center;
2167
2177
  background-color: transparent;
2168
2178
  background-image: none;
@@ -2207,8 +2217,8 @@ var buttonResetCss = css11`
2207
2217
  `;
2208
2218
 
2209
2219
  // src/components/Button/buttonStyles.tsx
2210
- import { css as css12 } from "styled-components";
2211
- var buttonSmallStyles = css12`
2220
+ import { css as css13 } from "styled-components";
2221
+ var buttonSmallStyles = css13`
2212
2222
  --button-padding-vertical: var(--wui-space-01);
2213
2223
  --button-padding-horizontal: var(--wui-space-02);
2214
2224
  --button-label-padding-horizontal: var(--wui-space-01);
@@ -2219,7 +2229,7 @@ var buttonSmallStyles = css12`
2219
2229
  --button-icon-size: 12px;
2220
2230
  --button-label-gap: 4px;
2221
2231
  `;
2222
- var buttonMediumStyles = css12`
2232
+ var buttonMediumStyles = css13`
2223
2233
  --button-padding-vertical: var(--wui-space-02);
2224
2234
  --button-padding-horizontal: var(--wui-space-02);
2225
2235
  --button-label-padding-horizontal: 6px;
@@ -2230,7 +2240,7 @@ var buttonMediumStyles = css12`
2230
2240
  --button-icon-size: 16px;
2231
2241
  --button-label-gap: 6px;
2232
2242
  `;
2233
- var buttonLargeStyles = css12`
2243
+ var buttonLargeStyles = css13`
2234
2244
  --button-padding-vertical: var(--wui-space-02);
2235
2245
  --button-padding-horizontal: var(--wui-space-02);
2236
2246
  --button-label-padding-horizontal: var(--wui-space-02);
@@ -2241,7 +2251,7 @@ var buttonLargeStyles = css12`
2241
2251
  --button-icon-size: 24px;
2242
2252
  --button-label-gap: 8px;
2243
2253
  `;
2244
- var buttonExtraLargeStyles = css12`
2254
+ var buttonExtraLargeStyles = css13`
2245
2255
  --button-padding-vertical: var(--wui-space-03);
2246
2256
  --button-padding-horizontal: var(--wui-space-03);
2247
2257
  --button-label-padding-horizontal: var(--wui-space-02);
@@ -2252,34 +2262,34 @@ var buttonExtraLargeStyles = css12`
2252
2262
  --button-icon-size: 24px;
2253
2263
  --button-label-gap: 8px;
2254
2264
  `;
2255
- var ghostButtonVariant = css12`
2265
+ var ghostButtonVariant = css13`
2256
2266
  --button-color-bg: transparent;
2257
2267
  --button-color-bg-hover: var(--wui-color-bg-surface-hover);
2258
2268
  --button-color-bg-active: var(--wui-color-bg-surface-active);
2259
2269
  --button-color-text: var(--wui-color-text);
2260
2270
  --button-color-icon: var(--wui-color-icon);
2261
2271
  `;
2262
- var outlineButtonVariant = css12`
2272
+ var outlineButtonVariant = css13`
2263
2273
  ${ghostButtonVariant};
2264
2274
  --button-color-border: var(--wui-color-border);
2265
2275
 
2266
2276
  box-shadow: 0 0 0 2px var(--button-color-border) inset;
2267
2277
  `;
2268
- var softButtonVariant = css12`
2278
+ var softButtonVariant = css13`
2269
2279
  --button-color-bg: var(--wui-color-bg-surface-secondary);
2270
2280
  --button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
2271
2281
  --button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
2272
2282
  --button-color-text: var(--wui-color-text);
2273
2283
  --button-color-icon: var(--wui-color-icon);
2274
2284
  `;
2275
- var solidButtonVariant = css12`
2285
+ var solidButtonVariant = css13`
2276
2286
  --button-color-bg: var(--wui-color-bg-fill);
2277
2287
  --button-color-bg-hover: var(--wui-color-bg-fill-hover);
2278
2288
  --button-color-bg-active: var(--wui-color-bg-fill-active);
2279
2289
  --button-color-text: var(--wui-color-text-on-fill);
2280
2290
  --button-color-icon: var(--wui-color-icon-on-fill);
2281
2291
  `;
2282
- var disabledButtonVariant = css12`
2292
+ var disabledButtonVariant = css13`
2283
2293
  --button-color-bg: var(--wui-color-bg-surface-disabled);
2284
2294
  --button-color-bg-hover: var(--wui-color-bg-surface-disabled);
2285
2295
  --button-color-bg-active: var(--wui-color-bg-surface-disabled);
@@ -2287,7 +2297,7 @@ var disabledButtonVariant = css12`
2287
2297
  --button-color-icon: var(--wui-color-icon-disabled);
2288
2298
  --button-color-border: var(--wui-color-border-disabled);
2289
2299
  `;
2290
- var pressedButtonVariant = css12`
2300
+ var pressedButtonVariant = css13`
2291
2301
  --button-color-bg: var(--wui-color-bg-surface-selected);
2292
2302
  --button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
2293
2303
  --button-color-bg-active: var(--wui-color-bg-surface-selected-active);
@@ -2295,7 +2305,7 @@ var pressedButtonVariant = css12`
2295
2305
  --button-color-icon: var(--wui-color-icon-selected);
2296
2306
  --button-color-border: var(--wui-color-border-selected);
2297
2307
  `;
2298
- var buttonBaseStyles = css12`
2308
+ var buttonBaseStyles = css13`
2299
2309
  border-radius: var(--wui-border-radius-rounded);
2300
2310
  font-family: var(--button-typography-family);
2301
2311
  font-size: var(--button-typography-size);
@@ -5908,11 +5918,11 @@ import styled14 from "styled-components";
5908
5918
  import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
5909
5919
 
5910
5920
  // src/components/Label/Label.tsx
5911
- import styled12, { css as css14 } from "styled-components";
5921
+ import styled12, { css as css15 } from "styled-components";
5912
5922
 
5913
5923
  // src/components/Heading/Heading.tsx
5914
5924
  import { forwardRef as forwardRef4 } from "react";
5915
- import styled11, { css as css13 } from "styled-components";
5925
+ import styled11, { css as css14 } from "styled-components";
5916
5926
 
5917
5927
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
5918
5928
  var makePolymorphic = (component) => {
@@ -5921,43 +5931,43 @@ var makePolymorphic = (component) => {
5921
5931
 
5922
5932
  // src/components/Heading/Heading.tsx
5923
5933
  import { jsx as jsx168 } from "react/jsx-runtime";
5924
- var heroStyle = css13`
5934
+ var heroStyle = css14`
5925
5935
  --font-family: var(--wui-typography-heading-hero-family);
5926
5936
  --font-size: var(--wui-typography-heading-hero-size);
5927
5937
  --font-weight: var(--wui-typography-heading-hero-weight);
5928
5938
  --line-height: var(--wui-typography-heading-hero-line-height);
5929
5939
  `;
5930
- var heading1TextStyle = css13`
5940
+ var heading1TextStyle = css14`
5931
5941
  --font-family: var(--wui-typography-heading-1-family);
5932
5942
  --font-size: var(--wui-typography-heading-1-size);
5933
5943
  --font-weight: var(--wui-typography-heading-1-weight);
5934
5944
  --line-height: var(--wui-typography-heading-1-line-height);
5935
5945
  `;
5936
- var heading2TextStyle = css13`
5946
+ var heading2TextStyle = css14`
5937
5947
  --font-family: var(--wui-typography-heading-2-family);
5938
5948
  --font-size: var(--wui-typography-heading-2-size);
5939
5949
  --font-weight: var(--wui-typography-heading-2-weight);
5940
5950
  --line-height: var(--wui-typography-heading-2-line-height);
5941
5951
  `;
5942
- var heading3TextStyle = css13`
5952
+ var heading3TextStyle = css14`
5943
5953
  --font-family: var(--wui-typography-heading-3-family);
5944
5954
  --font-size: var(--wui-typography-heading-3-size);
5945
5955
  --font-weight: var(--wui-typography-heading-3-weight);
5946
5956
  --line-height: var(--wui-typography-heading-3-line-height);
5947
5957
  `;
5948
- var heading4TextStyle = css13`
5958
+ var heading4TextStyle = css14`
5949
5959
  --font-family: var(--wui-typography-heading-4-family);
5950
5960
  --font-size: var(--wui-typography-heading-4-size);
5951
5961
  --font-weight: var(--wui-typography-heading-4-weight);
5952
5962
  --line-height: var(--wui-typography-heading-4-line-height);
5953
5963
  `;
5954
- var heading5TextStyle = css13`
5964
+ var heading5TextStyle = css14`
5955
5965
  --font-family: var(--wui-typography-heading-5-family);
5956
5966
  --font-size: var(--wui-typography-heading-5-size);
5957
5967
  --font-weight: var(--wui-typography-heading-5-weight);
5958
5968
  --line-height: var(--wui-typography-heading-5-line-height);
5959
5969
  `;
5960
- var heading6TextStyle = css13`
5970
+ var heading6TextStyle = css14`
5961
5971
  --font-family: var(--wui-typography-heading-6-family);
5962
5972
  --font-size: var(--wui-typography-heading-6-size);
5963
5973
  --font-weight: var(--wui-typography-heading-6-weight);
@@ -5982,16 +5992,16 @@ var StyledHeading = styled11.div`
5982
5992
  color: var(--wui-color-text);
5983
5993
  ${({ $variant }) => variantStyleMap[$variant]}
5984
5994
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
5985
- ${({ $inline }) => $inline && css13`
5995
+ ${({ $inline }) => $inline && css14`
5986
5996
  display: inline-block;
5987
5997
  `}
5988
- ${({ $disabled }) => $disabled && css13`
5998
+ ${({ $disabled }) => $disabled && css14`
5989
5999
  color: var(--wui-color-text-disabled);
5990
6000
  `}
5991
- ${({ $preventUserSelect }) => $preventUserSelect && css13`
6001
+ ${({ $preventUserSelect }) => $preventUserSelect && css14`
5992
6002
  user-select: none;
5993
6003
  `}
5994
- ${({ $align }) => css13`
6004
+ ${({ $align }) => css14`
5995
6005
  text-align: ${$align};
5996
6006
  `}
5997
6007
  margin: 0;
@@ -6037,7 +6047,7 @@ var Heading = makePolymorphic(HeadingComponent);
6037
6047
 
6038
6048
  // src/components/Label/Label.tsx
6039
6049
  import { jsx as jsx169 } from "react/jsx-runtime";
6040
- var requiredStyle = css14`
6050
+ var requiredStyle = css15`
6041
6051
  &::after {
6042
6052
  color: var(--wui-color-text-error);
6043
6053
  display: inline;
@@ -6045,7 +6055,7 @@ var requiredStyle = css14`
6045
6055
  content: '*';
6046
6056
  }
6047
6057
  `;
6048
- var disabledStyle = css14`
6058
+ var disabledStyle = css15`
6049
6059
  color: var(--wui-color-text-disabled);
6050
6060
  `;
6051
6061
  var StyledLabel = styled12(Heading).attrs({
@@ -6490,89 +6500,89 @@ import { isArray as isArray2, isNotNil as isNotNil7, isNotUndefined as isNotUnde
6490
6500
 
6491
6501
  // src/components/Text/Text.tsx
6492
6502
  import { forwardRef as forwardRef8 } from "react";
6493
- import styled18, { css as css15 } from "styled-components";
6503
+ import styled18, { css as css16 } from "styled-components";
6494
6504
  import { jsx as jsx176 } from "react/jsx-runtime";
6495
- var bodyBoldStyles = css15`
6505
+ var bodyBoldStyles = css16`
6496
6506
  > strong,
6497
6507
  b {
6498
6508
  font-weight: var(--wui-typography-weight-body-bold);
6499
6509
  }
6500
6510
  `;
6501
- var labelBoldStyles = css15`
6511
+ var labelBoldStyles = css16`
6502
6512
  > strong,
6503
6513
  b {
6504
6514
  font-weight: var(--wui-typography-weight-label-bold);
6505
6515
  }
6506
6516
  `;
6507
- var body1TextStyle = css15`
6517
+ var body1TextStyle = css16`
6508
6518
  --font-family: var(--wui-typography-body-1-family);
6509
6519
  --font-size: var(--wui-typography-body-1-size);
6510
6520
  --font-weight: var(--wui-typography-body-1-weight);
6511
6521
  --line-height: var(--wui-typography-body-1-line-height);
6512
6522
  ${bodyBoldStyles}
6513
6523
  `;
6514
- var body2TextStyle = css15`
6524
+ var body2TextStyle = css16`
6515
6525
  --font-family: var(--wui-typography-body-2-family);
6516
6526
  --font-size: var(--wui-typography-body-2-size);
6517
6527
  --font-weight: var(--wui-typography-body-2-weight);
6518
6528
  --line-height: var(--wui-typography-body-2-line-height);
6519
6529
  ${bodyBoldStyles}
6520
6530
  `;
6521
- var body3TextStyle = css15`
6531
+ var body3TextStyle = css16`
6522
6532
  --font-family: var(--wui-typography-body-3-family);
6523
6533
  --font-size: var(--wui-typography-body-3-size);
6524
6534
  --font-weight: var(--wui-typography-body-3-weight);
6525
6535
  --line-height: var(--wui-typography-body-3-line-height);
6526
6536
  ${bodyBoldStyles}
6527
6537
  `;
6528
- var body4TextStyle = css15`
6538
+ var body4TextStyle = css16`
6529
6539
  --font-family: var(--wui-typography-body-4-family);
6530
6540
  --font-size: var(--wui-typography-body-4-size);
6531
6541
  --font-weight: var(--wui-typography-body-4-weight);
6532
6542
  --line-height: var(--wui-typography-body-4-line-height);
6533
6543
  ${bodyBoldStyles}
6534
6544
  `;
6535
- var label1TextStyle = css15`
6545
+ var label1TextStyle = css16`
6536
6546
  --font-family: var(--wui-typography-label-1-family);
6537
6547
  --font-size: var(--wui-typography-label-1-size);
6538
6548
  --font-weight: var(--wui-typography-label-1-weight);
6539
6549
  --line-height: var(--wui-typography-label-1-line-height);
6540
6550
  ${labelBoldStyles}
6541
6551
  `;
6542
- var label2TextStyle = css15`
6552
+ var label2TextStyle = css16`
6543
6553
  --font-family: var(--wui-typography-label-2-family);
6544
6554
  --font-size: var(--wui-typography-label-2-size);
6545
6555
  --font-weight: var(--wui-typography-label-2-weight);
6546
6556
  --line-height: var(--wui-typography-label-2-line-height);
6547
6557
  ${labelBoldStyles}
6548
6558
  `;
6549
- var label3TextStyle = css15`
6559
+ var label3TextStyle = css16`
6550
6560
  --font-family: var(--wui-typography-label-3-family);
6551
6561
  --font-size: var(--wui-typography-label-3-size);
6552
6562
  --font-weight: var(--wui-typography-label-3-weight);
6553
6563
  --line-height: var(--wui-typography-label-3-line-height);
6554
6564
  ${labelBoldStyles}
6555
6565
  `;
6556
- var label4TextStyle = css15`
6566
+ var label4TextStyle = css16`
6557
6567
  --font-family: var(--wui-typography-label-4-family);
6558
6568
  --font-size: var(--wui-typography-label-4-size);
6559
6569
  --font-weight: var(--wui-typography-label-4-weight);
6560
6570
  --line-height: var(--wui-typography-label-4-line-height);
6561
6571
  ${labelBoldStyles}
6562
6572
  `;
6563
- var body1MonoTextStyle = css15`
6573
+ var body1MonoTextStyle = css16`
6564
6574
  ${body1TextStyle};
6565
6575
  --font-family: var(--wui-typography-family-mono);
6566
6576
  `;
6567
- var body2MonoTextStyle = css15`
6577
+ var body2MonoTextStyle = css16`
6568
6578
  ${body2TextStyle};
6569
6579
  --font-family: var(--wui-typography-family-mono);
6570
6580
  `;
6571
- var body3MonoTextStyle = css15`
6581
+ var body3MonoTextStyle = css16`
6572
6582
  ${body3TextStyle};
6573
6583
  --font-family: var(--wui-typography-family-mono);
6574
6584
  `;
6575
- var body4MonoTextStyle = css15`
6585
+ var body4MonoTextStyle = css16`
6576
6586
  ${body4TextStyle};
6577
6587
  --font-family: var(--wui-typography-family-mono);
6578
6588
  `;
@@ -6590,13 +6600,13 @@ var variantStyleMap2 = {
6590
6600
  label3: label3TextStyle,
6591
6601
  label4: label4TextStyle
6592
6602
  };
6593
- var highContrastProminenceStyle = css15`
6603
+ var highContrastProminenceStyle = css16`
6594
6604
  --text-color: var(--wui-color-text-high-contrast);
6595
6605
  `;
6596
- var vibrantProminenceStyle = css15`
6606
+ var vibrantProminenceStyle = css16`
6597
6607
  --text-color: var(--wui-color-text);
6598
6608
  `;
6599
- var secondaryProminenceStyle = css15`
6609
+ var secondaryProminenceStyle = css16`
6600
6610
  --text-color: var(--wui-color-text-secondary);
6601
6611
  `;
6602
6612
  var prominenceMap = {
@@ -6616,19 +6626,19 @@ var StyledText = styled18.div`
6616
6626
  ${({ $variant }) => variantStyleMap2[$variant]}
6617
6627
  ${({ $prominence }) => prominenceMap[$prominence]}
6618
6628
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
6619
- ${({ $inline }) => $inline && css15`
6629
+ ${({ $inline }) => $inline && css16`
6620
6630
  display: inline-block;
6621
6631
  `}
6622
- ${({ $disabled }) => $disabled && css15`
6632
+ ${({ $disabled }) => $disabled && css16`
6623
6633
  --text-color: var(--wui-color-text-disabled);
6624
6634
  `}
6625
- ${({ $preventUserSelect }) => $preventUserSelect && css15`
6635
+ ${({ $preventUserSelect }) => $preventUserSelect && css16`
6626
6636
  user-select: none;
6627
6637
  `}
6628
- ${({ $align }) => css15`
6638
+ ${({ $align }) => css16`
6629
6639
  text-align: ${$align};
6630
6640
  `}
6631
- ${({ as }) => as === "p" && css15`
6641
+ ${({ as }) => as === "p" && css16`
6632
6642
  display: block;
6633
6643
  `}
6634
6644
  `;
@@ -6847,122 +6857,9 @@ RadioGroup.displayName = "RadioGroup";
6847
6857
 
6848
6858
  // src/components/IconButton/IconButton.tsx
6849
6859
  import { Children as Children3, cloneElement as cloneElement4, forwardRef as forwardRef9 } from "react";
6850
- import styled22 from "styled-components";
6851
-
6852
- // src/components/Tooltip/Tooltip.tsx
6853
- import {
6854
- Root,
6855
- Content,
6856
- Trigger,
6857
- Portal,
6858
- Arrow
6859
- } from "@radix-ui/react-tooltip";
6860
- import styled21, { css as css16 } from "styled-components";
6861
- import { jsx as jsx181, jsxs as jsxs11 } from "react/jsx-runtime";
6862
- var CompactTooltipStyles = css16`
6863
- --tooltip-font-size: var(--wui-typography-label-4-size);
6864
- --tooltip-line-height: var(--wui-typography-label-4-line-height);
6865
- --tooltip-font-weight: var(--wui-typography-label-4-weight);
6866
- --tooltip-horizontal-padding: var(--wui-space-02);
6867
- --tooltip-vertical-padding: var(--wui-space-03);
6868
- `;
6869
- var StyledContent = styled21(Content)`
6870
- --tooltip-font-family: var(--wui-typography-family-default);
6871
- --tooltip-border-radius: var(--wui-border-radius-05);
6872
- --tooltip-bg: var(--wui-color-bg-tooltip);
6873
- --tooltip-color: var(--wui-color-text-on-fill);
6874
- --tooltip-font-size: var(--wui-typography-label-3-size);
6875
- --tooltip-line-height: var(--wui-typography-label-3-line-height);
6876
- --tooltip-font-weight: var(--wui-typography-label-3-weight);
6877
- --tooltip-horizontal-padding: var(--wui-space-03);
6878
- --tooltip-vertical-padding: var(--wui-space-03);
6879
-
6880
- ${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
6881
-
6882
- font-family: var(--tooltip-font-family);
6883
- font-size: var(--tooltip-font-size);
6884
- border-radius: var(--tooltip-border-radius);
6885
- padding: var(--tooltip-horizontal-padding) var(--tooltip-vertical-padding);
6886
- background-color: var(--tooltip-bg);
6887
- color: var(--tooltip-color);
6888
- user-select: none;
6889
- animation-duration: 400ms;
6890
- animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
6891
- will-change: transform, opacity;
6892
- max-width: 30em;
6893
-
6894
- &[data-state='delayed-open'][data-side='top'] {
6895
- animation-name: slideDownAndFade;
6896
- }
6897
-
6898
- &[data-state='delayed-open'][data-side='right'] {
6899
- animation-name: slideLeftAndFade;
6900
- }
6901
-
6902
- &[data-state='delayed-open'][data-side='bottom'] {
6903
- animation-name: slideUpAndFade;
6904
- }
6905
-
6906
- &[data-state='delayed-open'][data-side='left'] {
6907
- animation-name: slideRightAndFade;
6908
- }
6909
- `;
6910
- var VISUAL_OFFSET = 6;
6911
- var Tooltip = ({
6912
- delay = 700,
6913
- direction = "top",
6914
- content,
6915
- children,
6916
- forceOpen,
6917
- compact = false,
6918
- hideArrow = false
6919
- }) => {
6920
- const rootProps = {};
6921
- if (content === "" || content === null) {
6922
- rootProps.open = false;
6923
- }
6924
- if (forceOpen === true) {
6925
- rootProps.open = true;
6926
- }
6927
- return /* @__PURE__ */ jsxs11(
6928
- Root,
6929
- {
6930
- delayDuration: delay,
6931
- ...rootProps,
6932
- children: [
6933
- /* @__PURE__ */ jsx181(Trigger, { asChild: true, children }),
6934
- /* @__PURE__ */ jsx181(Portal, { children: /* @__PURE__ */ jsxs11(
6935
- StyledContent,
6936
- {
6937
- $compact: compact,
6938
- side: direction,
6939
- sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
6940
- children: [
6941
- content,
6942
- !hideArrow ? /* @__PURE__ */ jsx181(Arrow, { asChild: true, children: /* @__PURE__ */ jsx181(
6943
- "svg",
6944
- {
6945
- fill: "var(--tooltip-bg)",
6946
- height: "8",
6947
- style: { transform: "translateY(-2px)" },
6948
- viewBox: "0 0 12 8",
6949
- width: "12",
6950
- xmlns: "http://www.w3.org/2000/svg",
6951
- children: /* @__PURE__ */ jsx181("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" })
6952
- }
6953
- ) }) : null
6954
- ]
6955
- }
6956
- ) })
6957
- ]
6958
- }
6959
- );
6960
- };
6961
- Tooltip.displayName = "Tooltip";
6962
-
6963
- // src/components/IconButton/IconButton.tsx
6964
- import { jsx as jsx182 } from "react/jsx-runtime";
6965
- var StyledButton2 = styled22(Button)`
6860
+ import styled21 from "styled-components";
6861
+ import { jsx as jsx181 } from "react/jsx-runtime";
6862
+ var StyledButton2 = styled21(Button)`
6966
6863
  --icon-button-size-sm: 24px;
6967
6864
  --icon-button-size-md: 32px;
6968
6865
  --icon-button-size-lg: 40px;
@@ -6977,9 +6874,9 @@ var StyledButton2 = styled22(Button)`
6977
6874
  line-height: 1;
6978
6875
  `;
6979
6876
  var IconButton = forwardRef9(
6980
- ({ children, label, disableTooltip = false, size = "md", ...props }, ref) => {
6877
+ ({ children, label, size = "md", ...props }, ref) => {
6981
6878
  const responsiveSize = useResponsiveProp(size);
6982
- const button = /* @__PURE__ */ jsx182(
6879
+ return /* @__PURE__ */ jsx181(
6983
6880
  StyledButton2,
6984
6881
  {
6985
6882
  ...props,
@@ -6992,16 +6889,12 @@ var IconButton = forwardRef9(
6992
6889
  })
6993
6890
  }
6994
6891
  );
6995
- if (disableTooltip) {
6996
- return button;
6997
- }
6998
- return /* @__PURE__ */ jsx182(Tooltip, { content: label, children: button });
6999
6892
  }
7000
6893
  );
7001
6894
  IconButton.displayName = "IconButton";
7002
6895
 
7003
6896
  // src/components/Menu/Menu.tsx
7004
- import styled23, { css as css17, keyframes } from "styled-components";
6897
+ import styled22, { css as css17, keyframes } from "styled-components";
7005
6898
  import {
7006
6899
  DropdownMenu,
7007
6900
  DropdownMenuTrigger,
@@ -7009,7 +6902,7 @@ import {
7009
6902
  DropdownMenuContent
7010
6903
  } from "@radix-ui/react-dropdown-menu";
7011
6904
  import { isNotNil as isNotNil8, isNotUndefined as isNotUndefined7 } from "@wistia/type-guards";
7012
- import { jsx as jsx183, jsxs as jsxs12 } from "react/jsx-runtime";
6905
+ import { jsx as jsx182, jsxs as jsxs11 } from "react/jsx-runtime";
7013
6906
  var open = keyframes`
7014
6907
  from {
7015
6908
  opacity: 0;
@@ -7038,7 +6931,6 @@ var menuContentCss = css17`
7038
6931
  --menu-padding: var(--wui-space-03);
7039
6932
  --menu-min-width: 120px;
7040
6933
  --menu-max-width: 284px;
7041
- --menu-zindex: 500; /* TODO - need z-index token */
7042
6934
 
7043
6935
  animation: ${open}; /* TODO - need easing tokens */
7044
6936
  font-family: var(--menu-font-family);
@@ -7051,7 +6943,7 @@ var menuContentCss = css17`
7051
6943
  overflow: auto;
7052
6944
  padding: var(--menu-padding);
7053
6945
  transform-origin: var(--radix-dropdown-menu-content-transform-origin);
7054
- z-index: var(--menu-zindex);
6946
+ z-index: var(--wui-zindex-menu);
7055
6947
 
7056
6948
  &[data-state='closed'] {
7057
6949
  animation: ${close}; /* TODO - need easing tokens */
@@ -7069,7 +6961,7 @@ var menuContentCss = css17`
7069
6961
  margin: var(--wui-space-02) 0;
7070
6962
  }
7071
6963
  `;
7072
- var MenuContent = styled23(DropdownMenuContent)`
6964
+ var MenuContent = styled22(DropdownMenuContent)`
7073
6965
  ${menuContentCss}
7074
6966
  `;
7075
6967
  var Menu = ({
@@ -7083,23 +6975,23 @@ var Menu = ({
7083
6975
  onInteractOutside,
7084
6976
  ...props
7085
6977
  }) => {
7086
- return /* @__PURE__ */ jsxs12(
6978
+ return /* @__PURE__ */ jsxs11(
7087
6979
  DropdownMenu,
7088
6980
  {
7089
6981
  modal: false,
7090
6982
  ...isNotNil8(onOpenChange) && isNotNil8(isOpen) ? { open: isOpen, onOpenChange } : {},
7091
6983
  children: [
7092
- /* @__PURE__ */ jsx183(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx183(
6984
+ /* @__PURE__ */ jsx182(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx182(
7093
6985
  Button,
7094
6986
  {
7095
6987
  "aria-expanded": isOpen,
7096
6988
  forceState: isOpen ? "active" : void 0,
7097
- rightIcon: /* @__PURE__ */ jsx183(Icon, { type: "caret-down" }),
6989
+ rightIcon: /* @__PURE__ */ jsx182(Icon, { type: "caret-down" }),
7098
6990
  ...triggerProps,
7099
6991
  children: label
7100
6992
  }
7101
6993
  ) }),
7102
- /* @__PURE__ */ jsx183(DropdownMenuPortal, { children: /* @__PURE__ */ jsx183(
6994
+ /* @__PURE__ */ jsx182(DropdownMenuPortal, { children: /* @__PURE__ */ jsx182(
7103
6995
  MenuContent,
7104
6996
  {
7105
6997
  ...props,
@@ -7118,19 +7010,19 @@ var Menu = ({
7118
7010
  Menu.displayName = "Menu";
7119
7011
 
7120
7012
  // src/components/Menu/MenuLabel.tsx
7121
- import styled24 from "styled-components";
7013
+ import styled23 from "styled-components";
7122
7014
  import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
7123
- import { jsx as jsx184 } from "react/jsx-runtime";
7124
- var StyledMenuLabel = styled24(DropdownMenuLabel)`
7015
+ import { jsx as jsx183 } from "react/jsx-runtime";
7016
+ var StyledMenuLabel = styled23(DropdownMenuLabel)`
7125
7017
  padding: var(--wui-space-02);
7126
7018
  `;
7127
7019
  var MenuLabel = ({ children, ...props }) => {
7128
- return /* @__PURE__ */ jsx184(
7020
+ return /* @__PURE__ */ jsx183(
7129
7021
  StyledMenuLabel,
7130
7022
  {
7131
7023
  asChild: true,
7132
7024
  ...props,
7133
- children: /* @__PURE__ */ jsx184(
7025
+ children: /* @__PURE__ */ jsx183(
7134
7026
  Text,
7135
7027
  {
7136
7028
  variant: "label3",
@@ -7145,7 +7037,7 @@ MenuLabel.displayName = "MenuLabel";
7145
7037
 
7146
7038
  // src/components/Menu/SubMenu.tsx
7147
7039
  import { useState as useState6 } from "react";
7148
- import styled27 from "styled-components";
7040
+ import styled26 from "styled-components";
7149
7041
  import {
7150
7042
  DropdownMenuPortal as DropdownMenuPortal2,
7151
7043
  DropdownMenuSub,
@@ -7157,10 +7049,10 @@ import {
7157
7049
 
7158
7050
  // src/components/Menu/MenuItemButton.tsx
7159
7051
  import { forwardRef as forwardRef10 } from "react";
7160
- import styled25 from "styled-components";
7052
+ import styled24 from "styled-components";
7161
7053
  import { isNotNil as isNotNil9, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
7162
- import { jsx as jsx185, jsxs as jsxs13 } from "react/jsx-runtime";
7163
- var StyledButton3 = styled25(Button)`
7054
+ import { jsx as jsx184, jsxs as jsxs12 } from "react/jsx-runtime";
7055
+ var StyledButton3 = styled24(Button)`
7164
7056
  --menu-item-border-radius: var(--wui-border-radius-01);
7165
7057
  --menu-item-gap: var(--wui-space-01);
7166
7058
  --menu-item-inner-gap: var(--wui-space-04);
@@ -7177,7 +7069,7 @@ var StyledButton3 = styled25(Button)`
7177
7069
 
7178
7070
  ${({ $isGated }) => isNotUndefined8($isGated) && $isGated ? `color: var(--wui-color-text);` : ""}
7179
7071
  `;
7180
- var StyledMenuContent = styled25.div`
7072
+ var StyledMenuContent = styled24.div`
7181
7073
  display: grid;
7182
7074
  grid-template-areas:
7183
7075
  'label badge'
@@ -7186,7 +7078,7 @@ var StyledMenuContent = styled25.div`
7186
7078
  position: relative;
7187
7079
  align-content: center;
7188
7080
  `;
7189
- var StyledBadgeContainer = styled25.div`
7081
+ var StyledBadgeContainer = styled24.div`
7190
7082
  grid-area: badge;
7191
7083
  align-self: start;
7192
7084
  justify-self: end;
@@ -7205,9 +7097,9 @@ var MenuItemButton = forwardRef10(({ children, appearance, command, ...props },
7205
7097
  console.warn("colorScheme prop is ignored when appearance is gated");
7206
7098
  }
7207
7099
  colorScheme = "purple";
7208
- badge = /* @__PURE__ */ jsx185(Icon, { type: "sparkle" });
7100
+ badge = /* @__PURE__ */ jsx184(Icon, { type: "sparkle" });
7209
7101
  }
7210
- return /* @__PURE__ */ jsx185(
7102
+ return /* @__PURE__ */ jsx184(
7211
7103
  StyledButton3,
7212
7104
  {
7213
7105
  ...props,
@@ -7216,9 +7108,9 @@ var MenuItemButton = forwardRef10(({ children, appearance, command, ...props },
7216
7108
  colorScheme: colorScheme ?? "default",
7217
7109
  fullWidth: true,
7218
7110
  variant: "ghost",
7219
- children: /* @__PURE__ */ jsxs13(StyledMenuContent, { children: [
7111
+ children: /* @__PURE__ */ jsxs12(StyledMenuContent, { children: [
7220
7112
  children,
7221
- isNotNil9(badge) || isNotNil9(command) ? /* @__PURE__ */ jsx185(StyledBadgeContainer, { children: badge ?? command }) : null
7113
+ isNotNil9(badge) || isNotNil9(command) ? /* @__PURE__ */ jsx184(StyledBadgeContainer, { children: badge ?? command }) : null
7222
7114
  ] })
7223
7115
  }
7224
7116
  );
@@ -7226,12 +7118,12 @@ var MenuItemButton = forwardRef10(({ children, appearance, command, ...props },
7226
7118
  MenuItemButton.displayName = "MenuItemButton";
7227
7119
 
7228
7120
  // src/components/Menu/MenuItemLabelDescription.tsx
7229
- import styled26 from "styled-components";
7230
- import { jsx as jsx186 } from "react/jsx-runtime";
7231
- var StyledMenuItemLabel = styled26(Text).attrs({ variant: "label3" })`
7121
+ import styled25 from "styled-components";
7122
+ import { jsx as jsx185 } from "react/jsx-runtime";
7123
+ var StyledMenuItemLabel = styled25(Text).attrs({ variant: "label3" })`
7232
7124
  grid-area: label;
7233
7125
  `;
7234
- var StyledMenuItemDescription = styled26(Text).attrs({
7126
+ var StyledMenuItemDescription = styled25(Text).attrs({
7235
7127
  variant: "label4",
7236
7128
  prominence: "secondary"
7237
7129
  })`
@@ -7239,15 +7131,15 @@ var StyledMenuItemDescription = styled26(Text).attrs({
7239
7131
  grid-area: description;
7240
7132
  `;
7241
7133
  var MenuItemLabel = ({ children }) => {
7242
- return /* @__PURE__ */ jsx186(StyledMenuItemLabel, { children });
7134
+ return /* @__PURE__ */ jsx185(StyledMenuItemLabel, { children });
7243
7135
  };
7244
7136
  var MenuItemDescription = ({ children }) => {
7245
- return /* @__PURE__ */ jsx186(StyledMenuItemDescription, { children });
7137
+ return /* @__PURE__ */ jsx185(StyledMenuItemDescription, { children });
7246
7138
  };
7247
7139
 
7248
7140
  // src/components/Menu/SubMenu.tsx
7249
- import { jsx as jsx187, jsxs as jsxs14 } from "react/jsx-runtime";
7250
- var SubMenuContent = styled27(DropdownMenuSubContent)`
7141
+ import { jsx as jsx186, jsxs as jsxs13 } from "react/jsx-runtime";
7142
+ var SubMenuContent = styled26(DropdownMenuSubContent)`
7251
7143
  ${menuContentCss}
7252
7144
  width: 298px;
7253
7145
 
@@ -7255,10 +7147,10 @@ var SubMenuContent = styled27(DropdownMenuSubContent)`
7255
7147
  transform: translateX(-100%) !important;
7256
7148
  }
7257
7149
  `;
7258
- var StyledMobileSubMenuItems = styled27.div`
7150
+ var StyledMobileSubMenuItems = styled26.div`
7259
7151
  margin-left: var(--wui-space-04);
7260
7152
  `;
7261
- var StyledSubTrigger = styled27(DropdownMenuSubTrigger)`
7153
+ var StyledSubTrigger = styled26(DropdownMenuSubTrigger)`
7262
7154
  outline: none;
7263
7155
 
7264
7156
  &[data-state='open'],
@@ -7269,11 +7161,11 @@ var StyledSubTrigger = styled27(DropdownMenuSubTrigger)`
7269
7161
  var SubMenuTrigger = (props) => {
7270
7162
  const { isSmAndUp } = useMq();
7271
7163
  const Trigger2 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
7272
- return /* @__PURE__ */ jsx187(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx187(
7164
+ return /* @__PURE__ */ jsx186(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx186(
7273
7165
  MenuItemButton,
7274
7166
  {
7275
7167
  ...props,
7276
- rightIcon: /* @__PURE__ */ jsx187(Icon, { type: "caret-right" })
7168
+ rightIcon: /* @__PURE__ */ jsx186(Icon, { type: "caret-right" })
7277
7169
  }
7278
7170
  ) });
7279
7171
  };
@@ -7286,14 +7178,14 @@ var SubMenu = ({
7286
7178
  }) => {
7287
7179
  const { isSmAndUp } = useMq();
7288
7180
  const [isExpanded, setIsExpanded] = useState6(false);
7289
- return isSmAndUp ? /* @__PURE__ */ jsxs14(DropdownMenuSub, { onOpenChange, children: [
7290
- /* @__PURE__ */ jsxs14(SubMenuTrigger, { ...props, children: [
7291
- /* @__PURE__ */ jsx187(MenuItemLabel, { children: label }),
7292
- /* @__PURE__ */ jsx187(MenuItemDescription, { children: description })
7181
+ return isSmAndUp ? /* @__PURE__ */ jsxs13(DropdownMenuSub, { onOpenChange, children: [
7182
+ /* @__PURE__ */ jsxs13(SubMenuTrigger, { ...props, children: [
7183
+ /* @__PURE__ */ jsx186(MenuItemLabel, { children: label }),
7184
+ /* @__PURE__ */ jsx186(MenuItemDescription, { children: description })
7293
7185
  ] }),
7294
- /* @__PURE__ */ jsx187(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx187(SubMenuContent, { children }) })
7295
- ] }) : /* @__PURE__ */ jsxs14(DropdownMenuGroup, { children: [
7296
- /* @__PURE__ */ jsxs14(
7186
+ /* @__PURE__ */ jsx186(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx186(SubMenuContent, { children }) })
7187
+ ] }) : /* @__PURE__ */ jsxs13(DropdownMenuGroup, { children: [
7188
+ /* @__PURE__ */ jsxs13(
7297
7189
  SubMenuTrigger,
7298
7190
  {
7299
7191
  ...props,
@@ -7302,12 +7194,12 @@ var SubMenu = ({
7302
7194
  setIsExpanded((prev) => !prev);
7303
7195
  },
7304
7196
  children: [
7305
- /* @__PURE__ */ jsx187(MenuItemLabel, { children: label }),
7306
- /* @__PURE__ */ jsx187(MenuItemDescription, { children: description })
7197
+ /* @__PURE__ */ jsx186(MenuItemLabel, { children: label }),
7198
+ /* @__PURE__ */ jsx186(MenuItemDescription, { children: description })
7307
7199
  ]
7308
7200
  }
7309
7201
  ),
7310
- /* @__PURE__ */ jsx187(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7202
+ /* @__PURE__ */ jsx186(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7311
7203
  ] });
7312
7204
  };
7313
7205
  SubMenu.displayName = "SubMenu";
@@ -7315,15 +7207,15 @@ SubMenu.displayName = "SubMenu";
7315
7207
  // src/components/Menu/MenuItem.tsx
7316
7208
  import { forwardRef as forwardRef11 } from "react";
7317
7209
  import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
7318
- import { jsx as jsx188 } from "react/jsx-runtime";
7210
+ import { jsx as jsx187 } from "react/jsx-runtime";
7319
7211
  var MenuItem = forwardRef11(
7320
7212
  ({ onSelect = () => null, ...props }, ref) => {
7321
- return /* @__PURE__ */ jsx188(
7213
+ return /* @__PURE__ */ jsx187(
7322
7214
  DropdownMenuItem2,
7323
7215
  {
7324
7216
  asChild: true,
7325
7217
  onSelect,
7326
- children: /* @__PURE__ */ jsx188(
7218
+ children: /* @__PURE__ */ jsx187(
7327
7219
  MenuItemButton,
7328
7220
  {
7329
7221
  ...props,
@@ -7341,10 +7233,10 @@ MenuItem.displayName = "MenuItem";
7341
7233
  import {
7342
7234
  DropdownMenuRadioGroup
7343
7235
  } from "@radix-ui/react-dropdown-menu";
7344
- import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7236
+ import { jsx as jsx188, jsxs as jsxs14 } from "react/jsx-runtime";
7345
7237
  var MenuRadioGroup = ({ children, label, ...props }) => {
7346
- return /* @__PURE__ */ jsxs15(DropdownMenuRadioGroup, { ...props, children: [
7347
- /* @__PURE__ */ jsx189(MenuLabel, { children: label }),
7238
+ return /* @__PURE__ */ jsxs14(DropdownMenuRadioGroup, { ...props, children: [
7239
+ /* @__PURE__ */ jsx188(MenuLabel, { children: label }),
7348
7240
  children
7349
7241
  ] });
7350
7242
  };
@@ -7355,11 +7247,11 @@ import {
7355
7247
  DropdownMenuItemIndicator,
7356
7248
  DropdownMenuRadioItem
7357
7249
  } from "@radix-ui/react-dropdown-menu";
7358
- import { jsx as jsx190 } from "react/jsx-runtime";
7250
+ import { jsx as jsx189 } from "react/jsx-runtime";
7359
7251
  var RadioMenuItem = ({
7360
7252
  onSelect,
7361
7253
  value,
7362
- indicator = /* @__PURE__ */ jsx190(
7254
+ indicator = /* @__PURE__ */ jsx189(
7363
7255
  Icon,
7364
7256
  {
7365
7257
  size: "sm",
@@ -7369,16 +7261,16 @@ var RadioMenuItem = ({
7369
7261
  ...props
7370
7262
  }) => {
7371
7263
  const extraProps = onSelect ? { onSelect } : {};
7372
- return /* @__PURE__ */ jsx190(
7264
+ return /* @__PURE__ */ jsx189(
7373
7265
  DropdownMenuRadioItem,
7374
7266
  {
7375
7267
  ...extraProps,
7376
7268
  value,
7377
- children: /* @__PURE__ */ jsx190(
7269
+ children: /* @__PURE__ */ jsx189(
7378
7270
  MenuItemButton,
7379
7271
  {
7380
7272
  ...props,
7381
- rightIcon: /* @__PURE__ */ jsx190(DropdownMenuItemIndicator, { children: indicator })
7273
+ rightIcon: /* @__PURE__ */ jsx189(DropdownMenuItemIndicator, { children: indicator })
7382
7274
  }
7383
7275
  )
7384
7276
  }
@@ -7390,9 +7282,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
7390
7282
  import {
7391
7283
  DropdownMenuCheckboxItem
7392
7284
  } from "@radix-ui/react-dropdown-menu";
7393
- import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7285
+ import { jsx as jsx190, jsxs as jsxs15 } from "react/jsx-runtime";
7394
7286
  var CheckboxIndicator2 = ({ checked, ...props }) => {
7395
- return checked ? /* @__PURE__ */ jsxs16(
7287
+ return checked ? /* @__PURE__ */ jsxs15(
7396
7288
  "svg",
7397
7289
  {
7398
7290
  ...props,
@@ -7402,21 +7294,21 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7402
7294
  width: "16",
7403
7295
  xmlns: "http://www.w3.org/2000/svg",
7404
7296
  children: [
7405
- /* @__PURE__ */ jsx191(
7297
+ /* @__PURE__ */ jsx190(
7406
7298
  "path",
7407
7299
  {
7408
7300
  d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z",
7409
7301
  fill: "#2949E5"
7410
7302
  }
7411
7303
  ),
7412
- /* @__PURE__ */ jsx191(
7304
+ /* @__PURE__ */ jsx190(
7413
7305
  "path",
7414
7306
  {
7415
7307
  d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z",
7416
7308
  stroke: "#D9D9DE"
7417
7309
  }
7418
7310
  ),
7419
- /* @__PURE__ */ jsx191(
7311
+ /* @__PURE__ */ jsx190(
7420
7312
  "path",
7421
7313
  {
7422
7314
  d: "M6.47275 11.1931L3.3775 8.08009C3.19155 7.89306 3.19155 7.58982 3.3775 7.40278L4.05092 6.72547C4.23688 6.53842 4.53841 6.53842 4.72436 6.72547L6.80947 8.82254L11.2755 4.33082C11.4615 4.1438 11.763 4.1438 11.949 4.33082L12.6224 5.00813C12.8083 5.19516 12.8083 5.4984 12.6224 5.68544L7.14618 11.1931C6.96021 11.3802 6.6587 11.3802 6.47275 11.1931Z",
@@ -7425,7 +7317,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7425
7317
  )
7426
7318
  ]
7427
7319
  }
7428
- ) : /* @__PURE__ */ jsxs16(
7320
+ ) : /* @__PURE__ */ jsxs15(
7429
7321
  "svg",
7430
7322
  {
7431
7323
  ...props,
@@ -7435,14 +7327,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7435
7327
  width: "16",
7436
7328
  xmlns: "http://www.w3.org/2000/svg",
7437
7329
  children: [
7438
- /* @__PURE__ */ jsx191(
7330
+ /* @__PURE__ */ jsx190(
7439
7331
  "path",
7440
7332
  {
7441
7333
  d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z",
7442
7334
  fill: "#FCFCFD"
7443
7335
  }
7444
7336
  ),
7445
- /* @__PURE__ */ jsx191(
7337
+ /* @__PURE__ */ jsx190(
7446
7338
  "path",
7447
7339
  {
7448
7340
  d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z",
@@ -7459,17 +7351,17 @@ var CheckboxMenuItem = ({
7459
7351
  onCheckedChange,
7460
7352
  ...props
7461
7353
  }) => {
7462
- return /* @__PURE__ */ jsx191(
7354
+ return /* @__PURE__ */ jsx190(
7463
7355
  DropdownMenuCheckboxItem,
7464
7356
  {
7465
7357
  checked,
7466
7358
  onCheckedChange,
7467
7359
  onSelect,
7468
- children: /* @__PURE__ */ jsx191(
7360
+ children: /* @__PURE__ */ jsx190(
7469
7361
  MenuItemButton,
7470
7362
  {
7471
7363
  ...props,
7472
- leftIcon: /* @__PURE__ */ jsx191(CheckboxIndicator2, { checked })
7364
+ leftIcon: /* @__PURE__ */ jsx190(CheckboxIndicator2, { checked })
7473
7365
  }
7474
7366
  )
7475
7367
  }
@@ -7477,17 +7369,300 @@ var CheckboxMenuItem = ({
7477
7369
  };
7478
7370
  CheckboxMenuItem.displayName = "CheckboxMenuItem";
7479
7371
 
7372
+ // src/components/Modal/Modal.tsx
7373
+ import { forwardRef as forwardRef13 } from "react";
7374
+ import styled31 from "styled-components";
7375
+ import {
7376
+ Root as DialogRoot,
7377
+ Content as DialogContent,
7378
+ Portal as DialogPortal
7379
+ } from "@radix-ui/react-dialog";
7380
+ import { isNotNil as isNotNil12 } from "@wistia/type-guards";
7381
+
7382
+ // src/components/Modal/ModalHeader.tsx
7383
+ import styled29 from "styled-components";
7384
+ import { Title as DialogTitle } from "@radix-ui/react-dialog";
7385
+
7386
+ // src/components/Modal/ModalCloseButton.tsx
7387
+ import styled27 from "styled-components";
7388
+ import { Close as DialogClose } from "@radix-ui/react-dialog";
7389
+ import { jsx as jsx191 } from "react/jsx-runtime";
7390
+ var CloseButton = styled27(DialogClose)`
7391
+ align-self: start;
7392
+ `;
7393
+ var ModalCloseButton = () => {
7394
+ return /* @__PURE__ */ jsx191(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx191(
7395
+ IconButton,
7396
+ {
7397
+ disableTooltip: true,
7398
+ label: "Dismiss modal",
7399
+ size: "sm",
7400
+ variant: "ghost",
7401
+ children: /* @__PURE__ */ jsx191(Icon, { type: "close" })
7402
+ }
7403
+ ) });
7404
+ };
7405
+
7406
+ // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7407
+ import styled28 from "styled-components";
7408
+ import { isNotNil as isNotNil10 } from "@wistia/type-guards";
7409
+ import { jsx as jsx192 } from "react/jsx-runtime";
7410
+ var VisuallyHidden = styled28.div({ ...visuallyHiddenStyle });
7411
+ var VisuallyHiddenButFocusable = styled28.div({
7412
+ "&:not(:focus-within)": visuallyHiddenStyle
7413
+ });
7414
+ var ScreenReaderOnly = ({
7415
+ text,
7416
+ children,
7417
+ focusable = false,
7418
+ ...otherProps
7419
+ }) => {
7420
+ const accessibleText = isNotNil10(text) ? text : children;
7421
+ if (focusable) {
7422
+ return /* @__PURE__ */ jsx192(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7423
+ }
7424
+ return /* @__PURE__ */ jsx192(VisuallyHidden, { ...otherProps, children: accessibleText });
7425
+ };
7426
+ ScreenReaderOnly.displayName = "ScreenReaderOnly";
7427
+
7428
+ // src/components/Modal/ModalHeader.tsx
7429
+ import { jsx as jsx193, jsxs as jsxs16 } from "react/jsx-runtime";
7430
+ var Header = styled29.header`
7431
+ display: flex;
7432
+ order: 1;
7433
+ gap: var(--wui-space-01);
7434
+ margin-bottom: var(--wui-space-03);
7435
+ justify-content: space-between;
7436
+
7437
+ /* DialogTitle creates an h2 element which inherits some margin */
7438
+ h2 {
7439
+ margin-top: 0;
7440
+ }
7441
+ `;
7442
+ var Title = styled29(DialogTitle)`
7443
+ font-family: var(--wui-typography-heading-2-family);
7444
+ line-height: var(--wui-typography-heading-2-line-height);
7445
+ font-size: var(--wui-typography-heading-2-size);
7446
+ font-weight: var(--wui-typography-heading-2-weight);
7447
+ `;
7448
+ var ModalHeader = ({
7449
+ title,
7450
+ hideTitle,
7451
+ hideCloseButton
7452
+ }) => {
7453
+ const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
7454
+ return /* @__PURE__ */ jsxs16(Header, { children: [
7455
+ /* @__PURE__ */ jsx193(TitleWrapper, { children: title }),
7456
+ hideCloseButton ? null : /* @__PURE__ */ jsx193(ModalCloseButton, {})
7457
+ ] });
7458
+ };
7459
+
7460
+ // src/private/components/Backdrop/Backdrop.tsx
7461
+ import { forwardRef as forwardRef12 } from "react";
7462
+ import styled30 from "styled-components";
7463
+ import { jsx as jsx194 } from "react/jsx-runtime";
7464
+ var backdropAnimationDuration = 150;
7465
+ var alignVerticalMap = {
7466
+ stretch: "normal",
7467
+ top: "start",
7468
+ center: "center",
7469
+ bottom: "end"
7470
+ };
7471
+ var alignHorizontalMap = {
7472
+ left: "start",
7473
+ center: "center",
7474
+ right: "end"
7475
+ };
7476
+ var BackdropComponent = styled30.div`
7477
+ align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
7478
+ animation-name: backdropShow;
7479
+ animation-duration: ${() => `${backdropAnimationDuration}ms`};
7480
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
7481
+ background: var(--wui-color-backdrop);
7482
+ display: flex;
7483
+ inset: 0;
7484
+ justify-content: ${({ $alignHorizontal }) => alignHorizontalMap[$alignHorizontal]};
7485
+ overflow-y: auto;
7486
+ position: fixed;
7487
+ z-index: var(--wui-zindex-backdrop);
7488
+
7489
+ @keyframes backdropShow {
7490
+ from {
7491
+ opacity: 0;
7492
+ }
7493
+
7494
+ to {
7495
+ opacity: 1;
7496
+ }
7497
+ }
7498
+ `;
7499
+ var Backdrop = forwardRef12(
7500
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx194(
7501
+ BackdropComponent,
7502
+ {
7503
+ ref,
7504
+ $alignHorizontal: alignHorizontal,
7505
+ $alignVertical: alignVertical,
7506
+ ...otherProps,
7507
+ children
7508
+ }
7509
+ )
7510
+ );
7511
+ Backdrop.displayName = "Backdrop";
7512
+
7513
+ // src/private/hooks/useFocusRestore/useFocusRestore.ts
7514
+ import { useRef as useRef5, useEffect as useEffect2 } from "react";
7515
+ import { isNotNil as isNotNil11 } from "@wistia/type-guards";
7516
+ var useFocusRestore = () => {
7517
+ const previouslyFocusedRef = useRef5(null);
7518
+ useEffect2(() => {
7519
+ previouslyFocusedRef.current = document.activeElement;
7520
+ }, []);
7521
+ useEffect2(() => {
7522
+ return () => {
7523
+ if (isNotNil11(previouslyFocusedRef.current)) {
7524
+ setTimeout(() => {
7525
+ previouslyFocusedRef.current?.focus();
7526
+ }, 0);
7527
+ }
7528
+ };
7529
+ }, []);
7530
+ };
7531
+
7532
+ // src/components/Modal/Modal.tsx
7533
+ import { jsx as jsx195, jsxs as jsxs17 } from "react/jsx-runtime";
7534
+ var StyledModalContent = styled31(DialogContent)`
7535
+ background-color: var(--wui-color-bg-app);
7536
+ box-sizing: border-box;
7537
+ display: flex;
7538
+ flex-direction: column;
7539
+ height: 100vh;
7540
+ left: 0;
7541
+ overflow: auto;
7542
+ padding: var(--wui-space-05);
7543
+ position: fixed;
7544
+ top: 0;
7545
+ width: 100vw;
7546
+ z-index: var(--wui-zindex-modal);
7547
+
7548
+ ${mq.smAndUp} {
7549
+ animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
7550
+ border-radius: var(--wui-border-radius-03);
7551
+ left: 50%;
7552
+ margin: var(--wui-space-02);
7553
+ height: ${({ $fullHeight }) => $fullHeight ? "min-content" : "auto"};
7554
+ max-height: 90vh;
7555
+ ${({ $fullHeight }) => $fullHeight ? "min-height: calc(100vh - 48px);" : ""}
7556
+ max-width: 90vw;
7557
+ top: 50%;
7558
+ transform: translate(-50%, -50%);
7559
+ min-width: ${({ $width }) => $width ?? "80vw"};
7560
+ }
7561
+
7562
+ @keyframes contentShow {
7563
+ from {
7564
+ opacity: 0;
7565
+ transform: translate(-50%, -48%) scale(0.96);
7566
+ }
7567
+
7568
+ to {
7569
+ opacity: 1;
7570
+ transform: translate(-50%, -50%) scale(1);
7571
+ }
7572
+ }
7573
+ `;
7574
+ var ModalContent = forwardRef13(
7575
+ ({ fullHeight, width, children, ...otherProps }, ref) => {
7576
+ useFocusRestore();
7577
+ return /* @__PURE__ */ jsx195(
7578
+ StyledModalContent,
7579
+ {
7580
+ ref,
7581
+ $fullHeight: fullHeight,
7582
+ $width: width,
7583
+ ...otherProps,
7584
+ children
7585
+ }
7586
+ );
7587
+ }
7588
+ );
7589
+ ModalContent.displayName = "ModalContent";
7590
+ var ModalBody = styled31.div`
7591
+ flex-direction: column;
7592
+ display: flex;
7593
+ order: 2;
7594
+ `;
7595
+ var Modal = forwardRef13(
7596
+ ({
7597
+ children,
7598
+ fullHeight = false,
7599
+ hideCloseButton = false,
7600
+ hideTitle = false,
7601
+ initialFocusRef,
7602
+ isOpen,
7603
+ onRequestClose,
7604
+ title,
7605
+ width,
7606
+ ...props
7607
+ }, ref) => {
7608
+ return /* @__PURE__ */ jsx195(
7609
+ DialogRoot,
7610
+ {
7611
+ onOpenChange: (open2) => {
7612
+ if (!open2 && isNotNil12(onRequestClose)) {
7613
+ onRequestClose();
7614
+ }
7615
+ },
7616
+ open: isOpen,
7617
+ children: /* @__PURE__ */ jsxs17(DialogPortal, { children: [
7618
+ /* @__PURE__ */ jsx195(Backdrop, {}),
7619
+ /* @__PURE__ */ jsxs17(
7620
+ ModalContent,
7621
+ {
7622
+ ref,
7623
+ "aria-describedby": void 0,
7624
+ fullHeight,
7625
+ onOpenAutoFocus: (event) => {
7626
+ if (isNotNil12(initialFocusRef) && initialFocusRef.current) {
7627
+ event.preventDefault();
7628
+ requestAnimationFrame(() => {
7629
+ initialFocusRef.current?.focus();
7630
+ });
7631
+ }
7632
+ },
7633
+ width,
7634
+ ...props,
7635
+ children: [
7636
+ /* @__PURE__ */ jsx195(ModalBody, { children }),
7637
+ /* @__PURE__ */ jsx195(
7638
+ ModalHeader,
7639
+ {
7640
+ hideCloseButton,
7641
+ hideTitle,
7642
+ title
7643
+ }
7644
+ )
7645
+ ]
7646
+ }
7647
+ )
7648
+ ] })
7649
+ }
7650
+ );
7651
+ }
7652
+ );
7653
+ Modal.displayName = "Modal";
7654
+
7480
7655
  // src/components/Radio/Radio.tsx
7481
- import { forwardRef as forwardRef12, useId as useId3 } from "react";
7482
- import styled28, { css as css18 } from "styled-components";
7656
+ import { forwardRef as forwardRef14, useId as useId3 } from "react";
7657
+ import styled32, { css as css18 } from "styled-components";
7483
7658
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
7484
- import { jsx as jsx192, jsxs as jsxs17 } from "react/jsx-runtime";
7485
- var StyledLabelWrapper2 = styled28.div`
7659
+ import { jsx as jsx196, jsxs as jsxs18 } from "react/jsx-runtime";
7660
+ var StyledLabelWrapper2 = styled32.div`
7486
7661
  display: flex;
7487
7662
  flex-direction: column;
7488
7663
  padding-left: var(--wui-space-02);
7489
7664
  `;
7490
- var StyledRadio = styled28.input`
7665
+ var StyledRadio = styled32.input`
7491
7666
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
7492
7667
  appearance: none;
7493
7668
  margin: 0;
@@ -7529,7 +7704,7 @@ var defaultHoverStyle = css18`
7529
7704
  /* TODO Lamp to design hover state */
7530
7705
  cursor: pointer;
7531
7706
  `;
7532
- var StyledRadioWrapper = styled28.div`
7707
+ var StyledRadioWrapper = styled32.div`
7533
7708
  align-items: baseline;
7534
7709
  border: 1px solid transparent;
7535
7710
  border-radius: 4px;
@@ -7552,7 +7727,7 @@ var StyledRadioWrapper = styled28.div`
7552
7727
 
7553
7728
  ${({ disabled }) => disabled && disabledStyle2};
7554
7729
  `;
7555
- var Radio = forwardRef12(
7730
+ var Radio = forwardRef14(
7556
7731
  ({
7557
7732
  checked,
7558
7733
  disabled = false,
@@ -7567,13 +7742,13 @@ var Radio = forwardRef12(
7567
7742
  }, ref) => {
7568
7743
  const generatedId = useId3();
7569
7744
  const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
7570
- return /* @__PURE__ */ jsxs17(
7745
+ return /* @__PURE__ */ jsxs18(
7571
7746
  StyledRadioWrapper,
7572
7747
  {
7573
7748
  "aria-invalid": otherProps["aria-invalid"],
7574
7749
  disabled,
7575
7750
  children: [
7576
- /* @__PURE__ */ jsx192(
7751
+ /* @__PURE__ */ jsx196(
7577
7752
  StyledRadio,
7578
7753
  {
7579
7754
  ref,
@@ -7588,8 +7763,8 @@ var Radio = forwardRef12(
7588
7763
  ...otherProps
7589
7764
  }
7590
7765
  ),
7591
- /* @__PURE__ */ jsxs17(StyledLabelWrapper2, { children: [
7592
- /* @__PURE__ */ jsx192(
7766
+ /* @__PURE__ */ jsxs18(StyledLabelWrapper2, { children: [
7767
+ /* @__PURE__ */ jsx196(
7593
7768
  Label,
7594
7769
  {
7595
7770
  disabled,
@@ -7598,7 +7773,7 @@ var Radio = forwardRef12(
7598
7773
  children: label
7599
7774
  }
7600
7775
  ),
7601
- /* @__PURE__ */ jsx192(LabelDescription, { children: description })
7776
+ /* @__PURE__ */ jsx196(LabelDescription, { children: description })
7602
7777
  ] })
7603
7778
  ]
7604
7779
  }
@@ -7607,34 +7782,12 @@ var Radio = forwardRef12(
7607
7782
  );
7608
7783
  Radio.displayName = "Radio";
7609
7784
 
7610
- // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7611
- import styled29 from "styled-components";
7612
- import { isNotNil as isNotNil10 } from "@wistia/type-guards";
7613
- import { jsx as jsx193 } from "react/jsx-runtime";
7614
- var VisuallyHidden = styled29.div({ ...visuallyHiddenStyle });
7615
- var VisuallyHiddenButFocusable = styled29.div({
7616
- "&:not(:focus-within)": visuallyHiddenStyle
7617
- });
7618
- var ScreenReaderOnly = ({
7619
- text,
7620
- children,
7621
- focusable = false,
7622
- ...otherProps
7623
- }) => {
7624
- const accessibleText = isNotNil10(text) ? text : children;
7625
- if (focusable) {
7626
- return /* @__PURE__ */ jsx193(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7627
- }
7628
- return /* @__PURE__ */ jsx193(VisuallyHidden, { ...otherProps, children: accessibleText });
7629
- };
7630
- ScreenReaderOnly.displayName = "ScreenReaderOnly";
7631
-
7632
7785
  // src/components/Tag/Tag.tsx
7633
- import { forwardRef as forwardRef13 } from "react";
7634
- import styled30 from "styled-components";
7635
- import { isNil as isNil10, isNotNil as isNotNil11, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
7636
- import { Fragment as Fragment2, jsx as jsx194, jsxs as jsxs18 } from "react/jsx-runtime";
7637
- var TagLabel = styled30.a`
7786
+ import { forwardRef as forwardRef15 } from "react";
7787
+ import styled33 from "styled-components";
7788
+ import { isNil as isNil10, isNotNil as isNotNil13, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
7789
+ import { Fragment as Fragment2, jsx as jsx197, jsxs as jsxs19 } from "react/jsx-runtime";
7790
+ var TagLabel = styled33.a`
7638
7791
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7639
7792
  font-size: var(--wui-typography-label-4-size);
7640
7793
  font-weight: var(--wui-typography-label-4-weight);
@@ -7662,14 +7815,14 @@ var TagLabel = styled30.a`
7662
7815
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
7663
7816
  }
7664
7817
  `;
7665
- var TagDivider = styled30.div`
7818
+ var TagDivider = styled33.div`
7666
7819
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7667
7820
  border-left: 1px solid var(--wui-color-border);
7668
7821
  display: flex;
7669
7822
  height: 14px;
7670
7823
  width: 1px;
7671
7824
  `;
7672
- var StyledRemoveButton = styled30.button`
7825
+ var StyledRemoveButton = styled33.button`
7673
7826
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7674
7827
  all: unset;
7675
7828
  cursor: pointer;
@@ -7697,7 +7850,7 @@ var StyledRemoveButton = styled30.button`
7697
7850
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
7698
7851
  }
7699
7852
  `;
7700
- var StyledTag = styled30.div`
7853
+ var StyledTag = styled33.div`
7701
7854
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7702
7855
  align-items: center;
7703
7856
  background-color: var(--wui-color-bg-surface-secondary);
@@ -7714,39 +7867,39 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
7714
7867
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
7715
7868
  );
7716
7869
  }
7717
- return /* @__PURE__ */ jsxs18(Fragment2, { children: [
7718
- /* @__PURE__ */ jsx194(TagDivider, { $colorScheme: colorScheme }),
7719
- /* @__PURE__ */ jsxs18(
7870
+ return /* @__PURE__ */ jsxs19(Fragment2, { children: [
7871
+ /* @__PURE__ */ jsx197(TagDivider, { $colorScheme: colorScheme }),
7872
+ /* @__PURE__ */ jsxs19(
7720
7873
  StyledRemoveButton,
7721
7874
  {
7722
7875
  $colorScheme: colorScheme,
7723
7876
  onClick: onClickRemove,
7724
7877
  type: "button",
7725
7878
  children: [
7726
- /* @__PURE__ */ jsx194(
7879
+ /* @__PURE__ */ jsx197(
7727
7880
  Icon,
7728
7881
  {
7729
7882
  size: "sm",
7730
7883
  type: "close"
7731
7884
  }
7732
7885
  ),
7733
- /* @__PURE__ */ jsx194(ScreenReaderOnly, { children: onClickRemoveLabel })
7886
+ /* @__PURE__ */ jsx197(ScreenReaderOnly, { children: onClickRemoveLabel })
7734
7887
  ]
7735
7888
  }
7736
7889
  )
7737
7890
  ] });
7738
7891
  };
7739
- var Tag = forwardRef13(
7892
+ var Tag = forwardRef15(
7740
7893
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
7741
- const labelProps = isNotNil11(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
7742
- return /* @__PURE__ */ jsxs18(
7894
+ const labelProps = isNotNil13(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
7895
+ return /* @__PURE__ */ jsxs19(
7743
7896
  StyledTag,
7744
7897
  {
7745
7898
  ref,
7746
7899
  $colorScheme: colorScheme,
7747
7900
  ...otherProps,
7748
7901
  children: [
7749
- /* @__PURE__ */ jsx194(
7902
+ /* @__PURE__ */ jsx197(
7750
7903
  TagLabel,
7751
7904
  {
7752
7905
  ...labelProps,
@@ -7754,7 +7907,7 @@ var Tag = forwardRef13(
7754
7907
  children: label
7755
7908
  }
7756
7909
  ),
7757
- /* @__PURE__ */ jsx194(
7910
+ /* @__PURE__ */ jsx197(
7758
7911
  RemoveButton,
7759
7912
  {
7760
7913
  colorScheme,
@@ -7769,27 +7922,138 @@ var Tag = forwardRef13(
7769
7922
  );
7770
7923
  Tag.displayName = "Tag";
7771
7924
 
7925
+ // src/components/Tooltip/Tooltip.tsx
7926
+ import {
7927
+ Root,
7928
+ Content,
7929
+ Trigger,
7930
+ Portal,
7931
+ Arrow
7932
+ } from "@radix-ui/react-tooltip";
7933
+ import styled34, { css as css19 } from "styled-components";
7934
+ import { jsx as jsx198, jsxs as jsxs20 } from "react/jsx-runtime";
7935
+ var CompactTooltipStyles = css19`
7936
+ --tooltip-font-size: var(--wui-typography-label-4-size);
7937
+ --tooltip-line-height: var(--wui-typography-label-4-line-height);
7938
+ --tooltip-font-weight: var(--wui-typography-label-4-weight);
7939
+ --tooltip-horizontal-padding: var(--wui-space-02);
7940
+ --tooltip-vertical-padding: var(--wui-space-03);
7941
+ `;
7942
+ var StyledContent = styled34(Content)`
7943
+ --tooltip-font-family: var(--wui-typography-family-default);
7944
+ --tooltip-border-radius: var(--wui-border-radius-05);
7945
+ --tooltip-bg: var(--wui-color-bg-tooltip);
7946
+ --tooltip-color: var(--wui-color-text-on-fill);
7947
+ --tooltip-font-size: var(--wui-typography-label-3-size);
7948
+ --tooltip-line-height: var(--wui-typography-label-3-line-height);
7949
+ --tooltip-font-weight: var(--wui-typography-label-3-weight);
7950
+ --tooltip-horizontal-padding: var(--wui-space-03);
7951
+ --tooltip-vertical-padding: var(--wui-space-03);
7952
+
7953
+ ${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
7954
+
7955
+ font-family: var(--tooltip-font-family);
7956
+ font-size: var(--tooltip-font-size);
7957
+ border-radius: var(--tooltip-border-radius);
7958
+ padding: var(--tooltip-horizontal-padding) var(--tooltip-vertical-padding);
7959
+ background-color: var(--tooltip-bg);
7960
+ color: var(--tooltip-color);
7961
+ user-select: none;
7962
+ animation-duration: 400ms;
7963
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
7964
+ will-change: transform, opacity;
7965
+ max-width: 30em;
7966
+
7967
+ &[data-state='delayed-open'][data-side='top'] {
7968
+ animation-name: slideDownAndFade;
7969
+ }
7970
+
7971
+ &[data-state='delayed-open'][data-side='right'] {
7972
+ animation-name: slideLeftAndFade;
7973
+ }
7974
+
7975
+ &[data-state='delayed-open'][data-side='bottom'] {
7976
+ animation-name: slideUpAndFade;
7977
+ }
7978
+
7979
+ &[data-state='delayed-open'][data-side='left'] {
7980
+ animation-name: slideRightAndFade;
7981
+ }
7982
+ `;
7983
+ var VISUAL_OFFSET = 6;
7984
+ var Tooltip = ({
7985
+ delay = 700,
7986
+ direction = "top",
7987
+ content,
7988
+ children,
7989
+ forceOpen,
7990
+ compact = false,
7991
+ hideArrow = false
7992
+ }) => {
7993
+ const rootProps = {};
7994
+ if (content === "" || content === null) {
7995
+ rootProps.open = false;
7996
+ }
7997
+ if (forceOpen === true) {
7998
+ rootProps.open = true;
7999
+ }
8000
+ return /* @__PURE__ */ jsxs20(
8001
+ Root,
8002
+ {
8003
+ delayDuration: delay,
8004
+ ...rootProps,
8005
+ children: [
8006
+ /* @__PURE__ */ jsx198(Trigger, { asChild: true, children }),
8007
+ /* @__PURE__ */ jsx198(Portal, { children: /* @__PURE__ */ jsxs20(
8008
+ StyledContent,
8009
+ {
8010
+ $compact: compact,
8011
+ side: direction,
8012
+ sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
8013
+ children: [
8014
+ content,
8015
+ !hideArrow ? /* @__PURE__ */ jsx198(Arrow, { asChild: true, children: /* @__PURE__ */ jsx198(
8016
+ "svg",
8017
+ {
8018
+ fill: "var(--tooltip-bg)",
8019
+ height: "8",
8020
+ style: { transform: "translateY(-2px)" },
8021
+ viewBox: "0 0 12 8",
8022
+ width: "12",
8023
+ xmlns: "http://www.w3.org/2000/svg",
8024
+ children: /* @__PURE__ */ jsx198("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" })
8025
+ }
8026
+ ) }) : null
8027
+ ]
8028
+ }
8029
+ ) })
8030
+ ]
8031
+ }
8032
+ );
8033
+ };
8034
+ Tooltip.displayName = "Tooltip";
8035
+
7772
8036
  // src/components/WistiaLogo/WistiaLogo.tsx
7773
- import styled31 from "styled-components";
7774
- import { isNotNil as isNotNil12 } from "@wistia/type-guards";
7775
- import { jsx as jsx195, jsxs as jsxs19 } from "react/jsx-runtime";
8037
+ import styled35 from "styled-components";
8038
+ import { isNotNil as isNotNil14 } from "@wistia/type-guards";
8039
+ import { jsx as jsx199, jsxs as jsxs21 } from "react/jsx-runtime";
7776
8040
  var renderBrandmark = (brandmarkColor, iconOnly) => {
7777
8041
  if (iconOnly) {
7778
- return /* @__PURE__ */ jsx195(
8042
+ return /* @__PURE__ */ jsx199(
7779
8043
  "g",
7780
8044
  {
7781
8045
  "data-testid": "ui-wistia-logo-brandmark",
7782
8046
  fill: brandmarkColor,
7783
- children: /* @__PURE__ */ jsx195("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" })
8047
+ children: /* @__PURE__ */ jsx199("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" })
7784
8048
  }
7785
8049
  );
7786
8050
  }
7787
- return /* @__PURE__ */ jsx195(
8051
+ return /* @__PURE__ */ jsx199(
7788
8052
  "g",
7789
8053
  {
7790
8054
  "data-testid": "ui-wistia-logo-brandmark",
7791
8055
  fill: brandmarkColor,
7792
- children: /* @__PURE__ */ jsx195("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" })
8056
+ children: /* @__PURE__ */ jsx199("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" })
7793
8057
  }
7794
8058
  );
7795
8059
  };
@@ -7797,12 +8061,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
7797
8061
  if (iconOnly) {
7798
8062
  return null;
7799
8063
  }
7800
- return /* @__PURE__ */ jsx195(
8064
+ return /* @__PURE__ */ jsx199(
7801
8065
  "g",
7802
8066
  {
7803
8067
  "data-testid": "ui-wistia-logo-logotype",
7804
8068
  fill: logotypeColor,
7805
- children: /* @__PURE__ */ jsx195("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" })
8069
+ children: /* @__PURE__ */ jsx199("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" })
7806
8070
  }
7807
8071
  );
7808
8072
  };
@@ -7812,7 +8076,7 @@ var computedViewBox = (iconOnly) => {
7812
8076
  }
7813
8077
  return "0 0 144 31.47";
7814
8078
  };
7815
- var WistiaLogoComponent = styled31.svg`
8079
+ var WistiaLogoComponent = styled35.svg`
7816
8080
  height: ${({ height }) => `${height}px`};
7817
8081
 
7818
8082
  /* ensure it will always fit on mobile */
@@ -7854,7 +8118,7 @@ var WistiaLogo = ({
7854
8118
  };
7855
8119
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
7856
8120
  const logotypeColor = VARIANT_COLORS[variant].logotype;
7857
- const Logo = /* @__PURE__ */ jsxs19(
8121
+ const Logo = /* @__PURE__ */ jsxs21(
7858
8122
  WistiaLogoComponent,
7859
8123
  {
7860
8124
  $hoverColor: hoverColor,
@@ -7864,23 +8128,23 @@ var WistiaLogo = ({
7864
8128
  xmlns: "http://www.w3.org/2000/svg",
7865
8129
  ...otherProps,
7866
8130
  children: [
7867
- /* @__PURE__ */ jsx195("title", { children: title }),
7868
- isNotNil12(description) ? /* @__PURE__ */ jsx195("desc", { children: description }) : null,
8131
+ /* @__PURE__ */ jsx199("title", { children: title }),
8132
+ isNotNil14(description) ? /* @__PURE__ */ jsx199("desc", { children: description }) : null,
7869
8133
  renderBrandmark(brandmarkColor, iconOnly),
7870
8134
  renderLogotype(logotypeColor, iconOnly)
7871
8135
  ]
7872
8136
  }
7873
8137
  );
7874
- return href !== void 0 ? /* @__PURE__ */ jsx195("a", { href, children: Logo }) : Logo;
8138
+ return href !== void 0 ? /* @__PURE__ */ jsx199("a", { href, children: Logo }) : Logo;
7875
8139
  };
7876
8140
  WistiaLogo.displayName = "WistiaLogo";
7877
8141
 
7878
8142
  // src/components/Input/Input.tsx
7879
- import { forwardRef as forwardRef14, cloneElement as cloneElement5 } from "react";
7880
- import styled32, { css as css19 } from "styled-components";
7881
- import { isNil as isNil11, isNotNil as isNotNil13 } from "@wistia/type-guards";
7882
- import { jsx as jsx196, jsxs as jsxs20 } from "react/jsx-runtime";
7883
- var inputStyles = css19`
8143
+ import { forwardRef as forwardRef16, cloneElement as cloneElement5 } from "react";
8144
+ import styled36, { css as css20 } from "styled-components";
8145
+ import { isNil as isNil11, isNotNil as isNotNil15 } from "@wistia/type-guards";
8146
+ import { jsx as jsx200, jsxs as jsxs22 } from "react/jsx-runtime";
8147
+ var inputStyles = css20`
7884
8148
  --wui-input-color-bg: var(--wui-color-bg-surface);
7885
8149
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
7886
8150
  --wui-input-color-border: var(--wui-color-border);
@@ -7921,7 +8185,7 @@ var inputStyles = css19`
7921
8185
  }
7922
8186
  }
7923
8187
  `;
7924
- var StyledInputContainer = styled32.div`
8188
+ var StyledInputContainer = styled36.div`
7925
8189
  display: inline-flex;
7926
8190
  position: relative;
7927
8191
  ${inputStyles};
@@ -7965,7 +8229,7 @@ var StyledInputContainer = styled32.div`
7965
8229
  padding-right: 32px;
7966
8230
  }
7967
8231
  `;
7968
- var Input = forwardRef14(
8232
+ var Input = forwardRef16(
7969
8233
  ({
7970
8234
  fullWidth = false,
7971
8235
  monospace = false,
@@ -7976,35 +8240,35 @@ var Input = forwardRef14(
7976
8240
  }, ref) => {
7977
8241
  let leftIconToDisplay = leftIcon;
7978
8242
  if (isNil11(leftIcon) && type === "search") {
7979
- leftIconToDisplay = /* @__PURE__ */ jsx196(Icon, { type: "search" });
8243
+ leftIconToDisplay = /* @__PURE__ */ jsx200(Icon, { type: "search" });
7980
8244
  }
7981
- if (isNotNil13(leftIconToDisplay)) {
8245
+ if (isNotNil15(leftIconToDisplay)) {
7982
8246
  leftIconToDisplay = cloneElement5(leftIconToDisplay, {
7983
8247
  size: "md",
7984
8248
  className: "wui-input-left-icon"
7985
8249
  });
7986
8250
  }
7987
8251
  let rightIconToDisplay = rightIcon;
7988
- if (isNotNil13(rightIconToDisplay)) {
8252
+ if (isNotNil15(rightIconToDisplay)) {
7989
8253
  rightIconToDisplay = cloneElement5(rightIconToDisplay, {
7990
8254
  size: "md",
7991
8255
  className: "wui-input-right-icon"
7992
8256
  });
7993
8257
  }
7994
- return /* @__PURE__ */ jsxs20(
8258
+ return /* @__PURE__ */ jsxs22(
7995
8259
  StyledInputContainer,
7996
8260
  {
7997
8261
  $fullWidth: fullWidth,
7998
8262
  $monospace: monospace,
7999
8263
  children: [
8000
8264
  leftIconToDisplay ?? null,
8001
- type === "multiline" ? /* @__PURE__ */ jsx196(
8265
+ type === "multiline" ? /* @__PURE__ */ jsx200(
8002
8266
  "textarea",
8003
8267
  {
8004
8268
  ...props,
8005
8269
  ref
8006
8270
  }
8007
- ) : /* @__PURE__ */ jsx196(
8271
+ ) : /* @__PURE__ */ jsx200(
8008
8272
  "input",
8009
8273
  {
8010
8274
  ...props,
@@ -8047,6 +8311,7 @@ export {
8047
8311
  MenuItemLabel,
8048
8312
  MenuLabel,
8049
8313
  MenuRadioGroup,
8314
+ Modal,
8050
8315
  Radio,
8051
8316
  RadioGroup,
8052
8317
  RadioMenuItem,