@wistia/ui 0.0.24 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.0.24
3
+ * @license @wistia/ui v0.1.0
4
4
  *
5
- * Copyright (c) 2024-2024, Wistia, Inc. and its affiliates.
5
+ * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
7
7
  * This source code is unlicensed, all rights reserved.
8
8
  */
@@ -37,8 +37,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
37
37
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
38
 
39
39
  // src/index.ts
40
- var src_exports = {};
41
- __export(src_exports, {
40
+ var index_exports = {};
41
+ __export(index_exports, {
42
42
  Avatar: () => Avatar,
43
43
  Badge: () => Badge,
44
44
  Box: () => Box,
@@ -57,6 +57,7 @@ __export(src_exports, {
57
57
  Heading: () => Heading,
58
58
  Icon: () => Icon,
59
59
  IconButton: () => IconButton,
60
+ Input: () => Input,
60
61
  Label: () => Label,
61
62
  Link: () => Link,
62
63
  Menu: () => Menu,
@@ -89,13 +90,13 @@ __export(src_exports, {
89
90
  useToast: () => useToast,
90
91
  useWindowSize: () => useWindowSize
91
92
  });
92
- module.exports = __toCommonJS(src_exports);
93
+ module.exports = __toCommonJS(index_exports);
93
94
 
94
95
  // src/providers/UIProvider/UIProvider.tsx
95
96
  var import_react_tooltip = require("@radix-ui/react-tooltip");
96
97
 
97
98
  // src/css/GlobalStyle.tsx
98
- var import_styled_components9 = require("styled-components");
99
+ var import_styled_components10 = require("styled-components");
99
100
 
100
101
  // src/css/resetCss.tsx
101
102
  var import_styled_components = require("styled-components");
@@ -231,7 +232,7 @@ var globalStyleAdjustmentsCss = import_styled_components2.css`
231
232
  `;
232
233
 
233
234
  // src/css/designTokens/index.tsx
234
- var import_styled_components8 = require("styled-components");
235
+ var import_styled_components9 = require("styled-components");
235
236
 
236
237
  // src/css/designTokens/colorGlobal.tsx
237
238
  var import_styled_components3 = require("styled-components");
@@ -1197,7 +1198,7 @@ var colorAliasTokens = import_styled_components4.css`
1197
1198
  --wui-color-bg-fill-white: #ffffff;
1198
1199
  --wui-color-focus-color: var(--wui-blue-9);
1199
1200
  --wui-color-notification-pill-color: var(--wui-pink-9);
1200
- --wui-color-overlay: var(--wui-gray-alpha-9);
1201
+ --wui-color-backdrop: var(--wui-gray-alpha-9);
1201
1202
  --wui-color-segmented-control-checked-background: var(--wui-bg-app);
1202
1203
  --wui-color-text-on-fill-white-selected: var(--wui-blue-9);
1203
1204
  --wui-color-bg-tooltip: #242528;
@@ -1359,8 +1360,15 @@ var typographyTokens = import_styled_components7.css`
1359
1360
  --wui-typography-label-4-weight: var(--wui-typography-weight-label);
1360
1361
  `;
1361
1362
 
1363
+ // src/css/designTokens/zIndex.tsx
1364
+ var import_styled_components8 = require("styled-components");
1365
+ var zIndexTokens = import_styled_components8.css`
1366
+ --wui-zindex-backdrop: 100;
1367
+ --wui-zindex-menu: 500;
1368
+ `;
1369
+
1362
1370
  // src/css/designTokens/index.tsx
1363
- var colorTokens = import_styled_components8.css`
1371
+ var colorTokens = import_styled_components9.css`
1364
1372
  ${lightGlobalTokens}
1365
1373
  /* Dark mode is disabled until we have a more robust plan for supporting it */
1366
1374
 
@@ -1369,17 +1377,18 @@ var colorTokens = import_styled_components8.css`
1369
1377
  } */
1370
1378
  ${colorAliasTokens}
1371
1379
  `;
1372
- var designTokens = import_styled_components8.css`
1380
+ var designTokens = import_styled_components9.css`
1373
1381
  :root {
1374
1382
  ${colorTokens}
1375
1383
  ${spacingTokens}
1376
1384
  ${borderRadiusTokens}
1377
1385
  ${typographyTokens}
1386
+ ${zIndexTokens}
1378
1387
  }
1379
1388
  `;
1380
1389
 
1381
1390
  // src/css/GlobalStyle.tsx
1382
- var GlobalStyle = import_styled_components9.createGlobalStyle`
1391
+ var GlobalStyle = import_styled_components10.createGlobalStyle`
1383
1392
  ${resetCss}
1384
1393
  ${globalStyleAdjustmentsCss}
1385
1394
  ${designTokens}
@@ -1612,14 +1621,14 @@ var import_sonner2 = require("sonner");
1612
1621
 
1613
1622
  // src/private/components/Toast/Toast.tsx
1614
1623
  var import_react4 = require("react");
1615
- var import_styled_components12 = __toESM(require("styled-components"));
1624
+ var import_styled_components13 = __toESM(require("styled-components"));
1616
1625
  var import_type_guards5 = require("@wistia/type-guards");
1617
1626
 
1618
1627
  // src/components/Ellipsis/Ellipsis.tsx
1619
1628
  var import_type_guards4 = require("@wistia/type-guards");
1620
- var import_styled_components10 = __toESM(require("styled-components"));
1629
+ var import_styled_components11 = __toESM(require("styled-components"));
1621
1630
  var import_jsx_runtime4 = require("react/jsx-runtime");
1622
- var ellipsisStyle = import_styled_components10.css`
1631
+ var ellipsisStyle = import_styled_components11.css`
1623
1632
  overflow: hidden;
1624
1633
  text-overflow: ellipsis;
1625
1634
  white-space: nowrap;
@@ -1642,14 +1651,14 @@ var ellipsisStyle = import_styled_components10.css`
1642
1651
  }
1643
1652
  }
1644
1653
  `;
1645
- var ellipsisFlexParentStyle = import_styled_components10.css`
1654
+ var ellipsisFlexParentStyle = import_styled_components11.css`
1646
1655
  min-width: 0;
1647
1656
  `;
1648
- var EllipsisComponent = import_styled_components10.default.div`
1657
+ var EllipsisComponent = import_styled_components11.default.div`
1649
1658
  ${ellipsisStyle};
1650
1659
  ${({ $lines }) => {
1651
1660
  if ((0, import_type_guards4.isNotNil)($lines)) {
1652
- return import_styled_components10.css`
1661
+ return import_styled_components11.css`
1653
1662
  -webkit-box-orient: vertical;
1654
1663
  -webkit-line-clamp: ${$lines};
1655
1664
  display: -webkit-box;
@@ -1670,7 +1679,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
1670
1679
  Ellipsis.displayName = "Ellipsis";
1671
1680
 
1672
1681
  // src/private/helpers/getColorScheme/getColorScheme.ts
1673
- var import_styled_components11 = require("styled-components");
1682
+ var import_styled_components12 = require("styled-components");
1674
1683
  var colorSchemeSchema = [
1675
1684
  { token: "bg-surface", step: "surface" },
1676
1685
  { token: "bg-surface-hover", step: "3" },
@@ -1697,7 +1706,7 @@ var colorSchemeSchema = [
1697
1706
  { token: "icon-on-fill", step: "contrast" },
1698
1707
  { token: "focus-ring", step: "9" }
1699
1708
  ];
1700
- var defaultScheme = import_styled_components11.css`
1709
+ var defaultScheme = import_styled_components12.css`
1701
1710
  --wui-color-bg-surface: var(--wui-gray-surface);
1702
1711
  --wui-color-bg-surface-hover: var(--wui-gray-3);
1703
1712
  --wui-color-bg-surface-active: var(--wui-gray-4);
@@ -1723,7 +1732,7 @@ var defaultScheme = import_styled_components11.css`
1723
1732
  --wui-color-icon-on-fill: var(--wui-gray-contrast);
1724
1733
  --wui-color-focus-ring: var(--wui-blue-9);
1725
1734
  `;
1726
- var navScheme = import_styled_components11.css`
1735
+ var navScheme = import_styled_components12.css`
1727
1736
  --wui-color-bg-fill-active: var(--wui-blue-5);
1728
1737
  --wui-color-bg-fill-hover: var(--wui-blue-4);
1729
1738
  --wui-color-bg-fill: var(--wui-blue-1);
@@ -1774,7 +1783,7 @@ var getColorScheme = (colorScheme) => {
1774
1783
  if (colorScheme === "default") {
1775
1784
  return defaultScheme;
1776
1785
  }
1777
- return import_styled_components11.css`
1786
+ return import_styled_components12.css`
1778
1787
  ${colorSchemeSchema.map(({ token, step }) => {
1779
1788
  return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
1780
1789
  }).join("")}
@@ -1783,12 +1792,12 @@ var getColorScheme = (colorScheme) => {
1783
1792
 
1784
1793
  // src/private/components/Toast/Toast.tsx
1785
1794
  var import_jsx_runtime5 = require("react/jsx-runtime");
1786
- var Message = (0, import_styled_components12.default)(Ellipsis)`
1795
+ var Message = (0, import_styled_components13.default)(Ellipsis)`
1787
1796
  line-height: var(--wui-typography-label-3-line-height);
1788
1797
  font-size: var(--wui-typography-label-3-size);
1789
1798
  font-weight: var(--wui-typography-label-3-weight);
1790
1799
  `;
1791
- var MessageWrapper = import_styled_components12.default.div`
1800
+ var MessageWrapper = import_styled_components13.default.div`
1792
1801
  display: flex;
1793
1802
  flex-grow: 1;
1794
1803
  flex-shrink: 1;
@@ -1801,13 +1810,13 @@ var MessageWrapper = import_styled_components12.default.div`
1801
1810
  margin-right: var(--wui-space-02); /* space between icon & message */
1802
1811
  }
1803
1812
  `;
1804
- var ActionWrapper = import_styled_components12.default.div`
1813
+ var ActionWrapper = import_styled_components13.default.div`
1805
1814
  flex-grow: 0;
1806
1815
  flex-shrink: 0;
1807
1816
  flex-basis: auto;
1808
1817
  margin-right: var(--wui-space-03);
1809
1818
  `;
1810
- var StyledToast = import_styled_components12.default.div`
1819
+ var StyledToast = import_styled_components13.default.div`
1811
1820
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
1812
1821
  display: flex;
1813
1822
  align-items: center;
@@ -1904,10 +1913,10 @@ var useAriaLive = () => {
1904
1913
  // src/components/Avatar/Avatar.tsx
1905
1914
  var import_react7 = require("react");
1906
1915
  var import_type_guards8 = require("@wistia/type-guards");
1907
- var import_styled_components14 = __toESM(require("styled-components"));
1916
+ var import_styled_components15 = __toESM(require("styled-components"));
1908
1917
 
1909
1918
  // src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
1910
- var import_styled_components13 = __toESM(require("styled-components"));
1919
+ var import_styled_components14 = __toESM(require("styled-components"));
1911
1920
  var import_jsx_runtime7 = require("react/jsx-runtime");
1912
1921
  var colorSchemeOptions = [
1913
1922
  "inherit",
@@ -1926,7 +1935,7 @@ var colorSchemeOptions = [
1926
1935
  "vendor-marketo",
1927
1936
  "vendor-pardot"
1928
1937
  ];
1929
- var StyledColorSchemeWrapper = import_styled_components13.default.div`
1938
+ var StyledColorSchemeWrapper = import_styled_components14.default.div`
1930
1939
  ${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
1931
1940
  `;
1932
1941
  var ColorSchemeWrapper = ({
@@ -1961,7 +1970,7 @@ var formatNameForDisplay = (name) => {
1961
1970
 
1962
1971
  // src/components/Avatar/Avatar.tsx
1963
1972
  var import_jsx_runtime8 = require("react/jsx-runtime");
1964
- var AvatarImage = import_styled_components14.default.img`
1973
+ var AvatarImage = import_styled_components15.default.img`
1965
1974
  align-items: center;
1966
1975
  background-color: white;
1967
1976
  border-radius: 50%;
@@ -1988,7 +1997,7 @@ var avatarSizeMap = {
1988
1997
  lg: 32
1989
1998
  };
1990
1999
  var fontSizeScaleMultiplier = 0.55;
1991
- var InitialsContainer = import_styled_components14.default.div`
2000
+ var InitialsContainer = import_styled_components15.default.div`
1992
2001
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
1993
2002
  align-items: center;
1994
2003
  background-color: var(--wui-color-bg-fill);
@@ -2010,7 +2019,7 @@ var InitialsContainer = import_styled_components14.default.div`
2010
2019
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
2011
2020
  }
2012
2021
  `;
2013
- var AvatarWrapper = import_styled_components14.default.div`
2022
+ var AvatarWrapper = import_styled_components15.default.div`
2014
2023
  max-height: ${({ $maxHeight }) => $maxHeight}px;
2015
2024
  `;
2016
2025
  var chooseColorScheme = (name) => {
@@ -2074,10 +2083,10 @@ Avatar.displayName = "Avatar";
2074
2083
 
2075
2084
  // src/components/Badge/Badge.tsx
2076
2085
  var import_react8 = require("react");
2077
- var import_styled_components15 = __toESM(require("styled-components"));
2086
+ var import_styled_components16 = __toESM(require("styled-components"));
2078
2087
  var import_type_guards9 = require("@wistia/type-guards");
2079
2088
  var import_jsx_runtime9 = require("react/jsx-runtime");
2080
- var StyledBadge = import_styled_components15.default.div`
2089
+ var StyledBadge = import_styled_components16.default.div`
2081
2090
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
2082
2091
  align-items: center;
2083
2092
  background-color: var(--wui-color-bg-surface-secondary);
@@ -2119,7 +2128,7 @@ Badge.displayName = "Badge";
2119
2128
 
2120
2129
  // src/components/Box/Box.tsx
2121
2130
  var import_react9 = require("react");
2122
- var import_styled_components16 = __toESM(require("styled-components"));
2131
+ var import_styled_components17 = __toESM(require("styled-components"));
2123
2132
  var import_type_guards10 = require("@wistia/type-guards");
2124
2133
  var import_jsx_runtime10 = require("react/jsx-runtime");
2125
2134
  var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
@@ -2163,7 +2172,7 @@ var getFillViewportStyle = (fillViewport) => {
2163
2172
  }
2164
2173
  return void 0;
2165
2174
  };
2166
- var BoxComponent = import_styled_components16.default.div`
2175
+ var BoxComponent = import_styled_components17.default.div`
2167
2176
  align-content: ${({ $alignContent }) => $alignContent};
2168
2177
  align-items: ${({ $alignItems }) => $alignItems};
2169
2178
  align-self: ${({ $alignSelf }) => $alignSelf ?? null};
@@ -2240,12 +2249,12 @@ Box.displayName = "Box";
2240
2249
 
2241
2250
  // src/components/Button/Button.tsx
2242
2251
  var import_react12 = require("react");
2243
- var import_styled_components21 = __toESM(require("styled-components"));
2252
+ var import_styled_components22 = __toESM(require("styled-components"));
2244
2253
  var import_type_guards14 = require("@wistia/type-guards");
2245
2254
 
2246
2255
  // src/css/buttonResetCss.tsx
2247
- var import_styled_components17 = require("styled-components");
2248
- var buttonResetCss = import_styled_components17.css`
2256
+ var import_styled_components18 = require("styled-components");
2257
+ var buttonResetCss = import_styled_components18.css`
2249
2258
  align-items: center;
2250
2259
  background-color: transparent;
2251
2260
  background-image: none;
@@ -2290,8 +2299,8 @@ var buttonResetCss = import_styled_components17.css`
2290
2299
  `;
2291
2300
 
2292
2301
  // src/components/Button/buttonStyles.tsx
2293
- var import_styled_components18 = require("styled-components");
2294
- var buttonSmallStyles = import_styled_components18.css`
2302
+ var import_styled_components19 = require("styled-components");
2303
+ var buttonSmallStyles = import_styled_components19.css`
2295
2304
  --button-padding-vertical: var(--wui-space-01);
2296
2305
  --button-padding-horizontal: var(--wui-space-02);
2297
2306
  --button-label-padding-horizontal: var(--wui-space-01);
@@ -2302,7 +2311,7 @@ var buttonSmallStyles = import_styled_components18.css`
2302
2311
  --button-icon-size: 12px;
2303
2312
  --button-label-gap: 4px;
2304
2313
  `;
2305
- var buttonMediumStyles = import_styled_components18.css`
2314
+ var buttonMediumStyles = import_styled_components19.css`
2306
2315
  --button-padding-vertical: var(--wui-space-02);
2307
2316
  --button-padding-horizontal: var(--wui-space-02);
2308
2317
  --button-label-padding-horizontal: 6px;
@@ -2313,7 +2322,7 @@ var buttonMediumStyles = import_styled_components18.css`
2313
2322
  --button-icon-size: 16px;
2314
2323
  --button-label-gap: 6px;
2315
2324
  `;
2316
- var buttonLargeStyles = import_styled_components18.css`
2325
+ var buttonLargeStyles = import_styled_components19.css`
2317
2326
  --button-padding-vertical: var(--wui-space-02);
2318
2327
  --button-padding-horizontal: var(--wui-space-02);
2319
2328
  --button-label-padding-horizontal: var(--wui-space-02);
@@ -2324,7 +2333,7 @@ var buttonLargeStyles = import_styled_components18.css`
2324
2333
  --button-icon-size: 24px;
2325
2334
  --button-label-gap: 8px;
2326
2335
  `;
2327
- var buttonExtraLargeStyles = import_styled_components18.css`
2336
+ var buttonExtraLargeStyles = import_styled_components19.css`
2328
2337
  --button-padding-vertical: var(--wui-space-03);
2329
2338
  --button-padding-horizontal: var(--wui-space-03);
2330
2339
  --button-label-padding-horizontal: var(--wui-space-02);
@@ -2335,34 +2344,34 @@ var buttonExtraLargeStyles = import_styled_components18.css`
2335
2344
  --button-icon-size: 24px;
2336
2345
  --button-label-gap: 8px;
2337
2346
  `;
2338
- var ghostButtonVariant = import_styled_components18.css`
2347
+ var ghostButtonVariant = import_styled_components19.css`
2339
2348
  --button-color-bg: transparent;
2340
2349
  --button-color-bg-hover: var(--wui-color-bg-surface-hover);
2341
2350
  --button-color-bg-active: var(--wui-color-bg-surface-active);
2342
2351
  --button-color-text: var(--wui-color-text);
2343
2352
  --button-color-icon: var(--wui-color-icon);
2344
2353
  `;
2345
- var outlineButtonVariant = import_styled_components18.css`
2354
+ var outlineButtonVariant = import_styled_components19.css`
2346
2355
  ${ghostButtonVariant};
2347
2356
  --button-color-border: var(--wui-color-border);
2348
2357
 
2349
2358
  box-shadow: 0 0 0 2px var(--button-color-border) inset;
2350
2359
  `;
2351
- var softButtonVariant = import_styled_components18.css`
2360
+ var softButtonVariant = import_styled_components19.css`
2352
2361
  --button-color-bg: var(--wui-color-bg-surface-secondary);
2353
2362
  --button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
2354
2363
  --button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
2355
2364
  --button-color-text: var(--wui-color-text);
2356
2365
  --button-color-icon: var(--wui-color-icon);
2357
2366
  `;
2358
- var solidButtonVariant = import_styled_components18.css`
2367
+ var solidButtonVariant = import_styled_components19.css`
2359
2368
  --button-color-bg: var(--wui-color-bg-fill);
2360
2369
  --button-color-bg-hover: var(--wui-color-bg-fill-hover);
2361
2370
  --button-color-bg-active: var(--wui-color-bg-fill-active);
2362
2371
  --button-color-text: var(--wui-color-text-on-fill);
2363
2372
  --button-color-icon: var(--wui-color-icon-on-fill);
2364
2373
  `;
2365
- var disabledButtonVariant = import_styled_components18.css`
2374
+ var disabledButtonVariant = import_styled_components19.css`
2366
2375
  --button-color-bg: var(--wui-color-bg-surface-disabled);
2367
2376
  --button-color-bg-hover: var(--wui-color-bg-surface-disabled);
2368
2377
  --button-color-bg-active: var(--wui-color-bg-surface-disabled);
@@ -2370,7 +2379,7 @@ var disabledButtonVariant = import_styled_components18.css`
2370
2379
  --button-color-icon: var(--wui-color-icon-disabled);
2371
2380
  --button-color-border: var(--wui-color-border-disabled);
2372
2381
  `;
2373
- var pressedButtonVariant = import_styled_components18.css`
2382
+ var pressedButtonVariant = import_styled_components19.css`
2374
2383
  --button-color-bg: var(--wui-color-bg-surface-selected);
2375
2384
  --button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
2376
2385
  --button-color-bg-active: var(--wui-color-bg-surface-selected-active);
@@ -2378,7 +2387,7 @@ var pressedButtonVariant = import_styled_components18.css`
2378
2387
  --button-color-icon: var(--wui-color-icon-selected);
2379
2388
  --button-color-border: var(--wui-color-border-selected);
2380
2389
  `;
2381
- var buttonBaseStyles = import_styled_components18.css`
2390
+ var buttonBaseStyles = import_styled_components19.css`
2382
2391
  border-radius: var(--wui-border-radius-rounded);
2383
2392
  font-family: var(--button-typography-family);
2384
2393
  font-size: var(--button-typography-size);
@@ -2445,7 +2454,7 @@ var buttonSizeStyles = {
2445
2454
 
2446
2455
  // src/components/Icon/Icon.tsx
2447
2456
  var import_type_guards12 = require("@wistia/type-guards");
2448
- var import_styled_components19 = __toESM(require("styled-components"));
2457
+ var import_styled_components20 = __toESM(require("styled-components"));
2449
2458
 
2450
2459
  // src/components/Icon/icons/AbTestIcon.tsx
2451
2460
  var import_jsx_runtime11 = require("react/jsx-runtime");
@@ -5630,7 +5639,7 @@ var iconSizeMap = {
5630
5639
  xl: "32",
5631
5640
  xxl: "48"
5632
5641
  };
5633
- var StyledIcon = import_styled_components19.default.svg`
5642
+ var StyledIcon = import_styled_components20.default.svg`
5634
5643
  ${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
5635
5644
  `;
5636
5645
  var Icon = ({
@@ -5681,7 +5690,7 @@ Icon.displayName = "Icon";
5681
5690
  // src/components/Link/Link.tsx
5682
5691
  var import_react11 = require("react");
5683
5692
  var import_type_guards13 = require("@wistia/type-guards");
5684
- var import_styled_components20 = __toESM(require("styled-components"));
5693
+ var import_styled_components21 = __toESM(require("styled-components"));
5685
5694
  var import_react_router_dom = require("react-router-dom");
5686
5695
  var import_jsx_runtime165 = require("react/jsx-runtime");
5687
5696
  var generateHref = (href, type, disabled) => {
@@ -5699,7 +5708,7 @@ var generateHref = (href, type, disabled) => {
5699
5708
  };
5700
5709
  var isButton = (props) => (0, import_type_guards13.isUndefined)(props.href);
5701
5710
  var isLink = (props) => (0, import_type_guards13.isNotUndefined)(props.href);
5702
- var StyledLink = import_styled_components20.default.a`
5711
+ var StyledLink = import_styled_components21.default.a`
5703
5712
  ${({ href }) => (0, import_type_guards13.isNil)(href) && buttonResetCss};
5704
5713
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
5705
5714
  cursor: pointer;
@@ -5791,7 +5800,7 @@ Link.displayName = "Link";
5791
5800
  // src/components/Button/Button.tsx
5792
5801
  var import_jsx_runtime166 = require("react/jsx-runtime");
5793
5802
  var isLink2 = (props) => (0, import_type_guards14.isNotUndefined)(props.href);
5794
- var StyledButton = import_styled_components21.default.button`
5803
+ var StyledButton = import_styled_components22.default.button`
5795
5804
  ${buttonResetCss}
5796
5805
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
5797
5806
  ${({ $size }) => buttonSizeStyles[$size]}
@@ -5801,7 +5810,7 @@ var StyledButton = import_styled_components21.default.button`
5801
5810
  position: relative;
5802
5811
  text-align: center;
5803
5812
  `;
5804
- var StyledButtonContent = import_styled_components21.default.div`
5813
+ var StyledButtonContent = import_styled_components22.default.div`
5805
5814
  align-items: center;
5806
5815
  display: inline-flex;
5807
5816
  flex-grow: 1;
@@ -5813,10 +5822,10 @@ var StyledButtonContent = import_styled_components21.default.div`
5813
5822
  ${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
5814
5823
  ${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
5815
5824
  `;
5816
- var StyledButtonContentLabel = import_styled_components21.default.span`
5825
+ var StyledButtonContentLabel = import_styled_components22.default.span`
5817
5826
  flex: 1;
5818
5827
  `;
5819
- var StyledButtonLoading = import_styled_components21.default.div`
5828
+ var StyledButtonLoading = import_styled_components22.default.div`
5820
5829
  position: absolute;
5821
5830
  display: flex;
5822
5831
  `;
@@ -5928,7 +5937,7 @@ var Button = (0, import_react12.forwardRef)(
5928
5937
  Button.displayName = "Button";
5929
5938
 
5930
5939
  // src/components/ButtonGroup/ButtonGroup.tsx
5931
- var import_styled_components22 = __toESM(require("styled-components"));
5940
+ var import_styled_components23 = __toESM(require("styled-components"));
5932
5941
  var import_type_guards15 = require("@wistia/type-guards");
5933
5942
  var import_jsx_runtime167 = require("react/jsx-runtime");
5934
5943
  var getAlignment = (align) => {
@@ -5943,7 +5952,7 @@ var getAlignment = (align) => {
5943
5952
  }
5944
5953
  return "flex-start";
5945
5954
  };
5946
- var ButtonGroupComponent = import_styled_components22.default.div`
5955
+ var ButtonGroupComponent = import_styled_components23.default.div`
5947
5956
  display: flex;
5948
5957
 
5949
5958
  /* this helps ensure that primary buttons appear at the top of the column */
@@ -5987,15 +5996,15 @@ ButtonGroup.displayName = "ButtonGroup";
5987
5996
  // src/components/Checkbox/Checkbox.tsx
5988
5997
  var import_react14 = require("react");
5989
5998
  var import_react_checkbox = require("@radix-ui/react-checkbox");
5990
- var import_styled_components26 = __toESM(require("styled-components"));
5999
+ var import_styled_components27 = __toESM(require("styled-components"));
5991
6000
  var import_type_guards17 = require("@wistia/type-guards");
5992
6001
 
5993
6002
  // src/components/Label/Label.tsx
5994
- var import_styled_components24 = __toESM(require("styled-components"));
6003
+ var import_styled_components25 = __toESM(require("styled-components"));
5995
6004
 
5996
6005
  // src/components/Heading/Heading.tsx
5997
6006
  var import_react13 = require("react");
5998
- var import_styled_components23 = __toESM(require("styled-components"));
6007
+ var import_styled_components24 = __toESM(require("styled-components"));
5999
6008
 
6000
6009
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
6001
6010
  var makePolymorphic = (component) => {
@@ -6004,43 +6013,43 @@ var makePolymorphic = (component) => {
6004
6013
 
6005
6014
  // src/components/Heading/Heading.tsx
6006
6015
  var import_jsx_runtime168 = require("react/jsx-runtime");
6007
- var heroStyle = import_styled_components23.css`
6016
+ var heroStyle = import_styled_components24.css`
6008
6017
  --font-family: var(--wui-typography-heading-hero-family);
6009
6018
  --font-size: var(--wui-typography-heading-hero-size);
6010
6019
  --font-weight: var(--wui-typography-heading-hero-weight);
6011
6020
  --line-height: var(--wui-typography-heading-hero-line-height);
6012
6021
  `;
6013
- var heading1TextStyle = import_styled_components23.css`
6022
+ var heading1TextStyle = import_styled_components24.css`
6014
6023
  --font-family: var(--wui-typography-heading-1-family);
6015
6024
  --font-size: var(--wui-typography-heading-1-size);
6016
6025
  --font-weight: var(--wui-typography-heading-1-weight);
6017
6026
  --line-height: var(--wui-typography-heading-1-line-height);
6018
6027
  `;
6019
- var heading2TextStyle = import_styled_components23.css`
6028
+ var heading2TextStyle = import_styled_components24.css`
6020
6029
  --font-family: var(--wui-typography-heading-2-family);
6021
6030
  --font-size: var(--wui-typography-heading-2-size);
6022
6031
  --font-weight: var(--wui-typography-heading-2-weight);
6023
6032
  --line-height: var(--wui-typography-heading-2-line-height);
6024
6033
  `;
6025
- var heading3TextStyle = import_styled_components23.css`
6034
+ var heading3TextStyle = import_styled_components24.css`
6026
6035
  --font-family: var(--wui-typography-heading-3-family);
6027
6036
  --font-size: var(--wui-typography-heading-3-size);
6028
6037
  --font-weight: var(--wui-typography-heading-3-weight);
6029
6038
  --line-height: var(--wui-typography-heading-3-line-height);
6030
6039
  `;
6031
- var heading4TextStyle = import_styled_components23.css`
6040
+ var heading4TextStyle = import_styled_components24.css`
6032
6041
  --font-family: var(--wui-typography-heading-4-family);
6033
6042
  --font-size: var(--wui-typography-heading-4-size);
6034
6043
  --font-weight: var(--wui-typography-heading-4-weight);
6035
6044
  --line-height: var(--wui-typography-heading-4-line-height);
6036
6045
  `;
6037
- var heading5TextStyle = import_styled_components23.css`
6046
+ var heading5TextStyle = import_styled_components24.css`
6038
6047
  --font-family: var(--wui-typography-heading-5-family);
6039
6048
  --font-size: var(--wui-typography-heading-5-size);
6040
6049
  --font-weight: var(--wui-typography-heading-5-weight);
6041
6050
  --line-height: var(--wui-typography-heading-5-line-height);
6042
6051
  `;
6043
- var heading6TextStyle = import_styled_components23.css`
6052
+ var heading6TextStyle = import_styled_components24.css`
6044
6053
  --font-family: var(--wui-typography-heading-6-family);
6045
6054
  --font-size: var(--wui-typography-heading-6-size);
6046
6055
  --font-weight: var(--wui-typography-heading-6-weight);
@@ -6056,7 +6065,7 @@ var variantStyleMap = {
6056
6065
  heading6: heading6TextStyle
6057
6066
  };
6058
6067
  var DEFAULT_ELEMENT = "h1";
6059
- var StyledHeading = import_styled_components23.default.div`
6068
+ var StyledHeading = import_styled_components24.default.div`
6060
6069
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6061
6070
  font-family: var(--font-family);
6062
6071
  font-size: var(--font-size);
@@ -6065,16 +6074,16 @@ var StyledHeading = import_styled_components23.default.div`
6065
6074
  color: var(--wui-color-text);
6066
6075
  ${({ $variant }) => variantStyleMap[$variant]}
6067
6076
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
6068
- ${({ $inline }) => $inline && import_styled_components23.css`
6077
+ ${({ $inline }) => $inline && import_styled_components24.css`
6069
6078
  display: inline-block;
6070
6079
  `}
6071
- ${({ $disabled }) => $disabled && import_styled_components23.css`
6080
+ ${({ $disabled }) => $disabled && import_styled_components24.css`
6072
6081
  color: var(--wui-color-text-disabled);
6073
6082
  `}
6074
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components23.css`
6083
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components24.css`
6075
6084
  user-select: none;
6076
6085
  `}
6077
- ${({ $align }) => import_styled_components23.css`
6086
+ ${({ $align }) => import_styled_components24.css`
6078
6087
  text-align: ${$align};
6079
6088
  `}
6080
6089
  margin: 0;
@@ -6120,7 +6129,7 @@ var Heading = makePolymorphic(HeadingComponent);
6120
6129
 
6121
6130
  // src/components/Label/Label.tsx
6122
6131
  var import_jsx_runtime169 = require("react/jsx-runtime");
6123
- var requiredStyle = import_styled_components24.css`
6132
+ var requiredStyle = import_styled_components25.css`
6124
6133
  &::after {
6125
6134
  color: var(--wui-color-text-error);
6126
6135
  display: inline;
@@ -6128,10 +6137,10 @@ var requiredStyle = import_styled_components24.css`
6128
6137
  content: '*';
6129
6138
  }
6130
6139
  `;
6131
- var disabledStyle = import_styled_components24.css`
6140
+ var disabledStyle = import_styled_components25.css`
6132
6141
  color: var(--wui-color-text-disabled);
6133
6142
  `;
6134
- var StyledLabel = (0, import_styled_components24.default)(Heading).attrs({
6143
+ var StyledLabel = (0, import_styled_components25.default)(Heading).attrs({
6135
6144
  variant: "heading6",
6136
6145
  renderAs: "label"
6137
6146
  })`
@@ -6174,10 +6183,10 @@ var Label = ({
6174
6183
  Label.displayName = "Label";
6175
6184
 
6176
6185
  // src/components/Label/LabelDescription.tsx
6177
- var import_styled_components25 = __toESM(require("styled-components"));
6186
+ var import_styled_components26 = __toESM(require("styled-components"));
6178
6187
  var import_type_guards16 = require("@wistia/type-guards");
6179
6188
  var import_jsx_runtime170 = require("react/jsx-runtime");
6180
- var StyledLabelDescription = import_styled_components25.default.div`
6189
+ var StyledLabelDescription = import_styled_components26.default.div`
6181
6190
  color: var(--wui-color-text-secondary);
6182
6191
  font-size: var(--wui-typography-body-4-size);
6183
6192
  font-weight: var(--wui-typography-body-4-weight);
@@ -6213,7 +6222,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
6213
6222
  )
6214
6223
  }
6215
6224
  );
6216
- var StyledCheckboxWrapper = import_styled_components26.default.div`
6225
+ var StyledCheckboxWrapper = import_styled_components27.default.div`
6217
6226
  display: flex;
6218
6227
  align-items: center;
6219
6228
  cursor: pointer;
@@ -6227,7 +6236,7 @@ var StyledCheckboxWrapper = import_styled_components26.default.div`
6227
6236
  background-color: #efefef;
6228
6237
  }
6229
6238
  `;
6230
- var StyledCheckboxRoot = (0, import_styled_components26.default)(import_react_checkbox.Root)`
6239
+ var StyledCheckboxRoot = (0, import_styled_components27.default)(import_react_checkbox.Root)`
6231
6240
  all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
6232
6241
  background-color: var(--wui-color-bg-fill-white);
6233
6242
  min-width: 16px;
@@ -6261,10 +6270,10 @@ var StyledCheckboxRoot = (0, import_styled_components26.default)(import_react_ch
6261
6270
  /* TODO Lamp to design focus state */
6262
6271
  }
6263
6272
  `;
6264
- var StyledCheckboxIndicator = (0, import_styled_components26.default)(import_react_checkbox.Indicator)`
6273
+ var StyledCheckboxIndicator = (0, import_styled_components27.default)(import_react_checkbox.Indicator)`
6265
6274
  display: flex;
6266
6275
  `;
6267
- var StyledLabelWrapper = import_styled_components26.default.div`
6276
+ var StyledLabelWrapper = import_styled_components27.default.div`
6268
6277
  display: flex;
6269
6278
  flex-direction: column;
6270
6279
  margin-left: var(--wui-space-02);
@@ -6332,13 +6341,13 @@ var Checkbox = (0, import_react14.forwardRef)(
6332
6341
  Checkbox.displayName = "Checkbox";
6333
6342
 
6334
6343
  // src/components/Divider/Divider.tsx
6335
- var import_styled_components27 = __toESM(require("styled-components"));
6344
+ var import_styled_components28 = __toESM(require("styled-components"));
6336
6345
  var import_jsx_runtime172 = require("react/jsx-runtime");
6337
6346
  var sizeToPixelMap = {
6338
6347
  lg: 4,
6339
6348
  sm: 1
6340
6349
  };
6341
- var DividerComponent = import_styled_components27.default.hr`
6350
+ var DividerComponent = import_styled_components28.default.hr`
6342
6351
  background: none;
6343
6352
  border-bottom: none;
6344
6353
  border-left: none;
@@ -6365,15 +6374,15 @@ Divider.displayName = "Divider";
6365
6374
 
6366
6375
  // src/components/Form/Form.tsx
6367
6376
  var import_react16 = require("react");
6368
- var import_styled_components29 = __toESM(require("styled-components"));
6377
+ var import_styled_components30 = __toESM(require("styled-components"));
6369
6378
  var import_type_guards18 = require("@wistia/type-guards");
6370
6379
 
6371
6380
  // src/components/Stack/Stack.tsx
6372
6381
  var import_react15 = require("react");
6373
- var import_styled_components28 = __toESM(require("styled-components"));
6382
+ var import_styled_components29 = __toESM(require("styled-components"));
6374
6383
  var import_jsx_runtime173 = require("react/jsx-runtime");
6375
6384
  var DEFAULT_ELEMENT2 = "div";
6376
- var StyledStack = import_styled_components28.default.div`
6385
+ var StyledStack = import_styled_components29.default.div`
6377
6386
  display: flex;
6378
6387
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
6379
6388
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
@@ -6403,11 +6412,11 @@ var Stack = makePolymorphic(StackComponent);
6403
6412
 
6404
6413
  // src/components/Form/Form.tsx
6405
6414
  var import_jsx_runtime174 = require("react/jsx-runtime");
6406
- var StyledForm = import_styled_components29.default.form`
6415
+ var StyledForm = import_styled_components30.default.form`
6407
6416
  --form-default-width: 690px;
6408
6417
 
6409
- max-width: ${({ fullWidth }) => fullWidth ? "auto" : "var(--form-default-width)"};
6410
- align-items: ${({ fullWidth }) => fullWidth ? "stretch" : "flex-start"};
6418
+ max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
6419
+ align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
6411
6420
  `;
6412
6421
  var FormContext = (0, import_react16.createContext)({
6413
6422
  values: {},
@@ -6478,8 +6487,8 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
6478
6487
  gap: "space-05",
6479
6488
  ...props,
6480
6489
  ref,
6490
+ $fullWidth: fullWidth,
6481
6491
  as: StyledForm,
6482
- fullWidth,
6483
6492
  id,
6484
6493
  onBlur: handleBlur,
6485
6494
  onReset: handleReset,
@@ -6568,94 +6577,94 @@ var FormErrorSummary = ({ description }) => {
6568
6577
 
6569
6578
  // src/components/FormField/FormField.tsx
6570
6579
  var import_react22 = require("react");
6571
- var import_styled_components32 = __toESM(require("styled-components"));
6580
+ var import_styled_components33 = __toESM(require("styled-components"));
6572
6581
  var import_type_guards20 = require("@wistia/type-guards");
6573
6582
 
6574
6583
  // src/components/Text/Text.tsx
6575
6584
  var import_react19 = require("react");
6576
- var import_styled_components30 = __toESM(require("styled-components"));
6585
+ var import_styled_components31 = __toESM(require("styled-components"));
6577
6586
  var import_jsx_runtime176 = require("react/jsx-runtime");
6578
- var bodyBoldStyles = import_styled_components30.css`
6587
+ var bodyBoldStyles = import_styled_components31.css`
6579
6588
  > strong,
6580
6589
  b {
6581
6590
  font-weight: var(--wui-typography-weight-body-bold);
6582
6591
  }
6583
6592
  `;
6584
- var labelBoldStyles = import_styled_components30.css`
6593
+ var labelBoldStyles = import_styled_components31.css`
6585
6594
  > strong,
6586
6595
  b {
6587
6596
  font-weight: var(--wui-typography-weight-label-bold);
6588
6597
  }
6589
6598
  `;
6590
- var body1TextStyle = import_styled_components30.css`
6599
+ var body1TextStyle = import_styled_components31.css`
6591
6600
  --font-family: var(--wui-typography-body-1-family);
6592
6601
  --font-size: var(--wui-typography-body-1-size);
6593
6602
  --font-weight: var(--wui-typography-body-1-weight);
6594
6603
  --line-height: var(--wui-typography-body-1-line-height);
6595
6604
  ${bodyBoldStyles}
6596
6605
  `;
6597
- var body2TextStyle = import_styled_components30.css`
6606
+ var body2TextStyle = import_styled_components31.css`
6598
6607
  --font-family: var(--wui-typography-body-2-family);
6599
6608
  --font-size: var(--wui-typography-body-2-size);
6600
6609
  --font-weight: var(--wui-typography-body-2-weight);
6601
6610
  --line-height: var(--wui-typography-body-2-line-height);
6602
6611
  ${bodyBoldStyles}
6603
6612
  `;
6604
- var body3TextStyle = import_styled_components30.css`
6613
+ var body3TextStyle = import_styled_components31.css`
6605
6614
  --font-family: var(--wui-typography-body-3-family);
6606
6615
  --font-size: var(--wui-typography-body-3-size);
6607
6616
  --font-weight: var(--wui-typography-body-3-weight);
6608
6617
  --line-height: var(--wui-typography-body-3-line-height);
6609
6618
  ${bodyBoldStyles}
6610
6619
  `;
6611
- var body4TextStyle = import_styled_components30.css`
6620
+ var body4TextStyle = import_styled_components31.css`
6612
6621
  --font-family: var(--wui-typography-body-4-family);
6613
6622
  --font-size: var(--wui-typography-body-4-size);
6614
6623
  --font-weight: var(--wui-typography-body-4-weight);
6615
6624
  --line-height: var(--wui-typography-body-4-line-height);
6616
6625
  ${bodyBoldStyles}
6617
6626
  `;
6618
- var label1TextStyle = import_styled_components30.css`
6627
+ var label1TextStyle = import_styled_components31.css`
6619
6628
  --font-family: var(--wui-typography-label-1-family);
6620
6629
  --font-size: var(--wui-typography-label-1-size);
6621
6630
  --font-weight: var(--wui-typography-label-1-weight);
6622
6631
  --line-height: var(--wui-typography-label-1-line-height);
6623
6632
  ${labelBoldStyles}
6624
6633
  `;
6625
- var label2TextStyle = import_styled_components30.css`
6634
+ var label2TextStyle = import_styled_components31.css`
6626
6635
  --font-family: var(--wui-typography-label-2-family);
6627
6636
  --font-size: var(--wui-typography-label-2-size);
6628
6637
  --font-weight: var(--wui-typography-label-2-weight);
6629
6638
  --line-height: var(--wui-typography-label-2-line-height);
6630
6639
  ${labelBoldStyles}
6631
6640
  `;
6632
- var label3TextStyle = import_styled_components30.css`
6641
+ var label3TextStyle = import_styled_components31.css`
6633
6642
  --font-family: var(--wui-typography-label-3-family);
6634
6643
  --font-size: var(--wui-typography-label-3-size);
6635
6644
  --font-weight: var(--wui-typography-label-3-weight);
6636
6645
  --line-height: var(--wui-typography-label-3-line-height);
6637
6646
  ${labelBoldStyles}
6638
6647
  `;
6639
- var label4TextStyle = import_styled_components30.css`
6648
+ var label4TextStyle = import_styled_components31.css`
6640
6649
  --font-family: var(--wui-typography-label-4-family);
6641
6650
  --font-size: var(--wui-typography-label-4-size);
6642
6651
  --font-weight: var(--wui-typography-label-4-weight);
6643
6652
  --line-height: var(--wui-typography-label-4-line-height);
6644
6653
  ${labelBoldStyles}
6645
6654
  `;
6646
- var body1MonoTextStyle = import_styled_components30.css`
6655
+ var body1MonoTextStyle = import_styled_components31.css`
6647
6656
  ${body1TextStyle};
6648
6657
  --font-family: var(--wui-typography-family-mono);
6649
6658
  `;
6650
- var body2MonoTextStyle = import_styled_components30.css`
6659
+ var body2MonoTextStyle = import_styled_components31.css`
6651
6660
  ${body2TextStyle};
6652
6661
  --font-family: var(--wui-typography-family-mono);
6653
6662
  `;
6654
- var body3MonoTextStyle = import_styled_components30.css`
6663
+ var body3MonoTextStyle = import_styled_components31.css`
6655
6664
  ${body3TextStyle};
6656
6665
  --font-family: var(--wui-typography-family-mono);
6657
6666
  `;
6658
- var body4MonoTextStyle = import_styled_components30.css`
6667
+ var body4MonoTextStyle = import_styled_components31.css`
6659
6668
  ${body4TextStyle};
6660
6669
  --font-family: var(--wui-typography-family-mono);
6661
6670
  `;
@@ -6673,13 +6682,13 @@ var variantStyleMap2 = {
6673
6682
  label3: label3TextStyle,
6674
6683
  label4: label4TextStyle
6675
6684
  };
6676
- var highContrastProminenceStyle = import_styled_components30.css`
6685
+ var highContrastProminenceStyle = import_styled_components31.css`
6677
6686
  --text-color: var(--wui-color-text-high-contrast);
6678
6687
  `;
6679
- var vibrantProminenceStyle = import_styled_components30.css`
6688
+ var vibrantProminenceStyle = import_styled_components31.css`
6680
6689
  --text-color: var(--wui-color-text);
6681
6690
  `;
6682
- var secondaryProminenceStyle = import_styled_components30.css`
6691
+ var secondaryProminenceStyle = import_styled_components31.css`
6683
6692
  --text-color: var(--wui-color-text-secondary);
6684
6693
  `;
6685
6694
  var prominenceMap = {
@@ -6687,7 +6696,7 @@ var prominenceMap = {
6687
6696
  vibrant: vibrantProminenceStyle,
6688
6697
  secondary: secondaryProminenceStyle
6689
6698
  };
6690
- var StyledText = import_styled_components30.default.div`
6699
+ var StyledText = import_styled_components31.default.div`
6691
6700
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6692
6701
  font-family: var(--font-family);
6693
6702
  font-size: var(--font-size);
@@ -6699,19 +6708,19 @@ var StyledText = import_styled_components30.default.div`
6699
6708
  ${({ $variant }) => variantStyleMap2[$variant]}
6700
6709
  ${({ $prominence }) => prominenceMap[$prominence]}
6701
6710
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
6702
- ${({ $inline }) => $inline && import_styled_components30.css`
6711
+ ${({ $inline }) => $inline && import_styled_components31.css`
6703
6712
  display: inline-block;
6704
6713
  `}
6705
- ${({ $disabled }) => $disabled && import_styled_components30.css`
6714
+ ${({ $disabled }) => $disabled && import_styled_components31.css`
6706
6715
  --text-color: var(--wui-color-text-disabled);
6707
6716
  `}
6708
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components30.css`
6717
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components31.css`
6709
6718
  user-select: none;
6710
6719
  `}
6711
- ${({ $align }) => import_styled_components30.css`
6720
+ ${({ $align }) => import_styled_components31.css`
6712
6721
  text-align: ${$align};
6713
6722
  `}
6714
- ${({ as }) => as === "p" && import_styled_components30.css`
6723
+ ${({ as }) => as === "p" && import_styled_components31.css`
6715
6724
  display: block;
6716
6725
  `}
6717
6726
  `;
@@ -6754,13 +6763,13 @@ var Text = makePolymorphic(TextComponent);
6754
6763
  var import_react21 = require("react");
6755
6764
 
6756
6765
  // src/components/FormGroup/FormGroup.tsx
6757
- var import_styled_components31 = __toESM(require("styled-components"));
6766
+ var import_styled_components32 = __toESM(require("styled-components"));
6758
6767
  var import_react20 = require("react");
6759
6768
  var import_jsx_runtime177 = require("react/jsx-runtime");
6760
- var StyledFieldset = import_styled_components31.default.fieldset`
6769
+ var StyledFieldset = import_styled_components32.default.fieldset`
6761
6770
  border: 0;
6762
6771
  `;
6763
- var StyledLegend = import_styled_components31.default.legend`
6772
+ var StyledLegend = import_styled_components32.default.legend`
6764
6773
  margin-bottom: var(--space-01);
6765
6774
  `;
6766
6775
  var FormGroup = ({ children, label, ...props }) => {
@@ -6809,7 +6818,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
6809
6818
 
6810
6819
  // src/components/FormField/FormField.tsx
6811
6820
  var import_jsx_runtime179 = require("react/jsx-runtime");
6812
- var StyledFormField = import_styled_components32.default.div`
6821
+ var StyledFormField = import_styled_components33.default.div`
6813
6822
  --form-field-spacing: var(--wui-space-01);
6814
6823
  --form-field-error-color: var(--wui-color-text-error);
6815
6824
 
@@ -6817,7 +6826,7 @@ var StyledFormField = import_styled_components32.default.div`
6817
6826
  flex-direction: column;
6818
6827
  gap: var(--form-field-spacing);
6819
6828
  `;
6820
- var StyledErrorList = import_styled_components32.default.ul`
6829
+ var StyledErrorList = import_styled_components33.default.ul`
6821
6830
  margin: 0;
6822
6831
  padding: 0;
6823
6832
  padding-left: var(--wui-space-04);
@@ -6931,114 +6940,7 @@ RadioGroup.displayName = "RadioGroup";
6931
6940
  // src/components/IconButton/IconButton.tsx
6932
6941
  var import_react24 = require("react");
6933
6942
  var import_styled_components34 = __toESM(require("styled-components"));
6934
-
6935
- // src/components/Tooltip/Tooltip.tsx
6936
- var import_react_tooltip2 = require("@radix-ui/react-tooltip");
6937
- var import_styled_components33 = __toESM(require("styled-components"));
6938
6943
  var import_jsx_runtime181 = require("react/jsx-runtime");
6939
- var CompactTooltipStyles = import_styled_components33.css`
6940
- --tooltip-font-size: var(--wui-typography-label-4-size);
6941
- --tooltip-line-height: var(--wui-typography-label-4-line-height);
6942
- --tooltip-font-weight: var(--wui-typography-label-4-weight);
6943
- --tooltip-horizontal-padding: var(--wui-space-02);
6944
- --tooltip-vertical-padding: var(--wui-space-03);
6945
- `;
6946
- var StyledContent = (0, import_styled_components33.default)(import_react_tooltip2.Content)`
6947
- --tooltip-font-family: var(--wui-typography-family-default);
6948
- --tooltip-border-radius: var(--wui-border-radius-05);
6949
- --tooltip-bg: var(--wui-color-bg-tooltip);
6950
- --tooltip-color: var(--wui-color-text-on-fill);
6951
- --tooltip-font-size: var(--wui-typography-label-3-size);
6952
- --tooltip-line-height: var(--wui-typography-label-3-line-height);
6953
- --tooltip-font-weight: var(--wui-typography-label-3-weight);
6954
- --tooltip-horizontal-padding: var(--wui-space-03);
6955
- --tooltip-vertical-padding: var(--wui-space-03);
6956
-
6957
- ${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
6958
-
6959
- font-family: var(--tooltip-font-family);
6960
- font-size: var(--tooltip-font-size);
6961
- border-radius: var(--tooltip-border-radius);
6962
- padding: var(--tooltip-horizontal-padding) var(--tooltip-vertical-padding);
6963
- background-color: var(--tooltip-bg);
6964
- color: var(--tooltip-color);
6965
- user-select: none;
6966
- animation-duration: 400ms;
6967
- animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
6968
- will-change: transform, opacity;
6969
- max-width: 30em;
6970
-
6971
- &[data-state='delayed-open'][data-side='top'] {
6972
- animation-name: slideDownAndFade;
6973
- }
6974
-
6975
- &[data-state='delayed-open'][data-side='right'] {
6976
- animation-name: slideLeftAndFade;
6977
- }
6978
-
6979
- &[data-state='delayed-open'][data-side='bottom'] {
6980
- animation-name: slideUpAndFade;
6981
- }
6982
-
6983
- &[data-state='delayed-open'][data-side='left'] {
6984
- animation-name: slideRightAndFade;
6985
- }
6986
- `;
6987
- var VISUAL_OFFSET = 6;
6988
- var Tooltip = ({
6989
- delay = 700,
6990
- direction = "top",
6991
- content,
6992
- children,
6993
- forceOpen,
6994
- compact = false,
6995
- hideArrow = false
6996
- }) => {
6997
- const rootProps = {};
6998
- if (content === "" || content === null) {
6999
- rootProps.open = false;
7000
- }
7001
- if (forceOpen === true) {
7002
- rootProps.open = true;
7003
- }
7004
- return /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(
7005
- import_react_tooltip2.Root,
7006
- {
7007
- delayDuration: delay,
7008
- ...rootProps,
7009
- children: [
7010
- /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
7011
- /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(
7012
- StyledContent,
7013
- {
7014
- $compact: compact,
7015
- side: direction,
7016
- sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
7017
- children: [
7018
- content,
7019
- !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
7020
- "svg",
7021
- {
7022
- fill: "var(--tooltip-bg)",
7023
- height: "8",
7024
- style: { transform: "translateY(-2px)" },
7025
- viewBox: "0 0 12 8",
7026
- width: "12",
7027
- xmlns: "http://www.w3.org/2000/svg",
7028
- children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
7029
- }
7030
- ) }) : null
7031
- ]
7032
- }
7033
- ) })
7034
- ]
7035
- }
7036
- );
7037
- };
7038
- Tooltip.displayName = "Tooltip";
7039
-
7040
- // src/components/IconButton/IconButton.tsx
7041
- var import_jsx_runtime182 = require("react/jsx-runtime");
7042
6944
  var StyledButton2 = (0, import_styled_components34.default)(Button)`
7043
6945
  --icon-button-size-sm: 24px;
7044
6946
  --icon-button-size-md: 32px;
@@ -7054,9 +6956,9 @@ var StyledButton2 = (0, import_styled_components34.default)(Button)`
7054
6956
  line-height: 1;
7055
6957
  `;
7056
6958
  var IconButton = (0, import_react24.forwardRef)(
7057
- ({ children, label, disableTooltip = false, size = "md", ...props }, ref) => {
6959
+ ({ children, label, size = "md", ...props }, ref) => {
7058
6960
  const responsiveSize = useResponsiveProp(size);
7059
- const button = /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
6961
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
7060
6962
  StyledButton2,
7061
6963
  {
7062
6964
  ...props,
@@ -7069,10 +6971,6 @@ var IconButton = (0, import_react24.forwardRef)(
7069
6971
  })
7070
6972
  }
7071
6973
  );
7072
- if (disableTooltip) {
7073
- return button;
7074
- }
7075
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Tooltip, { content: label, children: button });
7076
6974
  }
7077
6975
  );
7078
6976
  IconButton.displayName = "IconButton";
@@ -7081,7 +6979,7 @@ IconButton.displayName = "IconButton";
7081
6979
  var import_styled_components35 = __toESM(require("styled-components"));
7082
6980
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
7083
6981
  var import_type_guards21 = require("@wistia/type-guards");
7084
- var import_jsx_runtime183 = require("react/jsx-runtime");
6982
+ var import_jsx_runtime182 = require("react/jsx-runtime");
7085
6983
  var open = import_styled_components35.keyframes`
7086
6984
  from {
7087
6985
  opacity: 0;
@@ -7110,7 +7008,6 @@ var menuContentCss = import_styled_components35.css`
7110
7008
  --menu-padding: var(--wui-space-03);
7111
7009
  --menu-min-width: 120px;
7112
7010
  --menu-max-width: 284px;
7113
- --menu-zindex: 500; /* TODO - need z-index token */
7114
7011
 
7115
7012
  animation: ${open}; /* TODO - need easing tokens */
7116
7013
  font-family: var(--menu-font-family);
@@ -7123,7 +7020,7 @@ var menuContentCss = import_styled_components35.css`
7123
7020
  overflow: auto;
7124
7021
  padding: var(--menu-padding);
7125
7022
  transform-origin: var(--radix-dropdown-menu-content-transform-origin);
7126
- z-index: var(--menu-zindex);
7023
+ z-index: var(--wui-zindex-menu);
7127
7024
 
7128
7025
  &[data-state='closed'] {
7129
7026
  animation: ${close}; /* TODO - need easing tokens */
@@ -7155,23 +7052,23 @@ var Menu = ({
7155
7052
  onInteractOutside,
7156
7053
  ...props
7157
7054
  }) => {
7158
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)(
7055
+ return /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(
7159
7056
  import_react_dropdown_menu.DropdownMenu,
7160
7057
  {
7161
7058
  modal: false,
7162
7059
  ...(0, import_type_guards21.isNotNil)(onOpenChange) && (0, import_type_guards21.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {},
7163
7060
  children: [
7164
- /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards21.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
7061
+ /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards21.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
7165
7062
  Button,
7166
7063
  {
7167
7064
  "aria-expanded": isOpen,
7168
7065
  forceState: isOpen ? "active" : void 0,
7169
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Icon, { type: "caret-down" }),
7066
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Icon, { type: "caret-down" }),
7170
7067
  ...triggerProps,
7171
7068
  children: label
7172
7069
  }
7173
7070
  ) }),
7174
- /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
7071
+ /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
7175
7072
  MenuContent,
7176
7073
  {
7177
7074
  ...props,
@@ -7192,17 +7089,17 @@ Menu.displayName = "Menu";
7192
7089
  // src/components/Menu/MenuLabel.tsx
7193
7090
  var import_styled_components36 = __toESM(require("styled-components"));
7194
7091
  var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
7195
- var import_jsx_runtime184 = require("react/jsx-runtime");
7092
+ var import_jsx_runtime183 = require("react/jsx-runtime");
7196
7093
  var StyledMenuLabel = (0, import_styled_components36.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
7197
7094
  padding: var(--wui-space-02);
7198
7095
  `;
7199
7096
  var MenuLabel = ({ children, ...props }) => {
7200
- return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
7097
+ return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
7201
7098
  StyledMenuLabel,
7202
7099
  {
7203
7100
  asChild: true,
7204
7101
  ...props,
7205
- children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
7102
+ children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
7206
7103
  Text,
7207
7104
  {
7208
7105
  variant: "label3",
@@ -7224,7 +7121,7 @@ var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
7224
7121
  var import_react25 = require("react");
7225
7122
  var import_styled_components37 = __toESM(require("styled-components"));
7226
7123
  var import_type_guards22 = require("@wistia/type-guards");
7227
- var import_jsx_runtime185 = require("react/jsx-runtime");
7124
+ var import_jsx_runtime184 = require("react/jsx-runtime");
7228
7125
  var StyledButton3 = (0, import_styled_components37.default)(Button)`
7229
7126
  --menu-item-border-radius: var(--wui-border-radius-01);
7230
7127
  --menu-item-gap: var(--wui-space-01);
@@ -7270,9 +7167,9 @@ var MenuItemButton = (0, import_react25.forwardRef)(({ children, appearance, com
7270
7167
  console.warn("colorScheme prop is ignored when appearance is gated");
7271
7168
  }
7272
7169
  colorScheme = "purple";
7273
- badge = /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(Icon, { type: "sparkle" });
7170
+ badge = /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(Icon, { type: "sparkle" });
7274
7171
  }
7275
- return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
7172
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
7276
7173
  StyledButton3,
7277
7174
  {
7278
7175
  ...props,
@@ -7281,9 +7178,9 @@ var MenuItemButton = (0, import_react25.forwardRef)(({ children, appearance, com
7281
7178
  colorScheme: colorScheme ?? "default",
7282
7179
  fullWidth: true,
7283
7180
  variant: "ghost",
7284
- children: /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(StyledMenuContent, { children: [
7181
+ children: /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(StyledMenuContent, { children: [
7285
7182
  children,
7286
- (0, import_type_guards22.isNotNil)(badge) || (0, import_type_guards22.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null
7183
+ (0, import_type_guards22.isNotNil)(badge) || (0, import_type_guards22.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null
7287
7184
  ] })
7288
7185
  }
7289
7186
  );
@@ -7292,7 +7189,7 @@ MenuItemButton.displayName = "MenuItemButton";
7292
7189
 
7293
7190
  // src/components/Menu/MenuItemLabelDescription.tsx
7294
7191
  var import_styled_components38 = __toESM(require("styled-components"));
7295
- var import_jsx_runtime186 = require("react/jsx-runtime");
7192
+ var import_jsx_runtime185 = require("react/jsx-runtime");
7296
7193
  var StyledMenuItemLabel = (0, import_styled_components38.default)(Text).attrs({ variant: "label3" })`
7297
7194
  grid-area: label;
7298
7195
  `;
@@ -7304,14 +7201,14 @@ var StyledMenuItemDescription = (0, import_styled_components38.default)(Text).at
7304
7201
  grid-area: description;
7305
7202
  `;
7306
7203
  var MenuItemLabel = ({ children }) => {
7307
- return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(StyledMenuItemLabel, { children });
7204
+ return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(StyledMenuItemLabel, { children });
7308
7205
  };
7309
7206
  var MenuItemDescription = ({ children }) => {
7310
- return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(StyledMenuItemDescription, { children });
7207
+ return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(StyledMenuItemDescription, { children });
7311
7208
  };
7312
7209
 
7313
7210
  // src/components/Menu/SubMenu.tsx
7314
- var import_jsx_runtime187 = require("react/jsx-runtime");
7211
+ var import_jsx_runtime186 = require("react/jsx-runtime");
7315
7212
  var SubMenuContent = (0, import_styled_components39.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
7316
7213
  ${menuContentCss}
7317
7214
  width: 298px;
@@ -7334,11 +7231,11 @@ var StyledSubTrigger = (0, import_styled_components39.default)(import_react_drop
7334
7231
  var SubMenuTrigger = (props) => {
7335
7232
  const { isSmAndUp } = useMq();
7336
7233
  const Trigger2 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
7337
- return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(Trigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
7234
+ return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(Trigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
7338
7235
  MenuItemButton,
7339
7236
  {
7340
7237
  ...props,
7341
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(Icon, { type: "caret-right" })
7238
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(Icon, { type: "caret-right" })
7342
7239
  }
7343
7240
  ) });
7344
7241
  };
@@ -7351,14 +7248,14 @@ var SubMenu = ({
7351
7248
  }) => {
7352
7249
  const { isSmAndUp } = useMq();
7353
7250
  const [isExpanded, setIsExpanded] = (0, import_react26.useState)(false);
7354
- return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
7355
- /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)(SubMenuTrigger, { ...props, children: [
7356
- /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(MenuItemLabel, { children: label }),
7357
- /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(MenuItemDescription, { children: description })
7251
+ return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
7252
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(SubMenuTrigger, { ...props, children: [
7253
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(MenuItemLabel, { children: label }),
7254
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(MenuItemDescription, { children: description })
7358
7255
  ] }),
7359
- /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(SubMenuContent, { children }) })
7360
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
7361
- /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)(
7256
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(SubMenuContent, { children }) })
7257
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
7258
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(
7362
7259
  SubMenuTrigger,
7363
7260
  {
7364
7261
  ...props,
@@ -7367,12 +7264,12 @@ var SubMenu = ({
7367
7264
  setIsExpanded((prev) => !prev);
7368
7265
  },
7369
7266
  children: [
7370
- /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(MenuItemLabel, { children: label }),
7371
- /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(MenuItemDescription, { children: description })
7267
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(MenuItemLabel, { children: label }),
7268
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(MenuItemDescription, { children: description })
7372
7269
  ]
7373
7270
  }
7374
7271
  ),
7375
- /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7272
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7376
7273
  ] });
7377
7274
  };
7378
7275
  SubMenu.displayName = "SubMenu";
@@ -7380,15 +7277,15 @@ SubMenu.displayName = "SubMenu";
7380
7277
  // src/components/Menu/MenuItem.tsx
7381
7278
  var import_react27 = require("react");
7382
7279
  var import_react_dropdown_menu4 = require("@radix-ui/react-dropdown-menu");
7383
- var import_jsx_runtime188 = require("react/jsx-runtime");
7280
+ var import_jsx_runtime187 = require("react/jsx-runtime");
7384
7281
  var MenuItem = (0, import_react27.forwardRef)(
7385
7282
  ({ onSelect = () => null, ...props }, ref) => {
7386
- return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
7283
+ return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
7387
7284
  import_react_dropdown_menu4.DropdownMenuItem,
7388
7285
  {
7389
7286
  asChild: true,
7390
7287
  onSelect,
7391
- children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
7288
+ children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
7392
7289
  MenuItemButton,
7393
7290
  {
7394
7291
  ...props,
@@ -7404,10 +7301,10 @@ MenuItem.displayName = "MenuItem";
7404
7301
 
7405
7302
  // src/components/Menu/MenuRadioGroup.tsx
7406
7303
  var import_react_dropdown_menu5 = require("@radix-ui/react-dropdown-menu");
7407
- var import_jsx_runtime189 = require("react/jsx-runtime");
7304
+ var import_jsx_runtime188 = require("react/jsx-runtime");
7408
7305
  var MenuRadioGroup = ({ children, label, ...props }) => {
7409
- return /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
7410
- /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(MenuLabel, { children: label }),
7306
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
7307
+ /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(MenuLabel, { children: label }),
7411
7308
  children
7412
7309
  ] });
7413
7310
  };
@@ -7415,11 +7312,11 @@ MenuRadioGroup.displayName = "MenuRadioGroup";
7415
7312
 
7416
7313
  // src/components/Menu/RadioMenuItem.tsx
7417
7314
  var import_react_dropdown_menu6 = require("@radix-ui/react-dropdown-menu");
7418
- var import_jsx_runtime190 = require("react/jsx-runtime");
7315
+ var import_jsx_runtime189 = require("react/jsx-runtime");
7419
7316
  var RadioMenuItem = ({
7420
7317
  onSelect,
7421
7318
  value,
7422
- indicator = /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7319
+ indicator = /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
7423
7320
  Icon,
7424
7321
  {
7425
7322
  size: "sm",
@@ -7429,16 +7326,16 @@ var RadioMenuItem = ({
7429
7326
  ...props
7430
7327
  }) => {
7431
7328
  const extraProps = onSelect ? { onSelect } : {};
7432
- return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7329
+ return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
7433
7330
  import_react_dropdown_menu6.DropdownMenuRadioItem,
7434
7331
  {
7435
7332
  ...extraProps,
7436
7333
  value,
7437
- children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7334
+ children: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
7438
7335
  MenuItemButton,
7439
7336
  {
7440
7337
  ...props,
7441
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
7338
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
7442
7339
  }
7443
7340
  )
7444
7341
  }
@@ -7448,9 +7345,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
7448
7345
 
7449
7346
  // src/components/Menu/CheckboxMenuItem.tsx
7450
7347
  var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
7451
- var import_jsx_runtime191 = require("react/jsx-runtime");
7348
+ var import_jsx_runtime190 = require("react/jsx-runtime");
7452
7349
  var CheckboxIndicator2 = ({ checked, ...props }) => {
7453
- return checked ? /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(
7350
+ return checked ? /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(
7454
7351
  "svg",
7455
7352
  {
7456
7353
  ...props,
@@ -7460,21 +7357,21 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7460
7357
  width: "16",
7461
7358
  xmlns: "http://www.w3.org/2000/svg",
7462
7359
  children: [
7463
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7360
+ /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7464
7361
  "path",
7465
7362
  {
7466
7363
  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",
7467
7364
  fill: "#2949E5"
7468
7365
  }
7469
7366
  ),
7470
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7367
+ /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7471
7368
  "path",
7472
7369
  {
7473
7370
  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",
7474
7371
  stroke: "#D9D9DE"
7475
7372
  }
7476
7373
  ),
7477
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7374
+ /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7478
7375
  "path",
7479
7376
  {
7480
7377
  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",
@@ -7483,7 +7380,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7483
7380
  )
7484
7381
  ]
7485
7382
  }
7486
- ) : /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(
7383
+ ) : /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(
7487
7384
  "svg",
7488
7385
  {
7489
7386
  ...props,
@@ -7493,14 +7390,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7493
7390
  width: "16",
7494
7391
  xmlns: "http://www.w3.org/2000/svg",
7495
7392
  children: [
7496
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7393
+ /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7497
7394
  "path",
7498
7395
  {
7499
7396
  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",
7500
7397
  fill: "#FCFCFD"
7501
7398
  }
7502
7399
  ),
7503
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7400
+ /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7504
7401
  "path",
7505
7402
  {
7506
7403
  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",
@@ -7517,17 +7414,17 @@ var CheckboxMenuItem = ({
7517
7414
  onCheckedChange,
7518
7415
  ...props
7519
7416
  }) => {
7520
- return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7417
+ return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7521
7418
  import_react_dropdown_menu7.DropdownMenuCheckboxItem,
7522
7419
  {
7523
7420
  checked,
7524
7421
  onCheckedChange,
7525
7422
  onSelect,
7526
- children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7423
+ children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
7527
7424
  MenuItemButton,
7528
7425
  {
7529
7426
  ...props,
7530
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(CheckboxIndicator2, { checked })
7427
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(CheckboxIndicator2, { checked })
7531
7428
  }
7532
7429
  )
7533
7430
  }
@@ -7539,7 +7436,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
7539
7436
  var import_react28 = require("react");
7540
7437
  var import_styled_components40 = __toESM(require("styled-components"));
7541
7438
  var import_type_guards23 = require("@wistia/type-guards");
7542
- var import_jsx_runtime192 = require("react/jsx-runtime");
7439
+ var import_jsx_runtime191 = require("react/jsx-runtime");
7543
7440
  var StyledLabelWrapper2 = import_styled_components40.default.div`
7544
7441
  display: flex;
7545
7442
  flex-direction: column;
@@ -7625,13 +7522,13 @@ var Radio = (0, import_react28.forwardRef)(
7625
7522
  }, ref) => {
7626
7523
  const generatedId = (0, import_react28.useId)();
7627
7524
  const computedId = (0, import_type_guards23.isNonEmptyString)(id) ? id : `ui-radio-${generatedId}`;
7628
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(
7525
+ return /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(
7629
7526
  StyledRadioWrapper,
7630
7527
  {
7631
7528
  "aria-invalid": otherProps["aria-invalid"],
7632
7529
  disabled,
7633
7530
  children: [
7634
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
7531
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7635
7532
  StyledRadio,
7636
7533
  {
7637
7534
  ref,
@@ -7646,8 +7543,8 @@ var Radio = (0, import_react28.forwardRef)(
7646
7543
  ...otherProps
7647
7544
  }
7648
7545
  ),
7649
- /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(StyledLabelWrapper2, { children: [
7650
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
7546
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(StyledLabelWrapper2, { children: [
7547
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7651
7548
  Label,
7652
7549
  {
7653
7550
  disabled,
@@ -7656,7 +7553,7 @@ var Radio = (0, import_react28.forwardRef)(
7656
7553
  children: label
7657
7554
  }
7658
7555
  ),
7659
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(LabelDescription, { children: description })
7556
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(LabelDescription, { children: description })
7660
7557
  ] })
7661
7558
  ]
7662
7559
  }
@@ -7668,7 +7565,7 @@ Radio.displayName = "Radio";
7668
7565
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7669
7566
  var import_styled_components41 = __toESM(require("styled-components"));
7670
7567
  var import_type_guards24 = require("@wistia/type-guards");
7671
- var import_jsx_runtime193 = require("react/jsx-runtime");
7568
+ var import_jsx_runtime192 = require("react/jsx-runtime");
7672
7569
  var VisuallyHidden = import_styled_components41.default.div({ ...visuallyHiddenStyle });
7673
7570
  var VisuallyHiddenButFocusable = import_styled_components41.default.div({
7674
7571
  "&:not(:focus-within)": visuallyHiddenStyle
@@ -7681,9 +7578,9 @@ var ScreenReaderOnly = ({
7681
7578
  }) => {
7682
7579
  const accessibleText = (0, import_type_guards24.isNotNil)(text) ? text : children;
7683
7580
  if (focusable) {
7684
- return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7581
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7685
7582
  }
7686
- return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
7583
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
7687
7584
  };
7688
7585
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
7689
7586
 
@@ -7691,7 +7588,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
7691
7588
  var import_react29 = require("react");
7692
7589
  var import_styled_components42 = __toESM(require("styled-components"));
7693
7590
  var import_type_guards25 = require("@wistia/type-guards");
7694
- var import_jsx_runtime194 = require("react/jsx-runtime");
7591
+ var import_jsx_runtime193 = require("react/jsx-runtime");
7695
7592
  var TagLabel = import_styled_components42.default.a`
7696
7593
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7697
7594
  font-size: var(--wui-typography-label-4-size);
@@ -7772,23 +7669,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
7772
7669
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
7773
7670
  );
7774
7671
  }
7775
- return /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(import_jsx_runtime194.Fragment, { children: [
7776
- /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(TagDivider, { $colorScheme: colorScheme }),
7777
- /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(
7672
+ return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(import_jsx_runtime193.Fragment, { children: [
7673
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(TagDivider, { $colorScheme: colorScheme }),
7674
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(
7778
7675
  StyledRemoveButton,
7779
7676
  {
7780
7677
  $colorScheme: colorScheme,
7781
7678
  onClick: onClickRemove,
7782
7679
  type: "button",
7783
7680
  children: [
7784
- /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
7681
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
7785
7682
  Icon,
7786
7683
  {
7787
7684
  size: "sm",
7788
7685
  type: "close"
7789
7686
  }
7790
7687
  ),
7791
- /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
7688
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
7792
7689
  ]
7793
7690
  }
7794
7691
  )
@@ -7797,14 +7694,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
7797
7694
  var Tag = (0, import_react29.forwardRef)(
7798
7695
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
7799
7696
  const labelProps = (0, import_type_guards25.isNotNil)(href) && (0, import_type_guards25.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
7800
- return /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(
7697
+ return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(
7801
7698
  StyledTag,
7802
7699
  {
7803
7700
  ref,
7804
7701
  $colorScheme: colorScheme,
7805
7702
  ...otherProps,
7806
7703
  children: [
7807
- /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
7704
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
7808
7705
  TagLabel,
7809
7706
  {
7810
7707
  ...labelProps,
@@ -7812,7 +7709,7 @@ var Tag = (0, import_react29.forwardRef)(
7812
7709
  children: label
7813
7710
  }
7814
7711
  ),
7815
- /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
7712
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
7816
7713
  RemoveButton,
7817
7714
  {
7818
7715
  colorScheme,
@@ -7827,8 +7724,113 @@ var Tag = (0, import_react29.forwardRef)(
7827
7724
  );
7828
7725
  Tag.displayName = "Tag";
7829
7726
 
7830
- // src/components/WistiaLogo/WistiaLogo.tsx
7727
+ // src/components/Tooltip/Tooltip.tsx
7728
+ var import_react_tooltip2 = require("@radix-ui/react-tooltip");
7831
7729
  var import_styled_components43 = __toESM(require("styled-components"));
7730
+ var import_jsx_runtime194 = require("react/jsx-runtime");
7731
+ var CompactTooltipStyles = import_styled_components43.css`
7732
+ --tooltip-font-size: var(--wui-typography-label-4-size);
7733
+ --tooltip-line-height: var(--wui-typography-label-4-line-height);
7734
+ --tooltip-font-weight: var(--wui-typography-label-4-weight);
7735
+ --tooltip-horizontal-padding: var(--wui-space-02);
7736
+ --tooltip-vertical-padding: var(--wui-space-03);
7737
+ `;
7738
+ var StyledContent = (0, import_styled_components43.default)(import_react_tooltip2.Content)`
7739
+ --tooltip-font-family: var(--wui-typography-family-default);
7740
+ --tooltip-border-radius: var(--wui-border-radius-05);
7741
+ --tooltip-bg: var(--wui-color-bg-tooltip);
7742
+ --tooltip-color: var(--wui-color-text-on-fill);
7743
+ --tooltip-font-size: var(--wui-typography-label-3-size);
7744
+ --tooltip-line-height: var(--wui-typography-label-3-line-height);
7745
+ --tooltip-font-weight: var(--wui-typography-label-3-weight);
7746
+ --tooltip-horizontal-padding: var(--wui-space-03);
7747
+ --tooltip-vertical-padding: var(--wui-space-03);
7748
+
7749
+ ${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
7750
+
7751
+ font-family: var(--tooltip-font-family);
7752
+ font-size: var(--tooltip-font-size);
7753
+ border-radius: var(--tooltip-border-radius);
7754
+ padding: var(--tooltip-horizontal-padding) var(--tooltip-vertical-padding);
7755
+ background-color: var(--tooltip-bg);
7756
+ color: var(--tooltip-color);
7757
+ user-select: none;
7758
+ animation-duration: 400ms;
7759
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
7760
+ will-change: transform, opacity;
7761
+ max-width: 30em;
7762
+
7763
+ &[data-state='delayed-open'][data-side='top'] {
7764
+ animation-name: slideDownAndFade;
7765
+ }
7766
+
7767
+ &[data-state='delayed-open'][data-side='right'] {
7768
+ animation-name: slideLeftAndFade;
7769
+ }
7770
+
7771
+ &[data-state='delayed-open'][data-side='bottom'] {
7772
+ animation-name: slideUpAndFade;
7773
+ }
7774
+
7775
+ &[data-state='delayed-open'][data-side='left'] {
7776
+ animation-name: slideRightAndFade;
7777
+ }
7778
+ `;
7779
+ var VISUAL_OFFSET = 6;
7780
+ var Tooltip = ({
7781
+ delay = 700,
7782
+ direction = "top",
7783
+ content,
7784
+ children,
7785
+ forceOpen,
7786
+ compact = false,
7787
+ hideArrow = false
7788
+ }) => {
7789
+ const rootProps = {};
7790
+ if (content === "" || content === null) {
7791
+ rootProps.open = false;
7792
+ }
7793
+ if (forceOpen === true) {
7794
+ rootProps.open = true;
7795
+ }
7796
+ return /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(
7797
+ import_react_tooltip2.Root,
7798
+ {
7799
+ delayDuration: delay,
7800
+ ...rootProps,
7801
+ children: [
7802
+ /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
7803
+ /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(
7804
+ StyledContent,
7805
+ {
7806
+ $compact: compact,
7807
+ side: direction,
7808
+ sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
7809
+ children: [
7810
+ content,
7811
+ !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
7812
+ "svg",
7813
+ {
7814
+ fill: "var(--tooltip-bg)",
7815
+ height: "8",
7816
+ style: { transform: "translateY(-2px)" },
7817
+ viewBox: "0 0 12 8",
7818
+ width: "12",
7819
+ xmlns: "http://www.w3.org/2000/svg",
7820
+ children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
7821
+ }
7822
+ ) }) : null
7823
+ ]
7824
+ }
7825
+ ) })
7826
+ ]
7827
+ }
7828
+ );
7829
+ };
7830
+ Tooltip.displayName = "Tooltip";
7831
+
7832
+ // src/components/WistiaLogo/WistiaLogo.tsx
7833
+ var import_styled_components44 = __toESM(require("styled-components"));
7832
7834
  var import_type_guards26 = require("@wistia/type-guards");
7833
7835
  var import_jsx_runtime195 = require("react/jsx-runtime");
7834
7836
  var renderBrandmark = (brandmarkColor, iconOnly) => {
@@ -7870,7 +7872,7 @@ var computedViewBox = (iconOnly) => {
7870
7872
  }
7871
7873
  return "0 0 144 31.47";
7872
7874
  };
7873
- var WistiaLogoComponent = import_styled_components43.default.svg`
7875
+ var WistiaLogoComponent = import_styled_components44.default.svg`
7874
7876
  height: ${({ height }) => `${height}px`};
7875
7877
 
7876
7878
  /* ensure it will always fit on mobile */
@@ -7932,6 +7934,151 @@ var WistiaLogo = ({
7932
7934
  return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("a", { href, children: Logo }) : Logo;
7933
7935
  };
7934
7936
  WistiaLogo.displayName = "WistiaLogo";
7937
+
7938
+ // src/components/Input/Input.tsx
7939
+ var import_react30 = require("react");
7940
+ var import_styled_components45 = __toESM(require("styled-components"));
7941
+ var import_type_guards27 = require("@wistia/type-guards");
7942
+ var import_jsx_runtime196 = require("react/jsx-runtime");
7943
+ var inputStyles = import_styled_components45.css`
7944
+ --wui-input-color-bg: var(--wui-color-bg-surface);
7945
+ --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
7946
+ --wui-input-color-border: var(--wui-color-border);
7947
+ --wui-input-color-border-focus: var(--wui-color-border-active);
7948
+ --wui-input-color-border-error: var(--wui-color-border-error);
7949
+ --wui-input-color-border-disabled: var(--wui-color-border-disabled);
7950
+ --wui-input-border-radius: var(--wui-border-radius-rounded);
7951
+ --wui-input-multiline-border-radius: var(--wui-border-radius-02);
7952
+ --wui-input-vertical-padding: var(--wui-space-02);
7953
+ --wui-input-horizontal-padding: var(--wui-space-03);
7954
+ --wui-input-placeholder: var(--wui-gray-10);
7955
+ --wui-input-color-text-error: var(--wui-color-text-error);
7956
+
7957
+ input,
7958
+ textarea {
7959
+ padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
7960
+ background-color: var(--wui-input-color-bg);
7961
+ border: 1px solid var(--wui-input-color-border);
7962
+ border-radius: var(--wui-input-border-radius);
7963
+
7964
+ &::placeholder {
7965
+ color: var(--wui-input-placeholder);
7966
+ opacity: 1; /* Firefox */
7967
+ }
7968
+
7969
+ &:focus {
7970
+ border-color: var(--wui-input-color-border-focus);
7971
+ }
7972
+
7973
+ &[aria-invalid='true'] {
7974
+ border-color: var(--wui-input-color-border-error);
7975
+ color: var(--wui-input-color-text-error);
7976
+ }
7977
+
7978
+ &:disabled {
7979
+ border-color: var(--wui-color-bg-surface-disabled);
7980
+ background-color: var(--wui-color-bg-surface-disabled);
7981
+ }
7982
+ }
7983
+ `;
7984
+ var StyledInputContainer = import_styled_components45.default.div`
7985
+ display: inline-flex;
7986
+ position: relative;
7987
+ ${inputStyles};
7988
+ width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
7989
+
7990
+ input,
7991
+ textarea {
7992
+ width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
7993
+ ${({ $monospace }) => $monospace && "font-family: var(--wui-typography-family-mono);"}
7994
+ }
7995
+
7996
+ textarea {
7997
+ border-radius: var(--wui-input-multiline-border-radius);
7998
+ }
7999
+
8000
+ .wui-input-left-icon {
8001
+ display: flex;
8002
+ align-items: center;
8003
+ position: absolute;
8004
+ top: 50%;
8005
+ left: var(--wui-input-horizontal-padding);
8006
+ transform: translateY(-50%);
8007
+ }
8008
+
8009
+ :has(.wui-input-left-icon) input,
8010
+ :has(.wui-input-left-icon) textarea {
8011
+ padding-left: 32px;
8012
+ }
8013
+
8014
+ .wui-input-right-icon {
8015
+ display: flex;
8016
+ align-items: center;
8017
+ position: absolute;
8018
+ top: 50%;
8019
+ right: var(--wui-input-horizontal-padding);
8020
+ transform: translateY(-50%);
8021
+ }
8022
+
8023
+ :has(.wui-input-right-icon) input,
8024
+ :has(.wui-input-right-icon) textarea {
8025
+ padding-right: 32px;
8026
+ }
8027
+ `;
8028
+ var Input = (0, import_react30.forwardRef)(
8029
+ ({
8030
+ fullWidth = false,
8031
+ monospace = false,
8032
+ type = "text",
8033
+ leftIcon,
8034
+ rightIcon,
8035
+ ...props
8036
+ }, ref) => {
8037
+ let leftIconToDisplay = leftIcon;
8038
+ if ((0, import_type_guards27.isNil)(leftIcon) && type === "search") {
8039
+ leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(Icon, { type: "search" });
8040
+ }
8041
+ if ((0, import_type_guards27.isNotNil)(leftIconToDisplay)) {
8042
+ leftIconToDisplay = (0, import_react30.cloneElement)(leftIconToDisplay, {
8043
+ size: "md",
8044
+ className: "wui-input-left-icon"
8045
+ });
8046
+ }
8047
+ let rightIconToDisplay = rightIcon;
8048
+ if ((0, import_type_guards27.isNotNil)(rightIconToDisplay)) {
8049
+ rightIconToDisplay = (0, import_react30.cloneElement)(rightIconToDisplay, {
8050
+ size: "md",
8051
+ className: "wui-input-right-icon"
8052
+ });
8053
+ }
8054
+ return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)(
8055
+ StyledInputContainer,
8056
+ {
8057
+ $fullWidth: fullWidth,
8058
+ $monospace: monospace,
8059
+ children: [
8060
+ leftIconToDisplay ?? null,
8061
+ type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
8062
+ "textarea",
8063
+ {
8064
+ ...props,
8065
+ ref
8066
+ }
8067
+ ) : /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
8068
+ "input",
8069
+ {
8070
+ ...props,
8071
+ ref,
8072
+ type
8073
+ }
8074
+ ),
8075
+ rightIconToDisplay ?? null
8076
+ ]
8077
+ }
8078
+ );
8079
+ }
8080
+ );
8081
+ Input.displayName = "Input";
7935
8082
  // Annotate the CommonJS export names for ESM import in node:
7936
8083
  0 && (module.exports = {
7937
8084
  Avatar,
@@ -7952,6 +8099,7 @@ WistiaLogo.displayName = "WistiaLogo";
7952
8099
  Heading,
7953
8100
  Icon,
7954
8101
  IconButton,
8102
+ Input,
7955
8103
  Label,
7956
8104
  Link,
7957
8105
  Menu,