@wistia/ui 0.6.24-beta.d2f6c364.20c3ba5 → 0.6.25

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.24-beta.d2f6c364.20c3ba5
3
+ * @license @wistia/ui v0.6.25
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -98,6 +98,7 @@ __export(index_exports, {
98
98
  SelectOptionGroup: () => SelectOptionGroup,
99
99
  Stack: () => Stack,
100
100
  SubMenu: () => SubMenu,
101
+ Switch: () => Switch,
101
102
  Tab: () => Tab,
102
103
  Table: () => Table,
103
104
  TableBody: () => TableBody,
@@ -1237,7 +1238,6 @@ var colorAliasTokens = import_styled_components4.css`
1237
1238
  /* --- Misc --- */
1238
1239
  --wui-color-bg-fill-white: #ffffff;
1239
1240
  --wui-color-focus-color: var(--wui-blue-9);
1240
- --wui-color-invalid-indicator: var(--wui-error-9);
1241
1241
  --wui-color-notification-pill-color: var(--wui-pink-9);
1242
1242
  --wui-color-backdrop: var(--wui-gray-alpha-9);
1243
1243
  --wui-color-segmented-control-checked-background: var(--wui-bg-app);
@@ -1249,7 +1249,7 @@ var colorAliasTokens = import_styled_components4.css`
1249
1249
 
1250
1250
  /* Disabled */
1251
1251
  --wui-color-bg-surface-disabled: var(--wui-gray-3);
1252
- --wui-color-border-disabled: var(--wui-gray-4);
1252
+ --wui-color-bg-border-disabled: var(--wui-gray-4);
1253
1253
  --wui-color-icon-disabled: var(--wui-gray-8);
1254
1254
  --wui-color-text-disabled: var(--wui-gray-10);
1255
1255
  --wui-color-focus-ring-disabled: var(--wui-gray-6);
@@ -7672,7 +7672,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7672
7672
  )
7673
7673
  }
7674
7674
  );
7675
- var inputSizeSmall = import_styled_components34.css`
7675
+ var sizeSmall = import_styled_components34.css`
7676
7676
  width: 14px;
7677
7677
  height: 14px;
7678
7678
  min-width: 14px;
@@ -7683,7 +7683,7 @@ var inputSizeSmall = import_styled_components34.css`
7683
7683
  height: 7px;
7684
7684
  }
7685
7685
  `;
7686
- var inputSizeMedium = import_styled_components34.css`
7686
+ var sizeMedium = import_styled_components34.css`
7687
7687
  width: 16px;
7688
7688
  height: 16px;
7689
7689
  min-width: 16px;
@@ -7694,7 +7694,7 @@ var inputSizeMedium = import_styled_components34.css`
7694
7694
  height: 9px;
7695
7695
  }
7696
7696
  `;
7697
- var inputSizeLarge = import_styled_components34.css`
7697
+ var sizeLarge = import_styled_components34.css`
7698
7698
  width: 20px;
7699
7699
  height: 20px;
7700
7700
  min-width: 20px;
@@ -7706,9 +7706,9 @@ var inputSizeLarge = import_styled_components34.css`
7706
7706
  }
7707
7707
  `;
7708
7708
  var getSizeCss = (size) => {
7709
- if (size === "sm") return inputSizeSmall;
7710
- if (size === "lg") return inputSizeLarge;
7711
- return inputSizeMedium;
7709
+ if (size === "sm") return sizeSmall;
7710
+ if (size === "lg") return sizeLarge;
7711
+ return sizeMedium;
7712
7712
  };
7713
7713
  var StyledCheckboxWrapper = import_styled_components34.default.div`
7714
7714
  display: flex;
@@ -7727,7 +7727,7 @@ var StyledCheckboxInput = import_styled_components34.default.div`
7727
7727
  align-self: flex-start;
7728
7728
  border-width: 1px;
7729
7729
  border-style: solid;
7730
- border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-border-disabled)" : "var(--wui-color-border)"};
7730
+ border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-border)"};
7731
7731
  background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface)"};
7732
7732
 
7733
7733
  /* checkmark icon */
@@ -8548,35 +8548,26 @@ var import_react23 = require("react");
8548
8548
  var import_styled_components44 = __toESM(require("styled-components"));
8549
8549
  var import_type_guards26 = require("@wistia/type-guards");
8550
8550
  var import_jsx_runtime213 = require("react/jsx-runtime");
8551
- var inputCssVars = import_styled_components44.css`
8551
+ var inputStyles = import_styled_components44.css`
8552
8552
  --wui-input-color-bg: var(--wui-color-bg-surface);
8553
8553
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
8554
- --wui-input-color-border: var(--wui-color-border-secondary);
8555
- --wui-input-color-border-focus: var(--wui-color-focus-ring);
8556
- --wui-input-color-border-error: var(--wui-color-invalid-indicator);
8554
+ --wui-input-color-border: var(--wui-color-border);
8555
+ --wui-input-color-border-focus: var(--wui-color-border-active);
8556
+ --wui-input-color-border-error: var(--wui-color-border-error);
8557
8557
  --wui-input-color-border-disabled: var(--wui-color-border-disabled);
8558
- --wui-input-border-radius: var(--wui-border-radius-03);
8558
+ --wui-input-border-radius: var(--wui-border-radius-rounded);
8559
8559
  --wui-input-multiline-border-radius: var(--wui-border-radius-02);
8560
8560
  --wui-input-vertical-padding: var(--wui-space-02);
8561
8561
  --wui-input-horizontal-padding: var(--wui-space-03);
8562
8562
  --wui-input-placeholder: var(--wui-gray-10);
8563
- --wui-input-font-size: var(--wui-typography-body-3-size);
8564
- --wui-input-line-height: 16px;
8565
- `;
8566
- var inputStyles = import_styled_components44.css`
8567
- ${inputCssVars}
8563
+ --wui-input-color-text-error: var(--wui-color-text-error);
8564
+
8568
8565
  input,
