@wistia/vhs 3.0.1-beta.a963c7a8.8b7d153 → 3.0.1-beta.cd0ec91c.fd8df29

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/vhs v3.0.1-beta.a963c7a8.8b7d153
3
+ * @license @wistia/vhs v3.0.1-beta.cd0ec91c.fd8df29
4
4
  *
5
5
  * Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -6289,7 +6289,7 @@ Box.displayName = "Box_VHS";
6289
6289
 
6290
6290
  // src/components/ButtonLink/ButtonLink.tsx
6291
6291
  import { forwardRef as forwardRef6 } from "react";
6292
- import { styled as styled20 } from "styled-components";
6292
+ import { styled as styled20, css as css13 } from "styled-components";
6293
6293
  import { isNotNil as isNotNil12 } from "@wistia/type-guards";
6294
6294
 
6295
6295
  // src/components/Link/Link.tsx
@@ -6509,8 +6509,149 @@ Link.displayName = "Link_VHS";
6509
6509
 
6510
6510
  // src/components/ButtonLink/ButtonLink.tsx
6511
6511
  import { jsx as jsx140 } from "react/jsx-runtime";
6512
+ var buttonLinkStyle = css13`
6513
+ align-items: center;
6514
+ background-color: transparent;
6515
+ background-image: none;
6516
+ border: none;
6517
+ box-shadow: none;
6518
+ color: inherit;
6519
+ cursor: pointer;
6520
+ display: inline-flex;
6521
+ font: inherit;
6522
+ justify-content: center;
6523
+ line-height: 1;
6524
+ padding: 0;
6525
+ text-align: left;
6526
+ vertical-align: middle;
6527
+ appearance: none;
6528
+ border-radius: ${({ theme: theme2 }) => theme2.button.borderRadius};
6529
+ border-style: solid;
6530
+ border-width: 1px;
6531
+ font-weight: ${({ theme: theme2 }) => theme2.font.weight.medium};
6532
+ text-decoration: none;
6533
+ transition: all ${({ theme: theme2 }) => theme2.duration.productive.moderate};
6534
+
6535
+ &:focus {
6536
+ outline: none;
6537
+ }
6538
+
6539
+ &[aria-disabled='true'] {
6540
+ opacity: 0.4;
6541
+ }
6542
+
6543
+ /* border-radius */
6544
+ ${({ $square }) => $square === true && css13`
6545
+ border-radius: 0;
6546
+ `}
6547
+
6548
+ /* label wrapping */
6549
+ white-space: ${({ $labelWrap }) => $labelWrap === true ? "wrap" : "nowrap"};
6550
+
6551
+ /* size styles */
6552
+ ${({ $size, theme: theme2 }) => {
6553
+ if ($size === "lg") {
6554
+ return css13`
6555
+ font-size: 16px;
6556
+ line-height: 24px;
6557
+ padding: ${theme2.spacing.space02} ${theme2.spacing.space04};
6558
+ `;
6559
+ }
6560
+ if ($size === "md") {
6561
+ return css13`
6562
+ font-size: 14px;
6563
+ line-height: 20px;
6564
+ padding: ${theme2.spacing.space02} ${theme2.spacing.space03};
6565
+ `;
6566
+ }
6567
+ if ($size === "sm") {
6568
+ return css13`
6569
+ font-size: 12px;
6570
+ line-height: 18px;
6571
+ padding: 2px ${theme2.spacing.space02};
6572
+ `;
6573
+ }
6574
+ return css13``;
6575
+ }}
6576
+
6577
+ /* full width */
6578
+ ${({ $fullWidth }) => $fullWidth && css13`
6579
+ width: 100%;
6580
+ `}
6581
+
6582
+ /* variant styles */
6583
+ ${({ $variant, $buttonColor }) => {
6584
+ if ($variant === "primary" || $variant === "dangerous") {
6585
+ return css13`
6586
+ background-color: ${$buttonColor};
6587
+ border-color: ${$buttonColor};
6588
+ color: white;
6589
+
6590
+ &:focus-visible {
6591
+ box-shadow: inset 0 0 0 1px white;
6592
+ }
6593
+
6594
+ &:hover:not([aria-disabled='true']) {
6595
+ background-color: ${$buttonColor};
6596
+ border-color: ${$buttonColor};
6597
+ opacity: 0.9;
6598
+ }
6599
+
6600
+ &:active:not([aria-disabled='true']) {
6601
+ background-color: ${$buttonColor};
6602
+ border-color: ${$buttonColor};
6603
+ opacity: 0.8;
6604
+ }
6605
+ `;
6606
+ }
6607
+ if ($variant === "secondary") {
6608
+ return css13`
6609
+ background-color: transparent;
6610
+ border-color: ${$buttonColor};
6611
+ color: ${$buttonColor};
6612
+
6613
+ &:focus-visible {
6614
+ box-shadow:
6615
+ inset 0 0 0 1px white,
6616
+ inset 0 0 0 2px ${$buttonColor};
6617
+ }
6618
+
6619
+ &:hover:not([aria-disabled='true']) {
6620
+ background-color: rgb(0 0 0 / 10%);
6621
+ }
6622
+
6623
+ &:active:not([aria-disabled='true']) {
6624
+ background-color: rgb(0 0 0 / 20%);
6625
+ }
6626
+ `;
6627
+ }
6628
+ if ($variant === "tertiary") {
6629
+ return css13`
6630
+ background-color: transparent;
6631
+ border-color: transparent;
6632
+ color: ${$buttonColor};
6633
+
6634
+ &:focus-visible {
6635
+ border-color: ${$buttonColor};
6636
+ box-shadow:
6637
+ inset 0 0 0 1px white,
6638
+ inset 0 0 0 2px ${$buttonColor};
6639
+ }
6640
+
6641
+ &:hover:not([aria-disabled='true']) {
6642
+ background-color: rgb(0 0 0 / 10%);
6643
+ }
6644
+
6645
+ &:active:not([aria-disabled='true']) {
6646
+ background-color: rgb(0 0 0 / 20%);
6647
+ }
6648
+ `;
6649
+ }
6650
+ return css13``;
6651
+ }}
6652
+ `;
6512
6653
  var StyledButtonLink = styled20(Link)`
6513
- ${buttonStyle};
6654
+ ${buttonLinkStyle};
6514
6655
 
6515
6656
  /* Links are disabled by removing their href */
6516
6657
  &:not([href]) {
@@ -6564,10 +6705,10 @@ var ButtonLink = forwardRef6(
6564
6705
  $square: square,
6565
6706
  $textAlign: textAlign,
6566
6707
  $variant: variant,
6567
- beforeAction,
6708
+ ...beforeAction && { beforeAction },
6568
6709
  disabled,
6569
6710
  href,
6570
- params,
6711
+ ...params && { params },
6571
6712
  type,
6572
6713
  unstyled: true,
6573
6714
  ...otherProps,
@@ -6594,7 +6735,7 @@ import { forwardRef as forwardRef7, useState as useState14, isValidElement } fro
6594
6735
  import { isNonEmptyString as isNonEmptyString4, isNotUndefined as isNotUndefined3 } from "@wistia/type-guards";
6595
6736
 
6596
6737
  // src/components/Checkbox/OptionStyledComponent.tsx
6597
- import { styled as styled21, css as css13 } from "styled-components";
6738
+ import { styled as styled21, css as css14 } from "styled-components";
6598
6739
  var OptionWrapper = styled21.input`
