@wistia/vhs 3.0.1-beta.88c76a64.3b8594a → 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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v3.0.1-beta.88c76a64.3b8594a
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
  *
@@ -6642,8 +6642,149 @@ Link.displayName = "Link_VHS";
6642
6642
 
6643
6643
  // src/components/ButtonLink/ButtonLink.tsx
6644
6644
  var import_jsx_runtime140 = require("react/jsx-runtime");
6645
+ var buttonLinkStyle = import_styled_components29.css`
6646
+ align-items: center;
6647
+ background-color: transparent;
6648
+ background-image: none;
6649
+ border: none;
6650
+ box-shadow: none;
6651
+ color: inherit;
6652
+ cursor: pointer;
6653
+ display: inline-flex;
6654
+ font: inherit;
6655
+ justify-content: center;
6656
+ line-height: 1;
6657
+ padding: 0;
6658
+ text-align: left;
6659
+ vertical-align: middle;
6660
+ appearance: none;
6661
+ border-radius: ${({ theme: theme2 }) => theme2.button.borderRadius};
6662
+ border-style: solid;
6663
+ border-width: 1px;
6664
+ font-weight: ${({ theme: theme2 }) => theme2.font.weight.medium};
6665
+ text-decoration: none;
6666
+ transition: all ${({ theme: theme2 }) => theme2.duration.productive.moderate};
6667
+
6668
+ &:focus {
6669
+ outline: none;
6670
+ }
6671
+
6672
+ &[aria-disabled='true'] {
6673
+ opacity: 0.4;
6674
+ }
6675
+
6676
+ /* border-radius */
6677
+ ${({ $square }) => $square === true && import_styled_components29.css`
6678
+ border-radius: 0;
6679
+ `}
6680
+
6681
+ /* label wrapping */
6682
+ white-space: ${({ $labelWrap }) => $labelWrap === true ? "wrap" : "nowrap"};
6683
+
6684
+ /* size styles */
6685
+ ${({ $size, theme: theme2 }) => {
6686
+ if ($size === "lg") {
6687
+ return import_styled_components29.css`
6688
+ font-size: 16px;
6689
+ line-height: 24px;
6690
+ padding: ${theme2.spacing.space02} ${theme2.spacing.space04};
6691
+ `;
6692
+ }
6693
+ if ($size === "md") {
6694
+ return import_styled_components29.css`
6695
+ font-size: 14px;
6696
+ line-height: 20px;
6697
+ padding: ${theme2.spacing.space02} ${theme2.spacing.space03};
6698
+ `;
6699
+ }
6700
+ if ($size === "sm") {
6701
+ return import_styled_components29.css`
6702
+ font-size: 12px;
6703
+ line-height: 18px;
6704
+ padding: 2px ${theme2.spacing.space02};
6705
+ `;
6706
+ }
6707
+ return import_styled_components29.css``;
6708
+ }}
6709
+
6710
+ /* full width */
6711
+ ${({ $fullWidth }) => $fullWidth && import_styled_components29.css`
6712
+ width: 100%;
6713
+ `}
6714
+
6715
+ /* variant styles */
6716
+ ${({ $variant, $buttonColor }) => {
6717
+ if ($variant === "primary" || $variant === "dangerous") {
6718
+ return import_styled_components29.css`
6719
+ background-color: ${$buttonColor};
6720
+ border-color: ${$buttonColor};
6721
+ color: white;
6722
+
6723
+ &:focus-visible {
6724
+ box-shadow: inset 0 0 0 1px white;
6725
+ }
6726
+
6727
+ &:hover:not([aria-disabled='true']) {
6728
+ background-color: ${$buttonColor};
6729
+ border-color: ${$buttonColor};
6730
+ opacity: 0.9;
6731
+ }
6732
+
6733
+ &:active:not([aria-disabled='true']) {
6734
+ background-color: ${$buttonColor};
6735
+ border-color: ${$buttonColor};
6736
+ opacity: 0.8;
6737
+ }
6738
+ `;
6739
+ }
6740
+ if ($variant === "secondary") {
6741
+ return import_styled_components29.css`
6742
+ background-color: transparent;
6743
+ border-color: ${$buttonColor};
6744
+ color: ${$buttonColor};
6745
+
6746
+ &:focus-visible {
6747
+ box-shadow:
6748
+ inset 0 0 0 1px white,
6749
+ inset 0 0 0 2px ${$buttonColor};
6750
+ }
6751
+
6752
+ &:hover:not([aria-disabled='true']) {
6753
+ background-color: rgb(0 0 0 / 10%);
6754
+ }
6755
+
6756
+ &:active:not([aria-disabled='true']) {
6757
+ background-color: rgb(0 0 0 / 20%);
6758
+ }
6759
+ `;
6760
+ }
6761
+ if ($variant === "tertiary") {
6762
+ return import_styled_components29.css`
6763
+ background-color: transparent;
6764
+ border-color: transparent;
6765
+ color: ${$buttonColor};
6766
+
6767
+ &:focus-visible {
6768
+ border-color: ${$buttonColor};
6769
+ box-shadow:
6770
+ inset 0 0 0 1px white,
6771
+ inset 0 0 0 2px ${$buttonColor};
6772
+ }
6773
+
6774
+ &:hover:not([aria-disabled='true']) {
6775
+ background-color: rgb(0 0 0 / 10%);
6776
+ }
6777
+
6778
+ &:active:not([aria-disabled='true']) {
6779
+ background-color: rgb(0 0 0 / 20%);
6780
+ }
6781
+ `;
6782
+ }
6783
+ return import_styled_components29.css``;
6784
+ }}
6785
+ `;
6645
6786
  var StyledButtonLink = (0, import_styled_components29.styled)(Link)`
6646
- ${buttonStyle};
6787
+ ${buttonLinkStyle};
6647
6788
 
6648
6789
  /* Links are disabled by removing their href */
6649
6790
  &:not([href]) {
@@ -6697,10 +6838,10 @@ var ButtonLink = (0, import_react35.forwardRef)(
6697
6838
  $square: square,
6698
6839
  $textAlign: textAlign,
6699
6840
  $variant: variant,
6700
- beforeAction,
6841
+ ...beforeAction && { beforeAction },
6701
6842
  disabled,
6702
6843
  href,
6703
- params,
6844
+ ...params && { params },
6704
6845
  type,
6705
6846
  unstyled: true,
6706
6847
  ...otherProps,