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

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.3
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;
@@ -7467,7 +7354,7 @@ var compactMenuItemCss = css20`
7467
7354
  --menu-label-font-weight: var(--wui-typography-label-4-weight);
7468
7355
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
7469
7356
  `;
7470
- var MenuContent = styled26(DropdownMenuContent)`
7357
+ var MenuContent = styled25(DropdownMenuContent)`
7471
7358
  ${menuContentCss}
7472
7359
  ${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss}
7473
7360
  `;
@@ -7493,24 +7380,24 @@ var Menu = ({
7493
7380
  onOpenChange: () => null
7494
7381
  };
7495
7382
  }
7496
- return /* @__PURE__ */ jsxs14(
7383
+ return /* @__PURE__ */ jsxs13(
7497
7384
  DropdownMenu,
7498
7385
  {
7499
7386
  modal: false,
7500
7387
  ...controlProps,
7501
7388
  children: [
7502
- /* @__PURE__ */ jsx187(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx187(
7389
+ /* @__PURE__ */ jsx185(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx185(
7503
7390
  Button,
7504
7391
  {
7505
7392
  "aria-expanded": isOpen,
7506
7393
  disabled,
7507
7394
  forceState: isOpen ? "active" : void 0,
7508
- rightIcon: /* @__PURE__ */ jsx187(Icon, { type: "caret-down" }),
7395
+ rightIcon: /* @__PURE__ */ jsx185(Icon, { type: "caret-down" }),
7509
7396
  ...triggerProps,
7510
7397
  children: label
7511
7398
  }
7512
7399
  ) }),
7513
- /* @__PURE__ */ jsx187(DropdownMenuPortal, { children: /* @__PURE__ */ jsx187(
7400
+ /* @__PURE__ */ jsx185(DropdownMenuPortal, { children: /* @__PURE__ */ jsx185(
7514
7401
  MenuContent,
7515
7402
  {
7516
7403
  ...props,
@@ -7530,19 +7417,19 @@ var Menu = ({
7530
7417
  Menu.displayName = "Menu";
7531
7418
 
7532
7419
  // src/components/Menu/MenuLabel.tsx
7533
- import styled27 from "styled-components";
7420
+ import styled26 from "styled-components";
7534
7421
  import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
7535
- import { jsx as jsx188 } from "react/jsx-runtime";
7536
- var StyledMenuLabel = styled27(DropdownMenuLabel)`
7422
+ import { jsx as jsx186 } from "react/jsx-runtime";
7423
+ var StyledMenuLabel = styled26(DropdownMenuLabel)`
7537
7424
  padding: var(--wui-space-02);
7538
7425
  `;