6599
6740
  align-self: flex-start;
6600
6741
  border-radius: 3px;
@@ -6619,15 +6760,15 @@ var OptionSubLabel = styled21.div`
6619
6760
  font-size: 12px;
6620
6761
  line-height: 16px;
6621
6762
  `;
6622
- var disabledStyle3 = css13`
6763
+ var disabledStyle3 = css14`
6623
6764
  cursor: not-allowed;
6624
6765
  opacity: 0.5;
6625
6766
  `;
6626
- var errorHoverStyle = css13`
6767
+ var errorHoverStyle = css14`
6627
6768
  border-color: transparent;
6628
6769
  `;
6629
- var errorFocusedStyle = css13``;
6630
- var errorStyle = css13`
6770
+ var errorFocusedStyle = css14``;
6771
+ var errorStyle = css14`
6631
6772
  background-color: ${({ theme: theme2 }) => theme2.color.error100};
6632
6773
  border: 1px solid ${({ theme: theme2 }) => theme2.color.error500};
6633
6774
 
@@ -6637,11 +6778,11 @@ var errorStyle = css13`
6637
6778
  border-color: transparent !important;
6638
6779
  }
6639
6780
  `;
6640
- var defaultHoverStyle = css13`
6781
+ var defaultHoverStyle = css14`
6641
6782
  background-color: ${({ theme: theme2 }) => theme2.color.grey300};
