@wistia/ui 0.1.2 → 0.2.0
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 +162 -148
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.mjs +174 -164
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.
|
|
3
|
+
* @license @wistia/ui v0.2.0
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6397,31 +6397,42 @@ var Checkbox = forwardRef6(
|
|
|
6397
6397
|
Checkbox.displayName = "Checkbox";
|
|
6398
6398
|
|
|
6399
6399
|
// src/components/Divider/Divider.tsx
|
|
6400
|
-
import styled16 from "styled-components";
|
|
6400
|
+
import styled16, { css as css17 } from "styled-components";
|
|
6401
6401
|
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
6402
|
-
var
|
|
6403
|
-
lg: 4,
|
|
6404
|
-
sm: 1
|
|
6405
|
-
};
|
|
6406
|
-
var DividerComponent = styled16.hr`
|
|
6407
|
-
background: none;
|
|
6408
|
-
border-bottom: none;
|
|
6409
|
-
border-left: none;
|
|
6410
|
-
border-right: none;
|
|
6402
|
+
var horizontalBorderCss = css17`
|
|
6411
6403
|
border-top-color: var(--wui-color-border);
|
|
6412
6404
|
border-top-style: solid;
|
|
6413
|
-
border-top-width:
|
|
6414
|
-
clear: both;
|
|
6405
|
+
border-top-width: 1px;
|
|
6406
|
+
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
6415
6407
|
height: 0;
|
|
6416
|
-
line-height: 0;
|
|
6417
|
-
margin: 0;
|
|
6418
6408
|
`;
|
|
6419
|
-
var
|
|
6420
|
-
|
|
6409
|
+
var verticalBorderCss = css17`
|
|
6410
|
+
background-color: var(--wui-color-border);
|
|
6411
|
+
max-width: 1px;
|
|
6412
|
+
min-height: 100%;
|
|
6413
|
+
width: 1px;
|
|
6414
|
+
`;
|
|
6415
|
+
var DividerComponent = styled16.div`
|
|
6416
|
+
${({ $orientation }) => {
|
|
6417
|
+
switch ($orientation) {
|
|
6418
|
+
case "vertical":
|
|
6419
|
+
return verticalBorderCss;
|
|
6420
|
+
case "horizontal":
|
|
6421
|
+
default:
|
|
6422
|
+
return horizontalBorderCss;
|
|
6423
|
+
}
|
|
6424
|
+
}}
|
|
6425
|
+
`;
|
|
6426
|
+
var Divider = ({
|
|
6427
|
+
orientation = "horizontal",
|
|
6428
|
+
...otherProps
|
|
6429
|
+
}) => {
|
|
6421
6430
|
return /* @__PURE__ */ jsx173(
|
|
6422
6431
|
DividerComponent,
|
|
6423
6432
|
{
|
|
6424
|
-
$
|
|
6433
|
+
$orientation: orientation,
|
|
6434
|
+
"aria-orientation": orientation,
|
|
6435
|
+
role: "separator",
|
|
6425
6436
|
...otherProps
|
|
6426
6437
|
}
|
|
6427
6438
|
);
|
|
@@ -6442,10 +6453,6 @@ var StyledStack = styled17.div`
|
|
|
6442
6453
|
display: flex;
|
|
6443
6454
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6444
6455
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
6445
|
-
|
|
6446
|
-
> * {
|
|
6447
|
-
flex: 1;
|
|
6448
|
-
}
|
|
6449
6456
|
`;
|
|
6450
6457
|
var StackComponent = forwardRef7(
|
|
6451
6458
|
({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
|
|
@@ -6638,89 +6645,89 @@ import { isArray as isArray2, isNotNil as isNotNil7, isNotUndefined as isNotUnde
|
|
|
6638
6645
|
|
|
6639
6646
|
// src/components/Text/Text.tsx
|
|
6640
6647
|
import { forwardRef as forwardRef9 } from "react";
|
|
6641
|
-
import styled19, { css as
|
|
6648
|
+
import styled19, { css as css18 } from "styled-components";
|
|
6642
6649
|
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
6643
|
-
var bodyBoldStyles =
|
|
6650
|
+
var bodyBoldStyles = css18`
|
|
6644
6651
|
> strong,
|
|
6645
6652
|
b {
|
|
6646
6653
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
6647
6654
|
}
|
|
6648
6655
|
`;
|
|
6649
|
-
var labelBoldStyles =
|
|
6656
|
+
var labelBoldStyles = css18`
|
|
6650
6657
|
> strong,
|
|
6651
6658
|
b {
|
|
6652
6659
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
6653
6660
|
}
|
|
6654
6661
|
`;
|
|
6655
|
-
var body1TextStyle =
|
|
6662
|
+
var body1TextStyle = css18`
|
|
6656
6663
|
--font-family: var(--wui-typography-body-1-family);
|
|
6657
6664
|
--font-size: var(--wui-typography-body-1-size);
|
|
6658
6665
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
6659
6666
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
6660
6667
|
${bodyBoldStyles}
|
|
6661
6668
|
`;
|
|
6662
|
-
var body2TextStyle =
|
|
6669
|
+
var body2TextStyle = css18`
|
|
6663
6670
|
--font-family: var(--wui-typography-body-2-family);
|
|
6664
6671
|
--font-size: var(--wui-typography-body-2-size);
|
|
6665
6672
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
6666
6673
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
6667
6674
|
${bodyBoldStyles}
|
|
6668
6675
|
`;
|
|
6669
|
-
var body3TextStyle =
|
|
6676
|
+
var body3TextStyle = css18`
|
|
6670
6677
|
--font-family: var(--wui-typography-body-3-family);
|
|
6671
6678
|
--font-size: var(--wui-typography-body-3-size);
|
|
6672
6679
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
6673
6680
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
6674
6681
|
${bodyBoldStyles}
|
|
6675
6682
|
`;
|
|
6676
|
-
var body4TextStyle =
|
|
6683
|
+
var body4TextStyle = css18`
|
|
6677
6684
|
--font-family: var(--wui-typography-body-4-family);
|
|
6678
6685
|
--font-size: var(--wui-typography-body-4-size);
|
|
6679
6686
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
6680
6687
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
6681
6688
|
${bodyBoldStyles}
|
|
6682
6689
|
`;
|
|
6683
|
-
var label1TextStyle =
|
|
6690
|
+
var label1TextStyle = css18`
|
|
6684
6691
|
--font-family: var(--wui-typography-label-1-family);
|
|
6685
6692
|
--font-size: var(--wui-typography-label-1-size);
|
|
6686
6693
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
6687
6694
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
6688
6695
|
${labelBoldStyles}
|
|
6689
6696
|
`;
|
|
6690
|
-
var label2TextStyle =
|
|
6697
|
+
var label2TextStyle = css18`
|
|
6691
6698
|
--font-family: var(--wui-typography-label-2-family);
|
|
6692
6699
|
--font-size: var(--wui-typography-label-2-size);
|
|
6693
6700
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
6694
6701
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
6695
6702
|
${labelBoldStyles}
|
|
6696
6703
|
`;
|
|
6697
|
-
var label3TextStyle =
|
|
6704
|
+
var label3TextStyle = css18`
|
|
6698
6705
|
--font-family: var(--wui-typography-label-3-family);
|
|
6699
6706
|
--font-size: var(--wui-typography-label-3-size);
|
|
6700
6707
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
6701
6708
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
6702
6709
|
${labelBoldStyles}
|
|
6703
6710
|
`;
|
|
6704
|
-
var label4TextStyle =
|
|
6711
|
+
var label4TextStyle = css18`
|
|
6705
6712
|
--font-family: var(--wui-typography-label-4-family);
|
|
6706
6713
|
--font-size: var(--wui-typography-label-4-size);
|
|
6707
6714
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
6708
6715
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
6709
6716
|
${labelBoldStyles}
|
|
6710
6717
|
`;
|
|
6711
|
-
var body1MonoTextStyle =
|
|
6718
|
+
var body1MonoTextStyle = css18`
|
|
6712
6719
|
${body1TextStyle};
|
|
6713
6720
|
--font-family: var(--wui-typography-family-mono);
|
|
6714
6721
|
`;
|
|
6715
|
-
var body2MonoTextStyle =
|
|
6722
|
+
var body2MonoTextStyle = css18`
|
|
6716
6723
|
${body2TextStyle};
|
|
6717
6724
|
--font-family: var(--wui-typography-family-mono);
|
|
6718
6725
|
`;
|
|
6719
|
-
var body3MonoTextStyle =
|
|
6726
|
+
var body3MonoTextStyle = css18`
|
|
6720
6727
|
${body3TextStyle};
|
|
6721
6728
|
--font-family: var(--wui-typography-family-mono);
|
|
6722
6729
|
`;
|
|
6723
|
-
var body4MonoTextStyle =
|
|
6730
|
+
var body4MonoTextStyle = css18`
|
|
6724
6731
|
${body4TextStyle};
|
|
6725
6732
|
--font-family: var(--wui-typography-family-mono);
|
|
6726
6733
|
`;
|
|
@@ -6738,13 +6745,13 @@ var variantStyleMap2 = {
|
|
|
6738
6745
|
label3: label3TextStyle,
|
|
6739
6746
|
label4: label4TextStyle
|
|
6740
6747
|
};
|
|
6741
|
-
var highContrastProminenceStyle =
|
|
6748
|
+
var highContrastProminenceStyle = css18`
|
|
6742
6749
|
--text-color: var(--wui-color-text-high-contrast);
|
|
6743
6750
|
`;
|
|
6744
|
-
var vibrantProminenceStyle =
|
|
6751
|
+
var vibrantProminenceStyle = css18`
|
|
6745
6752
|
--text-color: var(--wui-color-text);
|
|
6746
6753
|
`;
|
|
6747
|
-
var secondaryProminenceStyle =
|
|
6754
|
+
var secondaryProminenceStyle = css18`
|
|
6748
6755
|
--text-color: var(--wui-color-text-secondary);
|
|
6749
6756
|
`;
|
|
6750
6757
|
var prominenceMap = {
|
|
@@ -6764,19 +6771,19 @@ var StyledText = styled19.div`
|
|
|
6764
6771
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
6765
6772
|
${({ $prominence }) => prominenceMap[$prominence]}
|
|
6766
6773
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6767
|
-
${({ $inline }) => $inline &&
|
|
6774
|
+
${({ $inline }) => $inline && css18`
|
|
6768
6775
|
display: inline-block;
|
|
6769
6776
|
`}
|
|
6770
|
-
${({ $disabled }) => $disabled &&
|
|
6777
|
+
${({ $disabled }) => $disabled && css18`
|
|
6771
6778
|
--text-color: var(--wui-color-text-disabled);
|
|
6772
6779
|
`}
|
|
6773
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
6780
|
+
${({ $preventUserSelect }) => $preventUserSelect && css18`
|
|
6774
6781
|
user-select: none;
|
|
6775
6782
|
`}
|
|
6776
|
-
${({ $align }) =>
|
|
6783
|
+
${({ $align }) => css18`
|
|
6777
6784
|
text-align: ${$align};
|
|
6778
6785
|
`}
|
|
6779
|
-
${({ as }) => as === "p" &&
|
|
6786
|
+
${({ as }) => as === "p" && css18`
|
|
6780
6787
|
display: block;
|
|
6781
6788
|
`}
|
|
6782
6789
|
`;
|
|
@@ -7033,10 +7040,10 @@ IconButton.displayName = "IconButton";
|
|
|
7033
7040
|
|
|
7034
7041
|
// src/components/Input/Input.tsx
|
|
7035
7042
|
import { forwardRef as forwardRef11, cloneElement as cloneElement5 } from "react";
|
|
7036
|
-
import styled23, { css as
|
|
7043
|
+
import styled23, { css as css19 } from "styled-components";
|
|
7037
7044
|
import { isNil as isNil10, isNotNil as isNotNil8 } from "@wistia/type-guards";
|
|
7038
7045
|
import { jsx as jsx183, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7039
|
-
var inputStyles =
|
|
7046
|
+
var inputStyles = css19`
|
|
7040
7047
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7041
7048
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
7042
7049
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -7177,7 +7184,7 @@ var Input = forwardRef11(
|
|
|
7177
7184
|
Input.displayName = "Input";
|
|
7178
7185
|
|
|
7179
7186
|
// src/components/Menu/Menu.tsx
|
|
7180
|
-
import styled24, { css as
|
|
7187
|
+
import styled24, { css as css20, keyframes } from "styled-components";
|
|
7181
7188
|
import {
|
|
7182
7189
|
DropdownMenu,
|
|
7183
7190
|
DropdownMenuTrigger,
|
|
@@ -7206,7 +7213,7 @@ var close = keyframes`
|
|
|
7206
7213
|
transform: scale(.97) translateY(-8px);
|
|
7207
7214
|
}
|
|
7208
7215
|
`;
|
|
7209
|
-
var menuContentCss =
|
|
7216
|
+
var menuContentCss = css20`
|
|
7210
7217
|
--menu-font-family: var(--wui-typography-family-default);
|
|
7211
7218
|
--menu-bg: var(--wui-color-bg-fill-white); /* TODO - Not sure what token to use for this */
|
|
7212
7219
|
--menu-shadow: 0 0 64px 0 rgba(0 0 0 / 8%); /* TODO - Need a box-shadow token */
|
|
@@ -7653,13 +7660,9 @@ var CheckboxMenuItem = ({
|
|
|
7653
7660
|
CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
7654
7661
|
|
|
7655
7662
|
// src/components/Modal/Modal.tsx
|
|
7656
|
-
import { forwardRef as
|
|
7657
|
-
import
|
|
7658
|
-
import {
|
|
7659
|
-
Root as DialogRoot,
|
|
7660
|
-
Content as DialogContent,
|
|
7661
|
-
Portal as DialogPortal
|
|
7662
|
-
} from "@radix-ui/react-dialog";
|
|
7663
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
7664
|
+
import styled34 from "styled-components";
|
|
7665
|
+
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
7663
7666
|
import { isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
7664
7667
|
|
|
7665
7668
|
// src/components/Modal/ModalHeader.tsx
|
|
@@ -7739,58 +7742,10 @@ var ModalHeader = ({
|
|
|
7739
7742
|
] });
|
|
7740
7743
|
};
|
|
7741
7744
|
|
|
7742
|
-
// src/
|
|
7745
|
+
// src/components/Modal/ModalContent.tsx
|
|
7743
7746
|
import { forwardRef as forwardRef14 } from "react";
|
|
7744
7747
|
import styled32 from "styled-components";
|
|
7745
|
-
import {
|
|
7746
|
-
var backdropAnimationDuration = 150;
|
|
7747
|
-
var alignVerticalMap = {
|
|
7748
|
-
stretch: "normal",
|
|
7749
|
-
top: "start",
|
|
7750
|
-
center: "center",
|
|
7751
|
-
bottom: "end"
|
|
7752
|
-
};
|
|
7753
|
-
var alignHorizontalMap = {
|
|
7754
|
-
left: "start",
|
|
7755
|
-
center: "center",
|
|
7756
|
-
right: "end"
|
|
7757
|
-
};
|
|
7758
|
-
var BackdropComponent = styled32.div`
|
|
7759
|
-
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
7760
|
-
animation-name: backdropShow;
|
|
7761
|
-
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
7762
|
-
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
7763
|
-
background: var(--wui-color-backdrop);
|
|
7764
|
-
display: flex;
|
|
7765
|
-
inset: 0;
|
|
7766
|
-
justify-content: ${({ $alignHorizontal }) => alignHorizontalMap[$alignHorizontal]};
|
|
7767
|
-
overflow-y: auto;
|
|
7768
|
-
position: fixed;
|
|
7769
|
-
z-index: var(--wui-zindex-backdrop);
|
|
7770
|
-
|
|
7771
|
-
@keyframes backdropShow {
|
|
7772
|
-
from {
|
|
7773
|
-
opacity: 0;
|
|
7774
|
-
}
|
|
7775
|
-
|
|
7776
|
-
to {
|
|
7777
|
-
opacity: 1;
|
|
7778
|
-
}
|
|
7779
|
-
}
|
|
7780
|
-
`;
|
|
7781
|
-
var Backdrop = forwardRef14(
|
|
7782
|
-
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx196(
|
|
7783
|
-
BackdropComponent,
|
|
7784
|
-
{
|
|
7785
|
-
ref,
|
|
7786
|
-
$alignHorizontal: alignHorizontal,
|
|
7787
|
-
$alignVertical: alignVertical,
|
|
7788
|
-
...otherProps,
|
|
7789
|
-
children
|
|
7790
|
-
}
|
|
7791
|
-
)
|
|
7792
|
-
);
|
|
7793
|
-
Backdrop.displayName = "Backdrop";
|
|
7748
|
+
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
7794
7749
|
|
|
7795
7750
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
7796
7751
|
import { useRef as useRef5, useEffect as useEffect2 } from "react";
|
|
@@ -7811,9 +7766,9 @@ var useFocusRestore = () => {
|
|
|
7811
7766
|
}, []);
|
|
7812
7767
|
};
|
|
7813
7768
|
|
|
7814
|
-
// src/components/Modal/
|
|
7815
|
-
import { jsx as
|
|
7816
|
-
var StyledModalContent =
|
|
7769
|
+
// src/components/Modal/ModalContent.tsx
|
|
7770
|
+
import { jsx as jsx196 } from "react/jsx-runtime";
|
|
7771
|
+
var StyledModalContent = styled32(DialogContent)`
|
|
7817
7772
|
background-color: var(--wui-color-bg-app);
|
|
7818
7773
|
box-sizing: border-box;
|
|
7819
7774
|
display: flex;
|
|
@@ -7853,10 +7808,10 @@ var StyledModalContent = styled33(DialogContent)`
|
|
|
7853
7808
|
}
|
|
7854
7809
|
}
|
|
7855
7810
|
`;
|
|
7856
|
-
var ModalContent =
|
|
7811
|
+
var ModalContent = forwardRef14(
|
|
7857
7812
|
({ fullHeight, width, children, ...otherProps }, ref) => {
|
|
7858
7813
|
useFocusRestore();
|
|
7859
|
-
return /* @__PURE__ */
|
|
7814
|
+
return /* @__PURE__ */ jsx196(
|
|
7860
7815
|
StyledModalContent,
|
|
7861
7816
|
{
|
|
7862
7817
|
ref,
|
|
@@ -7868,13 +7823,68 @@ var ModalContent = forwardRef15(
|
|
|
7868
7823
|
);
|
|
7869
7824
|
}
|
|
7870
7825
|
);
|
|
7871
|
-
|
|
7872
|
-
|
|
7826
|
+
|
|
7827
|
+
// src/private/components/Backdrop/Backdrop.tsx
|
|
7828
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
7829
|
+
import styled33 from "styled-components";
|
|
7830
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
7831
|
+
var backdropAnimationDuration = 150;
|
|
7832
|
+
var alignVerticalMap = {
|
|
7833
|
+
stretch: "normal",
|
|
7834
|
+
top: "start",
|
|
7835
|
+
center: "center",
|
|
7836
|
+
bottom: "end"
|
|
7837
|
+
};
|
|
7838
|
+
var alignHorizontalMap = {
|
|
7839
|
+
left: "start",
|
|
7840
|
+
center: "center",
|
|
7841
|
+
right: "end"
|
|
7842
|
+
};
|
|
7843
|
+
var BackdropComponent = styled33.div`
|
|
7844
|
+
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
7845
|
+
animation-name: backdropShow;
|
|
7846
|
+
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
7847
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
7848
|
+
background: var(--wui-color-backdrop);
|
|
7849
|
+
display: flex;
|
|
7850
|
+
inset: 0;
|
|
7851
|
+
justify-content: ${({ $alignHorizontal }) => alignHorizontalMap[$alignHorizontal]};
|
|
7852
|
+
overflow-y: auto;
|
|
7853
|
+
position: fixed;
|
|
7854
|
+
z-index: var(--wui-zindex-backdrop);
|
|
7855
|
+
|
|
7856
|
+
@keyframes backdropShow {
|
|
7857
|
+
from {
|
|
7858
|
+
opacity: 0;
|
|
7859
|
+
}
|
|
7860
|
+
|
|
7861
|
+
to {
|
|
7862
|
+
opacity: 1;
|
|
7863
|
+
}
|
|
7864
|
+
}
|
|
7865
|
+
`;
|
|
7866
|
+
var Backdrop = forwardRef15(
|
|
7867
|
+
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx197(
|
|
7868
|
+
BackdropComponent,
|
|
7869
|
+
{
|
|
7870
|
+
ref,
|
|
7871
|
+
$alignHorizontal: alignHorizontal,
|
|
7872
|
+
$alignVertical: alignVertical,
|
|
7873
|
+
...otherProps,
|
|
7874
|
+
children
|
|
7875
|
+
}
|
|
7876
|
+
)
|
|
7877
|
+
);
|
|
7878
|
+
Backdrop.displayName = "Backdrop";
|
|
7879
|
+
|
|
7880
|
+
// src/components/Modal/Modal.tsx
|
|
7881
|
+
import { jsx as jsx198, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7882
|
+
var ModalBody = styled34.div`
|
|
7873
7883
|
flex-direction: column;
|
|
7874
7884
|
display: flex;
|
|
7875
7885
|
order: 2;
|
|
7876
7886
|
`;
|
|
7877
|
-
var Modal =
|
|
7887
|
+
var Modal = forwardRef16(
|
|
7878
7888
|
({
|
|
7879
7889
|
children,
|
|
7880
7890
|
fullHeight = false,
|
|
@@ -7887,7 +7897,7 @@ var Modal = forwardRef15(
|
|
|
7887
7897
|
width,
|
|
7888
7898
|
...props
|
|
7889
7899
|
}, ref) => {
|
|
7890
|
-
return /* @__PURE__ */
|
|
7900
|
+
return /* @__PURE__ */ jsx198(
|
|
7891
7901
|
DialogRoot,
|
|
7892
7902
|
{
|
|
7893
7903
|
onOpenChange: (open2) => {
|
|
@@ -7897,7 +7907,7 @@ var Modal = forwardRef15(
|
|
|
7897
7907
|
},
|
|
7898
7908
|
open: isOpen,
|
|
7899
7909
|
children: /* @__PURE__ */ jsxs19(DialogPortal, { children: [
|
|
7900
|
-
/* @__PURE__ */
|
|
7910
|
+
/* @__PURE__ */ jsx198(Backdrop, {}),
|
|
7901
7911
|
/* @__PURE__ */ jsxs19(
|
|
7902
7912
|
ModalContent,
|
|
7903
7913
|
{
|
|
@@ -7915,8 +7925,8 @@ var Modal = forwardRef15(
|
|
|
7915
7925
|
width,
|
|
7916
7926
|
...props,
|
|
7917
7927
|
children: [
|
|
7918
|
-
/* @__PURE__ */
|
|
7919
|
-
/* @__PURE__ */
|
|
7928
|
+
/* @__PURE__ */ jsx198(ModalBody, { children }),
|
|
7929
|
+
/* @__PURE__ */ jsx198(
|
|
7920
7930
|
ModalHeader,
|
|
7921
7931
|
{
|
|
7922
7932
|
hideCloseButton,
|
|
@@ -7935,16 +7945,16 @@ var Modal = forwardRef15(
|
|
|
7935
7945
|
Modal.displayName = "Modal";
|
|
7936
7946
|
|
|
7937
7947
|
// src/components/Radio/Radio.tsx
|
|
7938
|
-
import { forwardRef as
|
|
7939
|
-
import
|
|
7948
|
+
import { forwardRef as forwardRef17, useId as useId3 } from "react";
|
|
7949
|
+
import styled35, { css as css21 } from "styled-components";
|
|
7940
7950
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
7941
|
-
import { jsx as
|
|
7942
|
-
var StyledLabelWrapper2 =
|
|
7951
|
+
import { jsx as jsx199, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
7952
|
+
var StyledLabelWrapper2 = styled35.div`
|
|
7943
7953
|
display: flex;
|
|
7944
7954
|
flex-direction: column;
|
|
7945
7955
|
padding-left: var(--wui-space-02);
|
|
7946
7956
|
`;
|
|
7947
|
-
var StyledRadio =
|
|
7957
|
+
var StyledRadio = styled35.input`
|
|
7948
7958
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
7949
7959
|
appearance: none;
|
|
7950
7960
|
margin: 0;
|
|
@@ -7970,11 +7980,11 @@ var StyledRadio = styled34.input`
|
|
|
7970
7980
|
transform: scale(1);
|
|
7971
7981
|
}
|
|
7972
7982
|
`;
|
|
7973
|
-
var disabledStyle2 =
|
|
7983
|
+
var disabledStyle2 = css21`
|
|
7974
7984
|
cursor: not-allowed;
|
|
7975
7985
|
opacity: 0.5;
|
|
7976
7986
|
`;
|
|
7977
|
-
var errorStyle =
|
|
7987
|
+
var errorStyle = css21`
|
|
7978
7988
|
/* TODO Lamp to design error state */
|
|
7979
7989
|
&:hover,
|
|
7980
7990
|
&:focus,
|
|
@@ -7982,11 +7992,11 @@ var errorStyle = css20`
|
|
|
7982
7992
|
border-color: transparent !important;
|
|
7983
7993
|
}
|
|
7984
7994
|
`;
|
|
7985
|
-
var defaultHoverStyle =
|
|
7995
|
+
var defaultHoverStyle = css21`
|
|
7986
7996
|
/* TODO Lamp to design hover state */
|
|
7987
7997
|
cursor: pointer;
|
|
7988
7998
|
`;
|
|
7989
|
-
var StyledRadioWrapper =
|
|
7999
|
+
var StyledRadioWrapper = styled35.div`
|
|
7990
8000
|
align-items: baseline;
|
|
7991
8001
|
border: 1px solid transparent;
|
|
7992
8002
|
border-radius: 4px;
|
|
@@ -8009,7 +8019,7 @@ var StyledRadioWrapper = styled34.div`
|
|
|
8009
8019
|
|
|
8010
8020
|
${({ disabled }) => disabled && disabledStyle2};
|
|
8011
8021
|
`;
|
|
8012
|
-
var Radio =
|
|
8022
|
+
var Radio = forwardRef17(
|
|
8013
8023
|
({
|
|
8014
8024
|
checked,
|
|
8015
8025
|
disabled = false,
|
|
@@ -8030,7 +8040,7 @@ var Radio = forwardRef16(
|
|
|
8030
8040
|
"aria-invalid": otherProps["aria-invalid"],
|
|
8031
8041
|
disabled,
|
|
8032
8042
|
children: [
|
|
8033
|
-
/* @__PURE__ */
|
|
8043
|
+
/* @__PURE__ */ jsx199(
|
|
8034
8044
|
StyledRadio,
|
|
8035
8045
|
{
|
|
8036
8046
|
ref,
|
|
@@ -8046,7 +8056,7 @@ var Radio = forwardRef16(
|
|
|
8046
8056
|
}
|
|
8047
8057
|
),
|
|
8048
8058
|
/* @__PURE__ */ jsxs20(StyledLabelWrapper2, { children: [
|
|
8049
|
-
/* @__PURE__ */
|
|
8059
|
+
/* @__PURE__ */ jsx199(
|
|
8050
8060
|
Label,
|
|
8051
8061
|
{
|
|
8052
8062
|
disabled,
|
|
@@ -8055,7 +8065,7 @@ var Radio = forwardRef16(
|
|
|
8055
8065
|
children: label
|
|
8056
8066
|
}
|
|
8057
8067
|
),
|
|
8058
|
-
/* @__PURE__ */
|
|
8068
|
+
/* @__PURE__ */ jsx199(LabelDescription, { children: description })
|
|
8059
8069
|
] })
|
|
8060
8070
|
]
|
|
8061
8071
|
}
|
|
@@ -8065,11 +8075,11 @@ var Radio = forwardRef16(
|
|
|
8065
8075
|
Radio.displayName = "Radio";
|
|
8066
8076
|
|
|
8067
8077
|
// src/components/Tag/Tag.tsx
|
|
8068
|
-
import { forwardRef as
|
|
8069
|
-
import
|
|
8078
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
8079
|
+
import styled36 from "styled-components";
|
|
8070
8080
|
import { isNil as isNil11, isNotNil as isNotNil14, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
8071
|
-
import { Fragment as Fragment2, jsx as
|
|
8072
|
-
var TagLabel =
|
|
8081
|
+
import { Fragment as Fragment2, jsx as jsx200, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
8082
|
+
var TagLabel = styled36.a`
|
|
8073
8083
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8074
8084
|
font-size: var(--wui-typography-label-4-size);
|
|
8075
8085
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8097,14 +8107,14 @@ var TagLabel = styled35.a`
|
|
|
8097
8107
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8098
8108
|
}
|
|
8099
8109
|
`;
|
|
8100
|
-
var TagDivider =
|
|
8110
|
+
var TagDivider = styled36.div`
|
|
8101
8111
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8102
8112
|
border-left: 1px solid var(--wui-color-border);
|
|
8103
8113
|
display: flex;
|
|
8104
8114
|
height: 14px;
|
|
8105
8115
|
width: 1px;
|
|
8106
8116
|
`;
|
|
8107
|
-
var StyledRemoveButton =
|
|
8117
|
+
var StyledRemoveButton = styled36.button`
|
|
8108
8118
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8109
8119
|
all: unset;
|
|
8110
8120
|
cursor: pointer;
|
|
@@ -8132,7 +8142,7 @@ var StyledRemoveButton = styled35.button`
|
|
|
8132
8142
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8133
8143
|
}
|
|
8134
8144
|
`;
|
|
8135
|
-
var StyledTag =
|
|
8145
|
+
var StyledTag = styled36.div`
|
|
8136
8146
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8137
8147
|
align-items: center;
|
|
8138
8148
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -8150,7 +8160,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8150
8160
|
);
|
|
8151
8161
|
}
|
|
8152
8162
|
return /* @__PURE__ */ jsxs21(Fragment2, { children: [
|
|
8153
|
-
/* @__PURE__ */
|
|
8163
|
+
/* @__PURE__ */ jsx200(TagDivider, { $colorScheme: colorScheme }),
|
|
8154
8164
|
/* @__PURE__ */ jsxs21(
|
|
8155
8165
|
StyledRemoveButton,
|
|
8156
8166
|
{
|
|
@@ -8158,20 +8168,20 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8158
8168
|
onClick: onClickRemove,
|
|
8159
8169
|
type: "button",
|
|
8160
8170
|
children: [
|
|
8161
|
-
/* @__PURE__ */
|
|
8171
|
+
/* @__PURE__ */ jsx200(
|
|
8162
8172
|
Icon,
|
|
8163
8173
|
{
|
|
8164
8174
|
size: "sm",
|
|
8165
8175
|
type: "close"
|
|
8166
8176
|
}
|
|
8167
8177
|
),
|
|
8168
|
-
/* @__PURE__ */
|
|
8178
|
+
/* @__PURE__ */ jsx200(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
8169
8179
|
]
|
|
8170
8180
|
}
|
|
8171
8181
|
)
|
|
8172
8182
|
] });
|
|
8173
8183
|
};
|
|
8174
|
-
var Tag =
|
|
8184
|
+
var Tag = forwardRef18(
|
|
8175
8185
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
8176
8186
|
const labelProps = isNotNil14(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
|
|
8177
8187
|
return /* @__PURE__ */ jsxs21(
|
|
@@ -8181,7 +8191,7 @@ var Tag = forwardRef17(
|
|
|
8181
8191
|
$colorScheme: colorScheme,
|
|
8182
8192
|
...otherProps,
|
|
8183
8193
|
children: [
|
|
8184
|
-
/* @__PURE__ */
|
|
8194
|
+
/* @__PURE__ */ jsx200(
|
|
8185
8195
|
TagLabel,
|
|
8186
8196
|
{
|
|
8187
8197
|
...labelProps,
|
|
@@ -8189,7 +8199,7 @@ var Tag = forwardRef17(
|
|
|
8189
8199
|
children: label
|
|
8190
8200
|
}
|
|
8191
8201
|
),
|
|
8192
|
-
/* @__PURE__ */
|
|
8202
|
+
/* @__PURE__ */ jsx200(
|
|
8193
8203
|
RemoveButton,
|
|
8194
8204
|
{
|
|
8195
8205
|
colorScheme,
|
|
@@ -8212,16 +8222,16 @@ import {
|
|
|
8212
8222
|
Portal,
|
|
8213
8223
|
Arrow
|
|
8214
8224
|
} from "@radix-ui/react-tooltip";
|
|
8215
|
-
import
|
|
8216
|
-
import { jsx as
|
|
8217
|
-
var CompactTooltipStyles =
|
|
8225
|
+
import styled37, { css as css22 } from "styled-components";
|
|
8226
|
+
import { jsx as jsx201, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
8227
|
+
var CompactTooltipStyles = css22`
|
|
8218
8228
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8219
8229
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8220
8230
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8221
8231
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8222
8232
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8223
8233
|
`;
|
|
8224
|
-
var StyledContent =
|
|
8234
|
+
var StyledContent = styled37(Content)`
|
|
8225
8235
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8226
8236
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8227
8237
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8285,8 +8295,8 @@ var Tooltip = ({
|
|
|
8285
8295
|
delayDuration: delay,
|
|
8286
8296
|
...rootProps,
|
|
8287
8297
|
children: [
|
|
8288
|
-
/* @__PURE__ */
|
|
8289
|
-
/* @__PURE__ */
|
|
8298
|
+
/* @__PURE__ */ jsx201(Trigger, { asChild: true, children }),
|
|
8299
|
+
/* @__PURE__ */ jsx201(Portal, { children: /* @__PURE__ */ jsxs22(
|
|
8290
8300
|
StyledContent,
|
|
8291
8301
|
{
|
|
8292
8302
|
$compact: compact,
|
|
@@ -8294,7 +8304,7 @@ var Tooltip = ({
|
|
|
8294
8304
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
8295
8305
|
children: [
|
|
8296
8306
|
content,
|
|
8297
|
-
!hideArrow ? /* @__PURE__ */
|
|
8307
|
+
!hideArrow ? /* @__PURE__ */ jsx201(Arrow, { asChild: true, children: /* @__PURE__ */ jsx201(
|
|
8298
8308
|
"svg",
|
|
8299
8309
|
{
|
|
8300
8310
|
fill: "var(--tooltip-bg)",
|
|
@@ -8303,7 +8313,7 @@ var Tooltip = ({
|
|
|
8303
8313
|
viewBox: "0 0 12 8",
|
|
8304
8314
|
width: "12",
|
|
8305
8315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8306
|
-
children: /* @__PURE__ */
|
|
8316
|
+
children: /* @__PURE__ */ jsx201("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
|
|
8307
8317
|
}
|
|
8308
8318
|
) }) : null
|
|
8309
8319
|
]
|
|
@@ -8316,26 +8326,26 @@ var Tooltip = ({
|
|
|
8316
8326
|
Tooltip.displayName = "Tooltip";
|
|
8317
8327
|
|
|
8318
8328
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8319
|
-
import
|
|
8329
|
+
import styled38 from "styled-components";
|
|
8320
8330
|
import { isNotNil as isNotNil15 } from "@wistia/type-guards";
|
|
8321
|
-
import { jsx as
|
|
8331
|
+
import { jsx as jsx202, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8322
8332
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
8323
8333
|
if (iconOnly) {
|
|
8324
|
-
return /* @__PURE__ */
|
|
8334
|
+
return /* @__PURE__ */ jsx202(
|
|
8325
8335
|
"g",
|
|
8326
8336
|
{
|
|
8327
8337
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8328
8338
|
fill: brandmarkColor,
|
|
8329
|
-
children: /* @__PURE__ */
|
|
8339
|
+
children: /* @__PURE__ */ jsx202("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
8330
8340
|
}
|
|
8331
8341
|
);
|
|
8332
8342
|
}
|
|
8333
|
-
return /* @__PURE__ */
|
|
8343
|
+
return /* @__PURE__ */ jsx202(
|
|
8334
8344
|
"g",
|
|
8335
8345
|
{
|
|
8336
8346
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8337
8347
|
fill: brandmarkColor,
|
|
8338
|
-
children: /* @__PURE__ */
|
|
8348
|
+
children: /* @__PURE__ */ jsx202("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
8339
8349
|
}
|
|
8340
8350
|
);
|
|
8341
8351
|
};
|
|
@@ -8343,12 +8353,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
8343
8353
|
if (iconOnly) {
|
|
8344
8354
|
return null;
|
|
8345
8355
|
}
|
|
8346
|
-
return /* @__PURE__ */
|
|
8356
|
+
return /* @__PURE__ */ jsx202(
|
|
8347
8357
|
"g",
|
|
8348
8358
|
{
|
|
8349
8359
|
"data-testid": "ui-wistia-logo-logotype",
|
|
8350
8360
|
fill: logotypeColor,
|
|
8351
|
-
children: /* @__PURE__ */
|
|
8361
|
+
children: /* @__PURE__ */ jsx202("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
|
|
8352
8362
|
}
|
|
8353
8363
|
);
|
|
8354
8364
|
};
|
|
@@ -8358,7 +8368,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8358
8368
|
}
|
|
8359
8369
|
return "0 0 144 31.47";
|
|
8360
8370
|
};
|
|
8361
|
-
var WistiaLogoComponent =
|
|
8371
|
+
var WistiaLogoComponent = styled38.svg`
|
|
8362
8372
|
height: ${({ height }) => `${height}px`};
|
|
8363
8373
|
|
|
8364
8374
|
/* ensure it will always fit on mobile */
|
|
@@ -8410,14 +8420,14 @@ var WistiaLogo = ({
|
|
|
8410
8420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8411
8421
|
...otherProps,
|
|
8412
8422
|
children: [
|
|
8413
|
-
/* @__PURE__ */
|
|
8414
|
-
isNotNil15(description) ? /* @__PURE__ */
|
|
8423
|
+
/* @__PURE__ */ jsx202("title", { children: title }),
|
|
8424
|
+
isNotNil15(description) ? /* @__PURE__ */ jsx202("desc", { children: description }) : null,
|
|
8415
8425
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
8416
8426
|
renderLogotype(logotypeColor, iconOnly)
|
|
8417
8427
|
]
|
|
8418
8428
|
}
|
|
8419
8429
|
);
|
|
8420
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
8430
|
+
return href !== void 0 ? /* @__PURE__ */ jsx202("a", { href, children: Logo }) : Logo;
|
|
8421
8431
|
};
|
|
8422
8432
|
WistiaLogo.displayName = "WistiaLogo";
|
|
8423
8433
|
export {
|