@wistia/ui 0.1.2 → 0.2.1
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 +316 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +24 -26
- package/dist/index.d.ts +24 -26
- package/dist/index.mjs +324 -243
- 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.1
|
|
3
|
+
* @license @wistia/ui v0.2.1
|
|
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,12 +7213,12 @@ 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
|
-
--menu-bg: var(--wui-color-bg-
|
|
7218
|
+
--menu-bg: var(--wui-color-bg-surface);
|
|
7212
7219
|
--menu-shadow: 0 0 64px 0 rgba(0 0 0 / 8%); /* TODO - Need a box-shadow token */
|
|
7213
|
-
--menu-border-radius: var(--wui-border-radius-
|
|
7214
|
-
--menu-padding: var(--wui-space-
|
|
7220
|
+
--menu-border-radius: var(--wui-border-radius-02);
|
|
7221
|
+
--menu-padding: var(--wui-space-02);
|
|
7215
7222
|
--menu-min-width: 120px;
|
|
7216
7223
|
--menu-max-width: 284px;
|
|
7217
7224
|
|
|
@@ -7227,6 +7234,7 @@ var menuContentCss = css19`
|
|
|
7227
7234
|
padding: var(--menu-padding);
|
|
7228
7235
|
transform-origin: var(--radix-dropdown-menu-content-transform-origin);
|
|
7229
7236
|
z-index: var(--wui-zindex-menu);
|
|
7237
|
+
border: 1px solid var(--wui-color-border);
|
|
7230
7238
|
|
|
7231
7239
|
&[data-state='closed'] {
|
|
7232
7240
|
animation: ${close}; /* TODO - need easing tokens */
|
|
@@ -7244,12 +7252,35 @@ var menuContentCss = css19`
|
|
|
7244
7252
|
margin: var(--wui-space-02) 0;
|
|
7245
7253
|
}
|
|
7246
7254
|
`;
|
|
7255
|
+
var menuItemCss = css20`
|
|
7256
|
+
--menu-label-description-gap: var(--wui-space-01);
|
|
7257
|
+
--menu-item-inner-gap: var(--wui-space-03);
|
|
7258
|
+
--menu-item-left-icon-size: 24px;
|
|
7259
|
+
--menu-item-right-icon-size: 16px;
|
|
7260
|
+
--menu-item-padding: var(--wui-space-02);
|
|
7261
|
+
--menu-label-font-size: var(--wui-typography-label-3-size);
|
|
7262
|
+
--menu-label-font-weight: var(--wui-typography-label-3-weight);
|
|
7263
|
+
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
7264
|
+
`;
|
|
7265
|
+
var compactMenuItemCss = css20`
|
|
7266
|
+
--menu-label-description-gap: 0;
|
|
7267
|
+
--menu-item-inner-gap: var(--wui-space-02);
|
|
7268
|
+
--menu-item-left-icon-size: 16px;
|
|
7269
|
+
--menu-item-right-icon-size: 12px;
|
|
7270
|
+
--menu-item-padding: 6px;
|
|
7271
|
+
--menu-label-font-size: var(--wui-typography-label-4-size);
|
|
7272
|
+
--menu-label-font-weight: var(--wui-typography-label-4-weight);
|
|
7273
|
+
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
7274
|
+
`;
|
|
7247
7275
|
var MenuContent = styled24(DropdownMenuContent)`
|
|
7248
7276
|
${menuContentCss}
|
|
7277
|
+
${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss}
|
|
7249
7278
|
`;
|
|
7250
7279
|
var Menu = ({
|
|
7251
7280
|
align = "start",
|
|
7252
7281
|
children,
|
|
7282
|
+
disabled = false,
|
|
7283
|
+
compact = false,
|
|
7253
7284
|
trigger,
|
|
7254
7285
|
label,
|
|
7255
7286
|
isOpen,
|
|
@@ -7258,16 +7289,26 @@ var Menu = ({
|
|
|
7258
7289
|
onInteractOutside,
|
|
7259
7290
|
...props
|
|
7260
7291
|
}) => {
|
|
7292
|
+
let controlProps = {
|
|
7293
|
+
...isNotNil9(onOpenChange) && isNotNil9(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
7294
|
+
};
|
|
7295
|
+
if (disabled) {
|
|
7296
|
+
controlProps = {
|
|
7297
|
+
open: false,
|
|
7298
|
+
onOpenChange: () => null
|
|
7299
|
+
};
|
|
7300
|
+
}
|
|
7261
7301
|
return /* @__PURE__ */ jsxs13(
|
|
7262
7302
|
DropdownMenu,
|
|
7263
7303
|
{
|
|
7264
7304
|
modal: false,
|
|
7265
|
-
...
|
|
7305
|
+
...controlProps,
|
|
7266
7306
|
children: [
|
|
7267
7307
|
/* @__PURE__ */ jsx184(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx184(
|
|
7268
7308
|
Button,
|
|
7269
7309
|
{
|
|
7270
7310
|
"aria-expanded": isOpen,
|
|
7311
|
+
disabled,
|
|
7271
7312
|
forceState: isOpen ? "active" : void 0,
|
|
7272
7313
|
rightIcon: /* @__PURE__ */ jsx184(Icon, { type: "caret-down" }),
|
|
7273
7314
|
...triggerProps,
|
|
@@ -7278,11 +7319,12 @@ var Menu = ({
|
|
|
7278
7319
|
MenuContent,
|
|
7279
7320
|
{
|
|
7280
7321
|
...props,
|
|
7322
|
+
$compact: compact,
|
|
7281
7323
|
align,
|
|
7324
|
+
sideOffset: 6,
|
|
7282
7325
|
onFocusOutside: (event) => {
|
|
7283
7326
|
event.preventDefault();
|
|
7284
7327
|
},
|
|
7285
|
-
sideOffset: 6,
|
|
7286
7328
|
children
|
|
7287
7329
|
}
|
|
7288
7330
|
) })
|
|
@@ -7306,9 +7348,10 @@ var MenuLabel = ({ children, ...props }) => {
|
|
|
7306
7348
|
asChild: true,
|
|
7307
7349
|
...props,
|
|
7308
7350
|
children: /* @__PURE__ */ jsx185(
|
|
7309
|
-
|
|
7351
|
+
Heading,
|
|
7310
7352
|
{
|
|
7311
|
-
|
|
7353
|
+
renderAs: "span",
|
|
7354
|
+
variant: "heading6",
|
|
7312
7355
|
...props,
|
|
7313
7356
|
children
|
|
7314
7357
|
}
|
|
@@ -7329,6 +7372,7 @@ import {
|
|
|
7329
7372
|
DropdownMenuSubTrigger,
|
|
7330
7373
|
DropdownMenuItem
|
|
7331
7374
|
} from "@radix-ui/react-dropdown-menu";
|
|
7375
|
+
import { isNotNil as isNotNil11 } from "@wistia/type-guards";
|
|
7332
7376
|
|
|
7333
7377
|
// src/components/Menu/MenuItemButton.tsx
|
|
7334
7378
|
import { forwardRef as forwardRef12 } from "react";
|
|
@@ -7336,38 +7380,74 @@ import styled26 from "styled-components";
|
|
|
7336
7380
|
import { isNotNil as isNotNil10, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
7337
7381
|
import { jsx as jsx186, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
7338
7382
|
var StyledButton3 = styled26(Button)`
|
|
7339
|
-
|
|
7340
|
-
--menu-item-gap: var(--wui-space-01);
|
|
7341
|
-
--menu-item-inner-gap: var(--wui-space-04);
|
|
7342
|
-
--menu-item-disabled-bg: var(--wui-color-white);
|
|
7383
|
+
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
7343
7384
|
|
|
7344
|
-
text-align: left;
|
|
7345
|
-
align-items: left;
|
|
7346
|
-
border-radius: var(--menu-item-border-radius);
|
|
7347
7385
|
display: flex;
|
|
7386
|
+
flex-direction: row;
|
|
7387
|
+
gap: var(--menu-item-inner-gap);
|
|
7388
|
+
padding: var(--menu-item-padding);
|
|
7389
|
+
border-radius: var(--wui-border-radius-01);
|
|
7390
|
+
text-align: left;
|
|
7391
|
+
color: var(--wui-color-text);
|
|
7392
|
+
font-size: var(--menu-label-font-size);
|
|
7393
|
+
font-weight: var(--menu-label-font-weight);
|
|
7394
|
+
line-height: var(--menu-label-line-height);
|
|
7395
|
+
|
|
7396
|
+
:active {
|
|
7397
|
+
background-color: var(--wui-color-bg-surface-active);
|
|
7398
|
+
}
|
|
7399
|
+
|
|
7400
|
+
&[data-highlighted] {
|
|
7401
|
+
outline: none;
|
|
7402
|
+
${({ $isGated }) => $isGated && getColorScheme("purple")};
|
|
7403
|
+
background-color: var(--wui-color-bg-surface-hover);
|
|
7404
|
+
}
|
|
7348
7405
|
|
|
7349
7406
|
&[aria-disabled='true'] {
|
|
7350
|
-
|
|
7407
|
+
--wui-color-text: var(--wui-color-text-disabled);
|
|
7408
|
+
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
7409
|
+
--wui-color-icon: var(--wui-color-icon-disabled);
|
|
7410
|
+
|
|
7411
|
+
&[data-highlighted] {
|
|
7412
|
+
background-color: transparent;
|
|
7413
|
+
}
|
|
7351
7414
|
}
|
|
7352
7415
|
|
|
7353
|
-
|
|
7416
|
+
&[role='menuitemradio'] {
|
|
7417
|
+
padding-left: var(--wui-space-04);
|
|
7418
|
+
}
|
|
7354
7419
|
`;
|
|
7355
|
-
var
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7420
|
+
var StyledLeftIconContainer = styled26.div`
|
|
7421
|
+
height: var(--menu-item-left-icon-size);
|
|
7422
|
+
width: var(--menu-item-left-icon-size);
|
|
7423
|
+
|
|
7424
|
+
svg {
|
|
7425
|
+
height: var(--menu-item-left-icon-size);
|
|
7426
|
+
width: var(--menu-item-left-icon-size);
|
|
7427
|
+
}
|
|
7428
|
+
`;
|
|
7429
|
+
var StyledRightIconContainer = styled26.div`
|
|
7430
|
+
height: var(--menu-item-right-icon-size);
|
|
7431
|
+
width: var(--menu-item-right-icon-size);
|
|
7432
|
+
|
|
7433
|
+
svg {
|
|
7434
|
+
height: var(--menu-item-right-icon-size);
|
|
7435
|
+
width: var(--menu-item-right-icon-size);
|
|
7436
|
+
}
|
|
7437
|
+
`;
|
|
7438
|
+
var StyledLabelAndDescriptionContainer = styled26.div`
|
|
7439
|
+
display: flex;
|
|
7440
|
+
flex-direction: column;
|
|
7441
|
+
gap: var(--menu-label-description-gap);
|
|
7442
|
+
flex-basis: 100%;
|
|
7363
7443
|
`;
|
|
7364
7444
|
var StyledBadgeContainer = styled26.div`
|
|
7365
|
-
grid-area: badge;
|
|
7366
7445
|
align-self: start;
|
|
7367
7446
|
justify-self: end;
|
|
7368
|
-
|
|
7447
|
+
font-size: var(--wui-typography-label-4-size);
|
|
7448
|
+
color: var(--wui-color-text-secondary);
|
|
7369
7449
|
`;
|
|
7370
|
-
var MenuItemButton = forwardRef12(({ children, appearance, command, ...props }, ref) => {
|
|
7450
|
+
var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...props }, ref) => {
|
|
7371
7451
|
let { colorScheme, badge } = props;
|
|
7372
7452
|
if (appearance === "dangerous") {
|
|
7373
7453
|
if (isNotUndefined8(colorScheme)) {
|
|
@@ -7376,13 +7456,19 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, ...props },
|
|
|
7376
7456
|
colorScheme = "error";
|
|
7377
7457
|
}
|
|
7378
7458
|
if (appearance === "gated") {
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7459
|
+
badge = /* @__PURE__ */ jsx186(
|
|
7460
|
+
Icon,
|
|
7461
|
+
{
|
|
7462
|
+
colorScheme: "purple",
|
|
7463
|
+
style: {
|
|
7464
|
+
height: "16px",
|
|
7465
|
+
width: "16px"
|
|
7466
|
+
},
|
|
7467
|
+
type: "sparkle"
|
|
7468
|
+
}
|
|
7469
|
+
);
|
|
7384
7470
|
}
|
|
7385
|
-
return /* @__PURE__ */
|
|
7471
|
+
return /* @__PURE__ */ jsxs14(
|
|
7386
7472
|
StyledButton3,
|
|
7387
7473
|
{
|
|
7388
7474
|
...props,
|
|
@@ -7390,11 +7476,13 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, ...props },
|
|
|
7390
7476
|
$isGated: appearance === "gated",
|
|
7391
7477
|
colorScheme: colorScheme ?? "default",
|
|
7392
7478
|
fullWidth: true,
|
|
7393
|
-
|
|
7394
|
-
children:
|
|
7395
|
-
children,
|
|
7396
|
-
|
|
7397
|
-
|
|
7479
|
+
unstyled: true,
|
|
7480
|
+
children: [
|
|
7481
|
+
props.leftIcon ? /* @__PURE__ */ jsx186(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
7482
|
+
/* @__PURE__ */ jsx186(StyledLabelAndDescriptionContainer, { children }),
|
|
7483
|
+
isNotNil10(badge) || isNotNil10(command) ? /* @__PURE__ */ jsx186(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
7484
|
+
props.rightIcon ? /* @__PURE__ */ jsx186(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
7485
|
+
]
|
|
7398
7486
|
}
|
|
7399
7487
|
);
|
|
7400
7488
|
});
|
|
@@ -7403,16 +7491,11 @@ MenuItemButton.displayName = "MenuItemButton";
|
|
|
7403
7491
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
7404
7492
|
import styled27 from "styled-components";
|
|
7405
7493
|
import { jsx as jsx187 } from "react/jsx-runtime";
|
|
7406
|
-
var StyledMenuItemLabel = styled27
|
|
7407
|
-
grid-area: label;
|
|
7408
|
-
`;
|
|
7494
|
+
var StyledMenuItemLabel = styled27.span``;
|
|
7409
7495
|
var StyledMenuItemDescription = styled27(Text).attrs({
|
|
7410
|
-
variant: "
|
|
7496
|
+
variant: "body4",
|
|
7411
7497
|
prominence: "secondary"
|
|
7412
|
-
})
|
|
7413
|
-
margin-top: var(--menu-item-gap);
|
|
7414
|
-
grid-area: description;
|
|
7415
|
-
`;
|
|
7498
|
+
})``;
|
|
7416
7499
|
var MenuItemLabel = ({ children }) => {
|
|
7417
7500
|
return /* @__PURE__ */ jsx187(StyledMenuItemLabel, { children });
|
|
7418
7501
|
};
|
|
@@ -7438,7 +7521,7 @@ var StyledSubTrigger = styled28(DropdownMenuSubTrigger)`
|
|
|
7438
7521
|
|
|
7439
7522
|
&[data-state='open'],
|
|
7440
7523
|
&[data-highlighted] {
|
|
7441
|
-
background-color: var(--
|
|
7524
|
+
background-color: var(--wui-color-bg-surface-hover);
|
|
7442
7525
|
}
|
|
7443
7526
|
`;
|
|
7444
7527
|
var SubMenuTrigger = (props) => {
|
|
@@ -7464,7 +7547,7 @@ var SubMenu = ({
|
|
|
7464
7547
|
return isSmAndUp ? /* @__PURE__ */ jsxs15(DropdownMenuSub, { onOpenChange, children: [
|
|
7465
7548
|
/* @__PURE__ */ jsxs15(SubMenuTrigger, { ...props, children: [
|
|
7466
7549
|
/* @__PURE__ */ jsx188(MenuItemLabel, { children: label }),
|
|
7467
|
-
/* @__PURE__ */ jsx188(MenuItemDescription, { children: description })
|
|
7550
|
+
isNotNil11(description) ? /* @__PURE__ */ jsx188(MenuItemDescription, { children: description }) : null
|
|
7468
7551
|
] }),
|
|
7469
7552
|
/* @__PURE__ */ jsx188(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx188(SubMenuContent, { children }) })
|
|
7470
7553
|
] }) : /* @__PURE__ */ jsxs15(DropdownMenuGroup, { children: [
|
|
@@ -7548,6 +7631,7 @@ var RadioMenuItem = ({
|
|
|
7548
7631
|
DropdownMenuRadioItem,
|
|
7549
7632
|
{
|
|
7550
7633
|
...extraProps,
|
|
7634
|
+
asChild: true,
|
|
7551
7635
|
value,
|
|
7552
7636
|
children: /* @__PURE__ */ jsx191(
|
|
7553
7637
|
MenuItemButton,
|
|
@@ -7572,30 +7656,23 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
7572
7656
|
{
|
|
7573
7657
|
...props,
|
|
7574
7658
|
fill: "none",
|
|
7575
|
-
height: "
|
|
7576
|
-
viewBox: "0 0
|
|
7577
|
-
width: "
|
|
7659
|
+
height: "24",
|
|
7660
|
+
viewBox: "0 0 24 24",
|
|
7661
|
+
width: "24",
|
|
7578
7662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7579
7663
|
children: [
|
|
7580
7664
|
/* @__PURE__ */ jsx192(
|
|
7581
7665
|
"path",
|
|
7582
7666
|
{
|
|
7583
|
-
d: "
|
|
7584
|
-
fill: "#
|
|
7667
|
+
d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
|
|
7668
|
+
fill: "#2949e5"
|
|
7585
7669
|
}
|
|
7586
7670
|
),
|
|
7587
7671
|
/* @__PURE__ */ jsx192(
|
|
7588
7672
|
"path",
|
|
7589
7673
|
{
|
|
7590
|
-
d: "
|
|
7591
|
-
|
|
7592
|
-
}
|
|
7593
|
-
),
|
|
7594
|
-
/* @__PURE__ */ jsx192(
|
|
7595
|
-
"path",
|
|
7596
|
-
{
|
|
7597
|
-
d: "M6.47275 11.1931L3.3775 8.08009C3.19155 7.89306 3.19155 7.58982 3.3775 7.40278L4.05092 6.72547C4.23688 6.53842 4.53841 6.53842 4.72436 6.72547L6.80947 8.82254L11.2755 4.33082C11.4615 4.1438 11.763 4.1438 11.949 4.33082L12.6224 5.00813C12.8083 5.19516 12.8083 5.4984 12.6224 5.68544L7.14618 11.1931C6.96021 11.3802 6.6587 11.3802 6.47275 11.1931Z",
|
|
7598
|
-
fill: "white"
|
|
7674
|
+
d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
|
|
7675
|
+
fill: "#fff"
|
|
7599
7676
|
}
|
|
7600
7677
|
)
|
|
7601
7678
|
]
|
|
@@ -7605,23 +7682,23 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
7605
7682
|
{
|
|
7606
7683
|
...props,
|
|
7607
7684
|
fill: "none",
|
|
7608
|
-
height: "
|
|
7609
|
-
viewBox: "0 0
|
|
7610
|
-
width: "
|
|
7685
|
+
height: "24",
|
|
7686
|
+
viewBox: "0 0 24 24",
|
|
7687
|
+
width: "24",
|
|
7611
7688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7612
7689
|
children: [
|
|
7613
7690
|
/* @__PURE__ */ jsx192(
|
|
7614
7691
|
"path",
|
|
7615
7692
|
{
|
|
7616
|
-
d: "
|
|
7617
|
-
fill: "#
|
|
7693
|
+
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
7694
|
+
fill: "#fcfcfd"
|
|
7618
7695
|
}
|
|
7619
7696
|
),
|
|
7620
7697
|
/* @__PURE__ */ jsx192(
|
|
7621
7698
|
"path",
|
|
7622
7699
|
{
|
|
7623
|
-
d: "
|
|
7624
|
-
stroke: "#
|
|
7700
|
+
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
7701
|
+
stroke: "#bbbbc4"
|
|
7625
7702
|
}
|
|
7626
7703
|
)
|
|
7627
7704
|
]
|
|
@@ -7637,6 +7714,7 @@ var CheckboxMenuItem = ({
|
|
|
7637
7714
|
return /* @__PURE__ */ jsx192(
|
|
7638
7715
|
DropdownMenuCheckboxItem,
|
|
7639
7716
|
{
|
|
7717
|
+
asChild: true,
|
|
7640
7718
|
checked,
|
|
7641
7719
|
onCheckedChange,
|
|
7642
7720
|
onSelect,
|
|
@@ -7653,14 +7731,10 @@ var CheckboxMenuItem = ({
|
|
|
7653
7731
|
CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
7654
7732
|
|
|
7655
7733
|
// src/components/Modal/Modal.tsx
|
|
7656
|
-
import { forwardRef as
|
|
7657
|
-
import
|
|
7658
|
-
import {
|
|
7659
|
-
|
|
7660
|
-
Content as DialogContent,
|
|
7661
|
-
Portal as DialogPortal
|
|
7662
|
-
} from "@radix-ui/react-dialog";
|
|
7663
|
-
import { isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
7734
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
7735
|
+
import styled34 from "styled-components";
|
|
7736
|
+
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
7737
|
+
import { isNotNil as isNotNil14 } from "@wistia/type-guards";
|
|
7664
7738
|
|
|
7665
7739
|
// src/components/Modal/ModalHeader.tsx
|
|
7666
7740
|
import styled31 from "styled-components";
|
|
@@ -7687,7 +7761,7 @@ var ModalCloseButton = () => {
|
|
|
7687
7761
|
|
|
7688
7762
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7689
7763
|
import styled30 from "styled-components";
|
|
7690
|
-
import { isNotNil as
|
|
7764
|
+
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
7691
7765
|
import { jsx as jsx194 } from "react/jsx-runtime";
|
|
7692
7766
|
var VisuallyHidden = styled30.div({ ...visuallyHiddenStyle });
|
|
7693
7767
|
var VisuallyHiddenButFocusable = styled30.div({
|
|
@@ -7699,7 +7773,7 @@ var ScreenReaderOnly = ({
|
|
|
7699
7773
|
focusable = false,
|
|
7700
7774
|
...otherProps
|
|
7701
7775
|
}) => {
|
|
7702
|
-
const accessibleText =
|
|
7776
|
+
const accessibleText = isNotNil12(text) ? text : children;
|
|
7703
7777
|
if (focusable) {
|
|
7704
7778
|
return /* @__PURE__ */ jsx194(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
7705
7779
|
}
|
|
@@ -7739,62 +7813,14 @@ var ModalHeader = ({
|
|
|
7739
7813
|
] });
|
|
7740
7814
|
};
|
|
7741
7815
|
|
|
7742
|
-
// src/
|
|
7816
|
+
// src/components/Modal/ModalContent.tsx
|
|
7743
7817
|
import { forwardRef as forwardRef14 } from "react";
|
|
7744
7818
|
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";
|
|
7819
|
+
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
7794
7820
|
|
|
7795
7821
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
7796
7822
|
import { useRef as useRef5, useEffect as useEffect2 } from "react";
|
|
7797
|
-
import { isNotNil as
|
|
7823
|
+
import { isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
7798
7824
|
var useFocusRestore = () => {
|
|
7799
7825
|
const previouslyFocusedRef = useRef5(null);
|
|
7800
7826
|
useEffect2(() => {
|
|
@@ -7802,7 +7828,7 @@ var useFocusRestore = () => {
|
|
|
7802
7828
|
}, []);
|
|
7803
7829
|
useEffect2(() => {
|
|
7804
7830
|
return () => {
|
|
7805
|
-
if (
|
|
7831
|
+
if (isNotNil13(previouslyFocusedRef.current)) {
|
|
7806
7832
|
setTimeout(() => {
|
|
7807
7833
|
previouslyFocusedRef.current?.focus();
|
|
7808
7834
|
}, 0);
|
|
@@ -7811,9 +7837,9 @@ var useFocusRestore = () => {
|
|
|
7811
7837
|
}, []);
|
|
7812
7838
|
};
|
|
7813
7839
|
|
|
7814
|
-
// src/components/Modal/
|
|
7815
|
-
import { jsx as
|
|
7816
|
-
var StyledModalContent =
|
|
7840
|
+
// src/components/Modal/ModalContent.tsx
|
|
7841
|
+
import { jsx as jsx196 } from "react/jsx-runtime";
|
|
7842
|
+
var StyledModalContent = styled32(DialogContent)`
|
|
7817
7843
|
background-color: var(--wui-color-bg-app);
|
|
7818
7844
|
box-sizing: border-box;
|
|
7819
7845
|
display: flex;
|
|
@@ -7853,10 +7879,10 @@ var StyledModalContent = styled33(DialogContent)`
|
|
|
7853
7879
|
}
|
|
7854
7880
|
}
|
|
7855
7881
|
`;
|
|
7856
|
-
var ModalContent =
|
|
7882
|
+
var ModalContent = forwardRef14(
|
|
7857
7883
|
({ fullHeight, width, children, ...otherProps }, ref) => {
|
|
7858
7884
|
useFocusRestore();
|
|
7859
|
-
return /* @__PURE__ */
|
|
7885
|
+
return /* @__PURE__ */ jsx196(
|
|
7860
7886
|
StyledModalContent,
|
|
7861
7887
|
{
|
|
7862
7888
|
ref,
|
|
@@ -7868,13 +7894,68 @@ var ModalContent = forwardRef15(
|
|
|
7868
7894
|
);
|
|
7869
7895
|
}
|
|
7870
7896
|
);
|
|
7871
|
-
|
|
7872
|
-
|
|
7897
|
+
|
|
7898
|
+
// src/private/components/Backdrop/Backdrop.tsx
|
|
7899
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
7900
|
+
import styled33 from "styled-components";
|
|
7901
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
7902
|
+
var backdropAnimationDuration = 150;
|
|
7903
|
+
var alignVerticalMap = {
|
|
7904
|
+
stretch: "normal",
|
|
7905
|
+
top: "start",
|
|
7906
|
+
center: "center",
|
|
7907
|
+
bottom: "end"
|
|
7908
|
+
};
|
|
7909
|
+
var alignHorizontalMap = {
|
|
7910
|
+
left: "start",
|
|
7911
|
+
center: "center",
|
|
7912
|
+
right: "end"
|
|
7913
|
+
};
|
|
7914
|
+
var BackdropComponent = styled33.div`
|
|
7915
|
+
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
7916
|
+
animation-name: backdropShow;
|
|
7917
|
+
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
7918
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
7919
|
+
background: var(--wui-color-backdrop);
|
|
7920
|
+
display: flex;
|
|
7921
|
+
inset: 0;
|
|
7922
|
+
justify-content: ${({ $alignHorizontal }) => alignHorizontalMap[$alignHorizontal]};
|
|
7923
|
+
overflow-y: auto;
|
|
7924
|
+
position: fixed;
|
|
7925
|
+
z-index: var(--wui-zindex-backdrop);
|
|
7926
|
+
|
|
7927
|
+
@keyframes backdropShow {
|
|
7928
|
+
from {
|
|
7929
|
+
opacity: 0;
|
|
7930
|
+
}
|
|
7931
|
+
|
|
7932
|
+
to {
|
|
7933
|
+
opacity: 1;
|
|
7934
|
+
}
|
|
7935
|
+
}
|
|
7936
|
+
`;
|
|
7937
|
+
var Backdrop = forwardRef15(
|
|
7938
|
+
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx197(
|
|
7939
|
+
BackdropComponent,
|
|
7940
|
+
{
|
|
7941
|
+
ref,
|
|
7942
|
+
$alignHorizontal: alignHorizontal,
|
|
7943
|
+
$alignVertical: alignVertical,
|
|
7944
|
+
...otherProps,
|
|
7945
|
+
children
|
|
7946
|
+
}
|
|
7947
|
+
)
|
|
7948
|
+
);
|
|
7949
|
+
Backdrop.displayName = "Backdrop";
|
|
7950
|
+
|
|
7951
|
+
// src/components/Modal/Modal.tsx
|
|
7952
|
+
import { jsx as jsx198, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7953
|
+
var ModalBody = styled34.div`
|
|
7873
7954
|
flex-direction: column;
|
|
7874
7955
|
display: flex;
|
|
7875
7956
|
order: 2;
|
|
7876
7957
|
`;
|
|
7877
|
-
var Modal =
|
|
7958
|
+
var Modal = forwardRef16(
|
|
7878
7959
|
({
|
|
7879
7960
|
children,
|
|
7880
7961
|
fullHeight = false,
|
|
@@ -7887,17 +7968,17 @@ var Modal = forwardRef15(
|
|
|
7887
7968
|
width,
|
|
7888
7969
|
...props
|
|
7889
7970
|
}, ref) => {
|
|
7890
|
-
return /* @__PURE__ */
|
|
7971
|
+
return /* @__PURE__ */ jsx198(
|
|
7891
7972
|
DialogRoot,
|
|
7892
7973
|
{
|
|
7893
7974
|
onOpenChange: (open2) => {
|
|
7894
|
-
if (!open2 &&
|
|
7975
|
+
if (!open2 && isNotNil14(onRequestClose)) {
|
|
7895
7976
|
onRequestClose();
|
|
7896
7977
|
}
|
|
7897
7978
|
},
|
|
7898
7979
|
open: isOpen,
|
|
7899
7980
|
children: /* @__PURE__ */ jsxs19(DialogPortal, { children: [
|
|
7900
|
-
/* @__PURE__ */
|
|
7981
|
+
/* @__PURE__ */ jsx198(Backdrop, {}),
|
|
7901
7982
|
/* @__PURE__ */ jsxs19(
|
|
7902
7983
|
ModalContent,
|
|
7903
7984
|
{
|
|
@@ -7905,7 +7986,7 @@ var Modal = forwardRef15(
|
|
|
7905
7986
|
"aria-describedby": void 0,
|
|
7906
7987
|
fullHeight,
|
|
7907
7988
|
onOpenAutoFocus: (event) => {
|
|
7908
|
-
if (
|
|
7989
|
+
if (isNotNil14(initialFocusRef) && initialFocusRef.current) {
|
|
7909
7990
|
event.preventDefault();
|
|
7910
7991
|
requestAnimationFrame(() => {
|
|
7911
7992
|
initialFocusRef.current?.focus();
|
|
@@ -7915,8 +7996,8 @@ var Modal = forwardRef15(
|
|
|
7915
7996
|
width,
|
|
7916
7997
|
...props,
|
|
7917
7998
|
children: [
|
|
7918
|
-
/* @__PURE__ */
|
|
7919
|
-
/* @__PURE__ */
|
|
7999
|
+
/* @__PURE__ */ jsx198(ModalBody, { children }),
|
|
8000
|
+
/* @__PURE__ */ jsx198(
|
|
7920
8001
|
ModalHeader,
|
|
7921
8002
|
{
|
|
7922
8003
|
hideCloseButton,
|
|
@@ -7935,16 +8016,16 @@ var Modal = forwardRef15(
|
|
|
7935
8016
|
Modal.displayName = "Modal";
|
|
7936
8017
|
|
|
7937
8018
|
// src/components/Radio/Radio.tsx
|
|
7938
|
-
import { forwardRef as
|
|
7939
|
-
import
|
|
8019
|
+
import { forwardRef as forwardRef17, useId as useId3 } from "react";
|
|
8020
|
+
import styled35, { css as css21 } from "styled-components";
|
|
7940
8021
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
7941
|
-
import { jsx as
|
|
7942
|
-
var StyledLabelWrapper2 =
|
|
8022
|
+
import { jsx as jsx199, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
8023
|
+
var StyledLabelWrapper2 = styled35.div`
|
|
7943
8024
|
display: flex;
|
|
7944
8025
|
flex-direction: column;
|
|
7945
8026
|
padding-left: var(--wui-space-02);
|
|
7946
8027
|
`;
|
|
7947
|
-
var StyledRadio =
|
|
8028
|
+
var StyledRadio = styled35.input`
|
|
7948
8029
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
7949
8030
|
appearance: none;
|
|
7950
8031
|
margin: 0;
|
|
@@ -7970,11 +8051,11 @@ var StyledRadio = styled34.input`
|
|
|
7970
8051
|
transform: scale(1);
|
|
7971
8052
|
}
|
|
7972
8053
|
`;
|
|
7973
|
-
var disabledStyle2 =
|
|
8054
|
+
var disabledStyle2 = css21`
|
|
7974
8055
|
cursor: not-allowed;
|
|
7975
8056
|
opacity: 0.5;
|
|
7976
8057
|
`;
|
|
7977
|
-
var errorStyle =
|
|
8058
|
+
var errorStyle = css21`
|
|
7978
8059
|
/* TODO Lamp to design error state */
|
|
7979
8060
|
&:hover,
|
|
7980
8061
|
&:focus,
|
|
@@ -7982,11 +8063,11 @@ var errorStyle = css20`
|
|
|
7982
8063
|
border-color: transparent !important;
|
|
7983
8064
|
}
|
|
7984
8065
|
`;
|
|
7985
|
-
var defaultHoverStyle =
|
|
8066
|
+
var defaultHoverStyle = css21`
|
|
7986
8067
|
/* TODO Lamp to design hover state */
|
|
7987
8068
|
cursor: pointer;
|
|
7988
8069
|
`;
|
|
7989
|
-
var StyledRadioWrapper =
|
|
8070
|
+
var StyledRadioWrapper = styled35.div`
|
|
7990
8071
|
align-items: baseline;
|
|
7991
8072
|
border: 1px solid transparent;
|
|
7992
8073
|
border-radius: 4px;
|
|
@@ -8009,7 +8090,7 @@ var StyledRadioWrapper = styled34.div`
|
|
|
8009
8090
|
|
|
8010
8091
|
${({ disabled }) => disabled && disabledStyle2};
|
|
8011
8092
|
`;
|
|
8012
|
-
var Radio =
|
|
8093
|
+
var Radio = forwardRef17(
|
|
8013
8094
|
({
|
|
8014
8095
|
checked,
|
|
8015
8096
|
disabled = false,
|
|
@@ -8030,7 +8111,7 @@ var Radio = forwardRef16(
|
|
|
8030
8111
|
"aria-invalid": otherProps["aria-invalid"],
|
|
8031
8112
|
disabled,
|
|
8032
8113
|
children: [
|
|
8033
|
-
/* @__PURE__ */
|
|
8114
|
+
/* @__PURE__ */ jsx199(
|
|
8034
8115
|
StyledRadio,
|
|
8035
8116
|
{
|
|
8036
8117
|
ref,
|
|
@@ -8046,7 +8127,7 @@ var Radio = forwardRef16(
|
|
|
8046
8127
|
}
|
|
8047
8128
|
),
|
|
8048
8129
|
/* @__PURE__ */ jsxs20(StyledLabelWrapper2, { children: [
|
|
8049
|
-
/* @__PURE__ */
|
|
8130
|
+
/* @__PURE__ */ jsx199(
|
|
8050
8131
|
Label,
|
|
8051
8132
|
{
|
|
8052
8133
|
disabled,
|
|
@@ -8055,7 +8136,7 @@ var Radio = forwardRef16(
|
|
|
8055
8136
|
children: label
|
|
8056
8137
|
}
|
|
8057
8138
|
),
|
|
8058
|
-
/* @__PURE__ */
|
|
8139
|
+
/* @__PURE__ */ jsx199(LabelDescription, { children: description })
|
|
8059
8140
|
] })
|
|
8060
8141
|
]
|
|
8061
8142
|
}
|
|
@@ -8065,11 +8146,11 @@ var Radio = forwardRef16(
|
|
|
8065
8146
|
Radio.displayName = "Radio";
|
|
8066
8147
|
|
|
8067
8148
|
// src/components/Tag/Tag.tsx
|
|
8068
|
-
import { forwardRef as
|
|
8069
|
-
import
|
|
8070
|
-
import { isNil as isNil11, isNotNil as
|
|
8071
|
-
import { Fragment as Fragment2, jsx as
|
|
8072
|
-
var TagLabel =
|
|
8149
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
8150
|
+
import styled36 from "styled-components";
|
|
8151
|
+
import { isNil as isNil11, isNotNil as isNotNil15, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
8152
|
+
import { Fragment as Fragment2, jsx as jsx200, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
8153
|
+
var TagLabel = styled36.a`
|
|
8073
8154
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8074
8155
|
font-size: var(--wui-typography-label-4-size);
|
|
8075
8156
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8097,14 +8178,14 @@ var TagLabel = styled35.a`
|
|
|
8097
8178
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8098
8179
|
}
|
|
8099
8180
|
`;
|
|
8100
|
-
var TagDivider =
|
|
8181
|
+
var TagDivider = styled36.div`
|
|
8101
8182
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8102
8183
|
border-left: 1px solid var(--wui-color-border);
|
|
8103
8184
|
display: flex;
|
|
8104
8185
|
height: 14px;
|
|
8105
8186
|
width: 1px;
|
|
8106
8187
|
`;
|
|
8107
|
-
var StyledRemoveButton =
|
|
8188
|
+
var StyledRemoveButton = styled36.button`
|
|
8108
8189
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8109
8190
|
all: unset;
|
|
8110
8191
|
cursor: pointer;
|
|
@@ -8132,7 +8213,7 @@ var StyledRemoveButton = styled35.button`
|
|
|
8132
8213
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8133
8214
|
}
|
|
8134
8215
|
`;
|
|
8135
|
-
var StyledTag =
|
|
8216
|
+
var StyledTag = styled36.div`
|
|
8136
8217
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8137
8218
|
align-items: center;
|
|
8138
8219
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -8150,7 +8231,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8150
8231
|
);
|
|
8151
8232
|
}
|
|
8152
8233
|
return /* @__PURE__ */ jsxs21(Fragment2, { children: [
|
|
8153
|
-
/* @__PURE__ */
|
|
8234
|
+
/* @__PURE__ */ jsx200(TagDivider, { $colorScheme: colorScheme }),
|
|
8154
8235
|
/* @__PURE__ */ jsxs21(
|
|
8155
8236
|
StyledRemoveButton,
|
|
8156
8237
|
{
|
|
@@ -8158,22 +8239,22 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8158
8239
|
onClick: onClickRemove,
|
|
8159
8240
|
type: "button",
|
|
8160
8241
|
children: [
|
|
8161
|
-
/* @__PURE__ */
|
|
8242
|
+
/* @__PURE__ */ jsx200(
|
|
8162
8243
|
Icon,
|
|
8163
8244
|
{
|
|
8164
8245
|
size: "sm",
|
|
8165
8246
|
type: "close"
|
|
8166
8247
|
}
|
|
8167
8248
|
),
|
|
8168
|
-
/* @__PURE__ */
|
|
8249
|
+
/* @__PURE__ */ jsx200(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
8169
8250
|
]
|
|
8170
8251
|
}
|
|
8171
8252
|
)
|
|
8172
8253
|
] });
|
|
8173
8254
|
};
|
|
8174
|
-
var Tag =
|
|
8255
|
+
var Tag = forwardRef18(
|
|
8175
8256
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
8176
|
-
const labelProps =
|
|
8257
|
+
const labelProps = isNotNil15(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
|
|
8177
8258
|
return /* @__PURE__ */ jsxs21(
|
|
8178
8259
|
StyledTag,
|
|
8179
8260
|
{
|
|
@@ -8181,7 +8262,7 @@ var Tag = forwardRef17(
|
|
|
8181
8262
|
$colorScheme: colorScheme,
|
|
8182
8263
|
...otherProps,
|
|
8183
8264
|
children: [
|
|
8184
|
-
/* @__PURE__ */
|
|
8265
|
+
/* @__PURE__ */ jsx200(
|
|
8185
8266
|
TagLabel,
|
|
8186
8267
|
{
|
|
8187
8268
|
...labelProps,
|
|
@@ -8189,7 +8270,7 @@ var Tag = forwardRef17(
|
|
|
8189
8270
|
children: label
|
|
8190
8271
|
}
|
|
8191
8272
|
),
|
|
8192
|
-
/* @__PURE__ */
|
|
8273
|
+
/* @__PURE__ */ jsx200(
|
|
8193
8274
|
RemoveButton,
|
|
8194
8275
|
{
|
|
8195
8276
|
colorScheme,
|
|
@@ -8212,16 +8293,16 @@ import {
|
|
|
8212
8293
|
Portal,
|
|
8213
8294
|
Arrow
|
|
8214
8295
|
} from "@radix-ui/react-tooltip";
|
|
8215
|
-
import
|
|
8216
|
-
import { jsx as
|
|
8217
|
-
var CompactTooltipStyles =
|
|
8296
|
+
import styled37, { css as css22 } from "styled-components";
|
|
8297
|
+
import { jsx as jsx201, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
8298
|
+
var CompactTooltipStyles = css22`
|
|
8218
8299
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8219
8300
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8220
8301
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8221
8302
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8222
8303
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8223
8304
|
`;
|
|
8224
|
-
var StyledContent =
|
|
8305
|
+
var StyledContent = styled37(Content)`
|
|
8225
8306
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8226
8307
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8227
8308
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8285,8 +8366,8 @@ var Tooltip = ({
|
|
|
8285
8366
|
delayDuration: delay,
|
|
8286
8367
|
...rootProps,
|
|
8287
8368
|
children: [
|
|
8288
|
-
/* @__PURE__ */
|
|
8289
|
-
/* @__PURE__ */
|
|
8369
|
+
/* @__PURE__ */ jsx201(Trigger, { asChild: true, children }),
|
|
8370
|
+
/* @__PURE__ */ jsx201(Portal, { children: /* @__PURE__ */ jsxs22(
|
|
8290
8371
|
StyledContent,
|
|
8291
8372
|
{
|
|
8292
8373
|
$compact: compact,
|
|
@@ -8294,7 +8375,7 @@ var Tooltip = ({
|
|
|
8294
8375
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
8295
8376
|
children: [
|
|
8296
8377
|
content,
|
|
8297
|
-
!hideArrow ? /* @__PURE__ */
|
|
8378
|
+
!hideArrow ? /* @__PURE__ */ jsx201(Arrow, { asChild: true, children: /* @__PURE__ */ jsx201(
|
|
8298
8379
|
"svg",
|
|
8299
8380
|
{
|
|
8300
8381
|
fill: "var(--tooltip-bg)",
|
|
@@ -8303,7 +8384,7 @@ var Tooltip = ({
|
|
|
8303
8384
|
viewBox: "0 0 12 8",
|
|
8304
8385
|
width: "12",
|
|
8305
8386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8306
|
-
children: /* @__PURE__ */
|
|
8387
|
+
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
8388
|
}
|
|
8308
8389
|
) }) : null
|
|
8309
8390
|
]
|
|
@@ -8316,26 +8397,26 @@ var Tooltip = ({
|
|
|
8316
8397
|
Tooltip.displayName = "Tooltip";
|
|
8317
8398
|
|
|
8318
8399
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8319
|
-
import
|
|
8320
|
-
import { isNotNil as
|
|
8321
|
-
import { jsx as
|
|
8400
|
+
import styled38 from "styled-components";
|
|
8401
|
+
import { isNotNil as isNotNil16 } from "@wistia/type-guards";
|
|
8402
|
+
import { jsx as jsx202, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8322
8403
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
8323
8404
|
if (iconOnly) {
|
|
8324
|
-
return /* @__PURE__ */
|
|
8405
|
+
return /* @__PURE__ */ jsx202(
|
|
8325
8406
|
"g",
|
|
8326
8407
|
{
|
|
8327
8408
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8328
8409
|
fill: brandmarkColor,
|
|
8329
|
-
children: /* @__PURE__ */
|
|
8410
|
+
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
8411
|
}
|
|
8331
8412
|
);
|
|
8332
8413
|
}
|
|
8333
|
-
return /* @__PURE__ */
|
|
8414
|
+
return /* @__PURE__ */ jsx202(
|
|
8334
8415
|
"g",
|
|
8335
8416
|
{
|
|
8336
8417
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8337
8418
|
fill: brandmarkColor,
|
|
8338
|
-
children: /* @__PURE__ */
|
|
8419
|
+
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
8420
|
}
|
|
8340
8421
|
);
|
|
8341
8422
|
};
|
|
@@ -8343,12 +8424,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
8343
8424
|
if (iconOnly) {
|
|
8344
8425
|
return null;
|
|
8345
8426
|
}
|
|
8346
|
-
return /* @__PURE__ */
|
|
8427
|
+
return /* @__PURE__ */ jsx202(
|
|
8347
8428
|
"g",
|
|
8348
8429
|
{
|
|
8349
8430
|
"data-testid": "ui-wistia-logo-logotype",
|
|
8350
8431
|
fill: logotypeColor,
|
|
8351
|
-
children: /* @__PURE__ */
|
|
8432
|
+
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
8433
|
}
|
|
8353
8434
|
);
|
|
8354
8435
|
};
|
|
@@ -8358,7 +8439,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8358
8439
|
}
|
|
8359
8440
|
return "0 0 144 31.47";
|
|
8360
8441
|
};
|
|
8361
|
-
var WistiaLogoComponent =
|
|
8442
|
+
var WistiaLogoComponent = styled38.svg`
|
|
8362
8443
|
height: ${({ height }) => `${height}px`};
|
|
8363
8444
|
|
|
8364
8445
|
/* ensure it will always fit on mobile */
|
|
@@ -8410,14 +8491,14 @@ var WistiaLogo = ({
|
|
|
8410
8491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8411
8492
|
...otherProps,
|
|
8412
8493
|
children: [
|
|
8413
|
-
/* @__PURE__ */
|
|
8414
|
-
|
|
8494
|
+
/* @__PURE__ */ jsx202("title", { children: title }),
|
|
8495
|
+
isNotNil16(description) ? /* @__PURE__ */ jsx202("desc", { children: description }) : null,
|
|
8415
8496
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
8416
8497
|
renderLogotype(logotypeColor, iconOnly)
|
|
8417
8498
|
]
|
|
8418
8499
|
}
|
|
8419
8500
|
);
|
|
8420
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
8501
|
+
return href !== void 0 ? /* @__PURE__ */ jsx202("a", { href, children: Logo }) : Logo;
|
|
8421
8502
|
};
|
|
8422
8503
|
WistiaLogo.displayName = "WistiaLogo";
|
|
8423
8504
|
export {
|