6642
6783
  cursor: pointer;
6643
6784
  `;
6644
- var defaultFocusedStyle = css13`
6785
+ var defaultFocusedStyle = css14`
6645
6786
  ${defaultHoverStyle}
6646
6787
  `;
6647
6788
  var Container = styled21.label`
@@ -6734,15 +6875,15 @@ import { isNotNil as isNotNil13 } from "@wistia/type-guards";
6734
6875
  import { styled as styled25 } from "styled-components";
6735
6876
 
6736
6877
  // src/components/Label/Label.tsx
6737
- import { styled as styled22, css as css14 } from "styled-components";
6878
+ import { styled as styled22, css as css15 } from "styled-components";
6738
6879
  import { jsx as jsx142 } from "react/jsx-runtime";
6739
- var requiredStyle = css14`
6880
+ var requiredStyle = css15`
6740
6881
  &::after {
6741
6882
  color: red;
6742
6883
  content: ' *';
6743
6884
  }
6744
6885
  `;
6745
- var disabledStyle4 = css14`
6886
+ var disabledStyle4 = css15`
6746
6887
  color: ${({ theme: theme2 }) => theme2.color.grey500};
6747
6888
  `;
6748
6889
  var SPACE_BETWEEN_LABEL_AND_INPUT = "8px";
@@ -6818,9 +6959,9 @@ var FormFieldError = ({
6818
6959
  FormFieldError.displayName = "FormFieldError_VHS";
6819
6960
 
6820
6961
  // src/components/LabelDescription/LabelDescription.tsx
6821
- import { styled as styled24, css as css15 } from "styled-components";
6962
+ import { styled as styled24, css as css16 } from "styled-components";
6822
6963
  import { jsx as jsx144 } from "react/jsx-runtime";
6823
- var disabledStyle5 = css15`
6964
+ var disabledStyle5 = css16`
6824
6965
  color: ${({ theme: theme2 }) => theme2.color.grey500};
6825
6966
  `;
6826
6967
  var LabelDescriptionComponent = styled24.div`
@@ -7045,7 +7186,7 @@ CloseButton.displayName = "CloseButton_VHS";
7045
7186
 
7046
7187
  // src/components/CollapsibleGroup/CollapsibleGroup.tsx
7047
7188
  import { useEffect as useEffect11, useLayoutEffect as useLayoutEffect4, useState as useState15, useId as useId2 } from "react";
7048
- import { styled as styled29, css as css16 } from "styled-components";
7189
+ import { styled as styled29, css as css17 } from "styled-components";
7049
7190
  import { darken as darken3 } from "polished";
7050
7191
  import { isNil as isNil8, isNonEmptyString as isNonEmptyString5, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
7051
7192
  import { jsx as jsx150, jsxs as jsxs20 } from "react/jsx-runtime";
@@ -7130,7 +7271,7 @@ var Caret = styled29.span`
7130
7271
  width: 100%;
7131
7272
  }
