@wistia/ui 0.0.19 → 0.0.20
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 +180 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +88 -1
- package/dist/index.d.ts +88 -1
- package/dist/index.mjs +176 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -22
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.0.
|
|
3
|
+
* @license @wistia/ui v0.0.20
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2024, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -60,6 +60,7 @@ __export(src_exports, {
|
|
|
60
60
|
MenuItemLabel: () => MenuItemLabel,
|
|
61
61
|
MenuLabel: () => MenuLabel,
|
|
62
62
|
MenuRadioGroup: () => MenuRadioGroup,
|
|
63
|
+
Radio: () => Radio,
|
|
63
64
|
RadioMenuItem: () => RadioMenuItem,
|
|
64
65
|
ScreenReaderOnly: () => ScreenReaderOnly,
|
|
65
66
|
Stack: () => Stack,
|
|
@@ -5925,7 +5926,7 @@ var Checkbox = (0, import_react11.forwardRef)(
|
|
|
5925
5926
|
...otherProps
|
|
5926
5927
|
}, ref) => {
|
|
5927
5928
|
const generatedId = (0, import_react11.useId)();
|
|
5928
|
-
const computedId = (0, import_type_guards15.isNonEmptyString)(id) ? id : `vhs-
|
|
5929
|
+
const computedId = (0, import_type_guards15.isNonEmptyString)(id) ? id : `vhs-checkbox-${generatedId}`;
|
|
5929
5930
|
return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(StyledCheckboxWrapper, { children: [
|
|
5930
5931
|
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
5931
5932
|
StyledCheckboxRoot,
|
|
@@ -6921,12 +6922,142 @@ var CheckboxMenuItem = ({
|
|
|
6921
6922
|
};
|
|
6922
6923
|
CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
6923
6924
|
|
|
6924
|
-
// src/components/
|
|
6925
|
+
// src/components/Radio/Radio.tsx
|
|
6926
|
+
var import_react18 = require("react");
|
|
6925
6927
|
var import_styled_components35 = __toESM(require("styled-components"));
|
|
6926
6928
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
6927
6929
|
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
6928
|
-
var
|
|
6929
|
-
|
|
6930
|
+
var StyledLabelWrapper2 = import_styled_components35.default.div`
|
|
6931
|
+
display: flex;
|
|
6932
|
+
flex-direction: column;
|
|
6933
|
+
padding-left: var(--wui-space-02);
|
|
6934
|
+
`;
|
|
6935
|
+
var StyledRadio = import_styled_components35.default.input`
|
|
6936
|
+
align-self: flex-start;
|
|
6937
|
+
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
6938
|
+
appearance: none;
|
|
6939
|
+
margin: 0;
|
|
6940
|
+
color: currentcolor;
|
|
6941
|
+
width: 14px;
|
|
6942
|
+
min-width: 14px;
|
|
6943
|
+
height: 14px;
|
|
6944
|
+
border: 1px solid var(--wui-color-border);
|
|
6945
|
+
border-radius: 50%;
|
|
6946
|
+
transform: translateY(5px); /* visually center the radio button */
|
|
6947
|
+
display: grid;
|
|
6948
|
+
place-content: center;
|
|
6949
|
+
|
|
6950
|
+
&&::before {
|
|
6951
|
+
content: '';
|
|
6952
|
+
width: 10px;
|
|
6953
|
+
height: 10px;
|
|
6954
|
+
border-radius: 50%;
|
|
6955
|
+
transform: scale(0);
|
|
6956
|
+
box-shadow: inset 1em 1em var(--wui-color-bg-fill);
|
|
6957
|
+
}
|
|
6958
|
+
|
|
6959
|
+
&&:checked::before {
|
|
6960
|
+
transform: scale(1);
|
|
6961
|
+
}
|
|
6962
|
+
`;
|
|
6963
|
+
var disabledStyle2 = import_styled_components35.css`
|
|
6964
|
+
cursor: not-allowed;
|
|
6965
|
+
opacity: 0.5;
|
|
6966
|
+
`;
|
|
6967
|
+
var errorStyle = import_styled_components35.css`
|
|
6968
|
+
/* TODO Lamp to design error state */
|
|
6969
|
+
&:hover,
|
|
6970
|
+
&:focus,
|
|
6971
|
+
&:active {
|
|
6972
|
+
border-color: transparent !important;
|
|
6973
|
+
}
|
|
6974
|
+
`;
|
|
6975
|
+
var defaultHoverStyle = import_styled_components35.css`
|
|
6976
|
+
/* TODO Lamp to design hover state */
|
|
6977
|
+
cursor: pointer;
|
|
6978
|
+
`;
|
|
6979
|
+
var StyledRadioWrapper = import_styled_components35.default.div`
|
|
6980
|
+
align-items: center;
|
|
6981
|
+
border: 1px solid transparent;
|
|
6982
|
+
border-radius: 4px;
|
|
6983
|
+
display: flex;
|
|
6984
|
+
gap: var(--wui-space-02);
|
|
6985
|
+
padding: var(--wui-space-02);
|
|
6986
|
+
|
|
6987
|
+
&:hover {
|
|
6988
|
+
${defaultHoverStyle}
|
|
6989
|
+
}
|
|
6990
|
+
|
|
6991
|
+
&:focus-within {
|
|
6992
|
+
/* TODO Lamp to design focus state */
|
|
6993
|
+
background-color: #efefef;
|
|
6994
|
+
}
|
|
6995
|
+
|
|
6996
|
+
${({ hasError }) => hasError && errorStyle};
|
|
6997
|
+
${({ disabled }) => disabled && disabledStyle2};
|
|
6998
|
+
`;
|
|
6999
|
+
var Radio = (0, import_react18.forwardRef)(
|
|
7000
|
+
({
|
|
7001
|
+
checked,
|
|
7002
|
+
disabled = false,
|
|
7003
|
+
hasError = false,
|
|
7004
|
+
id,
|
|
7005
|
+
label,
|
|
7006
|
+
description,
|
|
7007
|
+
name,
|
|
7008
|
+
onChange,
|
|
7009
|
+
required = false,
|
|
7010
|
+
value = "false",
|
|
7011
|
+
...otherProps
|
|
7012
|
+
}, ref) => {
|
|
7013
|
+
const generatedId = (0, import_react18.useId)();
|
|
7014
|
+
const computedId = (0, import_type_guards19.isNonEmptyString)(id) ? id : `vhs-radio-${generatedId}`;
|
|
7015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(
|
|
7016
|
+
StyledRadioWrapper,
|
|
7017
|
+
{
|
|
7018
|
+
disabled,
|
|
7019
|
+
hasError,
|
|
7020
|
+
children: [
|
|
7021
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
7022
|
+
StyledRadio,
|
|
7023
|
+
{
|
|
7024
|
+
ref,
|
|
7025
|
+
"aria-checked": checked,
|
|
7026
|
+
checked,
|
|
7027
|
+
disabled,
|
|
7028
|
+
id,
|
|
7029
|
+
name,
|
|
7030
|
+
onChange,
|
|
7031
|
+
type: "radio",
|
|
7032
|
+
value,
|
|
7033
|
+
...otherProps
|
|
7034
|
+
}
|
|
7035
|
+
),
|
|
7036
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(StyledLabelWrapper2, { children: [
|
|
7037
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
7038
|
+
Label,
|
|
7039
|
+
{
|
|
7040
|
+
disabled,
|
|
7041
|
+
htmlFor: computedId,
|
|
7042
|
+
required,
|
|
7043
|
+
children: label
|
|
7044
|
+
}
|
|
7045
|
+
),
|
|
7046
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)(LabelDescription, { children: description })
|
|
7047
|
+
] })
|
|
7048
|
+
]
|
|
7049
|
+
}
|
|
7050
|
+
);
|
|
7051
|
+
}
|
|
7052
|
+
);
|
|
7053
|
+
Radio.displayName = "Radio";
|
|
7054
|
+
|
|
7055
|
+
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7056
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
7057
|
+
var import_type_guards20 = require("@wistia/type-guards");
|
|
7058
|
+
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7059
|
+
var VisuallyHidden = import_styled_components36.default.div({ ...visuallyHiddenStyle });
|
|
7060
|
+
var VisuallyHiddenButFocusable = import_styled_components36.default.div({
|
|
6930
7061
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
6931
7062
|
});
|
|
6932
7063
|
var ScreenReaderOnly = ({
|
|
@@ -6935,20 +7066,20 @@ var ScreenReaderOnly = ({
|
|
|
6935
7066
|
focusable = false,
|
|
6936
7067
|
...otherProps
|
|
6937
7068
|
}) => {
|
|
6938
|
-
const accessibleText = (0,
|
|
7069
|
+
const accessibleText = (0, import_type_guards20.isNotNil)(text) ? text : children;
|
|
6939
7070
|
if (focusable) {
|
|
6940
|
-
return /* @__PURE__ */ (0,
|
|
7071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
6941
7072
|
}
|
|
6942
|
-
return /* @__PURE__ */ (0,
|
|
7073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
|
|
6943
7074
|
};
|
|
6944
7075
|
ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
6945
7076
|
|
|
6946
7077
|
// src/components/Stack/Stack.tsx
|
|
6947
|
-
var
|
|
6948
|
-
var
|
|
6949
|
-
var
|
|
7078
|
+
var import_react19 = require("react");
|
|
7079
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7080
|
+
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
6950
7081
|
var DEFAULT_ELEMENT3 = "div";
|
|
6951
|
-
var StyledStack =
|
|
7082
|
+
var StyledStack = import_styled_components37.default.div`
|
|
6952
7083
|
display: flex;
|
|
6953
7084
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6954
7085
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -6957,11 +7088,11 @@ var StyledStack = import_styled_components36.default.div`
|
|
|
6957
7088
|
flex: 1;
|
|
6958
7089
|
}
|
|
6959
7090
|
`;
|
|
6960
|
-
var StackComponent = (0,
|
|
7091
|
+
var StackComponent = (0, import_react19.forwardRef)(
|
|
6961
7092
|
({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
|
|
6962
7093
|
const responsiveGap = useResponsiveProp(gap);
|
|
6963
7094
|
const responsiveDirection = useResponsiveProp(direction);
|
|
6964
|
-
return /* @__PURE__ */ (0,
|
|
7095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
6965
7096
|
StyledStack,
|
|
6966
7097
|
{
|
|
6967
7098
|
ref,
|
|
@@ -6977,11 +7108,11 @@ StackComponent.displayName = "Stack";
|
|
|
6977
7108
|
var Stack = makePolymorphic(StackComponent);
|
|
6978
7109
|
|
|
6979
7110
|
// src/components/Tag/Tag.tsx
|
|
6980
|
-
var
|
|
6981
|
-
var
|
|
6982
|
-
var
|
|
6983
|
-
var
|
|
6984
|
-
var TagLabel =
|
|
7111
|
+
var import_react20 = require("react");
|
|
7112
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7113
|
+
var import_type_guards21 = require("@wistia/type-guards");
|
|
7114
|
+
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
7115
|
+
var TagLabel = import_styled_components38.default.a`
|
|
6985
7116
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6986
7117
|
font-size: var(--wui-typography-label-4-size);
|
|
6987
7118
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -7009,14 +7140,14 @@ var TagLabel = import_styled_components37.default.a`
|
|
|
7009
7140
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
7010
7141
|
}
|
|
7011
7142
|
`;
|
|
7012
|
-
var TagDivider =
|
|
7143
|
+
var TagDivider = import_styled_components38.default.div`
|
|
7013
7144
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7014
7145
|
border-left: 1px solid var(--wui-color-border);
|
|
7015
7146
|
display: flex;
|
|
7016
7147
|
height: 14px;
|
|
7017
7148
|
width: 1px;
|
|
7018
7149
|
`;
|
|
7019
|
-
var StyledRemoveButton =
|
|
7150
|
+
var StyledRemoveButton = import_styled_components38.default.button`
|
|
7020
7151
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7021
7152
|
all: unset;
|
|
7022
7153
|
cursor: pointer;
|
|
@@ -7044,7 +7175,7 @@ var StyledRemoveButton = import_styled_components37.default.button`
|
|
|
7044
7175
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
7045
7176
|
}
|
|
7046
7177
|
`;
|
|
7047
|
-
var StyledTag =
|
|
7178
|
+
var StyledTag = import_styled_components38.default.div`
|
|
7048
7179
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7049
7180
|
align-items: center;
|
|
7050
7181
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -7053,47 +7184,47 @@ var StyledTag = import_styled_components37.default.div`
|
|
|
7053
7184
|
overflow: hidden;
|
|
7054
7185
|
`;
|
|
7055
7186
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
7056
|
-
if ((0,
|
|
7187
|
+
if ((0, import_type_guards21.isNil)(onClickRemove)) {
|
|
7057
7188
|
return null;
|
|
7058
7189
|
}
|
|
7059
|
-
if ((0,
|
|
7190
|
+
if ((0, import_type_guards21.isNil)(onClickRemoveLabel)) {
|
|
7060
7191
|
throw new Error(
|
|
7061
7192
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
7062
7193
|
);
|
|
7063
7194
|
}
|
|
7064
|
-
return /* @__PURE__ */ (0,
|
|
7065
|
-
/* @__PURE__ */ (0,
|
|
7066
|
-
/* @__PURE__ */ (0,
|
|
7195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(import_jsx_runtime185.Fragment, { children: [
|
|
7196
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
7197
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(
|
|
7067
7198
|
StyledRemoveButton,
|
|
7068
7199
|
{
|
|
7069
7200
|
$colorScheme: colorScheme,
|
|
7070
7201
|
onClick: onClickRemove,
|
|
7071
7202
|
type: "button",
|
|
7072
7203
|
children: [
|
|
7073
|
-
/* @__PURE__ */ (0,
|
|
7204
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
7074
7205
|
Icon,
|
|
7075
7206
|
{
|
|
7076
7207
|
size: "sm",
|
|
7077
7208
|
type: "close"
|
|
7078
7209
|
}
|
|
7079
7210
|
),
|
|
7080
|
-
/* @__PURE__ */ (0,
|
|
7211
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
7081
7212
|
]
|
|
7082
7213
|
}
|
|
7083
7214
|
)
|
|
7084
7215
|
] });
|
|
7085
7216
|
};
|
|
7086
|
-
var Tag = (0,
|
|
7217
|
+
var Tag = (0, import_react20.forwardRef)(
|
|
7087
7218
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
7088
|
-
const labelProps = (0,
|
|
7089
|
-
return /* @__PURE__ */ (0,
|
|
7219
|
+
const labelProps = (0, import_type_guards21.isNotNil)(href) && (0, import_type_guards21.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
7220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(
|
|
7090
7221
|
StyledTag,
|
|
7091
7222
|
{
|
|
7092
7223
|
ref,
|
|
7093
7224
|
$colorScheme: colorScheme,
|
|
7094
7225
|
...otherProps,
|
|
7095
7226
|
children: [
|
|
7096
|
-
/* @__PURE__ */ (0,
|
|
7227
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
7097
7228
|
TagLabel,
|
|
7098
7229
|
{
|
|
7099
7230
|
...labelProps,
|
|
@@ -7101,7 +7232,7 @@ var Tag = (0, import_react19.forwardRef)(
|
|
|
7101
7232
|
children: label
|
|
7102
7233
|
}
|
|
7103
7234
|
),
|
|
7104
|
-
/* @__PURE__ */ (0,
|
|
7235
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
7105
7236
|
RemoveButton,
|
|
7106
7237
|
{
|
|
7107
7238
|
colorScheme,
|
|
@@ -7117,26 +7248,26 @@ var Tag = (0, import_react19.forwardRef)(
|
|
|
7117
7248
|
Tag.displayName = "Tag";
|
|
7118
7249
|
|
|
7119
7250
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
7120
|
-
var
|
|
7121
|
-
var
|
|
7122
|
-
var
|
|
7251
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7252
|
+
var import_type_guards22 = require("@wistia/type-guards");
|
|
7253
|
+
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
7123
7254
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
7124
7255
|
if (iconOnly) {
|
|
7125
|
-
return /* @__PURE__ */ (0,
|
|
7256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
7126
7257
|
"g",
|
|
7127
7258
|
{
|
|
7128
7259
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
7129
7260
|
fill: brandmarkColor,
|
|
7130
|
-
children: /* @__PURE__ */ (0,
|
|
7261
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime186.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" })
|
|
7131
7262
|
}
|
|
7132
7263
|
);
|
|
7133
7264
|
}
|
|
7134
|
-
return /* @__PURE__ */ (0,
|
|
7265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
7135
7266
|
"g",
|
|
7136
7267
|
{
|
|
7137
7268
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
7138
7269
|
fill: brandmarkColor,
|
|
7139
|
-
children: /* @__PURE__ */ (0,
|
|
7270
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime186.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" })
|
|
7140
7271
|
}
|
|
7141
7272
|
);
|
|
7142
7273
|
};
|
|
@@ -7144,12 +7275,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
7144
7275
|
if (iconOnly) {
|
|
7145
7276
|
return null;
|
|
7146
7277
|
}
|
|
7147
|
-
return /* @__PURE__ */ (0,
|
|
7278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
7148
7279
|
"g",
|
|
7149
7280
|
{
|
|
7150
7281
|
"data-testid": "ui-wistia-logo-logotype",
|
|
7151
7282
|
fill: logotypeColor,
|
|
7152
|
-
children: /* @__PURE__ */ (0,
|
|
7283
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime186.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" })
|
|
7153
7284
|
}
|
|
7154
7285
|
);
|
|
7155
7286
|
};
|
|
@@ -7159,7 +7290,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
7159
7290
|
}
|
|
7160
7291
|
return "0 0 144 31.47";
|
|
7161
7292
|
};
|
|
7162
|
-
var WistiaLogoComponent =
|
|
7293
|
+
var WistiaLogoComponent = import_styled_components39.default.svg`
|
|
7163
7294
|
height: ${({ height }) => `${height}px`};
|
|
7164
7295
|
|
|
7165
7296
|
/* ensure it will always fit on mobile */
|
|
@@ -7201,7 +7332,7 @@ var WistiaLogo = ({
|
|
|
7201
7332
|
};
|
|
7202
7333
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
7203
7334
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
7204
|
-
const Logo = /* @__PURE__ */ (0,
|
|
7335
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(
|
|
7205
7336
|
WistiaLogoComponent,
|
|
7206
7337
|
{
|
|
7207
7338
|
$hoverColor: hoverColor,
|
|
@@ -7211,14 +7342,14 @@ var WistiaLogo = ({
|
|
|
7211
7342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7212
7343
|
...otherProps,
|
|
7213
7344
|
children: [
|
|
7214
|
-
/* @__PURE__ */ (0,
|
|
7215
|
-
(0,
|
|
7345
|
+
/* @__PURE__ */ (0, import_jsx_runtime186.jsx)("title", { children: title }),
|
|
7346
|
+
(0, import_type_guards22.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime186.jsx)("desc", { children: description }) : null,
|
|
7216
7347
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
7217
7348
|
renderLogotype(logotypeColor, iconOnly)
|
|
7218
7349
|
]
|
|
7219
7350
|
}
|
|
7220
7351
|
);
|
|
7221
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
7352
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime186.jsx)("a", { href, children: Logo }) : Logo;
|
|
7222
7353
|
};
|
|
7223
7354
|
WistiaLogo.displayName = "WistiaLogo";
|
|
7224
7355
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -7244,6 +7375,7 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
7244
7375
|
MenuItemLabel,
|
|
7245
7376
|
MenuLabel,
|
|
7246
7377
|
MenuRadioGroup,
|
|
7378
|
+
Radio,
|
|
7247
7379
|
RadioMenuItem,
|
|
7248
7380
|
ScreenReaderOnly,
|
|
7249
7381
|
Stack,
|