@wistia/ui 0.18.17 → 0.18.18-beta.52b38c67.eabff6e
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 +110 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +173 -121
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.
|
|
3
|
+
* @license @wistia/ui v0.18.18-beta.52b38c67.eabff6e
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -13958,12 +13958,22 @@ import { useRef as useRef15 } from "react";
|
|
|
13958
13958
|
import { styled as styled58, keyframes as keyframes4 } from "styled-components";
|
|
13959
13959
|
import { isNotNil as isNotNil25 } from "@wistia/type-guards";
|
|
13960
13960
|
import { jsx as jsx278, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13961
|
+
var pulse = keyframes4`
|
|
13962
|
+
0%,
|
|
13963
|
+
100% {
|
|
13964
|
+
opacity: 1;
|
|
13965
|
+
}
|
|
13966
|
+
50% {
|
|
13967
|
+
opacity: 0.5;
|
|
13968
|
+
}
|
|
13969
|
+
`;
|
|
13961
13970
|
var StyledDataCard = styled58.div`
|
|
13962
13971
|
--wui-data-card-text: var(--wui-color-text-button);
|
|
13963
13972
|
--wui-color-text: var(--wui-data-card-text);
|
|
13964
13973
|
--wui-data-card-background: var(--wui-color-bg-surface-secondary);
|
|
13965
13974
|
--wui-data-card-background-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
13966
13975
|
--wui-data-card-background-active: var(--wui-color-bg-surface-secondary-active);
|
|
13976
|
+
--wui-data-card-skeleton-color: var(--wui-color-bg-surface-tertiary);
|
|
13967
13977
|
|
|
13968
13978
|
display: grid;
|
|
13969
13979
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -13991,6 +14001,16 @@ var StyledDataCard = styled58.div`
|
|
|
13991
14001
|
grid-template-rows: auto auto auto;
|
|
13992
14002
|
}
|
|
13993
14003
|
|
|
14004
|
+
[data-wui-data-card-skeleton='true'] {
|
|
14005
|
+
pointer-events: none;
|
|
14006
|
+
background-color: var(--wui-data-card-skeleton-color);
|
|
14007
|
+
animation: ${pulse} 1.5s var(--wui-motion-ease-in-out) 0.5s infinite;
|
|
14008
|
+
color: transparent;
|
|
14009
|
+
user-select: none;
|
|
14010
|
+
border-radius: var(--wui-border-radius-01);
|
|
14011
|
+
width: fit-content;
|
|
14012
|
+
}
|
|
14013
|
+
|
|
13994
14014
|
&[data-click-region] {
|
|
13995
14015
|
&:not([disabled]) {
|
|
13996
14016
|
cursor: pointer;
|
|
@@ -14022,6 +14042,7 @@ var StyledDataCard = styled58.div`
|
|
|
14022
14042
|
--wui-data-card-background-hover: var(--wui-color-bg-surface-selected-hover);
|
|
14023
14043
|
--wui-data-card-background-active: var(--wui-color-bg-surface-selected-active);
|
|
14024
14044
|
--wui-data-card-focus-ring: var(--wui-color-border-selected);
|
|
14045
|
+
--wui-data-card-skeleton-color: var(--wui-color-bg-surface-selected-active);
|
|
14025
14046
|
}
|
|
14026
14047
|
}
|
|
14027
14048
|
|
|
@@ -14032,38 +14053,23 @@ var StyledDataCard = styled58.div`
|
|
|
14032
14053
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14033
14054
|
}
|
|
14034
14055
|
`;
|
|
14035
|
-
var shimmer = keyframes4`
|
|
14036
|
-
0% {
|
|
14037
|
-
background-position: 200% 0;
|
|
14038
|
-
}
|
|
14039
|
-
100% {
|
|
14040
|
-
background-position: -200% 0;
|
|
14041
|
-
}
|
|
14042
|
-
`;
|
|
14043
|
-
var LoadingBackground = styled58.div`
|
|
14044
|
-
background: linear-gradient(
|
|
14045
|
-
90deg,
|
|
14046
|
-
var(--wui-color-bg-surface-tertiary) 25%,
|
|
14047
|
-
var(--wui-color-bg-surface-secondary) 37%,
|
|
14048
|
-
var(--wui-color-bg-surface-tertiary) 63%
|
|
14049
|
-
);
|
|
14050
|
-
background-size: 200% 100%;
|
|
14051
|
-
animation: ${shimmer} 1.5s infinite;
|
|
14052
|
-
border-radius: var(--wui-border-radius-01);
|
|
14053
|
-
`;
|
|
14054
|
-
var StyledLoadingLabel = styled58(LoadingBackground)`
|
|
14055
|
-
width: 80px;
|
|
14056
|
-
height: var(--wui-typography-heading-6-line-height);
|
|
14057
|
-
`;
|
|
14058
|
-
var StyledLoadingValue = styled58(LoadingBackground)`
|
|
14059
|
-
width: 90%;
|
|
14060
|
-
height: var(--wui-typography-heading-3-line-height);
|
|
14061
|
-
`;
|
|
14062
14056
|
var StyledLabel3 = styled58(Heading)`
|
|
14063
14057
|
grid-area: label;
|
|
14058
|
+
|
|
14059
|
+
&[data-wui-data-card-skeleton='true'] {
|
|
14060
|
+
width: 80px;
|
|
14061
|
+
}
|
|
14062
|
+
|
|
14063
|
+
button {
|
|
14064
|
+
text-align: left;
|
|
14065
|
+
}
|
|
14064
14066
|
`;
|
|
14065
14067
|
var StyledValue = styled58(Heading)`
|
|
14066
14068
|
grid-area: value;
|
|
14069
|
+
|
|
14070
|
+
&[data-wui-data-card-skeleton='true'] {
|
|
14071
|
+
width: min(90%, 156px);
|
|
14072
|
+
}
|
|
14067
14073
|
`;
|
|
14068
14074
|
var StyledSlot = styled58.div`
|
|
14069
14075
|
display: flex;
|
|
@@ -14097,17 +14103,19 @@ var DataCardInner = ({
|
|
|
14097
14103
|
/* @__PURE__ */ jsx278(
|
|
14098
14104
|
StyledLabel3,
|
|
14099
14105
|
{
|
|
14100
|
-
|
|
14106
|
+
"data-wui-data-card-skeleton": isLoading,
|
|
14107
|
+
renderAs: "div",
|
|
14101
14108
|
variant: "heading6",
|
|
14102
|
-
children:
|
|
14109
|
+
children: label
|
|
14103
14110
|
}
|
|
14104
14111
|
),
|
|
14105
14112
|
/* @__PURE__ */ jsx278(
|
|
14106
14113
|
StyledValue,
|
|
14107
14114
|
{
|
|
14108
|
-
|
|
14115
|
+
"data-wui-data-card-skeleton": isLoading,
|
|
14116
|
+
renderAs: "div",
|
|
14109
14117
|
variant: "heading3",
|
|
14110
|
-
children:
|
|
14118
|
+
children: value
|
|
14111
14119
|
}
|
|
14112
14120
|
),
|
|
14113
14121
|
isNotNil25(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx278(StyledSlot, { children: upperRightSlot }),
|
|
@@ -14158,9 +14166,16 @@ import { styled as styled59 } from "styled-components";
|
|
|
14158
14166
|
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
14159
14167
|
var StyledDataCards = styled59(Box)`
|
|
14160
14168
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
14169
|
+
--wui-data-cards-column-count: ${({ $columns }) => $columns === "auto" ? void 0 : $columns};
|
|
14170
|
+
--wui-data-cards-total-column-gap-width: calc(var(--wui-data-cards-column-count) - 1) *
|
|
14171
|
+
var(--wui-space-02);
|
|
14172
|
+
--wui-data-cards-column-width: calc(
|
|
14173
|
+
(100% - var(--wui-data-cards-total-column-gap-width)) / var(--wui-data-cards-column-count)
|
|
14174
|
+
);
|
|
14161
14175
|
|
|
14162
14176
|
> * {
|
|
14163
14177
|
min-width: 120px;
|
|
14178
|
+
flex-basis: var(--wui-data-cards-column-width, 0);
|
|
14164
14179
|
max-width: ${({ $cardMaxWidth }) => $cardMaxWidth};
|
|
14165
14180
|
}
|
|
14166
14181
|
`;
|
|
@@ -14168,19 +14183,22 @@ var DataCards = ({
|
|
|
14168
14183
|
children,
|
|
14169
14184
|
cardMaxWidth = "none",
|
|
14170
14185
|
colorScheme = "inherit",
|
|
14186
|
+
columns = "auto",
|
|
14171
14187
|
...props
|
|
14172
14188
|
}) => {
|
|
14189
|
+
const responsiveCardMaxWidth = useResponsiveProp(cardMaxWidth);
|
|
14190
|
+
const responsiveColumns = useResponsiveProp(columns);
|
|
14173
14191
|
return /* @__PURE__ */ jsx279(
|
|
14174
14192
|
StyledDataCards,
|
|
14175
14193
|
{
|
|
14176
14194
|
...props,
|
|
14177
|
-
$cardMaxWidth:
|
|
14195
|
+
$cardMaxWidth: responsiveCardMaxWidth,
|
|
14178
14196
|
$colorScheme: colorScheme,
|
|
14197
|
+
$columns: responsiveColumns,
|
|
14179
14198
|
alignItems: "stretch",
|
|
14180
14199
|
direction: "row",
|
|
14181
14200
|
fill: "horizontal",
|
|
14182
14201
|
gap: "space-02",
|
|
14183
|
-
renderAs: "dl",
|
|
14184
14202
|
wrapItems: true,
|
|
14185
14203
|
children
|
|
14186
14204
|
}
|
|
@@ -15071,11 +15089,23 @@ var FormErrorSummary = ({ description }) => {
|
|
|
15071
15089
|
|
|
15072
15090
|
// src/components/FormField/FormField.tsx
|
|
15073
15091
|
import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
|
|
15074
|
-
import { styled as styled68 } from "styled-components";
|
|
15092
|
+
import { styled as styled68, css as css36 } from "styled-components";
|
|
15075
15093
|
import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
15076
|
-
import {
|
|
15094
|
+
import { jsx as jsx293, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
15095
|
+
var inlineErrorStyles = css36`
|
|
15096
|
+
grid-template-rows: 1fr auto;
|
|
15097
|
+
grid-template-areas: 'label-description input' '. error';
|
|
15098
|
+
`;
|
|
15099
|
+
var inlineBaseGridAreaStyles = css36`
|
|
15100
|
+
grid-template-rows: 1fr;
|
|
15101
|
+
grid-template-areas: 'label-description input';
|
|
15102
|
+
`;
|
|
15103
|
+
var blockGridErrorStyles = css36`
|
|
15104
|
+
grid-template-rows: auto 1fr auto;
|
|
15105
|
+
grid-template-areas: 'label-description' 'input' 'error';
|
|
15106
|
+
`;
|
|
15077
15107
|
var StyledFormField = styled68.div`
|
|
15078
|
-
--form-field-spacing: var(--wui-space-
|
|
15108
|
+
--form-field-spacing: var(--wui-space-02);
|
|
15079
15109
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
15080
15110
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
15081
15111
|
|
|
@@ -15089,21 +15119,28 @@ var StyledFormField = styled68.div`
|
|
|
15089
15119
|
&[data-label-position='inline-compact'] {
|
|
15090
15120
|
gap: var(--form-field-spacing-inline);
|
|
15091
15121
|
grid-template-columns: auto 1fr;
|
|
15092
|
-
|
|
15122
|
+
${inlineBaseGridAreaStyles}
|
|
15123
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15093
15124
|
}
|
|
15094
15125
|
|
|
15095
15126
|
&[data-label-position='inline'] {
|
|
15096
15127
|
gap: var(--form-field-spacing-inline);
|
|
15097
15128
|
grid-template-columns: minmax(auto, 1fr) 1fr;
|
|
15098
|
-
|
|
15129
|
+
${inlineBaseGridAreaStyles}
|
|
15130
|
+
${({ $hasError }) => $hasError && inlineErrorStyles}
|
|
15099
15131
|
}
|
|
15100
15132
|
|
|
15101
15133
|
&[data-label-position='block'] {
|
|
15102
15134
|
gap: var(--form-field-spacing);
|
|
15103
15135
|
grid-template-columns: 1fr;
|
|
15104
|
-
grid-template-rows: 1fr;
|
|
15136
|
+
grid-template-rows: auto 1fr;
|
|
15137
|
+
grid-template-areas: 'label-description' 'input';
|
|
15138
|
+
${({ $hasError }) => $hasError && blockGridErrorStyles}
|
|
15105
15139
|
}
|
|
15106
15140
|
`;
|
|
15141
|
+
var ErrorText = styled68(Text)`
|
|
15142
|
+
grid-area: error;
|
|
15143
|
+
`;
|
|
15107
15144
|
var StyledErrorList = styled68.ul`
|
|
15108
15145
|
margin: 0;
|
|
15109
15146
|
padding: 0;
|
|
@@ -15111,13 +15148,14 @@ var StyledErrorList = styled68.ul`
|
|
|
15111
15148
|
display: flex;
|
|
15112
15149
|
flex-direction: column;
|
|
15113
15150
|
gap: var(--wui-space-01);
|
|
15151
|
+
grid-area: error;
|
|
15114
15152
|
`;
|
|
15115
15153
|
var ErrorMessages = ({ errors, id }) => {
|
|
15116
15154
|
const isErrorArray = isArray4(errors);
|
|
15117
15155
|
const isMultipleErrors = isErrorArray && errors.length > 1;
|
|
15118
15156
|
if (!isErrorArray) {
|
|
15119
15157
|
return /* @__PURE__ */ jsx293(
|
|
15120
|
-
|
|
15158
|
+
ErrorText,
|
|
15121
15159
|
{
|
|
15122
15160
|
colorScheme: "error",
|
|
15123
15161
|
id,
|
|
@@ -15130,7 +15168,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
15130
15168
|
}
|
|
15131
15169
|
if (!isMultipleErrors) {
|
|
15132
15170
|
return /* @__PURE__ */ jsx293(
|
|
15133
|
-
|
|
15171
|
+
ErrorText,
|
|
15134
15172
|
{
|
|
15135
15173
|
colorScheme: "error",
|
|
15136
15174
|
id,
|
|
@@ -15175,12 +15213,16 @@ var FormField = ({
|
|
|
15175
15213
|
const descriptionId = `${computedId}-description`;
|
|
15176
15214
|
const errorId = `${computedId}-error`;
|
|
15177
15215
|
const ariaDescribedby = [descriptionId, errorId].filter(Boolean).join(" ") || void 0;
|
|
15216
|
+
const hasDescription = isNotNil28(description);
|
|
15217
|
+
const hasError = isNotNil28(computedError);
|
|
15218
|
+
const shouldRenderLabelDescriptionWrapper = !isIntegratedLabel || hasDescription;
|
|
15178
15219
|
let childProps = {
|
|
15179
15220
|
name,
|
|
15180
15221
|
id: computedId,
|
|
15181
15222
|
label: isIntegratedLabel ? label : void 0,
|
|
15182
15223
|
"aria-describedby": ariaDescribedby,
|
|
15183
|
-
"aria-invalid":
|
|
15224
|
+
"aria-invalid": hasError,
|
|
15225
|
+
style: { gridArea: "input" },
|
|
15184
15226
|
...props
|
|
15185
15227
|
};
|
|
15186
15228
|
if (isUndefined4(value) && isNotUndefined12(defaultValue)) {
|
|
@@ -15210,28 +15252,38 @@ var FormField = ({
|
|
|
15210
15252
|
StyledFormField,
|
|
15211
15253
|
{
|
|
15212
15254
|
...props,
|
|
15255
|
+
$hasError: hasError,
|
|
15213
15256
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
15214
15257
|
children: [
|
|
15215
|
-
|
|
15216
|
-
|
|
15258
|
+
shouldRenderLabelDescriptionWrapper ? /* @__PURE__ */ jsxs47(
|
|
15259
|
+
Stack,
|
|
15217
15260
|
{
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15261
|
+
direction: "vertical",
|
|
15262
|
+
gap: "space-01",
|
|
15263
|
+
style: {
|
|
15264
|
+
gridArea: "label-description"
|
|
15265
|
+
},
|
|
15266
|
+
children: [
|
|
15267
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx293(
|
|
15268
|
+
Label,
|
|
15269
|
+
{
|
|
15270
|
+
htmlFor: computedId,
|
|
15271
|
+
required,
|
|
15272
|
+
children: label
|
|
15273
|
+
}
|
|
15274
|
+
),
|
|
15275
|
+
hasDescription ? /* @__PURE__ */ jsx293(FormControlLabelDescription, { id: descriptionId, children: description }) : null
|
|
15276
|
+
]
|
|
15221
15277
|
}
|
|
15222
|
-
),
|
|
15223
|
-
isNotNil28(description) ? /* @__PURE__ */ jsx293(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
15278
|
+
) : null,
|
|
15224
15279
|
cloneElement8(children, childProps),
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
}
|
|
15233
|
-
)
|
|
15234
|
-
] }) : null
|
|
15280
|
+
hasError ? /* @__PURE__ */ jsx293(
|
|
15281
|
+
ErrorMessages,
|
|
15282
|
+
{
|
|
15283
|
+
errors: computedError,
|
|
15284
|
+
id: errorId
|
|
15285
|
+
}
|
|
15286
|
+
) : null
|
|
15235
15287
|
]
|
|
15236
15288
|
}
|
|
15237
15289
|
);
|
|
@@ -15267,24 +15319,24 @@ RadioGroup.displayName = "RadioGroup_UI";
|
|
|
15267
15319
|
|
|
15268
15320
|
// src/components/Grid/Grid.tsx
|
|
15269
15321
|
import { forwardRef as forwardRef22 } from "react";
|
|
15270
|
-
import { styled as styled69, css as
|
|
15322
|
+
import { styled as styled69, css as css37 } from "styled-components";
|
|
15271
15323
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
15272
15324
|
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
15273
15325
|
var DEFAULT_ELEMENT5 = "div";
|
|
15274
15326
|
var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
15275
15327
|
if (minChildWidth === "auto" && maxColumns === "auto") {
|
|
15276
|
-
return
|
|
15328
|
+
return css37`
|
|
15277
15329
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
15278
15330
|
`;
|
|
15279
15331
|
}
|
|
15280
15332
|
const gridMode = expandItems ? "auto-fit" : "auto-fill";
|
|
15281
15333
|
const minChildWidthValue = minChildWidth === "auto" ? 0 : minChildWidth;
|
|
15282
15334
|
if (maxColumns === "auto") {
|
|
15283
|
-
return
|
|
15335
|
+
return css37`
|
|
15284
15336
|
grid-template-columns: repeat(${gridMode}, minmax(${minChildWidthValue}px, 1fr));
|
|
15285
15337
|
`;
|
|
15286
15338
|
}
|
|
15287
|
-
return
|
|
15339
|
+
return css37`
|
|
15288
15340
|
/* Adapted from https://9elements.com/blog/building-a-rock-solid-auto-grid/ */
|
|
15289
15341
|
--wui-grid-total-column-gap-width: calc(${maxColumns - 1} * var(--wui-grid-column-gap));
|
|
15290
15342
|
--wui-grid-max-column-width: calc(
|
|
@@ -15568,7 +15620,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
15568
15620
|
|
|
15569
15621
|
// src/components/List/List.tsx
|
|
15570
15622
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
15571
|
-
import { styled as styled74, css as
|
|
15623
|
+
import { styled as styled74, css as css38 } from "styled-components";
|
|
15572
15624
|
|
|
15573
15625
|
// src/components/List/ListItem.tsx
|
|
15574
15626
|
import { styled as styled73 } from "styled-components";
|
|
@@ -15587,7 +15639,7 @@ ListItem.displayName = "ListItem_UI";
|
|
|
15587
15639
|
|
|
15588
15640
|
// src/components/List/List.tsx
|
|
15589
15641
|
import { jsx as jsx300, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
15590
|
-
var spacesStyle =
|
|
15642
|
+
var spacesStyle = css38`
|
|
15591
15643
|
overflow: hidden;
|
|
15592
15644
|
padding-left: 0;
|
|
15593
15645
|
vertical-align: bottom;
|
|
@@ -15609,7 +15661,7 @@ var spacesStyle = css37`
|
|
|
15609
15661
|
}
|
|
15610
15662
|
}
|
|
15611
15663
|
`;
|
|
15612
|
-
var commasStyle =
|
|
15664
|
+
var commasStyle = css38`
|
|
15613
15665
|
${spacesStyle};
|
|
15614
15666
|
|
|
15615
15667
|
li {
|
|
@@ -15619,7 +15671,7 @@ var commasStyle = css37`
|
|
|
15619
15671
|
}
|
|
15620
15672
|
}
|
|
15621
15673
|
`;
|
|
15622
|
-
var slashesStyle =
|
|
15674
|
+
var slashesStyle = css38`
|
|
15623
15675
|
${spacesStyle};
|
|
15624
15676
|
|
|
15625
15677
|
li {
|
|
@@ -15630,7 +15682,7 @@ var slashesStyle = css37`
|
|
|
15630
15682
|
}
|
|
15631
15683
|
}
|
|
15632
15684
|
`;
|
|
15633
|
-
var breadcrumbsStyle =
|
|
15685
|
+
var breadcrumbsStyle = css38`
|
|
15634
15686
|
${spacesStyle};
|
|
15635
15687
|
|
|
15636
15688
|
li {
|
|
@@ -15641,7 +15693,7 @@ var breadcrumbsStyle = css37`
|
|
|
15641
15693
|
}
|
|
15642
15694
|
}
|
|
15643
15695
|
`;
|
|
15644
|
-
var unbulletedStyle =
|
|
15696
|
+
var unbulletedStyle = css38`
|
|
15645
15697
|
list-style: none;
|
|
15646
15698
|
padding-left: 0;
|
|
15647
15699
|
`;
|
|
@@ -15823,7 +15875,7 @@ var ModalHeader = ({
|
|
|
15823
15875
|
|
|
15824
15876
|
// src/components/Modal/ModalContent.tsx
|
|
15825
15877
|
import { forwardRef as forwardRef25 } from "react";
|
|
15826
|
-
import { styled as styled78, css as
|
|
15878
|
+
import { styled as styled78, css as css39, keyframes as keyframes5 } from "styled-components";
|
|
15827
15879
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
15828
15880
|
|
|
15829
15881
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -15869,7 +15921,7 @@ var modalExit = keyframes5`
|
|
|
15869
15921
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
15870
15922
|
}
|
|
15871
15923
|
`;
|
|
15872
|
-
var centeredModalStyles =
|
|
15924
|
+
var centeredModalStyles = css39`
|
|
15873
15925
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15874
15926
|
--wui-modal-translate-y: -50%;
|
|
15875
15927
|
|
|
@@ -15885,7 +15937,7 @@ var centeredModalStyles = css38`
|
|
|
15885
15937
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
15886
15938
|
}
|
|
15887
15939
|
`;
|
|
15888
|
-
var fixedTopModalStyles =
|
|
15940
|
+
var fixedTopModalStyles = css39`
|
|
15889
15941
|
--wui-modal-screen-offset-top: 15vh;
|
|
15890
15942
|
--wui-modal-screen-offset-bottom: 5vh;
|
|
15891
15943
|
--wui-modal-translate-y: 0%;
|
|
@@ -15926,7 +15978,7 @@ var slideOutRight = keyframes5`
|
|
|
15926
15978
|
transform: translateX(100%);
|
|
15927
15979
|
}
|
|
15928
15980
|
`;
|
|
15929
|
-
var rightSidePanelModalStyles =
|
|
15981
|
+
var rightSidePanelModalStyles = css39`
|
|
15930
15982
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
15931
15983
|
|
|
15932
15984
|
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
@@ -16124,7 +16176,7 @@ ModalCallout.displayName = "ModalCallout_UI";
|
|
|
16124
16176
|
|
|
16125
16177
|
// src/components/Popover/Popover.tsx
|
|
16126
16178
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
16127
|
-
import { styled as styled82, css as
|
|
16179
|
+
import { styled as styled82, css as css41 } from "styled-components";
|
|
16128
16180
|
|
|
16129
16181
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
16130
16182
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
@@ -16134,7 +16186,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
16134
16186
|
|
|
16135
16187
|
// src/components/Popover/PopoverArrow.tsx
|
|
16136
16188
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
16137
|
-
import { styled as styled81, css as
|
|
16189
|
+
import { styled as styled81, css as css40, keyframes as keyframes7 } from "styled-components";
|
|
16138
16190
|
import { jsx as jsx307, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16139
16191
|
var StyledPath = styled81.path`
|
|
16140
16192
|
fill: var(--wui-color-border-secondary);
|
|
@@ -16168,7 +16220,7 @@ var StyledCircle = styled81.circle`
|
|
|
16168
16220
|
}
|
|
16169
16221
|
|
|
16170
16222
|
@media (prefers-reduced-motion: no-preference) {
|
|
16171
|
-
${({ $isAnimated }) => $isAnimated &&
|
|
16223
|
+
${({ $isAnimated }) => $isAnimated && css40`
|
|
16172
16224
|
animation-name: ${circleAnimation};
|
|
16173
16225
|
`}
|
|
16174
16226
|
}
|
|
@@ -16217,7 +16269,7 @@ import { jsx as jsx308, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
|
16217
16269
|
var StyledContent2 = styled82(Content2)`
|
|
16218
16270
|
z-index: var(--wui-zindex-popover);
|
|
16219
16271
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16220
|
-
${({ $unstyled }) => !$unstyled &&
|
|
16272
|
+
${({ $unstyled }) => !$unstyled && css41`
|
|
16221
16273
|
border-radius: var(--wui-border-radius-02);
|
|
16222
16274
|
padding: var(--wui-space-04);
|
|
16223
16275
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -16367,17 +16419,17 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
16367
16419
|
// src/components/Radio/Radio.tsx
|
|
16368
16420
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
16369
16421
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
16370
|
-
import { styled as styled84, css as
|
|
16422
|
+
import { styled as styled84, css as css42 } from "styled-components";
|
|
16371
16423
|
import { jsx as jsx310, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
16372
|
-
var sizeSmall2 =
|
|
16424
|
+
var sizeSmall2 = css42`
|
|
16373
16425
|
--wui-radio-size: 14px;
|
|
16374
16426
|
--wui-radio-icon-size: 7px;
|
|
16375
16427
|
`;
|
|
16376
|
-
var sizeMedium2 =
|
|
16428
|
+
var sizeMedium2 = css42`
|
|
16377
16429
|
--wui-radio-size: 16px;
|
|
16378
16430
|
--wui-radio-icon-size: 8px;
|
|
16379
16431
|
`;
|
|
16380
|
-
var sizeLarge2 =
|
|
16432
|
+
var sizeLarge2 = css42`
|
|
16381
16433
|
--wui-radio-size: 20px;
|
|
16382
16434
|
--wui-radio-icon-size: 10px;
|
|
16383
16435
|
`;
|
|
@@ -16518,17 +16570,17 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16518
16570
|
|
|
16519
16571
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
16520
16572
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16521
|
-
import { styled as styled85, css as
|
|
16573
|
+
import { styled as styled85, css as css43 } from "styled-components";
|
|
16522
16574
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16523
16575
|
import { jsx as jsx311, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
16524
|
-
var checkedStyles =
|
|
16576
|
+
var checkedStyles = css43`
|
|
16525
16577
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
16526
16578
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
16527
16579
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-info);
|
|
16528
16580
|
--wui-color-text: var(--wui-color-text-info);
|
|
16529
16581
|
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
16530
16582
|
`;
|
|
16531
|
-
var disabledStyles =
|
|
16583
|
+
var disabledStyles = css43`
|
|
16532
16584
|
--wui-radio-card-border-color: var(--wui-color-border-disabled);
|
|
16533
16585
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
16534
16586
|
--wui-radio-card-cursor: not-allowed;
|
|
@@ -16536,10 +16588,10 @@ var disabledStyles = css42`
|
|
|
16536
16588
|
--wui-color-text: var(--wui-color-text-disabled);
|
|
16537
16589
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
16538
16590
|
`;
|
|
16539
|
-
var focusStyles =
|
|
16591
|
+
var focusStyles = css43`
|
|
16540
16592
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
16541
16593
|
`;
|
|
16542
|
-
var imageCoverStyles =
|
|
16594
|
+
var imageCoverStyles = css43`
|
|
16543
16595
|
--wui-radio-card-image-inset: 0px;
|
|
16544
16596
|
--wui-radio-card-border-width: 0px;
|
|
16545
16597
|
--wui-inset-shadow-width: 1px;
|
|
@@ -16945,7 +16997,7 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
16945
16997
|
|
|
16946
16998
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16947
16999
|
import { forwardRef as forwardRef32 } from "react";
|
|
16948
|
-
import { styled as styled91, css as
|
|
17000
|
+
import { styled as styled91, css as css45 } from "styled-components";
|
|
16949
17001
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
16950
17002
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
16951
17003
|
|
|
@@ -16983,7 +17035,7 @@ var useSelectedItemStyle = () => {
|
|
|
16983
17035
|
};
|
|
16984
17036
|
|
|
16985
17037
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
16986
|
-
import { styled as styled90, css as
|
|
17038
|
+
import { styled as styled90, css as css44 } from "styled-components";
|
|
16987
17039
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
16988
17040
|
|
|
16989
17041
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -17000,7 +17052,7 @@ var useSegmentedControlValue = () => {
|
|
|
17000
17052
|
|
|
17001
17053
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
17002
17054
|
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
17003
|
-
var selectedItemIndicatorStyles =
|
|
17055
|
+
var selectedItemIndicatorStyles = css44`
|
|
17004
17056
|
background-color: var(--wui-color-bg-fill-white);
|
|
17005
17057
|
border-radius: var(--wui-border-radius-rounded);
|
|
17006
17058
|
box-shadow: var(--wui-elevation-01);
|
|
@@ -17032,7 +17084,7 @@ var SelectedItemIndicator = () => {
|
|
|
17032
17084
|
|
|
17033
17085
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17034
17086
|
import { jsx as jsx318, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
17035
|
-
var segmentedControlStyles =
|
|
17087
|
+
var segmentedControlStyles = css45`
|
|
17036
17088
|
display: inline-flex;
|
|
17037
17089
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17038
17090
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17082,11 +17134,11 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
17082
17134
|
|
|
17083
17135
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
17084
17136
|
import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
|
|
17085
|
-
import { styled as styled92, css as
|
|
17137
|
+
import { styled as styled92, css as css46 } from "styled-components";
|
|
17086
17138
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
17087
17139
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
17088
17140
|
import { jsxs as jsxs61 } from "react/jsx-runtime";
|
|
17089
|
-
var segmentedControlItemStyles =
|
|
17141
|
+
var segmentedControlItemStyles = css46`
|
|
17090
17142
|
all: unset; /* ToggleGroupItem is a button element */
|
|
17091
17143
|
align-items: center;
|
|
17092
17144
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17227,7 +17279,7 @@ import {
|
|
|
17227
17279
|
ScrollDownButton
|
|
17228
17280
|
} from "@radix-ui/react-select";
|
|
17229
17281
|
import { forwardRef as forwardRef34 } from "react";
|
|
17230
|
-
import { styled as styled93, css as
|
|
17282
|
+
import { styled as styled93, css as css47 } from "styled-components";
|
|
17231
17283
|
import { jsx as jsx319, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17232
17284
|
var StyledTrigger2 = styled93(Trigger3)`
|
|
17233
17285
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -17298,7 +17350,7 @@ var StyledContent3 = styled93(Content3)`
|
|
|
17298
17350
|
margin: var(--wui-space-02) 0;
|
|
17299
17351
|
}
|
|
17300
17352
|
`;
|
|
17301
|
-
var scrollButtonStyles =
|
|
17353
|
+
var scrollButtonStyles = css47`
|
|
17302
17354
|
align-items: center;
|
|
17303
17355
|
display: flex;
|
|
17304
17356
|
justify-content: center;
|
|
@@ -17584,25 +17636,25 @@ var Slider = ({
|
|
|
17584
17636
|
Slider.displayName = "Slider_UI";
|
|
17585
17637
|
|
|
17586
17638
|
// src/components/Table/Table.tsx
|
|
17587
|
-
import { styled as styled97, css as
|
|
17639
|
+
import { styled as styled97, css as css48 } from "styled-components";
|
|
17588
17640
|
import { jsx as jsx323 } from "react/jsx-runtime";
|
|
17589
17641
|
var StyledTable = styled97.table`
|
|
17590
17642
|
width: 100%;
|
|
17591
17643
|
border-collapse: collapse;
|
|
17592
17644
|
|
|
17593
|
-
${({ $divided }) => $divided &&
|
|
17645
|
+
${({ $divided }) => $divided && css48`
|
|
17594
17646
|
tr {
|
|
17595
17647
|
border-bottom: 1px solid var(--wui-color-border);
|
|
17596
17648
|
}
|
|
17597
17649
|
`}
|
|
17598
17650
|
|
|
17599
|
-
${({ $striped }) => $striped &&
|
|
17651
|
+
${({ $striped }) => $striped && css48`
|
|
17600
17652
|
tbody tr:nth-child(even) {
|
|
17601
17653
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17602
17654
|
}
|
|
17603
17655
|
`}
|
|
17604
17656
|
|
|
17605
|
-
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader &&
|
|
17657
|
+
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css48`
|
|
17606
17658
|
thead {
|
|
17607
17659
|
${visuallyHiddenStyle}
|
|
17608
17660
|
}
|
|
@@ -17645,9 +17697,9 @@ var TableBody = ({ children, ...props }) => {
|
|
|
17645
17697
|
|
|
17646
17698
|
// src/components/Table/TableCell.tsx
|
|
17647
17699
|
import { useContext as useContext17 } from "react";
|
|
17648
|
-
import { styled as styled99, css as
|
|
17700
|
+
import { styled as styled99, css as css49 } from "styled-components";
|
|
17649
17701
|
import { jsx as jsx325 } from "react/jsx-runtime";
|
|
17650
|
-
var sharedStyles =
|
|
17702
|
+
var sharedStyles = css49`
|
|
17651
17703
|
color: var(--wui-color-text);
|
|
17652
17704
|
padding: var(--wui-space-02);
|
|
17653
17705
|
text-align: left;
|
|
@@ -17930,9 +17982,9 @@ import {
|
|
|
17930
17982
|
|
|
17931
17983
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
17932
17984
|
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
17933
|
-
import { css as
|
|
17985
|
+
import { css as css50 } from "styled-components";
|
|
17934
17986
|
var gradients = {
|
|
17935
|
-
defaultDarkOne:
|
|
17987
|
+
defaultDarkOne: css50`
|
|
17936
17988
|
background-color: #222d66;
|
|
17937
17989
|
background-image:
|
|
17938
17990
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -17940,7 +17992,7 @@ var gradients = {
|
|
|
17940
17992
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
17941
17993
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
17942
17994
|
`,
|
|
17943
|
-
defaultDarkTwo:
|
|
17995
|
+
defaultDarkTwo: css50`
|
|
17944
17996
|
background-color: #222d66;
|
|
17945
17997
|
background-image:
|
|
17946
17998
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -17948,7 +18000,7 @@ var gradients = {
|
|
|
17948
18000
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
17949
18001
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
17950
18002
|
`,
|
|
17951
|
-
defaultLightOne:
|
|
18003
|
+
defaultLightOne: css50`
|
|
17952
18004
|
background-color: #ccd5ff;
|
|
17953
18005
|
background-image:
|
|
17954
18006
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -17956,13 +18008,13 @@ var gradients = {
|
|
|
17956
18008
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
17957
18009
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
17958
18010
|
`,
|
|
17959
|
-
defaultLightTwo:
|
|
18011
|
+
defaultLightTwo: css50`
|
|
17960
18012
|
background-color: #ccd5ff;
|
|
17961
18013
|
background-image:
|
|
17962
18014
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
17963
18015
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
17964
18016
|
`,
|
|
17965
|
-
defaultMidOne:
|
|
18017
|
+
defaultMidOne: css50`
|
|
17966
18018
|
background-color: #6b84ff;
|
|
17967
18019
|
background-image:
|
|
17968
18020
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -17970,13 +18022,13 @@ var gradients = {
|
|
|
17970
18022
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
17971
18023
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
17972
18024
|
`,
|
|
17973
|
-
defaultMidTwo:
|
|
18025
|
+
defaultMidTwo: css50`
|
|
17974
18026
|
background-color: #6b84ff;
|
|
17975
18027
|
background-image:
|
|
17976
18028
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
17977
18029
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
17978
18030
|
`,
|
|
17979
|
-
green:
|
|
18031
|
+
green: css50`
|
|
17980
18032
|
background-color: #fafffa;
|
|
17981
18033
|
background-image:
|
|
17982
18034
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17984,7 +18036,7 @@ var gradients = {
|
|
|
17984
18036
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17985
18037
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
17986
18038
|
`,
|
|
17987
|
-
greenWithPop:
|
|
18039
|
+
greenWithPop: css50`
|
|
17988
18040
|
background-color: #fafffa;
|
|
17989
18041
|
background-image:
|
|
17990
18042
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -17992,7 +18044,7 @@ var gradients = {
|
|
|
17992
18044
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
17993
18045
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
17994
18046
|
`,
|
|
17995
|
-
pink:
|
|
18047
|
+
pink: css50`
|
|
17996
18048
|
background-color: #fffff0;
|
|
17997
18049
|
background-image:
|
|
17998
18050
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -18000,7 +18052,7 @@ var gradients = {
|
|
|
18000
18052
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
18001
18053
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
18002
18054
|
`,
|
|
18003
|
-
pinkWithPop:
|
|
18055
|
+
pinkWithPop: css50`
|
|
18004
18056
|
background-color: #fffff0;
|
|
18005
18057
|
background-image:
|
|
18006
18058
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -18008,7 +18060,7 @@ var gradients = {
|
|
|
18008
18060
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
18009
18061
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
18010
18062
|
`,
|
|
18011
|
-
playfulGradientOne:
|
|
18063
|
+
playfulGradientOne: css50`
|
|
18012
18064
|
background-color: #f7f8ff;
|
|
18013
18065
|
background-image:
|
|
18014
18066
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -18016,7 +18068,7 @@ var gradients = {
|
|
|
18016
18068
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
18017
18069
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
18018
18070
|
`,
|
|
18019
|
-
playfulGradientTwo:
|
|
18071
|
+
playfulGradientTwo: css50`
|
|
18020
18072
|
background-color: #f7f8ff;
|
|
18021
18073
|
background-image:
|
|
18022
18074
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -18024,13 +18076,13 @@ var gradients = {
|
|
|
18024
18076
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
18025
18077
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18026
18078
|
`,
|
|
18027
|
-
purple:
|
|
18079
|
+
purple: css50`
|
|
18028
18080
|
background-color: #f2caff;
|
|
18029
18081
|
background-image:
|
|
18030
18082
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
18031
18083
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
18032
18084
|
`,
|
|
18033
|
-
purpleWithPop:
|
|
18085
|
+
purpleWithPop: css50`
|
|
18034
18086
|
background-color: #f2caff;
|
|
18035
18087
|
background-image:
|
|
18036
18088
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -18038,7 +18090,7 @@ var gradients = {
|
|
|
18038
18090
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
18039
18091
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18040
18092
|
`,
|
|
18041
|
-
yellow:
|
|
18093
|
+
yellow: css50`
|
|
18042
18094
|
background-color: #fffff0;
|
|
18043
18095
|
background-image:
|
|
18044
18096
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18046,7 +18098,7 @@ var gradients = {
|
|
|
18046
18098
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
18047
18099
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
18048
18100
|
`,
|
|
18049
|
-
yellowWithPop:
|
|
18101
|
+
yellowWithPop: css50`
|
|
18050
18102
|
background-color: #fffff0;
|
|
18051
18103
|
background-image:
|
|
18052
18104
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18507,7 +18559,7 @@ var ThumbnailCollage = ({
|
|
|
18507
18559
|
};
|
|
18508
18560
|
|
|
18509
18561
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18510
|
-
import { styled as styled110, css as
|
|
18562
|
+
import { styled as styled110, css as css51 } from "styled-components";
|
|
18511
18563
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18512
18564
|
import { jsx as jsx337, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18513
18565
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -18565,12 +18617,12 @@ var WistiaLogoComponent = styled110.svg`
|
|
|
18565
18617
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
18566
18618
|
if ($opticallyCentered) {
|
|
18567
18619
|
if ($iconOnly) {
|
|
18568
|
-
return
|
|
18620
|
+
return css51`
|
|
18569
18621
|
aspect-ratio: 1;
|
|
18570
18622
|
padding: 11.85% 3.12% 13.91%;
|
|
18571
18623
|
`;
|
|
18572
18624
|
}
|
|
18573
|
-
return
|
|
18625
|
+
return css51`
|
|
18574
18626
|
aspect-ratio: 127 / 32;
|
|
18575
18627
|
`;
|
|
18576
18628
|
}
|