7132
7273
  `;
7133
- var showOnHoverStyles = () => css16`
7274
+ var showOnHoverStyles = () => css17`
7134
7275
  opacity: 0;
7135
7276
  transition: opacity ${TRANSITION_TIME2} ease-out;
7136
7277
 
@@ -7974,19 +8115,19 @@ import { styled as styled35 } from "styled-components";
7974
8115
  import { isNotNil as isNotNil18 } from "@wistia/type-guards";
7975
8116
 
7976
8117
  // src/components/Input/InputStyledComponent.tsx
7977
- import { styled as styled33, css as css17 } from "styled-components";
7978
- var focusStyle = css17`
8118
+ import { styled as styled33, css as css18 } from "styled-components";
8119
+ var focusStyle = css18`
7979
8120
  border-color: ${({ theme: theme2 }) => theme2.color.brandBlue500};
7980
8121
  outline: none;
7981
8122
  `;
7982
- var errorStyle2 = css17`
8123
+ var errorStyle2 = css18`
7983
8124
  border-color: ${({ theme: theme2 }) => theme2.color.error500};
7984
8125
 
7985
8126
  &:focus {
7986
8127
  border-color: ${({ theme: theme2 }) => theme2.color.error600};
7987
8128
  }
7988
8129
  `;
7989
- var disabledStyle6 = css17`
8130
+ var disabledStyle6 = css18`
7990
8131
  -webkit-opacity: 0.5;
7991
8132
  -webkit-text-fill-color: ${({ theme: theme2 }) => theme2.color.grey700};
7992
8133
  color: ${({ theme: theme2 }) => theme2.color.grey900}; /* iOS */
@@ -7997,7 +8138,7 @@ var disabledStyle6 = css17`
7997
8138
  border-color: ${({ theme: theme2 }) => theme2.color.grey300};
7998
8139
  }
7999
8140
  `;
8000
- var readOnlyStyle = css17`
8141
+ var readOnlyStyle = css18`
8001
8142
  border: dashed 1px ${({ theme: theme2 }) => theme2.color.grey400};
8002
8143
  color: ${({ theme: theme2 }) => theme2.color.grey700};
8003
8144
  outline: none;
@@ -8006,15 +8147,15 @@ var readOnlyStyle = css17`
8006
8147
  border-color: ${({ theme: theme2 }) => theme2.color.grey300} !important;
8007
8148
  }
8008
8149
  `;
8009
- var clickToCopyStyle = css17`
8150
+ var clickToCopyStyle = css18`
8010
8151
  ${readOnlyStyle}
8011
8152
  flex: 1;
8012
8153
  `;
8013
- var textareaStyle = css17`
8154
+ var textareaStyle = css18`
8014
8155
  line-height: 20px;
8015
8156
  min-height: 80px;
8016
8157
  `;
8017
- var inputStyle = css17`
8158
+ var inputStyle = css18`
8018
8159
  background-color: white;
8019
8160
  border: 1px solid ${({ theme: theme2 }) => theme2.color.grey400};
8020
8161
  border-radius: 4px;
@@ -8083,11 +8224,11 @@ var InputStyledComponent = styled33.input`
8083
8224
 
8084
8225
  // src/components/Input/ClickToCopy.tsx
8085
8226
  import { useState as useState17, useEffect as useEffect15 } from "react";
8086
- import { styled as styled34, css as css18 } from "styled-components";
8227
+ import { styled as styled34, css as css19 } from "styled-components";
8087
8228
  import { isFunction as isFunction2 } from "@wistia/type-guards";
8088
8229
  import { darken as darken4 } from "polished";
8089
8230
  import { jsx as jsx159, jsxs as jsxs24 } from "react/jsx-runtime";
8090
- var clickToCopyWrapperEnabledStyles = css18`
8231
+ var clickToCopyWrapperEnabledStyles = css19`
8091
8232
  input {
8092
8233
  cursor: pointer;
8093
8234
  }
@@ -8102,10 +8243,10 @@ var ClickToCopyWrapper = styled34.div`
8102
8243
  position: relative;
8103
8244
  ${({ $disabled }) => !$disabled && clickToCopyWrapperEnabledStyles}
8104
8245
  `;