8569
8566
  textarea {
8570
8567
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
8571
8568
  background-color: var(--wui-input-color-bg);
8572
- border: none;
8573
- outline: 1px solid var(--wui-input-color-border);
8574
- outline-offset: -1px;
8569
+ border: 1px solid var(--wui-input-color-border);
8575
8570
  border-radius: var(--wui-input-border-radius);
8576
- font-size: var(--wui-input-font-size);
8577
- line-height: var(--wui-input-line-height);
8578
- font-weight: var(--wui-typography-weight-body);
8579
- color: var(--wui-color-text-primary);
8580
8571
 
8581
8572
  &::placeholder {
8582
8573
  color: var(--wui-input-placeholder);
@@ -8584,16 +8575,16 @@ var inputStyles = import_styled_components44.css`
8584
8575
  }
8585
8576
 
8586
8577
  &:focus {
8587
- outline: 2px solid var(--wui-input-color-border-focus);
8588
- outline-offset: -2px;
8578
+ border-color: var(--wui-input-color-border-focus);
8589
8579
  }
8590
8580
 
8591
8581
  &[aria-invalid='true'] {
8592
- outline-color: var(--wui-input-color-border-error);
8582
+ border-color: var(--wui-input-color-border-error);
8583
+ color: var(--wui-input-color-text-error);
8593
8584
  }
8594
8585
 
8595
8586
  &:disabled {
8596
- outline-color: var(--wui-color-border-disabled);
8587
+ border-color: var(--wui-color-bg-surface-disabled);
8597
8588
  background-color: var(--wui-color-bg-surface-disabled);
8598
8589
  }
8599
8590
  }
@@ -8612,29 +8603,6 @@ var StyledInputContainer = import_styled_components44.default.div`
8612
8603
 
8613
8604
  textarea {
8614
8605
  border-radius: var(--wui-input-multiline-border-radius);
8615
-
8616
- --wui-input-line-height: var(--wui-typography-body-3-line-height);
8617
- }
8618
-
8619
- [type='search'] {
8620
- &::-webkit-search-cancel-button {
8621
- appearance: none;
8622
- height: 16px;
8623
- width: 16px;
8624
- margin-right: -4px;
8625
-
8626
- /* css vars don't work in data URLs, so the stroke color value is hardcoded. if we support dark mode, we'll need to swap the background image based on the users preferred color scheme */
8627
- background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='%2364646a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
8628
- background-position: center;
8629
- background-repeat: no-repeat;
8630
- cursor: pointer;
8631
- background-color: var(--wui-color-bg-surface-secondary);
8632
- border-radius: var(--wui-border-radius-rounded);
8633
-
8634
- &:hover {
8635
- background-color: var(--wui-color-bg-surface-secondary-hover);
8636
- }
8637
- }
8638
8606
  }
8639
8607
 
8640
8608
  .wui-input-left-icon {
@@ -10424,7 +10392,7 @@ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10424
10392
  )
10425
10393
  }
10426
10394
  );
10427
- var inputSizeSmall2 = import_styled_components65.css`
10395
+ var sizeSmall2 = import_styled_components65.css`
10428
10396
  width: 14px;
10429
10397
  height: 14px;
10430
10398
  min-width: 14px;
@@ -10435,7 +10403,7 @@ var inputSizeSmall2 = import_styled_components65.css`
10435
10403
  height: 7px;
10436
10404
  }
10437
10405
  `;
10438
- var inputSizeMedium2 = import_styled_components65.css`
10406
+ var sizeMedium2 = import_styled_components65.css`
10439
10407
  width: 16px;
10440
10408
  height: 16px;
10441
10409
  min-width: 16px;
@@ -10446,7 +10414,7 @@ var inputSizeMedium2 = import_styled_components65.css`
10446
10414
  height: 8px;
10447
10415
  }
10448
10416
  `;
10449
- var inputSizeLarge2 = import_styled_components65.css`
10417
+ var sizeLarge2 = import_styled_components65.css`
10450
10418
  width: 20px;
10451
10419
  height: 20px;
10452
10420
  min-width: 20px;
@@ -10458,9 +10426,9 @@ var inputSizeLarge2 = import_styled_components65.css`
10458
10426
  }
10459
10427
  `;
10460
10428
  var getSizeCss2 = (size) => {
10461
- if (size === "sm") return inputSizeSmall2;
10462
- if (size === "lg") return inputSizeLarge2;
10463
- return inputSizeMedium2;
10429
+ if (size === "sm") return sizeSmall2;
10430
+ if (size === "lg") return sizeLarge2;
10431
+ return sizeMedium2;
10464
10432
  };
10465
10433
  var StyledRadioWrapper = import_styled_components65.default.div`
10466
10434
  display: flex;
@@ -10479,7 +10447,7 @@ var StyledRadioInput = import_styled_components65.default.div`
10479
10447
  align-self: flex-start;
10480
10448
  border-width: 1px;
10481
10449
  border-style: solid;
10482
- border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-border-disabled)" : "var(--wui-color-border)"};
10450
+ border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-border)"};
10483
10451
  background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface)"};
10484
10452
 
10485
10453
  /* radio button circle icon */
@@ -10496,7 +10464,7 @@ var StyledHiddenRadioInput = import_styled_components65.default.input`
10496
10464
 
10497
10465
  /* toggles display of faux-input border-color */
10498
10466
  &:checked + label [data-wui-faux-input='true'] {
10499
- border-color: ${({ disabled }) => disabled ? "var(--wui-color-border-disabled)" : "var(--wui-color-bg-fill)"};
10467
+ border-color: ${({ disabled }) => disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-bg-fill)"};
10500
10468
  }
10501
10469
 
10502
10470
  /* toggles display of RadioIcon */
@@ -10856,13 +10824,23 @@ var import_styled_components69 = __toESM(require("styled-components"));
10856
10824
  var import_jsx_runtime246 = require("react/jsx-runtime");
10857
10825
  var StyledTrigger = (0, import_styled_components69.default)(import_react_select.Trigger)`
10858
10826
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10859
- ${inputCssVars};
10860
- padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
10861
- background-color: var(--wui-input-color-bg);
10862
- border: none;
10863
- outline: 1px solid var(--wui-input-color-border);
10864
- outline-offset: -2px;
10865
- border-radius: var(--wui-input-border-radius);
10827
+ --wui-select-color-bg: var(--wui-color-bg-surface);
10828
+ --wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
10829
+ --wui-select-color-border: var(--wui-color-border);
10830
+ --wui-select-color-border-focus: var(--wui-color-border-active);
10831
+ --wui-select-color-border-error: var(--wui-color-border-error);
10832
+ --wui-select-color-border-disabled: var(--wui-color-border-disabled);
10833
+ --wui-select-border-radius: var(--wui-border-radius-rounded);
10834
+ --wui-select-multiline-border-radius: var(--wui-border-radius-02);
10835
+ --wui-select-vertical-padding: var(--wui-space-02);
10836
+ --wui-select-horizontal-padding: var(--wui-space-03);
10837
+ --wui-select-placeholder: var(--wui-gray-10);
10838
+ --wui-select-color-text-error: var(--wui-color-text-error);
10839
+
10840
+ padding: var(--wui-select-vertical-padding) var(--wui-select-horizontal-padding);
10841
+ background-color: var(--wui-select-color-bg);
10842
+ border: 1px solid var(--wui-select-color-border);
10843
+ border-radius: var(--wui-select-border-radius);
10866
10844
  min-width: 200px;
10867
10845
  text-align: left;
