@wistia/ui 0.4.6-beta.9ba04ecb.fb0cfe0 → 0.4.6-beta.c8781aca.f327beb
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 +155 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +52 -14
- package/dist/index.d.ts +52 -14
- package/dist/index.mjs +153 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.4.6-beta.
|
|
3
|
+
* @license @wistia/ui v0.4.6-beta.c8781aca.f327beb
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -75,6 +75,8 @@ __export(index_exports, {
|
|
|
75
75
|
RadioGroup: () => RadioGroup,
|
|
76
76
|
RadioMenuItem: () => RadioMenuItem,
|
|
77
77
|
ScreenReaderOnly: () => ScreenReaderOnly,
|
|
78
|
+
SegmentedControl: () => SegmentedControl,
|
|
79
|
+
SegmentedControlItem: () => SegmentedControlItem,
|
|
78
80
|
Stack: () => Stack,
|
|
79
81
|
SubMenu: () => SubMenu,
|
|
80
82
|
Tag: () => Tag,
|
|
@@ -5959,17 +5961,17 @@ var Avatar = ({
|
|
|
5959
5961
|
onImageLoad,
|
|
5960
5962
|
...otherProps
|
|
5961
5963
|
}) => {
|
|
5962
|
-
const [imageLoadState, setImageLoadState] = (0, import_react14.useState)(
|
|
5964
|
+
const [imageLoadState, setImageLoadState] = (0, import_react14.useState)(null);
|
|
5963
5965
|
(0, import_react14.useEffect)(() => {
|
|
5964
|
-
setImageLoadState(
|
|
5966
|
+
setImageLoadState(null);
|
|
5965
5967
|
}, [imageUrl]);
|
|
5966
5968
|
const handleImageLoad = () => {
|
|
5967
5969
|
setImageLoadState("loaded");
|
|
5968
|
-
onImageLoad?.(
|
|
5970
|
+
onImageLoad?.("image");
|
|
5969
5971
|
};
|
|
5970
5972
|
const handleImageLoadError = () => {
|
|
5971
5973
|
setImageLoadState("error");
|
|
5972
|
-
onImageLoad?.(
|
|
5974
|
+
onImageLoad?.("initials");
|
|
5973
5975
|
};
|
|
5974
5976
|
const avatarSize = heightAndWidth ?? avatarSizeMap[size];
|
|
5975
5977
|
const avatarColor = (0, import_react14.useMemo)(() => chooseColorScheme(name), [name]);
|
|
@@ -6020,7 +6022,7 @@ var StyledBadge = import_styled_components22.default.div`
|
|
|
6020
6022
|
padding: var(--wui-space-01) var(--wui-space-02);
|
|
6021
6023
|
width: fit-content;
|
|
6022
6024
|
|
|
6023
|
-
/*
|
|
6025
|
+
/* Icon component size */
|
|
6024
6026
|
svg {
|
|
6025
6027
|
height: 12px;
|
|
6026
6028
|
width: 12px;
|
|
@@ -8424,12 +8426,117 @@ var Radio = (0, import_react37.forwardRef)(
|
|
|
8424
8426
|
);
|
|
8425
8427
|
Radio.displayName = "Radio";
|
|
8426
8428
|
|
|
8427
|
-
// src/components/
|
|
8428
|
-
var import_react38 = require("react");
|
|
8429
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
8429
8430
|
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8431
|
+
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
8430
8432
|
var import_type_guards30 = require("@wistia/type-guards");
|
|
8431
8433
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
8432
|
-
var
|
|
8434
|
+
var StyledSegmentedControl = (0, import_styled_components51.default)(import_react_toggle_group.Root)`
|
|
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`
|
|
8433
8540
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8434
8541
|
font-size: var(--wui-typography-label-4-size);
|
|
8435
8542
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8457,14 +8564,14 @@ var TagLabel = import_styled_components51.default.a`
|
|
|
8457
8564
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8458
8565
|
}
|
|
8459
8566
|
`;
|
|
8460
|
-
var TagDivider =
|
|
8567
|
+
var TagDivider = import_styled_components53.default.div`
|
|
8461
8568
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8462
8569
|
border-left: 1px solid var(--wui-color-border);
|
|
8463
8570
|
display: flex;
|
|
8464
8571
|
height: 14px;
|
|
8465
8572
|
width: 1px;
|
|
8466
8573
|
`;
|
|
8467
|
-
var StyledRemoveButton =
|
|
8574
|
+
var StyledRemoveButton = import_styled_components53.default.button`
|
|
8468
8575
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8469
8576
|
all: unset;
|
|
8470
8577
|
cursor: pointer;
|
|
@@ -8492,7 +8599,7 @@ var StyledRemoveButton = import_styled_components51.default.button`
|
|
|
8492
8599
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8493
8600
|
}
|
|
8494
8601
|
`;
|
|
8495
|
-
var StyledTag =
|
|
8602
|
+
var StyledTag = import_styled_components53.default.div`
|
|
8496
8603
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8497
8604
|
align-items: center;
|
|
8498
8605
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -8501,31 +8608,31 @@ var StyledTag = import_styled_components51.default.div`
|
|
|
8501
8608
|
overflow: hidden;
|
|
8502
8609
|
`;
|
|
8503
8610
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
8504
|
-
if ((0,
|
|
8611
|
+
if ((0, import_type_guards32.isNil)(onClickRemove)) {
|
|
8505
8612
|
return null;
|
|
8506
8613
|
}
|
|
8507
|
-
if ((0,
|
|
8614
|
+
if ((0, import_type_guards32.isNil)(onClickRemoveLabel)) {
|
|
8508
8615
|
throw new Error(
|
|
8509
8616
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
8510
8617
|
);
|
|
8511
8618
|
}
|
|
8512
|
-
return /* @__PURE__ */ (0,
|
|
8513
|
-
/* @__PURE__ */ (0,
|
|
8514
|
-
/* @__PURE__ */ (0,
|
|
8619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(import_jsx_runtime205.Fragment, { children: [
|
|
8620
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
8621
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(
|
|
8515
8622
|
StyledRemoveButton,
|
|
8516
8623
|
{
|
|
8517
8624
|
$colorScheme: colorScheme,
|
|
8518
8625
|
onClick: onClickRemove,
|
|
8519
8626
|
type: "button",
|
|
8520
8627
|
children: [
|
|
8521
|
-
/* @__PURE__ */ (0,
|
|
8628
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
8522
8629
|
Icon,
|
|
8523
8630
|
{
|
|
8524
8631
|
size: "sm",
|
|
8525
8632
|
type: "close"
|
|
8526
8633
|
}
|
|
8527
8634
|
),
|
|
8528
|
-
/* @__PURE__ */ (0,
|
|
8635
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
8529
8636
|
]
|
|
8530
8637
|
}
|
|
8531
8638
|
)
|
|
@@ -8533,15 +8640,15 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8533
8640
|
};
|
|
8534
8641
|
var Tag = (0, import_react38.forwardRef)(
|
|
8535
8642
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
8536
|
-
const labelProps = (0,
|
|
8537
|
-
return /* @__PURE__ */ (0,
|
|
8643
|
+
const labelProps = (0, import_type_guards32.isNotNil)(href) && (0, import_type_guards32.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
8644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(
|
|
8538
8645
|
StyledTag,
|
|
8539
8646
|
{
|
|
8540
8647
|
ref,
|
|
8541
8648
|
$colorScheme: colorScheme,
|
|
8542
8649
|
...otherProps,
|
|
8543
8650
|
children: [
|
|
8544
|
-
/* @__PURE__ */ (0,
|
|
8651
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
8545
8652
|
TagLabel,
|
|
8546
8653
|
{
|
|
8547
8654
|
...labelProps,
|
|
@@ -8549,7 +8656,7 @@ var Tag = (0, import_react38.forwardRef)(
|
|
|
8549
8656
|
children: label
|
|
8550
8657
|
}
|
|
8551
8658
|
),
|
|
8552
|
-
/* @__PURE__ */ (0,
|
|
8659
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
8553
8660
|
RemoveButton,
|
|
8554
8661
|
{
|
|
8555
8662
|
colorScheme,
|
|
@@ -8566,16 +8673,16 @@ Tag.displayName = "Tag";
|
|
|
8566
8673
|
|
|
8567
8674
|
// src/components/Tooltip/Tooltip.tsx
|
|
8568
8675
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
8569
|
-
var
|
|
8570
|
-
var
|
|
8571
|
-
var CompactTooltipStyles =
|
|
8676
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
8677
|
+
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
8678
|
+
var CompactTooltipStyles = import_styled_components54.css`
|
|
8572
8679
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8573
8680
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8574
8681
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8575
8682
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8576
8683
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8577
8684
|
`;
|
|
8578
|
-
var StyledContent = (0,
|
|
8685
|
+
var StyledContent = (0, import_styled_components54.default)(import_react_tooltip2.Content)`
|
|
8579
8686
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8580
8687
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8581
8688
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8633,14 +8740,14 @@ var Tooltip = ({
|
|
|
8633
8740
|
if (forceOpen === true) {
|
|
8634
8741
|
rootProps.open = true;
|
|
8635
8742
|
}
|
|
8636
|
-
return /* @__PURE__ */ (0,
|
|
8743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
|
|
8637
8744
|
import_react_tooltip2.Root,
|
|
8638
8745
|
{
|
|
8639
8746
|
delayDuration: delay,
|
|
8640
8747
|
...rootProps,
|
|
8641
8748
|
children: [
|
|
8642
|
-
/* @__PURE__ */ (0,
|
|
8643
|
-
/* @__PURE__ */ (0,
|
|
8749
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
|
|
8750
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
|
|
8644
8751
|
StyledContent,
|
|
8645
8752
|
{
|
|
8646
8753
|
$compact: compact,
|
|
@@ -8648,7 +8755,7 @@ var Tooltip = ({
|
|
|
8648
8755
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
8649
8756
|
children: [
|
|
8650
8757
|
content,
|
|
8651
|
-
!hideArrow ? /* @__PURE__ */ (0,
|
|
8758
|
+
!hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
8652
8759
|
"svg",
|
|
8653
8760
|
{
|
|
8654
8761
|
fill: "var(--tooltip-bg)",
|
|
@@ -8657,7 +8764,7 @@ var Tooltip = ({
|
|
|
8657
8764
|
viewBox: "0 0 12 8",
|
|
8658
8765
|
width: "12",
|
|
8659
8766
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8660
|
-
children: /* @__PURE__ */ (0,
|
|
8767
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime206.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" })
|
|
8661
8768
|
}
|
|
8662
8769
|
) }) : null
|
|
8663
8770
|
]
|
|
@@ -8670,26 +8777,26 @@ var Tooltip = ({
|
|
|
8670
8777
|
Tooltip.displayName = "Tooltip";
|
|
8671
8778
|
|
|
8672
8779
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8673
|
-
var
|
|
8674
|
-
var
|
|
8675
|
-
var
|
|
8780
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
8781
|
+
var import_type_guards33 = require("@wistia/type-guards");
|
|
8782
|
+
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
8676
8783
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
8677
8784
|
if (iconOnly) {
|
|
8678
|
-
return /* @__PURE__ */ (0,
|
|
8785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
8679
8786
|
"g",
|
|
8680
8787
|
{
|
|
8681
8788
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8682
8789
|
fill: brandmarkColor,
|
|
8683
|
-
children: /* @__PURE__ */ (0,
|
|
8790
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime207.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" })
|
|
8684
8791
|
}
|
|
8685
8792
|
);
|
|
8686
8793
|
}
|
|
8687
|
-
return /* @__PURE__ */ (0,
|
|
8794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
8688
8795
|
"g",
|
|
8689
8796
|
{
|
|
8690
8797
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8691
8798
|
fill: brandmarkColor,
|
|
8692
|
-
children: /* @__PURE__ */ (0,
|
|
8799
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime207.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" })
|
|
8693
8800
|
}
|
|
8694
8801
|
);
|
|
8695
8802
|
};
|
|
@@ -8697,12 +8804,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
8697
8804
|
if (iconOnly) {
|
|
8698
8805
|
return null;
|
|
8699
8806
|
}
|
|
8700
|
-
return /* @__PURE__ */ (0,
|
|
8807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
8701
8808
|
"g",
|
|
8702
8809
|
{
|
|
8703
8810
|
"data-testid": "ui-wistia-logo-logotype",
|
|
8704
8811
|
fill: logotypeColor,
|
|
8705
|
-
children: /* @__PURE__ */ (0,
|
|
8812
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime207.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" })
|
|
8706
8813
|
}
|
|
8707
8814
|
);
|
|
8708
8815
|
};
|
|
@@ -8712,7 +8819,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8712
8819
|
}
|
|
8713
8820
|
return "0 0 144 31.47";
|
|
8714
8821
|
};
|
|
8715
|
-
var WistiaLogoComponent =
|
|
8822
|
+
var WistiaLogoComponent = import_styled_components55.default.svg`
|
|
8716
8823
|
height: ${({ height }) => `${height}px`};
|
|
8717
8824
|
|
|
8718
8825
|
/* ensure it will always fit on mobile */
|
|
@@ -8754,7 +8861,7 @@ var WistiaLogo = ({
|
|
|
8754
8861
|
};
|
|
8755
8862
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
8756
8863
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
8757
|
-
const Logo = /* @__PURE__ */ (0,
|
|
8864
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
|
|
8758
8865
|
WistiaLogoComponent,
|
|
8759
8866
|
{
|
|
8760
8867
|
$hoverColor: hoverColor,
|
|
@@ -8764,14 +8871,14 @@ var WistiaLogo = ({
|
|
|
8764
8871
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8765
8872
|
...otherProps,
|
|
8766
8873
|
children: [
|
|
8767
|
-
/* @__PURE__ */ (0,
|
|
8768
|
-
(0,
|
|
8874
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)("title", { children: title }),
|
|
8875
|
+
(0, import_type_guards33.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("desc", { children: description }) : null,
|
|
8769
8876
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
8770
8877
|
renderLogotype(logotypeColor, iconOnly)
|
|
8771
8878
|
]
|
|
8772
8879
|
}
|
|
8773
8880
|
);
|
|
8774
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
8881
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("a", { href, children: Logo }) : Logo;
|
|
8775
8882
|
};
|
|
8776
8883
|
WistiaLogo.displayName = "WistiaLogo";
|
|
8777
8884
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -8812,6 +8919,8 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
8812
8919
|
RadioGroup,
|
|
8813
8920
|
RadioMenuItem,
|
|
8814
8921
|
ScreenReaderOnly,
|
|
8922
|
+
SegmentedControl,
|
|
8923
|
+
SegmentedControlItem,
|
|
8815
8924
|
Stack,
|
|
8816
8925
|
SubMenu,
|
|
8817
8926
|
Tag,
|