8105
- var disabledClickToCopyButtonStyles = css18`
8246
+ var disabledClickToCopyButtonStyles = css19`
8106
8247
  cursor: not-allowed;
8107
8248
  `;
8108
- var enabledClickToCopyButtonStyles = css18`
8249
+ var enabledClickToCopyButtonStyles = css19`
8109
8250
  &:hover {
8110
8251
  color: ${({ theme: theme2 }) => darken4("4%", theme2.color.grey700)};
8111
8252
  }
@@ -8619,15 +8760,15 @@ import { isNil as isNil10, isBoolean as isBoolean2 } from "@wistia/type-guards";
8619
8760
 
8620
8761
  // src/components/Select/Select.tsx
8621
8762
  import { forwardRef as forwardRef13 } from "react";
8622
- import { styled as styled38, css as css20 } from "styled-components";
8763
+ import { styled as styled38, css as css21 } from "styled-components";
8623
8764
  import { isBoolean, isNonEmptyString as isNonEmptyString7, isNotNil as isNotNil21 } from "@wistia/type-guards";
8624
8765
 
8625
8766
  // src/components/Select/SelectStyledComponent.tsx
8626
- import { styled as styled37, css as css19 } from "styled-components";
8627
- var focusStyle2 = css19`
8767
+ import { styled as styled37, css as css20 } from "styled-components";
8768
+ var focusStyle2 = css20`
8628
8769
  border: 1px solid ${({ theme: theme2 }) => theme2.color.brandBlue500};
8629
8770
  `;
8630
- var disabledStyle7 = css19`
8771
+ var disabledStyle7 = css20`
8631
8772
  color: ${({ theme: theme2 }) => theme2.color.grey900};
8632
8773
  cursor: not-allowed;
8633
8774
  opacity: 0.5;
@@ -8636,7 +8777,7 @@ var disabledStyle7 = css19`
8636
8777
  border-color: ${({ theme: theme2 }) => theme2.color.grey300};
8637
8778
  }
8638
8779
  `;
8639
- var errorStyle3 = css19`
8780
+ var errorStyle3 = css20`
8640
8781
  border: 1px solid ${({ theme: theme2 }) => theme2.color.error500};
8641
8782
  `;
8642
8783
  var SelectStyledComponent = styled37.select`
@@ -8705,7 +8846,7 @@ var SelectWrapper = styled38.div`
8705
8846
  top: ${({ theme: theme2 }) => theme2.spacing.space03};
8706
8847
 
8707
8848
  /* fakes the focus state of the svg for documentation purposes */
8708
- ${({ theme: theme2, $forceState }) => $forceState === "focus" && css20`
8849
+ ${({ theme: theme2, $forceState }) => $forceState === "focus" && css21`
8709
8850
  color: ${getSvgColor(theme2, false, true)};
8710
8851
  `}
8711
8852
  }