10868
10846
  display: inline-flex;
@@ -10870,9 +10848,6 @@ var StyledTrigger = (0, import_styled_components69.default)(import_react_select.
10870
10848
  justify-content: space-between;
10871
10849
  max-width: 100%;
10872
10850
  width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
10873
- color: var(--wui-input-color-text);
10874
- font-size: var(--wui-input-font-size);
10875
- line-height: var(--wui-input-line-height);
10876
10851
 
10877
10852
  > span {
10878
10853
  white-space: nowrap;
@@ -10886,17 +10861,14 @@ var StyledTrigger = (0, import_styled_components69.default)(import_react_select.
10886
10861
  }
10887
10862
 
10888
10863
  &[aria-invalid='true'] {
10889
- outline: 2px solid var(--wui-input-color-border-error);
10864
+ outline: 2px solid var(--wui-select-color-border-error);
10865
+ color: var(--wui-select-color-text-error);
10890
10866
  }
10891
10867
 
10892
10868
  &:disabled {
10893
- outline-color: var(--wui-color-border-disabled);
10869
+ border-color: var(--wui-color-bg-surface-disabled);
10894
10870
  background-color: var(--wui-color-bg-surface-disabled);
10895
10871
  }
10896
-
10897
- [data-placeholder] {
10898
- color: var(--wui-input-placeholder);
10899
- }
10900
10872
  `;
10901
10873
  var StyledContent3 = (0, import_styled_components69.default)(import_react_select.Content)`
10902
10874
  --wui-select-content-border: var(--wui-color-border);
@@ -10940,13 +10912,7 @@ var Select = (0, import_react49.forwardRef)(
10940
10912
  $fullWidth: responsiveFullWidth,
10941
10913
  ...props,
10942
10914
  children: [
10943
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
10944
- import_react_select.Value,
10945
- {
10946
- "data-placeholder": placeholder,
10947
- placeholder
10948
- }
10949
- ),
10915
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_select.Value, { placeholder }),
10950
10916
  /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
10951
10917
  Icon,
10952
10918
  {
@@ -10982,7 +10948,6 @@ var StyledItem = (0, import_styled_components70.default)(import_react_select2.It
10982
10948
  font-size: var(--font-size);
10983
10949
  font-weight: var(--font-weight);
10984
10950
  border-radius: var(--wui-border-radius-01);
10985
- cursor: pointer;
10986
10951
 
10987
10952
  &:hover,
10988
10953
  &:focus-visible {
@@ -11045,20 +11010,183 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11045
11010
  ] });
11046
11011
  };
11047
11012
 
11048
- // src/components/Table/Table.tsx
11013
+ // src/components/Switch/Switch.tsx
11014
+ var import_react51 = require("react");
11049
11015
  var import_styled_components72 = __toESM(require("styled-components"));
11016
+ var import_type_guards42 = require("@wistia/type-guards");
11050
11017
  var import_jsx_runtime249 = require("react/jsx-runtime");
11051
- var StyledTable = import_styled_components72.default.table`
11018
+ var sizeSmall3 = import_styled_components72.css`
11019
+ --wui-size-small-width: 24px;
11020
+ --wui-size-small-height: 14px;
11021
+
11022
+ width: var(--wui-size-small-width);
11023
+ height: var(--wui-size-small-height);
11024
+ min-width: var(--wui-size-small-width);
11025
+ min-height: var(--wui-size-small-height);
11026
+ border-radius: calc(var(--wui-size-small-height) / 2);
11027
+
11028
+ &::after {
11029
+ width: calc(var(--wui-size-small-width) / 2);
11030
+ height: calc(var(--wui-size-small-width) / 2);
11031
+ }
11032
+ `;
11033
+ var sizeMedium3 = import_styled_components72.css`
11034
+ --wui-size-medium-width: 32px;
11035
+ --wui-size-medium-height: 18px;
11036
+
11037
+ width: var(--wui-size-medium-width);
11038
+ height: var(--wui-size-medium-height);
11039
+ min-width: var(--wui-size-medium-width);
11040
+ min-height: var(--wui-size-medium-height);
11041
+ border-radius: calc(var(--wui-size-medium-height) / 2);
11042
+
11043
+ &::after {
11044
+ width: calc(var(--wui-size-medium-width) / 2);
11045
+ height: calc(var(--wui-size-medium-width) / 2);
11046
+ }
11047
+ `;
11048
+ var sizeLarge3 = import_styled_components72.css`
11049
+ --wui-size-large-width: 40px;
11050
+ --wui-size-large-height: 22px;
11051
+
11052
+ width: var(--wui-size-large-width);
11053
+ height: var(--wui-size-large-height);
11054
+ min-width: var(--wui-size-large-width);
11055
+ min-height: var(--wui-size-large-height);
11056
+ border-radius: calc(var(--wui-size-large-height) / 2);
11057
+
11058
+ &::after {
11059
+ width: calc(var(--wui-size-large-width) / 2);
11060
+ height: calc(var(--wui-size-large-width) / 2);
11061
+ }
11062
+ `;
11063
+ var getSizeCss3 = (size) => {
11064
+ if (size === "sm") return sizeSmall3;
11065
+ if (size === "lg") return sizeLarge3;
11066
+ return sizeMedium3;
11067
+ };
11068
+ var StyledSwitchWrapper = import_styled_components72.default.div`
11069
+ display: flex;
11070
+ margin: 0;
11071
+
11072
+ /* TODO this solves a problem but potentially causes and a11y issue */
11073
+ user-select: none;
11074
+ `;
11075
+ var StyledSwitchInput = import_styled_components72.default.div`
11076
+ ${({ $size }) => getSizeCss3($size)}
11077
+ line-height: 0;
11078
+ margin: 0;
11079
+ display: grid;
11080
+ place-content: center;
11081
+ align-self: flex-start;
11082
+ position: relative;
11083
+ transition: all 0.2s ease-in-out;
11084
+ border-width: 1px;
11085
+ border-style: solid;
11086
+ border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-border)"}; /* "off state" border */
11087
+
11088
+ background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface-secondary)"}; /* "off state" background */
11089
+
11090
+ &::after {
11091
+ content: '';
11092
+ position: absolute;
11093
+ left: 0;
11094
+ top: 50%;
11095
+ transform: translateY(-50%);
11096
+ border-radius: 50%;
11097
+ box-shadow: 1px 0 1px rgb(0 0 0 / 10%); /* "off state" shadow - cast horizontally right */
11098
+ background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-fill-white)"}; /* "off state" dot color */
11099
+
11100
+ transition: all 0.2s ease-in-out;
11101
+ }
11102
+ `;
11103
+ var StyledHiddenSwitchInput = import_styled_components72.default.input`
11104
+ ${visuallyHiddenStyle}
11105
+
11106
+ /* toggles display of faux-input background-color and toggle position */
11107
+ &:checked + label [data-wui-faux-input='true'] {
11108
+ border-color: ${({ disabled }) => disabled ? void 0 : "var(--wui-color-bg-fill)"}; /* "on state" border */
11109
+
11110
+ background-color: ${({ disabled }) => disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-fill)"}; /* "on state" background */
11111
+
11112
+ &::after {
11113
+ transform: translate(calc(100% - 2px), -50%); /* 2px is the border width */
11114
+ box-shadow: -1px 0 1px rgb(0 0 0 / 10%); /* "on state" shadow - cast horizontally left */
11115
+ background-color: ${({ disabled }) => disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-fill-white)"}; /* "on state" dot color */
11116
+ }
11117
+ }
11118
+ `;
11119
+ var Switch = (0, import_react51.forwardRef)(
11120
+ ({
11121
+ checked,
11122
+ disabled = false,
11123
+ id,
11124
+ label,
11125
+ description,
11126
+ name,
11127
+ onChange,
11128
+ size = "md",
11129
+ value,
11130
+ required = false,
11131
+ hideLabel = false,
11132
+ ...props
11133
+ }, ref) => {
11134
+ const generatedId = (0, import_react51.useId)();
11135
+ const computedId = (0, import_type_guards42.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
11136
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
11137
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11138
+ StyledHiddenSwitchInput,
11139
+ {
11140
+ ...props,
11141
+ ref,
11142
+ checked,
11143
+ disabled,
11144
+ id: computedId,
11145
+ name,
11146
+ onChange,
11147
+ required,
11148
+ type: "checkbox",
11149
+ value
11150
+ }
11151
+ ),
11152
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11153
+ FormControlLabel,
11154
+ {
11155
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11156
+ StyledSwitchInput,
11157
+ {
11158
+ $disabled: disabled,
11159
+ $size: size,
11160
+ "data-testid": "wui-faux-input",
11161
+ "data-wui-faux-input": "true"
11162
+ }
11163
+ ),
11164
+ description,
11165
+ disabled,
11166
+ hideLabel,
11167
+ htmlFor: computedId,
11168
+ label
11169
+ }
11170
+ )
11171
+ ] });
11172
+ }
11173
+ );
11174
+ Switch.displayName = "Switch";
11175
+
11176
+ // src/components/Table/Table.tsx
11177
+ var import_styled_components73 = __toESM(require("styled-components"));
11178
+ var import_jsx_runtime250 = require("react/jsx-runtime");
11179
+ var StyledTable = import_styled_components73.default.table`
11052
11180
  width: 100%;
