@wistia/ui 0.4.2 → 0.4.3-beta.978508e1.854a32c

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.978508e1.854a32c
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;
@@ -7320,8 +7443,8 @@ var menuContentCss = css20`
7320
7443
  transform: initial;
7321
7444
  }
7322
7445
 
7323
- hr {
7324
- margin: var(--wui-space-02) 0;
7446
+ [role='separator'] {
7447
+ margin: var(--menu-divider-margin) 0;
7325
7448
  }
7326
7449
  `;
7327
7450
  var menuItemCss = css20`
@@ -7333,6 +7456,7 @@ var menuItemCss = css20`
7333
7456
  --menu-label-font-size: var(--wui-typography-label-3-size);
7334
7457
  --menu-label-font-weight: var(--wui-typography-label-3-weight);
7335
7458
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
7459
+ --menu-divider-margin: var(--wui-space-02);
7336
7460
  `;
7337
7461
  var compactMenuItemCss = css20`
7338
7462
  --menu-label-description-gap: 0;
@@ -7343,8 +7467,9 @@ var compactMenuItemCss = css20`
7343
7467
  --menu-label-font-size: var(--wui-typography-label-4-size);
7344
7468
  --menu-label-font-weight: var(--wui-typography-label-4-weight);
7345
7469
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
7470
+ --menu-divider-margin: var(--wui-space-01);
7346
7471
  `;
7347
- var MenuContent = styled25(DropdownMenuContent)`
7472
+ var MenuContent = styled26(DropdownMenuContent)`
7348
7473
  ${menuContentCss}
7349
7474
  ${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss}
7350
7475
  `;
@@ -7370,24 +7495,24 @@ var Menu = ({
7370
7495
  onOpenChange: () => null
7371
7496
  };
7372
7497
  }
7373
- return /* @__PURE__ */ jsxs13(
7498
+ return /* @__PURE__ */ jsxs14(
7374
7499
  DropdownMenu,
7375
7500
  {
7376
7501
  modal: false,
7377
7502
  ...controlProps,
7378
7503
  children: [
7379
- /* @__PURE__ */ jsx185(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx185(
7504
+ /* @__PURE__ */ jsx187(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx187(
7380
7505
  Button,
7381
7506
  {
7382
7507
  "aria-expanded": isOpen,
7383
7508
  disabled,
7384
7509
  forceState: isOpen ? "active" : void 0,
7385
- rightIcon: /* @__PURE__ */ jsx185(Icon, { type: "caret-down" }),
7510
+ rightIcon: /* @__PURE__ */ jsx187(Icon, { type: "caret-down" }),
7386
7511
  ...triggerProps,
7387
7512
  children: label
7388
7513
  }
7389
7514
  ) }),
7390
- /* @__PURE__ */ jsx185(DropdownMenuPortal, { children: /* @__PURE__ */ jsx185(
7515
+ /* @__PURE__ */ jsx187(DropdownMenuPortal, { children: /* @__PURE__ */ jsx187(
7391
7516
  MenuContent,
7392
7517
  {
7393
7518
  ...props,
@@ -7407,19 +7532,19 @@ var Menu = ({
7407
7532
  Menu.displayName = "Menu";
7408
7533
 
7409
7534
  // src/components/Menu/MenuLabel.tsx
7410
- import styled26 from "styled-components";
7535
+ import styled27 from "styled-components";
7411
7536
  import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
7412
- import { jsx as jsx186 } from "react/jsx-runtime";
7413
- var StyledMenuLabel = styled26(DropdownMenuLabel)`
7537
+ import { jsx as jsx188 } from "react/jsx-runtime";
7538
+ var StyledMenuLabel = styled27(DropdownMenuLabel)`
7414
7539
  padding: var(--wui-space-02);
7415
7540
  `;