@@ -9232,7 +9373,7 @@ var Leaf = ({
9232
9373
 
9233
9374
  // src/components/RichTextEditor/Element.tsx
9234
9375
  import { useSelected, useFocused } from "slate-react";
9235
- import { styled as styled39, css as css21 } from "styled-components";
9376
+ import { styled as styled39, css as css22 } from "styled-components";
9236
9377
  import { jsx as jsx170, jsxs as jsxs28 } from "react/jsx-runtime";
9237
9378
  var Wrapper = styled39.span`
9238
9379
  display: 'inline-block';
@@ -9244,7 +9385,7 @@ var Image = styled39.img`
9244
9385
  max-width: 100%;
9245
9386
  user-select: none;
9246
9387
  `;
9247
- var listStyle = css21`
9388
+ var listStyle = css22`
9248
9389
  padding: 0 ${({ theme: theme2 }) => theme2.spacing.space05};
9249
9390
 
9250
9391
  li {
@@ -9260,7 +9401,7 @@ var EditorOrderedList = styled39.ol`
9260
9401
  var EditorUnorderedList = styled39.ul`
9261
9402
  ${listStyle}
9262
9403
  `;
9263
- var headerStyle = css21`
9404
+ var headerStyle = css22`
9264
9405
  font-weight: 500;
9265
9406
  `;
9266
9407
  var EditorHeading1 = styled39.h1`
@@ -10562,7 +10703,7 @@ LinkButton.displayName = "LinkButton_VHS";
10562
10703
 
10563
10704
  // src/components/List/List.tsx
10564
10705
  import { isNotNil as isNotNil29 } from "@wistia/type-guards";
10565
- import { styled as styled49, css as css22 } from "styled-components";
10706
+ import { styled as styled49, css as css23 } from "styled-components";
10566
10707
 
10567
10708
  // src/components/List/ListItem.tsx
10568
10709
  import { styled as styled48 } from "styled-components";
@@ -10581,7 +10722,7 @@ ListItem.displayName = "ListItem_VHS";
10581
10722
 
10582
10723
  // src/components/List/List.tsx
10583
10724
  import { jsx as jsx192, jsxs as jsxs33 } from "react/jsx-runtime";
10584
- var spacesStyle = css22`
10725
+ var spacesStyle = css23`
10585
10726
  overflow: hidden;
10586
10727
  padding-left: 0;
10587
10728
  vertical-align: bottom;
@@ -10603,7 +10744,7 @@ var spacesStyle = css22`
10603
10744
  }
10604
10745
  }
10605
10746
  `;
10606
- var commasStyle = css22`
10747
+ var commasStyle = css23`
10607
10748
  ${spacesStyle};
10608
10749
 
10609
10750
  li {
@@ -10613,7 +10754,7 @@ var commasStyle = css22`
10613
10754
  }
10614
10755
  }
10615
10756
  `;
10616
- var slashesStyle = css22`
10757
+ var slashesStyle = css23`
10617
10758
  ${spacesStyle};
10618
10759
 
10619
10760
  li {
@@ -10624,7 +10765,7 @@ var slashesStyle = css22`
10624
10765
  }
10625
10766
  }
10626
10767
  `;
10627
- var breadcrumbsStyle = css22`
10768
+ var breadcrumbsStyle = css23`
10628
10769
  ${spacesStyle};
10629
10770
 
10630
10771
  li {
@@ -10635,7 +10776,7 @@ var breadcrumbsStyle = css22`
10635
10776
  }
10636
10777
  }
10637
10778
  `;
10638
- var unbulletedStyle = css22`
10779
+ var unbulletedStyle = css23`
10639
10780
  list-style: none;
10640
10781
  padding-left: 0;
10641
10782
  `;
@@ -10722,7 +10863,7 @@ List.displayName = "List_VHS";
10722
10863
  import { DropdownMenuRadioGroup } from "@radix-ui/react-dropdown-menu";
10723
10864
 
10724
10865
  // src/components/Menu/Menu.tsx
10725
- import { styled as styled50, css as css23, keyframes } from "styled-components";
10866
+ import { styled as styled50, css as css24, keyframes } from "styled-components";
10726
10867
  import {
10727
10868
  DropdownMenu,
10728
10869
  DropdownMenuTrigger,
@@ -10752,7 +10893,7 @@ var close = keyframes`
10752
10893
  transform: scale(.97) translateY(-8px);
10753
10894
  }
10754
10895
  `;
10755
- var menuContentCss = css23`
10896
+ var menuContentCss = css24`
10756
10897
  animation: ${open} ${({ theme: theme2 }) => theme2.duration.productive.moderate}
10757
10898
  ${({ theme: theme2 }) => theme2.easing.entrance.productive};
10758
10899
  background: white;
@@ -10840,12 +10981,12 @@ import {
10840
10981
  DropdownMenuSubTrigger
10841
10982
  } from "@radix-ui/react-dropdown-menu";
10842
10983
  import { isNonEmptyString as isNonEmptyString13, isNotNil as isNotNil31, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
10843
- import { styled as styled51, css as css24 } from "styled-components";
10984
+ import { styled as styled51, css as css25 } from "styled-components";
10844
10985
  import { darken as darken5 } from "polished";
10845
10986
  import { jsx as jsx194, jsxs as jsxs35 } from "react/jsx-runtime";
10846
10987
  var hoverDarken2 = "0.04";
10847
10988
  var focusDarken = "0.08";
10848
- var dangerousMenuItemStyles = css24`
10989
+ var dangerousMenuItemStyles = css25`
10849
10990
  color: ${({ theme: theme2 }) => theme2.color.error700};
10850
10991
 
10851
10992
  &:focus,
@@ -10857,7 +10998,7 @@ var dangerousMenuItemStyles = css24`
10857
10998
  background-color: ${({ theme: theme2 }) => darken5(hoverDarken2, theme2.color.error100)};
10858
10999
  }
10859
11000
  `;
10860
- var pricingMenuItemStyles = css24`
11001
+ var pricingMenuItemStyles = css25`
10861
11002
  color: ${({ theme: theme2 }) => theme2.color.purple600};
10862
11003
 
10863
11004
  &:focus,
@@ -11172,11 +11313,11 @@ var SubMenu = ({ label, icon, description, children }) => {
11172
11313
  // src/components/MenuButton/MenuButton.tsx
11173
11314
  import { useCallback as useCallback13, cloneElement, useState as useState21, useLayoutEffect as useLayoutEffect5, useRef as useRef13 } from "react";
11174
11315
  import { isFunction as isFunction3, isNotNil as isNotNil34 } from "@wistia/type-guards";
11175
- import { styled as styled56, css as css26 } from "styled-components";
11316
+ import { styled as styled56, css as css27 } from "styled-components";
11176
11317
 
11177
11318
  // src/private/components/Menu/Menu.tsx
11178
11319
  import { forwardRef as forwardRef16, useRef as useRef12, useEffect as useEffect20 } from "react";
11179
- import { styled as styled54, css as css25 } from "styled-components";
11320
+ import { styled as styled54, css as css26 } from "styled-components";
11180
11321
  import { darken as darken6 } from "polished";
11181
11322
  import { isNotNil as isNotNil32, isNonEmptyString as isNonEmptyString14 } from "@wistia/type-guards";
11182
11323
  import { Fragment as Fragment12, jsx as jsx197, jsxs as jsxs37 } from "react/jsx-runtime";
@@ -11203,7 +11344,7 @@ var MenuComponent = styled54.div`
11203
11344
  padding: ${GUTTER_WIDTH};
11204
11345
  }
11205
11346
  `;
11206
- var dangerousMenuItemStyles2 = css25`
11347
+ var dangerousMenuItemStyles2 = css26`
11207
11348
  /* stylelint-disable no-descending-specificity */
11208
11349
  button,
11209
11350
  a {
@@ -11218,7 +11359,7 @@ var dangerousMenuItemStyles2 = css25`
11218
11359
  }
11219
11360
  }
