@wistia/ui 0.4.2 → 0.4.3-beta.a3a51555.977dc5c

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.4.2
3
+ * @license @wistia/ui v0.4.3-beta.a3a51555.977dc5c
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -1467,11 +1467,21 @@ var mq = {
1467
1467
  xlAndDown
1468
1468
  };
1469
1469
 
1470
+ // src/hooks/useBoolean/useBoolean.ts
1471
+ import { useState as useState2, useCallback as useCallback2 } from "react";
1472
+ var useBoolean = (initialValue = false) => {
1473
+ const [value, setValue] = useState2(initialValue);
1474
+ const toggle = useCallback2(() => setValue((val) => !val), []);
1475
+ const setTrue = useCallback2(() => setValue(true), []);
1476
+ const setFalse = useCallback2(() => setValue(false), []);
1477
+ return [value, toggle, setTrue, setFalse, setValue];
1478
+ };
1479
+
1470
1480
  // src/hooks/useMq/useMq.ts
1471
1481
  import { isBoolean } from "@wistia/type-guards";
1472
1482
 
1473
1483
  // src/hooks/useWindowSize/useWindowSize.ts
1474
- import { useState as useState2, useLayoutEffect } from "react";
1484
+ import { useState as useState3, useLayoutEffect } from "react";
1475
1485
  import { debounce } from "throttle-debounce";
1476
1486
 
1477
1487
  // src/private/helpers/isClient/isClient.ts
@@ -1479,7 +1489,7 @@ var isClient = () => typeof window !== "undefined" && typeof document !== "undef
1479
1489
 
1480
1490
  // src/hooks/useWindowSize/useWindowSize.ts
1481
1491
  var useWindowSize = (interval = 0) => {
1482
- const [dimensions, setDimensions] = useState2({
1492
+ const [dimensions, setDimensions] = useState3({
1483
1493
  width: isClient() ? window.innerWidth : 0,
1484
1494
  height: isClient() ? window.innerHeight : 0
1485
1495
  });
@@ -1534,8 +1544,85 @@ var useActiveMq = () => {
1534
1544
  });
1535
1545
  };
1536
1546
 
1547
+ // src/hooks/useKey/useKey.ts
1548
+ import { useMemo as useMemo2 } from "react";
1549
+
1550
+ // src/private/hooks/useEvent/useEvent.ts
1551
+ import { useEffect as useEffect2, useRef as useRef2 } from "react";
1552
+ var isEventTargetSupported = (eventTarget) => (
1553
+ // @ts-expect-error the compiler thinks that addEventListener may not exist on eventTarget, but we still need to check it.
1554
+ // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
1555
+ !!(typeof eventTarget === "object" && eventTarget?.addEventListener)
1556
+ );
1557
+ var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
1558
+ const savedEventHandler = useRef2();
1559
+ const savedEventOptions = useRef2();
1560
+ useEffect2(() => {
1561
+ savedEventHandler.current = eventHandler;
1562
+ }, [eventHandler]);
1563
+ useEffect2(() => {
1564
+ savedEventOptions.current = eventOptions;
1565
+ }, [eventOptions]);
1566
+ useEffect2(() => {
1567
+ if (!eventName || !isEventTargetSupported(eventTarget)) {
1568
+ return;
1569
+ }
1570
+ const eventListener = (event) => {
1571
+ if (savedEventHandler.current !== void 0) {
1572
+ return savedEventHandler.current(event);
1573
+ }
1574
+ return () => {
1575
+ };
1576
+ };
1577
+ eventTarget.addEventListener(eventName, eventListener, savedEventOptions.current);
1578
+ return () => {
1579
+ eventTarget.removeEventListener(eventName, eventListener, savedEventOptions.current);
1580
+ };
1581
+ }, [eventName, eventTarget, savedEventOptions]);
1582
+ };
1583
+
1584
+ // src/hooks/useKey/useKey.ts
1585
+ var createKeyPredicate = (keyFilter) => {
1586
+ if (typeof keyFilter === "function") {
1587
+ return keyFilter;
1588
+ }
1589
+ if (typeof keyFilter === "string") {
1590
+ return (event) => event.key === keyFilter;
1591
+ }
1592
+ if (keyFilter !== null && keyFilter !== void 0 && !!keyFilter) {
1593
+ return () => true;
1594
+ }
1595
+ return () => false;
1596
+ };
1597
+ var useKey = (key, eventHandler, options = {}, dependencies = [key]) => {
1598
+ const { eventName = "keydown", eventTarget, eventOptions } = options;
1599
+ const memoizedEventHandler = useMemo2(() => {
1600
+ const predicate = createKeyPredicate(key);
1601
+ return (handlerEvent) => {
1602
+ if (["INPUT", "TEXTAREA", "SELECT"].includes(document.activeElement?.nodeName ?? "") || document.activeElement?.isContentEditable) {
1603
+ return;
1604
+ }
1605
+ if (predicate(handlerEvent)) {
1606
+ return eventHandler(handlerEvent);
1607
+ }
1608
+ };
1609
+ }, dependencies);
1610
+ useEvent(eventName, memoizedEventHandler, eventTarget, eventOptions);
1611
+ };
1612
+
1613
+ // src/hooks/useAriaLive/useAriaLive.tsx
1614
+ import { useContext } from "react";
1615
+ import { isNil as isNil2 } from "@wistia/type-guards";
1616
+ var useAriaLive = () => {
1617
+ const context = useContext(AriaLiveContext);
1618
+ if (isNil2(context)) {
1619
+ throw new Error("useAriaLive must be used within an AriaLiveProvider");
1620
+ }
1621
+ return context;
1622
+ };
1623
+
1537
1624
  // src/hooks/useToast/useToast.tsx
1538
- import { useCallback as useCallback2 } from "react";
1625
+ import { useCallback as useCallback3 } from "react";
1539
1626
  import { toast as sonnerToast } from "sonner";
1540
1627
 
1541
1628
  // src/private/components/Toast/Toast.tsx
@@ -1797,7 +1884,7 @@ Toast.displayName = "Toast";
1797
1884
  // src/hooks/useToast/useToast.tsx
1798
1885
  import { jsx as jsx6 } from "react/jsx-runtime";
