@wistia/ui 0.4.3-beta.f6b8f8cc.086364f → 0.4.4

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.3-beta.f6b8f8cc.086364f
3
+ * @license @wistia/ui v0.4.4
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -1544,83 +1544,6 @@ var useActiveMq = () => {
1544
1544
  });
1545
1545
  };
1546
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
-
1624
1547
  // src/hooks/useToast/useToast.tsx
1625
1548
  import { useCallback as useCallback3 } from "react";
1626
1549
  import { toast as sonnerToast } from "sonner";
@@ -1905,6 +1828,17 @@ var useToast = () => {
1905
1828
  );
1906
1829
  };
1907
1830
 
1831
+ // src/hooks/useAriaLive/useAriaLive.tsx
1832
+ import { useContext } from "react";
1833
+ import { isNil as isNil2 } from "@wistia/type-guards";
1834
+ var useAriaLive = () => {
1835
+ const context = useContext(AriaLiveContext);
1836
+ if (isNil2(context)) {
1837
+ throw new Error("useAriaLive must be used within an AriaLiveProvider");
1838
+ }
1839
+ return context;
1840
+ };
1841
+
1908
1842
  // src/components/ActionButton/ActionButton.tsx
1909
1843
  import { forwardRef as forwardRef3 } from "react";
1910
1844
  import styled6, { css as css14 } from "styled-components";
