@wistia/ui 0.14.1 → 0.14.2

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.14.1
3
+ * @license @wistia/ui v0.14.2
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9497,7 +9497,7 @@ var CollapsibleContent = ({ clamp, children }) => {
9497
9497
 
9498
9498
  // src/components/ColorPicker/ColorGrid.tsx
9499
9499
  import { useCallback as useCallback10 } from "react";
9500
- import styled31 from "styled-components";
9500
+ import styled32 from "styled-components";
9501
9501
  import { Root as RadioGroupRoot } from "@radix-ui/react-radio-group";
9502
9502
 
9503
9503
  // src/components/ColorPicker/ColorPickerContext.tsx
@@ -10011,17 +10011,86 @@ var useColorPickerState = () => {
10011
10011
  return context;
10012
10012
  };
10013
10013
 
10014
- // src/components/ColorPicker/ColorGrid.tsx
10014
+ // src/components/Label/Label.tsx
10015
+ import styled31, { css as css26 } from "styled-components";
10015
10016
  import { jsx as jsx226 } from "react/jsx-runtime";
10016
- var Container = styled31(RadioGroupRoot)`
10017
+ var requiredStyle = css26`
10018
+ &::after {
10019
+ color: var(--wui-color-text-error);
10020
+ display: inline;
10021
+ padding-left: var(--wui-space-01);
10022
+ content: '*';
10023
+ }
10024
+ `;
10025
+ var disabledStyle3 = css26`
10026
+ color: var(--wui-color-text-disabled);
10027
+ `;
10028
+ var StyledLabel2 = styled31.label`
10029
+ display: block;
10030
+ width: 100%;
10031
+ color: var(--wui-color-text);
10032
+ font-family: var(--wui-typography-heading-6-family);
10033
+ line-height: var(--wui-typography-heading-6-line-height);
10034
+ font-size: var(--wui-typography-heading-6-size);
10035
+ font-weight: var(--wui-typography-heading-6-weight);
10036
+
10037
+ /* if label is wrapping an input this ensures it appears beneath the label with a nice margin */
10038
+ > input,
10039
+ > textarea,
10040
+ > select {
10041
+ display: block;
10042
+ }
10043
+
10044
+ > label {
10045
+ font-weight: normal;
10046
+ }
10047
+
10048
+ ${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
10049
+ ${({ $disabled }) => $disabled && disabledStyle3}
10050
+ ${({ $required }) => $required && requiredStyle}
10051
+ `;
10052
+ var Label = ({
10053
+ children,
10054
+ disabled = false,
10055
+ htmlFor,
10056
+ required = false,
10057
+ screenReaderOnly = false,
10058
+ ...props
10059
+ }) => {
10060
+ return /* @__PURE__ */ jsx226(
10061
+ StyledLabel2,
10062
+ {
10063
+ ...props,
10064
+ $disabled: disabled,
10065
+ $required: required,
10066
+ $screenReaderOnly: screenReaderOnly,
10067
+ htmlFor,
10068
+ children
10069
+ }
10070
+ );
10071
+ };
10072
+ Label.displayName = "Label_UI";
10073
+
10074
+ // src/components/ColorPicker/ColorGrid.tsx
10075
+ import { jsx as jsx227, jsxs as jsxs20 } from "react/jsx-runtime";
10076
+ var Container = styled32.div`
10077
+ display: grid;
10078
+ gap: var(--wui-space-01);
10079
+ grid-template-columns: minmax(0, 1fr);
10080
+ padding: var(--wui-space-02);
10081
+ `;
10082
+ var LabelContainer = styled32.div`
10083
+ padding-top: var(--wui-space-01);
10084
+ `;
10085
+ var ItemsContainer = styled32(RadioGroupRoot)`
10017
10086
  display: flex;
10018
10087
  flex-wrap: wrap;
10019
10088
  align-items: center;
10020
10089
  justify-content: start;
10021
- padding: var(--wui-space-02) 14px;
10090
+ padding: var(--wui-space-01) 6px;
10022
10091
  gap: var(--wui-space-02);
10023
10092
  `;
10024
- var ColorGrid = ({ children }) => {
10093
+ var ColorGrid = ({ children, label }) => {
10025
10094
  const { valueAsHex, onChangeNonDerivedValueAsHsv } = useColorPickerState();
10026
10095
  const onValueChange = useCallback10(
10027
10096
  (value) => {
@@ -10030,26 +10099,29 @@ var ColorGrid = ({ children }) => {
10030
10099
  },
10031
10100
  [onChangeNonDerivedValueAsHsv]
10032
10101
  );
10033
- return /* @__PURE__ */ jsx226(
10034
- Container,
10035
- {
10036
- onValueChange,
10037
- value: valueAsHex,
10038
- children
10039
- }
10040
- );
10102
+ return /* @__PURE__ */ jsxs20(Container, { children: [
10103
+ label != null && /* @__PURE__ */ jsx227(LabelContainer, { children: /* @__PURE__ */ jsx227(Label, { children: label }) }),
10104
+ /* @__PURE__ */ jsx227(
10105
+ ItemsContainer,
10106
+ {
10107
+ onValueChange,
10108
+ value: valueAsHex,
10109
+ children
10110
+ }
10111
+ )
10112
+ ] });
10041
10113
  };
10042
10114
  ColorGrid.displayName = "ColorGrid_UI";
10043
10115
 
10044
10116
  // src/components/ColorPicker/ColorGridOption.tsx
10045
- import styled34 from "styled-components";
10117
+ import styled35 from "styled-components";
10046
10118
  import { Item as RadioGroupItem } from "@radix-ui/react-radio-group";
10047
10119
  import { formatHex as formatHex3 } from "culori/fn";
10048
10120
 
10049
10121
  // src/components/ColorPicker/ColorSwatch.tsx
10050
- import styled32 from "styled-components";
10051
- import { jsx as jsx227, jsxs as jsxs20 } from "react/jsx-runtime";
10052
- var ColorSwatchDiv = styled32.div`
10122
+ import styled33 from "styled-components";
10123
+ import { jsx as jsx228, jsxs as jsxs21 } from "react/jsx-runtime";
10124
+ var ColorSwatchDiv = styled33.div`
10053
10125
  aspect-ratio: 1;
10054
10126
  width: ${({ $diameterPx }) => `${$diameterPx}px`};
10055
10127
  border-radius: var(--wui-border-radius-rounded);
@@ -10068,7 +10140,7 @@ var ColorSwatchDiv = styled32.div`
10068
10140
  outline-offset: 2px;
10069
10141
  transform: ${({ $selected }) => $selected ? "scale(0.9)" : "scale(1)"};
10070
10142
  `;
10071
- var DerivativeHalfCircle = styled32.div`
10143
+ var DerivativeHalfCircle = styled33.div`
10072
10144
  position: absolute;
10073
10145
  right: 0;
10074
10146
  top: 0;
@@ -10085,7 +10157,7 @@ var ColorSwatch = ({
10085
10157
  value
10086
10158
  }) => {
10087
10159
  const { valueAsHex: colorPickerValueAsHex } = useColorPickerState();
10088
- return /* @__PURE__ */ jsxs20(
10160
+ return /* @__PURE__ */ jsxs21(
10089
10161
  ColorSwatchDiv,
10090
10162
  {
10091
10163
  $diameterPx: diameterPx,
@@ -10096,7 +10168,7 @@ var ColorSwatch = ({
10096
10168
  backgroundColor: value
10097
10169
  },
10098
10170
  children: [
10099
- derivativeIsSelected ? /* @__PURE__ */ jsx227(DerivativeHalfCircle, { $color: colorPickerValueAsHex }) : null,
10171
+ derivativeIsSelected ? /* @__PURE__ */ jsx228(DerivativeHalfCircle, { $color: colorPickerValueAsHex }) : null,
10100
10172
  children
10101
10173
  ]
10102
10174
  }
@@ -10111,8 +10183,8 @@ import {
10111
10183
  Portal as TooltipPortal,
10112
10184
  Arrow as TooltipArrow
10113
10185
  } from "@radix-ui/react-tooltip";
10114
- import styled33, { keyframes } from "styled-components";
10115
- import { jsx as jsx228, jsxs as jsxs21 } from "react/jsx-runtime";
10186
+ import styled34, { keyframes } from "styled-components";
10187
+ import { jsx as jsx229, jsxs as jsxs22 } from "react/jsx-runtime";
10116
10188
  var hide = keyframes`
10117
10189
  from {
10118
10190
  opacity: 1;
@@ -10161,7 +10233,7 @@ var slideRightAndFade = keyframes`
10161
10233
  transform: translateX(0);
10162
10234
  }
10163
10235
  `;
10164
- var StyledContent = styled33(TooltipContent)`
10236
+ var StyledContent = styled34(TooltipContent)`
10165
10237
  --tooltip-font-family: var(--wui-typography-family-default);
10166
10238
  --tooltip-border-radius: var(--wui-border-radius-05);
10167
10239
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -10223,21 +10295,21 @@ var Tooltip = ({
10223
10295
  if (forceOpen === true) {
10224
10296
  rootProps.open = true;
10225
10297
  }
10226
- return /* @__PURE__ */ jsxs21(
10298
+ return /* @__PURE__ */ jsxs22(
10227
10299
  TooltipRoot,
10228
10300
  {
10229
10301
  delayDuration: delay,
10230
10302
  ...rootProps,
10231
10303
  children: [
10232
- /* @__PURE__ */ jsx228(TooltipTrigger, { asChild: true, children }),
10233
- /* @__PURE__ */ jsx228(TooltipPortal, { children: /* @__PURE__ */ jsxs21(
10304
+ /* @__PURE__ */ jsx229(TooltipTrigger, { asChild: true, children }),
10305
+ /* @__PURE__ */ jsx229(TooltipPortal, { children: /* @__PURE__ */ jsxs22(
10234
10306
  StyledContent,
10235
10307
  {
10236
10308
  side: direction,
10237
10309
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
10238
10310
  children: [
10239
10311
  content,
10240
- !hideArrow ? /* @__PURE__ */ jsx228(TooltipArrow, { asChild: true, children: /* @__PURE__ */ jsx228(
10312
+ !hideArrow ? /* @__PURE__ */ jsx229(TooltipArrow, { asChild: true, children: /* @__PURE__ */ jsx229(
10241
10313
  "svg",
10242
10314
  {
10243
10315
  fill: "var(--tooltip-bg)",
@@ -10246,7 +10318,7 @@ var Tooltip = ({
10246
10318
  viewBox: "0 0 12 8",
10247
10319
  width: "12",
10248
10320
  xmlns: "http://www.w3.org/2000/svg",
10249
- children: /* @__PURE__ */ jsx228("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" })
10321
+ children: /* @__PURE__ */ jsx229("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" })
10250
10322
  }
10251
10323
  ) }) : null
10252
10324
  ]
@@ -10259,8 +10331,8 @@ var Tooltip = ({
10259
10331
  Tooltip.displayName = "Tooltip_UI";
10260
10332
 
10261
10333
  // src/components/ColorPicker/ColorGridOption.tsx
10262
- import { jsx as jsx229 } from "react/jsx-runtime";
10263
- var Container2 = styled34(RadioGroupItem)`
10334
+ import { jsx as jsx230 } from "react/jsx-runtime";
10335
+ var Container2 = styled35(RadioGroupItem)`
10264
10336
  border: none;
10265
10337
  appearance: none;
10266
10338
  outline: none;
@@ -10275,11 +10347,11 @@ var ColorGridOption = ({ value, name }) => {
10275
10347
  const valueAsHex = formatHex3(valueAsHsv);
10276
10348
  const isSelected = valueAsHex === value;
10277
10349
  const derivativeIsSelected = !isSelected && nonDerivedValueAsHex === value;
10278
- return /* @__PURE__ */ jsx229(
10350
+ return /* @__PURE__ */ jsx230(
10279
10351
  Tooltip,
10280
10352
  {
10281
- content: name ?? /* @__PURE__ */ jsx229("span", { style: { fontFamily: "var(--wui-typography-family-mono)" }, children: value }),
10282
- children: /* @__PURE__ */ jsx229(
10353
+ content: name ?? /* @__PURE__ */ jsx230("span", { style: { fontFamily: "var(--wui-typography-family-mono)" }, children: value }),
10354
+ children: /* @__PURE__ */ jsx230(
10283
10355
  Container2,
10284
10356
  {
10285
10357
  "aria-label": value,
@@ -10287,7 +10359,7 @@ var ColorGridOption = ({ value, name }) => {
10287
10359
  role: "option",
10288
10360
  tabIndex: -1,
10289
10361
  value,
10290
- children: /* @__PURE__ */ jsx229(
10362
+ children: /* @__PURE__ */ jsx230(
10291
10363
  ColorSwatch,
10292
10364
  {
10293
10365
  derivativeIsSelected,
@@ -10304,10 +10376,10 @@ ColorGridOption.displayName = "ColorGridOption_UI";
10304
10376
 
10305
10377
  // src/components/ColorPicker/ColorList.tsx
10306
10378
  import { useCallback as useCallback11 } from "react";
10307
- import styled35 from "styled-components";
10379
+ import styled36 from "styled-components";
10308
10380
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
10309
- import { jsx as jsx230 } from "react/jsx-runtime";
10310
- var Container3 = styled35(ToggleGroupRoot)`
10381
+ import { jsx as jsx231 } from "react/jsx-runtime";
10382
+ var Container3 = styled36(ToggleGroupRoot)`
10311
10383
  display: grid;
10312
10384
  grid-template-columns: minmax(0, 1fr);
10313
10385
  padding: var(--wui-space-02);
@@ -10324,7 +10396,7 @@ var ColorList = ({ children }) => {
10324
10396
  },
10325
10397
  [onChangeNonDerivedValueAsHsv]
10326
10398
  );
10327
- return /* @__PURE__ */ jsx230(
10399
+ return /* @__PURE__ */ jsx231(
10328
10400
  Container3,
10329
10401
  {
10330
10402
  onValueChange,
@@ -10337,29 +10409,29 @@ var ColorList = ({ children }) => {
10337
10409
  ColorList.displayName = "ColorList_UI";
10338
10410
 
10339
10411
  // src/components/ColorPicker/ColorListGroup.tsx
10340
- import styled36 from "styled-components";
10341
- import { jsx as jsx231, jsxs as jsxs22 } from "react/jsx-runtime";
10342
- var ItemsContainer = styled36.div`
10412
+ import styled37 from "styled-components";
10413
+ import { jsx as jsx232, jsxs as jsxs23 } from "react/jsx-runtime";
10414
+ var Container4 = styled37.div`
10415
+ display: grid;
10416
+ gap: var(--wui-space-01);
10417
+ grid-template-columns: minmax(0, 1fr);
10418
+ `;
10419
+ var ItemsContainer2 = styled37.div`
10343
10420
  display: flex;
10344
10421
  flex-direction: column;
10345
10422
  `;
10423
+ var LabelContainer2 = styled37.div`
10424
+ padding-top: var(--wui-space-01);
10425
+ `;
10346
10426
  var ColorListGroup = ({ label, children }) => {
10347
- return /* @__PURE__ */ jsxs22(
10348
- "div",
10427
+ return /* @__PURE__ */ jsxs23(
10428
+ Container4,
10349
10429
  {
10350
10430
  "aria-label": label,
10351
10431
  role: "group",
10352
10432
  children: [
10353
- /* @__PURE__ */ jsx231(
10354
- Text,
10355
- {
10356
- prominence: "secondary",
10357
- renderAs: "span",
10358
- variant: "label4",
10359
- children: label
10360
- }
10361
- ),
10362
- /* @__PURE__ */ jsx231(ItemsContainer, { children })
10433
+ /* @__PURE__ */ jsx232(LabelContainer2, { children: /* @__PURE__ */ jsx232(Label, { children: label }) }),
10434
+ /* @__PURE__ */ jsx232(ItemsContainer2, { children })
10363
10435
  ]
10364
10436
  }
10365
10437
  );
@@ -10367,14 +10439,14 @@ var ColorListGroup = ({ label, children }) => {
10367
10439
  ColorListGroup.displayName = "ColorListGroup_UI";
10368
10440
 
10369
10441
  // src/components/ColorPicker/ColorListOption.tsx
10370
- import styled37 from "styled-components";
10442
+ import styled38 from "styled-components";
10371
10443
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
10372
10444
  import { formatHex as formatHex4 } from "culori/fn";
10373
10445
 
10374
10446
  // src/components/ColorPicker/ColorNameOrHexCode.tsx
10375
- import { jsx as jsx232, jsxs as jsxs23 } from "react/jsx-runtime";
10447
+ import { jsx as jsx233, jsxs as jsxs24 } from "react/jsx-runtime";
10376
10448
  var ColorNameOrHexCode = ({ name, hexCode }) => {
10377
- return /* @__PURE__ */ jsxs23(
10449
+ return /* @__PURE__ */ jsxs24(
10378
10450
  Box,
10379
10451
  {
10380
10452
  alignItems: "center",
@@ -10382,7 +10454,7 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
10382
10454
  grow: 1,
10383
10455
  justifyContent: "space-between",
10384
10456
  children: [
10385
- /* @__PURE__ */ jsx232(
10457
+ /* @__PURE__ */ jsx233(
10386
10458
  Text,
10387
10459
  {
10388
10460
  renderAs: "span",
@@ -10390,7 +10462,7 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
10390
10462
  children: name ?? hexCode
10391
10463
  }
10392
10464
  ),
10393
- name != null && /* @__PURE__ */ jsx232(
10465
+ name != null && /* @__PURE__ */ jsx233(
10394
10466
  Text,
10395
10467
  {
10396
10468
  prominence: "secondary",
@@ -10405,8 +10477,8 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
10405
10477
  };
10406
10478
 
10407
10479
  // src/components/ColorPicker/ColorListOption.tsx
10408
- import { jsx as jsx233, jsxs as jsxs24 } from "react/jsx-runtime";
10409
- var Container4 = styled37(ToggleGroupItem)`
10480
+ import { jsx as jsx234, jsxs as jsxs25 } from "react/jsx-runtime";
10481
+ var Container5 = styled38(ToggleGroupItem)`
10410
10482
  border: none;
10411
10483
  appearance: none;
10412
10484
  outline: none;
@@ -10433,8 +10505,8 @@ var ColorListOption = ({ value, name }) => {
10433
10505
  const valueAsHex = formatHex4(valueAsHsv);
10434
10506
  const isSelected = valueAsHex === value;
10435
10507
  const derivativeIsSelected = !isSelected && nonDerivedValueAsHex === value;
10436
- return /* @__PURE__ */ jsxs24(
10437
- Container4,
10508
+ return /* @__PURE__ */ jsxs25(
10509
+ Container5,
10438
10510
  {
10439
10511
  "aria-label": value,
10440
10512
  "aria-selected": valueAsHex === value,
@@ -10442,7 +10514,7 @@ var ColorListOption = ({ value, name }) => {
10442
10514
  tabIndex: -1,
10443
10515
  value,
10444
10516
  children: [
10445
- /* @__PURE__ */ jsx233(
10517
+ /* @__PURE__ */ jsx234(
10446
10518
  ColorSwatch,
10447
10519
  {
10448
10520
  derivativeIsSelected,
@@ -10450,7 +10522,7 @@ var ColorListOption = ({ value, name }) => {
10450
10522
  value
10451
10523
  }
10452
10524
  ),
10453
- /* @__PURE__ */ jsx233(
10525
+ /* @__PURE__ */ jsx234(
10454
10526
  ColorNameOrHexCode,
10455
10527
  {
10456
10528
  hexCode: value,
@@ -10465,7 +10537,7 @@ ColorListOption.displayName = "ColorListOption_UI";
10465
10537
 
10466
10538
  // src/components/ColorPicker/ColorPicker.tsx
10467
10539
  import { Root as PopoverRoot } from "@radix-ui/react-popover";
10468
- import { jsx as jsx234 } from "react/jsx-runtime";
10540
+ import { jsx as jsx235 } from "react/jsx-runtime";
10469
10541
  var ColorPicker = ({
10470
10542
  children,
10471
10543
  colorForComparison = DEFAULT_COLOR_FOR_COMPARISON,
@@ -10474,7 +10546,7 @@ var ColorPicker = ({
10474
10546
  onValueChange,
10475
10547
  value
10476
10548
  }) => {
10477
- return /* @__PURE__ */ jsx234(PopoverRoot, { modal: false, children: /* @__PURE__ */ jsx234(
10549
+ return /* @__PURE__ */ jsx235(PopoverRoot, { modal: false, children: /* @__PURE__ */ jsx235(
10478
10550
  ColorPickerProvider,
10479
10551
  {
10480
10552
  colorForComparison,
@@ -10490,9 +10562,9 @@ ColorPicker.displayName = "ColorPicker_UI";
10490
10562
 
10491
10563
  // src/components/ColorPicker/ColorPickerPopoverContent.tsx
10492
10564
  import { Content as PopoverContent, Portal as PopoverPortal } from "@radix-ui/react-popover";
10493
- import styled38 from "styled-components";
10494
- import { jsx as jsx235 } from "react/jsx-runtime";
10495
- var StyledPopoverContent = styled38(PopoverContent)`
10565
+ import styled39 from "styled-components";
10566
+ import { jsx as jsx236 } from "react/jsx-runtime";
10567
+ var StyledPopoverContent = styled39(PopoverContent)`
10496
10568
  background-color: var(--wui-color-bg-surface);
10497
10569
  border-radius: var(--wui-border-radius-02);
10498
10570
  border: 1px solid var(--wui-color-border);
@@ -10507,7 +10579,7 @@ var StyledPopoverContent = styled38(PopoverContent)`
10507
10579
  var ColorPickerPopoverContent = ({
10508
10580
  children
10509
10581
  }) => {
10510
- return /* @__PURE__ */ jsx235(PopoverPortal, { children: /* @__PURE__ */ jsx235(
10582
+ return /* @__PURE__ */ jsx236(PopoverPortal, { children: /* @__PURE__ */ jsx236(
10511
10583
  StyledPopoverContent,
10512
10584
  {
10513
10585
  align: "start",
@@ -10519,40 +10591,40 @@ var ColorPickerPopoverContent = ({
10519
10591
  ColorPickerPopoverContent.displayName = "ColorPickerPopoverContent_UI";
10520
10592
 
10521
10593
  // src/components/ColorPicker/ColorPickerSection.tsx
10522
- import styled39 from "styled-components";
10523
- import { jsx as jsx236 } from "react/jsx-runtime";
10524
- var Container5 = styled39.div`
10594
+ import styled40 from "styled-components";
10595
+ import { jsx as jsx237 } from "react/jsx-runtime";
10596
+ var Container6 = styled40.div`
10525
10597
  padding: var(--wui-space-02);
10526
10598
  `;
10527
10599
  var ColorPickerSection = ({ children }) => {
10528
- return /* @__PURE__ */ jsx236(Container5, { children: /* @__PURE__ */ jsx236(Stack, { children }) });
10600
+ return /* @__PURE__ */ jsx237(Container6, { children: /* @__PURE__ */ jsx237(Stack, { children }) });
10529
10601
  };
10530
10602
  ColorPickerSection.displayName = "ColorPickerSection_UI";
10531
10603
 
10532
10604
  // src/components/ColorPicker/ColorPickerTrigger.tsx
10533
10605
  import { forwardRef as forwardRef13 } from "react";
10534
10606
  import { Trigger as PopoverTrigger } from "@radix-ui/react-popover";
10535
- import styled40 from "styled-components";
10607
+ import styled41 from "styled-components";
10536
10608
 
10537
10609
  // src/components/ColorPicker/ValueSwatch.tsx
10538
- import { jsx as jsx237 } from "react/jsx-runtime";
10610
+ import { jsx as jsx238 } from "react/jsx-runtime";
10539
10611
  var ValueSwatch = () => {
10540
10612
  const { valueAsHex } = useColorPickerState();
10541
- return /* @__PURE__ */ jsx237(ColorSwatch, { value: valueAsHex });
10613
+ return /* @__PURE__ */ jsx238(ColorSwatch, { value: valueAsHex });
10542
10614
  };
10543
10615
  ValueSwatch.displayName = "ValueSwatch_UI";
10544
10616
 
10545
10617
  // src/components/ColorPicker/ValueNameOrHexCode.tsx
10546
- import { jsx as jsx238 } from "react/jsx-runtime";
10618
+ import { jsx as jsx239 } from "react/jsx-runtime";
10547
10619
  var ValueNameOrHexCode = () => {
10548
10620
  const { valueAsHex } = useColorPickerState();
10549
- return /* @__PURE__ */ jsx238(ColorNameOrHexCode, { hexCode: valueAsHex });
10621
+ return /* @__PURE__ */ jsx239(ColorNameOrHexCode, { hexCode: valueAsHex });
10550
10622
  };
10551
10623
  ValueNameOrHexCode.displayName = "ValueNameOrHexCode_UI";
10552
10624
 
10553
10625
  // src/components/ColorPicker/ColorPickerTrigger.tsx
10554
- import { jsx as jsx239, jsxs as jsxs25 } from "react/jsx-runtime";
10555
- var StyledPopoverTrigger = styled40(PopoverTrigger)`
10626
+ import { jsx as jsx240, jsxs as jsxs26 } from "react/jsx-runtime";
10627
+ var StyledPopoverTrigger = styled41(PopoverTrigger)`
10556
10628
  background-color: var(--wui-color-bg-surface);
10557
10629
  border-radius: var(--wui-border-radius-rounded);
10558
10630
  border: 1px solid var(--wui-color-border);
@@ -10563,7 +10635,7 @@ var StyledPopoverTrigger = styled40(PopoverTrigger)`
10563
10635
  background-color: var(--wui-color-bg-surface-hover);
10564
10636
  }
10565
10637
  `;
10566
- var DefaultTriggerContentContainer = styled40.div`
10638
+ var DefaultTriggerContentContainer = styled41.div`
10567
10639
  align-items: center;
10568
10640
  display: flex;
10569
10641
  flex-direction: row;
@@ -10571,19 +10643,19 @@ var DefaultTriggerContentContainer = styled40.div`
10571
10643
  padding-right: var(--wui-space-01);
10572
10644
  `;
10573
10645
  var DefaultTriggerContent = () => {
10574
- return /* @__PURE__ */ jsxs25(DefaultTriggerContentContainer, { children: [
10575
- /* @__PURE__ */ jsx239(ValueSwatch, {}),
10576
- /* @__PURE__ */ jsx239(ValueNameOrHexCode, {})
10646
+ return /* @__PURE__ */ jsxs26(DefaultTriggerContentContainer, { children: [
10647
+ /* @__PURE__ */ jsx240(ValueSwatch, {}),
10648
+ /* @__PURE__ */ jsx240(ValueNameOrHexCode, {})
10577
10649
  ] });
10578
10650
  };
10579
10651
  var ColorPickerTrigger = forwardRef13(
10580
10652
  ({ children, ...props }, forwardedRef) => {
10581
- return /* @__PURE__ */ jsx239(
10653
+ return /* @__PURE__ */ jsx240(
10582
10654
  StyledPopoverTrigger,
10583
10655
  {
10584
10656
  ref: forwardedRef,
10585
10657
  ...props,
10586
- children: children ?? /* @__PURE__ */ jsx239(DefaultTriggerContent, {})
10658
+ children: children ?? /* @__PURE__ */ jsx240(DefaultTriggerContent, {})
10587
10659
  }
10588
10660
  );
10589
10661
  }
@@ -10591,9 +10663,9 @@ var ColorPickerTrigger = forwardRef13(
10591
10663
  ColorPickerTrigger.displayName = "ColorPickerTrigger_UI";
10592
10664
 
10593
10665
  // src/components/ColorPicker/ContrastIndicator.tsx
10594
- import styled41 from "styled-components";
10595
- import { jsx as jsx240, jsxs as jsxs26 } from "react/jsx-runtime";
10596
- var Container6 = styled41.div`
10666
+ import styled42 from "styled-components";
10667
+ import { jsx as jsx241, jsxs as jsxs27 } from "react/jsx-runtime";
10668
+ var Container7 = styled42.div`
10597
10669
  display: flex;
10598
10670
  flex-direction: row;
10599
10671
  justify-content: end;
@@ -10605,8 +10677,8 @@ var floorToTenth = (value) => {
10605
10677
  var ContrastIndicator = () => {
10606
10678
  const { currentContrastRatio, minimumContrastRatio } = useColorPickerState();
10607
10679
  const isContrastSufficient = currentContrastRatio >= minimumContrastRatio;
10608
- const label = /* @__PURE__ */ jsxs26("div", { children: [
10609
- /* @__PURE__ */ jsx240(
10680
+ const label = /* @__PURE__ */ jsxs27("div", { children: [
10681
+ /* @__PURE__ */ jsx241(
10610
10682
  Text,
10611
10683
  {
10612
10684
  renderAs: "span",
@@ -10615,7 +10687,7 @@ var ContrastIndicator = () => {
10615
10687
  }
10616
10688
  ),
10617
10689
  " ",
10618
- /* @__PURE__ */ jsxs26(
10690
+ /* @__PURE__ */ jsxs27(
10619
10691
  Text,
10620
10692
  {
10621
10693
  renderAs: "span",
@@ -10627,19 +10699,19 @@ var ContrastIndicator = () => {
10627
10699
  }
10628
10700
  )
10629
10701
  ] });
10630
- return /* @__PURE__ */ jsx240(Container6, { children: isContrastSufficient ? /* @__PURE__ */ jsx240(
10702
+ return /* @__PURE__ */ jsx241(Container7, { children: isContrastSufficient ? /* @__PURE__ */ jsx241(
10631
10703
  Badge,
10632
10704
  {
10633
10705
  colorScheme: "success",
10634
- icon: /* @__PURE__ */ jsx240(Icon, { type: "checkmark" }),
10706
+ icon: /* @__PURE__ */ jsx241(Icon, { type: "checkmark" }),
10635
10707
  label,
10636
10708
  variant: "outline"
10637
10709
  }
10638
- ) : /* @__PURE__ */ jsx240(
10710
+ ) : /* @__PURE__ */ jsx241(
10639
10711
  Badge,
10640
10712
  {
10641
10713
  colorScheme: "warning",
10642
- icon: /* @__PURE__ */ jsx240(Icon, { type: "error" }),
10714
+ icon: /* @__PURE__ */ jsx241(Icon, { type: "error" }),
10643
10715
  label,
10644
10716
  variant: "outline"
10645
10717
  }
@@ -10651,10 +10723,10 @@ import { useCallback as useCallback12 } from "react";
10651
10723
 
10652
10724
  // src/components/Switch/Switch.tsx
10653
10725
  import { forwardRef as forwardRef14, useId as useId3 } from "react";
10654
- import styled42, { css as css26 } from "styled-components";
10726
+ import styled43, { css as css27 } from "styled-components";
10655
10727
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
10656
- import { jsx as jsx241, jsxs as jsxs27 } from "react/jsx-runtime";
10657
- var sizeSmall2 = css26`
10728
+ import { jsx as jsx242, jsxs as jsxs28 } from "react/jsx-runtime";
10729
+ var sizeSmall2 = css27`
10658
10730
  --wui-size-small-width: 24px;
10659
10731
  --wui-size-small-height: 14px;
10660
10732
 
@@ -10669,7 +10741,7 @@ var sizeSmall2 = css26`
10669
10741
  height: calc(var(--wui-size-small-width) / 2);
10670
10742
  }
10671
10743
  `;
10672
- var sizeMedium2 = css26`
10744
+ var sizeMedium2 = css27`
10673
10745
  --wui-size-medium-width: 32px;
10674
10746
  --wui-size-medium-height: 18px;
10675
10747
 
@@ -10684,7 +10756,7 @@ var sizeMedium2 = css26`
10684
10756
  height: calc(var(--wui-size-medium-width) / 2);
10685
10757
  }
10686
10758
  `;
10687
- var sizeLarge2 = css26`
10759
+ var sizeLarge2 = css27`
10688
10760
  --wui-size-large-width: 40px;
10689
10761
  --wui-size-large-height: 22px;
10690
10762
 
@@ -10704,14 +10776,14 @@ var getSizeCss2 = (size) => {
10704
10776
  if (size === "lg") return sizeLarge2;
10705
10777
  return sizeMedium2;
10706
10778
  };
10707
- var StyledSwitchWrapper = styled42.div`
10779
+ var StyledSwitchWrapper = styled43.div`
10708
10780
  display: flex;
10709
10781
  margin: 0;
10710
10782
 
10711
10783
  /* TODO this solves a problem but potentially causes and a11y issue */
10712
10784
  user-select: none;
10713
10785
  `;
10714
- var StyledSwitchInput = styled42.div`
10786
+ var StyledSwitchInput = styled43.div`
10715
10787
  ${({ $size }) => getSizeCss2($size)}
10716
10788
  line-height: 0;
10717
10789
  margin: 0;
@@ -10739,7 +10811,7 @@ var StyledSwitchInput = styled42.div`
10739
10811
  transition: all 0.2s ease-in-out;
10740
10812
  }
10741
10813
  `;
10742
- var StyledHiddenSwitchInput = styled42.input`
10814
+ var StyledHiddenSwitchInput = styled43.input`
10743
10815
  ${visuallyHiddenStyle}
10744
10816
 
10745
10817
  /* toggles display of faux-input background-color and toggle position */
@@ -10773,8 +10845,8 @@ var Switch = forwardRef14(
10773
10845
  }, ref) => {
10774
10846
  const generatedId = useId3();
10775
10847
  const computedId = isNonEmptyString4(id) ? id : `wistia-ui-switch-${generatedId}`;
10776
- return /* @__PURE__ */ jsxs27(StyledSwitchWrapper, { $disabled: disabled, children: [
10777
- /* @__PURE__ */ jsx241(
10848
+ return /* @__PURE__ */ jsxs28(StyledSwitchWrapper, { $disabled: disabled, children: [
10849
+ /* @__PURE__ */ jsx242(
10778
10850
  StyledHiddenSwitchInput,
10779
10851
  {
10780
10852
  ...props,
@@ -10789,11 +10861,11 @@ var Switch = forwardRef14(
10789
10861
  value
10790
10862
  }
10791
10863
  ),
10792
- /* @__PURE__ */ jsx241(
10864
+ /* @__PURE__ */ jsx242(
10793
10865
  FormControlLabel,
10794
10866
  {
10795
10867
  align,
10796
- controlSlot: /* @__PURE__ */ jsx241(
10868
+ controlSlot: /* @__PURE__ */ jsx242(
10797
10869
  StyledSwitchInput,
10798
10870
  {
10799
10871
  $disabled: disabled,
@@ -10815,7 +10887,7 @@ var Switch = forwardRef14(
10815
10887
  Switch.displayName = "Switch_UI";
10816
10888
 
10817
10889
  // src/components/ColorPicker/ContrastEnforcerSwitch.tsx
10818
- import { jsx as jsx242 } from "react/jsx-runtime";
10890
+ import { jsx as jsx243 } from "react/jsx-runtime";
10819
10891
  var ContrastEnforcerSwitch = () => {
10820
10892
  const { setShouldEnforceMinContrast, shouldEnforceMinContrast, hasAccessibleDerivatives: hasAccessibleDerivatives2 } = useColorPickerState();
10821
10893
  const onChangeContrastLimitedSwitch = useCallback12(
@@ -10831,48 +10903,48 @@ var ContrastEnforcerSwitch = () => {
10831
10903
  if (!hasAccessibleDerivatives2) {
10832
10904
  return null;
10833
10905
  }
10834
- return /* @__PURE__ */ jsx242(
10906
+ return /* @__PURE__ */ jsx243(
10835
10907
  Switch,
10836
10908
  {
10837
10909
  align: "right",
10838
10910
  checked: shouldEnforceMinContrast,
10839
- label: /* @__PURE__ */ jsx242(Text, { variant: "label3", children: "Limit to high-contrast colors" }),
10911
+ label: /* @__PURE__ */ jsx243(Text, { variant: "label3", children: "Limit to high-contrast colors" }),
10840
10912
  onChange: onChangeContrastLimitedSwitch
10841
10913
  }
10842
10914
  );
10843
10915
  };
10844
10916
 
10845
10917
  // src/components/ColorPicker/ContrastPreview.tsx
10846
- import { jsx as jsx243 } from "react/jsx-runtime";
10918
+ import { jsx as jsx244 } from "react/jsx-runtime";
10847
10919
  var ContrastPreview = () => {
10848
10920
  const { valueAsHex, colorForComparison } = useColorPickerState();
10849
- return /* @__PURE__ */ jsx243(
10921
+ return /* @__PURE__ */ jsx244(
10850
10922
  ColorSwatch,
10851
10923
  {
10852
10924
  diameterPx: 36,
10853
10925
  value: valueAsHex,
10854
- children: /* @__PURE__ */ jsx243(Text, { style: { color: colorForComparison }, children: "Aa" })
10926
+ children: /* @__PURE__ */ jsx244(Text, { style: { color: colorForComparison }, children: "Aa" })
10855
10927
  }
10856
10928
  );
10857
10929
  };
10858
10930
 
10859
10931
  // src/components/ColorPicker/ContrastControls.tsx
10860
- import { jsx as jsx244, jsxs as jsxs28 } from "react/jsx-runtime";
10932
+ import { jsx as jsx245, jsxs as jsxs29 } from "react/jsx-runtime";
10861
10933
  var ContrastControls = () => {
10862
- return /* @__PURE__ */ jsxs28(ColorPickerSection, { children: [
10863
- /* @__PURE__ */ jsxs28(
10934
+ return /* @__PURE__ */ jsxs29(ColorPickerSection, { children: [
10935
+ /* @__PURE__ */ jsxs29(
10864
10936
  Box,
10865
10937
  {
10866
10938
  alignItems: "center",
10867
10939
  direction: "row",
10868
10940
  justifyContent: "space-between",
10869
10941
  children: [
10870
- /* @__PURE__ */ jsx244(ContrastPreview, {}),
10871
- /* @__PURE__ */ jsx244(ContrastIndicator, {})
10942
+ /* @__PURE__ */ jsx245(ContrastPreview, {}),
10943
+ /* @__PURE__ */ jsx245(ContrastIndicator, {})
10872
10944
  ]
10873
10945
  }
10874
10946
  ),
10875
- /* @__PURE__ */ jsx244(ContrastEnforcerSwitch, {})
10947
+ /* @__PURE__ */ jsx245(ContrastEnforcerSwitch, {})
10876
10948
  ] });
10877
10949
  };
10878
10950
  ContrastControls.displayName = "ContrastControls_UI";
@@ -10883,12 +10955,12 @@ import { parseHex as parseHex2 } from "culori/fn";
10883
10955
 
10884
10956
  // src/components/Input/Input.tsx
10885
10957
  import { forwardRef as forwardRef15, cloneElement as cloneElement4, useRef as useRef9 } from "react";
10886
- import styled43, { css as css28 } from "styled-components";
10958
+ import styled44, { css as css29 } from "styled-components";
10887
10959
  import { isNil as isNil13, isNotNil as isNotNil18, isRecord as isRecord4 } from "@wistia/type-guards";
10888
10960
 
10889
10961
  // src/css/inputCss.ts
10890
- import { css as css27 } from "styled-components";
10891
- var inputCss = css27`
10962
+ import { css as css28 } from "styled-components";
10963
+ var inputCss = css28`
10892
10964
  /* Colors */
10893
10965
  --wui-input-color-bg: var(--wui-color-bg-surface);
10894
10966
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -10914,8 +10986,8 @@ var inputCss = css27`
10914
10986
  `;
10915
10987
 
10916
10988
  // src/components/Input/Input.tsx
10917
- import { jsx as jsx245, jsxs as jsxs29 } from "react/jsx-runtime";
10918
- var inputStyles = css28`
10989
+ import { jsx as jsx246, jsxs as jsxs30 } from "react/jsx-runtime";
10990
+ var inputStyles = css29`
10919
10991
  ${inputCss}
10920
10992
  input,
10921
10993
  textarea {
@@ -10950,7 +11022,7 @@ var inputStyles = css28`
10950
11022
  }
10951
11023
  }
10952
11024
  `;
10953
- var StyledInputContainer = styled43.div`
11025
+ var StyledInputContainer = styled44.div`
10954
11026
  display: inline-flex;
10955
11027
  position: relative;
10956
11028
  ${inputStyles};
@@ -11031,7 +11103,7 @@ var Input = forwardRef15(
11031
11103
  const ref = isNotNil18(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef;
11032
11104
  let leftIconToDisplay = leftIcon;
11033
11105
  if (isNil13(leftIcon) && type === "search") {
11034
- leftIconToDisplay = /* @__PURE__ */ jsx245(Icon, { type: "search" });
11106
+ leftIconToDisplay = /* @__PURE__ */ jsx246(Icon, { type: "search" });
11035
11107
  }
11036
11108
  if (isNotNil18(leftIconToDisplay)) {
11037
11109
  leftIconToDisplay = cloneElement4(leftIconToDisplay, {
@@ -11056,21 +11128,21 @@ var Input = forwardRef15(
11056
11128
  });
11057
11129
  }
11058
11130
  };
11059
- return /* @__PURE__ */ jsxs29(
11131
+ return /* @__PURE__ */ jsxs30(
11060
11132
  StyledInputContainer,
11061
11133
  {
11062
11134
  $fullWidth: fullWidth,
11063
11135
  $monospace: monospace,
11064
11136
  children: [
11065
11137
  leftIconToDisplay ?? null,
11066
- type === "multiline" ? /* @__PURE__ */ jsx245(
11138
+ type === "multiline" ? /* @__PURE__ */ jsx246(
11067
11139
  "textarea",
11068
11140
  {
11069
11141
  ...props,
11070
11142
  ref,
11071
11143
  onFocus: handleFocus2
11072
11144
  }
11073
- ) : /* @__PURE__ */ jsx245(
11145
+ ) : /* @__PURE__ */ jsx246(
11074
11146
  "input",
11075
11147
  {
11076
11148
  ...props,
@@ -11088,7 +11160,7 @@ var Input = forwardRef15(
11088
11160
  Input.displayName = "Input_UI";
11089
11161
 
11090
11162
  // src/components/ColorPicker/HexColorInput.tsx
11091
- import { jsx as jsx246 } from "react/jsx-runtime";
11163
+ import { jsx as jsx247 } from "react/jsx-runtime";
11092
11164
  var SIX_DIGIT_HEX_CODE_LENGTH = 7;
11093
11165
  var isValidHexChar = (char) => {
11094
11166
  return /^[0-9a-fA-F]$/.test(char);
@@ -11228,7 +11300,7 @@ var HexColorInput = ({ autoFocus = true }) => {
11228
11300
  useEffect11(() => {
11229
11301
  setTextInputValue(valueAsHex);
11230
11302
  }, [valueAsHex]);
11231
- return /* @__PURE__ */ jsx246(
11303
+ return /* @__PURE__ */ jsx247(
11232
11304
  Input,
11233
11305
  {
11234
11306
  ref: inputRef,
@@ -11257,15 +11329,15 @@ import {
11257
11329
  Track as SliderTrack,
11258
11330
  Thumb as SliderThumb
11259
11331
  } from "@radix-ui/react-slider";
11260
- import styled45 from "styled-components";
11332
+ import styled46 from "styled-components";
11261
11333
  import { formatHex as formatHex6 } from "culori/fn";
11262
11334
 
11263
11335
  // src/components/ColorPicker/HSVHueCanvas.tsx
11264
11336
  import { useEffect as useEffect12, useRef as useRef11 } from "react";
11265
- import styled44 from "styled-components";
11337
+ import styled45 from "styled-components";
11266
11338
  import { formatHex as formatHex5 } from "culori/fn";
11267
- import { jsx as jsx247 } from "react/jsx-runtime";
11268
- var Canvas = styled44.canvas`
11339
+ import { jsx as jsx248 } from "react/jsx-runtime";
11340
+ var Canvas = styled45.canvas`
11269
11341
  display: block;
11270
11342
  height: 100%;
11271
11343
  width: 100%;
@@ -11293,7 +11365,7 @@ var HSVHueCanvas = ({ hsv }) => {
11293
11365
  ctx.fillStyle = gradient;
11294
11366
  ctx.fillRect(0, 0, width, height);
11295
11367
  }, [hsv.s, hsv.v]);
11296
- return /* @__PURE__ */ jsx247(
11368
+ return /* @__PURE__ */ jsx248(
11297
11369
  Canvas,
11298
11370
  {
11299
11371
  ref: canvasRef,
@@ -11303,9 +11375,9 @@ var HSVHueCanvas = ({ hsv }) => {
11303
11375
  };
11304
11376
 
11305
11377
  // src/components/ColorPicker/HueSlider.tsx
11306
- import { jsx as jsx248, jsxs as jsxs30 } from "react/jsx-runtime";
11378
+ import { jsx as jsx249, jsxs as jsxs31 } from "react/jsx-runtime";
11307
11379
  var TWENTY_FOUR = 24;
11308
- var Container7 = styled45.div`
11380
+ var Container8 = styled46.div`
11309
11381
  border-radius: var(--wui-border-radius-rounded);
11310
11382
  border: 1px solid var(--wui-color-border);
11311
11383
  height: ${TWENTY_FOUR}px;
@@ -11313,7 +11385,7 @@ var Container7 = styled45.div`
11313
11385
  padding: 0 var(--wui-space-03);
11314
11386
  position: relative;
11315
11387
  `;
11316
- var Root = styled45(SliderRoot)`
11388
+ var Root = styled46(SliderRoot)`
11317
11389
  align-items: center;
11318
11390
  display: flex;
11319
11391
  position: absolute;
@@ -11322,11 +11394,11 @@ var Root = styled45(SliderRoot)`
11322
11394
  width: calc(100% - var(--wui-space-05));
11323
11395
  height: 16px;
11324
11396
  `;
11325
- var Track = styled45(SliderTrack)`
11397
+ var Track = styled46(SliderTrack)`
11326
11398
  width: 100%;
11327
11399
  `;
11328
- var Thumb = styled45(SliderThumb)``;
11329
- var ThumbInner = styled45.div`
11400
+ var Thumb = styled46(SliderThumb)``;
11401
+ var ThumbInner = styled46.div`
11330
11402
  cursor: pointer;
11331
11403
  display: block;
11332
11404
  border-radius: var(--wui-border-radius-rounded);
@@ -11370,8 +11442,8 @@ var HueSlider = () => {
11370
11442
  },
11371
11443
  [nonDerivedValueAsHsv, onChangeNonDerivedValueAsHsv]
11372
11444
  );
11373
- return /* @__PURE__ */ jsxs30(Container7, { style: containerStyle, children: [
11374
- /* @__PURE__ */ jsxs30(
11445
+ return /* @__PURE__ */ jsxs31(Container8, { style: containerStyle, children: [
11446
+ /* @__PURE__ */ jsxs31(
11375
11447
  Root,
11376
11448
  {
11377
11449
  max: THREE_SIXTY,
@@ -11381,23 +11453,23 @@ var HueSlider = () => {
11381
11453
  step: 1,
11382
11454
  value: [nonDerivedValueAsHsv.h ?? 0],
11383
11455
  children: [
11384
- /* @__PURE__ */ jsx248(Track, {}),
11385
- /* @__PURE__ */ jsx248(Thumb, { "aria-label": "Hue slider", children: /* @__PURE__ */ jsx248(ThumbInner, { style: thumbInnerStyle }) })
11456
+ /* @__PURE__ */ jsx249(Track, {}),
11457
+ /* @__PURE__ */ jsx249(Thumb, { "aria-label": "Hue slider", children: /* @__PURE__ */ jsx249(ThumbInner, { style: thumbInnerStyle }) })
11386
11458
  ]
11387
11459
  }
11388
11460
  ),
11389
- /* @__PURE__ */ jsx248(HSVHueCanvas, { hsv: valueAsHsv })
11461
+ /* @__PURE__ */ jsx249(HSVHueCanvas, { hsv: valueAsHsv })
11390
11462
  ] });
11391
11463
  };
11392
11464
  HueSlider.displayName = "HueSlider_UI";
11393
11465
 
11394
11466
  // src/components/ColorPicker/SaturationAndValuePicker.tsx
11395
11467
  import { useCallback as useCallback15, useEffect as useEffect14, useLayoutEffect as useLayoutEffect4, useMemo as useMemo10, useRef as useRef13, useState as useState14 } from "react";
11396
- import styled47 from "styled-components";
11468
+ import styled48 from "styled-components";
11397
11469
 
11398
11470
  // src/components/ColorPicker/HSVSaturationValueCanvas.tsx
11399
11471
  import { useEffect as useEffect13, useRef as useRef12 } from "react";
11400
- import styled46 from "styled-components";
11472
+ import styled47 from "styled-components";
11401
11473
 
11402
11474
  // src/components/ColorPicker/canvas-utils.ts
11403
11475
  var drawSmoothCurve = (context, points) => {
@@ -11426,8 +11498,8 @@ var drawSmoothCurve = (context, points) => {
11426
11498
  };
11427
11499
 
11428
11500
  // src/components/ColorPicker/HSVSaturationValueCanvas.tsx
11429
- import { jsx as jsx249 } from "react/jsx-runtime";
11430
- var Canvas2 = styled46.canvas`
11501
+ import { jsx as jsx250 } from "react/jsx-runtime";
11502
+ var Canvas2 = styled47.canvas`
11431
11503
  display: block;
11432
11504
  width: 100%;
11433
11505
  `;
@@ -11534,7 +11606,7 @@ var HSVSaturationValueCanvas = ({
11534
11606
  colorForComparison,
11535
11607
  opacityForContrastCalculation
11536
11608
  ]);
11537
- return /* @__PURE__ */ jsx249(
11609
+ return /* @__PURE__ */ jsx250(
11538
11610
  Canvas2,
11539
11611
  {
11540
11612
  ref: canvasRef,
@@ -11545,16 +11617,16 @@ var HSVSaturationValueCanvas = ({
11545
11617
  };
11546
11618
 
11547
11619
  // src/components/ColorPicker/SaturationAndValuePicker.tsx
11548
- import { jsx as jsx250, jsxs as jsxs31 } from "react/jsx-runtime";
11620
+ import { jsx as jsx251, jsxs as jsxs32 } from "react/jsx-runtime";
11549
11621
  var SATURATION_NUDGE = 0.02;
11550
11622
  var VALUE_NUDGE = 0.02;
11551
- var Container8 = styled47.div`
11623
+ var Container9 = styled48.div`
11552
11624
  border-radius: var(--wui-border-radius-02);
11553
11625
  box-shadow: 0 0 0 1px var(--wui-color-border);
11554
11626
  overflow: hidden;
11555
11627
  position: relative;
11556
11628
  `;
11557
- var Thumb2 = styled47.button.attrs({ type: "button" })`
11629
+ var Thumb2 = styled48.button.attrs({ type: "button" })`
11558
11630
  appearance: none;
11559
11631
  border-radius: var(--wui-border-radius-rounded);
11560
11632
  border: none;
@@ -11714,14 +11786,14 @@ var SaturationAndValuePicker = ({
11714
11786
  }, [onWindowMouseMove, onWindowMouseUp]);
11715
11787
  return (
11716
11788
  // eslint-disable-next-line styled-components-a11y/no-static-element-interactions
11717
- /* @__PURE__ */ jsxs31(
11718
- Container8,
11789
+ /* @__PURE__ */ jsxs32(
11790
+ Container9,
11719
11791
  {
11720
11792
  ref: containerRef,
11721
11793
  "data-testid": dataTestId,
11722
11794
  onMouseDown: onContainerMouseDown,
11723
11795
  children: [
11724
- /* @__PURE__ */ jsx250(
11796
+ /* @__PURE__ */ jsx251(
11725
11797
  Thumb2,
11726
11798
  {
11727
11799
  ref: thumbRef,
@@ -11733,7 +11805,7 @@ var SaturationAndValuePicker = ({
11733
11805
  tabIndex: 0
11734
11806
  }
11735
11807
  ),
11736
- /* @__PURE__ */ jsx250(
11808
+ /* @__PURE__ */ jsx251(
11737
11809
  HSVSaturationValueCanvas,
11738
11810
  {
11739
11811
  colorForComparison,
@@ -11743,8 +11815,8 @@ var SaturationAndValuePicker = ({
11743
11815
  shouldShowContrastCurve: shouldEnforceMinContrast
11744
11816
  }
11745
11817
  ),
11746
- /* @__PURE__ */ jsx250(ScreenReaderOnly, { id: instructionsId, children: "Move right to increase saturation, left to decrease saturation, up to increase value, and down to decrease value." }),
11747
- /* @__PURE__ */ jsxs31(ScreenReaderOnly, { "aria-live": "polite", children: [
11818
+ /* @__PURE__ */ jsx251(ScreenReaderOnly, { id: instructionsId, children: "Move right to increase saturation, left to decrease saturation, up to increase value, and down to decrease value." }),
11819
+ /* @__PURE__ */ jsxs32(ScreenReaderOnly, { "aria-live": "polite", children: [
11748
11820
  "Current color: ",
11749
11821
  valueAsHex,
11750
11822
  ". Hue: ",
@@ -11775,14 +11847,14 @@ import {
11775
11847
  isValidElement as isValidElement2
11776
11848
  } from "react";
11777
11849
  import { matchSorter } from "match-sorter";
11778
- import styled49 from "styled-components";
11850
+ import styled50 from "styled-components";
11779
11851
 
11780
11852
  // src/components/Tag/Tag.tsx
11781
11853
  import { forwardRef as forwardRef16 } from "react";
11782
- import styled48 from "styled-components";
11854
+ import styled49 from "styled-components";
11783
11855
  import { isNil as isNil14, isNotNil as isNotNil19, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
11784
- import { Fragment as Fragment6, jsx as jsx251, jsxs as jsxs32 } from "react/jsx-runtime";
11785
- var TagLabel = styled48.a`
11856
+ import { Fragment as Fragment6, jsx as jsx252, jsxs as jsxs33 } from "react/jsx-runtime";
11857
+ var TagLabel = styled49.a`
11786
11858
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11787
11859
  font-size: var(--wui-typography-label-4-size);
11788
11860
  font-weight: var(--wui-typography-label-4-weight);
@@ -11817,14 +11889,14 @@ var TagLabel = styled48.a`
11817
11889
  background: var(--wui-color-bg-surface-secondary-active);
11818
11890
  }
11819
11891
  `;
11820
- var TagDivider = styled48.div`
11892
+ var TagDivider = styled49.div`
11821
11893
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11822
11894
  border-left: 1px solid var(--wui-color-border);
11823
11895
  display: flex;
11824
11896
  height: 14px;
11825
11897
  width: 1px;
11826
11898
  `;
11827
- var StyledRemoveButton = styled48.button`
11899
+ var StyledRemoveButton = styled49.button`
11828
11900
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11829
11901
  all: unset;
11830
11902
  cursor: pointer;
@@ -11852,7 +11924,7 @@ var StyledRemoveButton = styled48.button`
11852
11924
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
11853
11925
  }
11854
11926
  `;
11855
- var StyledTag = styled48.div`
11927
+ var StyledTag = styled49.div`
11856
11928
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11857
11929
  align-items: center;
11858
11930
  background-color: var(--wui-color-bg-surface-secondary);
@@ -11873,23 +11945,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
11873
11945
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
11874
11946
  );
11875
11947
  }
11876
- return /* @__PURE__ */ jsxs32(Fragment6, { children: [
11877
- /* @__PURE__ */ jsx251(TagDivider, { $colorScheme: colorScheme }),
11878
- /* @__PURE__ */ jsxs32(
11948
+ return /* @__PURE__ */ jsxs33(Fragment6, { children: [
11949
+ /* @__PURE__ */ jsx252(TagDivider, { $colorScheme: colorScheme }),
11950
+ /* @__PURE__ */ jsxs33(
11879
11951
  StyledRemoveButton,
11880
11952
  {
11881
11953
  $colorScheme: colorScheme,
11882
11954
  onClick: onClickRemove,
11883
11955
  type: "button",
11884
11956
  children: [
11885
- /* @__PURE__ */ jsx251(
11957
+ /* @__PURE__ */ jsx252(
11886
11958
  Icon,
11887
11959
  {
11888
11960
  size: "sm",
11889
11961
  type: "close"
11890
11962
  }
11891
11963
  ),
11892
- /* @__PURE__ */ jsx251(ScreenReaderOnly, { children: onClickRemoveLabel })
11964
+ /* @__PURE__ */ jsx252(ScreenReaderOnly, { children: onClickRemoveLabel })
11893
11965
  ]
11894
11966
  }
11895
11967
  )
@@ -11899,14 +11971,14 @@ var Tag = forwardRef16(
11899
11971
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
11900
11972
  const hasIcon = isNotNil19(icon);
11901
11973
  const labelProps = isNotNil19(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
11902
- return /* @__PURE__ */ jsxs32(
11974
+ return /* @__PURE__ */ jsxs33(
11903
11975
  StyledTag,
11904
11976
  {
11905
11977
  ref,
11906
11978
  $colorScheme: colorScheme,
11907
11979
  ...props,
11908
11980
  children: [
11909
- /* @__PURE__ */ jsxs32(
11981
+ /* @__PURE__ */ jsxs33(
11910
11982
  TagLabel,
11911
11983
  {
11912
11984
  ...labelProps,
@@ -11917,7 +11989,7 @@ var Tag = forwardRef16(
11917
11989
  ]
11918
11990
  }
11919
11991
  ),
11920
- /* @__PURE__ */ jsx251(
11992
+ /* @__PURE__ */ jsx252(
11921
11993
  RemoveButton,
11922
11994
  {
11923
11995
  colorScheme,
@@ -11933,8 +12005,8 @@ var Tag = forwardRef16(
11933
12005
  Tag.displayName = "Tag_UI";
11934
12006
 
11935
12007
  // src/components/Combobox/Combobox.tsx
11936
- import { jsx as jsx252, jsxs as jsxs33 } from "react/jsx-runtime";
11937
- var ComboboxWapper = styled49.div`
12008
+ import { jsx as jsx253, jsxs as jsxs34 } from "react/jsx-runtime";
12009
+ var ComboboxWapper = styled50.div`
11938
12010
  ${inputCss};
11939
12011
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11940
12012
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
@@ -11983,7 +12055,7 @@ var ComboboxWapper = styled49.div`
11983
12055
  }
11984
12056
  }
11985
12057
  `;
11986
- var ComboboxInput = styled49(Ariakit.Combobox)`
12058
+ var ComboboxInput = styled50(Ariakit.Combobox)`
11987
12059
  appearance: none;
11988
12060
  padding: 0;
11989
12061
  width: 100%;
@@ -11998,7 +12070,7 @@ var ComboboxInput = styled49(Ariakit.Combobox)`
11998
12070
  outline-width: 2px;
11999
12071
  }
12000
12072
  `;
12001
- var ComboboxPopover = styled49(Ariakit.Popover)`
12073
+ var ComboboxPopover = styled50(Ariakit.Popover)`
12002
12074
  --wui-combobox-content-border: var(--wui-color-border);
12003
12075
  --wui-combobox-content-bg: var(--wui-color-bg-surface);
12004
12076
  --wui-combobox-content-border-radius: var(--wui-border-radius-02);
@@ -12023,7 +12095,7 @@ var ComboboxPopover = styled49(Ariakit.Popover)`
12023
12095
  --item-opacity: 0.5;
12024
12096
  }
12025
12097
  `;
12026
- var ComboboxItem2 = styled49(Ariakit.ComboboxItem)`
12098
+ var ComboboxItem2 = styled50(Ariakit.ComboboxItem)`
12027
12099
  ${variantStyleMap2.body3};
12028
12100
  display: flex;
12029
12101
  padding: var(--wui-combobox-option-padding);
@@ -12048,12 +12120,12 @@ var ComboboxItem2 = styled49(Ariakit.ComboboxItem)`
12048
12120
  background-color: transparent;
12049
12121
  }
12050
12122
  `;
12051
- var NoResults = styled49.div`
12123
+ var NoResults = styled50.div`
12052
12124
  gap: var(--wui-space-02);
12053
12125
  `;
12054
12126
  var POPOVER_WIDTH_OFFSET = 20;
12055
12127
  var ComboboxOption = ({ value, children }) => {
12056
- return /* @__PURE__ */ jsx252(
12128
+ return /* @__PURE__ */ jsx253(
12057
12129
  ComboboxItem2,
12058
12130
  {
12059
12131
  className: "combobox-item",
@@ -12106,7 +12178,7 @@ var Combobox2 = ({
12106
12178
  const matches = useMemo11(() => {
12107
12179
  return matchSorter(Object.keys(options), searchValue);
12108
12180
  }, [options, searchValue]);
12109
- return /* @__PURE__ */ jsxs33(
12181
+ return /* @__PURE__ */ jsxs34(
12110
12182
  Ariakit.ComboboxProvider,
12111
12183
  {
12112
12184
  selectedValue: value,
@@ -12117,13 +12189,13 @@ var Combobox2 = ({
12117
12189
  });
12118
12190
  },
12119
12191
  children: [
12120
- /* @__PURE__ */ jsxs33(
12192
+ /* @__PURE__ */ jsxs34(
12121
12193
  ComboboxWapper,
12122
12194
  {
12123
12195
  ref: comboboxWrapperRef,
12124
12196
  $fullWidth: fullWidth,
12125
12197
  children: [
12126
- value.map((selectedValue) => /* @__PURE__ */ jsx252(
12198
+ value.map((selectedValue) => /* @__PURE__ */ jsx253(
12127
12199
  Tag,
12128
12200
  {
12129
12201
  href: "https://example.com",
@@ -12133,11 +12205,11 @@ var Combobox2 = ({
12133
12205
  },
12134
12206
  selectedValue
12135
12207
  )),
12136
- /* @__PURE__ */ jsx252(ComboboxInput, { placeholder })
12208
+ /* @__PURE__ */ jsx253(ComboboxInput, { placeholder })
12137
12209
  ]
12138
12210
  }
12139
12211
  ),
12140
- /* @__PURE__ */ jsxs33(
12212
+ /* @__PURE__ */ jsxs34(
12141
12213
  ComboboxPopover,
12142
12214
  {
12143
12215
  "aria-busy": isPending,
@@ -12147,14 +12219,14 @@ var Combobox2 = ({
12147
12219
  width: wrapperWidth
12148
12220
  },
12149
12221
  children: [
12150
- matches.map((match) => /* @__PURE__ */ jsxs33(
12222
+ matches.map((match) => /* @__PURE__ */ jsxs34(
12151
12223
  ComboboxItem2,
12152
12224
  {
12153
12225
  className: "combobox-item",
12154
12226
  focusOnHover: true,
12155
12227
  value: match,
12156
12228
  children: [
12157
- /* @__PURE__ */ jsx252(
12229
+ /* @__PURE__ */ jsx253(
12158
12230
  Icon,
12159
12231
  {
12160
12232
  size: "sm",
@@ -12169,7 +12241,7 @@ var Combobox2 = ({
12169
12241
  },
12170
12242
  match
12171
12243
  )),
12172
- !matches.length && /* @__PURE__ */ jsx252(NoResults, { children: "No results found" })
12244
+ !matches.length && /* @__PURE__ */ jsx253(NoResults, { children: "No results found" })
12173
12245
  ]
12174
12246
  }
12175
12247
  )
@@ -12180,10 +12252,10 @@ var Combobox2 = ({
12180
12252
 
12181
12253
  // src/components/DataCards/DataCard.tsx
12182
12254
  import { useRef as useRef15 } from "react";
12183
- import styled50, { keyframes as keyframes2 } from "styled-components";
12255
+ import styled51, { keyframes as keyframes2 } from "styled-components";
12184
12256
  import { isNotNil as isNotNil20 } from "@wistia/type-guards";
12185
- import { jsx as jsx253, jsxs as jsxs34 } from "react/jsx-runtime";
12186
- var StyledDataCard = styled50.div`
12257
+ import { jsx as jsx254, jsxs as jsxs35 } from "react/jsx-runtime";
12258
+ var StyledDataCard = styled51.div`
12187
12259
  --wui-data-card-text: var(--wui-color-text-button);
12188
12260
  --wui-color-text: var(--wui-data-card-text);
12189
12261
  --wui-data-card-background: var(--wui-color-bg-surface-secondary);
@@ -12265,7 +12337,7 @@ var shimmer = keyframes2`
12265
12337
  background-position: -200% 0;
12266
12338
  }
12267
12339
  `;
12268
- var LoadingBackground = styled50.div`
12340
+ var LoadingBackground = styled51.div`
12269
12341
  background: linear-gradient(
12270
12342
  90deg,
12271
12343
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -12276,32 +12348,32 @@ var LoadingBackground = styled50.div`
12276
12348
  animation: ${shimmer} 1.5s infinite;
12277
12349
  border-radius: var(--wui-border-radius-01);
12278
12350
  `;
12279
- var StyledLoadingLabel = styled50(LoadingBackground)`
12351
+ var StyledLoadingLabel = styled51(LoadingBackground)`
12280
12352
  width: 80px;
12281
12353
  height: var(--wui-typography-heading-6-line-height);
12282
12354
  `;
12283
- var StyledLoadingValue = styled50(LoadingBackground)`
12355
+ var StyledLoadingValue = styled51(LoadingBackground)`
12284
12356
  width: 90%;
12285
12357
  height: var(--wui-typography-heading-3-line-height);
12286
12358
  `;
12287
- var StyledLabel2 = styled50(Heading)`
12359
+ var StyledLabel3 = styled51(Heading)`
12288
12360
  grid-area: label;
12289
12361
  `;
12290
- var StyledValue = styled50(Heading)`
12362
+ var StyledValue = styled51(Heading)`
12291
12363
  grid-area: value;
12292
12364
  `;
12293
- var StyledSlot = styled50.div`
12365
+ var StyledSlot = styled51.div`
12294
12366
  display: flex;
12295
12367
  justify-content: flex-end;
12296
12368
  grid-area: slot;
12297
12369
  align-self: center;
12298
12370
  `;
12299
- var StyledDataCardTrendContainer = styled50.div`
12371
+ var StyledDataCardTrendContainer = styled51.div`
12300
12372
  position: absolute;
12301
12373
  bottom: var(--wui-space-01);
12302
12374
  right: var(--wui-space-01);
12303
12375
  `;
12304
- var StyledSubtitle = styled50(Text)`
12376
+ var StyledSubtitle = styled51(Text)`
12305
12377
  grid-area: subtitle;
12306
12378
  `;
12307
12379
  var DataCardInner = ({
@@ -12313,30 +12385,30 @@ var DataCardInner = ({
12313
12385
  trend,
12314
12386
  subtitle,
12315
12387
  ...props
12316
- }) => /* @__PURE__ */ jsxs34(
12388
+ }) => /* @__PURE__ */ jsxs35(
12317
12389
  StyledDataCard,
12318
12390
  {
12319
12391
  $colorScheme: colorScheme,
12320
12392
  ...props,
12321
12393
  children: [
12322
- /* @__PURE__ */ jsx253(
12323
- StyledLabel2,
12394
+ /* @__PURE__ */ jsx254(
12395
+ StyledLabel3,
12324
12396
  {
12325
12397
  renderAs: "dt",
12326
12398
  variant: "heading6",
12327
- children: isLoading ? /* @__PURE__ */ jsx253(StyledLoadingLabel, {}) : label
12399
+ children: isLoading ? /* @__PURE__ */ jsx254(StyledLoadingLabel, {}) : label
12328
12400
  }
12329
12401
  ),
12330
- /* @__PURE__ */ jsx253(
12402
+ /* @__PURE__ */ jsx254(
12331
12403
  StyledValue,
12332
12404
  {
12333
12405
  renderAs: "dd",
12334
12406
  variant: "heading3",
12335
- children: isLoading ? /* @__PURE__ */ jsx253(StyledLoadingValue, {}) : value
12407
+ children: isLoading ? /* @__PURE__ */ jsx254(StyledLoadingValue, {}) : value
12336
12408
  }
12337
12409
  ),
12338
- isNotNil20(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx253(StyledSlot, { children: upperRightSlot }),
12339
- isNotNil20(subtitle) && !isLoading && /* @__PURE__ */ jsx253(
12410
+ isNotNil20(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx254(StyledSlot, { children: upperRightSlot }),
12411
+ isNotNil20(subtitle) && !isLoading && /* @__PURE__ */ jsx254(
12340
12412
  StyledSubtitle,
12341
12413
  {
12342
12414
  "data-wui-data-card-subtitle": true,
@@ -12344,7 +12416,7 @@ var DataCardInner = ({
12344
12416
  children: subtitle
12345
12417
  }
12346
12418
  ),
12347
- isNotNil20(trend) && !isLoading && /* @__PURE__ */ jsx253(StyledDataCardTrendContainer, { children: trend })
12419
+ isNotNil20(trend) && !isLoading && /* @__PURE__ */ jsx254(StyledDataCardTrendContainer, { children: trend })
12348
12420
  ]
12349
12421
  }
12350
12422
  );
@@ -12352,12 +12424,12 @@ var DataCard = (props) => {
12352
12424
  const ref = useRef15(null);
12353
12425
  if (isNotNil20(props.href) || isNotNil20(props.onClick)) {
12354
12426
  const { "aria-pressed": ariaPressed, ...dataCardProps } = props;
12355
- return /* @__PURE__ */ jsx253(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ jsx253(
12427
+ return /* @__PURE__ */ jsx254(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ jsx254(
12356
12428
  DataCardInner,
12357
12429
  {
12358
12430
  upperRightSlot: props.upperRightSlot,
12359
12431
  ...dataCardProps,
12360
- label: /* @__PURE__ */ jsx253(
12432
+ label: /* @__PURE__ */ jsx254(
12361
12433
  Button,
12362
12434
  {
12363
12435
  ref,
@@ -12374,14 +12446,14 @@ var DataCard = (props) => {
12374
12446
  }
12375
12447
  ) });
12376
12448
  }
12377
- return /* @__PURE__ */ jsx253(DataCardInner, { ...props });
12449
+ return /* @__PURE__ */ jsx254(DataCardInner, { ...props });
12378
12450
  };
12379
12451
  DataCard.displayName = "DataCard_UI";
12380
12452
 
12381
12453
  // src/components/DataCards/DataCards.tsx
12382
- import styled51 from "styled-components";
12383
- import { jsx as jsx254 } from "react/jsx-runtime";
12384
- var StyledDataCards = styled51(Box)`
12454
+ import styled52 from "styled-components";
12455
+ import { jsx as jsx255 } from "react/jsx-runtime";
12456
+ var StyledDataCards = styled52(Box)`
12385
12457
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12386
12458
  margin-top: 0; /* Remove default <dl> style */
12387
12459
  > * {
@@ -12395,7 +12467,7 @@ var DataCards = ({
12395
12467
  colorScheme = "inherit",
12396
12468
  ...props
12397
12469
  }) => {
12398
- return /* @__PURE__ */ jsx254(
12470
+ return /* @__PURE__ */ jsx255(
12399
12471
  StyledDataCards,
12400
12472
  {
12401
12473
  ...props,
@@ -12414,9 +12486,9 @@ var DataCards = ({
12414
12486
  DataCards.displayName = "DataCards_UI";
12415
12487
 
12416
12488
  // src/components/DataCards/DataCardTrend.tsx
12417
- import styled52 from "styled-components";
12418
- import { jsx as jsx255, jsxs as jsxs35 } from "react/jsx-runtime";
12419
- var StyledDataCardTrend = styled52.div`
12489
+ import styled53 from "styled-components";
12490
+ import { jsx as jsx256, jsxs as jsxs36 } from "react/jsx-runtime";
12491
+ var StyledDataCardTrend = styled53.div`
12420
12492
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
12421
12493
  background: var(--wui-color-bg-app);
12422
12494
  border-radius: var(--wui-border-radius-rounded);
@@ -12431,8 +12503,8 @@ var DataCardTrend = ({
12431
12503
  children,
12432
12504
  ...props
12433
12505
  }) => {
12434
- return /* @__PURE__ */ jsxs35(StyledDataCardTrend, { $outlook: outlook, children: [
12435
- /* @__PURE__ */ jsx255(
12506
+ return /* @__PURE__ */ jsxs36(StyledDataCardTrend, { $outlook: outlook, children: [
12507
+ /* @__PURE__ */ jsx256(
12436
12508
  Icon,
12437
12509
  {
12438
12510
  size: "md",
@@ -12440,7 +12512,7 @@ var DataCardTrend = ({
12440
12512
  ...props
12441
12513
  }
12442
12514
  ),
12443
- /* @__PURE__ */ jsx255(
12515
+ /* @__PURE__ */ jsx256(
12444
12516
  Text,
12445
12517
  {
12446
12518
  prominence: "secondary",
@@ -12452,15 +12524,15 @@ var DataCardTrend = ({
12452
12524
  };
12453
12525
 
12454
12526
  // src/components/DataCards/DataCardHoverArrow.tsx
12455
- import styled53 from "styled-components";
12456
- import { jsx as jsx256 } from "react/jsx-runtime";
12457
- var StyledIconContainer = styled53.div`
12527
+ import styled54 from "styled-components";
12528
+ import { jsx as jsx257 } from "react/jsx-runtime";
12529
+ var StyledIconContainer = styled54.div`
12458
12530
  display: flex;
12459
12531
  align-items: center;
12460
12532
  align-self: center;
12461
12533
  height: 0;
12462
12534
  `;
12463
- var DataCardHoverArrow = () => /* @__PURE__ */ jsx256(StyledIconContainer, { children: /* @__PURE__ */ jsx256(
12535
+ var DataCardHoverArrow = () => /* @__PURE__ */ jsx257(StyledIconContainer, { children: /* @__PURE__ */ jsx257(
12464
12536
  Icon,
12465
12537
  {
12466
12538
  "data-wui-data-card-hover-icon": true,
@@ -12470,22 +12542,22 @@ var DataCardHoverArrow = () => /* @__PURE__ */ jsx256(StyledIconContainer, { chi
12470
12542
  DataCardHoverArrow.displayName = "DataCardHoverArrow_UI";
12471
12543
 
12472
12544
  // src/components/Divider/Divider.tsx
12473
- import styled54, { css as css29 } from "styled-components";
12474
- import { jsx as jsx257 } from "react/jsx-runtime";
12475
- var horizontalBorderCss = css29`
12545
+ import styled55, { css as css30 } from "styled-components";
12546
+ import { jsx as jsx258 } from "react/jsx-runtime";
12547
+ var horizontalBorderCss = css30`
12476
12548
  border-top-color: var(--wui-color-border);
12477
12549
  border-top-style: solid;
12478
12550
  border-top-width: 1px;
12479
12551
  clear: both; /* for horizontal dividers, ensure it clears any floats */
12480
12552
  height: 0;
12481
12553
  `;
12482
- var verticalBorderCss = css29`
12554
+ var verticalBorderCss = css30`
12483
12555
  background-color: var(--wui-color-border);
12484
12556
  max-width: 1px;
12485
12557
  min-height: 100%;
12486
12558
  width: 1px;
12487
12559
  `;
12488
- var DividerComponent = styled54.div`
12560
+ var DividerComponent = styled55.div`
12489
12561
  ${({ $orientation }) => {
12490
12562
  switch ($orientation) {
12491
12563
  case "vertical":
@@ -12497,7 +12569,7 @@ var DividerComponent = styled54.div`
12497
12569
  }}
12498
12570
  `;
12499
12571
  var Divider = ({ orientation = "horizontal", ...props }) => {
12500
- return /* @__PURE__ */ jsx257(
12572
+ return /* @__PURE__ */ jsx258(
12501
12573
  DividerComponent,
12502
12574
  {
12503
12575
  $orientation: orientation,
@@ -12510,10 +12582,10 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
12510
12582
  Divider.displayName = "Divider_UI";
12511
12583
 
12512
12584
  // src/components/EditableHeading/EditableHeading.tsx
12513
- import styled55, { css as css30 } from "styled-components";
12585
+ import styled56, { css as css31 } from "styled-components";
12514
12586
  import { useState as useState16, useRef as useRef16 } from "react";
12515
- import { Fragment as Fragment7, jsx as jsx258, jsxs as jsxs36 } from "react/jsx-runtime";
12516
- var StyledInput = styled55(Input)`
12587
+ import { Fragment as Fragment7, jsx as jsx259, jsxs as jsxs37 } from "react/jsx-runtime";
12588
+ var StyledInput = styled56(Input)`
12517
12589
  &:not([rows]) {
12518
12590
  min-height: unset;
12519
12591
  }
@@ -12533,7 +12605,7 @@ var StyledInput = styled55(Input)`
12533
12605
  min-height: ${({ $height }) => `${$height}px`};
12534
12606
  }
12535
12607
  `;
12536
- var editableStyles = css30`
12608
+ var editableStyles = css31`
12537
12609
  &:has(+ :focus-within) {
12538
12610
  background: var(--wui-color-bg-surface-hover);
12539
12611
  }
@@ -12543,7 +12615,7 @@ var editableStyles = css30`
12543
12615
  cursor: pointer;
12544
12616
  }
12545
12617
  `;
12546
- var StyledHeading2 = styled55(Heading)`
12618
+ var StyledHeading2 = styled56(Heading)`
12547
12619
  width: 100%;
12548
12620
  border-radius: var(--wui-border-radius-02);
12549
12621
  padding: var(--wui-space-02);
@@ -12598,7 +12670,7 @@ var EditableHeading = ({
12598
12670
  handleSetEditing(false);
12599
12671
  }
12600
12672
  };
12601
- const HeadingComponent2 = /* @__PURE__ */ jsx258(
12673
+ const HeadingComponent2 = /* @__PURE__ */ jsx259(
12602
12674
  StyledHeading2,
12603
12675
  {
12604
12676
  ref: headingRef,
@@ -12612,7 +12684,7 @@ var EditableHeading = ({
12612
12684
  return HeadingComponent2;
12613
12685
  }
12614
12686
  if (isEditing || __forceEditing) {
12615
- return /* @__PURE__ */ jsx258(
12687
+ return /* @__PURE__ */ jsx259(
12616
12688
  StyledInput,
12617
12689
  {
12618
12690
  $height: headingHeight,
@@ -12631,9 +12703,9 @@ var EditableHeading = ({
12631
12703
  }
12632
12704
  );
12633
12705
  }
12634
- return /* @__PURE__ */ jsxs36(Fragment7, { children: [
12635
- /* @__PURE__ */ jsx258(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
12636
- /* @__PURE__ */ jsx258(ScreenReaderOnly, { children: /* @__PURE__ */ jsx258(
12706
+ return /* @__PURE__ */ jsxs37(Fragment7, { children: [
12707
+ /* @__PURE__ */ jsx259(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
12708
+ /* @__PURE__ */ jsx259(ScreenReaderOnly, { children: /* @__PURE__ */ jsx259(
12637
12709
  "button",
12638
12710
  {
12639
12711
  "aria-label": ariaLabel,
@@ -12683,9 +12755,9 @@ var useFormState = (action, initialData = {}) => {
12683
12755
  // src/components/Form/FormErrorSummary.tsx
12684
12756
  import { useContext as useContext5, useRef as useRef17 } from "react";
12685
12757
  import { isArray as isArray2, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
12686
- import { jsx as jsx259, jsxs as jsxs37 } from "react/jsx-runtime";
12758
+ import { jsx as jsx260, jsxs as jsxs38 } from "react/jsx-runtime";
12687
12759
  var ErrorItem = ({ name, error, formId }) => {
12688
- return /* @__PURE__ */ jsx259("li", { children: /* @__PURE__ */ jsx259(Link, { href: `#${formId}-${name}`, children: error }) }, name);
12760
+ return /* @__PURE__ */ jsx260("li", { children: /* @__PURE__ */ jsx260(Link, { href: `#${formId}-${name}`, children: error }) }, name);
12689
12761
  };
12690
12762
  var FormErrorSummary = ({ description }) => {
12691
12763
  const ref = useRef17(null);
@@ -12694,10 +12766,10 @@ var FormErrorSummary = ({ description }) => {
12694
12766
  if (isValid || !hasSubmitted) {
12695
12767
  return null;
12696
12768
  }
12697
- return /* @__PURE__ */ jsxs37("div", { ref, children: [
12698
- /* @__PURE__ */ jsx259("p", { children: description }),
12699
- /* @__PURE__ */ jsx259("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined9(error)).map(
12700
- ([name, error]) => isArray2(error) ? error.map((err) => /* @__PURE__ */ jsx259(
12769
+ return /* @__PURE__ */ jsxs38("div", { ref, children: [
12770
+ /* @__PURE__ */ jsx260("p", { children: description }),
12771
+ /* @__PURE__ */ jsx260("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined9(error)).map(
12772
+ ([name, error]) => isArray2(error) ? error.map((err) => /* @__PURE__ */ jsx260(
12701
12773
  ErrorItem,
12702
12774
  {
12703
12775
  error: err,
@@ -12705,7 +12777,7 @@ var FormErrorSummary = ({ description }) => {
12705
12777
  name
12706
12778
  },
12707
12779
  err
12708
- )) : /* @__PURE__ */ jsx259(
12780
+ )) : /* @__PURE__ */ jsx260(
12709
12781
  ErrorItem,
12710
12782
  {
12711
12783
  error: error ?? "",
@@ -12722,69 +12794,7 @@ var FormErrorSummary = ({ description }) => {
12722
12794
  import { Children as Children6, cloneElement as cloneElement5, useContext as useContext6 } from "react";
12723
12795
  import styled57 from "styled-components";
12724
12796
  import { isArray as isArray3, isNotNil as isNotNil21, isNotUndefined as isNotUndefined10, isUndefined as isUndefined4 } from "@wistia/type-guards";
12725
-
12726
- // src/components/Label/Label.tsx
12727
- import styled56, { css as css31 } from "styled-components";
12728
- import { jsx as jsx260 } from "react/jsx-runtime";
12729
- var requiredStyle = css31`
12730
- &::after {
12731
- color: var(--wui-color-text-error);
12732
- display: inline;
12733
- padding-left: var(--wui-space-01);
12734
- content: '*';
12735
- }
12736
- `;
12737
- var disabledStyle3 = css31`
12738
- color: var(--wui-color-text-disabled);
12739
- `;
12740
- var StyledLabel3 = styled56.label`
12741
- display: block;
12742
- width: 100%;
12743
- color: var(--wui-color-text);
12744
- font-family: var(--wui-typography-heading-6-family);
12745
- line-height: var(--wui-typography-heading-6-line-height);
12746
- font-size: var(--wui-typography-heading-6-size);
12747
- font-weight: var(--wui-typography-heading-6-weight);
12748
-
12749
- /* if label is wrapping an input this ensures it appears beneath the label with a nice margin */
12750
- > input,
12751
- > textarea,
12752
- > select {
12753
- display: block;
12754
- }
12755
-
12756
- > label {
12757
- font-weight: normal;
12758
- }
12759
-
12760
- ${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
12761
- ${({ $disabled }) => $disabled && disabledStyle3}
12762
- ${({ $required }) => $required && requiredStyle}
12763
- `;
12764
- var Label = ({
12765
- children,
12766
- disabled = false,
12767
- htmlFor,
12768
- required = false,
12769
- screenReaderOnly = false,
12770
- ...props
12771
- }) => {
12772
- return /* @__PURE__ */ jsx260(
12773
- StyledLabel3,
12774
- {
12775
- ...props,
12776
- $disabled: disabled,
12777
- $required: required,
12778
- $screenReaderOnly: screenReaderOnly,
12779
- htmlFor,
12780
- children
12781
- }
12782
- );
12783
- };
12784
- Label.displayName = "Label_UI";
12785
-
12786
- // src/components/FormField/FormField.tsx
12787
- import { Fragment as Fragment8, jsx as jsx261, jsxs as jsxs38 } from "react/jsx-runtime";
12797
+ import { Fragment as Fragment8, jsx as jsx261, jsxs as jsxs39 } from "react/jsx-runtime";
12788
12798
  var StyledFormField = styled57.div`
12789
12799
  --form-field-spacing: var(--wui-space-01);
12790
12800
  --form-field-spacing-inline: var(--wui-space-02);
@@ -12916,7 +12926,7 @@ var FormField = ({
12916
12926
  };
12917
12927
  }
12918
12928
  Children6.only(children);
12919
- return /* @__PURE__ */ jsxs38(
12929
+ return /* @__PURE__ */ jsxs39(
12920
12930
  StyledFormField,
12921
12931
  {
12922
12932
  ...props,
@@ -12925,7 +12935,7 @@ var FormField = ({
12925
12935
  !isIntegratedLabel && /* @__PURE__ */ jsx261(Label, { htmlFor: computedId, children: label }),
12926
12936
  isNotNil21(description) ? /* @__PURE__ */ jsx261(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
12927
12937
  cloneElement5(children, childProps),
12928
- isNotNil21(computedError) ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
12938
+ isNotNil21(computedError) ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
12929
12939
  /* @__PURE__ */ jsx261("div", {}),
12930
12940
  /* @__PURE__ */ jsx261(
12931
12941
  ErrorMessages,
@@ -13110,7 +13120,7 @@ InputClickToCopy.displayName = "InputClickToCopy_UI";
13110
13120
  // src/components/KeyboardShortcut/KeyboardShortcut.tsx
13111
13121
  import styled60 from "styled-components";
13112
13122
  import { isNotNil as isNotNil22 } from "@wistia/type-guards";
13113
- import { jsx as jsx265, jsxs as jsxs39 } from "react/jsx-runtime";
13123
+ import { jsx as jsx265, jsxs as jsxs40 } from "react/jsx-runtime";
13114
13124
  var StyledKeyboardShortcut = styled60.div`
13115
13125
  align-items: center;
13116
13126
  display: flex;
@@ -13197,7 +13207,7 @@ var KeyboardShortcut = ({
13197
13207
  keyboardKeys,
13198
13208
  fullWidth = false,
13199
13209
  ...otherProps
13200
- }) => /* @__PURE__ */ jsxs39(
13210
+ }) => /* @__PURE__ */ jsxs40(
13201
13211
  StyledKeyboardShortcut,
13202
13212
  {
13203
13213
  $fullWidth: fullWidth,
@@ -13236,7 +13246,7 @@ var ListItem = ({ children }) => {
13236
13246
  ListItem.displayName = "ListItem_UI";
13237
13247
 
13238
13248
  // src/components/List/List.tsx
13239
- import { jsx as jsx267, jsxs as jsxs40 } from "react/jsx-runtime";
13249
+ import { jsx as jsx267, jsxs as jsxs41 } from "react/jsx-runtime";
13240
13250
  var spacesStyle = css33`
13241
13251
  overflow: hidden;
13242
13252
  padding-left: 0;
@@ -13339,7 +13349,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
13339
13349
  const nextItem = listItems[i + 1];
13340
13350
  const key = `item-${itemCount += 1}`;
13341
13351
  if (Array.isArray(nextItem)) {
13342
- return /* @__PURE__ */ jsxs40(ListItem, { children: [
13352
+ return /* @__PURE__ */ jsxs41(ListItem, { children: [
13343
13353
  item,
13344
13354
  renderListFromArray(nextItem, variant, otherProps)
13345
13355
  ] }, key);
@@ -13391,7 +13401,7 @@ var MenuContext = createContext7({ compact: false });
13391
13401
  var useMenuContext = () => useContext8(MenuContext);
13392
13402
 
13393
13403
  // src/components/Menu/Menu.tsx
13394
- import { jsx as jsx268, jsxs as jsxs41 } from "react/jsx-runtime";
13404
+ import { jsx as jsx268, jsxs as jsxs42 } from "react/jsx-runtime";
13395
13405
  var open = keyframes3`
13396
13406
  from {
13397
13407
  opacity: 0;
@@ -13504,7 +13514,7 @@ var Menu = forwardRef19(
13504
13514
  onOpenChange: () => null
13505
13515
  };
13506
13516
  }
13507
- return /* @__PURE__ */ jsx268(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs41(
13517
+ return /* @__PURE__ */ jsx268(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs42(
13508
13518
  DropdownMenu,
13509
13519
  {
13510
13520
  modal: false,
@@ -13589,7 +13599,7 @@ import { isNotNil as isNotNil26 } from "@wistia/type-guards";
13589
13599
  import { forwardRef as forwardRef20 } from "react";
13590
13600
  import styled65 from "styled-components";
13591
13601
  import { isNotNil as isNotNil25, isNotUndefined as isNotUndefined12 } from "@wistia/type-guards";
13592
- import { jsx as jsx270, jsxs as jsxs42 } from "react/jsx-runtime";
13602
+ import { jsx as jsx270, jsxs as jsxs43 } from "react/jsx-runtime";
13593
13603
  var StyledButton3 = styled65(Button)`
13594
13604
  ${({ colorScheme }) => getColorScheme(colorScheme)};
13595
13605
 
@@ -13684,7 +13694,7 @@ var MenuItemButton = forwardRef20(({ children, appearance, command, icon, ...pro
13684
13694
  }
13685
13695
  );
13686
13696
  }
13687
- return /* @__PURE__ */ jsxs42(
13697
+ return /* @__PURE__ */ jsxs43(
13688
13698
  StyledButton3,
13689
13699
  {
13690
13700
  ...props,
@@ -13724,7 +13734,7 @@ var MenuItemDescription = ({ children }) => {
13724
13734
  };
13725
13735
 
13726
13736
  // src/components/Menu/SubMenu.tsx
13727
- import { jsx as jsx272, jsxs as jsxs43 } from "react/jsx-runtime";
13737
+ import { jsx as jsx272, jsxs as jsxs44 } from "react/jsx-runtime";
13728
13738
  var SubMenuContent = styled67(DropdownMenuSubContent)`
13729
13739
  ${menuContentCss}
13730
13740
 
@@ -13765,14 +13775,14 @@ var SubMenu = ({
13765
13775
  const { isSmAndUp } = useMq();
13766
13776
  const [isExpanded, setIsExpanded] = useState19(false);
13767
13777
  const { compact } = useMenuContext();
13768
- return isSmAndUp ? /* @__PURE__ */ jsxs43(DropdownMenuSub, { onOpenChange, children: [
13769
- /* @__PURE__ */ jsxs43(SubMenuTrigger, { ...props, children: [
13778
+ return isSmAndUp ? /* @__PURE__ */ jsxs44(DropdownMenuSub, { onOpenChange, children: [
13779
+ /* @__PURE__ */ jsxs44(SubMenuTrigger, { ...props, children: [
13770
13780
  /* @__PURE__ */ jsx272(MenuItemLabel, { children: label }),
13771
13781
  isNotNil26(description) ? /* @__PURE__ */ jsx272(MenuItemDescription, { children: description }) : null
13772
13782
  ] }),
13773
13783
  /* @__PURE__ */ jsx272(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx272(SubMenuContent, { $compact: compact, children }) })
13774
- ] }) : /* @__PURE__ */ jsxs43(DropdownMenuGroup, { children: [
13775
- /* @__PURE__ */ jsxs43(
13784
+ ] }) : /* @__PURE__ */ jsxs44(DropdownMenuGroup, { children: [
13785
+ /* @__PURE__ */ jsxs44(
13776
13786
  SubMenuTrigger,
13777
13787
  {
13778
13788
  ...props,
@@ -13869,9 +13879,9 @@ import {
13869
13879
  DropdownMenuItemIndicator as DropdownMenuItemIndicator2
13870
13880
  } from "@radix-ui/react-dropdown-menu";
13871
13881
  import { isNotNil as isNotNil27 } from "@wistia/type-guards";
13872
- import { jsx as jsx276, jsxs as jsxs44 } from "react/jsx-runtime";
13882
+ import { jsx as jsx276, jsxs as jsxs45 } from "react/jsx-runtime";
13873
13883
  var CheckboxIndicator = ({ checked, ...props }) => {
13874
- return checked ? /* @__PURE__ */ jsxs44(
13884
+ return checked ? /* @__PURE__ */ jsxs45(
13875
13885
  "svg",
13876
13886
  {
13877
13887
  ...props,
@@ -13897,7 +13907,7 @@ var CheckboxIndicator = ({ checked, ...props }) => {
13897
13907
  )
13898
13908
  ]
13899
13909
  }
13900
- ) : /* @__PURE__ */ jsxs44(
13910
+ ) : /* @__PURE__ */ jsxs45(
13901
13911
  "svg",
13902
13912
  {
13903
13913
  ...props,
@@ -13954,11 +13964,11 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem_UI";
13954
13964
  // src/components/Menu/FilterMenu.tsx
13955
13965
  import { Children as Children7, forwardRef as forwardRef22 } from "react";
13956
13966
  import { DropdownMenuItem as DropdownMenuItem3 } from "@radix-ui/react-dropdown-menu";
13957
- import { jsx as jsx277, jsxs as jsxs45 } from "react/jsx-runtime";
13967
+ import { jsx as jsx277, jsxs as jsxs46 } from "react/jsx-runtime";
13958
13968
  var FilterMenuItem = CheckboxMenuItem;
13959
13969
  var FilterMenu = forwardRef22(
13960
13970
  ({ value, onChange, searchValue, onSearchValueChange, children, ...props }, ref) => {
13961
- return /* @__PURE__ */ jsxs45(
13971
+ return /* @__PURE__ */ jsxs46(
13962
13972
  Menu,
13963
13973
  {
13964
13974
  ...props,
@@ -14083,7 +14093,7 @@ var ModalCloseButton = () => {
14083
14093
  };
14084
14094
 
14085
14095
  // src/components/Modal/ModalHeader.tsx
14086
- import { jsx as jsx279, jsxs as jsxs46 } from "react/jsx-runtime";
14096
+ import { jsx as jsx279, jsxs as jsxs47 } from "react/jsx-runtime";
14087
14097
  var Header = styled69.header`
14088
14098
  display: flex;
14089
14099
  order: 1;
@@ -14107,7 +14117,7 @@ var ModalHeader = ({
14107
14117
  hideCloseButton
14108
14118
  }) => {
14109
14119
  const TitleComponent = hideTitle ? /* @__PURE__ */ jsx279(ScreenReaderOnly, { children: /* @__PURE__ */ jsx279(Title, { children: title }) }) : /* @__PURE__ */ jsx279(Title, { children: title });
14110
- return /* @__PURE__ */ jsxs46(Header, { $hideTitle: hideTitle, children: [
14120
+ return /* @__PURE__ */ jsxs47(Header, { $hideTitle: hideTitle, children: [
14111
14121
  TitleComponent,
14112
14122
  hideCloseButton ? null : /* @__PURE__ */ jsx279(ModalCloseButton, {})
14113
14123
  ] });
@@ -14315,7 +14325,7 @@ var ModalOverlay = styled71(DialogOverlay)`
14315
14325
  `;
14316
14326
 
14317
14327
  // src/components/Modal/Modal.tsx
14318
- import { jsx as jsx281, jsxs as jsxs47 } from "react/jsx-runtime";
14328
+ import { jsx as jsx281, jsxs as jsxs48 } from "react/jsx-runtime";
14319
14329
  var DEFAULT_MODAL_WIDTH = "532px";
14320
14330
  var ModalBody = styled72.div`
14321
14331
  flex-direction: column;
@@ -14345,9 +14355,9 @@ var Modal = forwardRef24(
14345
14355
  }
14346
14356
  },
14347
14357
  open: isOpen,
14348
- children: /* @__PURE__ */ jsxs47(DialogPortal, { children: [
14358
+ children: /* @__PURE__ */ jsxs48(DialogPortal, { children: [
14349
14359
  /* @__PURE__ */ jsx281(ModalOverlay, {}),
14350
- /* @__PURE__ */ jsxs47(
14360
+ /* @__PURE__ */ jsxs48(
14351
14361
  ModalContent,
14352
14362
  {
14353
14363
  ref,
@@ -14395,7 +14405,7 @@ var getControlProps = (isOpen, onOpenChange) => {
14395
14405
  // src/components/Popover/PopoverArrow.tsx
14396
14406
  import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
14397
14407
  import styled73, { css as css36, keyframes as keyframes6 } from "styled-components";
14398
- import { jsx as jsx282, jsxs as jsxs48 } from "react/jsx-runtime";
14408
+ import { jsx as jsx282, jsxs as jsxs49 } from "react/jsx-runtime";
14399
14409
  var StyledPath = styled73.path`
14400
14410
  fill: var(--wui-color-border-secondary);
14401
14411
  `;
@@ -14434,7 +14444,7 @@ var StyledCircle = styled73.circle`
14434
14444
  }
14435
14445
  `;
14436
14446
  var PopoverArrow = ({ isAnimated }) => {
14437
- return /* @__PURE__ */ jsx282(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs48(
14447
+ return /* @__PURE__ */ jsx282(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs49(
14438
14448
  "svg",
14439
14449
  {
14440
14450
  fill: "none",
@@ -14473,7 +14483,7 @@ var PopoverArrow = ({ isAnimated }) => {
14473
14483
  PopoverArrow.displayName = "PopoverArrow_UI";
14474
14484
 
14475
14485
  // src/components/Popover/Popover.tsx
14476
- import { jsx as jsx283, jsxs as jsxs49 } from "react/jsx-runtime";
14486
+ import { jsx as jsx283, jsxs as jsxs50 } from "react/jsx-runtime";
14477
14487
  var StyledContent2 = styled74(Content2)`
14478
14488
  z-index: var(--wui-zindex-popover);
14479
14489
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -14513,9 +14523,9 @@ var Popover2 = ({
14513
14523
  "--wui-popover-max-width": maxWidth,
14514
14524
  "--wui-popover-max-height": maxHeight
14515
14525
  };
14516
- return /* @__PURE__ */ jsxs49(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
14526
+ return /* @__PURE__ */ jsxs50(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
14517
14527
  /* @__PURE__ */ jsx283(Trigger2, { asChild: true, children: trigger }),
14518
- /* @__PURE__ */ jsx283(Portal, { children: /* @__PURE__ */ jsxs49(
14528
+ /* @__PURE__ */ jsx283(Portal, { children: /* @__PURE__ */ jsxs50(
14519
14529
  StyledContent2,
14520
14530
  {
14521
14531
  $colorScheme: colorScheme,
@@ -14546,7 +14556,7 @@ Popover2.displayName = "Popover_UI";
14546
14556
  import styled75 from "styled-components";
14547
14557
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
14548
14558
  import { isNotNil as isNotNil31 } from "@wistia/type-guards";
14549
- import { jsx as jsx284, jsxs as jsxs50 } from "react/jsx-runtime";
14559
+ import { jsx as jsx284, jsxs as jsxs51 } from "react/jsx-runtime";
14550
14560
  var ProgressBarWrapper = styled75.div`
14551
14561
  --progress-bar-height: 8px;
14552
14562
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
@@ -14599,7 +14609,7 @@ var ProgressBar = ({
14599
14609
  labelRight,
14600
14610
  ...props
14601
14611
  }) => {
14602
- return /* @__PURE__ */ jsxs50(ProgressBarWrapper, { children: [
14612
+ return /* @__PURE__ */ jsxs51(ProgressBarWrapper, { children: [
14603
14613
  isNotNil31(labelLeft) ? /* @__PURE__ */ jsx284(ProgressBarLabel, { children: labelLeft }) : null,
14604
14614
  /* @__PURE__ */ jsx284(
14605
14615
  StyledProgressBar,
@@ -14625,7 +14635,7 @@ ProgressBar.displayName = "ProgressBar_UI";
14625
14635
  import { forwardRef as forwardRef25, useId as useId4 } from "react";
14626
14636
  import styled76, { css as css38 } from "styled-components";
14627
14637
  import { isNonEmptyString as isNonEmptyString6, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
14628
- import { jsx as jsx285, jsxs as jsxs51 } from "react/jsx-runtime";
14638
+ import { jsx as jsx285, jsxs as jsxs52 } from "react/jsx-runtime";
14629
14639
  var RadioIcon = () => /* @__PURE__ */ jsx285(
14630
14640
  "svg",
14631
14641
  {
@@ -14749,7 +14759,7 @@ var Radio = forwardRef25(
14749
14759
  const radioName = name ?? contextName;
14750
14760
  const handleOnChange = onChange ?? contextOnChange;
14751
14761
  const defaultChecked = isNotUndefined13(value) && isNotUndefined13(contextValue) ? contextValue.includes(value) : void 0;
14752
- return /* @__PURE__ */ jsxs51(
14762
+ return /* @__PURE__ */ jsxs52(
14753
14763
  StyledRadioWrapper,
14754
14764
  {
14755
14765
  $disabled: disabled,
@@ -14803,7 +14813,7 @@ import { forwardRef as forwardRef27 } from "react";
14803
14813
  import { forwardRef as forwardRef26, useId as useId5 } from "react";
14804
14814
  import styled77, { css as css39 } from "styled-components";
14805
14815
  import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
14806
- import { jsx as jsx286, jsxs as jsxs52 } from "react/jsx-runtime";
14816
+ import { jsx as jsx286, jsxs as jsxs53 } from "react/jsx-runtime";
14807
14817
  var checkedStyles = css39`
14808
14818
  --wui-radio-card-border-color: var(--wui-color-focus-ring);
14809
14819
  --wui-color-icon: var(--wui-color-icon-selected);
@@ -14931,7 +14941,7 @@ var RadioCardRoot = forwardRef26(
14931
14941
  const radioName = name ?? contextName;
14932
14942
  const handleOnChange = onChange ?? contextOnChange;
14933
14943
  const defaultChecked = isNotUndefined14(value) && isNotUndefined14(contextValue) ? contextValue.includes(value) : void 0;
14934
- return /* @__PURE__ */ jsxs52(
14944
+ return /* @__PURE__ */ jsxs53(
14935
14945
  StyledCard2,
14936
14946
  {
14937
14947
  $aspectRatio: aspectRatio,
@@ -15015,7 +15025,7 @@ var RadioCardIndicator = styled78.div`
15015
15025
  RadioCardIndicator.displayName = "RadioCardIndicator_UI";
15016
15026
 
15017
15027
  // src/components/RadioCard/RadioCardDefaultLayout.tsx
15018
- import { jsx as jsx287, jsxs as jsxs53 } from "react/jsx-runtime";
15028
+ import { jsx as jsx287, jsxs as jsxs54 } from "react/jsx-runtime";
15019
15029
  var StyledCardContent = styled79.div`
15020
15030
  display: grid;
15021
15031
  grid-auto-flow: column;
@@ -15035,11 +15045,11 @@ var RadioCardDefaultLayout = ({
15035
15045
  description,
15036
15046
  showIndicator = true
15037
15047
  }) => {
15038
- return /* @__PURE__ */ jsxs53(StyledCardContent, { children: [
15048
+ return /* @__PURE__ */ jsxs54(StyledCardContent, { children: [
15039
15049
  showIndicator ? /* @__PURE__ */ jsx287(StyledIndicatorContainer, { $hasIcon: isNotNil32(icon), children: /* @__PURE__ */ jsx287(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
15040
- /* @__PURE__ */ jsxs53(Stack, { gap: "space-02", children: [
15050
+ /* @__PURE__ */ jsxs54(Stack, { gap: "space-02", children: [
15041
15051
  isNotNil32(icon) && /* @__PURE__ */ jsx287(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
15042
- /* @__PURE__ */ jsxs53(
15052
+ /* @__PURE__ */ jsxs54(
15043
15053
  Stack,
15044
15054
  {
15045
15055
  gap: "space-01",
@@ -15202,7 +15212,7 @@ var SelectedItemIndicator = () => {
15202
15212
  };
15203
15213
 
15204
15214
  // src/components/SegmentedControl/SegmentedControl.tsx
15205
- import { jsx as jsx292, jsxs as jsxs54 } from "react/jsx-runtime";
15215
+ import { jsx as jsx292, jsxs as jsxs55 } from "react/jsx-runtime";
15206
15216
  var segmentedControlStyles = css41`
15207
15217
  display: inline-flex;
15208
15218
  background-color: var(--wui-color-bg-surface-secondary);
@@ -15241,7 +15251,7 @@ var SegmentedControl = forwardRef29(
15241
15251
  type: "single",
15242
15252
  value: selectedValue,
15243
15253
  ...props,
15244
- children: /* @__PURE__ */ jsx292(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs54(SelectedItemStyleProvider, { children: [
15254
+ children: /* @__PURE__ */ jsx292(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs55(SelectedItemStyleProvider, { children: [
15245
15255
  children,
15246
15256
  /* @__PURE__ */ jsx292(SelectedItemIndicator, {})
15247
15257
  ] }) })
@@ -15256,7 +15266,7 @@ import { forwardRef as forwardRef30, useEffect as useEffect18, useRef as useRef1
15256
15266
  import styled82, { css as css42 } from "styled-components";
15257
15267
  import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
15258
15268
  import { isNotNil as isNotNil33 } from "@wistia/type-guards";
15259
- import { jsxs as jsxs55 } from "react/jsx-runtime";
15269
+ import { jsxs as jsxs56 } from "react/jsx-runtime";
15260
15270
  var segmentedControlItemStyles = css42`
15261
15271
  all: unset; /* ToggleGroupItem is a button element */
15262
15272
  align-items: center;
@@ -15365,7 +15375,7 @@ var SegmentedControlItem = forwardRef30(
15365
15375
  resizeObserver.disconnect();
15366
15376
  };
15367
15377
  }, [selectedValue, setSelectedItemMeasurements, value]);
15368
- return /* @__PURE__ */ jsxs55(
15378
+ return /* @__PURE__ */ jsxs56(
15369
15379
  StyledSegmentedControlItem,
15370
15380
  {
15371
15381
  ref: combinedRef,
@@ -15398,7 +15408,7 @@ import {
15398
15408
  } from "@radix-ui/react-select";
15399
15409
  import { forwardRef as forwardRef31 } from "react";
15400
15410
  import styled83 from "styled-components";
15401
- import { jsx as jsx293, jsxs as jsxs56 } from "react/jsx-runtime";
15411
+ import { jsx as jsx293, jsxs as jsxs57 } from "react/jsx-runtime";
15402
15412
  var StyledTrigger2 = styled83(Trigger3)`
15403
15413
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
15404
15414
  ${inputCss};
@@ -15471,13 +15481,13 @@ var Select = forwardRef31(
15471
15481
  ...props
15472
15482
  }, forwardedRef) => {
15473
15483
  const responsiveFullWidth = useResponsiveProp(fullWidth);
15474
- return /* @__PURE__ */ jsxs56(
15484
+ return /* @__PURE__ */ jsxs57(
15475
15485
  Root3,
15476
15486
  {
15477
15487
  ...props,
15478
15488
  onValueChange: onChange,
15479
15489
  children: [
15480
- /* @__PURE__ */ jsxs56(
15490
+ /* @__PURE__ */ jsxs57(
15481
15491
  StyledTrigger2,
15482
15492
  {
15483
15493
  ref: forwardedRef,
@@ -15496,7 +15506,7 @@ var Select = forwardRef31(
15496
15506
  ]
15497
15507
  }
15498
15508
  ),
15499
- /* @__PURE__ */ jsx293(Portal2, { children: /* @__PURE__ */ jsxs56(StyledContent3, { position: "popper", children: [
15509
+ /* @__PURE__ */ jsx293(Portal2, { children: /* @__PURE__ */ jsxs57(StyledContent3, { position: "popper", children: [
15500
15510
  /* @__PURE__ */ jsx293(ScrollUpButton, { children: /* @__PURE__ */ jsx293(Icon, { type: "caret-up" }) }),
15501
15511
  /* @__PURE__ */ jsx293(Viewport, { children }),
15502
15512
  /* @__PURE__ */ jsx293(ScrollDownButton, { children: /* @__PURE__ */ jsx293(Icon, { type: "caret-down" }) })
@@ -15513,7 +15523,7 @@ import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
15513
15523
  import { forwardRef as forwardRef32 } from "react";
15514
15524
  import styled84 from "styled-components";
15515
15525
  import { isNotNil as isNotNil34 } from "@wistia/type-guards";
15516
- import { jsx as jsx294, jsxs as jsxs57 } from "react/jsx-runtime";
15526
+ import { jsx as jsx294, jsxs as jsxs58 } from "react/jsx-runtime";
15517
15527
  var StyledItem = styled84(Item)`
15518
15528
  ${variantStyleMap2.body3};
15519
15529
  display: flex;
@@ -15543,7 +15553,7 @@ var StyledIconContainer2 = styled84.span`
15543
15553
  `;
15544
15554
  var SelectOption = forwardRef32(
15545
15555
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
15546
- return /* @__PURE__ */ jsxs57(
15556
+ return /* @__PURE__ */ jsxs58(
15547
15557
  StyledItem,
15548
15558
  {
15549
15559
  ...props,
@@ -15556,7 +15566,7 @@ var SelectOption = forwardRef32(
15556
15566
  type: "checkmark"
15557
15567
  }
15558
15568
  ) }) }),
15559
- isNotNil34(selectedDisplayValue) ? /* @__PURE__ */ jsxs57("div", { children: [
15569
+ isNotNil34(selectedDisplayValue) ? /* @__PURE__ */ jsxs58("div", { children: [
15560
15570
  children,
15561
15571
  /* @__PURE__ */ jsx294("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx294(ItemText, { children: selectedDisplayValue }) })
15562
15572
  ] }) : /* @__PURE__ */ jsx294(ItemText, { children })
@@ -15570,12 +15580,12 @@ SelectOption.displayName = "SelectOption_UI";
15570
15580
  // src/components/Select/SelectOptionGroup.tsx
15571
15581
  import { Group, Label as Label3 } from "@radix-ui/react-select";
15572
15582
  import styled85 from "styled-components";
15573
- import { jsx as jsx295, jsxs as jsxs58 } from "react/jsx-runtime";
15583
+ import { jsx as jsx295, jsxs as jsxs59 } from "react/jsx-runtime";
15574
15584
  var StyledLabel4 = styled85(Label3)`
15575
15585
  padding: var(--wui-select-option-padding);
15576
15586
  `;
15577
15587
  var SelectOptionGroup = ({ children, label, ...props }) => {
15578
- return /* @__PURE__ */ jsxs58(Group, { ...props, children: [
15588
+ return /* @__PURE__ */ jsxs59(Group, { ...props, children: [
15579
15589
  /* @__PURE__ */ jsx295(StyledLabel4, { children: /* @__PURE__ */ jsx295(
15580
15590
  Text,
15581
15591
  {
@@ -15597,7 +15607,7 @@ import {
15597
15607
  } from "@radix-ui/react-slider";
15598
15608
  import styled86 from "styled-components";
15599
15609
  import { isNonEmptyString as isNonEmptyString8 } from "@wistia/type-guards";
15600
- import { jsx as jsx296, jsxs as jsxs59 } from "react/jsx-runtime";
15610
+ import { jsx as jsx296, jsxs as jsxs60 } from "react/jsx-runtime";
15601
15611
  var SliderContainer = styled86.div`
15602
15612
  --wui-slider-track-color: var(--wui-gray-6);
15603
15613
  --wui-slider-track-border-radius: var(--wui-border-radius-rounded);
@@ -15691,7 +15701,7 @@ var Slider = ({
15691
15701
  {
15692
15702
  ...otherProps,
15693
15703
  "data-testid": dataTestId,
15694
- children: /* @__PURE__ */ jsxs59(
15704
+ children: /* @__PURE__ */ jsxs60(
15695
15705
  StyledSliderRoot,
15696
15706
  {
15697
15707
  "aria-label": ariaLabel,
@@ -15922,12 +15932,12 @@ var SelectedTabIndicator = () => {
15922
15932
  };
15923
15933
 
15924
15934
  // src/components/Tabs/TabsList.tsx
15925
- import { jsx as jsx306, jsxs as jsxs60 } from "react/jsx-runtime";
15935
+ import { jsx as jsx306, jsxs as jsxs61 } from "react/jsx-runtime";
15926
15936
  var StyledRadixTabsList = styled94(RadixTabList)`
15927
15937
  ${segmentedControlStyles}
15928
15938
  `;
15929
15939
  var TabsList = ({ children, fullWidth = true, ...props }) => {
15930
- return /* @__PURE__ */ jsxs60(
15940
+ return /* @__PURE__ */ jsxs61(
15931
15941
  StyledRadixTabsList,
15932
15942
  {
15933
15943
  $fullWidth: fullWidth,
@@ -15957,7 +15967,7 @@ var StyledRadixTabsTrigger = styled95(RadixTabsTrigger)`
15957
15967
  `;
15958
15968
 
15959
15969
  // src/components/Tabs/TabsTrigger.tsx
15960
- import { jsxs as jsxs61 } from "react/jsx-runtime";
15970
+ import { jsxs as jsxs62 } from "react/jsx-runtime";
15961
15971
  var TabsTrigger = forwardRef33(
15962
15972
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
15963
15973
  const selectedValue = useTabsValue();
@@ -15989,7 +15999,7 @@ var TabsTrigger = forwardRef33(
15989
15999
  resizeObserver.disconnect();
15990
16000
  };
15991
16001
  }, [selectedValue, setSelectedItemMeasurements, value]);
15992
- return /* @__PURE__ */ jsxs61(
16002
+ return /* @__PURE__ */ jsxs62(
15993
16003
  StyledRadixTabsTrigger,
15994
16004
  {
15995
16005
  ...otherProps,
@@ -16011,7 +16021,7 @@ TabsTrigger.displayName = "TabsTrigger_UI";
16011
16021
  // src/components/Thumbnail/ThumbnailBadge.tsx
16012
16022
  import styled96 from "styled-components";
16013
16023
  import { isNotNil as isNotNil37 } from "@wistia/type-guards";
16014
- import { jsx as jsx307, jsxs as jsxs62 } from "react/jsx-runtime";
16024
+ import { jsx as jsx307, jsxs as jsxs63 } from "react/jsx-runtime";
16015
16025
  var StyledThumbnailBadge = styled96.div`
16016
16026
  align-items: center;
16017
16027
  background-color: rgb(0 0 0 / 50%);
@@ -16037,7 +16047,7 @@ var StyledThumbnailBadge = styled96.div`
16037
16047
  }
16038
16048
  `;
16039
16049
  var ThumbnailBadge = ({ icon, label, ...props }) => {
16040
- return /* @__PURE__ */ jsxs62(StyledThumbnailBadge, { ...props, children: [
16050
+ return /* @__PURE__ */ jsxs63(StyledThumbnailBadge, { ...props, children: [
16041
16051
  isNotNil37(icon) && icon,
16042
16052
  /* @__PURE__ */ jsx307("span", { children: label })
16043
16053
  ] });
@@ -16184,7 +16194,7 @@ var getBackgroundGradient = (gradientName = void 0) => {
16184
16194
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
16185
16195
  import styled97 from "styled-components";
16186
16196
  import { isNotNil as isNotNil39 } from "@wistia/type-guards";
16187
- import { jsx as jsx308, jsxs as jsxs63 } from "react/jsx-runtime";
16197
+ import { jsx as jsx308, jsxs as jsxs64 } from "react/jsx-runtime";
16188
16198
  var ScrubLine = styled97.div`
16189
16199
  position: absolute;
16190
16200
  top: 0;
@@ -16288,7 +16298,7 @@ var ThumbnailStoryboardViewer = ({
16288
16298
  backgroundPosition,
16289
16299
  backgroundSize
16290
16300
  };
16291
- return /* @__PURE__ */ jsxs63(
16301
+ return /* @__PURE__ */ jsxs64(
16292
16302
  "div",
16293
16303
  {
16294
16304
  ...props,
@@ -16309,7 +16319,7 @@ var ThumbnailStoryboardViewer = ({
16309
16319
  };
16310
16320
 
16311
16321
  // src/components/Thumbnail/Thumbnail.tsx
16312
- import { jsx as jsx309, jsxs as jsxs64 } from "react/jsx-runtime";
16322
+ import { jsx as jsx309, jsxs as jsxs65 } from "react/jsx-runtime";
16313
16323
  var WideThumbnailImage = styled98.img`
16314
16324
  height: 100%;
16315
16325
  object-fit: cover;
@@ -16464,7 +16474,7 @@ var Thumbnail = forwardRef34(
16464
16474
  } else {
16465
16475
  thumbnailContent = null;
16466
16476
  }
16467
- return /* @__PURE__ */ jsxs64(
16477
+ return /* @__PURE__ */ jsxs65(
16468
16478
  StyledThumbnail,
16469
16479
  {
16470
16480
  ref,
@@ -16597,7 +16607,7 @@ var ThumbnailCollage = ({
16597
16607
  // src/components/WistiaLogo/WistiaLogo.tsx
16598
16608
  import styled100, { css as css46 } from "styled-components";
16599
16609
  import { isNotNil as isNotNil41 } from "@wistia/type-guards";
16600
- import { jsx as jsx311, jsxs as jsxs65 } from "react/jsx-runtime";
16610
+ import { jsx as jsx311, jsxs as jsxs66 } from "react/jsx-runtime";
16601
16611
  var renderBrandmark = (brandmarkColor, iconOnly) => {
16602
16612
  if (iconOnly) {
16603
16613
  return /* @__PURE__ */ jsx311(
@@ -16695,7 +16705,7 @@ var WistiaLogo = ({
16695
16705
  };
16696
16706
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
16697
16707
  const logotypeColor = VARIANT_COLORS[variant].logotype;
16698
- const Logo = /* @__PURE__ */ jsxs65(
16708
+ const Logo = /* @__PURE__ */ jsxs66(
16699
16709
  WistiaLogoComponent,
16700
16710
  {
16701
16711
  $hoverColor: hoverColor,