@wistia/ui 0.4.6-beta.c8781aca.f327beb → 0.4.6
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 +42 -151
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -51
- package/dist/index.d.ts +8 -51
- package/dist/index.mjs +42 -149
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -4
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.4.6
|
|
3
|
+
* @license @wistia/ui v0.4.6
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -75,8 +75,6 @@ __export(index_exports, {
|
|
|
75
75
|
RadioGroup: () => RadioGroup,
|
|
76
76
|
RadioMenuItem: () => RadioMenuItem,
|
|
77
77
|
ScreenReaderOnly: () => ScreenReaderOnly,
|
|
78
|
-
SegmentedControl: () => SegmentedControl,
|
|
79
|
-
SegmentedControlItem: () => SegmentedControlItem,
|
|
80
78
|
Stack: () => Stack,
|
|
81
79
|
SubMenu: () => SubMenu,
|
|
82
80
|
Tag: () => Tag,
|
|
@@ -6022,7 +6020,7 @@ var StyledBadge = import_styled_components22.default.div`
|
|
|
6022
6020
|
padding: var(--wui-space-01) var(--wui-space-02);
|
|
6023
6021
|
width: fit-content;
|
|
6024
6022
|
|
|
6025
|
-
/*
|
|
6023
|
+
/* TODO should these be a token? */
|
|
6026
6024
|
svg {
|
|
6027
6025
|
height: 12px;
|
|
6028
6026
|
width: 12px;
|
|
@@ -8426,117 +8424,12 @@ var Radio = (0, import_react37.forwardRef)(
|
|
|
8426
8424
|
);
|
|
8427
8425
|
Radio.displayName = "Radio";
|
|
8428
8426
|
|
|
8429
|
-
// src/components/
|
|
8427
|
+
// src/components/Tag/Tag.tsx
|
|
8428
|
+
var import_react38 = require("react");
|
|
8430
8429
|
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8431
|
-
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
8432
8430
|
var import_type_guards30 = require("@wistia/type-guards");
|
|
8433
8431
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
8434
|
-
var
|
|
8435
|
-
display: inline-flex;
|
|
8436
|
-
background-color: var(--wui-color-bg-surface-secondary);
|
|
8437
|
-
border-radius: var(--wui-border-radius-rounded);
|
|
8438
|
-
border: 2px solid var(--wui-color-bg-surface-secondary);
|
|
8439
|
-
gap: var(--wui-space-01);
|
|
8440
|
-
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
8441
|
-
`;
|
|
8442
|
-
var SegmentedControl = ({
|
|
8443
|
-
children,
|
|
8444
|
-
fullWidth = false,
|
|
8445
|
-
selectedValue,
|
|
8446
|
-
onSelectedValueChange,
|
|
8447
|
-
...props
|
|
8448
|
-
}) => {
|
|
8449
|
-
if ((0, import_type_guards30.isNil)(children)) {
|
|
8450
|
-
return null;
|
|
8451
|
-
}
|
|
8452
|
-
return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
8453
|
-
StyledSegmentedControl,
|
|
8454
|
-
{
|
|
8455
|
-
$fullWidth: fullWidth,
|
|
8456
|
-
loop: true,
|
|
8457
|
-
onValueChange: onSelectedValueChange,
|
|
8458
|
-
rovingFocus: true,
|
|
8459
|
-
type: "single",
|
|
8460
|
-
value: selectedValue,
|
|
8461
|
-
...props,
|
|
8462
|
-
children
|
|
8463
|
-
}
|
|
8464
|
-
);
|
|
8465
|
-
};
|
|
8466
|
-
SegmentedControl.displayName = "SegmentedControl";
|
|
8467
|
-
|
|
8468
|
-
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
8469
|
-
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8470
|
-
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
8471
|
-
var import_type_guards31 = require("@wistia/type-guards");
|
|
8472
|
-
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
8473
|
-
var StyledSegmentedControlItem = (0, import_styled_components52.default)(import_react_toggle_group2.Item)`
|
|
8474
|
-
all: unset; /* ToggleGroupItem is a button element */
|
|
8475
|
-
align-items: center;
|
|
8476
|
-
border-radius: var(--wui-border-radius-rounded);
|
|
8477
|
-
color: var(--wui-color-text-secondary);
|
|
8478
|
-
cursor: pointer;
|
|
8479
|
-
display: flex;
|
|
8480
|
-
flex-grow: 1;
|
|
8481
|
-
flex-shrink: 1;
|
|
8482
|
-
font-size: var(--wui-typography-label-3-size);
|
|
8483
|
-
justify-content: center;
|
|
8484
|
-
padding: 6px 8px;
|
|
8485
|
-
user-select: none;
|
|
8486
|
-
|
|
8487
|
-
/* Icon component */
|
|
8488
|
-
svg {
|
|
8489
|
-
height: 16px;
|
|
8490
|
-
width: 16px;
|
|
8491
|
-
|
|
8492
|
-
/* add right margin if there's a label and an icon */
|
|
8493
|
-
${({ $hasLabel }) => $hasLabel ? "margin-right: var(--wui-space-01)" : ""}
|
|
8494
|
-
}
|
|
8495
|
-
|
|
8496
|
-
&:hover {
|
|
8497
|
-
background-color: var(--wui-color-bg-surface-secondary-hover);
|
|
8498
|
-
}
|
|
8499
|
-
|
|
8500
|
-
&:focus-visible {
|
|
8501
|
-
outline: 2px solid var(--wui-color-focus-ring);
|
|
8502
|
-
}
|
|
8503
|
-
|
|
8504
|
-
&[data-state='on'] {
|
|
8505
|
-
background-color: var(--wui-color-bg-fill-white);
|
|
8506
|
-
color: var(--wui-color-text-selected);
|
|
8507
|
-
}
|
|
8508
|
-
|
|
8509
|
-
&:focus-visible,
|
|
8510
|
-
&[data-state='on'] {
|
|
8511
|
-
svg path {
|
|
8512
|
-
fill: var(--wui-color-focus-ring);
|
|
8513
|
-
}
|
|
8514
|
-
}
|
|
8515
|
-
`;
|
|
8516
|
-
var SegmentedControlItem = ({
|
|
8517
|
-
icon,
|
|
8518
|
-
label,
|
|
8519
|
-
value
|
|
8520
|
-
}) => {
|
|
8521
|
-
return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(
|
|
8522
|
-
StyledSegmentedControlItem,
|
|
8523
|
-
{
|
|
8524
|
-
$hasLabel: (0, import_type_guards31.isNotNil)(label),
|
|
8525
|
-
value,
|
|
8526
|
-
children: [
|
|
8527
|
-
icon,
|
|
8528
|
-
label
|
|
8529
|
-
]
|
|
8530
|
-
}
|
|
8531
|
-
);
|
|
8532
|
-
};
|
|
8533
|
-
|
|
8534
|
-
// src/components/Tag/Tag.tsx
|
|
8535
|
-
var import_react38 = require("react");
|
|
8536
|
-
var import_styled_components53 = __toESM(require("styled-components"));
|
|
8537
|
-
var import_type_guards32 = require("@wistia/type-guards");
|
|
8538
|
-
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
8539
|
-
var TagLabel = import_styled_components53.default.a`
|
|
8432
|
+
var TagLabel = import_styled_components51.default.a`
|
|
8540
8433
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8541
8434
|
font-size: var(--wui-typography-label-4-size);
|
|
8542
8435
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8564,14 +8457,14 @@ var TagLabel = import_styled_components53.default.a`
|
|
|
8564
8457
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8565
8458
|
}
|
|
8566
8459
|
`;
|
|
8567
|
-
var TagDivider =
|
|
8460
|
+
var TagDivider = import_styled_components51.default.div`
|
|
8568
8461
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8569
8462
|
border-left: 1px solid var(--wui-color-border);
|
|
8570
8463
|
display: flex;
|
|
8571
8464
|
height: 14px;
|
|
8572
8465
|
width: 1px;
|
|
8573
8466
|
`;
|
|
8574
|
-
var StyledRemoveButton =
|
|
8467
|
+
var StyledRemoveButton = import_styled_components51.default.button`
|
|
8575
8468
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8576
8469
|
all: unset;
|
|
8577
8470
|
cursor: pointer;
|
|
@@ -8599,7 +8492,7 @@ var StyledRemoveButton = import_styled_components53.default.button`
|
|
|
8599
8492
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8600
8493
|
}
|
|
8601
8494
|
`;
|
|
8602
|
-
var StyledTag =
|
|
8495
|
+
var StyledTag = import_styled_components51.default.div`
|
|
8603
8496
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8604
8497
|
align-items: center;
|
|
8605
8498
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -8608,31 +8501,31 @@ var StyledTag = import_styled_components53.default.div`
|
|
|
8608
8501
|
overflow: hidden;
|
|
8609
8502
|
`;
|
|
8610
8503
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
8611
|
-
if ((0,
|
|
8504
|
+
if ((0, import_type_guards30.isNil)(onClickRemove)) {
|
|
8612
8505
|
return null;
|
|
8613
8506
|
}
|
|
8614
|
-
if ((0,
|
|
8507
|
+
if ((0, import_type_guards30.isNil)(onClickRemoveLabel)) {
|
|
8615
8508
|
throw new Error(
|
|
8616
8509
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
8617
8510
|
);
|
|
8618
8511
|
}
|
|
8619
|
-
return /* @__PURE__ */ (0,
|
|
8620
|
-
/* @__PURE__ */ (0,
|
|
8621
|
-
/* @__PURE__ */ (0,
|
|
8512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(import_jsx_runtime203.Fragment, { children: [
|
|
8513
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
8514
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(
|
|
8622
8515
|
StyledRemoveButton,
|
|
8623
8516
|
{
|
|
8624
8517
|
$colorScheme: colorScheme,
|
|
8625
8518
|
onClick: onClickRemove,
|
|
8626
8519
|
type: "button",
|
|
8627
8520
|
children: [
|
|
8628
|
-
/* @__PURE__ */ (0,
|
|
8521
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
8629
8522
|
Icon,
|
|
8630
8523
|
{
|
|
8631
8524
|
size: "sm",
|
|
8632
8525
|
type: "close"
|
|
8633
8526
|
}
|
|
8634
8527
|
),
|
|
8635
|
-
/* @__PURE__ */ (0,
|
|
8528
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
8636
8529
|
]
|
|
8637
8530
|
}
|
|
8638
8531
|
)
|
|
@@ -8640,15 +8533,15 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8640
8533
|
};
|
|
8641
8534
|
var Tag = (0, import_react38.forwardRef)(
|
|
8642
8535
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
8643
|
-
const labelProps = (0,
|
|
8644
|
-
return /* @__PURE__ */ (0,
|
|
8536
|
+
const labelProps = (0, import_type_guards30.isNotNil)(href) && (0, import_type_guards30.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
8537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(
|
|
8645
8538
|
StyledTag,
|
|
8646
8539
|
{
|
|
8647
8540
|
ref,
|
|
8648
8541
|
$colorScheme: colorScheme,
|
|
8649
8542
|
...otherProps,
|
|
8650
8543
|
children: [
|
|
8651
|
-
/* @__PURE__ */ (0,
|
|
8544
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
8652
8545
|
TagLabel,
|
|
8653
8546
|
{
|
|
8654
8547
|
...labelProps,
|
|
@@ -8656,7 +8549,7 @@ var Tag = (0, import_react38.forwardRef)(
|
|
|
8656
8549
|
children: label
|
|
8657
8550
|
}
|
|
8658
8551
|
),
|
|
8659
|
-
/* @__PURE__ */ (0,
|
|
8552
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
8660
8553
|
RemoveButton,
|
|
8661
8554
|
{
|
|
8662
8555
|
colorScheme,
|
|
@@ -8673,16 +8566,16 @@ Tag.displayName = "Tag";
|
|
|
8673
8566
|
|
|
8674
8567
|
// src/components/Tooltip/Tooltip.tsx
|
|
8675
8568
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
8676
|
-
var
|
|
8677
|
-
var
|
|
8678
|
-
var CompactTooltipStyles =
|
|
8569
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8570
|
+
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
8571
|
+
var CompactTooltipStyles = import_styled_components52.css`
|
|
8679
8572
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8680
8573
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8681
8574
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8682
8575
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8683
8576
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8684
8577
|
`;
|
|
8685
|
-
var StyledContent = (0,
|
|
8578
|
+
var StyledContent = (0, import_styled_components52.default)(import_react_tooltip2.Content)`
|
|
8686
8579
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8687
8580
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8688
8581
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8740,14 +8633,14 @@ var Tooltip = ({
|
|
|
8740
8633
|
if (forceOpen === true) {
|
|
8741
8634
|
rootProps.open = true;
|
|
8742
8635
|
}
|
|
8743
|
-
return /* @__PURE__ */ (0,
|
|
8636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(
|
|
8744
8637
|
import_react_tooltip2.Root,
|
|
8745
8638
|
{
|
|
8746
8639
|
delayDuration: delay,
|
|
8747
8640
|
...rootProps,
|
|
8748
8641
|
children: [
|
|
8749
|
-
/* @__PURE__ */ (0,
|
|
8750
|
-
/* @__PURE__ */ (0,
|
|
8642
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
|
|
8643
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(
|
|
8751
8644
|
StyledContent,
|
|
8752
8645
|
{
|
|
8753
8646
|
$compact: compact,
|
|
@@ -8755,7 +8648,7 @@ var Tooltip = ({
|
|
|
8755
8648
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
8756
8649
|
children: [
|
|
8757
8650
|
content,
|
|
8758
|
-
!hideArrow ? /* @__PURE__ */ (0,
|
|
8651
|
+
!hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
8759
8652
|
"svg",
|
|
8760
8653
|
{
|
|
8761
8654
|
fill: "var(--tooltip-bg)",
|
|
@@ -8764,7 +8657,7 @@ var Tooltip = ({
|
|
|
8764
8657
|
viewBox: "0 0 12 8",
|
|
8765
8658
|
width: "12",
|
|
8766
8659
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8767
|
-
children: /* @__PURE__ */ (0,
|
|
8660
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)("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" })
|
|
8768
8661
|
}
|
|
8769
8662
|
) }) : null
|
|
8770
8663
|
]
|
|
@@ -8777,26 +8670,26 @@ var Tooltip = ({
|
|
|
8777
8670
|
Tooltip.displayName = "Tooltip";
|
|
8778
8671
|
|
|
8779
8672
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8780
|
-
var
|
|
8781
|
-
var
|
|
8782
|
-
var
|
|
8673
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
8674
|
+
var import_type_guards31 = require("@wistia/type-guards");
|
|
8675
|
+
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
8783
8676
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
8784
8677
|
if (iconOnly) {
|
|
8785
|
-
return /* @__PURE__ */ (0,
|
|
8678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
8786
8679
|
"g",
|
|
8787
8680
|
{
|
|
8788
8681
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8789
8682
|
fill: brandmarkColor,
|
|
8790
|
-
children: /* @__PURE__ */ (0,
|
|
8683
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("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" })
|
|
8791
8684
|
}
|
|
8792
8685
|
);
|
|
8793
8686
|
}
|
|
8794
|
-
return /* @__PURE__ */ (0,
|
|
8687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
8795
8688
|
"g",
|
|
8796
8689
|
{
|
|
8797
8690
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8798
8691
|
fill: brandmarkColor,
|
|
8799
|
-
children: /* @__PURE__ */ (0,
|
|
8692
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("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" })
|
|
8800
8693
|
}
|
|
8801
8694
|
);
|
|
8802
8695
|
};
|
|
@@ -8804,12 +8697,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
8804
8697
|
if (iconOnly) {
|
|
8805
8698
|
return null;
|
|
8806
8699
|
}
|
|
8807
|
-
return /* @__PURE__ */ (0,
|
|
8700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
8808
8701
|
"g",
|
|
8809
8702
|
{
|
|
8810
8703
|
"data-testid": "ui-wistia-logo-logotype",
|
|
8811
8704
|
fill: logotypeColor,
|
|
8812
|
-
children: /* @__PURE__ */ (0,
|
|
8705
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("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" })
|
|
8813
8706
|
}
|
|
8814
8707
|
);
|
|
8815
8708
|
};
|
|
@@ -8819,7 +8712,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8819
8712
|
}
|
|
8820
8713
|
return "0 0 144 31.47";
|
|
8821
8714
|
};
|
|
8822
|
-
var WistiaLogoComponent =
|
|
8715
|
+
var WistiaLogoComponent = import_styled_components53.default.svg`
|
|
8823
8716
|
height: ${({ height }) => `${height}px`};
|
|
8824
8717
|
|
|
8825
8718
|
/* ensure it will always fit on mobile */
|
|
@@ -8861,7 +8754,7 @@ var WistiaLogo = ({
|
|
|
8861
8754
|
};
|
|
8862
8755
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
8863
8756
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
8864
|
-
const Logo = /* @__PURE__ */ (0,
|
|
8757
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(
|
|
8865
8758
|
WistiaLogoComponent,
|
|
8866
8759
|
{
|
|
8867
8760
|
$hoverColor: hoverColor,
|
|
@@ -8871,14 +8764,14 @@ var WistiaLogo = ({
|
|
|
8871
8764
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8872
8765
|
...otherProps,
|
|
8873
8766
|
children: [
|
|
8874
|
-
/* @__PURE__ */ (0,
|
|
8875
|
-
(0,
|
|
8767
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)("title", { children: title }),
|
|
8768
|
+
(0, import_type_guards31.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("desc", { children: description }) : null,
|
|
8876
8769
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
8877
8770
|
renderLogotype(logotypeColor, iconOnly)
|
|
8878
8771
|
]
|
|
8879
8772
|
}
|
|
8880
8773
|
);
|
|
8881
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
8774
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("a", { href, children: Logo }) : Logo;
|
|
8882
8775
|
};
|
|
8883
8776
|
WistiaLogo.displayName = "WistiaLogo";
|
|
8884
8777
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -8919,8 +8812,6 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
8919
8812
|
RadioGroup,
|
|
8920
8813
|
RadioMenuItem,
|
|
8921
8814
|
ScreenReaderOnly,
|
|
8922
|
-
SegmentedControl,
|
|
8923
|
-
SegmentedControlItem,
|
|
8924
8815
|
Stack,
|
|
8925
8816
|
SubMenu,
|
|
8926
8817
|
Tag,
|