11220
11361
  `;
11221
- var disabledMenuItemStyles = css25`
11362
+ var disabledMenuItemStyles = css26`
11222
11363
  button,
11223
11364
  a {
11224
11365
  background-color: transparent;
@@ -11407,11 +11548,11 @@ var MenuHeader = ({
11407
11548
  // src/components/MenuButton/MenuButton.tsx
11408
11549
  import { jsx as jsx199, jsxs as jsxs39 } from "react/jsx-runtime";
11409
11550
  var MARGIN_BETWEEN_BUTTON_AND_MENU = 8;
11410
- var menuPositionAboveCss = css26`
11551
+ var menuPositionAboveCss = css27`
11411
11552
  bottom: 0;
11412
11553
  margin-bottom: ${({ $dropdownButtonHeight }) => $dropdownButtonHeight + MARGIN_BETWEEN_BUTTON_AND_MENU}px;
11413
11554
  `;
11414
- var menuPositionBelowCss = css26`
11555
+ var menuPositionBelowCss = css27`
11415
11556
  margin-top: ${({ $dropdownButtonHeight }) => $dropdownButtonHeight + MARGIN_BETWEEN_BUTTON_AND_MENU}px;
11416
11557
  top: 0;
11417
11558
  `;
@@ -11547,7 +11688,7 @@ MenuButton.displayName = "MenuButton_VHS";
11547
11688
 
11548
11689
  // src/components/Modal/Modal.tsx
11549
11690
  import { forwardRef as forwardRef17, useEffect as useEffect21, useRef as useRef14 } from "react";
11550
- import { styled as styled58, css as css27 } from "styled-components";
11691
+ import { styled as styled58, css as css28 } from "styled-components";
11551
11692
  import { hasKey, isNotNil as isNotNil35, isNotUndefined as isNotUndefined15 } from "@wistia/type-guards";
11552
11693
  import { createPortal as createPortal3 } from "react-dom";
11553
11694
 
@@ -11594,14 +11735,14 @@ import { jsx as jsx200 } from "react/jsx-runtime";
11594
11735
  var StyledBackdrop = styled58(Backdrop)`