@@ -5277,13 +5211,13 @@ var iconMap = {
5277
5211
 
5278
5212
  // src/private/hooks/useResponsiveProp/useResponsiveProp.ts
5279
5213
  import { isNotUndefined, isRecord, isUndefined } from "@wistia/type-guards";
5280
- import { useMemo as useMemo3 } from "react";
5214
+ import { useMemo as useMemo2 } from "react";
5281
5215
  var isResponsiveObject = (values) => {
5282
5216
  return typeof values === "object" && values !== null && !Array.isArray(values) && "base" in values;
5283
5217
  };
5284
5218
  var useResponsiveProp = (values) => {
5285
5219
  const activeMediaQueries = useActiveMq();
5286
- return useMemo3(() => {
5220
+ return useMemo2(() => {
5287
5221
  if (isRecord(values) && isResponsiveObject(values)) {
5288
5222
  const mq2 = activeMediaQueries.find((key) => key in values);
5289
5223
  return isNotUndefined(mq2) && isNotUndefined(values[mq2]) ? values[mq2] : values.base;
@@ -5731,7 +5665,7 @@ var ActionButton = forwardRef3(
5731
5665
  ActionButton.displayName = "ActionButton";
5732
5666
 
5733
5667
  // src/components/Avatar/Avatar.tsx
5734
- import { useState as useState4, useMemo as useMemo4 } from "react";
5668
+ import { useState as useState4, useMemo as useMemo3 } from "react";
5735
5669
  import { isNil as isNil6 } from "@wistia/type-guards";
5736
5670
  import styled8 from "styled-components";
5737
5671
 
@@ -5872,7 +5806,7 @@ var Avatar = ({
5872
5806
  onImageLoad?.("initials");
5873
5807
  };
5874
5808
  const avatarSize = heightAndWidth ?? avatarSizeMap[size];
5875
- const avatarColor = useMemo4(() => chooseColorScheme(name), [name]);
5809
+ const avatarColor = useMemo3(() => chooseColorScheme(name), [name]);
5876
5810
  const showInitials = isNil6(imageUrl) || imageLoadState === "error";
5877
5811
  return /* @__PURE__ */ jsx165(
5878
5812
  AvatarWrapper,
@@ -6072,57 +6006,10 @@ var Box = ({
6072
6006
  };
6073
6007
  Box.displayName = "Box";
6074
6008
 
6075
- // src/components/Breadcrumbs/Breadcrumbs.tsx
6076
- import styled11 from "styled-components";
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
6009
  // src/components/ButtonGroup/ButtonGroup.tsx
6123
- import styled12 from "styled-components";
6010
+ import styled11 from "styled-components";
6124
6011
  import { isNil as isNil8 } from "@wistia/type-guards";
6125
- import { jsx as jsx170 } from "react/jsx-runtime";
6012
+ import { jsx as jsx168 } from "react/jsx-runtime";
6126
6013
  var getAlignment = (align) => {
6127
6014
  if (align === "center") {
6128
6015
  return "center";
@@ -6135,7 +6022,7 @@ var getAlignment = (align) => {
6135
6022
  }
6136
6023
  return "flex-start";
6137
6024
  };
6138
- var ButtonGroupComponent = styled12.div`
6025
+ var ButtonGroupComponent = styled11.div`
6139
6026
  display: flex;
6140
6027
 
6141
6028
  /* this helps ensure that primary buttons appear at the top of the column */
@@ -6164,7 +6051,7 @@ var ButtonGroup = ({
6164
6051
  if (isNil8(children)) {
6165
6052
  return null;
6166
6053
  }
6167
- return /* @__PURE__ */ jsx170(
6054
+ return /* @__PURE__ */ jsx168(
6168
6055
  ButtonGroupComponent,
6169
6056
  {
6170
6057
  $align: align,
@@ -6177,9 +6064,9 @@ var ButtonGroup = ({
6177
6064
  ButtonGroup.displayName = "ButtonGroup";
6178
6065
 
6179
6066
  // src/components/Card/Card.tsx
6180
- import styled13 from "styled-components";
6181
- import { jsx as jsx171 } from "react/jsx-runtime";
6182
- var StyledCard = styled13(Box)`
6067
+ import styled12 from "styled-components";
6068
+ import { jsx as jsx169 } from "react/jsx-runtime";
6069
+ var StyledCard = styled12(Box)`
6183
6070
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6184
6071
  box-sizing: border-box;
6185
6072
  padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
@@ -6212,7 +6099,7 @@ var Card = ({
6212
6099
  prominence = "secondary",
6213
6100
  border = false,
6214
6101
  ...props
6215
- }) => /* @__PURE__ */ jsx171(
6102
+ }) => /* @__PURE__ */ jsx169(
6216
6103
  StyledCard,
6217
6104
  {
6218
6105
  $backgroundColor: prominenceMap[prominence].backgroundColor,
@@ -6230,15 +6117,15 @@ Card.displayName = "Card";
6230
6117
  // src/components/Checkbox/Checkbox.tsx
6231
6118
  import { forwardRef as forwardRef6, useId } from "react";
6232
6119
  import { Root as CheckboxRoot, Indicator as CheckboxIndicator } from "@radix-ui/react-checkbox";
6233
- import styled17 from "styled-components";
6120
+ import styled16 from "styled-components";
6234
6121
  import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
6235
6122
 
6236
6123
  // src/components/Label/Label.tsx
6237
- import styled15, { css as css16 } from "styled-components";
6124
+ import styled14, { css as css16 } from "styled-components";
6238
6125
 
6239
6126
  // src/components/Heading/Heading.tsx
6240
6127
  import { forwardRef as forwardRef5 } from "react";
6241
- import styled14, { css as css15 } from "styled-components";
6128
+ import styled13, { css as css15 } from "styled-components";
6242
6129
 
6243
6130
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
6244
6131
  var makePolymorphic = (component) => {
@@ -6246,7 +6133,7 @@ var makePolymorphic = (component) => {
6246
6133
  };
6247
6134
 
6248
6135
  // src/components/Heading/Heading.tsx
6249
- import { jsx as jsx172 } from "react/jsx-runtime";
6136
+ import { jsx as jsx170 } from "react/jsx-runtime";
6250
6137
  var heroStyle = css15`
6251
6138
  --font-family: var(--wui-typography-heading-hero-family);
6252
6139
  --font-size: var(--wui-typography-heading-hero-size);
@@ -6299,7 +6186,7 @@ var variantStyleMap = {
6299
6186
  heading6: heading6TextStyle
6300
6187
  };
6301
6188
  var DEFAULT_ELEMENT = "h1";
6302
- var StyledHeading = styled14.div`
6189
+ var StyledHeading = styled13.div`
6303
6190
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6304
6191
  font-family: var(--font-family);
6305
6192
  font-size: var(--font-size);
@@ -6342,7 +6229,7 @@ var HeadingComponent = forwardRef5(
6342
6229
  variant = "heading1",
6343
6230
  renderAs,
6344
6231
  ...otherProps
6345
- }, ref) => /* @__PURE__ */ jsx172(
6232
+ }, ref) => /* @__PURE__ */ jsx170(
6346
6233
  StyledHeading,
6347
6234
  {
6348
6235
  ref,
@@ -6362,7 +6249,7 @@ HeadingComponent.displayName = "Heading";
6362
6249
  var Heading = makePolymorphic(HeadingComponent);
6363
6250
 
6364
6251
  // src/components/Label/Label.tsx
6365
- import { jsx as jsx173 } from "react/jsx-runtime";
6252
+ import { jsx as jsx171 } from "react/jsx-runtime";
6366
6253
  var requiredStyle = css16`
6367
6254
  &::after {
6368
6255
  color: var(--wui-color-text-error);
@@ -6374,7 +6261,7 @@ var requiredStyle = css16`
6374
6261
  var disabledStyle = css16`
6375
6262
  color: var(--wui-color-text-disabled);
6376
6263
  `;
6377
- var StyledLabel2 = styled15(Heading).attrs({
6264
+ var StyledLabel2 = styled14(Heading).attrs({
6378
6265
  variant: "heading6",
6379
6266
  renderAs: "label"
6380
6267
  })`
@@ -6403,7 +6290,7 @@ var Label = ({
6403
6290
  required = false,
6404
6291
  screenReaderOnly = false,
6405
6292
  ...otherProps
6406
- }) => /* @__PURE__ */ jsx173(
6293
+ }) => /* @__PURE__ */ jsx171(
6407
6294
  StyledLabel2,
6408
6295
  {
6409
6296
  ...otherProps,
@@ -6417,10 +6304,10 @@ var Label = ({
6417
6304
  Label.displayName = "Label";
6418
6305
 
6419
6306
  // src/components/Label/LabelDescription.tsx
6420
- import styled16 from "styled-components";
6307
+ import styled15 from "styled-components";
6421
6308
  import { isNil as isNil9 } from "@wistia/type-guards";
6422
- import { jsx as jsx174 } from "react/jsx-runtime";
6423
- var StyledLabelDescription = styled16.div`
6309
+ import { jsx as jsx172 } from "react/jsx-runtime";
6310
+ var StyledLabelDescription = styled15.div`
6424
6311
  color: var(--wui-color-text-secondary);
6425
6312
  font-size: var(--wui-typography-body-4-size);
6426
6313
  font-weight: var(--wui-typography-body-4-weight);
@@ -6433,13 +6320,13 @@ var LabelDescription = ({
6433
6320
  if (isNil9(children)) {
6434
6321
  return null;
6435
6322
  }
6436
- return /* @__PURE__ */ jsx174(StyledLabelDescription, { ...props, children });
6323
+ return /* @__PURE__ */ jsx172(StyledLabelDescription, { ...props, children });
6437
6324
  };
6438
6325
  LabelDescription.displayName = "LabelDescription";
6439
6326
 
6440
6327
  // src/components/Checkbox/Checkbox.tsx
6441
- import { jsx as jsx175, jsxs as jsxs9 } from "react/jsx-runtime";
6442
- var CheckIcon = () => /* @__PURE__ */ jsx175(
6328
+ import { jsx as jsx173, jsxs as jsxs8 } from "react/jsx-runtime";
6329
+ var CheckIcon = () => /* @__PURE__ */ jsx173(
6443
6330
  "svg",
6444
6331
  {
6445
6332
  fill: "inherit",
@@ -6447,7 +6334,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx175(
6447
6334
  viewBox: "0 0 10 8",
6448
6335
  width: "10",
6449
6336
  xmlns: "http://www.w3.org/2000/svg",
6450
- children: /* @__PURE__ */ jsx175(
6337
+ children: /* @__PURE__ */ jsx173(
6451
6338
  "path",
6452
6339
  {
6453
6340
  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",
@@ -6456,7 +6343,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx175(
6456
6343
  )
6457
6344
  }
6458
6345
  );
6459
- var StyledCheckboxWrapper = styled17.div`
6346
+ var StyledCheckboxWrapper = styled16.div`
6460
6347
  display: flex;
6461
6348
  align-items: center;
6462
6349
  cursor: pointer;
@@ -6470,7 +6357,7 @@ var StyledCheckboxWrapper = styled17.div`
6470
6357
  background-color: #efefef;
6471
6358
  }
6472
6359
  `;
6473
- var StyledCheckboxRoot = styled17(CheckboxRoot)`
6360
+ var StyledCheckboxRoot = styled16(CheckboxRoot)`
6474
6361
  all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
6475
6362
  background-color: var(--wui-color-bg-fill-white);
6476
6363
  min-width: 16px;
@@ -6504,10 +6391,10 @@ var StyledCheckboxRoot = styled17(CheckboxRoot)`
6504
6391
  /* TODO Lamp to design focus state */
6505
6392
  }
6506
6393
  `;
6507
- var StyledCheckboxIndicator = styled17(CheckboxIndicator)`
6394
+ var StyledCheckboxIndicator = styled16(CheckboxIndicator)`
6508
6395
  display: flex;
6509
6396
  `;
6510
- var StyledLabelWrapper = styled17.div`
6397
+ var StyledLabelWrapper = styled16.div`
6511
6398
  display: flex;
6512
6399
  flex-direction: column;
6513
6400
  margin-left: var(--wui-space-02);
@@ -6528,8 +6415,8 @@ var Checkbox = forwardRef6(
6528
6415
  }, ref) => {
6529
6416
  const generatedId = useId();
6530
6417
  const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox-group-${generatedId}`;
6531
- return /* @__PURE__ */ jsxs9(StyledCheckboxWrapper, { children: [
6532
- /* @__PURE__ */ jsx175(
6418
+ return /* @__PURE__ */ jsxs8(StyledCheckboxWrapper, { children: [
6419
+ /* @__PURE__ */ jsx173(
6533
6420
  StyledCheckboxRoot,
6534
6421
  {
6535
6422
  ref,
@@ -6554,11 +6441,11 @@ var Checkbox = forwardRef6(
6554
6441
  required,
6555
6442
  value,
6556
6443
  ...otherProps,
6557
- children: /* @__PURE__ */ jsx175(StyledCheckboxIndicator, { children: /* @__PURE__ */ jsx175(CheckIcon, {}) })
6444
+ children: /* @__PURE__ */ jsx173(StyledCheckboxIndicator, { children: /* @__PURE__ */ jsx173(CheckIcon, {}) })
6558
6445
  }
6559
6446
  ),
6560
- /* @__PURE__ */ jsxs9(StyledLabelWrapper, { children: [
6561
- /* @__PURE__ */ jsx175(
6447
+ /* @__PURE__ */ jsxs8(StyledLabelWrapper, { children: [
6448
+ /* @__PURE__ */ jsx173(
6562
6449
  Label,
6563
6450
  {
6564
6451
  disabled,
@@ -6567,7 +6454,7 @@ var Checkbox = forwardRef6(
6567
6454
  children: label
6568
6455
  }
6569
6456
  ),
6570
- /* @__PURE__ */ jsx175(LabelDescription, { children: description })
6457
+ /* @__PURE__ */ jsx173(LabelDescription, { children: description })
6571
6458
  ] })
6572
6459
  ] });
6573
6460
  }
@@ -6575,8 +6462,8 @@ var Checkbox = forwardRef6(
6575
6462
  Checkbox.displayName = "Checkbox";
6576
6463
 
6577
6464
  // src/components/Divider/Divider.tsx
6578
- import styled18, { css as css17 } from "styled-components";
6579
- import { jsx as jsx176 } from "react/jsx-runtime";
6465
+ import styled17, { css as css17 } from "styled-components";
6466
+ import { jsx as jsx174 } from "react/jsx-runtime";
6580
6467
  var horizontalBorderCss = css17`
6581
6468
  border-top-color: var(--wui-color-border);
6582
6469
  border-top-style: solid;
@@ -6590,7 +6477,7 @@ var verticalBorderCss = css17`
6590
6477
  min-height: 100%;
6591
6478
  width: 1px;
6592
6479
  `;
6593
- var DividerComponent = styled18.div`
6480
+ var DividerComponent = styled17.div`
6594
6481
  ${({ $orientation }) => {
6595
6482
  switch ($orientation) {
6596
6483
  case "vertical":
@@ -6605,7 +6492,7 @@ var Divider = ({
6605
6492
  orientation = "horizontal",
6606
6493
  ...otherProps
6607
6494
  }) => {
6608
- return /* @__PURE__ */ jsx176(
6495
+ return /* @__PURE__ */ jsx174(
6609
6496
  DividerComponent,
6610
6497
  {
6611
6498
  $orientation: orientation,
@@ -6618,16 +6505,16 @@ var Divider = ({
6618
6505
  Divider.displayName = "Divider";
6619
6506
 
6620
6507
  // src/components/Form/Form.tsx
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";
6508
+ import { forwardRef as forwardRef8, useRef as useRef2, useMemo as useMemo4, createContext as createContext2, useState as useState5, useId as useId2 } from "react";
6509
+ import styled19 from "styled-components";
6623
6510
  import { isNotUndefined as isNotUndefined4, isUndefined as isUndefined3 } from "@wistia/type-guards";
6624
6511
 
6625
6512
  // src/components/Stack/Stack.tsx
6626
6513
  import { forwardRef as forwardRef7 } from "react";
6627
- import styled19 from "styled-components";
6628
- import { jsx as jsx177 } from "react/jsx-runtime";
6514
+ import styled18 from "styled-components";
6515
+ import { jsx as jsx175 } from "react/jsx-runtime";
6629
6516
  var DEFAULT_ELEMENT2 = "div";
6630
- var StyledStack = styled19.div`
6517
+ var StyledStack = styled18.div`
6631
6518
  display: flex;
6632
6519
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
6633
6520
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
@@ -6636,7 +6523,7 @@ var StackComponent = forwardRef7(
6636
6523
  ({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
6637
6524
  const responsiveGap = useResponsiveProp(gap);
6638
6525
  const responsiveDirection = useResponsiveProp(direction);
6639
- return /* @__PURE__ */ jsx177(
6526
+ return /* @__PURE__ */ jsx175(
6640
6527
  StyledStack,
6641
6528
  {
6642
6529
  ref,
@@ -6652,8 +6539,8 @@ StackComponent.displayName = "Stack";
6652
6539
  var Stack = makePolymorphic(StackComponent);
6653
6540
 
6654
6541
  // src/components/Form/Form.tsx
6655
- import { jsx as jsx178 } from "react/jsx-runtime";
6656
- var StyledForm = styled20.form`
6542
+ import { jsx as jsx176 } from "react/jsx-runtime";
6543
+ var StyledForm = styled19.form`
6657
6544
  --form-default-width: 690px;
6658
6545
 
6659
6546
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
@@ -6668,7 +6555,7 @@ var FormContext = createContext2({
6668
6555
  var FormComponent = ({ children, action, values = {}, validate, fullWidth = false, ...props }, forwardedRef) => {
6669
6556
  const [errors, setErrors] = useState5({});
6670
6557
  const [hasSubmitted, setHasSubmitted] = useState5(false);
6671
- const innerRef = useRef3();
6558
+ const innerRef = useRef2();
6672
6559
  const ref = forwardedRef ?? innerRef;
6673
6560
  const autoId = useId2();
6674
6561
  const id = props.id ?? autoId;
@@ -6712,7 +6599,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
6712
6599
  void action(null);
6713
6600
  }
6714
6601
  };
6715
- const context = useMemo5(() => {
6602
+ const context = useMemo4(() => {
6716
6603
  return {
6717
6604
  values,
6718
6605
  errors,
@@ -6722,7 +6609,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
6722
6609
  }, [values, errors, id, hasSubmitted]);
6723
6610
  return (
6724
6611
  // @ts-expect-error - generic context providers are a giant pain
6725
- /* @__PURE__ */ jsx178(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx178(
6612
+ /* @__PURE__ */ jsx176(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx176(
6726
6613
  Stack,
6727
6614
  {
6728
6615
  gap: "space-05",
@@ -6779,23 +6666,23 @@ var useFormState = (action, initialData = {}) => {
6779
6666
  };
6780
6667
 
6781
6668
  // src/components/Form/FormErrorSummary.tsx
6782
- import { useContext as useContext2, useRef as useRef4 } from "react";
6669
+ import { useContext as useContext2, useRef as useRef3 } from "react";
6783
6670
  import { isArray, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
6784
- import { jsx as jsx179, jsxs as jsxs10 } from "react/jsx-runtime";
6671
+ import { jsx as jsx177, jsxs as jsxs9 } from "react/jsx-runtime";
6785
6672
  var ErrorItem = ({ name, error, formId }) => {
6786
- return /* @__PURE__ */ jsx179("li", { children: /* @__PURE__ */ jsx179(Link, { href: `${formId}-${name}`, children: error }) }, name);
6673
+ return /* @__PURE__ */ jsx177("li", { children: /* @__PURE__ */ jsx177(Link, { href: `${formId}-${name}`, children: error }) }, name);
6787
6674
  };
6788
6675
  var FormErrorSummary = ({ description }) => {
6789
- const ref = useRef4(null);
6676
+ const ref = useRef3(null);
6790
6677
  const { formId, errors, hasSubmitted } = useContext2(FormContext);
6791
6678
  const isValid = Object.keys(errors).length === 0;
6792
6679
  if (isValid || !hasSubmitted) {
6793
6680
  return null;
6794
6681
  }
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(
6682
+ return /* @__PURE__ */ jsxs9("div", { ref, children: [
6683
+ /* @__PURE__ */ jsx177("p", { children: description }),
6684
+ /* @__PURE__ */ jsx177("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined5(error)).map(
6685
+ ([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx177(
6799
6686
  ErrorItem,
6800
6687
  {
6801
6688
  error: err,
@@ -6803,7 +6690,7 @@ var FormErrorSummary = ({ description }) => {
6803
6690
  name
6804
6691
  },
6805
6692
  err
6806
- )) : /* @__PURE__ */ jsx179(
6693
+ )) : /* @__PURE__ */ jsx177(
6807
6694
  ErrorItem,
6808
6695
  {
6809
6696
  error: error ?? "",
@@ -6818,13 +6705,13 @@ var FormErrorSummary = ({ description }) => {
6818
6705
 
6819
6706
  // src/components/FormField/FormField.tsx
6820
6707
  import { Children as Children2, cloneElement as cloneElement3, useContext as useContext3 } from "react";
6821
- import styled23 from "styled-components";
6708
+ import styled22 from "styled-components";
6822
6709
  import { isArray as isArray2, isNotNil as isNotNil7, isNotUndefined as isNotUndefined6, isUndefined as isUndefined4 } from "@wistia/type-guards";
6823
6710
 
6824
6711
  // src/components/Text/Text.tsx
6825
6712
  import { forwardRef as forwardRef9 } from "react";
6826
- import styled21, { css as css18 } from "styled-components";
6827
- import { jsx as jsx180 } from "react/jsx-runtime";
6713
+ import styled20, { css as css18 } from "styled-components";
6714
+ import { jsx as jsx178 } from "react/jsx-runtime";
6828
6715
  var bodyBoldStyles = css18`
6829
6716
  > strong,
6830
6717
  b {
@@ -6923,7 +6810,7 @@ var variantStyleMap2 = {
6923
6810
  label3: label3TextStyle,
6924
6811
  label4: label4TextStyle
6925
6812
  };
6926
- var StyledText = styled21.div`
6813
+ var StyledText = styled20.div`
6927
6814
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
6928
6815
  --text-color: ${({ $prominence, $disabled }) => {
6929
6816
  if ($disabled) {
@@ -6977,7 +6864,7 @@ var TextComponent = forwardRef9(
6977
6864
  renderAs,
6978
6865
  ...otherProps
6979
6866
  }, ref) => {
6980
- return /* @__PURE__ */ jsx180(
6867
+ return /* @__PURE__ */ jsx178(
6981
6868
  StyledText,
6982
6869
  {
6983
6870
  ref,
@@ -6999,28 +6886,28 @@ TextComponent.displayName = "Text";
6999
6886
  var Text = makePolymorphic(TextComponent);
7000
6887
 
7001
6888
  // src/components/FormGroup/CheckboxGroup.tsx
7002
- import { createContext as createContext3, useMemo as useMemo6 } from "react";
6889
+ import { createContext as createContext3, useMemo as useMemo5 } from "react";
7003
6890
 
7004
6891
  // src/components/FormGroup/FormGroup.tsx
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`
6892
+ import styled21 from "styled-components";
6893
+ import { useRef as useRef4 } from "react";
6894
+ import { jsx as jsx179, jsxs as jsxs10 } from "react/jsx-runtime";
6895
+ var StyledFieldset = styled21.fieldset`
7009
6896
  border: 0;
7010
6897
  `;
7011
- var StyledLegend = styled22.legend`
6898
+ var StyledLegend = styled21.legend`
7012
6899
  margin-bottom: var(--space-01);
7013
6900
  `;
7014
6901
  var FormGroup = ({ children, label, ...props }) => {
7015
- const ref = useRef5();
7016
- return /* @__PURE__ */ jsxs11(
6902
+ const ref = useRef4();
6903
+ return /* @__PURE__ */ jsxs10(
7017
6904
  Stack,
7018
6905
  {
7019
6906
  ...props,
7020
6907
  ref,
7021
6908
  renderAs: StyledFieldset,
7022
6909
  children: [
7023
- /* @__PURE__ */ jsx181(
6910
+ /* @__PURE__ */ jsx179(
7024
6911
  Heading,
7025
6912
  {
7026
6913
  renderAs: StyledLegend,
@@ -7036,7 +6923,7 @@ var FormGroup = ({ children, label, ...props }) => {
7036
6923
  FormGroup.displayName = "FormGroup";
7037
6924
 
7038
6925
  // src/components/FormGroup/CheckboxGroup.tsx
7039
- import { jsx as jsx182 } from "react/jsx-runtime";
6926
+ import { jsx as jsx180 } from "react/jsx-runtime";
7040
6927
  var CheckboxGroupContext = createContext3(null);
7041
6928
  var CheckboxGroup = ({
7042
6929
  children,
@@ -7045,19 +6932,19 @@ var CheckboxGroup = ({
7045
6932
  value,
7046
6933
  ...props
7047
6934
  }) => {
7048
- const context = useMemo6(() => {
6935
+ const context = useMemo5(() => {
7049
6936
  return {
7050
6937
  name,
7051
6938
  onChange
7052
6939
  };
7053
6940
  }, [name, onChange]);
7054
- return /* @__PURE__ */ jsx182(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx182(FormGroup, { ...props, children }) });
6941
+ return /* @__PURE__ */ jsx180(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx180(FormGroup, { ...props, children }) });
7055
6942
  };
7056
6943
  CheckboxGroup.displayName = "CheckboxGroup";
7057
6944
 
7058
6945
  // src/components/FormField/FormField.tsx
7059
- import { jsx as jsx183, jsxs as jsxs12 } from "react/jsx-runtime";
7060
- var StyledFormField = styled23.div`
6946
+ import { jsx as jsx181, jsxs as jsxs11 } from "react/jsx-runtime";
6947
+ var StyledFormField = styled22.div`
7061
6948
  --form-field-spacing: var(--wui-space-01);
7062
6949
  --form-field-error-color: var(--wui-color-text-secondary-error);
7063
6950
 
@@ -7065,7 +6952,7 @@ var StyledFormField = styled23.div`
7065
6952
  flex-direction: column;
7066
6953
  gap: var(--form-field-spacing);
7067
6954
  `;
7068
- var StyledErrorList = styled23.ul`
6955
+ var StyledErrorList = styled22.ul`
7069
6956
  margin: 0;
7070
6957
  padding: 0;
7071
6958
  padding-left: var(--wui-space-04);
@@ -7075,7 +6962,7 @@ var StyledErrorList = styled23.ul`
7075
6962
  `;
7076
6963
  var ErrorMessages = ({ errors, id }) => {
7077
6964
  const isMultipleErrors = isArray2(errors);
7078
- return isMultipleErrors ? /* @__PURE__ */ jsx183(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx183(
6965
+ return isMultipleErrors ? /* @__PURE__ */ jsx181(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx181(
7079
6966
  Text,
7080
6967
  {
7081
6968
  colorScheme: "error",
@@ -7085,7 +6972,7 @@ var ErrorMessages = ({ errors, id }) => {
7085
6972
  children: error
7086
6973
  },
7087
6974
  `${id}-${index}`
7088
- )) }) : /* @__PURE__ */ jsx183(
6975
+ )) }) : /* @__PURE__ */ jsx181(
7089
6976
  Text,
7090
6977
  {
7091
6978
  colorScheme: "error",
@@ -7142,10 +7029,10 @@ var FormField = ({
7142
7029
  };
7143
7030
  }
7144
7031
  Children2.only(children);
7145
- return /* @__PURE__ */ jsxs12(StyledFormField, { ...props, children: [
7146
- !isInlineLabel && /* @__PURE__ */ jsx183(Label, { htmlFor: id, children: label }),
7032
+ return /* @__PURE__ */ jsxs11(StyledFormField, { ...props, children: [
7033
+ !isInlineLabel && /* @__PURE__ */ jsx181(Label, { htmlFor: id, children: label }),
7147
7034
  cloneElement3(children, childProps),
7148
- isNotNil7(computedError) ? /* @__PURE__ */ jsx183(
7035
+ isNotNil7(computedError) ? /* @__PURE__ */ jsx181(
7149
7036
  ErrorMessages,
7150
7037
  {
7151
7038
  errors: computedError,
@@ -7157,8 +7044,8 @@ var FormField = ({
7157
7044
  FormField.displayName = "FormField";
7158
7045
 
7159
7046
  // src/components/FormGroup/RadioGroup.tsx
7160
- import { createContext as createContext4, useMemo as useMemo7 } from "react";
7161
- import { jsx as jsx184 } from "react/jsx-runtime";
7047
+ import { createContext as createContext4, useMemo as useMemo6 } from "react";
7048
+ import { jsx as jsx182 } from "react/jsx-runtime";
7162
7049
  var RadioGroupContext = createContext4(null);
7163
7050
  var RadioGroup = ({
7164
7051
  children,
@@ -7167,21 +7054,21 @@ var RadioGroup = ({
7167
7054
  value,
7168
7055
  ...props
7169
7056
  }) => {
7170
- const context = useMemo7(() => {
7057
+ const context = useMemo6(() => {
7171
7058
  return {
7172
7059
  name,
7173
7060
  onChange
7174
7061
  };
7175
7062
  }, [name, onChange]);
7176
- return /* @__PURE__ */ jsx184(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx184(FormGroup, { ...props, children }) });
7063
+ return /* @__PURE__ */ jsx182(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx182(FormGroup, { ...props, children }) });
7177
7064
  };
7178
7065
  RadioGroup.displayName = "RadioGroup";
7179
7066
 
7180
7067
  // src/components/IconButton/IconButton.tsx
7181
7068
  import { Children as Children3, cloneElement as cloneElement4, forwardRef as forwardRef10 } from "react";
7182
- import styled24 from "styled-components";
7183
- import { jsx as jsx185 } from "react/jsx-runtime";
7184
- var StyledButton2 = styled24(Button)`
7069
+ import styled23 from "styled-components";
7070
+ import { jsx as jsx183 } from "react/jsx-runtime";
7071
+ var StyledButton2 = styled23(Button)`
7185
7072
  --icon-button-size-sm: 24px;
7186
7073
  --icon-button-size-md: 32px;
7187
7074
  --icon-button-size-lg: 40px;
@@ -7198,7 +7085,7 @@ var StyledButton2 = styled24(Button)`
7198
7085
  var IconButton = forwardRef10(
7199
7086
  ({ children, label, size = "md", ...props }, ref) => {
7200
7087
  const responsiveSize = useResponsiveProp(size);
7201
- return /* @__PURE__ */ jsx185(
7088
+ return /* @__PURE__ */ jsx183(
7202
7089
  StyledButton2,
7203
7090
  {
7204
7091
  ...props,
@@ -7216,10 +7103,10 @@ var IconButton = forwardRef10(
7216
7103
  IconButton.displayName = "IconButton";
7217
7104
 
7218
7105
  // src/components/Input/Input.tsx
7219
- import { forwardRef as forwardRef11, cloneElement as cloneElement5, useRef as useRef6 } from "react";
7220
- import styled25, { css as css19 } from "styled-components";
7106
+ import { forwardRef as forwardRef11, cloneElement as cloneElement5, useRef as useRef5 } from "react";
7107
+ import styled24, { css as css19 } from "styled-components";
7221
7108
  import { isNil as isNil10, isNotNil as isNotNil8 } from "@wistia/type-guards";
7222
- import { jsx as jsx186, jsxs as jsxs13 } from "react/jsx-runtime";
7109
+ import { jsx as jsx184, jsxs as jsxs12 } from "react/jsx-runtime";
7223
7110
  var inputStyles = css19`
7224
7111
  --wui-input-color-bg: var(--wui-color-bg-surface);
7225
7112
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -7261,7 +7148,7 @@ var inputStyles = css19`
7261
7148
  }
7262
7149
  }
7263
7150
  `;
7264
- var StyledInputContainer = styled25.div`
7151
+ var StyledInputContainer = styled24.div`
7265
7152
  display: inline-flex;
7266
7153
  position: relative;
7267
7154
  ${inputStyles};
@@ -7318,11 +7205,11 @@ var Input = forwardRef11(
7318
7205
  rightIcon,
7319
7206
  ...props
7320
7207
  }, externalRef) => {
7321
- const internalRef = useRef6();
7208
+ const internalRef = useRef5();
7322
7209
  const ref = isValidRef(externalRef) ? externalRef : internalRef;
7323
7210
  let leftIconToDisplay = leftIcon;
7324
7211
  if (isNil10(leftIcon) && type === "search") {
7325
- leftIconToDisplay = /* @__PURE__ */ jsx186(Icon, { type: "search" });
7212
+ leftIconToDisplay = /* @__PURE__ */ jsx184(Icon, { type: "search" });
7326
7213
  }
7327
7214
  if (isNotNil8(leftIconToDisplay)) {
7328
7215
  leftIconToDisplay = cloneElement5(leftIconToDisplay, {
@@ -7347,21 +7234,21 @@ var Input = forwardRef11(
7347
7234
  });
7348
7235
  }
7349
7236
  };
7350
- return /* @__PURE__ */ jsxs13(
7237
+ return /* @__PURE__ */ jsxs12(
7351
7238
  StyledInputContainer,
7352
7239
  {
7353
7240
  $fullWidth: fullWidth,
7354
7241
  $monospace: monospace,
7355
7242
  children: [
7356
7243
  leftIconToDisplay ?? null,
7357
- type === "multiline" ? /* @__PURE__ */ jsx186(
7244
+ type === "multiline" ? /* @__PURE__ */ jsx184(
7358
7245
  "textarea",
7359
7246
  {
7360
7247
  ...props,
7361
7248
  ref,
7362
7249
  onFocus: handleFocus
7363
7250
  }
7364
- ) : /* @__PURE__ */ jsx186(
7251
+ ) : /* @__PURE__ */ jsx184(
7365
7252
  "input",
7366
7253
  {
7367
7254
  ...props,
@@ -7379,7 +7266,7 @@ var Input = forwardRef11(
7379
7266
  Input.displayName = "Input";
7380
7267
 
7381
7268
  // src/components/Menu/Menu.tsx
7382
- import styled26, { css as css20, keyframes } from "styled-components";
7269
+ import styled25, { css as css20, keyframes } from "styled-components";
7383
7270
  import {
7384
7271
  DropdownMenu,
7385
7272
  DropdownMenuTrigger,
@@ -7387,7 +7274,7 @@ import {
7387
7274
  DropdownMenuContent
7388
7275
  } from "@radix-ui/react-dropdown-menu";
7389
7276
  import { isNotNil as isNotNil9, isNotUndefined as isNotUndefined7 } from "@wistia/type-guards";
7390
- import { jsx as jsx187, jsxs as jsxs14 } from "react/jsx-runtime";
7277
+ import { jsx as jsx185, jsxs as jsxs13 } from "react/jsx-runtime";
7391
7278
  var open = keyframes`
7392
7279
  from {
7393
7280
  opacity: 0;
@@ -7443,8 +7330,8 @@ var menuContentCss = css20`
7443
7330
  transform: initial;
7444
7331
  }
7445
7332
 
7446
- hr {
7447
- margin: var(--wui-space-02) 0;
7333
+ [role='separator'] {
7334
+ margin: var(--menu-divider-margin) 0;
7448
7335
  }
7449
7336
  `;
7450
7337
  var menuItemCss = css20`
@@ -7456,6 +7343,7 @@ var menuItemCss = css20`
7456
7343
  --menu-label-font-size: var(--wui-typography-label-3-size);
7457
7344
  --menu-label-font-weight: var(--wui-typography-label-3-weight);
7458
7345
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
7346
+ --menu-divider-margin: var(--wui-space-02);
7459
7347
  `;
7460
7348
  var compactMenuItemCss = css20`
7461
7349
  --menu-label-description-gap: 0;
@@ -7466,8 +7354,9 @@ var compactMenuItemCss = css20`
7466
7354
  --menu-label-font-size: var(--wui-typography-label-4-size);
7467
7355
  --menu-label-font-weight: var(--wui-typography-label-4-weight);
7468
7356
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
7357
+ --menu-divider-margin: var(--wui-space-01);
7469
7358
  `;
7470
- var MenuContent = styled26(DropdownMenuContent)`
7359
+ var MenuContent = styled25(DropdownMenuContent)`
7471
7360
  ${menuContentCss}
7472
7361
  ${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss}
7473
7362
  `;
@@ -7493,24 +7382,24 @@ var Menu = ({
7493
7382
  onOpenChange: () => null
7494
7383
  };
7495
7384
  }
7496
- return /* @__PURE__ */ jsxs14(
7385
+ return /* @__PURE__ */ jsxs13(
7497
7386
  DropdownMenu,
7498
7387
  {
7499
7388
  modal: false,
7500
7389
  ...controlProps,
7501
7390
  children: [
7502
- /* @__PURE__ */ jsx187(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx187(
7391
+ /* @__PURE__ */ jsx185(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx185(
7503
7392
  Button,
7504
7393
  {
7505
7394
  "aria-expanded": isOpen,
7506
7395
  disabled,
7507
7396
  forceState: isOpen ? "active" : void 0,
7508
- rightIcon: /* @__PURE__ */ jsx187(Icon, { type: "caret-down" }),
7397
+ rightIcon: /* @__PURE__ */ jsx185(Icon, { type: "caret-down" }),
7509
7398
  ...triggerProps,
7510
7399
  children: label
7511
7400
  }
7512
7401
  ) }),
7513
- /* @__PURE__ */ jsx187(DropdownMenuPortal, { children: /* @__PURE__ */ jsx187(
7402
+ /* @__PURE__ */ jsx185(DropdownMenuPortal, { children: /* @__PURE__ */ jsx185(
7514
7403
  MenuContent,
7515
7404
  {
7516
7405
  ...props,
@@ -7530,19 +7419,19 @@ var Menu = ({
7530
7419
  Menu.displayName = "Menu";
7531
7420
 
7532
7421
  // src/components/Menu/MenuLabel.tsx
7533
- import styled27 from "styled-components";
7422
+ import styled26 from "styled-components";
7534
7423
  import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
7535
- import { jsx as jsx188 } from "react/jsx-runtime";
7536
- var StyledMenuLabel = styled27(DropdownMenuLabel)`
7424
+ import { jsx as jsx186 } from "react/jsx-runtime";
7425
+ var StyledMenuLabel = styled26(DropdownMenuLabel)`
7537
7426
  padding: var(--wui-space-02);
7538
7427
  `;
7539
7428
  var MenuLabel = ({ children, ...props }) => {
7540
- return /* @__PURE__ */ jsx188(
7429
+ return /* @__PURE__ */ jsx186(
7541
7430
  StyledMenuLabel,
7542
7431
  {
7543
7432
  asChild: true,
7544
7433
  ...props,
7545
- children: /* @__PURE__ */ jsx188(
7434
+ children: /* @__PURE__ */ jsx186(
7546
7435
  Heading,
7547
7436
  {
7548
7437
  renderAs: "span",
@@ -7558,7 +7447,7 @@ MenuLabel.displayName = "MenuLabel";
7558
7447
 
7559
7448
  // src/components/Menu/SubMenu.tsx
7560
7449
  import { useState as useState7 } from "react";
7561
- import styled30 from "styled-components";
7450
+ import styled29 from "styled-components";
7562
7451
  import {
7563
7452
  DropdownMenuPortal as DropdownMenuPortal2,
7564
7453
  DropdownMenuSub,
@@ -7571,10 +7460,10 @@ import { isNotNil as isNotNil11 } from "@wistia/type-guards";
7571
7460
 
7572
7461
  // src/components/Menu/MenuItemButton.tsx
7573
7462
  import { forwardRef as forwardRef12 } from "react";
7574
- import styled28 from "styled-components";
7463
+ import styled27 from "styled-components";
7575
7464
  import { isNotNil as isNotNil10, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
7576
- import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7577
- var StyledButton3 = styled28(Button)`
7465
+ import { jsx as jsx187, jsxs as jsxs14 } from "react/jsx-runtime";
7466
+ var StyledButton3 = styled27(Button)`
7578
7467
  ${({ colorScheme }) => getColorScheme(colorScheme)};
7579
7468
 
7580
7469
  display: flex;
@@ -7612,7 +7501,7 @@ var StyledButton3 = styled28(Button)`
7612
7501
  padding-left: var(--wui-space-04);
7613
7502
  }
7614
7503
  `;
7615
- var StyledLeftIconContainer = styled28.div`
7504
+ var StyledLeftIconContainer = styled27.div`
7616
7505
  height: var(--menu-item-left-icon-size);
7617
7506
  width: var(--menu-item-left-icon-size);
7618
7507
 
@@ -7621,7 +7510,7 @@ var StyledLeftIconContainer = styled28.div`
7621
7510
  width: var(--menu-item-left-icon-size);
7622
7511
  }
7623
7512
  `;
7624
- var StyledRightIconContainer = styled28.div`
7513
+ var StyledRightIconContainer = styled27.div`
7625
7514
  height: var(--menu-item-right-icon-size);
7626
7515
  width: var(--menu-item-right-icon-size);
7627
7516
 
@@ -7630,13 +7519,13 @@ var StyledRightIconContainer = styled28.div`
7630
7519
  width: var(--menu-item-right-icon-size);
7631
7520
  }
7632
7521
  `;
7633
- var StyledLabelAndDescriptionContainer = styled28.div`
7522
+ var StyledLabelAndDescriptionContainer = styled27.div`
7634
7523
  display: flex;
7635
7524
  flex-direction: column;
7636
7525
  gap: var(--menu-label-description-gap);
7637
7526
  flex-basis: 100%;
7638
7527
  `;
7639
- var StyledBadgeContainer = styled28.div`
7528
+ var StyledBadgeContainer = styled27.div`
7640
7529
  align-self: start;
7641
7530
  justify-self: end;
7642
7531
  font-size: var(--wui-typography-label-4-size);
@@ -7651,7 +7540,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7651
7540
  colorScheme = "error";
7652
7541
  }
7653
7542
  if (appearance === "gated") {
7654
- badge = /* @__PURE__ */ jsx189(
7543
+ badge = /* @__PURE__ */ jsx187(
7655
7544
  Icon,
7656
7545
  {
7657
7546
  colorScheme: "purple",
@@ -7663,7 +7552,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7663
7552
  }
7664
7553
  );
7665
7554
  }
7666
- return /* @__PURE__ */ jsxs15(
7555
+ return /* @__PURE__ */ jsxs14(
7667
7556
  StyledButton3,
7668
7557
  {
7669
7558
  ...props,
@@ -7673,10 +7562,10 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7673
7562
  fullWidth: true,
7674
7563
  unstyled: true,
7675
7564
  children: [
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
7565
+ props.leftIcon ? /* @__PURE__ */ jsx187(StyledLeftIconContainer, { children: props.leftIcon }) : null,
7566
+ /* @__PURE__ */ jsx187(StyledLabelAndDescriptionContainer, { children }),
7567
+ isNotNil10(badge) || isNotNil10(command) ? /* @__PURE__ */ jsx187(StyledBadgeContainer, { children: badge ?? command }) : null,
7568
+ props.rightIcon ? /* @__PURE__ */ jsx187(StyledRightIconContainer, { children: props.rightIcon }) : null
7680
7569
  ]
7681
7570
  }
7682
7571
  );
@@ -7684,23 +7573,23 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7684
7573
  MenuItemButton.displayName = "MenuItemButton";
7685
7574
 
7686
7575
  // src/components/Menu/MenuItemLabelDescription.tsx
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({
7576
+ import styled28 from "styled-components";
7577
+ import { jsx as jsx188 } from "react/jsx-runtime";
7578
+ var StyledMenuItemLabel = styled28.span``;
7579
+ var StyledMenuItemDescription = styled28(Text).attrs({
7691
7580
  variant: "body4",
7692
7581
  prominence: "secondary"
7693
7582
  })``;
7694
7583
  var MenuItemLabel = ({ children }) => {
7695
- return /* @__PURE__ */ jsx190(StyledMenuItemLabel, { children });
7584
+ return /* @__PURE__ */ jsx188(StyledMenuItemLabel, { children });
7696
7585
  };
7697
7586
  var MenuItemDescription = ({ children }) => {
7698
- return /* @__PURE__ */ jsx190(StyledMenuItemDescription, { children });
7587
+ return /* @__PURE__ */ jsx188(StyledMenuItemDescription, { children });
7699
7588
  };
7700
7589
 
7701
7590
  // src/components/Menu/SubMenu.tsx
7702
- import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7703
- var SubMenuContent = styled30(DropdownMenuSubContent)`
7591
+ import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7592
+ var SubMenuContent = styled29(DropdownMenuSubContent)`
7704
7593
  ${menuContentCss}
7705
7594
  width: 298px;
7706
7595
 
@@ -7708,10 +7597,10 @@ var SubMenuContent = styled30(DropdownMenuSubContent)`
7708
7597
  transform: translateX(-100%) !important;
7709
7598
  }
7710
7599
  `;
7711
- var StyledMobileSubMenuItems = styled30.div`
7600
+ var StyledMobileSubMenuItems = styled29.div`
7712
7601
  margin-left: var(--wui-space-04);
7713
7602
  `;
7714
- var StyledSubTrigger = styled30(DropdownMenuSubTrigger)`
7603
+ var StyledSubTrigger = styled29(DropdownMenuSubTrigger)`
7715
7604
  outline: none;
7716
7605
 
7717
7606
  &[data-state='open'],
@@ -7722,11 +7611,11 @@ var StyledSubTrigger = styled30(DropdownMenuSubTrigger)`
7722
7611
  var SubMenuTrigger = (props) => {
7723
7612
  const { isSmAndUp } = useMq();
7724
7613
  const Trigger2 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
7725
- return /* @__PURE__ */ jsx191(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx191(
7614
+ return /* @__PURE__ */ jsx189(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx189(
7726
7615
  MenuItemButton,
7727
7616
  {
7728
7617
  ...props,
7729
- rightIcon: /* @__PURE__ */ jsx191(Icon, { type: "caret-right" })
7618
+ rightIcon: /* @__PURE__ */ jsx189(Icon, { type: "caret-right" })
7730
7619
  }
7731
7620
  ) });
7732
7621
  };
@@ -7739,14 +7628,14 @@ var SubMenu = ({
7739
7628
  }) => {
7740
7629
  const { isSmAndUp } = useMq();
7741
7630
  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
7631
+ return isSmAndUp ? /* @__PURE__ */ jsxs15(DropdownMenuSub, { onOpenChange, children: [
7632
+ /* @__PURE__ */ jsxs15(SubMenuTrigger, { ...props, children: [
7633
+ /* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
7634
+ isNotNil11(description) ? /* @__PURE__ */ jsx189(MenuItemDescription, { children: description }) : null
7746
7635
  ] }),
7747
- /* @__PURE__ */ jsx191(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx191(SubMenuContent, { children }) })
7748
- ] }) : /* @__PURE__ */ jsxs16(DropdownMenuGroup, { children: [
7749
- /* @__PURE__ */ jsxs16(
7636
+ /* @__PURE__ */ jsx189(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx189(SubMenuContent, { children }) })
7637
+ ] }) : /* @__PURE__ */ jsxs15(DropdownMenuGroup, { children: [
7638
+ /* @__PURE__ */ jsxs15(
7750
7639
  SubMenuTrigger,
7751
7640
  {
7752
7641
  ...props,
@@ -7755,12 +7644,12 @@ var SubMenu = ({
7755
7644
  setIsExpanded((prev) => !prev);
7756
7645
  },
7757
7646
  children: [
7758
- /* @__PURE__ */ jsx191(MenuItemLabel, { children: label }),
7759
- /* @__PURE__ */ jsx191(MenuItemDescription, { children: description })
7647
+ /* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
7648
+ /* @__PURE__ */ jsx189(MenuItemDescription, { children: description })
7760
7649
  ]
7761
7650
  }
7762
7651
  ),
7763
- /* @__PURE__ */ jsx191(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7652
+ /* @__PURE__ */ jsx189(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7764
7653
  ] });
7765
7654
  };
7766
7655
  SubMenu.displayName = "SubMenu";
@@ -7768,15 +7657,15 @@ SubMenu.displayName = "SubMenu";
7768
7657
  // src/components/Menu/MenuItem.tsx
7769
7658
  import { forwardRef as forwardRef13 } from "react";
7770
7659
  import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
7771
- import { jsx as jsx192 } from "react/jsx-runtime";
7660
+ import { jsx as jsx190 } from "react/jsx-runtime";
7772
7661
  var MenuItem = forwardRef13(
7773
7662
  ({ onSelect = () => null, ...props }, ref) => {
7774
- return /* @__PURE__ */ jsx192(
7663
+ return /* @__PURE__ */ jsx190(
7775
7664
  DropdownMenuItem2,
7776
7665
  {
7777
7666
  asChild: true,
7778
7667
  onSelect,
7779
- children: /* @__PURE__ */ jsx192(
7668
+ children: /* @__PURE__ */ jsx190(
7780
7669
  MenuItemButton,
7781
7670
  {
7782
7671
  ...props,
@@ -7794,10 +7683,10 @@ MenuItem.displayName = "MenuItem";
7794
7683
  import {
7795
7684
  DropdownMenuRadioGroup
7796
7685
  } from "@radix-ui/react-dropdown-menu";
7797
- import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7686
+ import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7798
7687
  var MenuRadioGroup = ({ children, label, ...props }) => {
7799
- return /* @__PURE__ */ jsxs17(DropdownMenuRadioGroup, { ...props, children: [
7800
- /* @__PURE__ */ jsx193(MenuLabel, { children: label }),
7688
+ return /* @__PURE__ */ jsxs16(DropdownMenuRadioGroup, { ...props, children: [
7689
+ /* @__PURE__ */ jsx191(MenuLabel, { children: label }),
7801
7690
  children
7802
7691
  ] });
7803
7692
  };
@@ -7808,11 +7697,11 @@ import {
7808
7697
  DropdownMenuItemIndicator,
7809
7698
  DropdownMenuRadioItem
7810
7699
  } from "@radix-ui/react-dropdown-menu";
7811
- import { jsx as jsx194 } from "react/jsx-runtime";
7700
+ import { jsx as jsx192 } from "react/jsx-runtime";
7812
7701
  var RadioMenuItem = ({
7813
7702
  onSelect,
7814
7703
  value,
7815
- indicator = /* @__PURE__ */ jsx194(
7704
+ indicator = /* @__PURE__ */ jsx192(
7816
7705
  Icon,
7817
7706
  {
7818
7707
  size: "sm",
@@ -7822,17 +7711,17 @@ var RadioMenuItem = ({
7822
7711
  ...props
7823
7712
  }) => {
7824
7713
  const extraProps = onSelect ? { onSelect } : {};
7825
- return /* @__PURE__ */ jsx194(
7714
+ return /* @__PURE__ */ jsx192(
7826
7715
  DropdownMenuRadioItem,
7827
7716
  {
7828
7717
  ...extraProps,
7829
7718
  asChild: true,
7830
7719
  value,
7831
- children: /* @__PURE__ */ jsx194(
7720
+ children: /* @__PURE__ */ jsx192(
7832
7721
  MenuItemButton,
7833
7722
  {
7834
7723
  ...props,
7835
- rightIcon: /* @__PURE__ */ jsx194(DropdownMenuItemIndicator, { children: indicator })
7724
+ rightIcon: /* @__PURE__ */ jsx192(DropdownMenuItemIndicator, { children: indicator })
7836
7725
  }
7837
7726
  )
7838
7727
  }
@@ -7844,9 +7733,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
7844
7733
  import {
7845
7734
  DropdownMenuCheckboxItem
7846
7735
  } from "@radix-ui/react-dropdown-menu";
7847
- import { jsx as jsx195, jsxs as jsxs18 } from "react/jsx-runtime";
7736
+ import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7848
7737
  var CheckboxIndicator2 = ({ checked, ...props }) => {
7849
- return checked ? /* @__PURE__ */ jsxs18(
7738
+ return checked ? /* @__PURE__ */ jsxs17(
7850
7739
  "svg",
7851
7740
  {
7852
7741
  ...props,
@@ -7856,14 +7745,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7856
7745
  width: "24",
7857
7746
  xmlns: "http://www.w3.org/2000/svg",
7858
7747
  children: [
7859
- /* @__PURE__ */ jsx195(
7748
+ /* @__PURE__ */ jsx193(
7860
7749
  "path",
7861
7750
  {
7862
7751
  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",
7863
7752
  fill: "#2949e5"
7864
7753
  }
7865
7754
  ),
7866
- /* @__PURE__ */ jsx195(
7755
+ /* @__PURE__ */ jsx193(
7867
7756
  "path",
7868
7757
  {
7869
7758
  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",
@@ -7872,7 +7761,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7872
7761
  )
7873
7762
  ]
7874
7763
  }
7875
- ) : /* @__PURE__ */ jsxs18(
7764
+ ) : /* @__PURE__ */ jsxs17(
7876
7765
  "svg",
7877
7766
  {
7878
7767
  ...props,
@@ -7882,14 +7771,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7882
7771
  width: "24",
7883
7772
  xmlns: "http://www.w3.org/2000/svg",
7884
7773
  children: [
7885
- /* @__PURE__ */ jsx195(
7774
+ /* @__PURE__ */ jsx193(
7886
7775
  "path",
7887
7776
  {
7888
7777
  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",
7889
7778
  fill: "#fcfcfd"
7890
7779
  }
7891
7780
  ),
7892
- /* @__PURE__ */ jsx195(
7781
+ /* @__PURE__ */ jsx193(
7893
7782
  "path",
7894
7783
  {
7895
7784
  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",
@@ -7906,18 +7795,18 @@ var CheckboxMenuItem = ({
7906
7795
  onCheckedChange,
7907
7796
  ...props
7908
7797
  }) => {
7909
- return /* @__PURE__ */ jsx195(
7798
+ return /* @__PURE__ */ jsx193(
7910
7799
  DropdownMenuCheckboxItem,
7911
7800
  {
7912
7801
  asChild: true,
7913
7802
  checked,
7914
7803
  onCheckedChange,
7915
7804
  onSelect,
7916
- children: /* @__PURE__ */ jsx195(
7805
+ children: /* @__PURE__ */ jsx193(
7917
7806
  MenuItemButton,
7918
7807
  {
7919
7808
  ...props,
7920
- leftIcon: /* @__PURE__ */ jsx195(CheckboxIndicator2, { checked })
7809
+ leftIcon: /* @__PURE__ */ jsx193(CheckboxIndicator2, { checked })
7921
7810
  }
7922
7811
  )
7923
7812
  }
@@ -7927,39 +7816,39 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
7927
7816
 
7928
7817
  // src/components/Modal/Modal.tsx
7929
7818
  import { forwardRef as forwardRef16 } from "react";
7930
- import styled36 from "styled-components";
7819
+ import styled35 from "styled-components";
7931
7820
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
7932
7821
  import { isNotNil as isNotNil14 } from "@wistia/type-guards";
7933
7822
 
7934
7823
  // src/components/Modal/ModalHeader.tsx
7935
- import styled33 from "styled-components";
7824
+ import styled32 from "styled-components";
7936
7825
  import { Title as DialogTitle } from "@radix-ui/react-dialog";
7937
7826
 
7938
7827
  // src/components/Modal/ModalCloseButton.tsx
7939
- import styled31 from "styled-components";
7828
+ import styled30 from "styled-components";
7940
7829
  import { Close as DialogClose } from "@radix-ui/react-dialog";
7941
- import { jsx as jsx196 } from "react/jsx-runtime";
7942
- var CloseButton = styled31(DialogClose)`
7830
+ import { jsx as jsx194 } from "react/jsx-runtime";
7831
+ var CloseButton = styled30(DialogClose)`
7943
7832
  align-self: start;
7944
7833
  `;
7945
7834
  var ModalCloseButton = () => {
7946
- return /* @__PURE__ */ jsx196(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx196(
7835
+ return /* @__PURE__ */ jsx194(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx194(
7947
7836
  IconButton,
7948
7837
  {
7949
7838
  label: "Dismiss modal",
7950
7839
  size: "sm",
7951
7840
  variant: "ghost",
7952
- children: /* @__PURE__ */ jsx196(Icon, { type: "close" })
7841
+ children: /* @__PURE__ */ jsx194(Icon, { type: "close" })
7953
7842
  }
7954
7843
  ) });
7955
7844
  };
7956
7845
 
7957
7846
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7958
- import styled32 from "styled-components";
7847
+ import styled31 from "styled-components";
7959
7848
  import { isNotNil as isNotNil12 } from "@wistia/type-guards";
7960
- import { jsx as jsx197 } from "react/jsx-runtime";
7961
- var VisuallyHidden = styled32.div({ ...visuallyHiddenStyle });
7962
- var VisuallyHiddenButFocusable = styled32.div({
7849
+ import { jsx as jsx195 } from "react/jsx-runtime";
7850
+ var VisuallyHidden = styled31.div({ ...visuallyHiddenStyle });
7851
+ var VisuallyHiddenButFocusable = styled31.div({
7963
7852
  "&:not(:focus-within)": visuallyHiddenStyle
7964
7853
  });
7965
7854
  var ScreenReaderOnly = ({
@@ -7970,15 +7859,15 @@ var ScreenReaderOnly = ({
7970
7859
  }) => {
7971
7860
  const accessibleText = isNotNil12(text) ? text : children;
7972
7861
  if (focusable) {
7973
- return /* @__PURE__ */ jsx197(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7862
+ return /* @__PURE__ */ jsx195(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7974
7863
  }
7975
- return /* @__PURE__ */ jsx197(VisuallyHidden, { ...otherProps, children: accessibleText });
7864
+ return /* @__PURE__ */ jsx195(VisuallyHidden, { ...otherProps, children: accessibleText });
7976
7865
  };
7977
7866
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
7978
7867
 
7979
7868
  // src/components/Modal/ModalHeader.tsx
7980
- import { jsx as jsx198, jsxs as jsxs19 } from "react/jsx-runtime";
7981
- var Header = styled33.header`
7869
+ import { jsx as jsx196, jsxs as jsxs18 } from "react/jsx-runtime";
7870
+ var Header = styled32.header`
7982
7871
  display: flex;
7983
7872
  order: 1;
7984
7873
  gap: var(--wui-space-01);
@@ -7990,7 +7879,7 @@ var Header = styled33.header`
7990
7879
  margin-top: 0;
7991
7880
  }
7992
7881
  `;
7993
- var Title = styled33(DialogTitle)`
7882
+ var Title = styled32(DialogTitle)`
7994
7883
  font-family: var(--wui-typography-heading-2-family);
7995
7884
  line-height: var(--wui-typography-heading-2-line-height);
7996
7885
  font-size: var(--wui-typography-heading-2-size);
@@ -8002,26 +7891,26 @@ var ModalHeader = ({
8002
7891
  hideCloseButton
8003
7892
  }) => {
8004
7893
  const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
8005
- return /* @__PURE__ */ jsxs19(Header, { children: [
8006
- /* @__PURE__ */ jsx198(TitleWrapper, { children: title }),
8007
- hideCloseButton ? null : /* @__PURE__ */ jsx198(ModalCloseButton, {})
7894
+ return /* @__PURE__ */ jsxs18(Header, { children: [
7895
+ /* @__PURE__ */ jsx196(TitleWrapper, { children: title }),
7896
+ hideCloseButton ? null : /* @__PURE__ */ jsx196(ModalCloseButton, {})
8008
7897
  ] });
8009
7898
  };
8010
7899
 
8011
7900
  // src/components/Modal/ModalContent.tsx
8012
7901
  import { forwardRef as forwardRef14 } from "react";
8013
- import styled34 from "styled-components";
7902
+ import styled33 from "styled-components";
8014
7903
  import { Content as DialogContent } from "@radix-ui/react-dialog";
8015
7904
 
8016
7905
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
8017
- import { useRef as useRef7, useEffect as useEffect3 } from "react";
7906
+ import { useRef as useRef6, useEffect as useEffect2 } from "react";
8018
7907
  import { isNotNil as isNotNil13 } from "@wistia/type-guards";
8019
7908
  var useFocusRestore = () => {
8020
- const previouslyFocusedRef = useRef7(null);
8021
- useEffect3(() => {
7909
+ const previouslyFocusedRef = useRef6(null);
7910
+ useEffect2(() => {
8022
7911
  previouslyFocusedRef.current = document.activeElement;
8023
7912
  }, []);
8024
- useEffect3(() => {
7913
+ useEffect2(() => {
8025
7914
  return () => {
8026
7915
  if (isNotNil13(previouslyFocusedRef.current)) {
8027
7916
  setTimeout(() => {
@@ -8033,8 +7922,8 @@ var useFocusRestore = () => {
8033
7922
  };
8034
7923
 
8035
7924
  // src/components/Modal/ModalContent.tsx
8036
- import { jsx as jsx199 } from "react/jsx-runtime";
8037
- var StyledModalContent = styled34(DialogContent)`
7925
+ import { jsx as jsx197 } from "react/jsx-runtime";
7926
+ var StyledModalContent = styled33(DialogContent)`
8038
7927
  background-color: var(--wui-color-bg-app);
8039
7928
  box-sizing: border-box;
8040
7929
  display: flex;
@@ -8077,7 +7966,7 @@ var StyledModalContent = styled34(DialogContent)`
8077
7966
  var ModalContent = forwardRef14(
8078
7967
  ({ fullHeight, width, children, ...otherProps }, ref) => {
8079
7968
  useFocusRestore();
8080
- return /* @__PURE__ */ jsx199(
7969
+ return /* @__PURE__ */ jsx197(
8081
7970
  StyledModalContent,
8082
7971
  {
8083
7972
  ref,
@@ -8092,8 +7981,8 @@ var ModalContent = forwardRef14(
8092
7981
 
8093
7982
  // src/private/components/Backdrop/Backdrop.tsx
8094
7983
  import { forwardRef as forwardRef15 } from "react";
8095
- import styled35 from "styled-components";
8096
- import { jsx as jsx200 } from "react/jsx-runtime";
7984
+ import styled34 from "styled-components";
7985
+ import { jsx as jsx198 } from "react/jsx-runtime";
8097
7986
  var backdropAnimationDuration = 150;
8098
7987
  var alignVerticalMap = {
8099
7988
  stretch: "normal",
@@ -8106,7 +7995,7 @@ var alignHorizontalMap = {
8106
7995
  center: "center",
8107
7996
  right: "end"
8108
7997
  };
8109
- var BackdropComponent = styled35.div`
7998
+ var BackdropComponent = styled34.div`
8110
7999
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
8111
8000
  animation-name: backdropShow;
8112
8001
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -8130,7 +8019,7 @@ var BackdropComponent = styled35.div`
8130
8019
  }
8131
8020
  `;
8132
8021
  var Backdrop = forwardRef15(
8133
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx200(
8022
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx198(
8134
8023
  BackdropComponent,
8135
8024
  {
8136
8025
  ref,
@@ -8144,8 +8033,8 @@ var Backdrop = forwardRef15(
8144
8033
  Backdrop.displayName = "Backdrop";
8145
8034
 
8146
8035
  // src/components/Modal/Modal.tsx
8147
- import { jsx as jsx201, jsxs as jsxs20 } from "react/jsx-runtime";
8148
- var ModalBody = styled36.div`
8036
+ import { jsx as jsx199, jsxs as jsxs19 } from "react/jsx-runtime";
8037
+ var ModalBody = styled35.div`
8149
8038
  flex-direction: column;
8150
8039
  display: flex;
8151
8040
  order: 2;
@@ -8163,7 +8052,7 @@ var Modal = forwardRef16(
8163
8052
  width,
8164
8053
  ...props
8165
8054
  }, ref) => {
8166
- return /* @__PURE__ */ jsx201(
8055
+ return /* @__PURE__ */ jsx199(
8167
8056
  DialogRoot,
8168
8057
  {
8169
8058
  onOpenChange: (open2) => {
@@ -8172,9 +8061,9 @@ var Modal = forwardRef16(
8172
8061
  }
8173
8062
  },
8174
8063
  open: isOpen,
8175
- children: /* @__PURE__ */ jsxs20(DialogPortal, { children: [
8176
- /* @__PURE__ */ jsx201(Backdrop, {}),
8177
- /* @__PURE__ */ jsxs20(
8064
+ children: /* @__PURE__ */ jsxs19(DialogPortal, { children: [
8065
+ /* @__PURE__ */ jsx199(Backdrop, {}),
8066
+ /* @__PURE__ */ jsxs19(
8178
8067
  ModalContent,
8179
8068
  {
8180
8069
  ref,
@@ -8191,8 +8080,8 @@ var Modal = forwardRef16(
8191
8080
  width,
8192
8081
  ...props,
8193
8082
  children: [
8194
- /* @__PURE__ */ jsx201(ModalBody, { children }),
8195
- /* @__PURE__ */ jsx201(
8083
+ /* @__PURE__ */ jsx199(ModalBody, { children }),
8084
+ /* @__PURE__ */ jsx199(
8196
8085
  ModalHeader,
8197
8086
  {
8198
8087
  hideCloseButton,
@@ -8212,15 +8101,15 @@ Modal.displayName = "Modal";
8212
8101
 
8213
8102
  // src/components/Radio/Radio.tsx
8214
8103
  import { forwardRef as forwardRef17, useId as useId3 } from "react";
8215
- import styled37, { css as css21 } from "styled-components";
8104
+ import styled36, { css as css21 } from "styled-components";
8216
8105
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
8217
- import { jsx as jsx202, jsxs as jsxs21 } from "react/jsx-runtime";
8218
- var StyledLabelWrapper2 = styled37.div`
8106
+ import { jsx as jsx200, jsxs as jsxs20 } from "react/jsx-runtime";
8107
+ var StyledLabelWrapper2 = styled36.div`
8219
8108
  display: flex;
8220
8109
  flex-direction: column;
8221
8110
  padding-left: var(--wui-space-02);
8222
8111
  `;
8223
- var StyledRadio = styled37.input`
8112
+ var StyledRadio = styled36.input`
8224
8113
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
8225
8114
  appearance: none;
8226
8115
  margin: 0;
@@ -8262,7 +8151,7 @@ var defaultHoverStyle = css21`
8262
8151
  /* TODO Lamp to design hover state */
8263
8152
  cursor: pointer;
8264
8153
  `;
8265
- var StyledRadioWrapper = styled37.div`
8154
+ var StyledRadioWrapper = styled36.div`
8266
8155
  align-items: baseline;
8267
8156
  border: 1px solid transparent;
8268
8157
  border-radius: 4px;
@@ -8300,13 +8189,13 @@ var Radio = forwardRef17(
8300
8189
  }, ref) => {
8301
8190
  const generatedId = useId3();
8302
8191
  const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
8303
- return /* @__PURE__ */ jsxs21(
8192
+ return /* @__PURE__ */ jsxs20(
8304
8193
  StyledRadioWrapper,
8305
8194
  {
8306
8195
  "aria-invalid": otherProps["aria-invalid"],
8307
8196
  disabled,
8308
8197
  children: [
8309
- /* @__PURE__ */ jsx202(
8198
+ /* @__PURE__ */ jsx200(
8310
8199
  StyledRadio,
8311
8200
  {
8312
8201
  ref,
@@ -8321,8 +8210,8 @@ var Radio = forwardRef17(
8321
8210
  ...otherProps
8322
8211
  }
8323
8212
  ),
8324
- /* @__PURE__ */ jsxs21(StyledLabelWrapper2, { children: [
8325
- /* @__PURE__ */ jsx202(
8213
+ /* @__PURE__ */ jsxs20(StyledLabelWrapper2, { children: [
8214
+ /* @__PURE__ */ jsx200(
8326
8215
  Label,
8327
8216
  {
8328
8217
  disabled,
@@ -8331,7 +8220,7 @@ var Radio = forwardRef17(
8331
8220
  children: label
8332
8221
  }
8333
8222
  ),
8334
- /* @__PURE__ */ jsx202(LabelDescription, { children: description })
8223
+ /* @__PURE__ */ jsx200(LabelDescription, { children: description })
8335
8224
  ] })
8336
8225
  ]
8337
8226
  }
@@ -8342,10 +8231,10 @@ Radio.displayName = "Radio";
8342
8231
 
8343
8232
  // src/components/Tag/Tag.tsx
8344
8233
  import { forwardRef as forwardRef18 } from "react";
8345
- import styled38 from "styled-components";
8234
+ import styled37 from "styled-components";
8346
8235
  import { isNil as isNil11, isNotNil as isNotNil15, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
8347
- import { Fragment as Fragment3, jsx as jsx203, jsxs as jsxs22 } from "react/jsx-runtime";
8348
- var TagLabel = styled38.a`
8236
+ import { Fragment as Fragment2, jsx as jsx201, jsxs as jsxs21 } from "react/jsx-runtime";
8237
+ var TagLabel = styled37.a`
8349
8238
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8350
8239
  font-size: var(--wui-typography-label-4-size);
8351
8240
  font-weight: var(--wui-typography-label-4-weight);
@@ -8373,14 +8262,14 @@ var TagLabel = styled38.a`
8373
8262
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
8374
8263
  }
8375
8264
  `;
8376
- var TagDivider = styled38.div`
8265
+ var TagDivider = styled37.div`
8377
8266
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8378
8267
  border-left: 1px solid var(--wui-color-border);
8379
8268
  display: flex;
8380
8269
  height: 14px;
8381
8270
  width: 1px;
8382
8271
  `;
8383
- var StyledRemoveButton = styled38.button`
8272
+ var StyledRemoveButton = styled37.button`
8384
8273
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8385
8274
  all: unset;
8386
8275
  cursor: pointer;
@@ -8408,7 +8297,7 @@ var StyledRemoveButton = styled38.button`
8408
8297
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
8409
8298
  }
8410
8299
  `;
8411
- var StyledTag = styled38.div`
8300
+ var StyledTag = styled37.div`
8412
8301
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8413
8302
  align-items: center;
8414
8303
  background-color: var(--wui-color-bg-surface-secondary);
@@ -8425,23 +8314,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8425
8314
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
8426
8315
  );
8427
8316
  }
8428
- return /* @__PURE__ */ jsxs22(Fragment3, { children: [
8429
- /* @__PURE__ */ jsx203(TagDivider, { $colorScheme: colorScheme }),
8430
- /* @__PURE__ */ jsxs22(
8317
+ return /* @__PURE__ */ jsxs21(Fragment2, { children: [
8318
+ /* @__PURE__ */ jsx201(TagDivider, { $colorScheme: colorScheme }),
8319
+ /* @__PURE__ */ jsxs21(
8431
8320
  StyledRemoveButton,
8432
8321
  {
8433
8322
  $colorScheme: colorScheme,
8434
8323
  onClick: onClickRemove,
8435
8324
  type: "button",
8436
8325
  children: [
8437
- /* @__PURE__ */ jsx203(
8326
+ /* @__PURE__ */ jsx201(
8438
8327
  Icon,
8439
8328
  {
8440
8329
  size: "sm",
8441
8330
  type: "close"
8442
8331
  }
8443
8332
  ),
8444
- /* @__PURE__ */ jsx203(ScreenReaderOnly, { children: onClickRemoveLabel })
8333
+ /* @__PURE__ */ jsx201(ScreenReaderOnly, { children: onClickRemoveLabel })
8445
8334
  ]
8446
8335
  }
8447
8336
  )
@@ -8450,14 +8339,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8450
8339
  var Tag = forwardRef18(
8451
8340
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
8452
8341
  const labelProps = isNotNil15(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
8453
- return /* @__PURE__ */ jsxs22(
8342
+ return /* @__PURE__ */ jsxs21(
8454
8343
  StyledTag,
8455
8344
  {
8456
8345
  ref,
8457
8346
  $colorScheme: colorScheme,
8458
8347
  ...otherProps,
8459
8348
  children: [
8460
- /* @__PURE__ */ jsx203(
8349
+ /* @__PURE__ */ jsx201(
8461
8350
  TagLabel,
8462
8351
  {
8463
8352
  ...labelProps,
@@ -8465,7 +8354,7 @@ var Tag = forwardRef18(
8465
8354
  children: label
8466
8355
  }
8467
8356
  ),
8468
- /* @__PURE__ */ jsx203(
8357
+ /* @__PURE__ */ jsx201(
8469
8358
  RemoveButton,
8470
8359
  {
8471
8360
  colorScheme,
@@ -8488,8 +8377,8 @@ import {
8488
8377
  Portal,
8489
8378
  Arrow
8490
8379
  } from "@radix-ui/react-tooltip";
8491
- import styled39, { css as css22 } from "styled-components";
8492
- import { jsx as jsx204, jsxs as jsxs23 } from "react/jsx-runtime";
8380
+ import styled38, { css as css22 } from "styled-components";
8381
+ import { jsx as jsx202, jsxs as jsxs22 } from "react/jsx-runtime";
8493
8382
  var CompactTooltipStyles = css22`
8494
8383
  --tooltip-font-size: var(--wui-typography-label-4-size);
8495
8384
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
@@ -8497,7 +8386,7 @@ var CompactTooltipStyles = css22`
8497
8386
  --tooltip-horizontal-padding: var(--wui-space-02);
8498
8387
  --tooltip-vertical-padding: var(--wui-space-03);
8499
8388
  `;
8500
- var StyledContent = styled39(Content)`
8389
+ var StyledContent = styled38(Content)`
8501
8390
  --tooltip-font-family: var(--wui-typography-family-default);
8502
8391
  --tooltip-border-radius: var(--wui-border-radius-05);
8503
8392
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -8555,14 +8444,14 @@ var Tooltip = ({
8555
8444
  if (forceOpen === true) {
8556
8445
  rootProps.open = true;
8557
8446
  }
8558
- return /* @__PURE__ */ jsxs23(
8447
+ return /* @__PURE__ */ jsxs22(
8559
8448
  Root,
8560
8449
  {
8561
8450
  delayDuration: delay,
8562
8451
  ...rootProps,
8563
8452
  children: [
8564
- /* @__PURE__ */ jsx204(Trigger, { asChild: true, children }),
8565
- /* @__PURE__ */ jsx204(Portal, { children: /* @__PURE__ */ jsxs23(
8453
+ /* @__PURE__ */ jsx202(Trigger, { asChild: true, children }),
8454
+ /* @__PURE__ */ jsx202(Portal, { children: /* @__PURE__ */ jsxs22(
8566
8455
  StyledContent,
8567
8456
  {
8568
8457
  $compact: compact,
@@ -8570,7 +8459,7 @@ var Tooltip = ({
8570
8459
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
8571
8460
  children: [
8572
8461
  content,
8573
- !hideArrow ? /* @__PURE__ */ jsx204(Arrow, { asChild: true, children: /* @__PURE__ */ jsx204(
8462
+ !hideArrow ? /* @__PURE__ */ jsx202(Arrow, { asChild: true, children: /* @__PURE__ */ jsx202(
8574
8463
  "svg",
8575
8464
  {
8576
8465
  fill: "var(--tooltip-bg)",
@@ -8579,7 +8468,7 @@ var Tooltip = ({
8579
8468
  viewBox: "0 0 12 8",
8580
8469
  width: "12",
8581
8470
  xmlns: "http://www.w3.org/2000/svg",
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" })
8471
+ 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" })
8583
8472
  }
8584
8473
  ) }) : null
8585
8474
  ]
@@ -8592,26 +8481,26 @@ var Tooltip = ({
8592
8481
  Tooltip.displayName = "Tooltip";
8593
8482
 
8594
8483
  // src/components/WistiaLogo/WistiaLogo.tsx
8595
- import styled40 from "styled-components";
8484
+ import styled39 from "styled-components";
8596
8485
  import { isNotNil as isNotNil16 } from "@wistia/type-guards";
8597
- import { jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
8486
+ import { jsx as jsx203, jsxs as jsxs23 } from "react/jsx-runtime";
8598
8487
  var renderBrandmark = (brandmarkColor, iconOnly) => {
8599
8488
  if (iconOnly) {
8600
- return /* @__PURE__ */ jsx205(
8489
+ return /* @__PURE__ */ jsx203(
8601
8490
  "g",
8602
8491
  {
8603
8492
  "data-testid": "ui-wistia-logo-brandmark",
8604
8493
  fill: brandmarkColor,
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" })
8494
+ 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" })
8606
8495
  }
8607
8496
  );
8608
8497
  }
8609
- return /* @__PURE__ */ jsx205(
8498
+ return /* @__PURE__ */ jsx203(
8610
8499
  "g",
8611
8500
  {
8612
8501
  "data-testid": "ui-wistia-logo-brandmark",
8613
8502
  fill: brandmarkColor,
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" })
8503
+ 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" })
8615
8504
  }
8616
8505
  );
8617
8506
  };
@@ -8619,12 +8508,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
8619
8508
  if (iconOnly) {
8620
8509
  return null;
8621
8510
  }
8622
- return /* @__PURE__ */ jsx205(
8511
+ return /* @__PURE__ */ jsx203(
8623
8512
  "g",
8624
8513
  {
8625
8514
  "data-testid": "ui-wistia-logo-logotype",
8626
8515
  fill: logotypeColor,
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" })
8516
+ 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" })
8628
8517
  }
8629
8518
  );
8630
8519
  };
@@ -8634,7 +8523,7 @@ var computedViewBox = (iconOnly) => {
8634
8523
  }
8635
8524
  return "0 0 144 31.47";
8636
8525
  };
8637
- var WistiaLogoComponent = styled40.svg`
8526
+ var WistiaLogoComponent = styled39.svg`
8638
8527
  height: ${({ height }) => `${height}px`};
8639
8528
 
8640
8529
  /* ensure it will always fit on mobile */
@@ -8676,7 +8565,7 @@ var WistiaLogo = ({
8676
8565
  };
8677
8566
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
8678
8567
  const logotypeColor = VARIANT_COLORS[variant].logotype;
8679
- const Logo = /* @__PURE__ */ jsxs24(
8568
+ const Logo = /* @__PURE__ */ jsxs23(
8680
8569
  WistiaLogoComponent,
8681
8570
  {
8682
8571
  $hoverColor: hoverColor,
@@ -8686,16 +8575,63 @@ var WistiaLogo = ({
8686
8575
  xmlns: "http://www.w3.org/2000/svg",
8687
8576
  ...otherProps,
8688
8577
  children: [
8689
- /* @__PURE__ */ jsx205("title", { children: title }),
8690
- isNotNil16(description) ? /* @__PURE__ */ jsx205("desc", { children: description }) : null,
8578
+ /* @__PURE__ */ jsx203("title", { children: title }),
8579
+ isNotNil16(description) ? /* @__PURE__ */ jsx203("desc", { children: description }) : null,
8691
8580
  renderBrandmark(brandmarkColor, iconOnly),
8692
8581
  renderLogotype(logotypeColor, iconOnly)
8693
8582
  ]
8694
8583
  }
8695
8584
  );
8696
- return href !== void 0 ? /* @__PURE__ */ jsx205("a", { href, children: Logo }) : Logo;
8585
+ return href !== void 0 ? /* @__PURE__ */ jsx203("a", { href, children: Logo }) : Logo;
8697
8586
  };
8698
8587
  WistiaLogo.displayName = "WistiaLogo";
8588
+
8589
+ // src/components/Breadcrumbs/Breadcrumbs.tsx
8590
+ import styled40 from "styled-components";
8591
+ import { jsx as jsx204 } from "react/jsx-runtime";
8592
+ var StyledBreadcrumbs = styled40.nav`
8593
+ display: flex;
8594
+ align-items: center;
8595
+ gap: var(--wui-space-01);
8596
+
8597
+ > svg:last-of-type {
8598
+ display: none;
8599
+ }
8600
+ `;
8601
+ var Breadcrumbs = ({ children, ...props }) => {
8602
+ return /* @__PURE__ */ jsx204(
8603
+ StyledBreadcrumbs,
8604
+ {
8605
+ "aria-label": "Breadcrumbs",
8606
+ ...props,
8607
+ children
8608
+ }
8609
+ );
8610
+ };
8611
+ Breadcrumbs.displayName = "Breadcrumbs";
8612
+
8613
+ // src/components/Breadcrumbs/Breadcrumb.tsx
8614
+ import { Fragment as Fragment3, jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
8615
+ var Breadcrumb = ({ icon, href, children }) => {
8616
+ return /* @__PURE__ */ jsxs24(Fragment3, { children: [
8617
+ /* @__PURE__ */ jsx205(
8618
+ Button,
8619
+ {
8620
+ href,
8621
+ leftIcon: icon,
8622
+ variant: "ghost",
8623
+ children
8624
+ }
8625
+ ),
8626
+ /* @__PURE__ */ jsx205(
8627
+ Icon,
8628
+ {
8629
+ size: "sm",
8630
+ type: "caret-right"
8631
+ }
8632
+ )
8633
+ ] });
8634
+ };
8699
8635
  export {
8700
8636
  ActionButton,
8701
8637
  Avatar,
@@ -8750,7 +8686,6 @@ export {
8750
8686
  useAriaLive,
8751
8687
  useBoolean,
8752
8688
  useFormState,
8753
- useKey,
8754
8689
  useMq,
8755
8690
  useToast,
8756
8691
  useWindowSize