@wistia/ui 0.0.18 → 0.0.19
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 +179 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +50 -2
- package/dist/index.d.ts +50 -2
- package/dist/index.mjs +180 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
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.19
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2024, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -64,6 +64,7 @@ __export(src_exports, {
|
|
|
64
64
|
ScreenReaderOnly: () => ScreenReaderOnly,
|
|
65
65
|
Stack: () => Stack,
|
|
66
66
|
SubMenu: () => SubMenu,
|
|
67
|
+
Tag: () => Tag,
|
|
67
68
|
Text: () => Text,
|
|
68
69
|
Tooltip: () => Tooltip,
|
|
69
70
|
UIProvider: () => UIProvider,
|
|
@@ -895,7 +896,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
895
896
|
|
|
896
897
|
/* --- Default --- */
|
|
897
898
|
--wui-color-bg-fill: var(--wui-blue-9);
|
|
898
|
-
--wui-color-bg-fill-active: var(--wui-blue-
|
|
899
|
+
--wui-color-bg-fill-active: var(--wui-blue-11);
|
|
899
900
|
--wui-color-bg-fill-hover: var(--wui-blue-10);
|
|
900
901
|
--wui-color-bg-surface: var(--wui-gray-surface);
|
|
901
902
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
@@ -917,6 +918,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
917
918
|
--wui-color-text-link: var(--wui-blue-9);
|
|
918
919
|
--wui-color-text-on-fill: var(--wui-gray-contrast);
|
|
919
920
|
--wui-color-text-secondary: var(--wui-gray-11);
|
|
921
|
+
--wui-color-focus-ring: var(--wui-blue-9);
|
|
920
922
|
|
|
921
923
|
/* --- Semantic --- */
|
|
922
924
|
|
|
@@ -944,6 +946,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
944
946
|
--wui-color-text-link-error: var(--wui-error-11);
|
|
945
947
|
--wui-color-text-on-fill-error: var(--wui-error-contrast);
|
|
946
948
|
--wui-color-text-secondary-error: var(--wui-error-11);
|
|
949
|
+
--wui-color-focus-ring-error: var(--wui-error-9);
|
|
947
950
|
|
|
948
951
|
/* Info */
|
|
949
952
|
--wui-color-bg-fill-active-info: var(--wui-blue-11);
|
|
@@ -969,6 +972,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
969
972
|
--wui-color-text-link-info: var(--wui-blue-9);
|
|
970
973
|
--wui-color-text-on-fill-info: var(--wui-blue-contrast);
|
|
971
974
|
--wui-color-text-secondary-info: var(--wui-blue-11);
|
|
975
|
+
--wui-color-focus-ring-info: var(--wui-blue-9);
|
|
972
976
|
|
|
973
977
|
/* Success */
|
|
974
978
|
--wui-color-bg-fill-active-success: var(--wui-success-11);
|
|
@@ -994,6 +998,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
994
998
|
--wui-color-text-on-fill-success: var(--wui-success-contrast);
|
|
995
999
|
--wui-color-text-secondary-success: var(--wui-success-11);
|
|
996
1000
|
--wui-color-text-success: var(--wui-success-11);
|
|
1001
|
+
--wui-color-focus-ring-success: var(--wui-success-9);
|
|
997
1002
|
|
|
998
1003
|
/* Warning */
|
|
999
1004
|
--wui-color-bg-fill-active-warning: var(--wui-warning-11);
|
|
@@ -1019,6 +1024,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1019
1024
|
--wui-color-text-on-fill-warning: var(--wui-warning-contrast);
|
|
1020
1025
|
--wui-color-text-secondary-warning: var(--wui-warning-11);
|
|
1021
1026
|
--wui-color-text-warning: var(--wui-warning-11);
|
|
1027
|
+
--wui-color-focus-ring-warning: var(--wui-warning-9);
|
|
1022
1028
|
|
|
1023
1029
|
/* --- Accent --- */
|
|
1024
1030
|
|
|
@@ -1046,6 +1052,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1046
1052
|
--wui-color-text-link-blue: var(--wui-blue-9);
|
|
1047
1053
|
--wui-color-text-on-fill-blue: var(--wui-blue-contrast);
|
|
1048
1054
|
--wui-color-text-secondary-blue: var(--wui-blue-5);
|
|
1055
|
+
--wui-color-focus-ring-blue: var(--wui-blue-9);
|
|
1049
1056
|
|
|
1050
1057
|
/* Green */
|
|
1051
1058
|
--wui-color-bg-fill-active-green: var(--wui-green-11);
|
|
@@ -1071,6 +1078,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1071
1078
|
--wui-color-text-link-green: var(--wui-green-11);
|
|
1072
1079
|
--wui-color-text-on-fill-green: var(--wui-green-contrast);
|
|
1073
1080
|
--wui-color-text-secondary-green: var(--wui-green-10);
|
|
1081
|
+
--wui-color-focus-ring-green: var(--wui-green-9);
|
|
1074
1082
|
|
|
1075
1083
|
/* Orange */
|
|
1076
1084
|
--wui-color-bg-fill-active-orange: var(--wui-orange-11);
|
|
@@ -1096,6 +1104,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1096
1104
|
--wui-color-text-on-fill-orange: var(--wui-orange-contrast);
|
|
1097
1105
|
--wui-color-text-orange: var(--wui-orange-11);
|
|
1098
1106
|
--wui-color-text-secondary-orange: var(--wui-orange-10);
|
|
1107
|
+
--wui-color-focus-ring-orange: var(--wui-orange-9);
|
|
1099
1108
|
|
|
1100
1109
|
/* Pink */
|
|
1101
1110
|
--wui-color-bg-fill-active-pink: var(--wui-pink-11);
|
|
@@ -1121,6 +1130,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1121
1130
|
--wui-color-text-on-fill-pink: var(--wui-pink-contrast);
|
|
1122
1131
|
--wui-color-text-pink: var(--wui-pink-11);
|
|
1123
1132
|
--wui-color-text-secondary-pink: var(--wui-pink-10);
|
|
1133
|
+
--wui-color-focus-ring-pink: var(--wui-pink-9);
|
|
1124
1134
|
|
|
1125
1135
|
/* Purple */
|
|
1126
1136
|
--wui-color-bg-fill-active-purple: var(--wui-purple-11);
|
|
@@ -1146,6 +1156,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1146
1156
|
--wui-color-text-on-fill-purple: var(--wui-purple-contrast);
|
|
1147
1157
|
--wui-color-text-purple: var(--wui-purple-11);
|
|
1148
1158
|
--wui-color-text-secondary-purple: var(--wui-purple-11);
|
|
1159
|
+
--wui-color-focus-ring-purple: var(--wui-purple-9);
|
|
1149
1160
|
|
|
1150
1161
|
/* Yellow */
|
|
1151
1162
|
--wui-color-bg-fill-active-yellow: var(--wui-yellow-11);
|
|
@@ -1171,6 +1182,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1171
1182
|
--wui-color-text-on-fill-yellow: var(--wui-yellow-contrast);
|
|
1172
1183
|
--wui-color-text-secondary-yellow: var(--wui-yellow-10);
|
|
1173
1184
|
--wui-color-text-yellow: var(--wui-yellow-11);
|
|
1185
|
+
--wui-color-focus-ring-yellow: var(--wui-yellow-9);
|
|
1174
1186
|
|
|
1175
1187
|
/* --- Misc --- */
|
|
1176
1188
|
--wui-color-bg-fill-white: #ffffff;
|
|
@@ -1614,7 +1626,8 @@ var colorSchemeSchema = [
|
|
|
1614
1626
|
{ token: "border-secondary-hover", step: "10" },
|
|
1615
1627
|
{ token: "border-secondary-active", step: "11" },
|
|
1616
1628
|
{ token: "icon", step: "11" },
|
|
1617
|
-
{ token: "icon-on-fill", step: "contrast" }
|
|
1629
|
+
{ token: "icon-on-fill", step: "contrast" },
|
|
1630
|
+
{ token: "focus-ring", step: "9" }
|
|
1618
1631
|
];
|
|
1619
1632
|
var defaultScheme = import_styled_components10.css`
|
|
1620
1633
|
--wui-color-bg-surface: var(--wui-gray-surface);
|
|
@@ -1626,7 +1639,7 @@ var defaultScheme = import_styled_components10.css`
|
|
|
1626
1639
|
--wui-color-bg-surface-tertiary: var(--wui-gray-5);
|
|
1627
1640
|
--wui-color-bg-fill: var(--wui-blue-9);
|
|
1628
1641
|
--wui-color-bg-fill-hover: var(--wui-blue-10);
|
|
1629
|
-
--wui-color-bg-fill-active: var(--wui-blue-
|
|
1642
|
+
--wui-color-bg-fill-active: var(--wui-blue-11);
|
|
1630
1643
|
--wui-color-text: var(--wui-gray-12);
|
|
1631
1644
|
--wui-color-text-high-contrast: var(--wui-gray-12);
|
|
1632
1645
|
--wui-color-text-link: var(--wui-blue-9);
|
|
@@ -1640,6 +1653,7 @@ var defaultScheme = import_styled_components10.css`
|
|
|
1640
1653
|
--wui-color-border-secondary-active: var(--wui-gray-11);
|
|
1641
1654
|
--wui-color-icon: var(--wui-gray-11);
|
|
1642
1655
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
1656
|
+
--wui-color-focus-ring: var(--wui-blue-9);
|
|
1643
1657
|
`;
|
|
1644
1658
|
var getColorScheme = (colorScheme) => {
|
|
1645
1659
|
if (colorScheme === "inherit") {
|
|
@@ -2153,19 +2167,18 @@ var buttonBaseStyles = import_styled_components16.css`
|
|
|
2153
2167
|
background: var(--button-color-bg-active);
|
|
2154
2168
|
}
|
|
2155
2169
|
|
|
2156
|
-
&:focus
|
|
2157
|
-
&.force-state-focus {
|
|
2170
|
+
&:focus {
|
|
2158
2171
|
outline: none;
|
|
2159
2172
|
}
|
|
2160
2173
|
|
|
2161
|
-
&:focus-visible
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2174
|
+
&:focus-visible,
|
|
2175
|
+
&.force-state-focus {
|
|
2176
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
2177
|
+
outline-offset: 2px;
|
|
2178
|
+
background: var(--button-color-bg-hover);
|
|
2166
2179
|
|
|
2167
2180
|
&[aria-disabled='true'] {
|
|
2168
|
-
outline:
|
|
2181
|
+
outline-color: var(--wui-color-border-disabled);
|
|
2169
2182
|
}
|
|
2170
2183
|
}
|
|
2171
2184
|
|
|
@@ -5620,9 +5633,7 @@ var Button = (0, import_react10.forwardRef)(
|
|
|
5620
5633
|
$size: responsiveSize,
|
|
5621
5634
|
$unstyled: unstyled,
|
|
5622
5635
|
$variant: variant,
|
|
5623
|
-
className
|
|
5624
|
-
forceState,
|
|
5625
|
-
isLoading
|
|
5636
|
+
className
|
|
5626
5637
|
};
|
|
5627
5638
|
if (forceState) {
|
|
5628
5639
|
commonProps.className = `${className ?? ""} force-state-${forceState}`;
|
|
@@ -6965,27 +6976,167 @@ var StackComponent = (0, import_react18.forwardRef)(
|
|
|
6965
6976
|
StackComponent.displayName = "Stack";
|
|
6966
6977
|
var Stack = makePolymorphic(StackComponent);
|
|
6967
6978
|
|
|
6968
|
-
// src/components/
|
|
6979
|
+
// src/components/Tag/Tag.tsx
|
|
6980
|
+
var import_react19 = require("react");
|
|
6969
6981
|
var import_styled_components37 = __toESM(require("styled-components"));
|
|
6970
6982
|
var import_type_guards20 = require("@wistia/type-guards");
|
|
6971
6983
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
6984
|
+
var TagLabel = import_styled_components37.default.a`
|
|
6985
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6986
|
+
font-size: var(--wui-typography-label-4-size);
|
|
6987
|
+
font-weight: var(--wui-typography-label-4-weight);
|
|
6988
|
+
line-height: var(--wui-typography-label-4-line-height);
|
|
6989
|
+
border-radius: var(--wui-border-radius-01);
|
|
6990
|
+
align-items: center;
|
|
6991
|
+
color: var(--wui-color-text-high-contrast);
|
|
6992
|
+
text-decoration: none;
|
|
6993
|
+
padding: var(--wui-space-01);
|
|
6994
|
+
|
|
6995
|
+
:not(:only-child) {
|
|
6996
|
+
padding-right: var(--wui-space-01);
|
|
6997
|
+
}
|
|
6998
|
+
|
|
6999
|
+
:is(a):hover {
|
|
7000
|
+
background: var(--wui-color-bg-surface-secondary-hover);
|
|
7001
|
+
}
|
|
7002
|
+
|
|
7003
|
+
:is(a):active {
|
|
7004
|
+
background: var(--wui-color-bg-surface-secondary-active);
|
|
7005
|
+
}
|
|
7006
|
+
|
|
7007
|
+
:focus-visible {
|
|
7008
|
+
outline: unset;
|
|
7009
|
+
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
7010
|
+
}
|
|
7011
|
+
`;
|
|
7012
|
+
var TagDivider = import_styled_components37.default.div`
|
|
7013
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7014
|
+
border-left: 1px solid var(--wui-color-border);
|
|
7015
|
+
display: flex;
|
|
7016
|
+
height: 14px;
|
|
7017
|
+
width: 1px;
|
|
7018
|
+
`;
|
|
7019
|
+
var StyledRemoveButton = import_styled_components37.default.button`
|
|
7020
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7021
|
+
all: unset;
|
|
7022
|
+
cursor: pointer;
|
|
7023
|
+
display: flex;
|
|
7024
|
+
height: 22px;
|
|
7025
|
+
width: 12px;
|
|
7026
|
+
align-items: center;
|
|
7027
|
+
padding: 0 var(--wui-space-01);
|
|
7028
|
+
border-radius: var(--wui-border-radius-01);
|
|
7029
|
+
|
|
7030
|
+
svg path {
|
|
7031
|
+
fill: var(--wui-color-icon);
|
|
7032
|
+
}
|
|
7033
|
+
|
|
7034
|
+
:hover {
|
|
7035
|
+
background: var(--wui-color-bg-surface-secondary-hover);
|
|
7036
|
+
}
|
|
7037
|
+
|
|
7038
|
+
:active {
|
|
7039
|
+
background: var(--wui-color-bg-surface-secondary-active);
|
|
7040
|
+
}
|
|
7041
|
+
|
|
7042
|
+
:focus-visible {
|
|
7043
|
+
outline: unset;
|
|
7044
|
+
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
7045
|
+
}
|
|
7046
|
+
`;
|
|
7047
|
+
var StyledTag = import_styled_components37.default.div`
|
|
7048
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7049
|
+
align-items: center;
|
|
7050
|
+
background-color: var(--wui-color-bg-surface-secondary);
|
|
7051
|
+
border-radius: var(--wui-border-radius-01);
|
|
7052
|
+
display: inline-flex;
|
|
7053
|
+
overflow: hidden;
|
|
7054
|
+
`;
|
|
7055
|
+
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
7056
|
+
if ((0, import_type_guards20.isNil)(onClickRemove)) {
|
|
7057
|
+
return null;
|
|
7058
|
+
}
|
|
7059
|
+
if ((0, import_type_guards20.isNil)(onClickRemoveLabel)) {
|
|
7060
|
+
throw new Error(
|
|
7061
|
+
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
7062
|
+
);
|
|
7063
|
+
}
|
|
7064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(import_jsx_runtime184.Fragment, { children: [
|
|
7065
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
7066
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(
|
|
7067
|
+
StyledRemoveButton,
|
|
7068
|
+
{
|
|
7069
|
+
$colorScheme: colorScheme,
|
|
7070
|
+
onClick: onClickRemove,
|
|
7071
|
+
type: "button",
|
|
7072
|
+
children: [
|
|
7073
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
7074
|
+
Icon,
|
|
7075
|
+
{
|
|
7076
|
+
size: "sm",
|
|
7077
|
+
type: "close"
|
|
7078
|
+
}
|
|
7079
|
+
),
|
|
7080
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
7081
|
+
]
|
|
7082
|
+
}
|
|
7083
|
+
)
|
|
7084
|
+
] });
|
|
7085
|
+
};
|
|
7086
|
+
var Tag = (0, import_react19.forwardRef)(
|
|
7087
|
+
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
7088
|
+
const labelProps = (0, import_type_guards20.isNotNil)(href) && (0, import_type_guards20.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
7089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(
|
|
7090
|
+
StyledTag,
|
|
7091
|
+
{
|
|
7092
|
+
ref,
|
|
7093
|
+
$colorScheme: colorScheme,
|
|
7094
|
+
...otherProps,
|
|
7095
|
+
children: [
|
|
7096
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
7097
|
+
TagLabel,
|
|
7098
|
+
{
|
|
7099
|
+
...labelProps,
|
|
7100
|
+
$colorScheme: colorScheme,
|
|
7101
|
+
children: label
|
|
7102
|
+
}
|
|
7103
|
+
),
|
|
7104
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
7105
|
+
RemoveButton,
|
|
7106
|
+
{
|
|
7107
|
+
colorScheme,
|
|
7108
|
+
onClickRemove,
|
|
7109
|
+
onClickRemoveLabel
|
|
7110
|
+
}
|
|
7111
|
+
)
|
|
7112
|
+
]
|
|
7113
|
+
}
|
|
7114
|
+
);
|
|
7115
|
+
}
|
|
7116
|
+
);
|
|
7117
|
+
Tag.displayName = "Tag";
|
|
7118
|
+
|
|
7119
|
+
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
7120
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7121
|
+
var import_type_guards21 = require("@wistia/type-guards");
|
|
7122
|
+
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
6972
7123
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
6973
7124
|
if (iconOnly) {
|
|
6974
|
-
return /* @__PURE__ */ (0,
|
|
7125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
6975
7126
|
"g",
|
|
6976
7127
|
{
|
|
6977
7128
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
6978
7129
|
fill: brandmarkColor,
|
|
6979
|
-
children: /* @__PURE__ */ (0,
|
|
7130
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime185.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" })
|
|
6980
7131
|
}
|
|
6981
7132
|
);
|
|
6982
7133
|
}
|
|
6983
|
-
return /* @__PURE__ */ (0,
|
|
7134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
6984
7135
|
"g",
|
|
6985
7136
|
{
|
|
6986
7137
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
6987
7138
|
fill: brandmarkColor,
|
|
6988
|
-
children: /* @__PURE__ */ (0,
|
|
7139
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime185.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" })
|
|
6989
7140
|
}
|
|
6990
7141
|
);
|
|
6991
7142
|
};
|
|
@@ -6993,12 +7144,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
6993
7144
|
if (iconOnly) {
|
|
6994
7145
|
return null;
|
|
6995
7146
|
}
|
|
6996
|
-
return /* @__PURE__ */ (0,
|
|
7147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
6997
7148
|
"g",
|
|
6998
7149
|
{
|
|
6999
7150
|
"data-testid": "ui-wistia-logo-logotype",
|
|
7000
7151
|
fill: logotypeColor,
|
|
7001
|
-
children: /* @__PURE__ */ (0,
|
|
7152
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime185.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" })
|
|
7002
7153
|
}
|
|
7003
7154
|
);
|
|
7004
7155
|
};
|
|
@@ -7008,7 +7159,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
7008
7159
|
}
|
|
7009
7160
|
return "0 0 144 31.47";
|
|
7010
7161
|
};
|
|
7011
|
-
var WistiaLogoComponent =
|
|
7162
|
+
var WistiaLogoComponent = import_styled_components38.default.svg`
|
|
7012
7163
|
height: ${({ height }) => `${height}px`};
|
|
7013
7164
|
|
|
7014
7165
|
/* ensure it will always fit on mobile */
|
|
@@ -7050,7 +7201,7 @@ var WistiaLogo = ({
|
|
|
7050
7201
|
};
|
|
7051
7202
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
7052
7203
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
7053
|
-
const Logo = /* @__PURE__ */ (0,
|
|
7204
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(
|
|
7054
7205
|
WistiaLogoComponent,
|
|
7055
7206
|
{
|
|
7056
7207
|
$hoverColor: hoverColor,
|
|
@@ -7060,14 +7211,14 @@ var WistiaLogo = ({
|
|
|
7060
7211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7061
7212
|
...otherProps,
|
|
7062
7213
|
children: [
|
|
7063
|
-
/* @__PURE__ */ (0,
|
|
7064
|
-
(0,
|
|
7214
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("title", { children: title }),
|
|
7215
|
+
(0, import_type_guards21.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("desc", { children: description }) : null,
|
|
7065
7216
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
7066
7217
|
renderLogotype(logotypeColor, iconOnly)
|
|
7067
7218
|
]
|
|
7068
7219
|
}
|
|
7069
7220
|
);
|
|
7070
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
7221
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("a", { href, children: Logo }) : Logo;
|
|
7071
7222
|
};
|
|
7072
7223
|
WistiaLogo.displayName = "WistiaLogo";
|
|
7073
7224
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -7097,6 +7248,7 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
7097
7248
|
ScreenReaderOnly,
|
|
7098
7249
|
Stack,
|
|
7099
7250
|
SubMenu,
|
|
7251
|
+
Tag,
|
|
7100
7252
|
Text,
|
|
7101
7253
|
Tooltip,
|
|
7102
7254
|
UIProvider,
|