11595
11736
  display: flex;
11596
11737
 
11597
- ${({ $allowModalToExceedViewportBounds }) => $allowModalToExceedViewportBounds && css27`
11738
+ ${({ $allowModalToExceedViewportBounds }) => $allowModalToExceedViewportBounds && css28`
11598
11739
  ${mq.smAndUp} {
11599
11740
  padding: ${({ theme: theme2 }) => theme2.spacing.space05};
11600
11741
  }
11601
11742
  `}
11602
11743
  `;
11603
11744
  var StyledDialog = styled58(Dialog)`
11604
- ${({ $allowModalToExceedViewportBounds }) => $allowModalToExceedViewportBounds && css27`
11745
+ ${({ $allowModalToExceedViewportBounds }) => $allowModalToExceedViewportBounds && css28`
11605
11746
  ${mq.smAndUp} {
11606
11747
  max-height: min-content;
11607
11748
  margin: auto;
@@ -13269,7 +13410,7 @@ var RangeSelector = ({
13269
13410
  RangeSelector.displayName = "RangeSelector_VHS";
13270
13411
 
13271
13412
  // src/components/Slider/Slider.tsx
13272
- import { styled as styled67, css as css28 } from "styled-components";
13413
+ import { styled as styled67, css as css29 } from "styled-components";
13273
13414
  import ReactSlider from "react-slider";
13274
13415
  import {
13275
13416
  isFunction as isFunction4,
@@ -13281,7 +13422,7 @@ import {
13281
13422
  } from "@wistia/type-guards";
13282
13423
  import { jsx as jsx209 } from "react/jsx-runtime";
13283
13424
  var TRACK_SIZE = "4px";
13284
- var DisabledSliderStyles = css28`
13425
+ var DisabledSliderStyles = css29`
13285
13426
  opacity: 0.5;
13286
13427
 
13287
13428
  & * {
@@ -13446,7 +13587,7 @@ var Stack = forwardRef18(
13446
13587
  Stack.displayName = "Stack_VHS";
13447
13588
 
13448
13589
  // src/components/Switch/Switch.tsx
13449
- import { styled as styled69, css as css29 } from "styled-components";
13590
+ import { styled as styled69, css as css30 } from "styled-components";
13450
13591
  import { jsx as jsx211 } from "react/jsx-runtime";
13451
13592
  var SwitchComponent = styled69.button`
13452
13593
  background-color: white;
@@ -13485,7 +13626,7 @@ var SwitchComponent = styled69.button`
13485
13626
  opacity: 0.5;
13486
13627
  }
13487
13628
  `;
13488
- var ShowTextStyles = css29`
13629
+ var ShowTextStyles = css30`
13489
13630
  &::before,
13490
13631
  &::after {
13491
13632
  display: inline-block;