7416
7541
  var MenuLabel = ({ children, ...props }) => {
7417
- return /* @__PURE__ */ jsx186(
7542
+ return /* @__PURE__ */ jsx188(
7418
7543
  StyledMenuLabel,
7419
7544
  {
7420
7545
  asChild: true,
7421
7546
  ...props,
7422
- children: /* @__PURE__ */ jsx186(
7547
+ children: /* @__PURE__ */ jsx188(
7423
7548
  Heading,
7424
7549
  {
7425
7550
  renderAs: "span",
@@ -7434,8 +7559,8 @@ var MenuLabel = ({ children, ...props }) => {
7434
7559
  MenuLabel.displayName = "MenuLabel";
7435
7560
 
7436
7561
  // src/components/Menu/SubMenu.tsx
7437
- import { useState as useState6 } from "react";
7438
- import styled29 from "styled-components";
7562
+ import { useState as useState7 } from "react";
7563
+ import styled30 from "styled-components";
7439
7564
  import {
7440
7565
  DropdownMenuPortal as DropdownMenuPortal2,
7441
7566
  DropdownMenuSub,
@@ -7448,10 +7573,10 @@ import { isNotNil as isNotNil11 } from "@wistia/type-guards";
7448
7573
 
7449
7574
  // src/components/Menu/MenuItemButton.tsx
7450
7575
  import { forwardRef as forwardRef12 } from "react";
7451
- import styled27 from "styled-components";
7576
+ import styled28 from "styled-components";
7452
7577
  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)`
7578
+ import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7579
+ var StyledButton3 = styled28(Button)`
7455
7580
  ${({ colorScheme }) => getColorScheme(colorScheme)};
7456
7581
 
7457
7582
  display: flex;
@@ -7489,7 +7614,7 @@ var StyledButton3 = styled27(Button)`
7489
7614
  padding-left: var(--wui-space-04);
7490
7615
  }
7491
7616
  `;
7492
- var StyledLeftIconContainer = styled27.div`
7617
+ var StyledLeftIconContainer = styled28.div`
7493
7618
  height: var(--menu-item-left-icon-size);
7494
7619
  width: var(--menu-item-left-icon-size);
7495
7620
 
@@ -7498,7 +7623,7 @@ var StyledLeftIconContainer = styled27.div`
7498
7623
  width: var(--menu-item-left-icon-size);
7499
7624
  }
7500
7625
  `;
7501
- var StyledRightIconContainer = styled27.div`
7626
+ var StyledRightIconContainer = styled28.div`
7502
7627
  height: var(--menu-item-right-icon-size);
7503
7628
  width: var(--menu-item-right-icon-size);
7504
7629
 
@@ -7507,13 +7632,13 @@ var StyledRightIconContainer = styled27.div`
7507
7632
  width: var(--menu-item-right-icon-size);
7508
7633
  }
7509
7634
  `;
7510
- var StyledLabelAndDescriptionContainer = styled27.div`
7635
+ var StyledLabelAndDescriptionContainer = styled28.div`
7511
7636
  display: flex;
7512
7637
  flex-direction: column;
7513
7638
  gap: var(--menu-label-description-gap);
7514
7639
  flex-basis: 100%;
7515
7640
  `;
7516
- var StyledBadgeContainer = styled27.div`
7641
+ var StyledBadgeContainer = styled28.div`
7517
7642
  align-self: start;
7518
7643
  justify-self: end;
7519
7644
  font-size: var(--wui-typography-label-4-size);
@@ -7528,7 +7653,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7528
7653
  colorScheme = "error";
7529
7654
  }
7530
7655
  if (appearance === "gated") {
7531
- badge = /* @__PURE__ */ jsx187(
7656
+ badge = /* @__PURE__ */ jsx189(
7532
7657
  Icon,
7533
7658
  {
7534
7659
  colorScheme: "purple",
@@ -7540,7 +7665,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7540
7665
  }
7541
7666
  );
7542
7667
  }
7543
- return /* @__PURE__ */ jsxs14(
7668
+ return /* @__PURE__ */ jsxs15(
7544
7669
  StyledButton3,
7545
7670
  {
7546
7671
  ...props,
@@ -7550,10 +7675,10 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7550
7675
  fullWidth: true,
7551
7676
  unstyled: true,
7552
7677
  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
7678
+ props.leftIcon ? /* @__PURE__ */ jsx189(StyledLeftIconContainer, { children: props.leftIcon }) : null,
7679
+ /* @__PURE__ */ jsx189(StyledLabelAndDescriptionContainer, { children }),
7680
+ isNotNil10(badge) || isNotNil10(command) ? /* @__PURE__ */ jsx189(StyledBadgeContainer, { children: badge ?? command }) : null,
7681
+ props.rightIcon ? /* @__PURE__ */ jsx189(StyledRightIconContainer, { children: props.rightIcon }) : null
7557
7682
  ]
7558
7683
  }
7559
7684
  );
@@ -7561,23 +7686,23 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7561
7686
  MenuItemButton.displayName = "MenuItemButton";
7562
7687
 
7563
7688
  // 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({
7689
+ import styled29 from "styled-components";
7690
+ import { jsx as jsx190 } from "react/jsx-runtime";
7691
+ var StyledMenuItemLabel = styled29.span``;
7692
+ var StyledMenuItemDescription = styled29(Text).attrs({
7568
7693
  variant: "body4",
7569
7694
  prominence: "secondary"
7570
7695
  })``;
7571
7696
  var MenuItemLabel = ({ children }) => {
7572
- return /* @__PURE__ */ jsx188(StyledMenuItemLabel, { children });
7697
+ return /* @__PURE__ */ jsx190(StyledMenuItemLabel, { children });
7573
7698
  };
7574
7699
  var MenuItemDescription = ({ children }) => {
7575
- return /* @__PURE__ */ jsx188(StyledMenuItemDescription, { children });
7700
+ return /* @__PURE__ */ jsx190(StyledMenuItemDescription, { children });
7576
7701
  };
7577
7702
 
7578
7703
  // src/components/Menu/SubMenu.tsx
7579
- import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7580
- var SubMenuContent = styled29(DropdownMenuSubContent)`
7704
+ import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7705
+ var SubMenuContent = styled30(DropdownMenuSubContent)`
7581
7706
  ${menuContentCss}
7582
7707
  width: 298px;
7583
7708
 
@@ -7585,10 +7710,10 @@ var SubMenuContent = styled29(DropdownMenuSubContent)`
7585
7710
  transform: translateX(-100%) !important;
7586
7711
  }
7587
7712
  `;
7588
- var StyledMobileSubMenuItems = styled29.div`
7713
+ var StyledMobileSubMenuItems = styled30.div`
7589
7714
  margin-left: var(--wui-space-04);
7590
7715
  `;
7591
- var StyledSubTrigger = styled29(DropdownMenuSubTrigger)`
7716
+ var StyledSubTrigger = styled30(DropdownMenuSubTrigger)`
7592
7717
  outline: none;
7593
7718
 
7594
7719
  &[data-state='open'],
@@ -7599,11 +7724,11 @@ var StyledSubTrigger = styled29(DropdownMenuSubTrigger)`
7599
7724
  var SubMenuTrigger = (props) => {
7600
7725
  const { isSmAndUp } = useMq();
7601
7726
  const Trigger2 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
7602
- return /* @__PURE__ */ jsx189(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx189(
7727
+ return /* @__PURE__ */ jsx191(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx191(
7603
7728
  MenuItemButton,
7604
7729
  {
7605
7730
  ...props,
7606
- rightIcon: /* @__PURE__ */ jsx189(Icon, { type: "caret-right" })
7731
+ rightIcon: /* @__PURE__ */ jsx191(Icon, { type: "caret-right" })
7607
7732
  }
7608
7733
  ) });
7609
7734
  };
@@ -7615,15 +7740,15 @@ var SubMenu = ({
7615
7740
  ...props
7616
7741
  }) => {
7617
7742
  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
7743
+ const [isExpanded, setIsExpanded] = useState7(false);
7744
+ return isSmAndUp ? /* @__PURE__ */ jsxs16(DropdownMenuSub, { onOpenChange, children: [
7745
+ /* @__PURE__ */ jsxs16(SubMenuTrigger, { ...props, children: [
7746
+ /* @__PURE__ */ jsx191(MenuItemLabel, { children: label }),
7747
+ isNotNil11(description) ? /* @__PURE__ */ jsx191(MenuItemDescription, { children: description }) : null
7623
7748
  ] }),
7624
- /* @__PURE__ */ jsx189(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx189(SubMenuContent, { children }) })
7625
- ] }) : /* @__PURE__ */ jsxs15(DropdownMenuGroup, { children: [
7626
- /* @__PURE__ */ jsxs15(
7749
+ /* @__PURE__ */ jsx191(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx191(SubMenuContent, { children }) })
7750
+ ] }) : /* @__PURE__ */ jsxs16(DropdownMenuGroup, { children: [
7751
+ /* @__PURE__ */ jsxs16(
7627
7752
  SubMenuTrigger,
7628
7753
  {
7629
7754
  ...props,
@@ -7632,12 +7757,12 @@ var SubMenu = ({
7632
7757
  setIsExpanded((prev) => !prev);
7633
7758
  },
7634
7759
  children: [
7635
- /* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
7636
- /* @__PURE__ */ jsx189(MenuItemDescription, { children: description })
7760
+ /* @__PURE__ */ jsx191(MenuItemLabel, { children: label }),
7761
+ /* @__PURE__ */ jsx191(MenuItemDescription, { children: description })
7637
7762
  ]
7638
7763
  }
7639
7764
  ),
7640
- /* @__PURE__ */ jsx189(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7765
+ /* @__PURE__ */ jsx191(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7641
7766
  ] });
7642
7767
  };
7643
7768
  SubMenu.displayName = "SubMenu";
@@ -7645,15 +7770,15 @@ SubMenu.displayName = "SubMenu";
7645
7770
  // src/components/Menu/MenuItem.tsx
7646
7771
  import { forwardRef as forwardRef13 } from "react";
7647
7772
  import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
7648
- import { jsx as jsx190 } from "react/jsx-runtime";
7773
+ import { jsx as jsx192 } from "react/jsx-runtime";
7649
7774
  var MenuItem = forwardRef13(
7650
7775
  ({ onSelect = () => null, ...props }, ref) => {
7651
- return /* @__PURE__ */ jsx190(
7776
+ return /* @__PURE__ */ jsx192(
7652
7777
  DropdownMenuItem2,
7653
7778
  {
7654
7779
  asChild: true,
7655
7780
  onSelect,
7656
- children: /* @__PURE__ */ jsx190(
7781
+ children: /* @__PURE__ */ jsx192(
7657
7782
  MenuItemButton,
7658
7783
  {
7659
7784
  ...props,
@@ -7671,10 +7796,10 @@ MenuItem.displayName = "MenuItem";
7671
7796
  import {
7672
7797
  DropdownMenuRadioGroup
7673
7798
  } from "@radix-ui/react-dropdown-menu";
7674
- import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7799
+ import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7675
7800
  var MenuRadioGroup = ({ children, label, ...props }) => {
7676
- return /* @__PURE__ */ jsxs16(DropdownMenuRadioGroup, { ...props, children: [
7677
- /* @__PURE__ */ jsx191(MenuLabel, { children: label }),
7801
+ return /* @__PURE__ */ jsxs17(DropdownMenuRadioGroup, { ...props, children: [
7802
+ /* @__PURE__ */ jsx193(MenuLabel, { children: label }),
7678
7803
  children
7679
7804
  ] });
7680
7805
  };
@@ -7685,11 +7810,11 @@ import {
7685
7810
  DropdownMenuItemIndicator,
7686
7811
  DropdownMenuRadioItem
7687
7812
  } from "@radix-ui/react-dropdown-menu";
7688
- import { jsx as jsx192 } from "react/jsx-runtime";
7813
+ import { jsx as jsx194 } from "react/jsx-runtime";
7689
7814
  var RadioMenuItem = ({
7690
7815
  onSelect,
7691
7816
  value,
7692
- indicator = /* @__PURE__ */ jsx192(
7817
+ indicator = /* @__PURE__ */ jsx194(
7693
7818
  Icon,
7694
7819
  {
7695
7820
  size: "sm",
@@ -7699,17 +7824,17 @@ var RadioMenuItem = ({
7699
7824
  ...props
7700
7825
  }) => {
7701
7826
  const extraProps = onSelect ? { onSelect } : {};
7702
- return /* @__PURE__ */ jsx192(
7827
+ return /* @__PURE__ */ jsx194(
7703
7828
  DropdownMenuRadioItem,
7704
7829
  {
7705
7830
  ...extraProps,
7706
7831
  asChild: true,
7707
7832
  value,
7708
- children: /* @__PURE__ */ jsx192(
7833
+ children: /* @__PURE__ */ jsx194(
7709
7834
  MenuItemButton,
7710
7835
  {
7711
7836
  ...props,
7712
- rightIcon: /* @__PURE__ */ jsx192(DropdownMenuItemIndicator, { children: indicator })
7837
+ rightIcon: /* @__PURE__ */ jsx194(DropdownMenuItemIndicator, { children: indicator })
7713
7838
  }
7714
7839
  )
7715
7840
  }
@@ -7721,9 +7846,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
7721
7846
  import {
7722
7847
  DropdownMenuCheckboxItem
7723
7848
  } from "@radix-ui/react-dropdown-menu";
7724
- import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7849
+ import { jsx as jsx195, jsxs as jsxs18 } from "react/jsx-runtime";
7725
7850
  var CheckboxIndicator2 = ({ checked, ...props }) => {
7726
- return checked ? /* @__PURE__ */ jsxs17(
7851
+ return checked ? /* @__PURE__ */ jsxs18(
7727
7852
  "svg",
7728
7853
  {
7729
7854
  ...props,
@@ -7733,14 +7858,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7733
7858
  width: "24",
7734
7859
  xmlns: "http://www.w3.org/2000/svg",
7735
7860
  children: [
7736
- /* @__PURE__ */ jsx193(
7861
+ /* @__PURE__ */ jsx195(
7737
7862
  "path",
7738
7863
  {
7739
7864
  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
7865
  fill: "#2949e5"
7741
7866
  }
7742
7867
  ),
7743
- /* @__PURE__ */ jsx193(
7868
+ /* @__PURE__ */ jsx195(
7744
7869
  "path",
7745
7870
  {
7746
7871
  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 +7874,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7749
7874
  )
7750
7875
  ]
7751
7876
  }
7752
- ) : /* @__PURE__ */ jsxs17(
7877
+ ) : /* @__PURE__ */ jsxs18(
7753
7878
  "svg",
7754
7879
  {
7755
7880
  ...props,
@@ -7759,14 +7884,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7759
7884
  width: "24",
7760
7885
  xmlns: "http://www.w3.org/2000/svg",
7761
7886
  children: [
7762
- /* @__PURE__ */ jsx193(
7887
+ /* @__PURE__ */ jsx195(
7763
7888
  "path",
7764
7889
  {
7765
7890
  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
7891
  fill: "#fcfcfd"
7767
7892
  }
7768
7893
  ),
7769
- /* @__PURE__ */ jsx193(
7894
+ /* @__PURE__ */ jsx195(
7770
7895
  "path",
7771
7896
  {
7772
7897
  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 +7908,18 @@ var CheckboxMenuItem = ({
7783
7908
  onCheckedChange,
7784
7909
  ...props
7785
7910
  }) => {
7786
- return /* @__PURE__ */ jsx193(
7911
+ return /* @__PURE__ */ jsx195(
7787
7912
  DropdownMenuCheckboxItem,
7788
7913
  {
7789
7914
  asChild: true,
7790
7915
  checked,
7791
7916
  onCheckedChange,
7792
7917
  onSelect,
7793
- children: /* @__PURE__ */ jsx193(
7918
+ children: /* @__PURE__ */ jsx195(
7794
7919
  MenuItemButton,
7795
7920
  {
7796
7921
  ...props,
7797
- leftIcon: /* @__PURE__ */ jsx193(CheckboxIndicator2, { checked })
7922
+ leftIcon: /* @__PURE__ */ jsx195(CheckboxIndicator2, { checked })
7798
7923
  }
7799
7924
  )
7800
7925
  }
@@ -7804,39 +7929,39 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
7804
7929
 
7805
7930
  // src/components/Modal/Modal.tsx
7806
7931
  import { forwardRef as forwardRef16 } from "react";
7807
- import styled35 from "styled-components";
7932
+ import styled36 from "styled-components";
7808
7933
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
7809
7934
  import { isNotNil as isNotNil14 } from "@wistia/type-guards";
7810
7935
 
7811
7936
  // src/components/Modal/ModalHeader.tsx
7812
- import styled32 from "styled-components";
7937
+ import styled33 from "styled-components";
7813
7938
  import { Title as DialogTitle } from "@radix-ui/react-dialog";
7814
7939
 
7815
7940
  // src/components/Modal/ModalCloseButton.tsx
7816
- import styled30 from "styled-components";
7941
+ import styled31 from "styled-components";
7817
7942
  import { Close as DialogClose } from "@radix-ui/react-dialog";
7818
- import { jsx as jsx194 } from "react/jsx-runtime";
7819
- var CloseButton = styled30(DialogClose)`
7943
+ import { jsx as jsx196 } from "react/jsx-runtime";
7944
+ var CloseButton = styled31(DialogClose)`
7820
7945
  align-self: start;
7821
7946
  `;
7822
7947
  var ModalCloseButton = () => {
7823
- return /* @__PURE__ */ jsx194(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx194(
7948
+ return /* @__PURE__ */ jsx196(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx196(
7824
7949
  IconButton,
7825
7950
  {
7826
7951
  label: "Dismiss modal",
7827
7952
  size: "sm",
7828
7953
  variant: "ghost",
7829
- children: /* @__PURE__ */ jsx194(Icon, { type: "close" })
7954
+ children: /* @__PURE__ */ jsx196(Icon, { type: "close" })
7830
7955
  }
7831
7956
  ) });
7832
7957
  };
7833
7958
 
7834
7959
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7835
- import styled31 from "styled-components";
7960
+ import styled32 from "styled-components";
7836
7961
  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({
7962
+ import { jsx as jsx197 } from "react/jsx-runtime";
7963
+ var VisuallyHidden = styled32.div({ ...visuallyHiddenStyle });
7964
+ var VisuallyHiddenButFocusable = styled32.div({
7840
7965
  "&:not(:focus-within)": visuallyHiddenStyle
7841
7966
  });
7842
7967
  var ScreenReaderOnly = ({
@@ -7847,15 +7972,15 @@ var ScreenReaderOnly = ({
7847
7972
  }) => {
7848
7973
  const accessibleText = isNotNil12(text) ? text : children;
7849
7974
  if (focusable) {
7850
- return /* @__PURE__ */ jsx195(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7975
+ return /* @__PURE__ */ jsx197(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7851
7976
  }
7852
- return /* @__PURE__ */ jsx195(VisuallyHidden, { ...otherProps, children: accessibleText });
7977
+ return /* @__PURE__ */ jsx197(VisuallyHidden, { ...otherProps, children: accessibleText });
7853
7978
  };
7854
7979
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
7855
7980
 
7856
7981
  // src/components/Modal/ModalHeader.tsx
7857
- import { jsx as jsx196, jsxs as jsxs18 } from "react/jsx-runtime";
7858
- var Header = styled32.header`
7982
+ import { jsx as jsx198, jsxs as jsxs19 } from "react/jsx-runtime";
7983
+ var Header = styled33.header`
7859
7984
  display: flex;
7860
7985
  order: 1;
7861
7986
  gap: var(--wui-space-01);
@@ -7867,7 +7992,7 @@ var Header = styled32.header`
7867
7992
  margin-top: 0;
7868
7993
  }
7869
7994
  `;
7870
- var Title = styled32(DialogTitle)`
7995
+ var Title = styled33(DialogTitle)`
7871
7996
  font-family: var(--wui-typography-heading-2-family);
7872
7997
  line-height: var(--wui-typography-heading-2-line-height);
7873
7998
  font-size: var(--wui-typography-heading-2-size);
@@ -7879,26 +8004,26 @@ var ModalHeader = ({
7879
8004
  hideCloseButton
7880
8005
  }) => {
7881
8006
  const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
7882
- return /* @__PURE__ */ jsxs18(Header, { children: [
7883
- /* @__PURE__ */ jsx196(TitleWrapper, { children: title }),
7884
- hideCloseButton ? null : /* @__PURE__ */ jsx196(ModalCloseButton, {})
8007
+ return /* @__PURE__ */ jsxs19(Header, { children: [
8008
+ /* @__PURE__ */ jsx198(TitleWrapper, { children: title }),
8009
+ hideCloseButton ? null : /* @__PURE__ */ jsx198(ModalCloseButton, {})
7885
8010
  ] });
7886
8011
  };
7887
8012
 
7888
8013
  // src/components/Modal/ModalContent.tsx
7889
8014
  import { forwardRef as forwardRef14 } from "react";
7890
- import styled33 from "styled-components";
8015
+ import styled34 from "styled-components";
7891
8016
  import { Content as DialogContent } from "@radix-ui/react-dialog";
7892
8017
 
7893
8018
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
7894
- import { useRef as useRef6, useEffect as useEffect2 } from "react";
8019
+ import { useRef as useRef7, useEffect as useEffect3 } from "react";
7895
8020
  import { isNotNil as isNotNil13 } from "@wistia/type-guards";
7896
8021
  var useFocusRestore = () => {
7897
- const previouslyFocusedRef = useRef6(null);
7898
- useEffect2(() => {
8022
+ const previouslyFocusedRef = useRef7(null);
8023
+ useEffect3(() => {
7899
8024
  previouslyFocusedRef.current = document.activeElement;
7900
8025
  }, []);
7901
- useEffect2(() => {
8026
+ useEffect3(() => {
7902
8027
  return () => {
7903
8028
  if (isNotNil13(previouslyFocusedRef.current)) {
7904
8029
  setTimeout(() => {
@@ -7910,8 +8035,8 @@ var useFocusRestore = () => {
7910
8035
  };
7911
8036
 
7912
8037
  // src/components/Modal/ModalContent.tsx
7913
- import { jsx as jsx197 } from "react/jsx-runtime";
7914
- var StyledModalContent = styled33(DialogContent)`
8038
+ import { jsx as jsx199 } from "react/jsx-runtime";
8039
+ var StyledModalContent = styled34(DialogContent)`
7915
8040
  background-color: var(--wui-color-bg-app);
7916
8041
  box-sizing: border-box;
7917
8042
  display: flex;
@@ -7954,7 +8079,7 @@ var StyledModalContent = styled33(DialogContent)`
7954
8079
  var ModalContent = forwardRef14(
7955
8080
  ({ fullHeight, width, children, ...otherProps }, ref) => {
7956
8081
  useFocusRestore();
7957
- return /* @__PURE__ */ jsx197(
8082
+ return /* @__PURE__ */ jsx199(
7958
8083
  StyledModalContent,
7959
8084
  {
7960
8085
  ref,
@@ -7969,8 +8094,8 @@ var ModalContent = forwardRef14(
7969
8094
 
7970
8095
  // src/private/components/Backdrop/Backdrop.tsx
7971
8096
  import { forwardRef as forwardRef15 } from "react";
7972
- import styled34 from "styled-components";
7973
- import { jsx as jsx198 } from "react/jsx-runtime";
8097
+ import styled35 from "styled-components";
8098
+ import { jsx as jsx200 } from "react/jsx-runtime";
7974
8099
  var backdropAnimationDuration = 150;
7975
8100
  var alignVerticalMap = {
7976
8101
  stretch: "normal",
@@ -7983,7 +8108,7 @@ var alignHorizontalMap = {
7983
8108
  center: "center",
7984
8109
  right: "end"
7985
8110
  };
7986
- var BackdropComponent = styled34.div`
8111
+ var BackdropComponent = styled35.div`
7987
8112
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
7988
8113
  animation-name: backdropShow;
7989
8114
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -8007,7 +8132,7 @@ var BackdropComponent = styled34.div`
8007
8132
  }
8008
8133
  `;
8009
8134
  var Backdrop = forwardRef15(
8010
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx198(
8135
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx200(
8011
8136
  BackdropComponent,
8012
8137
  {
8013
8138
  ref,
@@ -8021,8 +8146,8 @@ var Backdrop = forwardRef15(
8021
8146
  Backdrop.displayName = "Backdrop";
8022
8147
 
8023
8148
  // src/components/Modal/Modal.tsx
8024
- import { jsx as jsx199, jsxs as jsxs19 } from "react/jsx-runtime";
8025
- var ModalBody = styled35.div`
8149
+ import { jsx as jsx201, jsxs as jsxs20 } from "react/jsx-runtime";
8150
+ var ModalBody = styled36.div`
8026
8151
  flex-direction: column;
8027
8152
  display: flex;
8028
8153
  order: 2;
@@ -8040,7 +8165,7 @@ var Modal = forwardRef16(
8040
8165
  width,
8041
8166
  ...props
8042
8167
  }, ref) => {
8043
- return /* @__PURE__ */ jsx199(
8168
+ return /* @__PURE__ */ jsx201(
8044
8169
  DialogRoot,
8045
8170
  {
8046
8171
  onOpenChange: (open2) => {
@@ -8049,9 +8174,9 @@ var Modal = forwardRef16(
8049
8174
  }
8050
8175
  },
8051
8176
  open: isOpen,
8052
- children: /* @__PURE__ */ jsxs19(DialogPortal, { children: [
8053
- /* @__PURE__ */ jsx199(Backdrop, {}),
8054
- /* @__PURE__ */ jsxs19(
8177
+ children: /* @__PURE__ */ jsxs20(DialogPortal, { children: [
8178
+ /* @__PURE__ */ jsx201(Backdrop, {}),
8179
+ /* @__PURE__ */ jsxs20(
8055
8180
  ModalContent,
8056
8181
  {
8057
8182
  ref,
@@ -8068,8 +8193,8 @@ var Modal = forwardRef16(
8068
8193
  width,
8069
8194
  ...props,
8070
8195
  children: [
8071
- /* @__PURE__ */ jsx199(ModalBody, { children }),
8072
- /* @__PURE__ */ jsx199(
8196
+ /* @__PURE__ */ jsx201(ModalBody, { children }),
8197
+ /* @__PURE__ */ jsx201(
8073
8198
  ModalHeader,
8074
8199
  {
8075
8200
  hideCloseButton,
@@ -8089,15 +8214,15 @@ Modal.displayName = "Modal";
8089
8214
 
8090
8215
  // src/components/Radio/Radio.tsx
8091
8216
  import { forwardRef as forwardRef17, useId as useId3 } from "react";
8092
- import styled36, { css as css21 } from "styled-components";
8217
+ import styled37, { css as css21 } from "styled-components";
8093
8218
  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`
8219
+ import { jsx as jsx202, jsxs as jsxs21 } from "react/jsx-runtime";
8220
+ var StyledLabelWrapper2 = styled37.div`
8096
8221
  display: flex;
8097
8222
  flex-direction: column;
8098
8223
  padding-left: var(--wui-space-02);
8099
8224
  `;
8100
- var StyledRadio = styled36.input`
8225
+ var StyledRadio = styled37.input`
8101
8226
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
8102
8227
  appearance: none;
8103
8228
  margin: 0;
@@ -8139,7 +8264,7 @@ var defaultHoverStyle = css21`
8139
8264
  /* TODO Lamp to design hover state */
8140
8265
  cursor: pointer;
8141
8266
  `;
8142
- var StyledRadioWrapper = styled36.div`
8267
+ var StyledRadioWrapper = styled37.div`
8143
8268
  align-items: baseline;
8144
8269
  border: 1px solid transparent;
8145
8270
  border-radius: 4px;
@@ -8177,13 +8302,13 @@ var Radio = forwardRef17(
8177
8302
  }, ref) => {
8178
8303
  const generatedId = useId3();
8179
8304
  const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
8180
- return /* @__PURE__ */ jsxs20(
8305
+ return /* @__PURE__ */ jsxs21(
8181
8306
  StyledRadioWrapper,
8182
8307
  {
8183
8308
  "aria-invalid": otherProps["aria-invalid"],
8184
8309
  disabled,
8185
8310
  children: [
8186
- /* @__PURE__ */ jsx200(
8311
+ /* @__PURE__ */ jsx202(
8187
8312
  StyledRadio,
8188
8313
  {
8189
8314
  ref,
@@ -8198,8 +8323,8 @@ var Radio = forwardRef17(
8198
8323
  ...otherProps
8199
8324
  }
8200
8325
  ),
8201
- /* @__PURE__ */ jsxs20(StyledLabelWrapper2, { children: [
8202
- /* @__PURE__ */ jsx200(
8326
+ /* @__PURE__ */ jsxs21(StyledLabelWrapper2, { children: [
8327
+ /* @__PURE__ */ jsx202(
8203
8328
  Label,
8204
8329
  {
8205
8330
  disabled,
@@ -8208,7 +8333,7 @@ var Radio = forwardRef17(
8208
8333
  children: label
8209
8334
  }
8210
8335
  ),
8211
- /* @__PURE__ */ jsx200(LabelDescription, { children: description })
8336
+ /* @__PURE__ */ jsx202(LabelDescription, { children: description })
8212
8337
  ] })
8213
8338
  ]
8214
8339
  }
@@ -8219,10 +8344,10 @@ Radio.displayName = "Radio";
8219
8344
 
8220
8345
  // src/components/Tag/Tag.tsx
8221
8346
  import { forwardRef as forwardRef18 } from "react";
8222
- import styled37 from "styled-components";
8347
+ import styled38 from "styled-components";
8223
8348
  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`
8349
+ import { Fragment as Fragment3, jsx as jsx203, jsxs as jsxs22 } from "react/jsx-runtime";
8350
+ var TagLabel = styled38.a`
8226
8351
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8227
8352
  font-size: var(--wui-typography-label-4-size);
8228
8353
  font-weight: var(--wui-typography-label-4-weight);
@@ -8250,14 +8375,14 @@ var TagLabel = styled37.a`
8250
8375
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
8251
8376
  }
8252
8377
  `;
8253
- var TagDivider = styled37.div`
8378
+ var TagDivider = styled38.div`
8254
8379
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8255
8380
  border-left: 1px solid var(--wui-color-border);
8256
8381
  display: flex;
8257
8382
  height: 14px;
8258
8383
  width: 1px;
8259
8384
  `;
8260
- var StyledRemoveButton = styled37.button`
8385
+ var StyledRemoveButton = styled38.button`
8261
8386
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8262
8387
  all: unset;
8263
8388
  cursor: pointer;
@@ -8285,7 +8410,7 @@ var StyledRemoveButton = styled37.button`
8285
8410
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
8286
8411
  }
8287
8412
  `;
8288
- var StyledTag = styled37.div`
8413
+ var StyledTag = styled38.div`
8289
8414
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8290
8415
  align-items: center;
8291
8416
  background-color: var(--wui-color-bg-surface-secondary);
@@ -8302,23 +8427,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8302
8427
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
8303
8428
  );
8304
8429
  }
8305
- return /* @__PURE__ */ jsxs21(Fragment2, { children: [
8306
- /* @__PURE__ */ jsx201(TagDivider, { $colorScheme: colorScheme }),
8307
- /* @__PURE__ */ jsxs21(
8430
+ return /* @__PURE__ */ jsxs22(Fragment3, { children: [
8431
+ /* @__PURE__ */ jsx203(TagDivider, { $colorScheme: colorScheme }),
8432
+ /* @__PURE__ */ jsxs22(
8308
8433
  StyledRemoveButton,
8309
8434
  {
8310
8435
  $colorScheme: colorScheme,
8311
8436
  onClick: onClickRemove,
8312
8437
  type: "button",
8313
8438
  children: [
8314
- /* @__PURE__ */ jsx201(
8439
+ /* @__PURE__ */ jsx203(
8315
8440
  Icon,
8316
8441
  {
8317
8442
  size: "sm",
8318
8443
  type: "close"
8319
8444
  }
8320
8445
  ),
8321
- /* @__PURE__ */ jsx201(ScreenReaderOnly, { children: onClickRemoveLabel })
8446
+ /* @__PURE__ */ jsx203(ScreenReaderOnly, { children: onClickRemoveLabel })
8322
8447
  ]
8323
8448
  }
8324
8449
  )
@@ -8327,14 +8452,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8327
8452
  var Tag = forwardRef18(
8328
8453
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
8329
8454
  const labelProps = isNotNil15(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
8330
- return /* @__PURE__ */ jsxs21(
8455
+ return /* @__PURE__ */ jsxs22(
8331
8456
  StyledTag,
8332
8457
  {
8333
8458
  ref,
8334
8459
  $colorScheme: colorScheme,
8335
8460
  ...otherProps,
8336
8461
  children: [
8337
- /* @__PURE__ */ jsx201(
8462
+ /* @__PURE__ */ jsx203(
8338
8463
  TagLabel,
8339
8464
  {
8340
8465
  ...labelProps,
@@ -8342,7 +8467,7 @@ var Tag = forwardRef18(
8342
8467
  children: label
8343
8468
  }
8344
8469
  ),
8345
- /* @__PURE__ */ jsx201(
8470
+ /* @__PURE__ */ jsx203(
8346
8471
  RemoveButton,
8347
8472
  {
8348
8473
  colorScheme,
@@ -8365,8 +8490,8 @@ import {
8365
8490
  Portal,
8366
8491
  Arrow
8367
8492
  } 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";
8493
+ import styled39, { css as css22 } from "styled-components";
8494
+ import { jsx as jsx204, jsxs as jsxs23 } from "react/jsx-runtime";
8370
8495
  var CompactTooltipStyles = css22`
8371
8496
  --tooltip-font-size: var(--wui-typography-label-4-size);
8372
8497
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
@@ -8374,7 +8499,7 @@ var CompactTooltipStyles = css22`
8374
8499
  --tooltip-horizontal-padding: var(--wui-space-02);
8375
8500
  --tooltip-vertical-padding: var(--wui-space-03);
8376
8501
  `;
8377
- var StyledContent = styled38(Content)`
8502
+ var StyledContent = styled39(Content)`
8378
8503
  --tooltip-font-family: var(--wui-typography-family-default);
8379
8504
  --tooltip-border-radius: var(--wui-border-radius-05);
8380
8505
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -8432,14 +8557,14 @@ var Tooltip = ({
8432
8557
  if (forceOpen === true) {
8433
8558
  rootProps.open = true;
8434
8559
  }
8435
- return /* @__PURE__ */ jsxs22(
8560
+ return /* @__PURE__ */ jsxs23(
8436
8561
  Root,
8437
8562
  {
8438
8563
  delayDuration: delay,
8439
8564
  ...rootProps,
8440
8565
  children: [
8441
- /* @__PURE__ */ jsx202(Trigger, { asChild: true, children }),
8442
- /* @__PURE__ */ jsx202(Portal, { children: /* @__PURE__ */ jsxs22(
8566
+ /* @__PURE__ */ jsx204(Trigger, { asChild: true, children }),
8567
+ /* @__PURE__ */ jsx204(Portal, { children: /* @__PURE__ */ jsxs23(
8443
8568
  StyledContent,
8444
8569
  {
8445
8570
  $compact: compact,
@@ -8447,7 +8572,7 @@ var Tooltip = ({
8447
8572
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
8448
8573
  children: [
8449
8574
  content,
8450
- !hideArrow ? /* @__PURE__ */ jsx202(Arrow, { asChild: true, children: /* @__PURE__ */ jsx202(
8575
+ !hideArrow ? /* @__PURE__ */ jsx204(Arrow, { asChild: true, children: /* @__PURE__ */ jsx204(
8451
8576
  "svg",
8452
8577
  {
8453
8578
  fill: "var(--tooltip-bg)",
@@ -8456,7 +8581,7 @@ var Tooltip = ({
8456
8581
  viewBox: "0 0 12 8",
8457
8582
  width: "12",
8458
8583
  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" })
8584
+ 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
8585
  }
8461
8586
  ) }) : null
8462
8587
  ]
@@ -8469,26 +8594,26 @@ var Tooltip = ({
8469
8594
  Tooltip.displayName = "Tooltip";
8470
8595
 
8471
8596
  // src/components/WistiaLogo/WistiaLogo.tsx
8472
- import styled39 from "styled-components";
8597
+ import styled40 from "styled-components";
8473
8598
  import { isNotNil as isNotNil16 } from "@wistia/type-guards";
8474
- import { jsx as jsx203, jsxs as jsxs23 } from "react/jsx-runtime";
8599
+ import { jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
8475
8600
  var renderBrandmark = (brandmarkColor, iconOnly) => {
8476
8601
  if (iconOnly) {
8477
- return /* @__PURE__ */ jsx203(
8602
+ return /* @__PURE__ */ jsx205(
8478
8603
  "g",
8479
8604
  {
8480
8605
  "data-testid": "ui-wistia-logo-brandmark",
8481
8606
  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" })
8607
+ 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
8608
  }
8484
8609
  );
8485
8610
  }
8486
- return /* @__PURE__ */ jsx203(
8611
+ return /* @__PURE__ */ jsx205(
8487
8612
  "g",
8488
8613
  {
8489
8614
  "data-testid": "ui-wistia-logo-brandmark",
8490
8615
  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" })
8616
+ 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
8617
  }
8493
8618
  );
8494
8619
  };
@@ -8496,12 +8621,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
8496
8621
  if (iconOnly) {
8497
8622
  return null;
8498
8623
  }
8499
- return /* @__PURE__ */ jsx203(
8624
+ return /* @__PURE__ */ jsx205(
8500
8625
  "g",
8501
8626
  {
8502
8627
  "data-testid": "ui-wistia-logo-logotype",
8503
8628
  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" })
8629
+ 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
8630
  }
8506
8631
  );
8507
8632
  };
@@ -8511,7 +8636,7 @@ var computedViewBox = (iconOnly) => {
8511
8636
  }
8512
8637
  return "0 0 144 31.47";
8513
8638
  };
8514
- var WistiaLogoComponent = styled39.svg`
8639
+ var WistiaLogoComponent = styled40.svg`
8515
8640
  height: ${({ height }) => `${height}px`};
8516
8641
 
8517
8642
  /* ensure it will always fit on mobile */
@@ -8553,7 +8678,7 @@ var WistiaLogo = ({
8553
8678
  };
8554
8679
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
8555
8680
  const logotypeColor = VARIANT_COLORS[variant].logotype;
8556
- const Logo = /* @__PURE__ */ jsxs23(
8681
+ const Logo = /* @__PURE__ */ jsxs24(
8557
8682
  WistiaLogoComponent,
8558
8683
  {
8559
8684
  $hoverColor: hoverColor,
@@ -8563,63 +8688,16 @@ var WistiaLogo = ({
8563
8688
  xmlns: "http://www.w3.org/2000/svg",
8564
8689
  ...otherProps,
8565
8690
  children: [
8566
- /* @__PURE__ */ jsx203("title", { children: title }),
8567
- isNotNil16(description) ? /* @__PURE__ */ jsx203("desc", { children: description }) : null,
8691
+ /* @__PURE__ */ jsx205("title", { children: title }),
8692
+ isNotNil16(description) ? /* @__PURE__ */ jsx205("desc", { children: description }) : null,
8568
8693
  renderBrandmark(brandmarkColor, iconOnly),
8569
8694
  renderLogotype(logotypeColor, iconOnly)
8570
8695
  ]
8571
8696
  }
8572
8697
  );
8573
- return href !== void 0 ? /* @__PURE__ */ jsx203("a", { href, children: Logo }) : Logo;
8698
+ return href !== void 0 ? /* @__PURE__ */ jsx205("a", { href, children: Logo }) : Logo;
8574
8699
  };
8575
8700
  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
8701
  export {
8624
8702
  ActionButton,
8625
8703
  Avatar,
@@ -8672,7 +8750,9 @@ export {
8672
8750
  mq,
8673
8751
  useActiveMq,
8674
8752
  useAriaLive,
8753
+ useBoolean,
8675
8754
  useFormState,
8755
+ useKey,
8676
8756
  useMq,
8677
8757
  useToast,
8678
8758
  useWindowSize