@wistia/ui 0.0.19 → 0.0.21
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 +182 -53
- 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 +178 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -25
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.21
|
|
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,
|
|
@@ -3358,11 +3359,8 @@ var FavoriteOutlineIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime66.js
|
|
|
3358
3359
|
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3359
3360
|
"path",
|
|
3360
3361
|
{
|
|
3361
|
-
d: "M12
|
|
3362
|
-
|
|
3363
|
-
strokeLinecap: "round",
|
|
3364
|
-
strokeLinejoin: "round",
|
|
3365
|
-
strokeWidth: "1.99999"
|
|
3362
|
+
d: "M12 1.33321C12.3806 1.33321 12.7283 1.54931 12.8967 1.89066L15.6507 7.47119L21.8104 8.36625C22.1871 8.42098 22.5 8.68481 22.6177 9.0468C22.7353 9.4088 22.6372 9.80619 22.3647 10.0719L17.9078 14.4169L18.9602 20.5507C19.0246 20.9259 18.8704 21.305 18.5625 21.5288C18.2546 21.7525 17.8463 21.7821 17.5094 21.605L12 18.7095L6.49053 21.605C6.1536 21.7821 5.74536 21.7525 5.43745 21.5288C5.12954 21.305 4.97535 20.9259 5.03972 20.5507L6.09215 14.4169L1.63526 10.0719C1.36272 9.80619 1.26465 9.4088 1.38228 9.0468C1.49991 8.68481 1.81285 8.42098 2.18953 8.36625L8.34923 7.47119L11.1032 1.89066C11.2717 1.54931 11.6193 1.33321 12 1.33321ZM12 4.59286L9.91005 8.82773C9.76439 9.12289 9.48282 9.32746 9.15711 9.37479L4.4821 10.0541L7.86471 13.3518C8.10037 13.5816 8.2079 13.9126 8.15224 14.2369L7.35352 18.8921L11.5348 16.6946C11.826 16.5416 12.1739 16.5416 12.4652 16.6946L16.6464 18.8921L15.8477 14.2369C15.792 13.9126 15.8996 13.5816 16.1352 13.3518L19.5178 10.0541L14.8428 9.37479C14.5171 9.32746 14.2355 9.12289 14.0899 8.82773L12 4.59286Z",
|
|
3363
|
+
fill: "currentColor"
|
|
3366
3364
|
}
|
|
3367
3365
|
)
|
|
3368
3366
|
}
|
|
@@ -5925,7 +5923,7 @@ var Checkbox = (0, import_react11.forwardRef)(
|
|
|
5925
5923
|
...otherProps
|
|
5926
5924
|
}, ref) => {
|
|
5927
5925
|
const generatedId = (0, import_react11.useId)();
|
|
5928
|
-
const computedId = (0, import_type_guards15.isNonEmptyString)(id) ? id : `
|
|
5926
|
+
const computedId = (0, import_type_guards15.isNonEmptyString)(id) ? id : `ui-checkbox-${generatedId}`;
|
|
5929
5927
|
return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(StyledCheckboxWrapper, { children: [
|
|
5930
5928
|
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
5931
5929
|
StyledCheckboxRoot,
|
|
@@ -6921,12 +6919,142 @@ var CheckboxMenuItem = ({
|
|
|
6921
6919
|
};
|
|
6922
6920
|
CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
6923
6921
|
|
|
6924
|
-
// src/components/
|
|
6922
|
+
// src/components/Radio/Radio.tsx
|
|
6923
|
+
var import_react18 = require("react");
|
|
6925
6924
|
var import_styled_components35 = __toESM(require("styled-components"));
|
|
6926
6925
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
6927
6926
|
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
6928
|
-
var
|
|
6929
|
-
|
|
6927
|
+
var StyledLabelWrapper2 = import_styled_components35.default.div`
|
|
6928
|
+
display: flex;
|
|
6929
|
+
flex-direction: column;
|
|
6930
|
+
padding-left: var(--wui-space-02);
|
|
6931
|
+
`;
|
|
6932
|
+
var StyledRadio = import_styled_components35.default.input`
|
|
6933
|
+
align-self: flex-start;
|
|
6934
|
+
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
6935
|
+
appearance: none;
|
|
6936
|
+
margin: 0;
|
|
6937
|
+
color: currentcolor;
|
|
6938
|
+
width: 14px;
|
|
6939
|
+
min-width: 14px;
|
|
6940
|
+
height: 14px;
|
|
6941
|
+
border: 1px solid var(--wui-color-border);
|
|
6942
|
+
border-radius: 50%;
|
|
6943
|
+
transform: translateY(5px); /* visually center the radio button */
|
|
6944
|
+
display: grid;
|
|
6945
|
+
place-content: center;
|
|
6946
|
+
|
|
6947
|
+
&&::before {
|
|
6948
|
+
content: '';
|
|
6949
|
+
width: 10px;
|
|
6950
|
+
height: 10px;
|
|
6951
|
+
border-radius: 50%;
|
|
6952
|
+
transform: scale(0);
|
|
6953
|
+
box-shadow: inset 1em 1em var(--wui-color-bg-fill);
|
|
6954
|
+
}
|
|
6955
|
+
|
|
6956
|
+
&&:checked::before {
|
|
6957
|
+
transform: scale(1);
|
|
6958
|
+
}
|
|
6959
|
+
`;
|
|
6960
|
+
var disabledStyle2 = import_styled_components35.css`
|
|
6961
|
+
cursor: not-allowed;
|
|
6962
|
+
opacity: 0.5;
|
|
6963
|
+
`;
|
|
6964
|
+
var errorStyle = import_styled_components35.css`
|
|
6965
|
+
/* TODO Lamp to design error state */
|
|
6966
|
+
&:hover,
|
|
6967
|
+
&:focus,
|
|
6968
|
+
&:active {
|
|
6969
|
+
border-color: transparent !important;
|
|
6970
|
+
}
|
|
6971
|
+
`;
|
|
6972
|
+
var defaultHoverStyle = import_styled_components35.css`
|
|
6973
|
+
/* TODO Lamp to design hover state */
|
|
6974
|
+
cursor: pointer;
|
|
6975
|
+
`;
|
|
6976
|
+
var StyledRadioWrapper = import_styled_components35.default.div`
|
|
6977
|
+
align-items: center;
|
|
6978
|
+
border: 1px solid transparent;
|
|
6979
|
+
border-radius: 4px;
|
|
6980
|
+
display: flex;
|
|
6981
|
+
gap: var(--wui-space-02);
|
|
6982
|
+
padding: var(--wui-space-02);
|
|
6983
|
+
|
|
6984
|
+
&:hover {
|
|
6985
|
+
${defaultHoverStyle}
|
|
6986
|
+
}
|
|
6987
|
+
|
|
6988
|
+
&:focus-within {
|
|
6989
|
+
/* TODO Lamp to design focus state */
|
|
6990
|
+
background-color: #efefef;
|
|
6991
|
+
}
|
|
6992
|
+
|
|
6993
|
+
${({ hasError }) => hasError && errorStyle};
|
|
6994
|
+
${({ disabled }) => disabled && disabledStyle2};
|
|
6995
|
+
`;
|
|
6996
|
+
var Radio = (0, import_react18.forwardRef)(
|
|
6997
|
+
({
|
|
6998
|
+
checked,
|
|
6999
|
+
disabled = false,
|
|
7000
|
+
hasError = false,
|
|
7001
|
+
id,
|
|
7002
|
+
label,
|
|
7003
|
+
description,
|
|
7004
|
+
name,
|
|
7005
|
+
onChange,
|
|
7006
|
+
required = false,
|
|
7007
|
+
value = "false",
|
|
7008
|
+
...otherProps
|
|
7009
|
+
}, ref) => {
|
|
7010
|
+
const generatedId = (0, import_react18.useId)();
|
|
7011
|
+
const computedId = (0, import_type_guards19.isNonEmptyString)(id) ? id : `ui-radio-${generatedId}`;
|
|
7012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(
|
|
7013
|
+
StyledRadioWrapper,
|
|
7014
|
+
{
|
|
7015
|
+
disabled,
|
|
7016
|
+
hasError,
|
|
7017
|
+
children: [
|
|
7018
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
7019
|
+
StyledRadio,
|
|
7020
|
+
{
|
|
7021
|
+
ref,
|
|
7022
|
+
"aria-checked": checked,
|
|
7023
|
+
checked,
|
|
7024
|
+
disabled,
|
|
7025
|
+
id: computedId,
|
|
7026
|
+
name,
|
|
7027
|
+
onChange,
|
|
7028
|
+
type: "radio",
|
|
7029
|
+
value,
|
|
7030
|
+
...otherProps
|
|
7031
|
+
}
|
|
7032
|
+
),
|
|
7033
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(StyledLabelWrapper2, { children: [
|
|
7034
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
7035
|
+
Label,
|
|
7036
|
+
{
|
|
7037
|
+
disabled,
|
|
7038
|
+
htmlFor: computedId,
|
|
7039
|
+
required,
|
|
7040
|
+
children: label
|
|
7041
|
+
}
|
|
7042
|
+
),
|
|
7043
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)(LabelDescription, { children: description })
|
|
7044
|
+
] })
|
|
7045
|
+
]
|
|
7046
|
+
}
|
|
7047
|
+
);
|
|
7048
|
+
}
|
|
7049
|
+
);
|
|
7050
|
+
Radio.displayName = "Radio";
|
|
7051
|
+
|
|
7052
|
+
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7053
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
7054
|
+
var import_type_guards20 = require("@wistia/type-guards");
|
|
7055
|
+
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7056
|
+
var VisuallyHidden = import_styled_components36.default.div({ ...visuallyHiddenStyle });
|
|
7057
|
+
var VisuallyHiddenButFocusable = import_styled_components36.default.div({
|
|
6930
7058
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
6931
7059
|
});
|
|
6932
7060
|
var ScreenReaderOnly = ({
|
|
@@ -6935,20 +7063,20 @@ var ScreenReaderOnly = ({
|
|
|
6935
7063
|
focusable = false,
|
|
6936
7064
|
...otherProps
|
|
6937
7065
|
}) => {
|
|
6938
|
-
const accessibleText = (0,
|
|
7066
|
+
const accessibleText = (0, import_type_guards20.isNotNil)(text) ? text : children;
|
|
6939
7067
|
if (focusable) {
|
|
6940
|
-
return /* @__PURE__ */ (0,
|
|
7068
|
+
return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
6941
7069
|
}
|
|
6942
|
-
return /* @__PURE__ */ (0,
|
|
7070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
|
|
6943
7071
|
};
|
|
6944
7072
|
ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
6945
7073
|
|
|
6946
7074
|
// src/components/Stack/Stack.tsx
|
|
6947
|
-
var
|
|
6948
|
-
var
|
|
6949
|
-
var
|
|
7075
|
+
var import_react19 = require("react");
|
|
7076
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7077
|
+
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
6950
7078
|
var DEFAULT_ELEMENT3 = "div";
|
|
6951
|
-
var StyledStack =
|
|
7079
|
+
var StyledStack = import_styled_components37.default.div`
|
|
6952
7080
|
display: flex;
|
|
6953
7081
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6954
7082
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -6957,11 +7085,11 @@ var StyledStack = import_styled_components36.default.div`
|
|
|
6957
7085
|
flex: 1;
|
|
6958
7086
|
}
|
|
6959
7087
|
`;
|
|
6960
|
-
var StackComponent = (0,
|
|
7088
|
+
var StackComponent = (0, import_react19.forwardRef)(
|
|
6961
7089
|
({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
|
|
6962
7090
|
const responsiveGap = useResponsiveProp(gap);
|
|
6963
7091
|
const responsiveDirection = useResponsiveProp(direction);
|
|
6964
|
-
return /* @__PURE__ */ (0,
|
|
7092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
6965
7093
|
StyledStack,
|
|
6966
7094
|
{
|
|
6967
7095
|
ref,
|
|
@@ -6977,11 +7105,11 @@ StackComponent.displayName = "Stack";
|
|
|
6977
7105
|
var Stack = makePolymorphic(StackComponent);
|
|
6978
7106
|
|
|
6979
7107
|
// src/components/Tag/Tag.tsx
|
|
6980
|
-
var
|
|
6981
|
-
var
|
|
6982
|
-
var
|
|
6983
|
-
var
|
|
6984
|
-
var TagLabel =
|
|
7108
|
+
var import_react20 = require("react");
|
|
7109
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7110
|
+
var import_type_guards21 = require("@wistia/type-guards");
|
|
7111
|
+
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
7112
|
+
var TagLabel = import_styled_components38.default.a`
|
|
6985
7113
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6986
7114
|
font-size: var(--wui-typography-label-4-size);
|
|
6987
7115
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -7009,14 +7137,14 @@ var TagLabel = import_styled_components37.default.a`
|
|
|
7009
7137
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
7010
7138
|
}
|
|
7011
7139
|
`;
|
|
7012
|
-
var TagDivider =
|
|
7140
|
+
var TagDivider = import_styled_components38.default.div`
|
|
7013
7141
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7014
7142
|
border-left: 1px solid var(--wui-color-border);
|
|
7015
7143
|
display: flex;
|
|
7016
7144
|
height: 14px;
|
|
7017
7145
|
width: 1px;
|
|
7018
7146
|
`;
|
|
7019
|
-
var StyledRemoveButton =
|
|
7147
|
+
var StyledRemoveButton = import_styled_components38.default.button`
|
|
7020
7148
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7021
7149
|
all: unset;
|
|
7022
7150
|
cursor: pointer;
|
|
@@ -7044,7 +7172,7 @@ var StyledRemoveButton = import_styled_components37.default.button`
|
|
|
7044
7172
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
7045
7173
|
}
|
|
7046
7174
|
`;
|
|
7047
|
-
var StyledTag =
|
|
7175
|
+
var StyledTag = import_styled_components38.default.div`
|
|
7048
7176
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7049
7177
|
align-items: center;
|
|
7050
7178
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -7053,47 +7181,47 @@ var StyledTag = import_styled_components37.default.div`
|
|
|
7053
7181
|
overflow: hidden;
|
|
7054
7182
|
`;
|
|
7055
7183
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
7056
|
-
if ((0,
|
|
7184
|
+
if ((0, import_type_guards21.isNil)(onClickRemove)) {
|
|
7057
7185
|
return null;
|
|
7058
7186
|
}
|
|
7059
|
-
if ((0,
|
|
7187
|
+
if ((0, import_type_guards21.isNil)(onClickRemoveLabel)) {
|
|
7060
7188
|
throw new Error(
|
|
7061
7189
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
7062
7190
|
);
|
|
7063
7191
|
}
|
|
7064
|
-
return /* @__PURE__ */ (0,
|
|
7065
|
-
/* @__PURE__ */ (0,
|
|
7066
|
-
/* @__PURE__ */ (0,
|
|
7192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(import_jsx_runtime185.Fragment, { children: [
|
|
7193
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
7194
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(
|
|
7067
7195
|
StyledRemoveButton,
|
|
7068
7196
|
{
|
|
7069
7197
|
$colorScheme: colorScheme,
|
|
7070
7198
|
onClick: onClickRemove,
|
|
7071
7199
|
type: "button",
|
|
7072
7200
|
children: [
|
|
7073
|
-
/* @__PURE__ */ (0,
|
|
7201
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
7074
7202
|
Icon,
|
|
7075
7203
|
{
|
|
7076
7204
|
size: "sm",
|
|
7077
7205
|
type: "close"
|
|
7078
7206
|
}
|
|
7079
7207
|
),
|
|
7080
|
-
/* @__PURE__ */ (0,
|
|
7208
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
7081
7209
|
]
|
|
7082
7210
|
}
|
|
7083
7211
|
)
|
|
7084
7212
|
] });
|
|
7085
7213
|
};
|
|
7086
|
-
var Tag = (0,
|
|
7214
|
+
var Tag = (0, import_react20.forwardRef)(
|
|
7087
7215
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
7088
|
-
const labelProps = (0,
|
|
7089
|
-
return /* @__PURE__ */ (0,
|
|
7216
|
+
const labelProps = (0, import_type_guards21.isNotNil)(href) && (0, import_type_guards21.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
7217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(
|
|
7090
7218
|
StyledTag,
|
|
7091
7219
|
{
|
|
7092
7220
|
ref,
|
|
7093
7221
|
$colorScheme: colorScheme,
|
|
7094
7222
|
...otherProps,
|
|
7095
7223
|
children: [
|
|
7096
|
-
/* @__PURE__ */ (0,
|
|
7224
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
7097
7225
|
TagLabel,
|
|
7098
7226
|
{
|
|
7099
7227
|
...labelProps,
|
|
@@ -7101,7 +7229,7 @@ var Tag = (0, import_react19.forwardRef)(
|
|
|
7101
7229
|
children: label
|
|
7102
7230
|
}
|
|
7103
7231
|
),
|
|
7104
|
-
/* @__PURE__ */ (0,
|
|
7232
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
7105
7233
|
RemoveButton,
|
|
7106
7234
|
{
|
|
7107
7235
|
colorScheme,
|
|
@@ -7117,26 +7245,26 @@ var Tag = (0, import_react19.forwardRef)(
|
|
|
7117
7245
|
Tag.displayName = "Tag";
|
|
7118
7246
|
|
|
7119
7247
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
7120
|
-
var
|
|
7121
|
-
var
|
|
7122
|
-
var
|
|
7248
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7249
|
+
var import_type_guards22 = require("@wistia/type-guards");
|
|
7250
|
+
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
7123
7251
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
7124
7252
|
if (iconOnly) {
|
|
7125
|
-
return /* @__PURE__ */ (0,
|
|
7253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
7126
7254
|
"g",
|
|
7127
7255
|
{
|
|
7128
7256
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
7129
7257
|
fill: brandmarkColor,
|
|
7130
|
-
children: /* @__PURE__ */ (0,
|
|
7258
|
+
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
7259
|
}
|
|
7132
7260
|
);
|
|
7133
7261
|
}
|
|
7134
|
-
return /* @__PURE__ */ (0,
|
|
7262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
7135
7263
|
"g",
|
|
7136
7264
|
{
|
|
7137
7265
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
7138
7266
|
fill: brandmarkColor,
|
|
7139
|
-
children: /* @__PURE__ */ (0,
|
|
7267
|
+
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
7268
|
}
|
|
7141
7269
|
);
|
|
7142
7270
|
};
|
|
@@ -7144,12 +7272,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
7144
7272
|
if (iconOnly) {
|
|
7145
7273
|
return null;
|
|
7146
7274
|
}
|
|
7147
|
-
return /* @__PURE__ */ (0,
|
|
7275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
7148
7276
|
"g",
|
|
7149
7277
|
{
|
|
7150
7278
|
"data-testid": "ui-wistia-logo-logotype",
|
|
7151
7279
|
fill: logotypeColor,
|
|
7152
|
-
children: /* @__PURE__ */ (0,
|
|
7280
|
+
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
7281
|
}
|
|
7154
7282
|
);
|
|
7155
7283
|
};
|
|
@@ -7159,7 +7287,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
7159
7287
|
}
|
|
7160
7288
|
return "0 0 144 31.47";
|
|
7161
7289
|
};
|
|
7162
|
-
var WistiaLogoComponent =
|
|
7290
|
+
var WistiaLogoComponent = import_styled_components39.default.svg`
|
|
7163
7291
|
height: ${({ height }) => `${height}px`};
|
|
7164
7292
|
|
|
7165
7293
|
/* ensure it will always fit on mobile */
|
|
@@ -7201,7 +7329,7 @@ var WistiaLogo = ({
|
|
|
7201
7329
|
};
|
|
7202
7330
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
7203
7331
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
7204
|
-
const Logo = /* @__PURE__ */ (0,
|
|
7332
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(
|
|
7205
7333
|
WistiaLogoComponent,
|
|
7206
7334
|
{
|
|
7207
7335
|
$hoverColor: hoverColor,
|
|
@@ -7211,14 +7339,14 @@ var WistiaLogo = ({
|
|
|
7211
7339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7212
7340
|
...otherProps,
|
|
7213
7341
|
children: [
|
|
7214
|
-
/* @__PURE__ */ (0,
|
|
7215
|
-
(0,
|
|
7342
|
+
/* @__PURE__ */ (0, import_jsx_runtime186.jsx)("title", { children: title }),
|
|
7343
|
+
(0, import_type_guards22.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime186.jsx)("desc", { children: description }) : null,
|
|
7216
7344
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
7217
7345
|
renderLogotype(logotypeColor, iconOnly)
|
|
7218
7346
|
]
|
|
7219
7347
|
}
|
|
7220
7348
|
);
|
|
7221
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
7349
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime186.jsx)("a", { href, children: Logo }) : Logo;
|
|
7222
7350
|
};
|
|
7223
7351
|
WistiaLogo.displayName = "WistiaLogo";
|
|
7224
7352
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -7244,6 +7372,7 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
7244
7372
|
MenuItemLabel,
|
|
7245
7373
|
MenuLabel,
|
|
7246
7374
|
MenuRadioGroup,
|
|
7375
|
+
Radio,
|
|
7247
7376
|
RadioMenuItem,
|
|
7248
7377
|
ScreenReaderOnly,
|
|
7249
7378
|
Stack,
|