1799
1886
  var useToast = () => {
1800
- return useCallback2(
1887
+ return useCallback3(
1801
1888
  ({ message, action, colorScheme, icon, position = "bottom-left", duration = 3e3 }) => {
1802
1889
  sonnerToast.custom(
1803
1890
  () => {
@@ -1818,17 +1905,6 @@ var useToast = () => {
1818
1905
  );
1819
1906
  };
1820
1907
 
1821
- // src/hooks/useAriaLive/useAriaLive.tsx
1822
- import { useContext } from "react";
1823
- import { isNil as isNil2 } from "@wistia/type-guards";
1824
- var useAriaLive = () => {
1825
- const context = useContext(AriaLiveContext);
1826
- if (isNil2(context)) {
1827
- throw new Error("useAriaLive must be used within an AriaLiveProvider");
1828
- }
1829
- return context;
1830
- };
1831
-
1832
1908
  // src/components/ActionButton/ActionButton.tsx
1833
1909
  import { forwardRef as forwardRef3 } from "react";
1834
1910
  import styled6, { css as css14 } from "styled-components";
@@ -5201,13 +5277,13 @@ var iconMap = {
5201
5277
 
5202
5278
  // src/private/hooks/useResponsiveProp/useResponsiveProp.ts
5203
5279
  import { isNotUndefined, isRecord, isUndefined } from "@wistia/type-guards";
5204
- import { useMemo as useMemo2 } from "react";
5280
+ import { useMemo as useMemo3 } from "react";
5205
5281
  var isResponsiveObject = (values) => {
5206
5282
  return typeof values === "object" && values !== null && !Array.isArray(values) && "base" in values;
5207
5283
  };
5208
5284
  var useResponsiveProp = (values) => {
5209
5285
  const activeMediaQueries = useActiveMq();
5210
- return useMemo2(() => {
5286
+ return useMemo3(() => {
5211
5287
  if (isRecord(values) && isResponsiveObject(values)) {
5212
5288
  const mq2 = activeMediaQueries.find((key) => key in values);
5213
5289
  return isNotUndefined(mq2) && isNotUndefined(values[mq2]) ? values[mq2] : values.base;
@@ -5655,7 +5731,7 @@ var ActionButton = forwardRef3(
5655
5731
  ActionButton.displayName = "ActionButton";
5656
5732
 
5657
5733
  // src/components/Avatar/Avatar.tsx
5658
- import { useState as useState3, useMemo as useMemo3 } from "react";
5734
+ import { useState as useState4, useMemo as useMemo4 } from "react";
5659
5735
  import { isNil as isNil6 } from "@wistia/type-guards";
5660
5736
  import styled8 from "styled-components";
5661
5737
 
@@ -5786,7 +5862,7 @@ var Avatar = ({
5786
5862
  onImageLoad,
5787
5863
  ...otherProps
5788
5864
  }) => {
5789
- const [imageLoadState, setImageLoadState] = useState3(null);
5865
+ const [imageLoadState, setImageLoadState] = useState4(null);
5790
5866
  const handleImageLoad = () => {
5791
5867
  setImageLoadState("loaded");
5792
5868
  onImageLoad?.("image");
@@ -5796,7 +5872,7 @@ var Avatar = ({
5796
5872
  onImageLoad?.("initials");
5797
5873
  };
5798
5874
  const avatarSize = heightAndWidth ?? avatarSizeMap[size];
5799
- const avatarColor = useMemo3(() => chooseColorScheme(name), [name]);
5875
+ const avatarColor = useMemo4(() => chooseColorScheme(name), [name]);
5800
5876
  const showInitials = isNil6(imageUrl) || imageLoadState === "error";
5801
5877
  return /* @__PURE__ */ jsx165(
5802
5878
  AvatarWrapper,
@@ -5996,10 +6072,57 @@ var Box = ({
5996
6072
  };
5997
6073
  Box.displayName = "Box";
5998
6074
 
5999
- // src/components/ButtonGroup/ButtonGroup.tsx
6075
+ // src/components/Breadcrumbs/Breadcrumbs.tsx
6000
6076
  import styled11 from "styled-components";
6001
- import { isNil as isNil8 } from "@wistia/type-guards";
6002
6077
  import { jsx as jsx168 } from "react/jsx-runtime";
6078
+ var StyledBreadcrumbs = styled11.nav`
6079
+ display: flex;
6080
+ align-items: center;
6081
+ gap: var(--wui-space-01);
6082
+
6083
+ > svg:last-of-type {
6084
+ display: none;
6085
+ }
6086
+ `;
6087
+ var Breadcrumbs = ({ children, ...props }) => {
6088
+ return /* @__PURE__ */ jsx168(
6089
+ StyledBreadcrumbs,
6090
+ {
6091
+ "aria-label": "Breadcrumbs",
6092
+ ...props,
6093
+ children
6094
+ }
6095
+ );
6096
+ };
6097
+ Breadcrumbs.displayName = "Breadcrumbs";
6098
+
6099
+ // src/components/Breadcrumbs/Breadcrumb.tsx
6100
+ import { Fragment as Fragment2, jsx as jsx169, jsxs as jsxs8 } from "react/jsx-runtime";
6101
+ var Breadcrumb = ({ icon, href, children }) => {
6102
+ return /* @__PURE__ */ jsxs8(Fragment2, { children: [
6103
+ /* @__PURE__ */ jsx169(
6104
+ Button,
6105
+ {
6106
+ href,
6107
+ leftIcon: icon,
6108
+ variant: "ghost",
6109
+ children
6110
+ }
6111
+ ),
6112
+ /* @__PURE__ */ jsx169(
6113
+ Icon,
6114
+ {
6115
+ size: "sm",
6116
+ type: "caret-right"
6117
+ }
6118
+ )
6119
+ ] });
6120
+ };
6121
+
6122
+ // src/components/ButtonGroup/ButtonGroup.tsx
6123
+ import styled12 from "styled-components";
6124
+ import { isNil as isNil8 } from "@wistia/type-guards";
6125
+ import { jsx as jsx170 } from "react/jsx-runtime";
6003
6126
  var getAlignment = (align) => {
6004
6127
  if (align === "center") {
6005
6128
  return "center";
@@ -6012,7 +6135,7 @@ var getAlignment = (align) => {
6012
6135
  }
6013
6136
  return "flex-start";
6014
6137
  };
6015
- var ButtonGroupComponent = styled11.div`
6138
+ var ButtonGroupComponent = styled12.div`
6016
6139
  display: flex;
6017
6140
 
6018
6141
  /* this helps ensure that primary buttons appear at the top of the column */
@@ -6041,7 +6164,7 @@ var ButtonGroup = ({
6041
6164
  if (isNil8(children)) {
6042
6165
  return null;
6043
6166
  }
6044
- return /* @__PURE__ */ jsx168(
6167
+ return /* @__PURE__ */ jsx170(
6045
6168
  ButtonGroupComponent,
6046
6169
  {
6047
6170
  $align: align,
@@ -6054,9 +6177,9 @@ var ButtonGroup = ({
6054
6177
  ButtonGroup.displayName = "ButtonGroup";
6055
6178
 
6056
6179
  // src/components/Card/Card.tsx
6057
- import styled12 from "styled-components";
6058
- import { jsx as jsx169 } from "react/jsx-runtime";
6059
- var StyledCard = styled12(Box)`
6180
+ import styled13 from "styled-components";
6181
+ import { jsx as jsx171 } from "react/jsx-runtime";
6182
+ var StyledCard = styled13(Box)`
6060
6183
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6061
6184
  box-sizing: border-box;
6062
6185
  padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
@@ -6089,7 +6212,7 @@ var Card = ({
6089
6212
  prominence = "secondary",
6090
6213
  border = false,
6091
6214
  ...props
6092
- }) => /* @__PURE__ */ jsx169(
6215
+ }) => /* @__PURE__ */ jsx171(
6093
6216
  StyledCard,
6094
6217
  {
6095
6218
  $backgroundColor: prominenceMap[prominence].backgroundColor,
@@ -6107,15 +6230,15 @@ Card.displayName = "Card";
6107
6230
  // src/components/Checkbox/Checkbox.tsx
6108
6231
  import { forwardRef as forwardRef6, useId } from "react";
6109
6232
  import { Root as CheckboxRoot, Indicator as CheckboxIndicator } from "@radix-ui/react-checkbox";
6110
- import styled16 from "styled-components";
6233
+ import styled17 from "styled-components";
6111
6234
  import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
6112
6235
 
6113
6236
  // src/components/Label/Label.tsx
6114
- import styled14, { css as css16 } from "styled-components";
6237
+ import styled15, { css as css16 } from "styled-components";
6115
6238
 
6116
6239
  // src/components/Heading/Heading.tsx
6117
6240
  import { forwardRef as forwardRef5 } from "react";
6118
- import styled13, { css as css15 } from "styled-components";
6241
+ import styled14, { css as css15 } from "styled-components";
6119
6242
 
6120
6243
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
6121
6244
  var makePolymorphic = (component) => {
@@ -6123,7 +6246,7 @@ var makePolymorphic = (component) => {
6123
6246
  };
6124
6247
 
6125
6248
  // src/components/Heading/Heading.tsx
6126
- import { jsx as jsx170 } from "react/jsx-runtime";
6249
+ import { jsx as jsx172 } from "react/jsx-runtime";
6127
6250
  var heroStyle = css15`
6128
6251
  --font-family: var(--wui-typography-heading-hero-family);
6129
6252
  --font-size: var(--wui-typography-heading-hero-size);
@@ -6176,7 +6299,7 @@ var variantStyleMap = {
6176
6299
  heading6: heading6TextStyle
6177
6300
  };
6178
6301
  var DEFAULT_ELEMENT = "h1";
6179
- var StyledHeading = styled13.div`
6302
+ var StyledHeading = styled14.div`
6180
6303
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6181
6304
  font-family: var(--font-family);
6182
6305
  font-size: var(--font-size);
@@ -6219,7 +6342,7 @@ var HeadingComponent = forwardRef5(
6219
6342
  variant = "heading1",
6220
6343
  renderAs,
6221
6344
  ...otherProps
6222
- }, ref) => /* @__PURE__ */ jsx170(
6345
+ }, ref) => /* @__PURE__ */ jsx172(
6223
6346
  StyledHeading,
6224
6347
  {
6225
6348
  ref,
@@ -6239,7 +6362,7 @@ HeadingComponent.displayName = "Heading";
6239
6362
  var Heading = makePolymorphic(HeadingComponent);
6240
6363
 
6241
6364
  // src/components/Label/Label.tsx
6242
- import { jsx as jsx171 } from "react/jsx-runtime";
6365
+ import { jsx as jsx173 } from "react/jsx-runtime";
6243
6366
  var requiredStyle = css16`
6244
6367
  &::after {
6245
6368
  color: var(--wui-color-text-error);
@@ -6251,7 +6374,7 @@ var requiredStyle = css16`
6251
6374
  var disabledStyle = css16`
6252
6375
  color: var(--wui-color-text-disabled);
6253
6376
  `;
6254
- var StyledLabel2 = styled14(Heading).attrs({
6377
+ var StyledLabel2 = styled15(Heading).attrs({
6255
6378
  variant: "heading6",
6256
6379
  renderAs: "label"
6257
6380
  })`
@@ -6280,7 +6403,7 @@ var Label = ({
6280
6403
  required = false,
6281
6404
  screenReaderOnly = false,
6282
6405
  ...otherProps
6283
- }) => /* @__PURE__ */ jsx171(
6406
+ }) => /* @__PURE__ */ jsx173(
6284
6407
  StyledLabel2,
6285
6408
  {
6286
6409
  ...otherProps,
@@ -6294,10 +6417,10 @@ var Label = ({
6294
6417
  Label.displayName = "Label";
6295
6418
 
6296
6419
  // src/components/Label/LabelDescription.tsx
6297
- import styled15 from "styled-components";
6420
+ import styled16 from "styled-components";
6298
6421
  import { isNil as isNil9 } from "@wistia/type-guards";
6299
- import { jsx as jsx172 } from "react/jsx-runtime";
6300
- var StyledLabelDescription = styled15.div`
6422
+ import { jsx as jsx174 } from "react/jsx-runtime";
6423
+ var StyledLabelDescription = styled16.div`
6301
6424
  color: var(--wui-color-text-secondary);
6302
6425
  font-size: var(--wui-typography-body-4-size);
6303
6426
  font-weight: var(--wui-typography-body-4-weight);
@@ -6310,13 +6433,13 @@ var LabelDescription = ({
6310
6433
  if (isNil9(children)) {
6311
6434
  return null;
6312
6435
  }
6313
- return /* @__PURE__ */ jsx172(StyledLabelDescription, { ...props, children });
6436
+ return /* @__PURE__ */ jsx174(StyledLabelDescription, { ...props, children });
6314
6437
  };
6315
6438
  LabelDescription.displayName = "LabelDescription";
6316
6439
 
6317
6440
  // src/components/Checkbox/Checkbox.tsx
6318
- import { jsx as jsx173, jsxs as jsxs8 } from "react/jsx-runtime";
6319
- var CheckIcon = () => /* @__PURE__ */ jsx173(
6441
+ import { jsx as jsx175, jsxs as jsxs9 } from "react/jsx-runtime";
6442
+ var CheckIcon = () => /* @__PURE__ */ jsx175(
6320
6443
  "svg",
6321
6444
  {
6322
6445
  fill: "inherit",
@@ -6324,7 +6447,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx173(
6324
6447
  viewBox: "0 0 10 8",
6325
6448
  width: "10",
6326
6449
  xmlns: "http://www.w3.org/2000/svg",
6327
- children: /* @__PURE__ */ jsx173(
6450
+ children: /* @__PURE__ */ jsx175(
6328
6451
  "path",
6329
6452
  {
6330
6453
  d: "M3.47281 7.19303L0.377565 4.07999C0.191609 3.89297 0.191609 3.58973 0.377565 3.40268L1.05098 2.72537C1.23694 2.53833 1.53847 2.53833 1.72442 2.72537L3.80953 4.82245L8.27558 0.330729C8.46154 0.143704 8.76306 0.143704 8.94902 0.330729L9.62244 1.00804C9.8084 1.19506 9.8084 1.49831 9.62244 1.68535L4.14624 7.19305C3.96027 7.38008 3.65876 7.38008 3.47281 7.19303Z",
@@ -6333,7 +6456,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx173(
6333
6456
  )
6334
6457
  }
6335
6458
  );
6336
- var StyledCheckboxWrapper = styled16.div`
6459
+ var StyledCheckboxWrapper = styled17.div`
6337
6460
  display: flex;
6338
6461
  align-items: center;
6339
6462
  cursor: pointer;
@@ -6347,7 +6470,7 @@ var StyledCheckboxWrapper = styled16.div`
6347
6470
  background-color: #efefef;
6348
6471
  }
6349
6472
  `;
6350
- var StyledCheckboxRoot = styled16(CheckboxRoot)`
6473
+ var StyledCheckboxRoot = styled17(CheckboxRoot)`
6351
6474
  all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
6352
6475
  background-color: var(--wui-color-bg-fill-white);
6353
6476
  min-width: 16px;
@@ -6381,10 +6504,10 @@ var StyledCheckboxRoot = styled16(CheckboxRoot)`
6381
6504
  /* TODO Lamp to design focus state */
6382
6505
  }
6383
6506
  `;
6384
- var StyledCheckboxIndicator = styled16(CheckboxIndicator)`
6507
+ var StyledCheckboxIndicator = styled17(CheckboxIndicator)`
6385
6508
  display: flex;
6386
6509
  `;
6387
- var StyledLabelWrapper = styled16.div`
6510
+ var StyledLabelWrapper = styled17.div`
6388
6511
  display: flex;
6389
6512
  flex-direction: column;
6390
6513
  margin-left: var(--wui-space-02);
@@ -6405,8 +6528,8 @@ var Checkbox = forwardRef6(
6405
6528
  }, ref) => {
6406
6529
  const generatedId = useId();
6407
6530
  const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox-group-${generatedId}`;
6408
- return /* @__PURE__ */ jsxs8(StyledCheckboxWrapper, { children: [
6409
- /* @__PURE__ */ jsx173(
6531
+ return /* @__PURE__ */ jsxs9(StyledCheckboxWrapper, { children: [
6532
+ /* @__PURE__ */ jsx175(
6410
6533
  StyledCheckboxRoot,
6411
6534
  {
6412
6535
  ref,
@@ -6431,11 +6554,11 @@ var Checkbox = forwardRef6(
6431
6554
  required,
6432
6555
  value,
6433
6556
  ...otherProps,
6434
- children: /* @__PURE__ */ jsx173(StyledCheckboxIndicator, { children: /* @__PURE__ */ jsx173(CheckIcon, {}) })
6557
+ children: /* @__PURE__ */ jsx175(StyledCheckboxIndicator, { children: /* @__PURE__ */ jsx175(CheckIcon, {}) })
6435
6558
  }
6436
6559
  ),
6437
- /* @__PURE__ */ jsxs8(StyledLabelWrapper, { children: [
6438
- /* @__PURE__ */ jsx173(
6560
+ /* @__PURE__ */ jsxs9(StyledLabelWrapper, { children: [
6561
+ /* @__PURE__ */ jsx175(
6439
6562
  Label,
6440
6563
  {
6441
6564
  disabled,
@@ -6444,7 +6567,7 @@ var Checkbox = forwardRef6(
6444
6567
  children: label
6445
6568
  }
6446
6569
  ),
6447
- /* @__PURE__ */ jsx173(LabelDescription, { children: description })
6570
+ /* @__PURE__ */ jsx175(LabelDescription, { children: description })
6448
6571
  ] })
6449
6572
  ] });
6450
6573
  }
@@ -6452,8 +6575,8 @@ var Checkbox = forwardRef6(
6452
6575
  Checkbox.displayName = "Checkbox";
6453
6576
 
6454
6577
  // src/components/Divider/Divider.tsx
6455
- import styled17, { css as css17 } from "styled-components";
6456
- import { jsx as jsx174 } from "react/jsx-runtime";
6578
+ import styled18, { css as css17 } from "styled-components";
6579
+ import { jsx as jsx176 } from "react/jsx-runtime";
6457
6580
  var horizontalBorderCss = css17`
6458
6581
  border-top-color: var(--wui-color-border);
6459
6582
  border-top-style: solid;
@@ -6467,7 +6590,7 @@ var verticalBorderCss = css17`
6467
6590
  min-height: 100%;
6468
6591
  width: 1px;
6469
6592
  `;
6470
- var DividerComponent = styled17.div`
6593
+ var DividerComponent = styled18.div`
6471
6594
  ${({ $orientation }) => {
6472
6595
  switch ($orientation) {
6473
6596
  case "vertical":
@@ -6482,7 +6605,7 @@ var Divider = ({
6482
6605
  orientation = "horizontal",
6483
6606
  ...otherProps
6484
6607
  }) => {
6485
- return /* @__PURE__ */ jsx174(
6608
+ return /* @__PURE__ */ jsx176(
6486
6609
  DividerComponent,
6487
6610
  {
6488
6611
  $orientation: orientation,
@@ -6495,16 +6618,16 @@ var Divider = ({
6495
6618
  Divider.displayName = "Divider";
6496
6619
 
6497
6620
  // src/components/Form/Form.tsx
6498
- import { forwardRef as forwardRef8, useRef as useRef2, useMemo as useMemo4, createContext as createContext2, useState as useState4, useId as useId2 } from "react";
6499
- import styled19 from "styled-components";
6621
+ import { forwardRef as forwardRef8, useRef as useRef3, useMemo as useMemo5, createContext as createContext2, useState as useState5, useId as useId2 } from "react";
6622
+ import styled20 from "styled-components";
6500
6623
  import { isNotUndefined as isNotUndefined4, isUndefined as isUndefined3 } from "@wistia/type-guards";
6501
6624
 
6502
6625
  // src/components/Stack/Stack.tsx
6503
6626
  import { forwardRef as forwardRef7 } from "react";
6504
- import styled18 from "styled-components";
6505
- import { jsx as jsx175 } from "react/jsx-runtime";
6627
+ import styled19 from "styled-components";
6628
+ import { jsx as jsx177 } from "react/jsx-runtime";
6506
6629
  var DEFAULT_ELEMENT2 = "div";
6507
- var StyledStack = styled18.div`
6630
+ var StyledStack = styled19.div`
6508
6631
  display: flex;
6509
6632
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
6510
6633
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
@@ -6513,7 +6636,7 @@ var StackComponent = forwardRef7(
6513
6636
  ({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
6514
6637
  const responsiveGap = useResponsiveProp(gap);
6515
6638
  const responsiveDirection = useResponsiveProp(direction);
6516
- return /* @__PURE__ */ jsx175(
6639
+ return /* @__PURE__ */ jsx177(
6517
6640
  StyledStack,
6518
6641
  {
6519
6642
  ref,
@@ -6529,8 +6652,8 @@ StackComponent.displayName = "Stack";
6529
6652
  var Stack = makePolymorphic(StackComponent);
6530
6653
 
6531
6654
  // src/components/Form/Form.tsx
6532
- import { jsx as jsx176 } from "react/jsx-runtime";
6533
- var StyledForm = styled19.form`
6655
+ import { jsx as jsx178 } from "react/jsx-runtime";
6656
+ var StyledForm = styled20.form`
6534
6657
  --form-default-width: 690px;
6535
6658
 
6536
6659
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
@@ -6543,9 +6666,9 @@ var FormContext = createContext2({
6543
6666
  formId: ""
6544
6667
  });
6545
6668
  var FormComponent = ({ children, action, values = {}, validate, fullWidth = false, ...props }, forwardedRef) => {
6546
- const [errors, setErrors] = useState4({});
6547
- const [hasSubmitted, setHasSubmitted] = useState4(false);
6548
- const innerRef = useRef2();
6669
+ const [errors, setErrors] = useState5({});
6670
+ const [hasSubmitted, setHasSubmitted] = useState5(false);
6671
+ const innerRef = useRef3();
6549
6672
  const ref = forwardedRef ?? innerRef;
6550
6673
  const autoId = useId2();
6551
6674
  const id = props.id ?? autoId;
@@ -6589,7 +6712,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
6589
6712
  void action(null);
6590
6713
  }
6591
6714
  };
6592
- const context = useMemo4(() => {
6715
+ const context = useMemo5(() => {
6593
6716
  return {
6594
6717
  values,
6595
6718
  errors,
@@ -6599,7 +6722,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
6599
6722
  }, [values, errors, id, hasSubmitted]);
6600
6723
  return (
6601
6724
  // @ts-expect-error - generic context providers are a giant pain
6602
- /* @__PURE__ */ jsx176(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx176(
6725
+ /* @__PURE__ */ jsx178(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx178(
6603
6726
  Stack,
6604
6727
  {
6605
6728
  gap: "space-05",
@@ -6620,12 +6743,12 @@ FormComponent.displayName = "Form";
6620
6743
  var Form = forwardRef8(FormComponent);
6621
6744
 
6622
6745
  // src/components/Form/useFormState.tsx
6623
- import { useCallback as useCallback3, useState as useState5 } from "react";
6746
+ import { useCallback as useCallback4, useState as useState6 } from "react";
6624
6747
  var useFormState = (action, initialData = {}) => {
6625
- const [data, setData] = useState5(initialData);
6626
- const [isPending, setIsPending] = useState5(false);
6627
- const [error, setError] = useState5(null);
6628
- const formAction = useCallback3(
6748
+ const [data, setData] = useState6(initialData);
6749
+ const [isPending, setIsPending] = useState6(false);
6750
+ const [error, setError] = useState6(null);
6751
+ const formAction = useCallback4(
6629
6752
  async (nextFormData) => {
6630
6753
  if (nextFormData === null) {
6631
6754
  setData(initialData);
@@ -6656,23 +6779,23 @@ var useFormState = (action, initialData = {}) => {
6656
6779
  };
6657
6780
 
6658
6781
  // src/components/Form/FormErrorSummary.tsx
6659
- import { useContext as useContext2, useRef as useRef3 } from "react";
6782
+ import { useContext as useContext2, useRef as useRef4 } from "react";
6660
6783
  import { isArray, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
6661
- import { jsx as jsx177, jsxs as jsxs9 } from "react/jsx-runtime";
6784
+ import { jsx as jsx179, jsxs as jsxs10 } from "react/jsx-runtime";
6662
6785
  var ErrorItem = ({ name, error, formId }) => {
6663
- return /* @__PURE__ */ jsx177("li", { children: /* @__PURE__ */ jsx177(Link, { href: `${formId}-${name}`, children: error }) }, name);
6786
+ return /* @__PURE__ */ jsx179("li", { children: /* @__PURE__ */ jsx179(Link, { href: `${formId}-${name}`, children: error }) }, name);
6664
6787
  };
6665
6788
  var FormErrorSummary = ({ description }) => {
6666
- const ref = useRef3(null);
6789
+ const ref = useRef4(null);
6667
6790
  const { formId, errors, hasSubmitted } = useContext2(FormContext);
6668
6791
  const isValid = Object.keys(errors).length === 0;
6669
6792
  if (isValid || !hasSubmitted) {
6670
6793
  return null;
6671
6794
  }
6672
- return /* @__PURE__ */ jsxs9("div", { ref, children: [
6673
- /* @__PURE__ */ jsx177("p", { children: description }),
6674
- /* @__PURE__ */ jsx177("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined5(error)).map(
6675
- ([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx177(
6795
+ return /* @__PURE__ */ jsxs10("div", { ref, children: [
6796
+ /* @__PURE__ */ jsx179("p", { children: description }),
6797
+ /* @__PURE__ */ jsx179("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined5(error)).map(
6798
+ ([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx179(
6676
6799
  ErrorItem,
6677
6800
  {
6678
6801
  error: err,
@@ -6680,7 +6803,7 @@ var FormErrorSummary = ({ description }) => {
6680
6803
  name
6681
6804
  },
6682
6805
  err
6683
- )) : /* @__PURE__ */ jsx177(
6806
+ )) : /* @__PURE__ */ jsx179(
6684
6807
  ErrorItem,
6685
6808
  {
6686
6809
  error: error ?? "",
@@ -6695,13 +6818,13 @@ var FormErrorSummary = ({ description }) => {
6695
6818
 
6696
6819
  // src/components/FormField/FormField.tsx
6697
6820
  import { Children as Children2, cloneElement as cloneElement3, useContext as useContext3 } from "react";
6698
- import styled22 from "styled-components";
6821
+ import styled23 from "styled-components";
6699
6822
  import { isArray as isArray2, isNotNil as isNotNil7, isNotUndefined as isNotUndefined6, isUndefined as isUndefined4 } from "@wistia/type-guards";
6700
6823
 
6701
6824
  // src/components/Text/Text.tsx
6702
6825
  import { forwardRef as forwardRef9 } from "react";
6703
- import styled20, { css as css18 } from "styled-components";
6704
- import { jsx as jsx178 } from "react/jsx-runtime";
6826
+ import styled21, { css as css18 } from "styled-components";
6827
+ import { jsx as jsx180 } from "react/jsx-runtime";
6705
6828
  var bodyBoldStyles = css18`
6706
6829
  > strong,
6707
6830
  b {
@@ -6800,7 +6923,7 @@ var variantStyleMap2 = {
6800
6923
  label3: label3TextStyle,
6801
6924
  label4: label4TextStyle
6802
6925
  };
6803
- var StyledText = styled20.div`
6926
+ var StyledText = styled21.div`
6804
6927
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6805
6928
  --text-color: ${({ $prominence, $disabled }) => {
6806
6929
  if ($disabled) {
@@ -6854,7 +6977,7 @@ var TextComponent = forwardRef9(
6854
6977
  renderAs,
6855
6978
  ...otherProps
6856
6979
  }, ref) => {
6857
- return /* @__PURE__ */ jsx178(
6980
+ return /* @__PURE__ */ jsx180(
6858
6981
  StyledText,
6859
6982
  {
6860
6983
  ref,
@@ -6876,28 +6999,28 @@ TextComponent.displayName = "Text";
6876
6999
  var Text = makePolymorphic(TextComponent);
6877
7000
 
6878
7001
  // src/components/FormGroup/CheckboxGroup.tsx
6879
- import { createContext as createContext3, useMemo as useMemo5 } from "react";
7002
+ import { createContext as createContext3, useMemo as useMemo6 } from "react";
6880
7003
 
6881
7004
  // src/components/FormGroup/FormGroup.tsx
6882
- import styled21 from "styled-components";
6883
- import { useRef as useRef4 } from "react";
6884
- import { jsx as jsx179, jsxs as jsxs10 } from "react/jsx-runtime";
6885
- var StyledFieldset = styled21.fieldset`
7005
+ import styled22 from "styled-components";
7006
+ import { useRef as useRef5 } from "react";
7007
+ import { jsx as jsx181, jsxs as jsxs11 } from "react/jsx-runtime";
7008
+ var StyledFieldset = styled22.fieldset`
6886
7009
  border: 0;
6887
7010
  `;
6888
- var StyledLegend = styled21.legend`
7011
+ var StyledLegend = styled22.legend`
6889
7012
  margin-bottom: var(--space-01);
6890
7013
  `;
6891
7014
  var FormGroup = ({ children, label, ...props }) => {
6892
- const ref = useRef4();
6893
- return /* @__PURE__ */ jsxs10(
7015
+ const ref = useRef5();
7016
+ return /* @__PURE__ */ jsxs11(
6894
7017
  Stack,
6895
7018
  {
6896
7019
  ...props,
6897
7020
  ref,
6898
7021
  renderAs: StyledFieldset,
6899
7022
  children: [
6900
- /* @__PURE__ */ jsx179(
7023
+ /* @__PURE__ */ jsx181(
6901
7024
  Heading,
6902
7025
  {
6903
7026
  renderAs: StyledLegend,
@@ -6913,7 +7036,7 @@ var FormGroup = ({ children, label, ...props }) => {
6913
7036
  FormGroup.displayName = "FormGroup";
6914
7037
 
6915
7038
  // src/components/FormGroup/CheckboxGroup.tsx
6916
- import { jsx as jsx180 } from "react/jsx-runtime";
7039
+ import { jsx as jsx182 } from "react/jsx-runtime";
6917
7040
  var CheckboxGroupContext = createContext3(null);
6918
7041
  var CheckboxGroup = ({
6919
7042
  children,
@@ -6922,19 +7045,19 @@ var CheckboxGroup = ({
6922
7045
  value,
6923
7046
  ...props
6924
7047
  }) => {
6925
- const context = useMemo5(() => {
7048
+ const context = useMemo6(() => {
6926
7049
  return {
6927
7050
  name,
6928
7051
  onChange
6929
7052
  };
6930
7053
  }, [name, onChange]);
6931
- return /* @__PURE__ */ jsx180(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx180(FormGroup, { ...props, children }) });
7054
+ return /* @__PURE__ */ jsx182(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx182(FormGroup, { ...props, children }) });
6932
7055
  };
6933
7056
  CheckboxGroup.displayName = "CheckboxGroup";
6934
7057
 
6935
7058
  // src/components/FormField/FormField.tsx
6936
- import { jsx as jsx181, jsxs as jsxs11 } from "react/jsx-runtime";
6937
- var StyledFormField = styled22.div`
7059
+ import { jsx as jsx183, jsxs as jsxs12 } from "react/jsx-runtime";
7060
+ var StyledFormField = styled23.div`
6938
7061
  --form-field-spacing: var(--wui-space-01);
6939
7062
  --form-field-error-color: var(--wui-color-text-secondary-error);
6940
7063
 
@@ -6942,7 +7065,7 @@ var StyledFormField = styled22.div`
6942
7065
  flex-direction: column;
6943
7066
  gap: var(--form-field-spacing);
6944
7067
  `;
6945
- var StyledErrorList = styled22.ul`
7068
+ var StyledErrorList = styled23.ul`
6946
7069
  margin: 0;
6947
7070
  padding: 0;
6948
7071
  padding-left: var(--wui-space-04);
@@ -6952,7 +7075,7 @@ var StyledErrorList = styled22.ul`
6952
7075
  `;
6953
7076
  var ErrorMessages = ({ errors, id }) => {
6954
7077
  const isMultipleErrors = isArray2(errors);
6955
- return isMultipleErrors ? /* @__PURE__ */ jsx181(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx181(
7078
+ return isMultipleErrors ? /* @__PURE__ */ jsx183(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx183(
6956
7079
  Text,
6957
7080
  {
6958
7081
  colorScheme: "error",
@@ -6962,7 +7085,7 @@ var ErrorMessages = ({ errors, id }) => {
6962
7085
  children: error
6963
7086
  },
6964
7087
  `${id}-${index}`
6965
- )) }) : /* @__PURE__ */ jsx181(
7088
+ )) }) : /* @__PURE__ */ jsx183(
6966
7089
  Text,
6967
7090
  {
6968
7091
  colorScheme: "error",
@@ -7019,10 +7142,10 @@ var FormField = ({
7019
7142
  };
7020
7143
  }
7021
7144
  Children2.only(children);
7022
- return /* @__PURE__ */ jsxs11(StyledFormField, { ...props, children: [
7023
- !isInlineLabel && /* @__PURE__ */ jsx181(Label, { htmlFor: id, children: label }),
7145
+ return /* @__PURE__ */ jsxs12(StyledFormField, { ...props, children: [
7146
+ !isInlineLabel && /* @__PURE__ */ jsx183(Label, { htmlFor: id, children: label }),
7024
7147
  cloneElement3(children, childProps),
7025
- isNotNil7(computedError) ? /* @__PURE__ */ jsx181(
7148
+ isNotNil7(computedError) ? /* @__PURE__ */ jsx183(
7026
7149
  ErrorMessages,
7027
7150
  {
7028
7151
  errors: computedError,
@@ -7034,8 +7157,8 @@ var FormField = ({
7034
7157
  FormField.displayName = "FormField";
7035
7158
 
7036
7159
  // src/components/FormGroup/RadioGroup.tsx
7037
- import { createContext as createContext4, useMemo as useMemo6 } from "react";
7038
- import { jsx as jsx182 } from "react/jsx-runtime";
7160
+ import { createContext as createContext4, useMemo as useMemo7 } from "react";
7161
+ import { jsx as jsx184 } from "react/jsx-runtime";
7039
7162
  var RadioGroupContext = createContext4(null);
7040
7163
  var RadioGroup = ({
7041
7164
  children,
@@ -7044,21 +7167,21 @@ var RadioGroup = ({
7044
7167
  value,
7045
7168
  ...props
7046
7169
  }) => {
7047
- const context = useMemo6(() => {
7170
+ const context = useMemo7(() => {
7048
7171
  return {
7049
7172
  name,
7050
7173
  onChange
7051
7174
  };
7052
7175
  }, [name, onChange]);
7053
- return /* @__PURE__ */ jsx182(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx182(FormGroup, { ...props, children }) });
7176
+ return /* @__PURE__ */ jsx184(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx184(FormGroup, { ...props, children }) });
7054
7177
  };
7055
7178
  RadioGroup.displayName = "RadioGroup";
7056
7179
 
7057
7180
  // src/components/IconButton/IconButton.tsx
7058
7181
  import { Children as Children3, cloneElement as cloneElement4, forwardRef as forwardRef10 } from "react";
7059
- import styled23 from "styled-components";
7060
- import { jsx as jsx183 } from "react/jsx-runtime";
7061
- var StyledButton2 = styled23(Button)`
7182
+ import styled24 from "styled-components";
7183
+ import { jsx as jsx185 } from "react/jsx-runtime";
7184
+ var StyledButton2 = styled24(Button)`
7062
7185
  --icon-button-size-sm: 24px;
7063
7186
  --icon-button-size-md: 32px;
7064
7187
  --icon-button-size-lg: 40px;
@@ -7075,7 +7198,7 @@ var StyledButton2 = styled23(Button)`
7075
7198
  var IconButton = forwardRef10(
7076
7199
  ({ children, label, size = "md", ...props }, ref) => {
7077
7200
  const responsiveSize = useResponsiveProp(size);
7078
- return /* @__PURE__ */ jsx183(
7201
+ return /* @__PURE__ */ jsx185(
7079
7202
  StyledButton2,
7080
7203
  {
7081
7204
  ...props,
@@ -7093,10 +7216,10 @@ var IconButton = forwardRef10(
7093
7216
  IconButton.displayName = "IconButton";
7094
7217
 
7095
7218
  // src/components/Input/Input.tsx
7096
- import { forwardRef as forwardRef11, cloneElement as cloneElement5, useRef as useRef5 } from "react";
7097
- import styled24, { css as css19 } from "styled-components";
7219
+ import { forwardRef as forwardRef11, cloneElement as cloneElement5, useRef as useRef6 } from "react";
7220
+ import styled25, { css as css19 } from "styled-components";
7098
7221
  import { isNil as isNil10, isNotNil as isNotNil8 } from "@wistia/type-guards";
7099
- import { jsx as jsx184, jsxs as jsxs12 } from "react/jsx-runtime";
7222
+ import { jsx as jsx186, jsxs as jsxs13 } from "react/jsx-runtime";
7100
7223
  var inputStyles = css19`
7101
7224
  --wui-input-color-bg: var(--wui-color-bg-surface);
7102
7225
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -7138,7 +7261,7 @@ var inputStyles = css19`
7138
7261
  }
7139
7262
  }
7140
7263
  `;
7141
- var StyledInputContainer = styled24.div`
7264
+ var StyledInputContainer = styled25.div`
7142
7265
  display: inline-flex;
7143
7266
  position: relative;
7144
7267
  ${inputStyles};
@@ -7195,11 +7318,11 @@ var Input = forwardRef11(
7195
7318
  rightIcon,
7196
7319
  ...props
7197
7320
  }, externalRef) => {
7198
- const internalRef = useRef5();
7321
+ const internalRef = useRef6();
7199
7322
  const ref = isValidRef(externalRef) ? externalRef : internalRef;
7200
7323
  let leftIconToDisplay = leftIcon;
7201
7324
  if (isNil10(leftIcon) && type === "search") {
7202
- leftIconToDisplay = /* @__PURE__ */ jsx184(Icon, { type: "search" });
7325
+ leftIconToDisplay = /* @__PURE__ */ jsx186(Icon, { type: "search" });
7203
7326
  }
7204
7327
  if (isNotNil8(leftIconToDisplay)) {
7205
7328
  leftIconToDisplay = cloneElement5(leftIconToDisplay, {
@@ -7224,21 +7347,21 @@ var Input = forwardRef11(
7224
7347
  });
7225
7348
  }
7226
7349
  };
7227
- return /* @__PURE__ */ jsxs12(
7350
+ return /* @__PURE__ */ jsxs13(
7228
7351
  StyledInputContainer,
7229
7352
  {
7230
7353
  $fullWidth: fullWidth,
7231
7354
  $monospace: monospace,
7232
7355
  children: [
7233
7356
  leftIconToDisplay ?? null,
7234
- type === "multiline" ? /* @__PURE__ */ jsx184(
7357
+ type === "multiline" ? /* @__PURE__ */ jsx186(
7235
7358
  "textarea",
7236
7359
  {
7237
7360
  ...props,
7238
7361
  ref,
7239
7362
  onFocus: handleFocus
7240
7363
  }
7241
- ) : /* @__PURE__ */ jsx184(
7364
+ ) : /* @__PURE__ */ jsx186(
7242
7365
  "input",
7243
7366
  {
7244
7367
  ...props,
@@ -7256,7 +7379,7 @@ var Input = forwardRef11(
7256
7379
  Input.displayName = "Input";
7257
7380
 
7258
7381
  // src/components/Menu/Menu.tsx
7259
- import styled25, { css as css20, keyframes } from "styled-components";
7382
+ import styled26, { css as css20, keyframes } from "styled-components";
7260
7383
  import {
7261
7384
  DropdownMenu,
7262
7385
  DropdownMenuTrigger,
@@ -7264,7 +7387,7 @@ import {
7264
7387
  DropdownMenuContent
7265
7388
  } from "@radix-ui/react-dropdown-menu";
7266
7389
  import { isNotNil as isNotNil9, isNotUndefined as isNotUndefined7 } from "@wistia/type-guards";
7267
- import { jsx as jsx185, jsxs as jsxs13 } from "react/jsx-runtime";
7390
+ import { jsx as jsx187, jsxs as jsxs14 } from "react/jsx-runtime";
7268
7391
  var open = keyframes`
7269
7392
  from {
7270
7393
  opacity: 0;
@@ -7344,7 +7467,7 @@ var compactMenuItemCss = css20`
7344
7467
  --menu-label-font-weight: var(--wui-typography-label-4-weight);
7345
7468
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
7346
7469
  `;
7347
- var MenuContent = styled25(DropdownMenuContent)`
7470
+ var MenuContent = styled26(DropdownMenuContent)`
7348
7471
  ${menuContentCss}
7349
7472
  ${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss}
7350
7473
  `;
@@ -7370,24 +7493,24 @@ var Menu = ({
7370
7493
  onOpenChange: () => null
7371
7494
  };
7372
7495
  }
7373
- return /* @__PURE__ */ jsxs13(
7496
+ return /* @__PURE__ */ jsxs14(
7374
7497
  DropdownMenu,
7375
7498
  {
7376
7499
  modal: false,
7377
7500
  ...controlProps,
7378
7501
  children: [
7379
- /* @__PURE__ */ jsx185(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx185(
7502
+ /* @__PURE__ */ jsx187(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx187(
7380
7503
  Button,
7381
7504
  {
7382
7505
  "aria-expanded": isOpen,
7383
7506
  disabled,
7384
7507
  forceState: isOpen ? "active" : void 0,
7385
- rightIcon: /* @__PURE__ */ jsx185(Icon, { type: "caret-down" }),
7508
+ rightIcon: /* @__PURE__ */ jsx187(Icon, { type: "caret-down" }),
7386
7509
  ...triggerProps,
7387
7510
  children: label
7388
7511
  }
7389
7512
  ) }),
7390
- /* @__PURE__ */ jsx185(DropdownMenuPortal, { children: /* @__PURE__ */ jsx185(
7513
+ /* @__PURE__ */ jsx187(DropdownMenuPortal, { children: /* @__PURE__ */ jsx187(
7391
7514
  MenuContent,
7392
7515
  {
7393
7516
  ...props,
@@ -7407,19 +7530,19 @@ var Menu = ({
7407
7530
  Menu.displayName = "Menu";
7408
7531
 
7409
7532
  // src/components/Menu/MenuLabel.tsx
7410
- import styled26 from "styled-components";
7533
+ import styled27 from "styled-components";
7411
7534
  import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
7412
- import { jsx as jsx186 } from "react/jsx-runtime";
7413
- var StyledMenuLabel = styled26(DropdownMenuLabel)`
7535
+ import { jsx as jsx188 } from "react/jsx-runtime";
7536
+ var StyledMenuLabel = styled27(DropdownMenuLabel)`
7414
7537
  padding: var(--wui-space-02);
7415
7538
  `;
7416
7539
  var MenuLabel = ({ children, ...props }) => {
7417
- return /* @__PURE__ */ jsx186(
7540
+ return /* @__PURE__ */ jsx188(
7418
7541
  StyledMenuLabel,
7419
7542
  {
7420
7543
  asChild: true,
7421
7544
  ...props,
7422
- children: /* @__PURE__ */ jsx186(
7545
+ children: /* @__PURE__ */ jsx188(
7423
7546
  Heading,
7424
7547
  {
7425
7548
  renderAs: "span",
@@ -7434,8 +7557,8 @@ var MenuLabel = ({ children, ...props }) => {
7434
7557
  MenuLabel.displayName = "MenuLabel";
7435
7558
 
7436
7559
  // src/components/Menu/SubMenu.tsx
7437
- import { useState as useState6 } from "react";
7438
- import styled29 from "styled-components";
7560
+ import { useState as useState7 } from "react";
7561
+ import styled30 from "styled-components";
7439
7562
  import {
7440
7563
  DropdownMenuPortal as DropdownMenuPortal2,
7441
7564
  DropdownMenuSub,
@@ -7448,10 +7571,10 @@ import { isNotNil as isNotNil11 } from "@wistia/type-guards";
7448
7571
 
7449
7572
  // src/components/Menu/MenuItemButton.tsx
7450
7573
  import { forwardRef as forwardRef12 } from "react";
7451
- import styled27 from "styled-components";
7574
+ import styled28 from "styled-components";
7452
7575
  import { isNotNil as isNotNil10, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
7453
- import { jsx as jsx187, jsxs as jsxs14 } from "react/jsx-runtime";
7454
- var StyledButton3 = styled27(Button)`
7576
+ import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7577
+ var StyledButton3 = styled28(Button)`
7455
7578
  ${({ colorScheme }) => getColorScheme(colorScheme)};
7456
7579
 
7457
7580
  display: flex;
@@ -7489,7 +7612,7 @@ var StyledButton3 = styled27(Button)`
7489
7612
  padding-left: var(--wui-space-04);
7490
7613
  }
7491
7614
  `;
7492
- var StyledLeftIconContainer = styled27.div`
7615
+ var StyledLeftIconContainer = styled28.div`
7493
7616
  height: var(--menu-item-left-icon-size);
7494
7617
  width: var(--menu-item-left-icon-size);
7495
7618
 
@@ -7498,7 +7621,7 @@ var StyledLeftIconContainer = styled27.div`
7498
7621
  width: var(--menu-item-left-icon-size);
7499
7622
  }
7500
7623
  `;
7501
- var StyledRightIconContainer = styled27.div`
7624
+ var StyledRightIconContainer = styled28.div`
7502
7625
  height: var(--menu-item-right-icon-size);
7503
7626
  width: var(--menu-item-right-icon-size);
7504
7627
 
@@ -7507,13 +7630,13 @@ var StyledRightIconContainer = styled27.div`
7507
7630
  width: var(--menu-item-right-icon-size);
7508
7631
  }
7509
7632
  `;
7510
- var StyledLabelAndDescriptionContainer = styled27.div`
7633
+ var StyledLabelAndDescriptionContainer = styled28.div`
7511
7634
  display: flex;
7512
7635
  flex-direction: column;
7513
7636
  gap: var(--menu-label-description-gap);
7514
7637
  flex-basis: 100%;
7515
7638
  `;
7516
- var StyledBadgeContainer = styled27.div`
7639
+ var StyledBadgeContainer = styled28.div`
7517
7640
  align-self: start;
7518
7641
  justify-self: end;
7519
7642
  font-size: var(--wui-typography-label-4-size);
@@ -7528,7 +7651,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7528
7651
  colorScheme = "error";
7529
7652
  }
7530
7653
  if (appearance === "gated") {
7531
- badge = /* @__PURE__ */ jsx187(
7654
+ badge = /* @__PURE__ */ jsx189(
7532
7655
  Icon,
7533
7656
  {
7534
7657
  colorScheme: "purple",
@@ -7540,7 +7663,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7540
7663
  }
7541
7664
  );
7542
7665
  }
7543
- return /* @__PURE__ */ jsxs14(
7666
+ return /* @__PURE__ */ jsxs15(
7544
7667
  StyledButton3,
7545
7668
  {
7546
7669
  ...props,
@@ -7550,10 +7673,10 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7550
7673
  fullWidth: true,
7551
7674
  unstyled: true,
7552
7675
  children: [
7553
- props.leftIcon ? /* @__PURE__ */ jsx187(StyledLeftIconContainer, { children: props.leftIcon }) : null,
7554
- /* @__PURE__ */ jsx187(StyledLabelAndDescriptionContainer, { children }),
7555
- isNotNil10(badge) || isNotNil10(command) ? /* @__PURE__ */ jsx187(StyledBadgeContainer, { children: badge ?? command }) : null,
7556
- props.rightIcon ? /* @__PURE__ */ jsx187(StyledRightIconContainer, { children: props.rightIcon }) : null
7676
+ props.leftIcon ? /* @__PURE__ */ jsx189(StyledLeftIconContainer, { children: props.leftIcon }) : null,
7677
+ /* @__PURE__ */ jsx189(StyledLabelAndDescriptionContainer, { children }),
7678
+ isNotNil10(badge) || isNotNil10(command) ? /* @__PURE__ */ jsx189(StyledBadgeContainer, { children: badge ?? command }) : null,
7679
+ props.rightIcon ? /* @__PURE__ */ jsx189(StyledRightIconContainer, { children: props.rightIcon }) : null
7557
7680
  ]
7558
7681
  }
7559
7682
  );
@@ -7561,23 +7684,23 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7561
7684
  MenuItemButton.displayName = "MenuItemButton";
7562
7685
 
7563
7686
  // src/components/Menu/MenuItemLabelDescription.tsx
7564
- import styled28 from "styled-components";
7565
- import { jsx as jsx188 } from "react/jsx-runtime";
7566
- var StyledMenuItemLabel = styled28.span``;
7567
- var StyledMenuItemDescription = styled28(Text).attrs({
7687
+ import styled29 from "styled-components";
7688
+ import { jsx as jsx190 } from "react/jsx-runtime";
7689
+ var StyledMenuItemLabel = styled29.span``;
7690
+ var StyledMenuItemDescription = styled29(Text).attrs({
7568
7691
  variant: "body4",
7569
7692
  prominence: "secondary"
7570
7693
  })``;
7571
7694
  var MenuItemLabel = ({ children }) => {
7572
- return /* @__PURE__ */ jsx188(StyledMenuItemLabel, { children });
7695
+ return /* @__PURE__ */ jsx190(StyledMenuItemLabel, { children });
7573
7696
  };
7574
7697
  var MenuItemDescription = ({ children }) => {
7575
- return /* @__PURE__ */ jsx188(StyledMenuItemDescription, { children });
7698
+ return /* @__PURE__ */ jsx190(StyledMenuItemDescription, { children });
7576
7699
  };
7577
7700
 
7578
7701
  // src/components/Menu/SubMenu.tsx
7579
- import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7580
- var SubMenuContent = styled29(DropdownMenuSubContent)`
7702
+ import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7703
+ var SubMenuContent = styled30(DropdownMenuSubContent)`
7581
7704
  ${menuContentCss}
7582
7705
  width: 298px;
7583
7706
 
@@ -7585,10 +7708,10 @@ var SubMenuContent = styled29(DropdownMenuSubContent)`
7585
7708
  transform: translateX(-100%) !important;
7586
7709
  }
7587
7710
  `;
7588
- var StyledMobileSubMenuItems = styled29.div`
7711
+ var StyledMobileSubMenuItems = styled30.div`
7589
7712
  margin-left: var(--wui-space-04);
7590
7713
  `;
7591
- var StyledSubTrigger = styled29(DropdownMenuSubTrigger)`
7714
+ var StyledSubTrigger = styled30(DropdownMenuSubTrigger)`
7592
7715
  outline: none;
7593
7716
 
7594
7717
  &[data-state='open'],
@@ -7599,11 +7722,11 @@ var StyledSubTrigger = styled29(DropdownMenuSubTrigger)`
7599
7722
  var SubMenuTrigger = (props) => {
7600
7723
  const { isSmAndUp } = useMq();
7601
7724
  const Trigger2 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
7602
- return /* @__PURE__ */ jsx189(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx189(
7725
+ return /* @__PURE__ */ jsx191(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx191(
7603
7726
  MenuItemButton,
7604
7727
  {
7605
7728
  ...props,
7606
- rightIcon: /* @__PURE__ */ jsx189(Icon, { type: "caret-right" })
7729
+ rightIcon: /* @__PURE__ */ jsx191(Icon, { type: "caret-right" })
7607
7730
  }
7608
7731
  ) });
7609
7732
  };
@@ -7615,15 +7738,15 @@ var SubMenu = ({
7615
7738
  ...props
7616
7739
  }) => {
7617
7740
  const { isSmAndUp } = useMq();
7618
- const [isExpanded, setIsExpanded] = useState6(false);
7619
- return isSmAndUp ? /* @__PURE__ */ jsxs15(DropdownMenuSub, { onOpenChange, children: [
7620
- /* @__PURE__ */ jsxs15(SubMenuTrigger, { ...props, children: [
7621
- /* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
7622
- isNotNil11(description) ? /* @__PURE__ */ jsx189(MenuItemDescription, { children: description }) : null
7741
+ const [isExpanded, setIsExpanded] = useState7(false);
7742
+ return isSmAndUp ? /* @__PURE__ */ jsxs16(DropdownMenuSub, { onOpenChange, children: [
7743
+ /* @__PURE__ */ jsxs16(SubMenuTrigger, { ...props, children: [
7744
+ /* @__PURE__ */ jsx191(MenuItemLabel, { children: label }),
7745
+ isNotNil11(description) ? /* @__PURE__ */ jsx191(MenuItemDescription, { children: description }) : null
7623
7746
  ] }),
7624
- /* @__PURE__ */ jsx189(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx189(SubMenuContent, { children }) })
7625
- ] }) : /* @__PURE__ */ jsxs15(DropdownMenuGroup, { children: [
7626
- /* @__PURE__ */ jsxs15(
7747
+ /* @__PURE__ */ jsx191(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx191(SubMenuContent, { children }) })
7748
+ ] }) : /* @__PURE__ */ jsxs16(DropdownMenuGroup, { children: [
7749
+ /* @__PURE__ */ jsxs16(
7627
7750
  SubMenuTrigger,
7628
7751
  {
7629
7752
  ...props,
@@ -7632,12 +7755,12 @@ var SubMenu = ({
7632
7755
  setIsExpanded((prev) => !prev);
7633
7756
  },
7634
7757
  children: [
7635
- /* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
7636
- /* @__PURE__ */ jsx189(MenuItemDescription, { children: description })
7758
+ /* @__PURE__ */ jsx191(MenuItemLabel, { children: label }),
7759
+ /* @__PURE__ */ jsx191(MenuItemDescription, { children: description })
7637
7760
  ]
7638
7761
  }
7639
7762
  ),
7640
- /* @__PURE__ */ jsx189(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7763
+ /* @__PURE__ */ jsx191(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7641
7764
  ] });
7642
7765
  };
7643
7766
  SubMenu.displayName = "SubMenu";
@@ -7645,15 +7768,15 @@ SubMenu.displayName = "SubMenu";
7645
7768
  // src/components/Menu/MenuItem.tsx
7646
7769
  import { forwardRef as forwardRef13 } from "react";
7647
7770
  import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
7648
- import { jsx as jsx190 } from "react/jsx-runtime";
7771
+ import { jsx as jsx192 } from "react/jsx-runtime";
7649
7772
  var MenuItem = forwardRef13(
7650
7773
  ({ onSelect = () => null, ...props }, ref) => {
7651
- return /* @__PURE__ */ jsx190(
7774
+ return /* @__PURE__ */ jsx192(
7652
7775
  DropdownMenuItem2,
7653
7776
  {
7654
7777
  asChild: true,
7655
7778
  onSelect,
7656
- children: /* @__PURE__ */ jsx190(
7779
+ children: /* @__PURE__ */ jsx192(
7657
7780
  MenuItemButton,
7658
7781
  {
7659
7782
  ...props,
@@ -7671,10 +7794,10 @@ MenuItem.displayName = "MenuItem";
7671
7794
  import {
7672
7795
  DropdownMenuRadioGroup
7673
7796
  } from "@radix-ui/react-dropdown-menu";
7674
- import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7797
+ import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7675
7798
  var MenuRadioGroup = ({ children, label, ...props }) => {
7676
- return /* @__PURE__ */ jsxs16(DropdownMenuRadioGroup, { ...props, children: [
7677
- /* @__PURE__ */ jsx191(MenuLabel, { children: label }),
7799
+ return /* @__PURE__ */ jsxs17(DropdownMenuRadioGroup, { ...props, children: [
7800
+ /* @__PURE__ */ jsx193(MenuLabel, { children: label }),
7678
7801
  children
7679
7802
  ] });
7680
7803
  };
@@ -7685,11 +7808,11 @@ import {
7685
7808
  DropdownMenuItemIndicator,
7686
7809
  DropdownMenuRadioItem
7687
7810
  } from "@radix-ui/react-dropdown-menu";
7688
- import { jsx as jsx192 } from "react/jsx-runtime";
7811
+ import { jsx as jsx194 } from "react/jsx-runtime";
7689
7812
  var RadioMenuItem = ({
7690
7813
  onSelect,
7691
7814
  value,
7692
- indicator = /* @__PURE__ */ jsx192(
7815
+ indicator = /* @__PURE__ */ jsx194(
7693
7816
  Icon,
7694
7817
  {
7695
7818
  size: "sm",
@@ -7699,17 +7822,17 @@ var RadioMenuItem = ({
7699
7822
  ...props
7700
7823
  }) => {
7701
7824
  const extraProps = onSelect ? { onSelect } : {};
7702
- return /* @__PURE__ */ jsx192(
7825
+ return /* @__PURE__ */ jsx194(
7703
7826
  DropdownMenuRadioItem,
7704
7827
  {
7705
7828
  ...extraProps,
7706
7829
  asChild: true,
7707
7830
  value,
7708
- children: /* @__PURE__ */ jsx192(
7831
+ children: /* @__PURE__ */ jsx194(
7709
7832
  MenuItemButton,
7710
7833
  {
7711
7834
  ...props,
7712
- rightIcon: /* @__PURE__ */ jsx192(DropdownMenuItemIndicator, { children: indicator })
7835
+ rightIcon: /* @__PURE__ */ jsx194(DropdownMenuItemIndicator, { children: indicator })
7713
7836
  }
7714
7837
  )
7715
7838
  }
@@ -7721,9 +7844,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
7721
7844
  import {
7722
7845
  DropdownMenuCheckboxItem
7723
7846
  } from "@radix-ui/react-dropdown-menu";
7724
- import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7847
+ import { jsx as jsx195, jsxs as jsxs18 } from "react/jsx-runtime";
7725
7848
  var CheckboxIndicator2 = ({ checked, ...props }) => {
7726
- return checked ? /* @__PURE__ */ jsxs17(
7849
+ return checked ? /* @__PURE__ */ jsxs18(
7727
7850
  "svg",
7728
7851
  {
7729
7852
  ...props,
@@ -7733,14 +7856,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7733
7856
  width: "24",
7734
7857
  xmlns: "http://www.w3.org/2000/svg",
7735
7858
  children: [
7736
- /* @__PURE__ */ jsx193(
7859
+ /* @__PURE__ */ jsx195(
7737
7860
  "path",
7738
7861
  {
7739
7862
  d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
7740
7863
  fill: "#2949e5"
7741
7864
  }
7742
7865
  ),
7743
- /* @__PURE__ */ jsx193(
7866
+ /* @__PURE__ */ jsx195(
7744
7867
  "path",
7745
7868
  {
7746
7869
  d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
@@ -7749,7 +7872,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7749
7872
  )
7750
7873
  ]
7751
7874
  }
7752
- ) : /* @__PURE__ */ jsxs17(
7875
+ ) : /* @__PURE__ */ jsxs18(
7753
7876
  "svg",
7754
7877
  {
7755
7878
  ...props,
@@ -7759,14 +7882,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7759
7882
  width: "24",
7760
7883
  xmlns: "http://www.w3.org/2000/svg",
7761
7884
  children: [
7762
- /* @__PURE__ */ jsx193(
7885
+ /* @__PURE__ */ jsx195(
7763
7886
  "path",
7764
7887
  {
7765
7888
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
7766
7889
  fill: "#fcfcfd"
7767
7890
  }
7768
7891
  ),
7769
- /* @__PURE__ */ jsx193(
7892
+ /* @__PURE__ */ jsx195(
7770
7893
  "path",
7771
7894
  {
7772
7895
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
@@ -7783,18 +7906,18 @@ var CheckboxMenuItem = ({
7783
7906
  onCheckedChange,
7784
7907
  ...props
7785
7908
  }) => {
7786
- return /* @__PURE__ */ jsx193(
7909
+ return /* @__PURE__ */ jsx195(
7787
7910
  DropdownMenuCheckboxItem,
7788
7911
  {
7789
7912
  asChild: true,
7790
7913
  checked,
7791
7914
  onCheckedChange,
7792
7915
  onSelect,
7793
- children: /* @__PURE__ */ jsx193(
7916
+ children: /* @__PURE__ */ jsx195(
7794
7917
  MenuItemButton,
7795
7918
  {
7796
7919
  ...props,
7797
- leftIcon: /* @__PURE__ */ jsx193(CheckboxIndicator2, { checked })
7920
+ leftIcon: /* @__PURE__ */ jsx195(CheckboxIndicator2, { checked })
7798
7921
  }
7799
7922
  )
7800
7923
  }
@@ -7804,39 +7927,39 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
7804
7927
 
7805
7928
  // src/components/Modal/Modal.tsx
7806
7929
  import { forwardRef as forwardRef16 } from "react";
7807
- import styled35 from "styled-components";
7930
+ import styled36 from "styled-components";
7808
7931
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
7809
7932
  import { isNotNil as isNotNil14 } from "@wistia/type-guards";
7810
7933
 
7811
7934
  // src/components/Modal/ModalHeader.tsx
7812
- import styled32 from "styled-components";
7935
+ import styled33 from "styled-components";
7813
7936
  import { Title as DialogTitle } from "@radix-ui/react-dialog";
7814
7937
 
7815
7938
  // src/components/Modal/ModalCloseButton.tsx
7816
- import styled30 from "styled-components";
7939
+ import styled31 from "styled-components";
7817
7940
  import { Close as DialogClose } from "@radix-ui/react-dialog";
7818
- import { jsx as jsx194 } from "react/jsx-runtime";
7819
- var CloseButton = styled30(DialogClose)`
7941
+ import { jsx as jsx196 } from "react/jsx-runtime";
7942
+ var CloseButton = styled31(DialogClose)`
7820
7943
  align-self: start;
7821
7944
  `;
7822
7945
  var ModalCloseButton = () => {
7823
- return /* @__PURE__ */ jsx194(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx194(
7946
+ return /* @__PURE__ */ jsx196(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx196(
7824
7947
  IconButton,
7825
7948
  {
7826
7949
  label: "Dismiss modal",
7827
7950
  size: "sm",
7828
7951
  variant: "ghost",
7829
- children: /* @__PURE__ */ jsx194(Icon, { type: "close" })
7952
+ children: /* @__PURE__ */ jsx196(Icon, { type: "close" })
7830
7953
  }
7831
7954
  ) });
7832
7955
  };
7833
7956
 
7834
7957
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7835
- import styled31 from "styled-components";
7958
+ import styled32 from "styled-components";
7836
7959
  import { isNotNil as isNotNil12 } from "@wistia/type-guards";
7837
- import { jsx as jsx195 } from "react/jsx-runtime";
7838
- var VisuallyHidden = styled31.div({ ...visuallyHiddenStyle });
7839
- var VisuallyHiddenButFocusable = styled31.div({
7960
+ import { jsx as jsx197 } from "react/jsx-runtime";
7961
+ var VisuallyHidden = styled32.div({ ...visuallyHiddenStyle });
7962
+ var VisuallyHiddenButFocusable = styled32.div({
7840
7963
  "&:not(:focus-within)": visuallyHiddenStyle
7841
7964
  });
7842
7965
  var ScreenReaderOnly = ({
@@ -7847,15 +7970,15 @@ var ScreenReaderOnly = ({
7847
7970
  }) => {
7848
7971
  const accessibleText = isNotNil12(text) ? text : children;
7849
7972
  if (focusable) {
7850
- return /* @__PURE__ */ jsx195(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7973
+ return /* @__PURE__ */ jsx197(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7851
7974
  }
7852
- return /* @__PURE__ */ jsx195(VisuallyHidden, { ...otherProps, children: accessibleText });
7975
+ return /* @__PURE__ */ jsx197(VisuallyHidden, { ...otherProps, children: accessibleText });
7853
7976
  };
7854
7977
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
7855
7978
 
7856
7979
  // src/components/Modal/ModalHeader.tsx
7857
- import { jsx as jsx196, jsxs as jsxs18 } from "react/jsx-runtime";
7858
- var Header = styled32.header`
7980
+ import { jsx as jsx198, jsxs as jsxs19 } from "react/jsx-runtime";
7981
+ var Header = styled33.header`
7859
7982
  display: flex;
7860
7983
  order: 1;
7861
7984
  gap: var(--wui-space-01);
@@ -7867,7 +7990,7 @@ var Header = styled32.header`
7867
7990
  margin-top: 0;
7868
7991
  }
7869
7992
  `;
7870
- var Title = styled32(DialogTitle)`
7993
+ var Title = styled33(DialogTitle)`
7871
7994
  font-family: var(--wui-typography-heading-2-family);
7872
7995
  line-height: var(--wui-typography-heading-2-line-height);
7873
7996
  font-size: var(--wui-typography-heading-2-size);
@@ -7879,26 +8002,26 @@ var ModalHeader = ({
7879
8002
  hideCloseButton
7880
8003
  }) => {
7881
8004
  const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
7882
- return /* @__PURE__ */ jsxs18(Header, { children: [
7883
- /* @__PURE__ */ jsx196(TitleWrapper, { children: title }),
7884
- hideCloseButton ? null : /* @__PURE__ */ jsx196(ModalCloseButton, {})
8005
+ return /* @__PURE__ */ jsxs19(Header, { children: [
8006
+ /* @__PURE__ */ jsx198(TitleWrapper, { children: title }),
8007
+ hideCloseButton ? null : /* @__PURE__ */ jsx198(ModalCloseButton, {})
7885
8008
  ] });
7886
8009
  };
7887
8010
 
7888
8011
  // src/components/Modal/ModalContent.tsx
7889
8012
  import { forwardRef as forwardRef14 } from "react";
7890
- import styled33 from "styled-components";
8013
+ import styled34 from "styled-components";
7891
8014
  import { Content as DialogContent } from "@radix-ui/react-dialog";
7892
8015
 
7893
8016
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
7894
- import { useRef as useRef6, useEffect as useEffect2 } from "react";
8017
+ import { useRef as useRef7, useEffect as useEffect3 } from "react";
7895
8018
  import { isNotNil as isNotNil13 } from "@wistia/type-guards";
7896
8019
  var useFocusRestore = () => {
7897
- const previouslyFocusedRef = useRef6(null);
7898
- useEffect2(() => {
8020
+ const previouslyFocusedRef = useRef7(null);
8021
+ useEffect3(() => {
7899
8022
  previouslyFocusedRef.current = document.activeElement;
7900
8023
  }, []);
7901
- useEffect2(() => {
8024
+ useEffect3(() => {
7902
8025
  return () => {
7903
8026
  if (isNotNil13(previouslyFocusedRef.current)) {
7904
8027
  setTimeout(() => {
@@ -7910,8 +8033,8 @@ var useFocusRestore = () => {
7910
8033
  };
7911
8034
 
7912
8035
  // src/components/Modal/ModalContent.tsx
7913
- import { jsx as jsx197 } from "react/jsx-runtime";
7914
- var StyledModalContent = styled33(DialogContent)`
8036
+ import { jsx as jsx199 } from "react/jsx-runtime";
8037
+ var StyledModalContent = styled34(DialogContent)`
7915
8038
  background-color: var(--wui-color-bg-app);
7916
8039
  box-sizing: border-box;
7917
8040
  display: flex;
@@ -7954,7 +8077,7 @@ var StyledModalContent = styled33(DialogContent)`
7954
8077
  var ModalContent = forwardRef14(
7955
8078
  ({ fullHeight, width, children, ...otherProps }, ref) => {
7956
8079
  useFocusRestore();
7957
- return /* @__PURE__ */ jsx197(
8080
+ return /* @__PURE__ */ jsx199(
7958
8081
  StyledModalContent,
7959
8082
  {
7960
8083
  ref,
@@ -7969,8 +8092,8 @@ var ModalContent = forwardRef14(
7969
8092
 
7970
8093
  // src/private/components/Backdrop/Backdrop.tsx
7971
8094
  import { forwardRef as forwardRef15 } from "react";
7972
- import styled34 from "styled-components";
7973
- import { jsx as jsx198 } from "react/jsx-runtime";
8095
+ import styled35 from "styled-components";
8096
+ import { jsx as jsx200 } from "react/jsx-runtime";
7974
8097
  var backdropAnimationDuration = 150;
7975
8098
  var alignVerticalMap = {
7976
8099
  stretch: "normal",
@@ -7983,7 +8106,7 @@ var alignHorizontalMap = {
7983
8106
  center: "center",
7984
8107
  right: "end"
7985
8108
  };
7986
- var BackdropComponent = styled34.div`
8109
+ var BackdropComponent = styled35.div`
7987
8110
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
7988
8111
  animation-name: backdropShow;
7989
8112
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -8007,7 +8130,7 @@ var BackdropComponent = styled34.div`
8007
8130
  }
8008
8131
  `;
8009
8132
  var Backdrop = forwardRef15(
8010
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx198(
8133
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx200(
8011
8134
  BackdropComponent,
8012
8135
  {
8013
8136
  ref,
@@ -8021,8 +8144,8 @@ var Backdrop = forwardRef15(
8021
8144
  Backdrop.displayName = "Backdrop";
8022
8145
 
8023
8146
  // src/components/Modal/Modal.tsx
8024
- import { jsx as jsx199, jsxs as jsxs19 } from "react/jsx-runtime";
8025
- var ModalBody = styled35.div`
8147
+ import { jsx as jsx201, jsxs as jsxs20 } from "react/jsx-runtime";
8148
+ var ModalBody = styled36.div`
8026
8149
  flex-direction: column;
8027
8150
  display: flex;
8028
8151
  order: 2;
@@ -8040,7 +8163,7 @@ var Modal = forwardRef16(
8040
8163
  width,
8041
8164
  ...props
8042
8165
  }, ref) => {
8043
- return /* @__PURE__ */ jsx199(
8166
+ return /* @__PURE__ */ jsx201(
8044
8167
  DialogRoot,
8045
8168
  {
8046
8169
  onOpenChange: (open2) => {
@@ -8049,9 +8172,9 @@ var Modal = forwardRef16(
8049
8172
  }
8050
8173
  },
8051
8174
  open: isOpen,
8052
- children: /* @__PURE__ */ jsxs19(DialogPortal, { children: [
8053
- /* @__PURE__ */ jsx199(Backdrop, {}),
8054
- /* @__PURE__ */ jsxs19(
8175
+ children: /* @__PURE__ */ jsxs20(DialogPortal, { children: [
8176
+ /* @__PURE__ */ jsx201(Backdrop, {}),
8177
+ /* @__PURE__ */ jsxs20(
8055
8178
  ModalContent,
8056
8179
  {
8057
8180
  ref,
@@ -8068,8 +8191,8 @@ var Modal = forwardRef16(
8068
8191
  width,
8069
8192
  ...props,
8070
8193
  children: [
8071
- /* @__PURE__ */ jsx199(ModalBody, { children }),
8072
- /* @__PURE__ */ jsx199(
8194
+ /* @__PURE__ */ jsx201(ModalBody, { children }),
8195
+ /* @__PURE__ */ jsx201(
8073
8196
  ModalHeader,
8074
8197
  {
8075
8198
  hideCloseButton,
@@ -8089,15 +8212,15 @@ Modal.displayName = "Modal";
8089
8212
 
8090
8213
  // src/components/Radio/Radio.tsx
8091
8214
  import { forwardRef as forwardRef17, useId as useId3 } from "react";
8092
- import styled36, { css as css21 } from "styled-components";
8215
+ import styled37, { css as css21 } from "styled-components";
8093
8216
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
8094
- import { jsx as jsx200, jsxs as jsxs20 } from "react/jsx-runtime";
8095
- var StyledLabelWrapper2 = styled36.div`
8217
+ import { jsx as jsx202, jsxs as jsxs21 } from "react/jsx-runtime";
8218
+ var StyledLabelWrapper2 = styled37.div`
8096
8219
  display: flex;
8097
8220
  flex-direction: column;
8098
8221
  padding-left: var(--wui-space-02);
8099
8222
  `;
8100
- var StyledRadio = styled36.input`
8223
+ var StyledRadio = styled37.input`
8101
8224
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
8102
8225
  appearance: none;
8103
8226
  margin: 0;
@@ -8139,7 +8262,7 @@ var defaultHoverStyle = css21`
8139
8262
  /* TODO Lamp to design hover state */
8140
8263
  cursor: pointer;
8141
8264
  `;
8142
- var StyledRadioWrapper = styled36.div`
8265
+ var StyledRadioWrapper = styled37.div`
8143
8266
  align-items: baseline;
8144
8267
  border: 1px solid transparent;
8145
8268
  border-radius: 4px;
@@ -8177,13 +8300,13 @@ var Radio = forwardRef17(
8177
8300
  }, ref) => {
8178
8301
  const generatedId = useId3();
8179
8302
  const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
8180
- return /* @__PURE__ */ jsxs20(
8303
+ return /* @__PURE__ */ jsxs21(
8181
8304
  StyledRadioWrapper,
8182
8305
  {
8183
8306
  "aria-invalid": otherProps["aria-invalid"],
8184
8307
  disabled,
8185
8308
  children: [
8186
- /* @__PURE__ */ jsx200(
8309
+ /* @__PURE__ */ jsx202(
8187
8310
  StyledRadio,
8188
8311
  {
8189
8312
  ref,
@@ -8198,8 +8321,8 @@ var Radio = forwardRef17(
8198
8321
  ...otherProps
8199
8322
  }
8200
8323
  ),
8201
- /* @__PURE__ */ jsxs20(StyledLabelWrapper2, { children: [
8202
- /* @__PURE__ */ jsx200(
8324
+ /* @__PURE__ */ jsxs21(StyledLabelWrapper2, { children: [
8325
+ /* @__PURE__ */ jsx202(
8203
8326
  Label,
8204
8327
  {
8205
8328
  disabled,
@@ -8208,7 +8331,7 @@ var Radio = forwardRef17(
8208
8331
  children: label
8209
8332
  }
8210
8333
  ),
8211
- /* @__PURE__ */ jsx200(LabelDescription, { children: description })
8334
+ /* @__PURE__ */ jsx202(LabelDescription, { children: description })
8212
8335
  ] })
8213
8336
  ]
8214
8337
  }
@@ -8219,10 +8342,10 @@ Radio.displayName = "Radio";
8219
8342
 
8220
8343
  // src/components/Tag/Tag.tsx
8221
8344
  import { forwardRef as forwardRef18 } from "react";
8222
- import styled37 from "styled-components";
8345
+ import styled38 from "styled-components";
8223
8346
  import { isNil as isNil11, isNotNil as isNotNil15, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
8224
- import { Fragment as Fragment2, jsx as jsx201, jsxs as jsxs21 } from "react/jsx-runtime";
8225
- var TagLabel = styled37.a`
8347
+ import { Fragment as Fragment3, jsx as jsx203, jsxs as jsxs22 } from "react/jsx-runtime";
8348
+ var TagLabel = styled38.a`
8226
8349
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8227
8350
  font-size: var(--wui-typography-label-4-size);
8228
8351
  font-weight: var(--wui-typography-label-4-weight);
@@ -8250,14 +8373,14 @@ var TagLabel = styled37.a`
8250
8373
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
8251
8374
  }
8252
8375
  `;
8253
- var TagDivider = styled37.div`
8376
+ var TagDivider = styled38.div`
8254
8377
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8255
8378
  border-left: 1px solid var(--wui-color-border);
8256
8379
  display: flex;
8257
8380
  height: 14px;
8258
8381
  width: 1px;
8259
8382
  `;
8260
- var StyledRemoveButton = styled37.button`
8383
+ var StyledRemoveButton = styled38.button`
8261
8384
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8262
8385
  all: unset;
8263
8386
  cursor: pointer;
@@ -8285,7 +8408,7 @@ var StyledRemoveButton = styled37.button`
8285
8408
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
8286
8409
  }
8287
8410
  `;
8288
- var StyledTag = styled37.div`
8411
+ var StyledTag = styled38.div`
8289
8412
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8290
8413
  align-items: center;
8291
8414
  background-color: var(--wui-color-bg-surface-secondary);
@@ -8302,23 +8425,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8302
8425
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
8303
8426
  );
8304
8427
  }
8305
- return /* @__PURE__ */ jsxs21(Fragment2, { children: [
8306
- /* @__PURE__ */ jsx201(TagDivider, { $colorScheme: colorScheme }),
8307
- /* @__PURE__ */ jsxs21(
8428
+ return /* @__PURE__ */ jsxs22(Fragment3, { children: [
8429
+ /* @__PURE__ */ jsx203(TagDivider, { $colorScheme: colorScheme }),
8430
+ /* @__PURE__ */ jsxs22(
8308
8431
  StyledRemoveButton,
8309
8432
  {
8310
8433
  $colorScheme: colorScheme,
8311
8434
  onClick: onClickRemove,
8312
8435
  type: "button",
8313
8436
  children: [
8314
- /* @__PURE__ */ jsx201(
8437
+ /* @__PURE__ */ jsx203(
8315
8438
  Icon,
8316
8439
  {
8317
8440
  size: "sm",
8318
8441
  type: "close"
8319
8442
  }
8320
8443
  ),
8321
- /* @__PURE__ */ jsx201(ScreenReaderOnly, { children: onClickRemoveLabel })
8444
+ /* @__PURE__ */ jsx203(ScreenReaderOnly, { children: onClickRemoveLabel })
8322
8445
  ]
8323
8446
  }
8324
8447
  )
@@ -8327,14 +8450,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8327
8450
  var Tag = forwardRef18(
8328
8451
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
8329
8452
  const labelProps = isNotNil15(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
8330
- return /* @__PURE__ */ jsxs21(
8453
+ return /* @__PURE__ */ jsxs22(
8331
8454
  StyledTag,
8332
8455
  {
8333
8456
  ref,
8334
8457
  $colorScheme: colorScheme,
8335
8458
  ...otherProps,
8336
8459
  children: [
8337
- /* @__PURE__ */ jsx201(
8460
+ /* @__PURE__ */ jsx203(
8338
8461
  TagLabel,
8339
8462
  {
8340
8463
  ...labelProps,
@@ -8342,7 +8465,7 @@ var Tag = forwardRef18(
8342
8465
  children: label
8343
8466
  }
8344
8467
  ),
8345
- /* @__PURE__ */ jsx201(
8468
+ /* @__PURE__ */ jsx203(
8346
8469
  RemoveButton,
8347
8470
  {
8348
8471
  colorScheme,
@@ -8365,8 +8488,8 @@ import {
8365
8488
  Portal,
8366
8489
  Arrow
8367
8490
  } from "@radix-ui/react-tooltip";
8368
- import styled38, { css as css22 } from "styled-components";
8369
- import { jsx as jsx202, jsxs as jsxs22 } from "react/jsx-runtime";
8491
+ import styled39, { css as css22 } from "styled-components";
8492
+ import { jsx as jsx204, jsxs as jsxs23 } from "react/jsx-runtime";
8370
8493
  var CompactTooltipStyles = css22`
8371
8494
  --tooltip-font-size: var(--wui-typography-label-4-size);
8372
8495
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
@@ -8374,7 +8497,7 @@ var CompactTooltipStyles = css22`
8374
8497
  --tooltip-horizontal-padding: var(--wui-space-02);
8375
8498
  --tooltip-vertical-padding: var(--wui-space-03);
8376
8499
  `;
8377
- var StyledContent = styled38(Content)`
8500
+ var StyledContent = styled39(Content)`
8378
8501
  --tooltip-font-family: var(--wui-typography-family-default);
8379
8502
  --tooltip-border-radius: var(--wui-border-radius-05);
8380
8503
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -8432,14 +8555,14 @@ var Tooltip = ({
8432
8555
  if (forceOpen === true) {
8433
8556
  rootProps.open = true;
8434
8557
  }
8435
- return /* @__PURE__ */ jsxs22(
8558
+ return /* @__PURE__ */ jsxs23(
8436
8559
  Root,
8437
8560
  {
8438
8561
  delayDuration: delay,
8439
8562
  ...rootProps,
8440
8563
  children: [
8441
- /* @__PURE__ */ jsx202(Trigger, { asChild: true, children }),
8442
- /* @__PURE__ */ jsx202(Portal, { children: /* @__PURE__ */ jsxs22(
8564
+ /* @__PURE__ */ jsx204(Trigger, { asChild: true, children }),
8565
+ /* @__PURE__ */ jsx204(Portal, { children: /* @__PURE__ */ jsxs23(
8443
8566
  StyledContent,
8444
8567
  {
8445
8568
  $compact: compact,
@@ -8447,7 +8570,7 @@ var Tooltip = ({
8447
8570
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
8448
8571
  children: [
8449
8572
  content,
8450
- !hideArrow ? /* @__PURE__ */ jsx202(Arrow, { asChild: true, children: /* @__PURE__ */ jsx202(
8573
+ !hideArrow ? /* @__PURE__ */ jsx204(Arrow, { asChild: true, children: /* @__PURE__ */ jsx204(
8451
8574
  "svg",
8452
8575
  {
8453
8576
  fill: "var(--tooltip-bg)",
@@ -8456,7 +8579,7 @@ var Tooltip = ({
8456
8579
  viewBox: "0 0 12 8",
8457
8580
  width: "12",
8458
8581
  xmlns: "http://www.w3.org/2000/svg",
8459
- children: /* @__PURE__ */ jsx202("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" })
8582
+ children: /* @__PURE__ */ jsx204("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" })
8460
8583
  }
8461
8584
  ) }) : null
8462
8585
  ]
@@ -8469,26 +8592,26 @@ var Tooltip = ({
8469
8592
  Tooltip.displayName = "Tooltip";
8470
8593
 
8471
8594
  // src/components/WistiaLogo/WistiaLogo.tsx
8472
- import styled39 from "styled-components";
8595
+ import styled40 from "styled-components";
8473
8596
  import { isNotNil as isNotNil16 } from "@wistia/type-guards";
8474
- import { jsx as jsx203, jsxs as jsxs23 } from "react/jsx-runtime";
8597
+ import { jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
8475
8598
  var renderBrandmark = (brandmarkColor, iconOnly) => {
8476
8599
  if (iconOnly) {
8477
- return /* @__PURE__ */ jsx203(
8600
+ return /* @__PURE__ */ jsx205(
8478
8601
  "g",
8479
8602
  {
8480
8603
  "data-testid": "ui-wistia-logo-brandmark",
8481
8604
  fill: brandmarkColor,
8482
- children: /* @__PURE__ */ jsx203("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" })
8605
+ children: /* @__PURE__ */ jsx205("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" })
8483
8606
  }
8484
8607
  );
8485
8608
  }
8486
- return /* @__PURE__ */ jsx203(
8609
+ return /* @__PURE__ */ jsx205(
8487
8610
  "g",
8488
8611
  {
8489
8612
  "data-testid": "ui-wistia-logo-brandmark",
8490
8613
  fill: brandmarkColor,
8491
- children: /* @__PURE__ */ jsx203("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" })
8614
+ children: /* @__PURE__ */ jsx205("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" })
8492
8615
  }
8493
8616
  );
8494
8617
  };
@@ -8496,12 +8619,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
8496
8619
  if (iconOnly) {
8497
8620
  return null;
8498
8621
  }
8499
- return /* @__PURE__ */ jsx203(
8622
+ return /* @__PURE__ */ jsx205(
8500
8623
  "g",
8501
8624
  {
8502
8625
  "data-testid": "ui-wistia-logo-logotype",
8503
8626
  fill: logotypeColor,
8504
- children: /* @__PURE__ */ jsx203("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" })
8627
+ children: /* @__PURE__ */ jsx205("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" })
8505
8628
  }
8506
8629
  );
8507
8630
  };
@@ -8511,7 +8634,7 @@ var computedViewBox = (iconOnly) => {
8511
8634
  }
8512
8635
  return "0 0 144 31.47";
8513
8636
  };
8514
- var WistiaLogoComponent = styled39.svg`
8637
+ var WistiaLogoComponent = styled40.svg`
8515
8638
  height: ${({ height }) => `${height}px`};
8516
8639
 
8517
8640
  /* ensure it will always fit on mobile */
@@ -8553,7 +8676,7 @@ var WistiaLogo = ({
8553
8676
  };
8554
8677
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
8555
8678
  const logotypeColor = VARIANT_COLORS[variant].logotype;
8556
- const Logo = /* @__PURE__ */ jsxs23(
8679
+ const Logo = /* @__PURE__ */ jsxs24(
8557
8680
  WistiaLogoComponent,
8558
8681
  {
8559
8682
  $hoverColor: hoverColor,
@@ -8563,63 +8686,16 @@ var WistiaLogo = ({
8563
8686
  xmlns: "http://www.w3.org/2000/svg",
8564
8687
  ...otherProps,
8565
8688
  children: [
8566
- /* @__PURE__ */ jsx203("title", { children: title }),
8567
- isNotNil16(description) ? /* @__PURE__ */ jsx203("desc", { children: description }) : null,
8689
+ /* @__PURE__ */ jsx205("title", { children: title }),
8690
+ isNotNil16(description) ? /* @__PURE__ */ jsx205("desc", { children: description }) : null,
8568
8691
  renderBrandmark(brandmarkColor, iconOnly),
8569
8692
  renderLogotype(logotypeColor, iconOnly)
8570
8693
  ]
8571
8694
  }
8572
8695
  );
8573
- return href !== void 0 ? /* @__PURE__ */ jsx203("a", { href, children: Logo }) : Logo;
8696
+ return href !== void 0 ? /* @__PURE__ */ jsx205("a", { href, children: Logo }) : Logo;
8574
8697
  };
8575
8698
  WistiaLogo.displayName = "WistiaLogo";
8576
-
8577
- // src/components/Breadcrumbs/Breadcrumbs.tsx
8578
- import styled40 from "styled-components";
8579
- import { jsx as jsx204 } from "react/jsx-runtime";
8580
- var StyledBreadcrumbs = styled40.nav`
8581
- display: flex;
8582
- align-items: center;
8583
- gap: var(--wui-space-01);
8584
-
8585
- > svg:last-of-type {
8586
- display: none;
8587
- }
8588
- `;
8589
- var Breadcrumbs = ({ children, ...props }) => {
8590
- return /* @__PURE__ */ jsx204(
8591
- StyledBreadcrumbs,
8592
- {
8593
- "aria-label": "Breadcrumbs",
8594
- ...props,
8595
- children
8596
- }
8597
- );
8598
- };
8599
- Breadcrumbs.displayName = "Breadcrumbs";
8600
-
8601
- // src/components/Breadcrumbs/Breadcrumb.tsx
8602
- import { Fragment as Fragment3, jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
8603
- var Breadcrumb = ({ icon, href, children }) => {
8604
- return /* @__PURE__ */ jsxs24(Fragment3, { children: [
8605
- /* @__PURE__ */ jsx205(
8606
- Button,
8607
- {
8608
- href,
8609
- leftIcon: icon,
8610
- variant: "ghost",
8611
- children
8612
- }
8613
- ),
8614
- /* @__PURE__ */ jsx205(
8615
- Icon,
8616
- {
8617
- size: "sm",
8618
- type: "caret-right"
8619
- }
8620
- )
8621
- ] });
8622
- };
8623
8699
  export {
8624
8700
  ActionButton,
8625
8701
  Avatar,
@@ -8672,7 +8748,9 @@ export {
8672
8748
  mq,
8673
8749
  useActiveMq,
8674
8750
  useAriaLive,
8751
+ useBoolean,
8675
8752
  useFormState,
8753
+ useKey,
8676
8754
  useMq,
8677
8755
  useToast,
8678
8756
  useWindowSize