@wistia/vhs 3.0.1-beta.73611361.306133d → 3.0.1-beta.88c76a64.3b8594a
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 +270 -273
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +33 -32
- package/dist/index.d.ts +33 -32
- package/dist/index.mjs +108 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
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.88c76a64.3b8594a
|
|
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 styled3 from "styled-components";
|
|
953
|
+
import { styled as 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 styled from "styled-components";
|
|
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 styled2,
|
|
2861
|
+
import { styled as 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 styled12 from "styled-components";
|
|
4459
|
+
import { styled as 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 styled4 from "styled-components";
|
|
4662
|
+
import { styled as 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 styled6,
|
|
4724
|
+
import { styled as 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 styled5,
|
|
4728
|
+
import { styled as 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 styled7 from "styled-components";
|
|
4920
|
+
import { styled as 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 styled11,
|
|
4969
|
+
import { styled as 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 styled8,
|
|
4974
|
+
import { styled as 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 styled10 from "styled-components";
|
|
5012
|
+
import { styled as 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 styled9,
|
|
5016
|
+
import { styled as 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 styled13 from "styled-components";
|
|
5684
|
+
import { styled as 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 styled14 from "styled-components";
|
|
5834
|
+
import { styled as 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 styled15 from "styled-components";
|
|
5938
|
+
import { styled as 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 styled17 from "styled-components";
|
|
6049
|
+
import { styled as 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 styled16,
|
|
6053
|
+
import { styled as 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 styled18 from "styled-components";
|
|
6152
|
+
import { styled as 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 styled20 from "styled-components";
|
|
6292
|
+
import { styled as 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 styled19 from "styled-components";
|
|
6296
|
+
import { styled as styled19 } from "styled-components";
|
|
6297
6297
|
import { forwardRef as forwardRef5 } from "react";
|
|
6298
6298
|
|
|
6299
6299
|
// src/components/Link/linkStyle.tsx
|
|
@@ -6549,44 +6549,41 @@ var ButtonLink = forwardRef6(
|
|
|
6549
6549
|
}
|
|
6550
6550
|
return null;
|
|
6551
6551
|
};
|
|
6552
|
-
return (
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
)
|
|
6588
|
-
}
|
|
6589
|
-
)
|
|
6552
|
+
return /* @__PURE__ */ jsx140(
|
|
6553
|
+
StyledButtonLink,
|
|
6554
|
+
{
|
|
6555
|
+
ref,
|
|
6556
|
+
$buttonColor: buttonColor,
|
|
6557
|
+
$forceState: forceState,
|
|
6558
|
+
$fullWidth: fullWidth,
|
|
6559
|
+
$icon: icon,
|
|
6560
|
+
$iconPosition: iconPosition,
|
|
6561
|
+
$isLoading: false,
|
|
6562
|
+
$labelWrap: labelWrap,
|
|
6563
|
+
$size: size,
|
|
6564
|
+
$square: square,
|
|
6565
|
+
$textAlign: textAlign,
|
|
6566
|
+
$variant: variant,
|
|
6567
|
+
beforeAction,
|
|
6568
|
+
disabled,
|
|
6569
|
+
href,
|
|
6570
|
+
params,
|
|
6571
|
+
type,
|
|
6572
|
+
unstyled: true,
|
|
6573
|
+
...otherProps,
|
|
6574
|
+
children: /* @__PURE__ */ jsx140(
|
|
6575
|
+
ButtonContent,
|
|
6576
|
+
{
|
|
6577
|
+
icon,
|
|
6578
|
+
iconName,
|
|
6579
|
+
iconPosition,
|
|
6580
|
+
isLoading: false,
|
|
6581
|
+
size,
|
|
6582
|
+
textAlign,
|
|
6583
|
+
children: getContent()
|
|
6584
|
+
}
|
|
6585
|
+
)
|
|
6586
|
+
}
|
|
6590
6587
|
);
|
|
6591
6588
|
}
|
|
6592
6589
|
);
|
|
@@ -6597,7 +6594,7 @@ import { forwardRef as forwardRef7, useState as useState14, isValidElement } fro
|
|
|
6597
6594
|
import { isNonEmptyString as isNonEmptyString4, isNotUndefined as isNotUndefined3 } from "@wistia/type-guards";
|
|
6598
6595
|
|
|
6599
6596
|
// src/components/Checkbox/OptionStyledComponent.tsx
|
|
6600
|
-
import styled21,
|
|
6597
|
+
import { styled as styled21, css as css13 } from "styled-components";
|
|
6601
6598
|
var OptionWrapper = styled21.input`
|
|
6602
6599
|
align-self: flex-start;
|
|
6603
6600
|
border-radius: 3px;
|
|
@@ -6730,14 +6727,14 @@ var Checkbox = forwardRef7(
|
|
|
6730
6727
|
Checkbox.displayName = "Checkbox_VHS";
|
|
6731
6728
|
|
|
6732
6729
|
// src/components/CheckboxGroup/CheckboxGroup.tsx
|
|
6733
|
-
import styled26 from "styled-components";
|
|
6730
|
+
import { styled as styled26 } from "styled-components";
|
|
6734
6731
|
import { isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
6735
6732
|
|
|
6736
6733
|
// src/private/components/FormFieldWrapper/FormFieldWrapper.tsx
|
|
6737
|
-
import styled25 from "styled-components";
|
|
6734
|
+
import { styled as styled25 } from "styled-components";
|
|
6738
6735
|
|
|
6739
6736
|
// src/components/Label/Label.tsx
|
|
6740
|
-
import styled22,
|
|
6737
|
+
import { styled as styled22, css as css14 } from "styled-components";
|
|
6741
6738
|
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
6742
6739
|
var requiredStyle = css14`
|
|
6743
6740
|
&::after {
|
|
@@ -6797,7 +6794,7 @@ var Label = ({
|
|
|
6797
6794
|
Label.displayName = "Label_VHS";
|
|
6798
6795
|
|
|
6799
6796
|
// src/components/FormFieldError/FormFieldError.tsx
|
|
6800
|
-
import styled23 from "styled-components";
|
|
6797
|
+
import { styled as styled23 } from "styled-components";
|
|
6801
6798
|
import { isNil as isNil7 } from "@wistia/type-guards";
|
|
6802
6799
|
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
6803
6800
|
var FieldError = styled23.div`
|
|
@@ -6821,7 +6818,7 @@ var FormFieldError = ({
|
|
|
6821
6818
|
FormFieldError.displayName = "FormFieldError_VHS";
|
|
6822
6819
|
|
|
6823
6820
|
// src/components/LabelDescription/LabelDescription.tsx
|
|
6824
|
-
import styled24,
|
|
6821
|
+
import { styled as styled24, css as css15 } from "styled-components";
|
|
6825
6822
|
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
6826
6823
|
var disabledStyle5 = css15`
|
|
6827
6824
|
color: ${({ theme: theme2 }) => theme2.color.grey500};
|
|
@@ -6940,7 +6937,7 @@ CheckboxGroup.displayName = "CheckboxGroup_VHS";
|
|
|
6940
6937
|
|
|
6941
6938
|
// src/components/ClickArea/ClickArea.tsx
|
|
6942
6939
|
import { forwardRef as forwardRef8, useCallback as useCallback9 } from "react";
|
|
6943
|
-
import styled27 from "styled-components";
|
|
6940
|
+
import { styled as styled27 } from "styled-components";
|
|
6944
6941
|
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
6945
6942
|
var ClickAreaComponent = styled27.div`
|
|
6946
6943
|
cursor: pointer;
|
|
@@ -6984,7 +6981,7 @@ var ClickArea = forwardRef8(
|
|
|
6984
6981
|
ClickArea.displayName = "ClickArea_VHS";
|
|
6985
6982
|
|
|
6986
6983
|
// src/components/CloseButton/CloseButton.tsx
|
|
6987
|
-
import styled28 from "styled-components";
|
|
6984
|
+
import { styled as styled28 } from "styled-components";
|
|
6988
6985
|
|
|
6989
6986
|
// src/components/CloseButton/CloseIcon.tsx
|
|
6990
6987
|
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
@@ -7048,7 +7045,7 @@ CloseButton.displayName = "CloseButton_VHS";
|
|
|
7048
7045
|
|
|
7049
7046
|
// src/components/CollapsibleGroup/CollapsibleGroup.tsx
|
|
7050
7047
|
import { useEffect as useEffect11, useLayoutEffect as useLayoutEffect4, useState as useState15, useId as useId2 } from "react";
|
|
7051
|
-
import styled29,
|
|
7048
|
+
import { styled as styled29, css as css16 } from "styled-components";
|
|
7052
7049
|
import { darken as darken3 } from "polished";
|
|
7053
7050
|
import { isNil as isNil8, isNonEmptyString as isNonEmptyString5, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
|
|
7054
7051
|
import { jsx as jsx150, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
@@ -7340,7 +7337,7 @@ var CollapsibleGroup = ({
|
|
|
7340
7337
|
CollapsibleGroup.displayName = "CollapsibleGroup_VHS";
|
|
7341
7338
|
|
|
7342
7339
|
// src/components/Divider/Divider.tsx
|
|
7343
|
-
import styled30 from "styled-components";
|
|
7340
|
+
import { styled as styled30 } from "styled-components";
|
|
7344
7341
|
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
7345
7342
|
var DividerComponent = styled30.hr`
|
|
7346
7343
|
background: none;
|
|
@@ -7377,7 +7374,7 @@ Divider.displayName = "Divider_VHS";
|
|
|
7377
7374
|
|
|
7378
7375
|
// src/components/FileSelect/FileSelect.tsx
|
|
7379
7376
|
import { forwardRef as forwardRef9 } from "react";
|
|
7380
|
-
import styled31 from "styled-components";
|
|
7377
|
+
import { styled as styled31 } from "styled-components";
|
|
7381
7378
|
import { jsx as jsx152, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
7382
7379
|
var maxFileSizeInGigs = 26;
|
|
7383
7380
|
var defaultMaximumFileSize = maxFileSizeInGigs * 1024;
|
|
@@ -7473,7 +7470,7 @@ import { isNotNil as isNotNil15, isNotUndefined as isNotUndefined5, isUndefined
|
|
|
7473
7470
|
// src/components/FormGlobalError/FormGlobalError.tsx
|
|
7474
7471
|
import { forwardRef as forwardRef10 } from "react";
|
|
7475
7472
|
import { useFormikContext as useFormikContext2 } from "formik";
|
|
7476
|
-
import styled32 from "styled-components";
|
|
7473
|
+
import { styled as styled32 } from "styled-components";
|
|
7477
7474
|
import { isNonEmptyString as isNonEmptyString6, isNotNil as isNotNil14 } from "@wistia/type-guards";
|
|
7478
7475
|
import { jsx as jsx153, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
7479
7476
|
var GlobalErrorsContainer = styled32.div`
|
|
@@ -7805,7 +7802,7 @@ FormButtons.displayName = "FormButtons_VHS";
|
|
|
7805
7802
|
|
|
7806
7803
|
// src/components/FormField/FormField.tsx
|
|
7807
7804
|
import { forwardRef as forwardRef14 } from "react";
|
|
7808
|
-
import styled43 from "styled-components";
|
|
7805
|
+
import { styled as styled43 } from "styled-components";
|
|
7809
7806
|
import { Field } from "formik";
|
|
7810
7807
|
|
|
7811
7808
|
// src/components/FormField/inputTypeMap.ts
|
|
@@ -7973,11 +7970,11 @@ import { isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
|
7973
7970
|
|
|
7974
7971
|
// src/components/Input/Input.tsx
|
|
7975
7972
|
import { forwardRef as forwardRef11, useEffect as useEffect16, useRef as useRef11 } from "react";
|
|
7976
|
-
import styled35 from "styled-components";
|
|
7973
|
+
import { styled as styled35 } from "styled-components";
|
|
7977
7974
|
import { isNotNil as isNotNil18 } from "@wistia/type-guards";
|
|
7978
7975
|
|
|
7979
7976
|
// src/components/Input/InputStyledComponent.tsx
|
|
7980
|
-
import styled33,
|
|
7977
|
+
import { styled as styled33, css as css17 } from "styled-components";
|
|
7981
7978
|
var focusStyle = css17`
|
|
7982
7979
|
border-color: ${({ theme: theme2 }) => theme2.color.brandBlue500};
|
|
7983
7980
|
outline: none;
|
|
@@ -8086,7 +8083,7 @@ var InputStyledComponent = styled33.input`
|
|
|
8086
8083
|
|
|
8087
8084
|
// src/components/Input/ClickToCopy.tsx
|
|
8088
8085
|
import { useState as useState17, useEffect as useEffect15 } from "react";
|
|
8089
|
-
import styled34,
|
|
8086
|
+
import { styled as styled34, css as css18 } from "styled-components";
|
|
8090
8087
|
import { isFunction as isFunction2 } from "@wistia/type-guards";
|
|
8091
8088
|
import { darken as darken4 } from "polished";
|
|
8092
8089
|
import { jsx as jsx159, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
@@ -8467,7 +8464,7 @@ FormConnectorInput.displayName = "FormConnectorInput";
|
|
|
8467
8464
|
import { useCallback as useCallback11 } from "react";
|
|
8468
8465
|
|
|
8469
8466
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
8470
|
-
import styled36 from "styled-components";
|
|
8467
|
+
import { styled as styled36 } from "styled-components";
|
|
8471
8468
|
import { isNotNil as isNotNil20 } from "@wistia/type-guards";
|
|
8472
8469
|
|
|
8473
8470
|
// src/components/Radio/Radio.tsx
|
|
@@ -8622,11 +8619,11 @@ import { isNil as isNil10, isBoolean as isBoolean2 } from "@wistia/type-guards";
|
|
|
8622
8619
|
|
|
8623
8620
|
// src/components/Select/Select.tsx
|
|
8624
8621
|
import { forwardRef as forwardRef13 } from "react";
|
|
8625
|
-
import styled38,
|
|
8622
|
+
import { styled as styled38, css as css20 } from "styled-components";
|
|
8626
8623
|
import { isBoolean, isNonEmptyString as isNonEmptyString7, isNotNil as isNotNil21 } from "@wistia/type-guards";
|
|
8627
8624
|
|
|
8628
8625
|
// src/components/Select/SelectStyledComponent.tsx
|
|
8629
|
-
import styled37,
|
|
8626
|
+
import { styled as styled37, css as css19 } from "styled-components";
|
|
8630
8627
|
var focusStyle2 = css19`
|
|
8631
8628
|
border: 1px solid ${({ theme: theme2 }) => theme2.color.brandBlue500};
|
|
8632
8629
|
`;
|
|
@@ -8919,12 +8916,12 @@ FormConnectorHidden.displayName = "FormConnectorHidden";
|
|
|
8919
8916
|
|
|
8920
8917
|
// src/private/components/FormConnectorRichTextEditor/FormConnectorRichTextEditor.tsx
|
|
8921
8918
|
import { useState as useState19, useEffect as useEffect19 } from "react";
|
|
8922
|
-
import styled42 from "styled-components";
|
|
8919
|
+
import { styled as styled42 } from "styled-components";
|
|
8923
8920
|
import { isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
|
|
8924
8921
|
|
|
8925
8922
|
// src/components/RichTextEditor/RichTextEditor.tsx
|
|
8926
8923
|
import { useCallback as useCallback12, useMemo as useMemo7, useEffect as useEffect18 } from "react";
|
|
8927
|
-
import styled41 from "styled-components";
|
|
8924
|
+
import { styled as styled41 } from "styled-components";
|
|
8928
8925
|
import { Editable, withReact, Slate, ReactEditor } from "slate-react";
|
|
8929
8926
|
import { createEditor, Transforms as Transforms5, Element as Element6, Text as Text4 } from "slate";
|
|
8930
8927
|
import { withHistory } from "slate-history";
|
|
@@ -9235,7 +9232,7 @@ var Leaf = ({
|
|
|
9235
9232
|
|
|
9236
9233
|
// src/components/RichTextEditor/Element.tsx
|
|
9237
9234
|
import { useSelected, useFocused } from "slate-react";
|
|
9238
|
-
import styled39,
|
|
9235
|
+
import { styled as styled39, css as css21 } from "styled-components";
|
|
9239
9236
|
import { jsx as jsx170, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
9240
9237
|
var Wrapper = styled39.span`
|
|
9241
9238
|
display: 'inline-block';
|
|
@@ -9355,7 +9352,7 @@ var Element2 = ({
|
|
|
9355
9352
|
|
|
9356
9353
|
// src/components/RichTextEditor/EditorButtons.tsx
|
|
9357
9354
|
import { useSlate } from "slate-react";
|
|
9358
|
-
import styled40 from "styled-components";
|
|
9355
|
+
import { styled as styled40 } from "styled-components";
|
|
9359
9356
|
import { Node as Node2 } from "slate";
|
|
9360
9357
|
import { isNonEmptyString as isNonEmptyString10 } from "@wistia/type-guards";
|
|
9361
9358
|
|
|
@@ -10272,7 +10269,7 @@ var FormField = forwardRef14(
|
|
|
10272
10269
|
FormField.displayName = "FormField_VHS";
|
|
10273
10270
|
|
|
10274
10271
|
// src/components/FullScreenModal/FullScreenModal.tsx
|
|
10275
|
-
import styled44 from "styled-components";
|
|
10272
|
+
import { styled as styled44 } from "styled-components";
|
|
10276
10273
|
import { isNonEmptyString as isNonEmptyString12 } from "@wistia/type-guards";
|
|
10277
10274
|
import { jsx as jsx187, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
10278
10275
|
var CloseButton2 = styled44(Button)`
|
|
@@ -10327,7 +10324,7 @@ var FullScreenModal = ({
|
|
|
10327
10324
|
FullScreenModal.displayName = "FullScreenModal_VHS";
|
|
10328
10325
|
|
|
10329
10326
|
// src/components/Image/Image.tsx
|
|
10330
|
-
import styled45 from "styled-components";
|
|
10327
|
+
import { styled as styled45 } from "styled-components";
|
|
10331
10328
|
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
10332
10329
|
var getFillStyle2 = ($fillContainer) => {
|
|
10333
10330
|
if ($fillContainer === "horizontal") {
|
|
@@ -10372,7 +10369,7 @@ var Image3 = ({
|
|
|
10372
10369
|
Image3.displayName = "Image_VHS";
|
|
10373
10370
|
|
|
10374
10371
|
// src/components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
10375
|
-
import styled46 from "styled-components";
|
|
10372
|
+
import { styled as styled46 } from "styled-components";
|
|
10376
10373
|
import { isNotNil as isNotNil27, isArray as isArray3 } from "@wistia/type-guards";
|
|
10377
10374
|
import { jsx as jsx189, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10378
10375
|
var KeyboardShortcutComponent = styled46.div`
|
|
@@ -10490,7 +10487,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_VHS";
|
|
|
10490
10487
|
|
|
10491
10488
|
// src/components/LinkButton/LinkButton.tsx
|
|
10492
10489
|
import { forwardRef as forwardRef15 } from "react";
|
|
10493
|
-
import styled47 from "styled-components";
|
|
10490
|
+
import { styled as styled47 } from "styled-components";
|
|
10494
10491
|
import { isNotNil as isNotNil28, isNil as isNil15 } from "@wistia/type-guards";
|
|
10495
10492
|
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
10496
10493
|
var isEnterOrSpace = (event) => event.key === "Enter" || event.key === " " || event.key === "Spacebar";
|
|
@@ -10565,10 +10562,10 @@ LinkButton.displayName = "LinkButton_VHS";
|
|
|
10565
10562
|
|
|
10566
10563
|
// src/components/List/List.tsx
|
|
10567
10564
|
import { isNotNil as isNotNil29 } from "@wistia/type-guards";
|
|
10568
|
-
import styled49,
|
|
10565
|
+
import { styled as styled49, css as css22 } from "styled-components";
|
|
10569
10566
|
|
|
10570
10567
|
// src/components/List/ListItem.tsx
|
|
10571
|
-
import styled48 from "styled-components";
|
|
10568
|
+
import { styled as styled48 } from "styled-components";
|
|
10572
10569
|
import { isNil as isNil16 } from "@wistia/type-guards";
|
|
10573
10570
|
import { jsx as jsx191 } from "react/jsx-runtime";
|
|
10574
10571
|
var ListItemComponent = styled48.li`
|
|
@@ -10725,7 +10722,7 @@ List.displayName = "List_VHS";
|
|
|
10725
10722
|
import { DropdownMenuRadioGroup } from "@radix-ui/react-dropdown-menu";
|
|
10726
10723
|
|
|
10727
10724
|
// src/components/Menu/Menu.tsx
|
|
10728
|
-
import styled50,
|
|
10725
|
+
import { styled as styled50, css as css23, keyframes } from "styled-components";
|
|
10729
10726
|
import {
|
|
10730
10727
|
DropdownMenu,
|
|
10731
10728
|
DropdownMenuTrigger,
|
|
@@ -10843,7 +10840,7 @@ import {
|
|
|
10843
10840
|
DropdownMenuSubTrigger
|
|
10844
10841
|
} from "@radix-ui/react-dropdown-menu";
|
|
10845
10842
|
import { isNonEmptyString as isNonEmptyString13, isNotNil as isNotNil31, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
10846
|
-
import styled51,
|
|
10843
|
+
import { styled as styled51, css as css24 } from "styled-components";
|
|
10847
10844
|
import { darken as darken5 } from "polished";
|
|
10848
10845
|
import { jsx as jsx194, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10849
10846
|
var hoverDarken2 = "0.04";
|
|
@@ -11102,7 +11099,7 @@ var SubMenuTrigger = ({
|
|
|
11102
11099
|
};
|
|
11103
11100
|
|
|
11104
11101
|
// src/components/Menu/MenuLabel.tsx
|
|
11105
|
-
import styled52 from "styled-components";
|
|
11102
|
+
import { styled as styled52 } from "styled-components";
|
|
11106
11103
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
11107
11104
|
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
11108
11105
|
var StyledMenuLabel = styled52(DropdownMenuLabel)`
|
|
@@ -11124,7 +11121,7 @@ var MenuLabel = ({ children, ...props }) => {
|
|
|
11124
11121
|
|
|
11125
11122
|
// src/components/Menu/SubMenu.tsx
|
|
11126
11123
|
import { useState as useState20 } from "react";
|
|
11127
|
-
import styled53 from "styled-components";
|
|
11124
|
+
import { styled as styled53 } from "styled-components";
|
|
11128
11125
|
import {
|
|
11129
11126
|
DropdownMenuPortal as DropdownMenuPortal2,
|
|
11130
11127
|
DropdownMenuSub,
|
|
@@ -11175,11 +11172,11 @@ var SubMenu = ({ label, icon, description, children }) => {
|
|
|
11175
11172
|
// src/components/MenuButton/MenuButton.tsx
|
|
11176
11173
|
import { useCallback as useCallback13, cloneElement, useState as useState21, useLayoutEffect as useLayoutEffect5, useRef as useRef13 } from "react";
|
|
11177
11174
|
import { isFunction as isFunction3, isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
11178
|
-
import styled56,
|
|
11175
|
+
import { styled as styled56, css as css26 } from "styled-components";
|
|
11179
11176
|
|
|
11180
11177
|
// src/private/components/Menu/Menu.tsx
|
|
11181
11178
|
import { forwardRef as forwardRef16, useRef as useRef12, useEffect as useEffect20 } from "react";
|
|
11182
|
-
import styled54,
|
|
11179
|
+
import { styled as styled54, css as css25 } from "styled-components";
|
|
11183
11180
|
import { darken as darken6 } from "polished";
|
|
11184
11181
|
import { isNotNil as isNotNil32, isNonEmptyString as isNonEmptyString14 } from "@wistia/type-guards";
|
|
11185
11182
|
import { Fragment as Fragment12, jsx as jsx197, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
@@ -11382,7 +11379,7 @@ var Menu2 = forwardRef16(
|
|
|
11382
11379
|
Menu2.displayName = "Menu";
|
|
11383
11380
|
|
|
11384
11381
|
// src/components/MenuButton/MenuHeader.tsx
|
|
11385
|
-
import styled55 from "styled-components";
|
|
11382
|
+
import { styled as styled55 } from "styled-components";
|
|
11386
11383
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
11387
11384
|
import { jsx as jsx198, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
11388
11385
|
var HeaderAndButton = styled55.div`
|
|
@@ -11550,12 +11547,12 @@ MenuButton.displayName = "MenuButton_VHS";
|
|
|
11550
11547
|
|
|
11551
11548
|
// src/components/Modal/Modal.tsx
|
|
11552
11549
|
import { forwardRef as forwardRef17, useEffect as useEffect21, useRef as useRef14 } from "react";
|
|
11553
|
-
import styled58,
|
|
11550
|
+
import { styled as styled58, css as css27 } from "styled-components";
|
|
11554
11551
|
import { hasKey, isNotNil as isNotNil35, isNotUndefined as isNotUndefined15 } from "@wistia/type-guards";
|
|
11555
11552
|
import { createPortal as createPortal3 } from "react-dom";
|
|
11556
11553
|
|
|
11557
11554
|
// src/components/Modal/Dialog.tsx
|
|
11558
|
-
import styled57 from "styled-components";
|
|
11555
|
+
import { styled as styled57 } from "styled-components";
|
|
11559
11556
|
var Dialog = styled57.div`
|
|
11560
11557
|
background-color: white;
|
|
11561
11558
|
box-sizing: border-box;
|
|
@@ -11728,7 +11725,7 @@ Modal.displayName = "Modal_VHS";
|
|
|
11728
11725
|
ModalContent.displayName = "ModalContent_VHS";
|
|
11729
11726
|
|
|
11730
11727
|
// src/components/Modal/ModalParts.tsx
|
|
11731
|
-
import styled59 from "styled-components";
|
|
11728
|
+
import { styled as styled59 } from "styled-components";
|
|
11732
11729
|
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
11733
11730
|
var ModalHeader = styled59.div`
|
|
11734
11731
|
align-items: center;
|
|
@@ -11772,7 +11769,7 @@ var ModalCloseButton2 = ({ onClick, ...props }) => {
|
|
|
11772
11769
|
};
|
|
11773
11770
|
|
|
11774
11771
|
// src/components/Paper/Paper.tsx
|
|
11775
|
-
import styled60 from "styled-components";
|
|
11772
|
+
import { styled as styled60 } from "styled-components";
|
|
11776
11773
|
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
11777
11774
|
var PaperComponent = styled60.div`
|
|
11778
11775
|
background-color: white;
|
|
@@ -11793,7 +11790,7 @@ var Paper = ({ children, elevation = 1, ...otherProps }) => {
|
|
|
11793
11790
|
Paper.displayName = "Paper_VHS";
|
|
11794
11791
|
|
|
11795
11792
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11796
|
-
import styled61 from "styled-components";
|
|
11793
|
+
import { styled as styled61 } from "styled-components";
|
|
11797
11794
|
import { jsx as jsx203, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
11798
11795
|
var progressBarHeight = "8px";
|
|
11799
11796
|
var ProgressBarContainer = styled61.div`
|
|
@@ -11869,13 +11866,13 @@ ProgressBar.displayName = "ProgressBar_VHS";
|
|
|
11869
11866
|
|
|
11870
11867
|
// src/components/RangeSelector/RangeSelector.tsx
|
|
11871
11868
|
import { useEffect as useEffect24, useState as useState24 } from "react";
|
|
11872
|
-
import styled66 from "styled-components";
|
|
11869
|
+
import { styled as styled66 } from "styled-components";
|
|
11873
11870
|
import { isSameDay as isSameDay3 } from "date-fns";
|
|
11874
11871
|
|
|
11875
11872
|
// src/private/components/RangeSelectorCalendar/RangeSelectorCalendar.tsx
|
|
11876
11873
|
import { useEffect as useEffect22, useMemo as useMemo8, useState as useState22 } from "react";
|
|
11877
11874
|
import { isNotNil as isNotNil37, isNil as isNil17 } from "@wistia/type-guards";
|
|
11878
|
-
import styled63 from "styled-components";
|
|
11875
|
+
import { styled as styled63 } from "styled-components";
|
|
11879
11876
|
import { debounce as debounce2 } from "throttle-debounce";
|
|
11880
11877
|
import {
|
|
11881
11878
|
addDays,
|
|
@@ -11890,7 +11887,7 @@ import {
|
|
|
11890
11887
|
} from "date-fns";
|
|
11891
11888
|
|
|
11892
11889
|
// src/private/components/Calendar/Calendar.tsx
|
|
11893
|
-
import styled62 from "styled-components";
|
|
11890
|
+
import { styled as styled62 } from "styled-components";
|
|
11894
11891
|
import {
|
|
11895
11892
|
isBefore,
|
|
11896
11893
|
isAfter,
|
|
@@ -12412,12 +12409,12 @@ RangeSelectorCalendar.displayName = "RangeSelectorCalendar";
|
|
|
12412
12409
|
|
|
12413
12410
|
// src/private/components/RangeSelectorInput/RangeSelectorInput.tsx
|
|
12414
12411
|
import { useCallback as useCallback14, useEffect as useEffect23, useRef as useRef15, useState as useState23 } from "react";
|
|
12415
|
-
import styled65 from "styled-components";
|
|
12412
|
+
import { styled as styled65 } from "styled-components";
|
|
12416
12413
|
import { endOfDay as endOfDay3 } from "date-fns";
|
|
12417
12414
|
import { isNotUndefined as isNotUndefined17, isUndefined as isUndefined4, isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
12418
12415
|
|
|
12419
12416
|
// src/private/components/RangeSelectorInput/ErrorMessages.tsx
|
|
12420
|
-
import styled64 from "styled-components";
|
|
12417
|
+
import { styled as styled64 } from "styled-components";
|
|
12421
12418
|
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
12422
12419
|
var ErrorMessagesList = styled64.ul`
|
|
12423
12420
|
list-style: none;
|
|
@@ -13272,7 +13269,7 @@ var RangeSelector = ({
|
|
|
13272
13269
|
RangeSelector.displayName = "RangeSelector_VHS";
|
|
13273
13270
|
|
|
13274
13271
|
// src/components/Slider/Slider.tsx
|
|
13275
|
-
import styled67,
|
|
13272
|
+
import { styled as styled67, css as css28 } from "styled-components";
|
|
13276
13273
|
import ReactSlider from "react-slider";
|
|
13277
13274
|
import {
|
|
13278
13275
|
isFunction as isFunction4,
|
|
@@ -13421,7 +13418,7 @@ Slider.displayName = "Slider_VHS";
|
|
|
13421
13418
|
|
|
13422
13419
|
// src/components/Stack/Stack.tsx
|
|
13423
13420
|
import { forwardRef as forwardRef18 } from "react";
|
|
13424
|
-
import styled68 from "styled-components";
|
|
13421
|
+
import { styled as styled68 } from "styled-components";
|
|
13425
13422
|
import { jsx as jsx210 } from "react/jsx-runtime";
|
|
13426
13423
|
var StyledStack = styled68.div`
|
|
13427
13424
|
display: flex;
|
|
@@ -13449,7 +13446,7 @@ var Stack = forwardRef18(
|
|
|
13449
13446
|
Stack.displayName = "Stack_VHS";
|
|
13450
13447
|
|
|
13451
13448
|
// src/components/Switch/Switch.tsx
|
|
13452
|
-
import styled69,
|
|
13449
|
+
import { styled as styled69, css as css29 } from "styled-components";
|
|
13453
13450
|
import { jsx as jsx211 } from "react/jsx-runtime";
|
|
13454
13451
|
var SwitchComponent = styled69.button`
|
|
13455
13452
|
background-color: white;
|
|
@@ -13570,7 +13567,7 @@ var Switch = ({
|
|
|
13570
13567
|
Switch.displayName = "Switch_VHS";
|
|
13571
13568
|
|
|
13572
13569
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
13573
|
-
import styled70 from "styled-components";
|
|
13570
|
+
import { styled as styled70 } from "styled-components";
|
|
13574
13571
|
import { isNotNil as isNotNil43 } from "@wistia/type-guards";
|
|
13575
13572
|
import { jsx as jsx212, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
13576
13573
|
var ThumbnailComponent = styled70.div`
|
|
@@ -13726,7 +13723,7 @@ var Thumbnail = ({
|
|
|
13726
13723
|
Thumbnail.displayName = "Thumbnail_VHS";
|
|
13727
13724
|
|
|
13728
13725
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
13729
|
-
import styled71 from "styled-components";
|
|
13726
|
+
import { styled as styled71 } from "styled-components";
|
|
13730
13727
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
13731
13728
|
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
13732
13729
|
var ThumbnailCollageContainer = styled71.div`
|
|
@@ -13784,7 +13781,7 @@ var ThumbnailCollage = ({
|
|
|
13784
13781
|
};
|
|
13785
13782
|
|
|
13786
13783
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
13787
|
-
import styled72 from "styled-components";
|
|
13784
|
+
import { styled as styled72 } from "styled-components";
|
|
13788
13785
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
13789
13786
|
import { jsx as jsx214, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
13790
13787
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|