7539
7426
  var MenuLabel = ({ children, ...props }) => {
7540
- return /* @__PURE__ */ jsx188(
7427
+ return /* @__PURE__ */ jsx186(
7541
7428
  StyledMenuLabel,
7542
7429
  {
7543
7430
  asChild: true,
7544
7431
  ...props,
7545
- children: /* @__PURE__ */ jsx188(
7432
+ children: /* @__PURE__ */ jsx186(
7546
7433
  Heading,
7547
7434
  {
7548
7435
  renderAs: "span",
@@ -7558,7 +7445,7 @@ MenuLabel.displayName = "MenuLabel";
7558
7445
 
7559
7446
  // src/components/Menu/SubMenu.tsx
7560
7447
  import { useState as useState7 } from "react";
7561
- import styled30 from "styled-components";
7448
+ import styled29 from "styled-components";
7562
7449
  import {
7563
7450
  DropdownMenuPortal as DropdownMenuPortal2,
7564
7451
  DropdownMenuSub,
@@ -7571,10 +7458,10 @@ import { isNotNil as isNotNil11 } from "@wistia/type-guards";
7571
7458
 
7572
7459
  // src/components/Menu/MenuItemButton.tsx
7573
7460
  import { forwardRef as forwardRef12 } from "react";
7574
- import styled28 from "styled-components";
7461
+ import styled27 from "styled-components";
7575
7462
  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)`
7463
+ import { jsx as jsx187, jsxs as jsxs14 } from "react/jsx-runtime";
7464
+ var StyledButton3 = styled27(Button)`
7578
7465
  ${({ colorScheme }) => getColorScheme(colorScheme)};
7579
7466
 
7580
7467
  display: flex;
@@ -7612,7 +7499,7 @@ var StyledButton3 = styled28(Button)`
7612
7499
  padding-left: var(--wui-space-04);
7613
7500
  }
7614
7501
  `;
7615
- var StyledLeftIconContainer = styled28.div`
7502
+ var StyledLeftIconContainer = styled27.div`
7616
7503
  height: var(--menu-item-left-icon-size);
7617
7504
  width: var(--menu-item-left-icon-size);
7618
7505
 
@@ -7621,7 +7508,7 @@ var StyledLeftIconContainer = styled28.div`
7621
7508
  width: var(--menu-item-left-icon-size);
7622
7509
  }
7623
7510
  `;
7624
- var StyledRightIconContainer = styled28.div`
7511
+ var StyledRightIconContainer = styled27.div`
7625
7512
  height: var(--menu-item-right-icon-size);
7626
7513
  width: var(--menu-item-right-icon-size);
7627
7514
 
@@ -7630,13 +7517,13 @@ var StyledRightIconContainer = styled28.div`
7630
7517
  width: var(--menu-item-right-icon-size);
7631
7518
  }
7632
7519
  `;
7633
- var StyledLabelAndDescriptionContainer = styled28.div`
7520
+ var StyledLabelAndDescriptionContainer = styled27.div`
7634
7521
  display: flex;
7635
7522
  flex-direction: column;
7636
7523
  gap: var(--menu-label-description-gap);
7637
7524
  flex-basis: 100%;
7638
7525
  `;
7639
- var StyledBadgeContainer = styled28.div`
7526
+ var StyledBadgeContainer = styled27.div`
7640
7527
  align-self: start;
7641
7528
  justify-self: end;
7642
7529
  font-size: var(--wui-typography-label-4-size);
@@ -7651,7 +7538,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7651
7538
  colorScheme = "error";
7652
7539
  }
7653
7540
  if (appearance === "gated") {
7654
- badge = /* @__PURE__ */ jsx189(
7541
+ badge = /* @__PURE__ */ jsx187(
7655
7542
  Icon,
7656
7543
  {
7657
7544
  colorScheme: "purple",
@@ -7663,7 +7550,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7663
7550
  }
7664
7551
  );
7665
7552
  }
7666
- return /* @__PURE__ */ jsxs15(
7553
+ return /* @__PURE__ */ jsxs14(
7667
7554
  StyledButton3,
7668
7555
  {
7669
7556
  ...props,
@@ -7673,10 +7560,10 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7673
7560
  fullWidth: true,
7674
7561
  unstyled: true,
7675
7562
  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
7563
+ props.leftIcon ? /* @__PURE__ */ jsx187(StyledLeftIconContainer, { children: props.leftIcon }) : null,
7564
+ /* @__PURE__ */ jsx187(StyledLabelAndDescriptionContainer, { children }),
7565
+ isNotNil10(badge) || isNotNil10(command) ? /* @__PURE__ */ jsx187(StyledBadgeContainer, { children: badge ?? command }) : null,
7566
+ props.rightIcon ? /* @__PURE__ */ jsx187(StyledRightIconContainer, { children: props.rightIcon }) : null
7680
7567
  ]
7681
7568
  }
7682
7569
  );
@@ -7684,23 +7571,23 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7684
7571
  MenuItemButton.displayName = "MenuItemButton";
7685
7572
 
7686
7573
  // 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({
7574
+ import styled28 from "styled-components";
7575
+ import { jsx as jsx188 } from "react/jsx-runtime";
7576
+ var StyledMenuItemLabel = styled28.span``;
7577
+ var StyledMenuItemDescription = styled28(Text).attrs({
7691
7578
  variant: "body4",
7692
7579
  prominence: "secondary"
7693
7580
  })``;
7694
7581
  var MenuItemLabel = ({ children }) => {
7695
- return /* @__PURE__ */ jsx190(StyledMenuItemLabel, { children });
7582
+ return /* @__PURE__ */ jsx188(StyledMenuItemLabel, { children });
7696
7583
  };
7697
7584
  var MenuItemDescription = ({ children }) => {
7698
- return /* @__PURE__ */ jsx190(StyledMenuItemDescription, { children });
7585
+ return /* @__PURE__ */ jsx188(StyledMenuItemDescription, { children });
7699
7586
  };
7700
7587
 
7701
7588
  // src/components/Menu/SubMenu.tsx
7702
- import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7703
- var SubMenuContent = styled30(DropdownMenuSubContent)`
7589
+ import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7590
+ var SubMenuContent = styled29(DropdownMenuSubContent)`
7704
7591
  ${menuContentCss}
7705
7592
  width: 298px;
7706
7593
 
@@ -7708,10 +7595,10 @@ var SubMenuContent = styled30(DropdownMenuSubContent)`
7708
7595
  transform: translateX(-100%) !important;
7709
7596
  }
7710
7597
  `;
7711
- var StyledMobileSubMenuItems = styled30.div`
7598
+ var StyledMobileSubMenuItems = styled29.div`
7712
7599
  margin-left: var(--wui-space-04);
7713
7600
  `;
7714
- var StyledSubTrigger = styled30(DropdownMenuSubTrigger)`
7601
+ var StyledSubTrigger = styled29(DropdownMenuSubTrigger)`
7715
7602
  outline: none;
7716
7603
 
7717
7604
  &[data-state='open'],
@@ -7722,11 +7609,11 @@ var StyledSubTrigger = styled30(DropdownMenuSubTrigger)`
7722
7609
  var SubMenuTrigger = (props) => {
7723
7610
  const { isSmAndUp } = useMq();
7724
7611
  const Trigger2 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
7725
- return /* @__PURE__ */ jsx191(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx191(
7612
+ return /* @__PURE__ */ jsx189(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx189(
7726
7613
  MenuItemButton,
7727
7614
  {
7728
7615
  ...props,
7729
- rightIcon: /* @__PURE__ */ jsx191(Icon, { type: "caret-right" })
7616
+ rightIcon: /* @__PURE__ */ jsx189(Icon, { type: "caret-right" })
7730
7617
  }
7731
7618
  ) });
7732
7619
  };
@@ -7739,14 +7626,14 @@ var SubMenu = ({
7739
7626
  }) => {
7740
7627
  const { isSmAndUp } = useMq();
7741
7628
  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
7629
+ return isSmAndUp ? /* @__PURE__ */ jsxs15(DropdownMenuSub, { onOpenChange, children: [
7630
+ /* @__PURE__ */ jsxs15(SubMenuTrigger, { ...props, children: [
7631
+ /* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
7632
+ isNotNil11(description) ? /* @__PURE__ */ jsx189(MenuItemDescription, { children: description }) : null
7746
7633
  ] }),
7747
- /* @__PURE__ */ jsx191(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx191(SubMenuContent, { children }) })
7748
- ] }) : /* @__PURE__ */ jsxs16(DropdownMenuGroup, { children: [
7749
- /* @__PURE__ */ jsxs16(
7634
+ /* @__PURE__ */ jsx189(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx189(SubMenuContent, { children }) })
7635
+ ] }) : /* @__PURE__ */ jsxs15(DropdownMenuGroup, { children: [
7636
+ /* @__PURE__ */ jsxs15(
7750
7637
  SubMenuTrigger,
7751
7638
  {
7752
7639
  ...props,
@@ -7755,12 +7642,12 @@ var SubMenu = ({
7755
7642
  setIsExpanded((prev) => !prev);
7756
7643
  },
7757
7644
  children: [
7758
- /* @__PURE__ */ jsx191(MenuItemLabel, { children: label }),
7759
- /* @__PURE__ */ jsx191(MenuItemDescription, { children: description })
7645
+ /* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
7646
+ /* @__PURE__ */ jsx189(MenuItemDescription, { children: description })
7760
7647
  ]
7761
7648
  }
7762
7649
  ),
7763
- /* @__PURE__ */ jsx191(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7650
+ /* @__PURE__ */ jsx189(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
7764
7651
  ] });
7765
7652
  };
7766
7653
  SubMenu.displayName = "SubMenu";
@@ -7768,15 +7655,15 @@ SubMenu.displayName = "SubMenu";
7768
7655
  // src/components/Menu/MenuItem.tsx
7769
7656
  import { forwardRef as forwardRef13 } from "react";
7770
7657
  import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
7771
- import { jsx as jsx192 } from "react/jsx-runtime";
7658
+ import { jsx as jsx190 } from "react/jsx-runtime";
7772
7659
  var MenuItem = forwardRef13(
7773
7660
  ({ onSelect = () => null, ...props }, ref) => {
7774
- return /* @__PURE__ */ jsx192(
7661
+ return /* @__PURE__ */ jsx190(
7775
7662
  DropdownMenuItem2,
7776
7663
  {
7777
7664
  asChild: true,
7778
7665
  onSelect,
7779
- children: /* @__PURE__ */ jsx192(
7666
+ children: /* @__PURE__ */ jsx190(
7780
7667
  MenuItemButton,
7781
7668
  {
7782
7669
  ...props,
@@ -7794,10 +7681,10 @@ MenuItem.displayName = "MenuItem";
7794
7681
  import {
7795
7682
  DropdownMenuRadioGroup
7796
7683
  } from "@radix-ui/react-dropdown-menu";
7797
- import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7684
+ import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7798
7685
  var MenuRadioGroup = ({ children, label, ...props }) => {
7799
- return /* @__PURE__ */ jsxs17(DropdownMenuRadioGroup, { ...props, children: [
7800
- /* @__PURE__ */ jsx193(MenuLabel, { children: label }),
7686
+ return /* @__PURE__ */ jsxs16(DropdownMenuRadioGroup, { ...props, children: [
7687
+ /* @__PURE__ */ jsx191(MenuLabel, { children: label }),
7801
7688
  children
7802
7689
  ] });
7803
7690
  };
@@ -7808,11 +7695,11 @@ import {
7808
7695
  DropdownMenuItemIndicator,
7809
7696
  DropdownMenuRadioItem
7810
7697
  } from "@radix-ui/react-dropdown-menu";
7811
- import { jsx as jsx194 } from "react/jsx-runtime";
7698
+ import { jsx as jsx192 } from "react/jsx-runtime";
7812
7699
  var RadioMenuItem = ({
7813
7700
  onSelect,
7814
7701
  value,
7815
- indicator = /* @__PURE__ */ jsx194(
7702
+ indicator = /* @__PURE__ */ jsx192(
7816
7703
  Icon,
7817
7704
  {
7818
7705
  size: "sm",
@@ -7822,17 +7709,17 @@ var RadioMenuItem = ({
7822
7709
  ...props
7823
7710
  }) => {
7824
7711
  const extraProps = onSelect ? { onSelect } : {};
7825
- return /* @__PURE__ */ jsx194(
7712
+ return /* @__PURE__ */ jsx192(
7826
7713
  DropdownMenuRadioItem,
7827
7714
  {
7828
7715
  ...extraProps,
7829
7716
  asChild: true,
7830
7717
  value,
7831
- children: /* @__PURE__ */ jsx194(
7718
+ children: /* @__PURE__ */ jsx192(
7832
7719
  MenuItemButton,
7833
7720
  {
7834
7721
  ...props,
7835
- rightIcon: /* @__PURE__ */ jsx194(DropdownMenuItemIndicator, { children: indicator })
7722
+ rightIcon: /* @__PURE__ */ jsx192(DropdownMenuItemIndicator, { children: indicator })
7836
7723
  }
7837
7724
  )
7838
7725
  }
@@ -7844,9 +7731,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
7844
7731
  import {
7845
7732
  DropdownMenuCheckboxItem
7846
7733
  } from "@radix-ui/react-dropdown-menu";
7847
- import { jsx as jsx195, jsxs as jsxs18 } from "react/jsx-runtime";
7734
+ import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7848
7735
  var CheckboxIndicator2 = ({ checked, ...props }) => {
7849
- return checked ? /* @__PURE__ */ jsxs18(
7736
+ return checked ? /* @__PURE__ */ jsxs17(
7850
7737
  "svg",
7851
7738
  {
7852
7739
  ...props,
@@ -7856,14 +7743,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7856
7743
  width: "24",
7857
7744
  xmlns: "http://www.w3.org/2000/svg",
7858
7745
  children: [
7859
- /* @__PURE__ */ jsx195(
7746
+ /* @__PURE__ */ jsx193(
7860
7747
  "path",
7861
7748
  {
7862
7749
  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
7750
  fill: "#2949e5"
7864
7751
  }
7865
7752
  ),
7866
- /* @__PURE__ */ jsx195(
7753
+ /* @__PURE__ */ jsx193(
7867
7754
  "path",
7868
7755
  {
7869
7756
  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 +7759,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7872
7759
  )
7873
7760
  ]
7874
7761
  }
7875
- ) : /* @__PURE__ */ jsxs18(
7762
+ ) : /* @__PURE__ */ jsxs17(
7876
7763
  "svg",
7877
7764
  {
7878
7765
  ...props,
@@ -7882,14 +7769,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7882
7769
  width: "24",
7883
7770
  xmlns: "http://www.w3.org/2000/svg",
7884
7771
  children: [
7885
- /* @__PURE__ */ jsx195(
7772
+ /* @__PURE__ */ jsx193(
7886
7773
  "path",
7887
7774
  {
7888
7775
  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
7776
  fill: "#fcfcfd"
7890
7777
  }
7891
7778
  ),
7892
- /* @__PURE__ */ jsx195(
7779
+ /* @__PURE__ */ jsx193(
7893
7780
  "path",
7894
7781
  {
7895
7782
  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 +7793,18 @@ var CheckboxMenuItem = ({
7906
7793
  onCheckedChange,
7907
7794
  ...props
7908
7795
  }) => {
7909
- return /* @__PURE__ */ jsx195(
7796
+ return /* @__PURE__ */ jsx193(
7910
7797
  DropdownMenuCheckboxItem,
7911
7798
  {
7912
7799
  asChild: true,
7913
7800
  checked,
7914
7801
  onCheckedChange,
7915
7802
  onSelect,
7916
- children: /* @__PURE__ */ jsx195(
7803
+ children: /* @__PURE__ */ jsx193(
7917
7804
  MenuItemButton,
7918
7805
  {
7919
7806
  ...props,
7920
- leftIcon: /* @__PURE__ */ jsx195(CheckboxIndicator2, { checked })
7807
+ leftIcon: /* @__PURE__ */ jsx193(CheckboxIndicator2, { checked })
7921
7808
  }
7922
7809
  )
7923
7810
  }
@@ -7927,39 +7814,39 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
7927
7814
 
7928
7815
  // src/components/Modal/Modal.tsx
7929
7816
  import { forwardRef as forwardRef16 } from "react";
7930
- import styled36 from "styled-components";
7817
+ import styled35 from "styled-components";
7931
7818
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
7932
7819
  import { isNotNil as isNotNil14 } from "@wistia/type-guards";
7933
7820
 
7934
7821
  // src/components/Modal/ModalHeader.tsx
7935
- import styled33 from "styled-components";
7822
+ import styled32 from "styled-components";
7936
7823
  import { Title as DialogTitle } from "@radix-ui/react-dialog";
7937
7824
 
7938
7825
  // src/components/Modal/ModalCloseButton.tsx
7939
- import styled31 from "styled-components";
7826
+ import styled30 from "styled-components";
7940
7827
  import { Close as DialogClose } from "@radix-ui/react-dialog";
7941
- import { jsx as jsx196 } from "react/jsx-runtime";
7942
- var CloseButton = styled31(DialogClose)`
7828
+ import { jsx as jsx194 } from "react/jsx-runtime";
7829
+ var CloseButton = styled30(DialogClose)`
7943
7830
  align-self: start;
7944
7831
  `;
7945
7832
  var ModalCloseButton = () => {
7946
- return /* @__PURE__ */ jsx196(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx196(
7833
+ return /* @__PURE__ */ jsx194(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx194(
7947
7834
  IconButton,
7948
7835
  {
7949
7836
  label: "Dismiss modal",
7950
7837
  size: "sm",
7951
7838
  variant: "ghost",
7952
- children: /* @__PURE__ */ jsx196(Icon, { type: "close" })
7839
+ children: /* @__PURE__ */ jsx194(Icon, { type: "close" })
7953
7840
  }
7954
7841
  ) });
7955
7842
  };
7956
7843
 
7957
7844
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7958
- import styled32 from "styled-components";
7845
+ import styled31 from "styled-components";
7959
7846
  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({
7847
+ import { jsx as jsx195 } from "react/jsx-runtime";
7848
+ var VisuallyHidden = styled31.div({ ...visuallyHiddenStyle });
7849
+ var VisuallyHiddenButFocusable = styled31.div({
7963
7850
  "&:not(:focus-within)": visuallyHiddenStyle
7964
7851
  });
7965
7852
  var ScreenReaderOnly = ({
@@ -7970,15 +7857,15 @@ var ScreenReaderOnly = ({
7970
7857
  }) => {
7971
7858
  const accessibleText = isNotNil12(text) ? text : children;
7972
7859
  if (focusable) {
7973
- return /* @__PURE__ */ jsx197(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7860
+ return /* @__PURE__ */ jsx195(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7974
7861
  }
7975
- return /* @__PURE__ */ jsx197(VisuallyHidden, { ...otherProps, children: accessibleText });
7862
+ return /* @__PURE__ */ jsx195(VisuallyHidden, { ...otherProps, children: accessibleText });
7976
7863
  };
7977
7864
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
7978
7865
 
7979
7866
  // src/components/Modal/ModalHeader.tsx
7980
- import { jsx as jsx198, jsxs as jsxs19 } from "react/jsx-runtime";
7981
- var Header = styled33.header`
7867
+ import { jsx as jsx196, jsxs as jsxs18 } from "react/jsx-runtime";
7868
+ var Header = styled32.header`
7982
7869
  display: flex;
7983
7870
  order: 1;
7984
7871
  gap: var(--wui-space-01);
@@ -7990,7 +7877,7 @@ var Header = styled33.header`
7990
7877
  margin-top: 0;
7991
7878
  }
7992
7879
  `;
7993
- var Title = styled33(DialogTitle)`
7880
+ var Title = styled32(DialogTitle)`
7994
7881
  font-family: var(--wui-typography-heading-2-family);
7995
7882
  line-height: var(--wui-typography-heading-2-line-height);
7996
7883
  font-size: var(--wui-typography-heading-2-size);
@@ -8002,26 +7889,26 @@ var ModalHeader = ({
8002
7889
  hideCloseButton
8003
7890
  }) => {
8004
7891
  const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
8005
- return /* @__PURE__ */ jsxs19(Header, { children: [
8006
- /* @__PURE__ */ jsx198(TitleWrapper, { children: title }),
8007
- hideCloseButton ? null : /* @__PURE__ */ jsx198(ModalCloseButton, {})
7892
+ return /* @__PURE__ */ jsxs18(Header, { children: [
7893
+ /* @__PURE__ */ jsx196(TitleWrapper, { children: title }),
7894
+ hideCloseButton ? null : /* @__PURE__ */ jsx196(ModalCloseButton, {})
8008
7895
  ] });
8009
7896
  };
8010
7897
 
8011
7898
  // src/components/Modal/ModalContent.tsx
8012
7899
  import { forwardRef as forwardRef14 } from "react";
8013
- import styled34 from "styled-components";
7900
+ import styled33 from "styled-components";
8014
7901
  import { Content as DialogContent } from "@radix-ui/react-dialog";
8015
7902
 
8016
7903
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
8017
- import { useRef as useRef7, useEffect as useEffect3 } from "react";
7904
+ import { useRef as useRef6, useEffect as useEffect2 } from "react";
8018
7905
  import { isNotNil as isNotNil13 } from "@wistia/type-guards";
8019
7906
  var useFocusRestore = () => {
8020
- const previouslyFocusedRef = useRef7(null);
8021
- useEffect3(() => {
7907
+ const previouslyFocusedRef = useRef6(null);
7908
+ useEffect2(() => {
8022
7909
  previouslyFocusedRef.current = document.activeElement;
8023
7910
  }, []);
8024
- useEffect3(() => {
7911
+ useEffect2(() => {
8025
7912
  return () => {
8026
7913
  if (isNotNil13(previouslyFocusedRef.current)) {
8027
7914
  setTimeout(() => {
@@ -8033,8 +7920,8 @@ var useFocusRestore = () => {
8033
7920
  };
8034
7921
 
8035
7922
  // src/components/Modal/ModalContent.tsx
8036
- import { jsx as jsx199 } from "react/jsx-runtime";
8037
- var StyledModalContent = styled34(DialogContent)`
7923
+ import { jsx as jsx197 } from "react/jsx-runtime";
7924
+ var StyledModalContent = styled33(DialogContent)`
8038
7925
  background-color: var(--wui-color-bg-app);
8039
7926
  box-sizing: border-box;
8040
7927
  display: flex;
@@ -8077,7 +7964,7 @@ var StyledModalContent = styled34(DialogContent)`
8077
7964
  var ModalContent = forwardRef14(
8078
7965
  ({ fullHeight, width, children, ...otherProps }, ref) => {
8079
7966
  useFocusRestore();
8080
- return /* @__PURE__ */ jsx199(
7967
+ return /* @__PURE__ */ jsx197(
8081
7968
  StyledModalContent,
8082
7969
  {
8083
7970
  ref,
@@ -8092,8 +7979,8 @@ var ModalContent = forwardRef14(
8092
7979
 
8093
7980
  // src/private/components/Backdrop/Backdrop.tsx
8094
7981
  import { forwardRef as forwardRef15 } from "react";
8095
- import styled35 from "styled-components";
8096
- import { jsx as jsx200 } from "react/jsx-runtime";
7982
+ import styled34 from "styled-components";
7983
+ import { jsx as jsx198 } from "react/jsx-runtime";
8097
7984
  var backdropAnimationDuration = 150;
8098
7985
  var alignVerticalMap = {
8099
7986
  stretch: "normal",
@@ -8106,7 +7993,7 @@ var alignHorizontalMap = {
8106
7993
  center: "center",
8107
7994
  right: "end"
8108
7995
  };
8109
- var BackdropComponent = styled35.div`
7996
+ var BackdropComponent = styled34.div`
8110
7997
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
8111
7998
  animation-name: backdropShow;
8112
7999
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -8130,7 +8017,7 @@ var BackdropComponent = styled35.div`
8130
8017
  }
8131
8018
  `;
8132
8019
  var Backdrop = forwardRef15(
8133
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx200(
8020
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx198(
8134
8021
  BackdropComponent,
8135
8022
  {
8136
8023
  ref,
@@ -8144,8 +8031,8 @@ var Backdrop = forwardRef15(
8144
8031
  Backdrop.displayName = "Backdrop";
8145
8032
 
8146
8033
  // src/components/Modal/Modal.tsx
8147
- import { jsx as jsx201, jsxs as jsxs20 } from "react/jsx-runtime";
8148
- var ModalBody = styled36.div`
8034
+ import { jsx as jsx199, jsxs as jsxs19 } from "react/jsx-runtime";
8035
+ var ModalBody = styled35.div`
8149
8036
  flex-direction: column;
8150
8037
  display: flex;
8151
8038
  order: 2;
@@ -8163,7 +8050,7 @@ var Modal = forwardRef16(
8163
8050
  width,
8164
8051
  ...props
8165
8052
  }, ref) => {
8166
- return /* @__PURE__ */ jsx201(
8053
+ return /* @__PURE__ */ jsx199(
8167
8054
  DialogRoot,
8168
8055
  {
8169
8056
  onOpenChange: (open2) => {
@@ -8172,9 +8059,9 @@ var Modal = forwardRef16(
8172
8059
  }
8173
8060
  },
8174
8061
  open: isOpen,
8175
- children: /* @__PURE__ */ jsxs20(DialogPortal, { children: [
8176
- /* @__PURE__ */ jsx201(Backdrop, {}),
8177
- /* @__PURE__ */ jsxs20(
8062
+ children: /* @__PURE__ */ jsxs19(DialogPortal, { children: [
8063
+ /* @__PURE__ */ jsx199(Backdrop, {}),
8064
+ /* @__PURE__ */ jsxs19(
8178
8065
  ModalContent,
8179
8066
  {
8180
8067
  ref,
@@ -8191,8 +8078,8 @@ var Modal = forwardRef16(
8191
8078
  width,
8192
8079
  ...props,
8193
8080
  children: [
8194
- /* @__PURE__ */ jsx201(ModalBody, { children }),
8195
- /* @__PURE__ */ jsx201(
8081
+ /* @__PURE__ */ jsx199(ModalBody, { children }),
8082
+ /* @__PURE__ */ jsx199(
8196
8083
  ModalHeader,
8197
8084
  {
8198
8085
  hideCloseButton,
@@ -8212,15 +8099,15 @@ Modal.displayName = "Modal";
8212
8099
 
8213
8100
  // src/components/Radio/Radio.tsx
8214
8101
  import { forwardRef as forwardRef17, useId as useId3 } from "react";
8215
- import styled37, { css as css21 } from "styled-components";
8102
+ import styled36, { css as css21 } from "styled-components";
8216
8103
  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`
8104
+ import { jsx as jsx200, jsxs as jsxs20 } from "react/jsx-runtime";
8105
+ var StyledLabelWrapper2 = styled36.div`
8219
8106
  display: flex;
8220
8107
  flex-direction: column;
8221
8108
  padding-left: var(--wui-space-02);
8222
8109
  `;
8223
- var StyledRadio = styled37.input`
8110
+ var StyledRadio = styled36.input`
8224
8111
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
8225
8112
  appearance: none;
8226
8113
  margin: 0;
@@ -8262,7 +8149,7 @@ var defaultHoverStyle = css21`
8262
8149
  /* TODO Lamp to design hover state */
8263
8150
  cursor: pointer;
8264
8151
  `;
8265
- var StyledRadioWrapper = styled37.div`
8152
+ var StyledRadioWrapper = styled36.div`
8266
8153
  align-items: baseline;
8267
8154
  border: 1px solid transparent;
8268
8155
  border-radius: 4px;
@@ -8300,13 +8187,13 @@ var Radio = forwardRef17(
8300
8187
  }, ref) => {
8301
8188
  const generatedId = useId3();
8302
8189
  const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
8303
- return /* @__PURE__ */ jsxs21(
8190
+ return /* @__PURE__ */ jsxs20(
8304
8191
  StyledRadioWrapper,
8305
8192
  {
8306
8193
  "aria-invalid": otherProps["aria-invalid"],
8307
8194
  disabled,
8308
8195
  children: [
8309
- /* @__PURE__ */ jsx202(
8196
+ /* @__PURE__ */ jsx200(
8310
8197
  StyledRadio,
8311
8198
  {
8312
8199
  ref,
@@ -8321,8 +8208,8 @@ var Radio = forwardRef17(
8321
8208
  ...otherProps
8322
8209
  }
8323
8210
  ),
8324
- /* @__PURE__ */ jsxs21(StyledLabelWrapper2, { children: [
8325
- /* @__PURE__ */ jsx202(
8211
+ /* @__PURE__ */ jsxs20(StyledLabelWrapper2, { children: [
8212
+ /* @__PURE__ */ jsx200(
8326
8213
  Label,
8327
8214
  {
8328
8215
  disabled,
@@ -8331,7 +8218,7 @@ var Radio = forwardRef17(
8331
8218
  children: label
8332
8219
  }
8333
8220
  ),
8334
- /* @__PURE__ */ jsx202(LabelDescription, { children: description })
8221
+ /* @__PURE__ */ jsx200(LabelDescription, { children: description })
8335
8222
  ] })
8336
8223
  ]
8337
8224
  }
@@ -8342,10 +8229,10 @@ Radio.displayName = "Radio";
8342
8229
 
8343
8230
  // src/components/Tag/Tag.tsx
8344
8231
  import { forwardRef as forwardRef18 } from "react";
8345
- import styled38 from "styled-components";
8232
+ import styled37 from "styled-components";
8346
8233
  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`
8234
+ import { Fragment as Fragment2, jsx as jsx201, jsxs as jsxs21 } from "react/jsx-runtime";
8235
+ var TagLabel = styled37.a`
8349
8236
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8350
8237
  font-size: var(--wui-typography-label-4-size);
8351
8238
  font-weight: var(--wui-typography-label-4-weight);
@@ -8373,14 +8260,14 @@ var TagLabel = styled38.a`
8373
8260
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
8374
8261
  }
8375
8262
  `;
8376
- var TagDivider = styled38.div`
8263
+ var TagDivider = styled37.div`
8377
8264
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8378
8265
  border-left: 1px solid var(--wui-color-border);
8379
8266
  display: flex;
8380
8267
  height: 14px;
8381
8268
  width: 1px;
8382
8269
  `;
8383
- var StyledRemoveButton = styled38.button`
8270
+ var StyledRemoveButton = styled37.button`
8384
8271
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8385
8272
  all: unset;
8386
8273
  cursor: pointer;
@@ -8408,7 +8295,7 @@ var StyledRemoveButton = styled38.button`
8408
8295
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
8409
8296
  }
8410
8297
  `;
8411
- var StyledTag = styled38.div`
8298
+ var StyledTag = styled37.div`
8412
8299
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8413
8300
  align-items: center;
8414
8301
  background-color: var(--wui-color-bg-surface-secondary);
@@ -8425,23 +8312,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8425
8312
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
8426
8313
  );
8427
8314
  }
8428
- return /* @__PURE__ */ jsxs22(Fragment3, { children: [
8429
- /* @__PURE__ */ jsx203(TagDivider, { $colorScheme: colorScheme }),
8430
- /* @__PURE__ */ jsxs22(
8315
+ return /* @__PURE__ */ jsxs21(Fragment2, { children: [
8316
+ /* @__PURE__ */ jsx201(TagDivider, { $colorScheme: colorScheme }),
8317
+ /* @__PURE__ */ jsxs21(
8431
8318
  StyledRemoveButton,
8432
8319
  {
8433
8320
  $colorScheme: colorScheme,
8434
8321
  onClick: onClickRemove,
8435
8322
  type: "button",
8436
8323
  children: [
8437
- /* @__PURE__ */ jsx203(
8324
+ /* @__PURE__ */ jsx201(
8438
8325
  Icon,
8439
8326
  {
8440
8327
  size: "sm",
8441
8328
  type: "close"
8442
8329
  }
8443
8330
  ),
8444
- /* @__PURE__ */ jsx203(ScreenReaderOnly, { children: onClickRemoveLabel })
8331
+ /* @__PURE__ */ jsx201(ScreenReaderOnly, { children: onClickRemoveLabel })
8445
8332
  ]
8446
8333
  }
8447
8334
  )
@@ -8450,14 +8337,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8450
8337
  var Tag = forwardRef18(
8451
8338
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
8452
8339
  const labelProps = isNotNil15(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
8453
- return /* @__PURE__ */ jsxs22(
8340
+ return /* @__PURE__ */ jsxs21(
8454
8341
  StyledTag,
8455
8342
  {
8456
8343
  ref,
8457
8344
  $colorScheme: colorScheme,
8458
8345
  ...otherProps,
8459
8346
  children: [
8460
- /* @__PURE__ */ jsx203(
8347
+ /* @__PURE__ */ jsx201(
8461
8348
  TagLabel,
8462
8349
  {
8463
8350
  ...labelProps,
@@ -8465,7 +8352,7 @@ var Tag = forwardRef18(
8465
8352
  children: label
8466
8353
  }
8467
8354
  ),
8468
- /* @__PURE__ */ jsx203(
8355
+ /* @__PURE__ */ jsx201(
8469
8356
  RemoveButton,
8470
8357
  {
8471
8358
  colorScheme,
@@ -8488,8 +8375,8 @@ import {
8488
8375
  Portal,
8489
8376
  Arrow
8490
8377
  } 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";
8378
+ import styled38, { css as css22 } from "styled-components";
8379
+ import { jsx as jsx202, jsxs as jsxs22 } from "react/jsx-runtime";
8493
8380
  var CompactTooltipStyles = css22`
8494
8381
  --tooltip-font-size: var(--wui-typography-label-4-size);
8495
8382
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
@@ -8497,7 +8384,7 @@ var CompactTooltipStyles = css22`
8497
8384
  --tooltip-horizontal-padding: var(--wui-space-02);
8498
8385
  --tooltip-vertical-padding: var(--wui-space-03);
8499
8386
  `;
8500
- var StyledContent = styled39(Content)`
8387
+ var StyledContent = styled38(Content)`
8501
8388
  --tooltip-font-family: var(--wui-typography-family-default);
8502
8389
  --tooltip-border-radius: var(--wui-border-radius-05);
8503
8390
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -8555,14 +8442,14 @@ var Tooltip = ({
8555
8442
  if (forceOpen === true) {
8556
8443
  rootProps.open = true;
8557
8444
  }
8558
- return /* @__PURE__ */ jsxs23(
8445
+ return /* @__PURE__ */ jsxs22(
8559
8446
  Root,
8560
8447
  {
8561
8448
  delayDuration: delay,
8562
8449
  ...rootProps,
8563
8450
  children: [
8564
- /* @__PURE__ */ jsx204(Trigger, { asChild: true, children }),
8565
- /* @__PURE__ */ jsx204(Portal, { children: /* @__PURE__ */ jsxs23(
8451
+ /* @__PURE__ */ jsx202(Trigger, { asChild: true, children }),
8452
+ /* @__PURE__ */ jsx202(Portal, { children: /* @__PURE__ */ jsxs22(
8566
8453
  StyledContent,
8567
8454
  {
8568
8455
  $compact: compact,
@@ -8570,7 +8457,7 @@ var Tooltip = ({
8570
8457
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
8571
8458
  children: [
8572
8459
  content,
8573
- !hideArrow ? /* @__PURE__ */ jsx204(Arrow, { asChild: true, children: /* @__PURE__ */ jsx204(
8460
+ !hideArrow ? /* @__PURE__ */ jsx202(Arrow, { asChild: true, children: /* @__PURE__ */ jsx202(
8574
8461
  "svg",
8575
8462
  {
8576
8463
  fill: "var(--tooltip-bg)",
@@ -8579,7 +8466,7 @@ var Tooltip = ({
8579
8466
  viewBox: "0 0 12 8",
8580
8467
  width: "12",
8581
8468
  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" })
8469
+ 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
8470
  }
8584
8471
  ) }) : null
8585
8472
  ]
@@ -8592,26 +8479,26 @@ var Tooltip = ({
8592
8479
  Tooltip.displayName = "Tooltip";
8593
8480
 
8594
8481
  // src/components/WistiaLogo/WistiaLogo.tsx
8595
- import styled40 from "styled-components";
8482
+ import styled39 from "styled-components";
8596
8483
  import { isNotNil as isNotNil16 } from "@wistia/type-guards";
8597
- import { jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
8484
+ import { jsx as jsx203, jsxs as jsxs23 } from "react/jsx-runtime";
8598
8485
  var renderBrandmark = (brandmarkColor, iconOnly) => {
8599
8486
  if (iconOnly) {
8600
- return /* @__PURE__ */ jsx205(
8487
+ return /* @__PURE__ */ jsx203(
8601
8488
  "g",
8602
8489
  {
8603
8490
  "data-testid": "ui-wistia-logo-brandmark",
8604
8491
  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" })
8492
+ 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
8493
  }
8607
8494
  );
8608
8495
  }
8609
- return /* @__PURE__ */ jsx205(
8496
+ return /* @__PURE__ */ jsx203(
8610
8497
  "g",
8611
8498
  {
8612
8499
  "data-testid": "ui-wistia-logo-brandmark",
8613
8500
  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" })
8501
+ 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
8502
  }
8616
8503
  );
8617
8504
  };
@@ -8619,12 +8506,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
8619
8506
  if (iconOnly) {
8620
8507
  return null;
8621
8508
  }
8622
- return /* @__PURE__ */ jsx205(
8509
+ return /* @__PURE__ */ jsx203(
8623
8510
  "g",
8624
8511
  {
8625
8512
  "data-testid": "ui-wistia-logo-logotype",
8626
8513
  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" })
8514
+ 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
8515
  }
8629
8516
  );
8630
8517
  };
@@ -8634,7 +8521,7 @@ var computedViewBox = (iconOnly) => {
8634
8521
  }
8635
8522
  return "0 0 144 31.47";
8636
8523
  };
8637
- var WistiaLogoComponent = styled40.svg`
8524
+ var WistiaLogoComponent = styled39.svg`
8638
8525
  height: ${({ height }) => `${height}px`};
8639
8526
 
8640
8527
  /* ensure it will always fit on mobile */
@@ -8676,7 +8563,7 @@ var WistiaLogo = ({
8676
8563
  };
8677
8564
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
8678
8565
  const logotypeColor = VARIANT_COLORS[variant].logotype;
8679
- const Logo = /* @__PURE__ */ jsxs24(
8566
+ const Logo = /* @__PURE__ */ jsxs23(
8680
8567
  WistiaLogoComponent,
8681
8568
  {
8682
8569
  $hoverColor: hoverColor,
@@ -8686,16 +8573,63 @@ var WistiaLogo = ({
8686
8573
  xmlns: "http://www.w3.org/2000/svg",
8687
8574
  ...otherProps,
8688
8575
  children: [
8689
- /* @__PURE__ */ jsx205("title", { children: title }),
8690
- isNotNil16(description) ? /* @__PURE__ */ jsx205("desc", { children: description }) : null,
8576
+ /* @__PURE__ */ jsx203("title", { children: title }),
8577
+ isNotNil16(description) ? /* @__PURE__ */ jsx203("desc", { children: description }) : null,
8691
8578
  renderBrandmark(brandmarkColor, iconOnly),
8692
8579
  renderLogotype(logotypeColor, iconOnly)
8693
8580
  ]
8694
8581
  }
8695
8582
  );
8696
- return href !== void 0 ? /* @__PURE__ */ jsx205("a", { href, children: Logo }) : Logo;
8583
+ return href !== void 0 ? /* @__PURE__ */ jsx203("a", { href, children: Logo }) : Logo;
8697
8584
  };
8698
8585
  WistiaLogo.displayName = "WistiaLogo";
8586
+
8587
+ // src/components/Breadcrumbs/Breadcrumbs.tsx
8588
+ import styled40 from "styled-components";
8589
+ import { jsx as jsx204 } from "react/jsx-runtime";
8590
+ var StyledBreadcrumbs = styled40.nav`
8591
+ display: flex;
8592
+ align-items: center;
8593
+ gap: var(--wui-space-01);
8594
+
8595
+ > svg:last-of-type {
8596
+ display: none;
8597
+ }
8598
+ `;
8599
+ var Breadcrumbs = ({ children, ...props }) => {
8600
+ return /* @__PURE__ */ jsx204(
8601
+ StyledBreadcrumbs,
8602
+ {
8603
+ "aria-label": "Breadcrumbs",
8604
+ ...props,
8605
+ children
8606
+ }
8607
+ );
8608
+ };
8609
+ Breadcrumbs.displayName = "Breadcrumbs";
8610
+
8611
+ // src/components/Breadcrumbs/Breadcrumb.tsx
8612
+ import { Fragment as Fragment3, jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
8613
+ var Breadcrumb = ({ icon, href, children }) => {
8614
+ return /* @__PURE__ */ jsxs24(Fragment3, { children: [
8615
+ /* @__PURE__ */ jsx205(
8616
+ Button,
8617
+ {
8618
+ href,
8619
+ leftIcon: icon,
8620
+ variant: "ghost",
8621
+ children
8622
+ }
8623
+ ),
8624
+ /* @__PURE__ */ jsx205(
8625
+ Icon,
8626
+ {
8627
+ size: "sm",
8628
+ type: "caret-right"
8629
+ }
8630
+ )
8631
+ ] });
8632
+ };
8699
8633
  export {
8700
8634
  ActionButton,
8701
8635
  Avatar,
@@ -8750,7 +8684,6 @@ export {
8750
8684
  useAriaLive,
8751
8685
  useBoolean,
8752
8686
  useFormState,
8753
- useKey,
8754
8687
  useMq,
8755
8688
  useToast,
8756
8689
  useWindowSize