11053
11181
  border-collapse: collapse;
11054
11182
 
11055
- ${({ $striped }) => $striped && import_styled_components72.css`
11183
+ ${({ $striped }) => $striped && import_styled_components73.css`
11056
11184
  tbody tr:nth-child(even) {
11057
11185
  background-color: var(--wui-color-bg-surface-secondary);
11058
11186
  }
11059
11187
  `}
11060
11188
 
11061
- ${({ $divided }) => $divided && import_styled_components72.css`
11189
+ ${({ $divided }) => $divided && import_styled_components73.css`
11062
11190
  tr {
11063
11191
  border-bottom: 1px solid var(--wui-color-border);
11064
11192
  }
@@ -11070,7 +11198,7 @@ var Table = ({
11070
11198
  divided = false,
11071
11199
  ...props
11072
11200
  }) => {
11073
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11201
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
11074
11202
  StyledTable,
11075
11203
  {
11076
11204
  $divided: divided,
@@ -11082,88 +11210,88 @@ var Table = ({
11082
11210
  };
11083
11211
 
11084
11212
  // src/components/Table/TableBody.tsx
11085
- var import_styled_components73 = __toESM(require("styled-components"));
11213
+ var import_styled_components74 = __toESM(require("styled-components"));
11086
11214
 
11087
11215
  // src/components/Table/TableSectionContext.ts
11088
- var import_react51 = require("react");
11089
- var TableSectionContext = (0, import_react51.createContext)(null);
11216
+ var import_react52 = require("react");
11217
+ var TableSectionContext = (0, import_react52.createContext)(null);
11090
11218
 
11091
11219
  // src/components/Table/TableBody.tsx
11092
- var import_jsx_runtime250 = require("react/jsx-runtime");
11093
- var StyledTbody = import_styled_components73.default.tbody``;
11220
+ var import_jsx_runtime251 = require("react/jsx-runtime");
11221
+ var StyledTbody = import_styled_components74.default.tbody``;
11094
11222
  var TableBody = ({ children, ...props }) => {
11095
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(StyledTbody, { ...props, children }) });
11223
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(StyledTbody, { ...props, children }) });
11096
11224
  };
11097
11225
 
11098
11226
  // src/components/Table/TableCell.tsx
11099
- var import_react52 = require("react");
11100
- var import_styled_components74 = __toESM(require("styled-components"));
11101
- var import_jsx_runtime251 = require("react/jsx-runtime");
11102
- var sharedStyles = import_styled_components74.css`
11227
+ var import_react53 = require("react");
11228
+ var import_styled_components75 = __toESM(require("styled-components"));
11229
+ var import_jsx_runtime252 = require("react/jsx-runtime");
11230
+ var sharedStyles = import_styled_components75.css`
11103
11231
  color: var(--wui-color-text);
11104
11232
  padding: var(--wui-space-02);
11105
11233
  text-align: left;
11106
11234
  `;
11107
- var StyledTh = import_styled_components74.default.th`
11235
+ var StyledTh = import_styled_components75.default.th`
11108
11236
  ${sharedStyles}
11109
11237
  font-size: var(--wui-typography-body-4-size);
11110
11238
  font-weight: var(--wui-typography-weight-label-bold);
11111
11239
  line-height: var(--wui-typography-body-4-line-height);
11112
11240
  `;
11113
- var StyledTd = import_styled_components74.default.td`
11241
+ var StyledTd = import_styled_components75.default.td`
11114
11242
  ${sharedStyles}
11115
11243
  font-size: var(--wui-typography-body-2-size);
11116
11244
  font-weight: var(--wui-typography-body-2-weight);
11117
11245
  line-height: var(--wui-typography-body-2-line-height);
11118
11246
  `;
11119
11247
  var TableCell = ({ children, ...props }) => {
11120
- const section = (0, import_react52.useContext)(TableSectionContext);
11248
+ const section = (0, import_react53.useContext)(TableSectionContext);
11121
11249
  if (section === "head") {
11122
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(StyledTh, { ...props, children });
11250
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StyledTh, { ...props, children });
11123
11251
  }
11124
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(StyledTd, { ...props, children });
11252
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StyledTd, { ...props, children });
11125
11253
  };
