@wistia/vhs 3.0.1-beta.cd0ec91c.fd8df29 → 3.0.1-beta.de727c7e.149ab3d
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 +267 -411
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +34 -35
- package/dist/index.d.ts +34 -35
- package/dist/index.mjs +147 -291
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -15
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v3.0.1-beta.
|
|
3
|
+
* @license @wistia/vhs v3.0.1-beta.de727c7e.149ab3d
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -950,7 +950,7 @@ import { useState as useState3, useCallback as useCallback2 } from "react";
|
|
|
950
950
|
import { memo, useState as useState2, useEffect, useCallback, Fragment as Fragment3 } from "react";
|
|
951
951
|
import { createPortal } from "react-dom";
|
|
952
952
|
import { LiveMessage as LiveMessage2 } from "react-aria-live";
|
|
953
|
-
import
|
|
953
|
+
import styled3 from "styled-components";
|
|
954
954
|
import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
955
955
|
|
|
956
956
|
// src/components/Toast/ToastAnimation.tsx
|
|
@@ -1092,7 +1092,7 @@ import { forwardRef } from "react";
|
|
|
1092
1092
|
import { isNotNil as isNotNil3 } from "@wistia/type-guards";
|
|
1093
1093
|
|
|
1094
1094
|
// src/components/Button/ButtonContent.tsx
|
|
1095
|
-
import
|
|
1095
|
+
import styled from "styled-components";
|
|
1096
1096
|
import { isNotNil as isNotNil2 } from "@wistia/type-guards";
|
|
1097
1097
|
import { LiveMessage } from "react-aria-live";
|
|
1098
1098
|
|
|
@@ -2858,7 +2858,7 @@ var ButtonContent = ({
|
|
|
2858
2858
|
};
|
|
2859
2859
|
|
|
2860
2860
|
// src/components/Button/ButtonStyledComponent.tsx
|
|
2861
|
-
import
|
|
2861
|
+
import styled2, { css as css2 } from "styled-components";
|
|
2862
2862
|
import { darken, transparentize } from "polished";
|
|
2863
2863
|
var hoverDarken = "0.04";
|
|
2864
2864
|
var activeDarken = "0.08";
|
|
@@ -4456,7 +4456,7 @@ var usePreviousValue = (value) => {
|
|
|
4456
4456
|
};
|
|
4457
4457
|
|
|
4458
4458
|
// src/components/ActionModal/ActionModal.tsx
|
|
4459
|
-
import
|
|
4459
|
+
import styled12 from "styled-components";
|
|
4460
4460
|
import { isNotNil as isNotNil8 } from "@wistia/type-guards";
|
|
4461
4461
|
|
|
4462
4462
|
// src/components/ModalBase/ModalBase.tsx
|
|
@@ -4659,7 +4659,7 @@ var ModalBase = (props) => {
|
|
|
4659
4659
|
ModalBase.displayName = "ModalBase_VHS";
|
|
4660
4660
|
|
|
4661
4661
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
4662
|
-
import
|
|
4662
|
+
import styled4 from "styled-components";
|
|
4663
4663
|
import { isNil as isNil3 } from "@wistia/type-guards";
|
|
4664
4664
|
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
4665
4665
|
var getAlignment = (align) => {
|
|
@@ -4721,11 +4721,11 @@ ButtonGroup.displayName = "ButtonGroup_VHS";
|
|
|
4721
4721
|
|
|
4722
4722
|
// src/components/Text/Text.tsx
|
|
4723
4723
|
import { forwardRef as forwardRef2 } from "react";
|
|
4724
|
-
import
|
|
4724
|
+
import styled6, { css as css6 } from "styled-components";
|
|
4725
4725
|
|
|
4726
4726
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
4727
4727
|
import { isNotNil as isNotNil6 } from "@wistia/type-guards";
|
|
4728
|
-
import
|
|
4728
|
+
import styled5, { css as css5 } from "styled-components";
|
|
4729
4729
|
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
4730
4730
|
var ellipsisStyle = css5`
|
|
4731
4731
|
overflow: hidden;
|
|
@@ -4917,7 +4917,7 @@ var Text = forwardRef2(
|
|
|
4917
4917
|
Text.displayName = "Text_VHS";
|
|
4918
4918
|
|
|
4919
4919
|
// src/components/Backdrop/Backdrop.tsx
|
|
4920
|
-
import
|
|
4920
|
+
import styled7 from "styled-components";
|
|
4921
4921
|
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
4922
4922
|
var alignVerticalMap = {
|
|
4923
4923
|
normal: "normal",
|
|
@@ -4966,12 +4966,12 @@ Backdrop.displayName = "Backdrop_VHS";
|
|
|
4966
4966
|
|
|
4967
4967
|
// src/components/IconButton/IconButton.tsx
|
|
4968
4968
|
import { forwardRef as forwardRef3, useMemo as useMemo5 } from "react";
|
|
4969
|
-
import
|
|
4969
|
+
import styled11, { css as css9 } from "styled-components";
|
|
4970
4970
|
import { transparentize as transparentize2 } from "polished";
|
|
4971
4971
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
4972
4972
|
|
|
4973
4973
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
4974
|
-
import
|
|
4974
|
+
import styled8, { css as css7 } from "styled-components";
|
|
4975
4975
|
import { isNotNil as isNotNil7 } from "@wistia/type-guards";
|
|
4976
4976
|
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
4977
4977
|
var screenReaderOnlyStyle = css7`
|
|
@@ -5009,11 +5009,11 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly_VHS";
|
|
|
5009
5009
|
|
|
5010
5010
|
// src/components/Tooltip/Tooltip.tsx
|
|
5011
5011
|
import { useEffect as useEffect9, useState as useState12, useRef as useRef9, useMemo as useMemo4, useId } from "react";
|
|
5012
|
-
import
|
|
5012
|
+
import styled10 from "styled-components";
|
|
5013
5013
|
import { isString as isString3 } from "@wistia/type-guards";
|
|
5014
5014
|
|
|
5015
5015
|
// src/components/Tooltip/TooltipContent.tsx
|
|
5016
|
-
import
|
|
5016
|
+
import styled9, { css as css8 } from "styled-components";
|
|
5017
5017
|
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
5018
5018
|
var ARROW_SIZE = 8;
|
|
5019
5019
|
var StyledTooltipLabel = styled9.div`
|
|
@@ -5681,7 +5681,7 @@ ActionModal.displayName = "ActionModal_VHS";
|
|
|
5681
5681
|
// src/components/Avatar/Avatar.tsx
|
|
5682
5682
|
import { useMemo as useMemo6, useState as useState13, useEffect as useEffect10 } from "react";
|
|
5683
5683
|
import { isNil as isNil6 } from "@wistia/type-guards";
|
|
5684
|
-
import
|
|
5684
|
+
import styled13 from "styled-components";
|
|
5685
5685
|
|
|
5686
5686
|
// src/components/Avatar/generateContactAvatarColors.tsx
|
|
5687
5687
|
var colorVariants = {
|
|
@@ -5831,7 +5831,7 @@ var Avatar = ({
|
|
|
5831
5831
|
Avatar.displayName = "Avatar_VHS";
|
|
5832
5832
|
|
|
5833
5833
|
// src/components/BackgroundImage/BackgroundImage.tsx
|
|
5834
|
-
import
|
|
5834
|
+
import styled14 from "styled-components";
|
|
5835
5835
|
import { isString as isString5 } from "@wistia/type-guards";
|
|
5836
5836
|
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
5837
5837
|
var shouldWrap = (src) => {
|
|
@@ -5935,7 +5935,7 @@ var BackgroundImage = ({
|
|
|
5935
5935
|
BackgroundImage.displayName = "BackgroundImage_VHS";
|
|
5936
5936
|
|
|
5937
5937
|
// src/components/Badge/Badge.tsx
|
|
5938
|
-
import
|
|
5938
|
+
import styled15 from "styled-components";
|
|
5939
5939
|
import { isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
5940
5940
|
|
|
5941
5941
|
// src/components/Badge/getBadgeColors.ts
|
|
@@ -6046,11 +6046,11 @@ var Badge = ({
|
|
|
6046
6046
|
Badge.displayName = "Badge_VHS";
|
|
6047
6047
|
|
|
6048
6048
|
// src/components/Banner/Banner.tsx
|
|
6049
|
-
import
|
|
6049
|
+
import styled17 from "styled-components";
|
|
6050
6050
|
import { isNotNil as isNotNil10 } from "@wistia/type-guards";
|
|
6051
6051
|
|
|
6052
6052
|
// src/components/Banner/BannerChildComponents.tsx
|
|
6053
|
-
import
|
|
6053
|
+
import styled16, { css as css11 } from "styled-components";
|
|
6054
6054
|
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
6055
6055
|
var BodyComponent = styled16.div`
|
|
6056
6056
|
color: ${({ theme: theme2 }) => theme2.color.grey900};
|
|
@@ -6149,7 +6149,7 @@ Banner.displayName = "Banner_VHS";
|
|
|
6149
6149
|
|
|
6150
6150
|
// src/components/Box/Box.tsx
|
|
6151
6151
|
import { forwardRef as forwardRef4 } from "react";
|
|
6152
|
-
import
|
|
6152
|
+
import styled18 from "styled-components";
|
|
6153
6153
|
import { isNotNil as isNotNil11 } from "@wistia/type-guards";
|
|
6154
6154
|
import { jsx as jsx138 } from "react/jsx-runtime";
|
|
6155
6155
|
var ALIGN_CONTENT_MAP = {
|
|
@@ -6289,11 +6289,11 @@ Box.displayName = "Box_VHS";
|
|
|
6289
6289
|
|
|
6290
6290
|
// src/components/ButtonLink/ButtonLink.tsx
|
|
6291
6291
|
import { forwardRef as forwardRef6 } from "react";
|
|
6292
|
-
import
|
|
6292
|
+
import styled20 from "styled-components";
|
|
6293
6293
|
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
6294
6294
|
|
|
6295
6295
|
// src/components/Link/Link.tsx
|
|
6296
|
-
import
|
|
6296
|
+
import styled19 from "styled-components";
|
|
6297
6297
|
import { forwardRef as forwardRef5 } from "react";
|
|
6298
6298
|
|
|
6299
6299
|
// src/components/Link/linkStyle.tsx
|
|
@@ -6509,149 +6509,8 @@ 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
|
-
`;
|
|
6653
6512
|
var StyledButtonLink = styled20(Link)`
|
|
6654
|
-
${
|
|
6513
|
+
${buttonStyle};
|
|
6655
6514
|
|
|
6656
6515
|
/* Links are disabled by removing their href */
|
|
6657
6516
|
&:not([href]) {
|
|
@@ -6690,42 +6549,39 @@ var ButtonLink = forwardRef6(
|
|
|
6690
6549
|
}
|
|
6691
6550
|
return null;
|
|
6692
6551
|
};
|
|
6693
|
-
|
|
6694
|
-
|
|
6552
|
+
const styledProps = {
|
|
6553
|
+
ref,
|
|
6554
|
+
$buttonColor: buttonColor,
|
|
6555
|
+
$forceState: forceState,
|
|
6556
|
+
$fullWidth: fullWidth,
|
|
6557
|
+
$icon: icon,
|
|
6558
|
+
$iconPosition: iconPosition,
|
|
6559
|
+
$isLoading: false,
|
|
6560
|
+
$labelWrap: labelWrap,
|
|
6561
|
+
$size: size,
|
|
6562
|
+
$square: square,
|
|
6563
|
+
$textAlign: textAlign,
|
|
6564
|
+
$variant: variant,
|
|
6565
|
+
beforeAction,
|
|
6566
|
+
disabled,
|
|
6567
|
+
href,
|
|
6568
|
+
params,
|
|
6569
|
+
type,
|
|
6570
|
+
unstyled: true,
|
|
6571
|
+
...otherProps
|
|
6572
|
+
};
|
|
6573
|
+
return /* @__PURE__ */ jsx140(StyledButtonLink, { ...styledProps, children: /* @__PURE__ */ jsx140(
|
|
6574
|
+
ButtonContent,
|
|
6695
6575
|
{
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
$labelWrap: labelWrap,
|
|
6704
|
-
$size: size,
|
|
6705
|
-
$square: square,
|
|
6706
|
-
$textAlign: textAlign,
|
|
6707
|
-
$variant: variant,
|
|
6708
|
-
...beforeAction && { beforeAction },
|
|
6709
|
-
disabled,
|
|
6710
|
-
href,
|
|
6711
|
-
...params && { params },
|
|
6712
|
-
type,
|
|
6713
|
-
unstyled: true,
|
|
6714
|
-
...otherProps,
|
|
6715
|
-
children: /* @__PURE__ */ jsx140(
|
|
6716
|
-
ButtonContent,
|
|
6717
|
-
{
|
|
6718
|
-
icon,
|
|
6719
|
-
iconName,
|
|
6720
|
-
iconPosition,
|
|
6721
|
-
isLoading: false,
|
|
6722
|
-
size,
|
|
6723
|
-
textAlign,
|
|
6724
|
-
children: getContent()
|
|
6725
|
-
}
|
|
6726
|
-
)
|
|
6576
|
+
icon,
|
|
6577
|
+
iconName,
|
|
6578
|
+
iconPosition,
|
|
6579
|
+
isLoading: false,
|
|
6580
|
+
size,
|
|
6581
|
+
textAlign,
|
|
6582
|
+
children: getContent()
|
|
6727
6583
|
}
|
|
6728
|
-
);
|
|
6584
|
+
) });
|
|
6729
6585
|
}
|
|
6730
6586
|
);
|
|
6731
6587
|
ButtonLink.displayName = "ButtonLink_VHS";
|
|
@@ -6735,7 +6591,7 @@ import { forwardRef as forwardRef7, useState as useState14, isValidElement } fro
|
|
|
6735
6591
|
import { isNonEmptyString as isNonEmptyString4, isNotUndefined as isNotUndefined3 } from "@wistia/type-guards";
|
|
6736
6592
|
|
|
6737
6593
|
// src/components/Checkbox/OptionStyledComponent.tsx
|
|
6738
|
-
import
|
|
6594
|
+
import styled21, { css as css13 } from "styled-components";
|
|
6739
6595
|
var OptionWrapper = styled21.input`
|
|
6740
6596
|
align-self: flex-start;
|
|
6741
6597
|
border-radius: 3px;
|
|
@@ -6760,15 +6616,15 @@ var OptionSubLabel = styled21.div`
|
|
|
6760
6616
|
font-size: 12px;
|
|
6761
6617
|
line-height: 16px;
|
|
6762
6618
|
`;
|
|
6763
|
-
var disabledStyle3 =
|
|
6619
|
+
var disabledStyle3 = css13`
|
|
6764
6620
|
cursor: not-allowed;
|
|
6765
6621
|
opacity: 0.5;
|
|
6766
6622
|
`;
|
|
6767
|
-
var errorHoverStyle =
|
|
6623
|
+
var errorHoverStyle = css13`
|
|
6768
6624
|
border-color: transparent;
|
|
6769
6625
|
`;
|
|
6770
|
-
var errorFocusedStyle =
|
|
6771
|
-
var errorStyle =
|
|
6626
|
+
var errorFocusedStyle = css13``;
|
|
6627
|
+
var errorStyle = css13`
|
|
6772
6628
|
background-color: ${({ theme: theme2 }) => theme2.color.error100};
|
|
6773
6629
|
border: 1px solid ${({ theme: theme2 }) => theme2.color.error500};
|
|
6774
6630
|
|
|
@@ -6778,11 +6634,11 @@ var errorStyle = css14`
|
|
|
6778
6634
|
border-color: transparent !important;
|
|
6779
6635
|
}
|
|
6780
6636
|
`;
|
|
6781
|
-
var defaultHoverStyle =
|
|
6637
|
+
var defaultHoverStyle = css13`
|
|
6782
6638
|
background-color: ${({ theme: theme2 }) => theme2.color.grey300};
|
|
6783
6639
|
cursor: pointer;
|
|
6784
6640
|
`;
|
|
6785
|
-
var defaultFocusedStyle =
|
|
6641
|
+
var defaultFocusedStyle = css13`
|
|
6786
6642
|
${defaultHoverStyle}
|
|
6787
6643
|
`;
|
|
6788
6644
|
var Container = styled21.label`
|
|
@@ -6868,22 +6724,22 @@ var Checkbox = forwardRef7(
|
|
|
6868
6724
|
Checkbox.displayName = "Checkbox_VHS";
|
|
6869
6725
|
|
|
6870
6726
|
// src/components/CheckboxGroup/CheckboxGroup.tsx
|
|
6871
|
-
import
|
|
6727
|
+
import styled26 from "styled-components";
|
|
6872
6728
|
import { isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
6873
6729
|
|
|
6874
6730
|
// src/private/components/FormFieldWrapper/FormFieldWrapper.tsx
|
|
6875
|
-
import
|
|
6731
|
+
import styled25 from "styled-components";
|
|
6876
6732
|
|
|
6877
6733
|
// src/components/Label/Label.tsx
|
|
6878
|
-
import
|
|
6734
|
+
import styled22, { css as css14 } from "styled-components";
|
|
6879
6735
|
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
6880
|
-
var requiredStyle =
|
|
6736
|
+
var requiredStyle = css14`
|
|
6881
6737
|
&::after {
|
|
6882
6738
|
color: red;
|
|
6883
6739
|
content: ' *';
|
|
6884
6740
|
}
|
|
6885
6741
|
`;
|
|
6886
|
-
var disabledStyle4 =
|
|
6742
|
+
var disabledStyle4 = css14`
|
|
6887
6743
|
color: ${({ theme: theme2 }) => theme2.color.grey500};
|
|
6888
6744
|
`;
|
|
6889
6745
|
var SPACE_BETWEEN_LABEL_AND_INPUT = "8px";
|
|
@@ -6935,7 +6791,7 @@ var Label = ({
|
|
|
6935
6791
|
Label.displayName = "Label_VHS";
|
|
6936
6792
|
|
|
6937
6793
|
// src/components/FormFieldError/FormFieldError.tsx
|
|
6938
|
-
import
|
|
6794
|
+
import styled23 from "styled-components";
|
|
6939
6795
|
import { isNil as isNil7 } from "@wistia/type-guards";
|
|
6940
6796
|
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
6941
6797
|
var FieldError = styled23.div`
|
|
@@ -6959,9 +6815,9 @@ var FormFieldError = ({
|
|
|
6959
6815
|
FormFieldError.displayName = "FormFieldError_VHS";
|
|
6960
6816
|
|
|
6961
6817
|
// src/components/LabelDescription/LabelDescription.tsx
|
|
6962
|
-
import
|
|
6818
|
+
import styled24, { css as css15 } from "styled-components";
|
|
6963
6819
|
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
6964
|
-
var disabledStyle5 =
|
|
6820
|
+
var disabledStyle5 = css15`
|
|
6965
6821
|
color: ${({ theme: theme2 }) => theme2.color.grey500};
|
|
6966
6822
|
`;
|
|
6967
6823
|
var LabelDescriptionComponent = styled24.div`
|
|
@@ -7078,7 +6934,7 @@ CheckboxGroup.displayName = "CheckboxGroup_VHS";
|
|
|
7078
6934
|
|
|
7079
6935
|
// src/components/ClickArea/ClickArea.tsx
|
|
7080
6936
|
import { forwardRef as forwardRef8, useCallback as useCallback9 } from "react";
|
|
7081
|
-
import
|
|
6937
|
+
import styled27 from "styled-components";
|
|
7082
6938
|
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
7083
6939
|
var ClickAreaComponent = styled27.div`
|
|
7084
6940
|
cursor: pointer;
|
|
@@ -7122,7 +6978,7 @@ var ClickArea = forwardRef8(
|
|
|
7122
6978
|
ClickArea.displayName = "ClickArea_VHS";
|
|
7123
6979
|
|
|
7124
6980
|
// src/components/CloseButton/CloseButton.tsx
|
|
7125
|
-
import
|
|
6981
|
+
import styled28 from "styled-components";
|
|
7126
6982
|
|
|
7127
6983
|
// src/components/CloseButton/CloseIcon.tsx
|
|
7128
6984
|
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
@@ -7186,7 +7042,7 @@ CloseButton.displayName = "CloseButton_VHS";
|
|
|
7186
7042
|
|
|
7187
7043
|
// src/components/CollapsibleGroup/CollapsibleGroup.tsx
|
|
7188
7044
|
import { useEffect as useEffect11, useLayoutEffect as useLayoutEffect4, useState as useState15, useId as useId2 } from "react";
|
|
7189
|
-
import
|
|
7045
|
+
import styled29, { css as css16 } from "styled-components";
|
|
7190
7046
|
import { darken as darken3 } from "polished";
|
|
7191
7047
|
import { isNil as isNil8, isNonEmptyString as isNonEmptyString5, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
|
|
7192
7048
|
import { jsx as jsx150, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
@@ -7271,7 +7127,7 @@ var Caret = styled29.span`
|
|
|
7271
7127
|
width: 100%;
|
|
7272
7128
|
}
|
|
7273
7129
|
`;
|
|
7274
|
-
var showOnHoverStyles = () =>
|
|
7130
|
+
var showOnHoverStyles = () => css16`
|
|
7275
7131
|
opacity: 0;
|
|
7276
7132
|
transition: opacity ${TRANSITION_TIME2} ease-out;
|
|
7277
7133
|
|
|
@@ -7478,7 +7334,7 @@ var CollapsibleGroup = ({
|
|
|
7478
7334
|
CollapsibleGroup.displayName = "CollapsibleGroup_VHS";
|
|
7479
7335
|
|
|
7480
7336
|
// src/components/Divider/Divider.tsx
|
|
7481
|
-
import
|
|
7337
|
+
import styled30 from "styled-components";
|
|
7482
7338
|
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
7483
7339
|
var DividerComponent = styled30.hr`
|
|
7484
7340
|
background: none;
|
|
@@ -7515,7 +7371,7 @@ Divider.displayName = "Divider_VHS";
|
|
|
7515
7371
|
|
|
7516
7372
|
// src/components/FileSelect/FileSelect.tsx
|
|
7517
7373
|
import { forwardRef as forwardRef9 } from "react";
|
|
7518
|
-
import
|
|
7374
|
+
import styled31 from "styled-components";
|
|
7519
7375
|
import { jsx as jsx152, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
7520
7376
|
var maxFileSizeInGigs = 26;
|
|
7521
7377
|
var defaultMaximumFileSize = maxFileSizeInGigs * 1024;
|
|
@@ -7611,7 +7467,7 @@ import { isNotNil as isNotNil15, isNotUndefined as isNotUndefined5, isUndefined
|
|
|
7611
7467
|
// src/components/FormGlobalError/FormGlobalError.tsx
|
|
7612
7468
|
import { forwardRef as forwardRef10 } from "react";
|
|
7613
7469
|
import { useFormikContext as useFormikContext2 } from "formik";
|
|
7614
|
-
import
|
|
7470
|
+
import styled32 from "styled-components";
|
|
7615
7471
|
import { isNonEmptyString as isNonEmptyString6, isNotNil as isNotNil14 } from "@wistia/type-guards";
|
|
7616
7472
|
import { jsx as jsx153, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
7617
7473
|
var GlobalErrorsContainer = styled32.div`
|
|
@@ -7943,7 +7799,7 @@ FormButtons.displayName = "FormButtons_VHS";
|
|
|
7943
7799
|
|
|
7944
7800
|
// src/components/FormField/FormField.tsx
|
|
7945
7801
|
import { forwardRef as forwardRef14 } from "react";
|
|
7946
|
-
import
|
|
7802
|
+
import styled43 from "styled-components";
|
|
7947
7803
|
import { Field } from "formik";
|
|
7948
7804
|
|
|
7949
7805
|
// src/components/FormField/inputTypeMap.ts
|
|
@@ -8111,23 +7967,23 @@ import { isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
|
8111
7967
|
|
|
8112
7968
|
// src/components/Input/Input.tsx
|
|
8113
7969
|
import { forwardRef as forwardRef11, useEffect as useEffect16, useRef as useRef11 } from "react";
|
|
8114
|
-
import
|
|
7970
|
+
import styled35 from "styled-components";
|
|
8115
7971
|
import { isNotNil as isNotNil18 } from "@wistia/type-guards";
|
|
8116
7972
|
|
|
8117
7973
|
// src/components/Input/InputStyledComponent.tsx
|
|
8118
|
-
import
|
|
8119
|
-
var focusStyle =
|
|
7974
|
+
import styled33, { css as css17 } from "styled-components";
|
|
7975
|
+
var focusStyle = css17`
|
|
8120
7976
|
border-color: ${({ theme: theme2 }) => theme2.color.brandBlue500};
|
|
8121
7977
|
outline: none;
|
|
8122
7978
|
`;
|
|
8123
|
-
var errorStyle2 =
|
|
7979
|
+
var errorStyle2 = css17`
|
|
8124
7980
|
border-color: ${({ theme: theme2 }) => theme2.color.error500};
|
|
8125
7981
|
|
|
8126
7982
|
&:focus {
|
|
8127
7983
|
border-color: ${({ theme: theme2 }) => theme2.color.error600};
|
|
8128
7984
|
}
|
|
8129
7985
|
`;
|
|
8130
|
-
var disabledStyle6 =
|
|
7986
|
+
var disabledStyle6 = css17`
|
|
8131
7987
|
-webkit-opacity: 0.5;
|
|
8132
7988
|
-webkit-text-fill-color: ${({ theme: theme2 }) => theme2.color.grey700};
|
|
8133
7989
|
color: ${({ theme: theme2 }) => theme2.color.grey900}; /* iOS */
|
|
@@ -8138,7 +7994,7 @@ var disabledStyle6 = css18`
|
|
|
8138
7994
|
border-color: ${({ theme: theme2 }) => theme2.color.grey300};
|
|
8139
7995
|
}
|
|
8140
7996
|
`;
|
|
8141
|
-
var readOnlyStyle =
|
|
7997
|
+
var readOnlyStyle = css17`
|
|
8142
7998
|
border: dashed 1px ${({ theme: theme2 }) => theme2.color.grey400};
|
|
8143
7999
|
color: ${({ theme: theme2 }) => theme2.color.grey700};
|
|
8144
8000
|
outline: none;
|
|
@@ -8147,15 +8003,15 @@ var readOnlyStyle = css18`
|
|
|
8147
8003
|
border-color: ${({ theme: theme2 }) => theme2.color.grey300} !important;
|
|
8148
8004
|
}
|
|
8149
8005
|
`;
|
|
8150
|
-
var clickToCopyStyle =
|
|
8006
|
+
var clickToCopyStyle = css17`
|
|
8151
8007
|
${readOnlyStyle}
|
|
8152
8008
|
flex: 1;
|
|
8153
8009
|
`;
|
|
8154
|
-
var textareaStyle =
|
|
8010
|
+
var textareaStyle = css17`
|
|
8155
8011
|
line-height: 20px;
|
|
8156
8012
|
min-height: 80px;
|
|
8157
8013
|
`;
|
|
8158
|
-
var inputStyle =
|
|
8014
|
+
var inputStyle = css17`
|
|
8159
8015
|
background-color: white;
|
|
8160
8016
|
border: 1px solid ${({ theme: theme2 }) => theme2.color.grey400};
|
|
8161
8017
|
border-radius: 4px;
|
|
@@ -8224,11 +8080,11 @@ var InputStyledComponent = styled33.input`
|
|
|
8224
8080
|
|
|
8225
8081
|
// src/components/Input/ClickToCopy.tsx
|
|
8226
8082
|
import { useState as useState17, useEffect as useEffect15 } from "react";
|
|
8227
|
-
import
|
|
8083
|
+
import styled34, { css as css18 } from "styled-components";
|
|
8228
8084
|
import { isFunction as isFunction2 } from "@wistia/type-guards";
|
|
8229
8085
|
import { darken as darken4 } from "polished";
|
|
8230
8086
|
import { jsx as jsx159, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
8231
|
-
var clickToCopyWrapperEnabledStyles =
|
|
8087
|
+
var clickToCopyWrapperEnabledStyles = css18`
|
|
8232
8088
|
input {
|
|
8233
8089
|
cursor: pointer;
|
|
8234
8090
|
}
|
|
@@ -8243,10 +8099,10 @@ var ClickToCopyWrapper = styled34.div`
|
|
|
8243
8099
|
position: relative;
|
|
8244
8100
|
${({ $disabled }) => !$disabled && clickToCopyWrapperEnabledStyles}
|
|
8245
8101
|
`;
|
|
8246
|
-
var disabledClickToCopyButtonStyles =
|
|
8102
|
+
var disabledClickToCopyButtonStyles = css18`
|
|
8247
8103
|
cursor: not-allowed;
|
|
8248
8104
|
`;
|
|
8249
|
-
var enabledClickToCopyButtonStyles =
|
|
8105
|
+
var enabledClickToCopyButtonStyles = css18`
|
|
8250
8106
|
&:hover {
|
|
8251
8107
|
color: ${({ theme: theme2 }) => darken4("4%", theme2.color.grey700)};
|
|
8252
8108
|
}
|
|
@@ -8605,7 +8461,7 @@ FormConnectorInput.displayName = "FormConnectorInput";
|
|
|
8605
8461
|
import { useCallback as useCallback11 } from "react";
|
|
8606
8462
|
|
|
8607
8463
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
8608
|
-
import
|
|
8464
|
+
import styled36 from "styled-components";
|
|
8609
8465
|
import { isNotNil as isNotNil20 } from "@wistia/type-guards";
|
|
8610
8466
|
|
|
8611
8467
|
// src/components/Radio/Radio.tsx
|
|
@@ -8760,15 +8616,15 @@ import { isNil as isNil10, isBoolean as isBoolean2 } from "@wistia/type-guards";
|
|
|
8760
8616
|
|
|
8761
8617
|
// src/components/Select/Select.tsx
|
|
8762
8618
|
import { forwardRef as forwardRef13 } from "react";
|
|
8763
|
-
import
|
|
8619
|
+
import styled38, { css as css20 } from "styled-components";
|
|
8764
8620
|
import { isBoolean, isNonEmptyString as isNonEmptyString7, isNotNil as isNotNil21 } from "@wistia/type-guards";
|
|
8765
8621
|
|
|
8766
8622
|
// src/components/Select/SelectStyledComponent.tsx
|
|
8767
|
-
import
|
|
8768
|
-
var focusStyle2 =
|
|
8623
|
+
import styled37, { css as css19 } from "styled-components";
|
|
8624
|
+
var focusStyle2 = css19`
|
|
8769
8625
|
border: 1px solid ${({ theme: theme2 }) => theme2.color.brandBlue500};
|
|
8770
8626
|
`;
|
|
8771
|
-
var disabledStyle7 =
|
|
8627
|
+
var disabledStyle7 = css19`
|
|
8772
8628
|
color: ${({ theme: theme2 }) => theme2.color.grey900};
|
|
8773
8629
|
cursor: not-allowed;
|
|
8774
8630
|
opacity: 0.5;
|
|
@@ -8777,7 +8633,7 @@ var disabledStyle7 = css20`
|
|
|
8777
8633
|
border-color: ${({ theme: theme2 }) => theme2.color.grey300};
|
|
8778
8634
|
}
|
|
8779
8635
|
`;
|
|
8780
|
-
var errorStyle3 =
|
|
8636
|
+
var errorStyle3 = css19`
|
|
8781
8637
|
border: 1px solid ${({ theme: theme2 }) => theme2.color.error500};
|
|
8782
8638
|
`;
|
|
8783
8639
|
var SelectStyledComponent = styled37.select`
|
|
@@ -8846,7 +8702,7 @@ var SelectWrapper = styled38.div`
|
|
|
8846
8702
|
top: ${({ theme: theme2 }) => theme2.spacing.space03};
|
|
8847
8703
|
|
|
8848
8704
|
/* fakes the focus state of the svg for documentation purposes */
|
|
8849
|
-
${({ theme: theme2, $forceState }) => $forceState === "focus" &&
|
|
8705
|
+
${({ theme: theme2, $forceState }) => $forceState === "focus" && css20`
|
|
8850
8706
|
color: ${getSvgColor(theme2, false, true)};
|
|
8851
8707
|
`}
|
|
8852
8708
|
}
|
|
@@ -9057,12 +8913,12 @@ FormConnectorHidden.displayName = "FormConnectorHidden";
|
|
|
9057
8913
|
|
|
9058
8914
|
// src/private/components/FormConnectorRichTextEditor/FormConnectorRichTextEditor.tsx
|
|
9059
8915
|
import { useState as useState19, useEffect as useEffect19 } from "react";
|
|
9060
|
-
import
|
|
8916
|
+
import styled42 from "styled-components";
|
|
9061
8917
|
import { isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
|
|
9062
8918
|
|
|
9063
8919
|
// src/components/RichTextEditor/RichTextEditor.tsx
|
|
9064
8920
|
import { useCallback as useCallback12, useMemo as useMemo7, useEffect as useEffect18 } from "react";
|
|
9065
|
-
import
|
|
8921
|
+
import styled41 from "styled-components";
|
|
9066
8922
|
import { Editable, withReact, Slate, ReactEditor } from "slate-react";
|
|
9067
8923
|
import { createEditor, Transforms as Transforms5, Element as Element6, Text as Text4 } from "slate";
|
|
9068
8924
|
import { withHistory } from "slate-history";
|
|
@@ -9373,7 +9229,7 @@ var Leaf = ({
|
|
|
9373
9229
|
|
|
9374
9230
|
// src/components/RichTextEditor/Element.tsx
|
|
9375
9231
|
import { useSelected, useFocused } from "slate-react";
|
|
9376
|
-
import
|
|
9232
|
+
import styled39, { css as css21 } from "styled-components";
|
|
9377
9233
|
import { jsx as jsx170, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
9378
9234
|
var Wrapper = styled39.span`
|
|
9379
9235
|
display: 'inline-block';
|
|
@@ -9385,7 +9241,7 @@ var Image = styled39.img`
|
|
|
9385
9241
|
max-width: 100%;
|
|
9386
9242
|
user-select: none;
|
|
9387
9243
|
`;
|
|
9388
|
-
var listStyle =
|
|
9244
|
+
var listStyle = css21`
|
|
9389
9245
|
padding: 0 ${({ theme: theme2 }) => theme2.spacing.space05};
|
|
9390
9246
|
|
|
9391
9247
|
li {
|
|
@@ -9401,7 +9257,7 @@ var EditorOrderedList = styled39.ol`
|
|
|
9401
9257
|
var EditorUnorderedList = styled39.ul`
|
|
9402
9258
|
${listStyle}
|
|
9403
9259
|
`;
|
|
9404
|
-
var headerStyle =
|
|
9260
|
+
var headerStyle = css21`
|
|
9405
9261
|
font-weight: 500;
|
|
9406
9262
|
`;
|
|
9407
9263
|
var EditorHeading1 = styled39.h1`
|
|
@@ -9493,7 +9349,7 @@ var Element2 = ({
|
|
|
9493
9349
|
|
|
9494
9350
|
// src/components/RichTextEditor/EditorButtons.tsx
|
|
9495
9351
|
import { useSlate } from "slate-react";
|
|
9496
|
-
import
|
|
9352
|
+
import styled40 from "styled-components";
|
|
9497
9353
|
import { Node as Node2 } from "slate";
|
|
9498
9354
|
import { isNonEmptyString as isNonEmptyString10 } from "@wistia/type-guards";
|
|
9499
9355
|
|
|
@@ -10410,7 +10266,7 @@ var FormField = forwardRef14(
|
|
|
10410
10266
|
FormField.displayName = "FormField_VHS";
|
|
10411
10267
|
|
|
10412
10268
|
// src/components/FullScreenModal/FullScreenModal.tsx
|
|
10413
|
-
import
|
|
10269
|
+
import styled44 from "styled-components";
|
|
10414
10270
|
import { isNonEmptyString as isNonEmptyString12 } from "@wistia/type-guards";
|
|
10415
10271
|
import { jsx as jsx187, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
10416
10272
|
var CloseButton2 = styled44(Button)`
|
|
@@ -10465,7 +10321,7 @@ var FullScreenModal = ({
|
|
|
10465
10321
|
FullScreenModal.displayName = "FullScreenModal_VHS";
|
|
10466
10322
|
|
|
10467
10323
|
// src/components/Image/Image.tsx
|
|
10468
|
-
import
|
|
10324
|
+
import styled45 from "styled-components";
|
|
10469
10325
|
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
10470
10326
|
var getFillStyle2 = ($fillContainer) => {
|
|
10471
10327
|
if ($fillContainer === "horizontal") {
|
|
@@ -10510,7 +10366,7 @@ var Image3 = ({
|
|
|
10510
10366
|
Image3.displayName = "Image_VHS";
|
|
10511
10367
|
|
|
10512
10368
|
// src/components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
10513
|
-
import
|
|
10369
|
+
import styled46 from "styled-components";
|
|
10514
10370
|
import { isNotNil as isNotNil27, isArray as isArray3 } from "@wistia/type-guards";
|
|
10515
10371
|
import { jsx as jsx189, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10516
10372
|
var KeyboardShortcutComponent = styled46.div`
|
|
@@ -10628,7 +10484,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_VHS";
|
|
|
10628
10484
|
|
|
10629
10485
|
// src/components/LinkButton/LinkButton.tsx
|
|
10630
10486
|
import { forwardRef as forwardRef15 } from "react";
|
|
10631
|
-
import
|
|
10487
|
+
import styled47 from "styled-components";
|
|
10632
10488
|
import { isNotNil as isNotNil28, isNil as isNil15 } from "@wistia/type-guards";
|
|
10633
10489
|
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
10634
10490
|
var isEnterOrSpace = (event) => event.key === "Enter" || event.key === " " || event.key === "Spacebar";
|
|
@@ -10703,10 +10559,10 @@ LinkButton.displayName = "LinkButton_VHS";
|
|
|
10703
10559
|
|
|
10704
10560
|
// src/components/List/List.tsx
|
|
10705
10561
|
import { isNotNil as isNotNil29 } from "@wistia/type-guards";
|
|
10706
|
-
import
|
|
10562
|
+
import styled49, { css as css22 } from "styled-components";
|
|
10707
10563
|
|
|
10708
10564
|
// src/components/List/ListItem.tsx
|
|
10709
|
-
import
|
|
10565
|
+
import styled48 from "styled-components";
|
|
10710
10566
|
import { isNil as isNil16 } from "@wistia/type-guards";
|
|
10711
10567
|
import { jsx as jsx191 } from "react/jsx-runtime";
|
|
10712
10568
|
var ListItemComponent = styled48.li`
|
|
@@ -10722,7 +10578,7 @@ ListItem.displayName = "ListItem_VHS";
|
|
|
10722
10578
|
|
|
10723
10579
|
// src/components/List/List.tsx
|
|
10724
10580
|
import { jsx as jsx192, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
10725
|
-
var spacesStyle =
|
|
10581
|
+
var spacesStyle = css22`
|
|
10726
10582
|
overflow: hidden;
|
|
10727
10583
|
padding-left: 0;
|
|
10728
10584
|
vertical-align: bottom;
|
|
@@ -10744,7 +10600,7 @@ var spacesStyle = css23`
|
|
|
10744
10600
|
}
|
|
10745
10601
|
}
|
|
10746
10602
|
`;
|
|
10747
|
-
var commasStyle =
|
|
10603
|
+
var commasStyle = css22`
|
|
10748
10604
|
${spacesStyle};
|
|
10749
10605
|
|
|
10750
10606
|
li {
|
|
@@ -10754,7 +10610,7 @@ var commasStyle = css23`
|
|
|
10754
10610
|
}
|
|
10755
10611
|
}
|
|
10756
10612
|
`;
|
|
10757
|
-
var slashesStyle =
|
|
10613
|
+
var slashesStyle = css22`
|
|
10758
10614
|
${spacesStyle};
|
|
10759
10615
|
|
|
10760
10616
|
li {
|
|
@@ -10765,7 +10621,7 @@ var slashesStyle = css23`
|
|
|
10765
10621
|
}
|
|
10766
10622
|
}
|
|
10767
10623
|
`;
|
|
10768
|
-
var breadcrumbsStyle =
|
|
10624
|
+
var breadcrumbsStyle = css22`
|
|
10769
10625
|
${spacesStyle};
|
|
10770
10626
|
|
|
10771
10627
|
li {
|
|
@@ -10776,7 +10632,7 @@ var breadcrumbsStyle = css23`
|
|
|
10776
10632
|
}
|
|
10777
10633
|
}
|
|
10778
10634
|
`;
|
|
10779
|
-
var unbulletedStyle =
|
|
10635
|
+
var unbulletedStyle = css22`
|
|
10780
10636
|
list-style: none;
|
|
10781
10637
|
padding-left: 0;
|
|
10782
10638
|
`;
|
|
@@ -10863,7 +10719,7 @@ List.displayName = "List_VHS";
|
|
|
10863
10719
|
import { DropdownMenuRadioGroup } from "@radix-ui/react-dropdown-menu";
|
|
10864
10720
|
|
|
10865
10721
|
// src/components/Menu/Menu.tsx
|
|
10866
|
-
import
|
|
10722
|
+
import styled50, { css as css23, keyframes } from "styled-components";
|
|
10867
10723
|
import {
|
|
10868
10724
|
DropdownMenu,
|
|
10869
10725
|
DropdownMenuTrigger,
|
|
@@ -10893,7 +10749,7 @@ var close = keyframes`
|
|
|
10893
10749
|
transform: scale(.97) translateY(-8px);
|
|
10894
10750
|
}
|
|
10895
10751
|
`;
|
|
10896
|
-
var menuContentCss =
|
|
10752
|
+
var menuContentCss = css23`
|
|
10897
10753
|
animation: ${open} ${({ theme: theme2 }) => theme2.duration.productive.moderate}
|
|
10898
10754
|
${({ theme: theme2 }) => theme2.easing.entrance.productive};
|
|
10899
10755
|
background: white;
|
|
@@ -10981,12 +10837,12 @@ import {
|
|
|
10981
10837
|
DropdownMenuSubTrigger
|
|
10982
10838
|
} from "@radix-ui/react-dropdown-menu";
|
|
10983
10839
|
import { isNonEmptyString as isNonEmptyString13, isNotNil as isNotNil31, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
10984
|
-
import
|
|
10840
|
+
import styled51, { css as css24 } from "styled-components";
|
|
10985
10841
|
import { darken as darken5 } from "polished";
|
|
10986
10842
|
import { jsx as jsx194, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10987
10843
|
var hoverDarken2 = "0.04";
|
|
10988
10844
|
var focusDarken = "0.08";
|
|
10989
|
-
var dangerousMenuItemStyles =
|
|
10845
|
+
var dangerousMenuItemStyles = css24`
|
|
10990
10846
|
color: ${({ theme: theme2 }) => theme2.color.error700};
|
|
10991
10847
|
|
|
10992
10848
|
&:focus,
|
|
@@ -10998,7 +10854,7 @@ var dangerousMenuItemStyles = css25`
|
|
|
10998
10854
|
background-color: ${({ theme: theme2 }) => darken5(hoverDarken2, theme2.color.error100)};
|
|
10999
10855
|
}
|
|
11000
10856
|
`;
|
|
11001
|
-
var pricingMenuItemStyles =
|
|
10857
|
+
var pricingMenuItemStyles = css24`
|
|
11002
10858
|
color: ${({ theme: theme2 }) => theme2.color.purple600};
|
|
11003
10859
|
|
|
11004
10860
|
&:focus,
|
|
@@ -11240,7 +11096,7 @@ var SubMenuTrigger = ({
|
|
|
11240
11096
|
};
|
|
11241
11097
|
|
|
11242
11098
|
// src/components/Menu/MenuLabel.tsx
|
|
11243
|
-
import
|
|
11099
|
+
import styled52 from "styled-components";
|
|
11244
11100
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
11245
11101
|
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
11246
11102
|
var StyledMenuLabel = styled52(DropdownMenuLabel)`
|
|
@@ -11262,7 +11118,7 @@ var MenuLabel = ({ children, ...props }) => {
|
|
|
11262
11118
|
|
|
11263
11119
|
// src/components/Menu/SubMenu.tsx
|
|
11264
11120
|
import { useState as useState20 } from "react";
|
|
11265
|
-
import
|
|
11121
|
+
import styled53 from "styled-components";
|
|
11266
11122
|
import {
|
|
11267
11123
|
DropdownMenuPortal as DropdownMenuPortal2,
|
|
11268
11124
|
DropdownMenuSub,
|
|
@@ -11313,11 +11169,11 @@ var SubMenu = ({ label, icon, description, children }) => {
|
|
|
11313
11169
|
// src/components/MenuButton/MenuButton.tsx
|
|
11314
11170
|
import { useCallback as useCallback13, cloneElement, useState as useState21, useLayoutEffect as useLayoutEffect5, useRef as useRef13 } from "react";
|
|
11315
11171
|
import { isFunction as isFunction3, isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
11316
|
-
import
|
|
11172
|
+
import styled56, { css as css26 } from "styled-components";
|
|
11317
11173
|
|
|
11318
11174
|
// src/private/components/Menu/Menu.tsx
|
|
11319
11175
|
import { forwardRef as forwardRef16, useRef as useRef12, useEffect as useEffect20 } from "react";
|
|
11320
|
-
import
|
|
11176
|
+
import styled54, { css as css25 } from "styled-components";
|
|
11321
11177
|
import { darken as darken6 } from "polished";
|
|
11322
11178
|
import { isNotNil as isNotNil32, isNonEmptyString as isNonEmptyString14 } from "@wistia/type-guards";
|
|
11323
11179
|
import { Fragment as Fragment12, jsx as jsx197, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
@@ -11344,7 +11200,7 @@ var MenuComponent = styled54.div`
|
|
|
11344
11200
|
padding: ${GUTTER_WIDTH};
|
|
11345
11201
|
}
|
|
11346
11202
|
`;
|
|
11347
|
-
var dangerousMenuItemStyles2 =
|
|
11203
|
+
var dangerousMenuItemStyles2 = css25`
|
|
11348
11204
|
/* stylelint-disable no-descending-specificity */
|
|
11349
11205
|
button,
|
|
11350
11206
|
a {
|
|
@@ -11359,7 +11215,7 @@ var dangerousMenuItemStyles2 = css26`
|
|
|
11359
11215
|
}
|
|
11360
11216
|
}
|
|
11361
11217
|
`;
|
|
11362
|
-
var disabledMenuItemStyles =
|
|
11218
|
+
var disabledMenuItemStyles = css25`
|
|
11363
11219
|
button,
|
|
11364
11220
|
a {
|
|
11365
11221
|
background-color: transparent;
|
|
@@ -11520,7 +11376,7 @@ var Menu2 = forwardRef16(
|
|
|
11520
11376
|
Menu2.displayName = "Menu";
|
|
11521
11377
|
|
|
11522
11378
|
// src/components/MenuButton/MenuHeader.tsx
|
|
11523
|
-
import
|
|
11379
|
+
import styled55 from "styled-components";
|
|
11524
11380
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
11525
11381
|
import { jsx as jsx198, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
11526
11382
|
var HeaderAndButton = styled55.div`
|
|
@@ -11548,11 +11404,11 @@ var MenuHeader = ({
|
|
|
11548
11404
|
// src/components/MenuButton/MenuButton.tsx
|
|
11549
11405
|
import { jsx as jsx199, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
11550
11406
|
var MARGIN_BETWEEN_BUTTON_AND_MENU = 8;
|
|
11551
|
-
var menuPositionAboveCss =
|
|
11407
|
+
var menuPositionAboveCss = css26`
|
|
11552
11408
|
bottom: 0;
|
|
11553
11409
|
margin-bottom: ${({ $dropdownButtonHeight }) => $dropdownButtonHeight + MARGIN_BETWEEN_BUTTON_AND_MENU}px;
|
|
11554
11410
|
`;
|
|
11555
|
-
var menuPositionBelowCss =
|
|
11411
|
+
var menuPositionBelowCss = css26`
|
|
11556
11412
|
margin-top: ${({ $dropdownButtonHeight }) => $dropdownButtonHeight + MARGIN_BETWEEN_BUTTON_AND_MENU}px;
|
|
11557
11413
|
top: 0;
|
|
11558
11414
|
`;
|
|
@@ -11688,12 +11544,12 @@ MenuButton.displayName = "MenuButton_VHS";
|
|
|
11688
11544
|
|
|
11689
11545
|
// src/components/Modal/Modal.tsx
|
|
11690
11546
|
import { forwardRef as forwardRef17, useEffect as useEffect21, useRef as useRef14 } from "react";
|
|
11691
|
-
import
|
|
11547
|
+
import styled58, { css as css27 } from "styled-components";
|
|
11692
11548
|
import { hasKey, isNotNil as isNotNil35, isNotUndefined as isNotUndefined15 } from "@wistia/type-guards";
|
|
11693
11549
|
import { createPortal as createPortal3 } from "react-dom";
|
|
11694
11550
|
|
|
11695
11551
|
// src/components/Modal/Dialog.tsx
|
|
11696
|
-
import
|
|
11552
|
+
import styled57 from "styled-components";
|
|
11697
11553
|
var Dialog = styled57.div`
|
|
11698
11554
|
background-color: white;
|
|
11699
11555
|
box-sizing: border-box;
|
|
@@ -11735,14 +11591,14 @@ import { jsx as jsx200 } from "react/jsx-runtime";
|
|
|
11735
11591
|
var StyledBackdrop = styled58(Backdrop)`
|
|
11736
11592
|
display: flex;
|
|
11737
11593
|
|
|
11738
|
-
${({ $allowModalToExceedViewportBounds }) => $allowModalToExceedViewportBounds &&
|
|
11594
|
+
${({ $allowModalToExceedViewportBounds }) => $allowModalToExceedViewportBounds && css27`
|
|
11739
11595
|
${mq.smAndUp} {
|
|
11740
11596
|
padding: ${({ theme: theme2 }) => theme2.spacing.space05};
|
|
11741
11597
|
}
|
|
11742
11598
|
`}
|
|
11743
11599
|
`;
|
|
11744
11600
|
var StyledDialog = styled58(Dialog)`
|
|
11745
|
-
${({ $allowModalToExceedViewportBounds }) => $allowModalToExceedViewportBounds &&
|
|
11601
|
+
${({ $allowModalToExceedViewportBounds }) => $allowModalToExceedViewportBounds && css27`
|
|
11746
11602
|
${mq.smAndUp} {
|
|
11747
11603
|
max-height: min-content;
|
|
11748
11604
|
margin: auto;
|
|
@@ -11866,7 +11722,7 @@ Modal.displayName = "Modal_VHS";
|
|
|
11866
11722
|
ModalContent.displayName = "ModalContent_VHS";
|
|
11867
11723
|
|
|
11868
11724
|
// src/components/Modal/ModalParts.tsx
|
|
11869
|
-
import
|
|
11725
|
+
import styled59 from "styled-components";
|
|
11870
11726
|
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
11871
11727
|
var ModalHeader = styled59.div`
|
|
11872
11728
|
align-items: center;
|
|
@@ -11910,7 +11766,7 @@ var ModalCloseButton2 = ({ onClick, ...props }) => {
|
|
|
11910
11766
|
};
|
|
11911
11767
|
|
|
11912
11768
|
// src/components/Paper/Paper.tsx
|
|
11913
|
-
import
|
|
11769
|
+
import styled60 from "styled-components";
|
|
11914
11770
|
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
11915
11771
|
var PaperComponent = styled60.div`
|
|
11916
11772
|
background-color: white;
|
|
@@ -11931,7 +11787,7 @@ var Paper = ({ children, elevation = 1, ...otherProps }) => {
|
|
|
11931
11787
|
Paper.displayName = "Paper_VHS";
|
|
11932
11788
|
|
|
11933
11789
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11934
|
-
import
|
|
11790
|
+
import styled61 from "styled-components";
|
|
11935
11791
|
import { jsx as jsx203, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
11936
11792
|
var progressBarHeight = "8px";
|
|
11937
11793
|
var ProgressBarContainer = styled61.div`
|
|
@@ -12007,13 +11863,13 @@ ProgressBar.displayName = "ProgressBar_VHS";
|
|
|
12007
11863
|
|
|
12008
11864
|
// src/components/RangeSelector/RangeSelector.tsx
|
|
12009
11865
|
import { useEffect as useEffect24, useState as useState24 } from "react";
|
|
12010
|
-
import
|
|
11866
|
+
import styled66 from "styled-components";
|
|
12011
11867
|
import { isSameDay as isSameDay3 } from "date-fns";
|
|
12012
11868
|
|
|
12013
11869
|
// src/private/components/RangeSelectorCalendar/RangeSelectorCalendar.tsx
|
|
12014
11870
|
import { useEffect as useEffect22, useMemo as useMemo8, useState as useState22 } from "react";
|
|
12015
11871
|
import { isNotNil as isNotNil37, isNil as isNil17 } from "@wistia/type-guards";
|
|
12016
|
-
import
|
|
11872
|
+
import styled63 from "styled-components";
|
|
12017
11873
|
import { debounce as debounce2 } from "throttle-debounce";
|
|
12018
11874
|
import {
|
|
12019
11875
|
addDays,
|
|
@@ -12028,7 +11884,7 @@ import {
|
|
|
12028
11884
|
} from "date-fns";
|
|
12029
11885
|
|
|
12030
11886
|
// src/private/components/Calendar/Calendar.tsx
|
|
12031
|
-
import
|
|
11887
|
+
import styled62 from "styled-components";
|
|
12032
11888
|
import {
|
|
12033
11889
|
isBefore,
|
|
12034
11890
|
isAfter,
|
|
@@ -12550,12 +12406,12 @@ RangeSelectorCalendar.displayName = "RangeSelectorCalendar";
|
|
|
12550
12406
|
|
|
12551
12407
|
// src/private/components/RangeSelectorInput/RangeSelectorInput.tsx
|
|
12552
12408
|
import { useCallback as useCallback14, useEffect as useEffect23, useRef as useRef15, useState as useState23 } from "react";
|
|
12553
|
-
import
|
|
12409
|
+
import styled65 from "styled-components";
|
|
12554
12410
|
import { endOfDay as endOfDay3 } from "date-fns";
|
|
12555
12411
|
import { isNotUndefined as isNotUndefined17, isUndefined as isUndefined4, isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
12556
12412
|
|
|
12557
12413
|
// src/private/components/RangeSelectorInput/ErrorMessages.tsx
|
|
12558
|
-
import
|
|
12414
|
+
import styled64 from "styled-components";
|
|
12559
12415
|
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
12560
12416
|
var ErrorMessagesList = styled64.ul`
|
|
12561
12417
|
list-style: none;
|
|
@@ -13410,7 +13266,7 @@ var RangeSelector = ({
|
|
|
13410
13266
|
RangeSelector.displayName = "RangeSelector_VHS";
|
|
13411
13267
|
|
|
13412
13268
|
// src/components/Slider/Slider.tsx
|
|
13413
|
-
import
|
|
13269
|
+
import styled67, { css as css28 } from "styled-components";
|
|
13414
13270
|
import ReactSlider from "react-slider";
|
|
13415
13271
|
import {
|
|
13416
13272
|
isFunction as isFunction4,
|
|
@@ -13422,7 +13278,7 @@ import {
|
|
|
13422
13278
|
} from "@wistia/type-guards";
|
|
13423
13279
|
import { jsx as jsx209 } from "react/jsx-runtime";
|
|
13424
13280
|
var TRACK_SIZE = "4px";
|
|
13425
|
-
var DisabledSliderStyles =
|
|
13281
|
+
var DisabledSliderStyles = css28`
|
|
13426
13282
|
opacity: 0.5;
|
|
13427
13283
|
|
|
13428
13284
|
& * {
|
|
@@ -13559,7 +13415,7 @@ Slider.displayName = "Slider_VHS";
|
|
|
13559
13415
|
|
|
13560
13416
|
// src/components/Stack/Stack.tsx
|
|
13561
13417
|
import { forwardRef as forwardRef18 } from "react";
|
|
13562
|
-
import
|
|
13418
|
+
import styled68 from "styled-components";
|
|
13563
13419
|
import { jsx as jsx210 } from "react/jsx-runtime";
|
|
13564
13420
|
var StyledStack = styled68.div`
|
|
13565
13421
|
display: flex;
|
|
@@ -13587,7 +13443,7 @@ var Stack = forwardRef18(
|
|
|
13587
13443
|
Stack.displayName = "Stack_VHS";
|
|
13588
13444
|
|
|
13589
13445
|
// src/components/Switch/Switch.tsx
|
|
13590
|
-
import
|
|
13446
|
+
import styled69, { css as css29 } from "styled-components";
|
|
13591
13447
|
import { jsx as jsx211 } from "react/jsx-runtime";
|
|
13592
13448
|
var SwitchComponent = styled69.button`
|
|
13593
13449
|
background-color: white;
|
|
@@ -13626,7 +13482,7 @@ var SwitchComponent = styled69.button`
|
|
|
13626
13482
|
opacity: 0.5;
|
|
13627
13483
|
}
|
|
13628
13484
|
`;
|
|
13629
|
-
var ShowTextStyles =
|
|
13485
|
+
var ShowTextStyles = css29`
|
|
13630
13486
|
&::before,
|
|
13631
13487
|
&::after {
|
|
13632
13488
|
display: inline-block;
|
|
@@ -13708,7 +13564,7 @@ var Switch = ({
|
|
|
13708
13564
|
Switch.displayName = "Switch_VHS";
|
|
13709
13565
|
|
|
13710
13566
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
13711
|
-
import
|
|
13567
|
+
import styled70 from "styled-components";
|
|
13712
13568
|
import { isNotNil as isNotNil43 } from "@wistia/type-guards";
|
|
13713
13569
|
import { jsx as jsx212, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
13714
13570
|
var ThumbnailComponent = styled70.div`
|
|
@@ -13864,7 +13720,7 @@ var Thumbnail = ({
|
|
|
13864
13720
|
Thumbnail.displayName = "Thumbnail_VHS";
|
|
13865
13721
|
|
|
13866
13722
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
13867
|
-
import
|
|
13723
|
+
import styled71 from "styled-components";
|
|
13868
13724
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
13869
13725
|
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
13870
13726
|
var ThumbnailCollageContainer = styled71.div`
|
|
@@ -13922,7 +13778,7 @@ var ThumbnailCollage = ({
|
|
|
13922
13778
|
};
|
|
13923
13779
|
|
|
13924
13780
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
13925
|
-
import
|
|
13781
|
+
import styled72 from "styled-components";
|
|
13926
13782
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
13927
13783
|
import { jsx as jsx214, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
13928
13784
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|