11126
11254
 
11127
11255
  // src/components/Table/TableFooter.tsx
11128
- var import_styled_components75 = __toESM(require("styled-components"));
11129
- var import_jsx_runtime252 = require("react/jsx-runtime");
11130
- var StyledTfoot = import_styled_components75.default.tfoot``;
11256
+ var import_styled_components76 = __toESM(require("styled-components"));
11257
+ var import_jsx_runtime253 = require("react/jsx-runtime");
11258
+ var StyledTfoot = import_styled_components76.default.tfoot``;
11131
11259
  var TableFooter = ({ children, ...props }) => {
11132
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StyledTfoot, { ...props, children }) });
11260
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(StyledTfoot, { ...props, children }) });
11133
11261
  };
11134
11262
 
11135
11263
  // src/components/Table/TableHead.tsx
11136
- var import_styled_components76 = __toESM(require("styled-components"));
11137
- var import_jsx_runtime253 = require("react/jsx-runtime");
11138
- var StyledThead = import_styled_components76.default.thead``;
11264
+ var import_styled_components77 = __toESM(require("styled-components"));
11265
+ var import_jsx_runtime254 = require("react/jsx-runtime");
11266
+ var StyledThead = import_styled_components77.default.thead``;
11139
11267
  var TableHead = ({ children, ...props }) => {
11140
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(StyledThead, { ...props, children }) });
11268
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(StyledThead, { ...props, children }) });
11141
11269
  };
11142
11270
 
11143
11271
  // src/components/Table/TableRow.tsx
11144
- var import_styled_components77 = __toESM(require("styled-components"));
11145
- var import_jsx_runtime254 = require("react/jsx-runtime");
11146
- var StyledTr = import_styled_components77.default.tr``;
11272
+ var import_styled_components78 = __toESM(require("styled-components"));
11273
+ var import_jsx_runtime255 = require("react/jsx-runtime");
11274
+ var StyledTr = import_styled_components78.default.tr``;
11147
11275
  var TableRow = ({ children, ...props }) => {
11148
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(StyledTr, { ...props, children });
11276
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(StyledTr, { ...props, children });
11149
11277
  };
11150
11278
 
11151
11279
  // src/components/Tabs/Tabs.tsx
11152
- var import_react57 = require("react");
11280
+ var import_react58 = require("react");
11153
11281
  var import_react_tabs4 = require("@radix-ui/react-tabs");
11154
- var import_type_guards43 = require("@wistia/type-guards");
11155
- var import_styled_components82 = __toESM(require("styled-components"));
11282
+ var import_type_guards44 = require("@wistia/type-guards");
11283
+ var import_styled_components83 = __toESM(require("styled-components"));
11156
11284
 
11157
11285
  // src/components/Tabs/TabPanel.tsx
11158
- var import_styled_components78 = __toESM(require("styled-components"));
11286
+ var import_styled_components79 = __toESM(require("styled-components"));
11159
11287
  var import_react_tabs = require("@radix-ui/react-tabs");
11160
- var import_jsx_runtime255 = require("react/jsx-runtime");
11161
- var StyledTabPanel = (0, import_styled_components78.default)(import_react_tabs.Content)`
11288
+ var import_jsx_runtime256 = require("react/jsx-runtime");
11289
+ var StyledTabPanel = (0, import_styled_components79.default)(import_react_tabs.Content)`
11162
11290
  display: flex;
11163
11291
  flex-direction: column;
11164
11292
  `;
11165
11293
  var TabPanel = ({ children, value, ...props }) => {
11166
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
11294
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11167
11295
  StyledTabPanel,
11168
11296
  {
11169
11297
  value,
@@ -11175,10 +11303,10 @@ var TabPanel = ({ children, value, ...props }) => {
11175
11303
  TabPanel.displayName = "TabPanel";
11176
11304
 
11177
11305
  // src/components/Tabs/TabList.tsx
11178
- var import_styled_components79 = __toESM(require("styled-components"));
11306
+ var import_styled_components80 = __toESM(require("styled-components"));
11179
11307
  var import_react_tabs2 = require("@radix-ui/react-tabs");
11180
- var import_jsx_runtime256 = require("react/jsx-runtime");
11181
- var StyledTabList = (0, import_styled_components79.default)(import_react_tabs2.List)`
11308
+ var import_jsx_runtime257 = require("react/jsx-runtime");
11309
+ var StyledTabList = (0, import_styled_components80.default)(import_react_tabs2.List)`
11182
11310
  ${segmentedControlStyles}
11183
11311
 
11184
11312
  margin-bottom: var(--wui-space-04);
@@ -11191,7 +11319,7 @@ var TabList = ({
11191
11319
  ariaLabel,
11192
11320
  ...props
11193
11321
  }) => {
11194
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11322
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
11195
11323
  StyledTabList,
11196
11324
  {
11197
11325
  $fullWidth: fullWidth,
@@ -11204,17 +11332,17 @@ var TabList = ({
11204
11332
  TabList.displayName = "TabList";
11205
11333
 
11206
11334
  // src/components/Tabs/TabItem.tsx
11207
- var import_react54 = require("react");
11208
- var import_styled_components80 = __toESM(require("styled-components"));
11335
+ var import_react55 = require("react");
11336
+ var import_styled_components81 = __toESM(require("styled-components"));
11209
11337
  var import_react_tabs3 = require("@radix-ui/react-tabs");
11210
- var import_type_guards42 = require("@wistia/type-guards");
11338
+ var import_type_guards43 = require("@wistia/type-guards");
11211
11339
 
11212
11340
  // src/components/Tabs/useTabsValue.tsx
11213
- var import_react53 = require("react");
11214
- var TabsValueContext = (0, import_react53.createContext)(null);
11341
+ var import_react54 = require("react");
11342
+ var TabsValueContext = (0, import_react54.createContext)(null);
11215
11343
  var TabsValueProvider = TabsValueContext.Provider;
11216
11344
  var useTabsValue = () => {
11217
- const context = (0, import_react53.useContext)(TabsValueContext);
11345
+ const context = (0, import_react54.useContext)(TabsValueContext);
11218
11346
  if (context === null) {
11219
11347
  throw new Error("useTabsValue must be used within a TabsValueProvider");
11220
11348
  }
@@ -11222,21 +11350,21 @@ var useTabsValue = () => {
11222
11350
  };
11223
11351
 
11224
11352
  // src/components/Tabs/TabItem.tsx
11225
- var import_jsx_runtime257 = require("react/jsx-runtime");
11226
- var StyledTabItem = (0, import_styled_components80.default)(import_react_tabs3.Trigger)`
11353
+ var import_jsx_runtime258 = require("react/jsx-runtime");
11354
+ var StyledTabItem = (0, import_styled_components81.default)(import_react_tabs3.Trigger)`
11227
11355
  ${segmentedControlItemStyles}
11228
11356
 
11229
11357
  &:focus-visible {
11230
11358
  outline: none;
11231
11359
  }
11232
11360
  `;
11233
- var TabItem = (0, import_react54.forwardRef)(
11361
+ var TabItem = (0, import_react55.forwardRef)(
11234
11362
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
11235
11363
  const selectedValue = useTabsValue();
11236
11364
  const { setSelectedItemMeasurements } = useSelectedItemMeasurements();
11237
- const buttonRef = (0, import_react54.useRef)(null);
11365
+ const buttonRef = (0, import_react55.useRef)(null);
11238
11366
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
11239
- (0, import_react54.useEffect)(() => {
11367
+ (0, import_react55.useEffect)(() => {
11240
11368
  const buttonElem = buttonRef.current;
11241
11369
  if (!buttonElem) {
11242
11370
  return void 0;
@@ -11261,12 +11389,12 @@ var TabItem = (0, import_react54.forwardRef)(
11261
11389
  resizeObserver.disconnect();
11262
11390
  };
11263
11391
  }, [selectedValue, setSelectedItemMeasurements, value]);
11264
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
11392
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
11265
11393
  StyledTabItem,
11266
11394
  {
11267
11395
  ref: combinedRef,
11268
- $hasLabel: (0, import_type_guards42.isNotNil)(label),
11269
- "aria-label": (0, import_type_guards42.isNotNil)(label) ? void 0 : ariaLabel,
11396
+ $hasLabel: (0, import_type_guards43.isNotNil)(label),
11397
+ "aria-label": (0, import_type_guards43.isNotNil)(label) ? void 0 : ariaLabel,
11270
11398
  disabled,
11271
11399
  value,
11272
11400
  children: [
@@ -11280,16 +11408,16 @@ var TabItem = (0, import_react54.forwardRef)(
11280
11408
  TabItem.displayName = "TabItem";
11281
11409
 
11282
11410
  // src/components/Tabs/extractTabItems.ts
11283
- var import_react55 = require("react");
11411
+ var import_react56 = require("react");
11284
11412
  var extractTabItems = (children) => {
11285
11413
  const tabItems = [];
11286
- import_react55.Children.forEach(children, (child) => {
11287
- if (!(0, import_react55.isValidElement)(child)) {
11414
+ import_react56.Children.forEach(children, (child) => {
11415
+ if (!(0, import_react56.isValidElement)(child)) {
11288
11416
  return;
11289
11417
  }
11290
11418
  if (typeof child.type !== "string" && child.type.displayName === "Tab") {
11291
11419
  tabItems.push(child);
11292
- } else if (child.type === import_react55.Fragment) {
11420
+ } else if (child.type === import_react56.Fragment) {
11293
11421
  const fragmentElement = child;
11294
11422
  tabItems.push(...extractTabItems(fragmentElement.props.children));
11295
11423
  } else if ((child.props.children ?? null) != null) {
@@ -11302,10 +11430,10 @@ var extractTabItems = (children) => {
11302
11430
  };
11303
11431
 
11304
11432
  // src/components/Tabs/SelectedItemIndicator.tsx
11305
- var import_react56 = require("react");
11306
- var import_styled_components81 = __toESM(require("styled-components"));
11307
- var import_jsx_runtime258 = require("react/jsx-runtime");
11308
- var TabsSelectedItemIndicatorDiv = (0, import_styled_components81.default)(SelectedItemIndicatorDiv)`
11433
+ var import_react57 = require("react");
11434
+ var import_styled_components82 = __toESM(require("styled-components"));
11435
+ var import_jsx_runtime259 = require("react/jsx-runtime");
11436
+ var TabsSelectedItemIndicatorDiv = (0, import_styled_components82.default)(SelectedItemIndicatorDiv)`
11309
11437
  &:has(~ ${StyledTabItem}:focus-visible) {
11310
11438
  outline: 2px solid var(--wui-color-focus-ring);
11311
11439
  }
@@ -11313,7 +11441,7 @@ var TabsSelectedItemIndicatorDiv = (0, import_styled_components81.default)(Selec
11313
11441
  var SelectedItemIndicator2 = () => {
11314
11442
  const { selectedItemMeasurements } = useSelectedItemMeasurements();
11315
11443
  const selectedValue = useTabsValue();
11316
- const selectedItemIndicatorStyle = (0, import_react56.useMemo)(
11444
+ const selectedItemIndicatorStyle = (0, import_react57.useMemo)(
11317
11445
  () => selectedItemMeasurements != null ? {
11318
11446
  height: `${selectedItemMeasurements.offsetHeight}px`,
11319
11447
  transform: `translateX(${selectedItemMeasurements.offsetLeft}px)`,
@@ -11324,7 +11452,7 @@ var SelectedItemIndicator2 = () => {
11324
11452
  if (selectedValue == null) {
11325
11453
  return null;
11326
11454
  }
11327
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
11455
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11328
11456
  TabsSelectedItemIndicatorDiv,
11329
11457
  {
11330
11458
  style: {
@@ -11337,24 +11465,24 @@ var SelectedItemIndicator2 = () => {
11337
11465
  };
11338
11466
 
11339
11467
  // src/components/Tabs/Tabs.tsx
11340
- var import_jsx_runtime259 = require("react/jsx-runtime");
11341
- var TabsContainer = import_styled_components82.default.div`
11468
+ var import_jsx_runtime260 = require("react/jsx-runtime");
11469
+ var TabsContainer = import_styled_components83.default.div`
11342
11470
  display: flex;
11343
11471
  flex-direction: column;
11344
11472
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
11345
11473
  overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
11346
11474
  `;
11347
- var StickyTabContent = import_styled_components82.default.div`
11475
+ var StickyTabContent = import_styled_components83.default.div`
11348
11476
  flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
11349
11477
  overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
11350
11478
  overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
11351
11479
  `;
11352
- var StyledTabsRoot = (0, import_styled_components82.default)(import_react_tabs4.Root)`
11480
+ var StyledTabsRoot = (0, import_styled_components83.default)(import_react_tabs4.Root)`
11353
11481
  display: flex;
11354
11482
  flex-direction: column;
11355
11483
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
11356
11484
  `;
11357
- var Tabs = (0, import_react57.forwardRef)(
11485
+ var Tabs = (0, import_react58.forwardRef)(
11358
11486
  ({
11359
11487
  children,
11360
11488
  fullWidth = true,
@@ -11366,13 +11494,13 @@ var Tabs = (0, import_react57.forwardRef)(
11366
11494
  ...otherProps
11367
11495
  }, ref) => {
11368
11496
  const tabItems = extractTabItems(children);
11369
- const [internalSelectedValue, setInternalSelectedValue] = (0, import_react57.useState)(defaultSelectedValue);
11497
+ const [internalSelectedValue, setInternalSelectedValue] = (0, import_react58.useState)(defaultSelectedValue);
11370
11498
  const modeProps = defaultSelectedValue !== void 0 ? {
11371
11499
  defaultValue: defaultSelectedValue,
11372
11500
  onValueChange: setInternalSelectedValue
11373
11501
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
11374
11502
  const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
11375
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11503
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11376
11504
  StyledTabsRoot,
11377
11505
  {
11378
11506
  ref,
@@ -11380,14 +11508,14 @@ var Tabs = (0, import_react57.forwardRef)(
11380
11508
  activationMode: "automatic",
11381
11509
  ...otherProps,
11382
11510
  ...modeProps,
11383
- children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(SelectedItemMeasurementsProvider, { children: [
11384
- /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
11511
+ children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(SelectedItemMeasurementsProvider, { children: [
11512
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
11385
11513
  TabList,
11386
11514
  {
11387
11515
  ariaLabel,
11388
11516
  fullWidth,
11389
11517
  children: [
11390
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(SelectedItemIndicator2, {}),
11518
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(SelectedItemIndicator2, {}),
11391
11519
  tabItems.map((tab) => {
11392
11520
  const {
11393
11521
  value,
@@ -11396,8 +11524,8 @@ var Tabs = (0, import_react57.forwardRef)(
11396
11524
  label,
11397
11525
  "aria-label": ariaLabelForTab
11398
11526
  } = tab.props;
11399
- if ((0, import_type_guards43.isNil)(icon)) {
11400
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11527
+ if ((0, import_type_guards44.isNil)(icon)) {
11528
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11401
11529
  TabItem,
11402
11530
  {
11403
11531
  disabled,
@@ -11407,8 +11535,8 @@ var Tabs = (0, import_react57.forwardRef)(
11407
11535
  value
11408
11536
  );
11409
11537
  }
11410
- if ((0, import_type_guards43.isNotNil)(label)) {
11411
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11538
+ if ((0, import_type_guards44.isNotNil)(label)) {
11539
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11412
11540
  TabItem,
11413
11541
  {
11414
11542
  disabled,
@@ -11419,8 +11547,8 @@ var Tabs = (0, import_react57.forwardRef)(
11419
11547
  value
11420
11548
  );
11421
11549
  }
11422
- if ((0, import_type_guards43.isNotNil)(ariaLabelForTab)) {
11423
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11550
+ if ((0, import_type_guards44.isNotNil)(ariaLabelForTab)) {
11551
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11424
11552
  TabItem,
11425
11553
  {
11426
11554
  "aria-label": ariaLabelForTab,
@@ -11436,7 +11564,7 @@ var Tabs = (0, import_react57.forwardRef)(
11436
11564
  ]
11437
11565
  }
11438
11566
  ),
11439
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
11567
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11440
11568
  TabPanel,
11441
11569
  {
11442
11570
  value: tab.props.value,
@@ -11452,19 +11580,19 @@ var Tabs = (0, import_react57.forwardRef)(
11452
11580
  Tabs.displayName = "Tabs";
11453
11581
 
11454
11582
  // src/components/Tabs/Tab.tsx
11455
- var import_react58 = require("react");
11456
- var import_jsx_runtime260 = require("react/jsx-runtime");
11457
- var Tab = (0, import_react58.forwardRef)(({ children }, ref) => {
11458
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("div", { ref, children });
11583
+ var import_react59 = require("react");
11584
+ var import_jsx_runtime261 = require("react/jsx-runtime");
11585
+ var Tab = (0, import_react59.forwardRef)(({ children }, ref) => {
11586
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("div", { ref, children });
11459
11587
  });
11460
11588
  Tab.displayName = "Tab";
11461
11589
 
11462
11590
  // src/components/Tag/Tag.tsx
11463
- var import_react59 = require("react");
11464
- var import_styled_components83 = __toESM(require("styled-components"));
11465
- var import_type_guards44 = require("@wistia/type-guards");
11466
- var import_jsx_runtime261 = require("react/jsx-runtime");
11467
- var TagLabel = import_styled_components83.default.a`
11591
+ var import_react60 = require("react");
11592
+ var import_styled_components84 = __toESM(require("styled-components"));
11593
+ var import_type_guards45 = require("@wistia/type-guards");
11594
+ var import_jsx_runtime262 = require("react/jsx-runtime");
11595
+ var TagLabel = import_styled_components84.default.a`
11468
11596
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11469
11597
  font-size: var(--wui-typography-label-4-size);
11470
11598
  font-weight: var(--wui-typography-label-4-weight);
@@ -11499,14 +11627,14 @@ var TagLabel = import_styled_components83.default.a`
11499
11627
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
11500
11628
  }
11501
11629
  `;
11502
- var TagDivider = import_styled_components83.default.div`
11630
+ var TagDivider = import_styled_components84.default.div`
11503
11631
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11504
11632
  border-left: 1px solid var(--wui-color-border);
11505
11633
  display: flex;
11506
11634
  height: 14px;
11507
11635
  width: 1px;
11508
11636
  `;
11509
- var StyledRemoveButton = import_styled_components83.default.button`
11637
+ var StyledRemoveButton = import_styled_components84.default.button`
11510
11638
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11511
11639
  all: unset;
11512
11640
  cursor: pointer;
@@ -11534,7 +11662,7 @@ var StyledRemoveButton = import_styled_components83.default.button`
11534
11662
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
11535
11663
  }
11536
11664
  `;
11537
- var StyledTag = import_styled_components83.default.div`
11665
+ var StyledTag = import_styled_components84.default.div`
11538
11666
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11539
11667
  align-items: center;
11540
11668
  background-color: var(--wui-color-bg-surface-secondary);
@@ -11547,37 +11675,37 @@ var StyledTag = import_styled_components83.default.div`
11547
11675
  }
11548
11676
  `;
11549
11677
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
11550
- if ((0, import_type_guards44.isNil)(onClickRemove)) {
11678
+ if ((0, import_type_guards45.isNil)(onClickRemove)) {
11551
11679
  return null;
11552
11680
  }
11553
- if ((0, import_type_guards44.isNil)(onClickRemoveLabel)) {
11681
+ if ((0, import_type_guards45.isNil)(onClickRemoveLabel)) {
11554
11682
  throw new Error(
11555
11683
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
11556
11684
  );
11557
11685
  }
11558
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(import_jsx_runtime261.Fragment, { children: [
11559
- /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(TagDivider, { $colorScheme: colorScheme }),
11560
- /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
11686
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(import_jsx_runtime262.Fragment, { children: [
11687
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(TagDivider, { $colorScheme: colorScheme }),
11688
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
11561
11689
  StyledRemoveButton,
11562
11690
  {
11563
11691
  $colorScheme: colorScheme,
11564
11692
  onClick: onClickRemove,
11565
11693
  type: "button",
11566
11694
  children: [
11567
- /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11695
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11568
11696
  Icon,
11569
11697
  {
11570
11698
  size: "sm",
11571
11699
  type: "close"
11572
11700
  }
11573
11701
  ),
11574
- /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
11702
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
11575
11703
  ]
11576
11704
  }
11577
11705
  )
11578
11706
  ] });
11579
11707
  };
11580
- var Tag = (0, import_react59.forwardRef)(
11708
+ var Tag = (0, import_react60.forwardRef)(
11581
11709
  ({
11582
11710
  onClickRemove,
11583
11711
  colorScheme = "inherit",
@@ -11587,16 +11715,16 @@ var Tag = (0, import_react59.forwardRef)(
11587
11715
  onClickRemoveLabel,
11588
11716
  ...otherProps
11589
11717
  }, ref) => {
11590
- const hasIcon = (0, import_type_guards44.isNotNil)(icon);
11591
- const labelProps = (0, import_type_guards44.isNotNil)(href) && (0, import_type_guards44.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
11592
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
11718
+ const hasIcon = (0, import_type_guards45.isNotNil)(icon);
11719
+ const labelProps = (0, import_type_guards45.isNotNil)(href) && (0, import_type_guards45.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
11720
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
11593
11721
  StyledTag,
11594
11722
  {
11595
11723
  ref,
11596
11724
  $colorScheme: colorScheme,
11597
11725
  ...otherProps,
11598
11726
  children: [
11599
- /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
11727
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
11600
11728
  TagLabel,
11601
11729
  {
11602
11730
  ...labelProps,
@@ -11607,7 +11735,7 @@ var Tag = (0, import_react59.forwardRef)(
11607
11735
  ]
11608
11736
  }
11609
11737
  ),
11610
- /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11738
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11611
11739
  RemoveButton,
11612
11740
  {
11613
11741
  colorScheme,
@@ -11623,26 +11751,26 @@ var Tag = (0, import_react59.forwardRef)(
11623
11751
  Tag.displayName = "Tag";
11624
11752
 
11625
11753
  // src/components/WistiaLogo/WistiaLogo.tsx
11626
- var import_styled_components84 = __toESM(require("styled-components"));
11627
- var import_type_guards45 = require("@wistia/type-guards");
11628
- var import_jsx_runtime262 = require("react/jsx-runtime");
11754
+ var import_styled_components85 = __toESM(require("styled-components"));
11755
+ var import_type_guards46 = require("@wistia/type-guards");
11756
+ var import_jsx_runtime263 = require("react/jsx-runtime");
11629
11757
  var renderBrandmark = (brandmarkColor, iconOnly) => {
11630
11758
  if (iconOnly) {
11631
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11759
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
11632
11760
  "g",
11633
11761
  {
11634
11762
  "data-testid": "ui-wistia-logo-brandmark",
11635
11763
  fill: brandmarkColor,
11636
- children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
11764
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
11637
11765
  }
11638
11766
  );
11639
11767
  }
11640
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11768
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
11641
11769
  "g",
11642
11770
  {
11643
11771
  "data-testid": "ui-wistia-logo-brandmark",
11644
11772
  fill: brandmarkColor,
11645
- children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
11773
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
11646
11774
  }
11647
11775
  );
11648
11776
  };
@@ -11650,12 +11778,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
11650
11778
  if (iconOnly) {
11651
11779
  return null;
11652
11780
  }
11653
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11781
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
11654
11782
  "g",
11655
11783
  {
11656
11784
  "data-testid": "ui-wistia-logo-logotype",
11657
11785
  fill: logotypeColor,
11658
- children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
11786
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
11659
11787
  }
11660
11788
  );
11661
11789
  };
@@ -11665,7 +11793,7 @@ var computedViewBox = (iconOnly) => {
11665
11793
  }
11666
11794
  return "0 0 144 31.47";
11667
11795
  };
11668
- var WistiaLogoComponent = import_styled_components84.default.svg`
11796
+ var WistiaLogoComponent = import_styled_components85.default.svg`
11669
11797
  height: ${({ height }) => `${height}px`};
11670
11798
 
11671
11799
  /* ensure it will always fit on mobile */
@@ -11681,12 +11809,12 @@ var WistiaLogoComponent = import_styled_components84.default.svg`
11681
11809
  ${({ $opticallyCentered, $iconOnly }) => {
11682
11810
  if ($opticallyCentered) {
11683
11811
  if ($iconOnly) {
11684
- return import_styled_components84.css`
11812
+ return import_styled_components85.css`
11685
11813
  aspect-ratio: 1;
11686
11814
  padding: 11.85% 3.12% 13.91%;
11687
11815
  `;
11688
11816
  }
11689
- return import_styled_components84.css`
11817
+ return import_styled_components85.css`
11690
11818
  aspect-ratio: 127 / 32;
11691
11819
  `;
11692
11820
  }
@@ -11723,7 +11851,7 @@ var WistiaLogo = ({
11723
11851
  };
11724
11852
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
11725
11853
  const logotypeColor = VARIANT_COLORS[variant].logotype;
11726
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
11854
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
11727
11855
  WistiaLogoComponent,
11728
11856
  {
11729
11857
  $hoverColor: hoverColor,
@@ -11736,14 +11864,14 @@ var WistiaLogo = ({
11736
11864
  xmlns: "http://www.w3.org/2000/svg",
11737
11865
  ...otherProps,
11738
11866
  children: [
11739
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("title", { children: title }),
11740
- (0, import_type_guards45.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("desc", { children: description }) : null,
11867
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("title", { children: title }),
11868
+ (0, import_type_guards46.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("desc", { children: description }) : null,
11741
11869
  renderBrandmark(brandmarkColor, iconOnly),
11742
11870
  renderLogotype(logotypeColor, iconOnly)
11743
11871
  ]
11744
11872
  }
11745
11873
  );
11746
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("a", { href, children: Logo }) : Logo;
11874
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("a", { href, children: Logo }) : Logo;
11747
11875
  };
11748
11876
  WistiaLogo.displayName = "WistiaLogo";
11749
11877
  // Annotate the CommonJS export names for ESM import in node:
@@ -11807,6 +11935,7 @@ WistiaLogo.displayName = "WistiaLogo";
11807
11935
  SelectOptionGroup,
11808
11936
  Stack,
11809
11937
  SubMenu,
11938
+ Switch,
11810
11939
  Tab,
11811
11940
  Table,
11812
11941
  TableBody,