@wistia/ui 0.21.0 → 0.21.1-beta.166dc17a.14f0804
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.d.ts +250 -20
- package/dist/index.js +920 -456
- package/dist/index.js.map +1 -1
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.21.
|
|
3
|
+
* @license @wistia/ui v0.21.1-beta.166dc17a.14f0804
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -13867,8 +13867,8 @@ var StyledSubTrigger = styled57(DropdownMenuSubTrigger)`
|
|
|
13867
13867
|
`;
|
|
13868
13868
|
var SubMenuTrigger = ({ icon, ...props }) => {
|
|
13869
13869
|
const { isSmAndUp } = useMq();
|
|
13870
|
-
const
|
|
13871
|
-
return /* @__PURE__ */ jsx285(
|
|
13870
|
+
const Trigger5 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
13871
|
+
return /* @__PURE__ */ jsx285(Trigger5, { asChild: true, children: /* @__PURE__ */ jsx285(
|
|
13872
13872
|
MenuItemButton,
|
|
13873
13873
|
{
|
|
13874
13874
|
...props,
|
|
@@ -16000,12 +16000,113 @@ var GridComponent = forwardRef22(
|
|
|
16000
16000
|
GridComponent.displayName = "Grid_UI";
|
|
16001
16001
|
var Grid = makePolymorphic(GridComponent);
|
|
16002
16002
|
|
|
16003
|
+
// src/components/PreviewCard/PreviewCard.tsx
|
|
16004
|
+
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2 } from "@radix-ui/react-hover-card";
|
|
16005
|
+
import { styled as styled73, css as css38, keyframes as keyframes5 } from "styled-components";
|
|
16006
|
+
import { jsx as jsx313, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
16007
|
+
var previewCardOpen = keyframes5`
|
|
16008
|
+
from {
|
|
16009
|
+
opacity: 0;
|
|
16010
|
+
transform: scale(0.96);
|
|
16011
|
+
}
|
|
16012
|
+
to {
|
|
16013
|
+
opacity: 1;
|
|
16014
|
+
transform: scale(1);
|
|
16015
|
+
}
|
|
16016
|
+
`;
|
|
16017
|
+
var previewCardClose = keyframes5`
|
|
16018
|
+
from {
|
|
16019
|
+
opacity: 1;
|
|
16020
|
+
transform: scale(1);
|
|
16021
|
+
}
|
|
16022
|
+
to {
|
|
16023
|
+
opacity: 0;
|
|
16024
|
+
transform: scale(0.96);
|
|
16025
|
+
}
|
|
16026
|
+
`;
|
|
16027
|
+
var StyledContent2 = styled73(Content2)`
|
|
16028
|
+
--preview-card-animation-duration: var(--wui-motion-duration-03);
|
|
16029
|
+
--preview-card-animation-ease: var(--wui-motion-ease-out);
|
|
16030
|
+
|
|
16031
|
+
z-index: var(--wui-zindex-popover);
|
|
16032
|
+
transform-origin: var(--radix-hover-card-content-transform-origin);
|
|
16033
|
+
animation-duration: var(--preview-card-animation-duration);
|
|
16034
|
+
animation-timing-function: var(--preview-card-animation-ease);
|
|
16035
|
+
will-change: transform, opacity;
|
|
16036
|
+
|
|
16037
|
+
&[data-state='open'] {
|
|
16038
|
+
animation-name: ${previewCardOpen};
|
|
16039
|
+
}
|
|
16040
|
+
|
|
16041
|
+
&[data-state='closed'] {
|
|
16042
|
+
animation-name: ${previewCardClose};
|
|
16043
|
+
}
|
|
16044
|
+
|
|
16045
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16046
|
+
${({ $unstyled, $paddingSize }) => !$unstyled && css38`
|
|
16047
|
+
border-radius: var(--wui-border-radius-02);
|
|
16048
|
+
padding: var(--wui-${$paddingSize});
|
|
16049
|
+
max-width: var(--wui-preview-card-max-width, 320px);
|
|
16050
|
+
max-height: var(--wui-preview-card-max-height, auto);
|
|
16051
|
+
background-color: var(--wui-color-bg-surface);
|
|
16052
|
+
box-shadow: var(--wui-elevation-01);
|
|
16053
|
+
border: 1px solid var(--wui-color-border);
|
|
16054
|
+
overflow: auto;
|
|
16055
|
+
`}
|
|
16056
|
+
`;
|
|
16057
|
+
var PreviewCard = ({
|
|
16058
|
+
children,
|
|
16059
|
+
trigger,
|
|
16060
|
+
maxWidth = "320px",
|
|
16061
|
+
maxHeight = "auto",
|
|
16062
|
+
unstyled = false,
|
|
16063
|
+
paddingSize = "space-04",
|
|
16064
|
+
openDelay = 700,
|
|
16065
|
+
closeDelay = 300,
|
|
16066
|
+
colorScheme = "inherit",
|
|
16067
|
+
forceOpen,
|
|
16068
|
+
...props
|
|
16069
|
+
}) => {
|
|
16070
|
+
const style = {
|
|
16071
|
+
"--wui-preview-card-max-width": maxWidth,
|
|
16072
|
+
"--wui-preview-card-max-height": maxHeight
|
|
16073
|
+
};
|
|
16074
|
+
const rootProps = {};
|
|
16075
|
+
if (forceOpen === true) {
|
|
16076
|
+
rootProps.open = true;
|
|
16077
|
+
}
|
|
16078
|
+
return /* @__PURE__ */ jsxs49(
|
|
16079
|
+
Root2,
|
|
16080
|
+
{
|
|
16081
|
+
closeDelay,
|
|
16082
|
+
openDelay,
|
|
16083
|
+
...rootProps,
|
|
16084
|
+
children: [
|
|
16085
|
+
/* @__PURE__ */ jsx313(Trigger2, { asChild: true, children: trigger }),
|
|
16086
|
+
/* @__PURE__ */ jsx313(Portal, { children: /* @__PURE__ */ jsx313(
|
|
16087
|
+
StyledContent2,
|
|
16088
|
+
{
|
|
16089
|
+
$colorScheme: colorScheme,
|
|
16090
|
+
$paddingSize: paddingSize,
|
|
16091
|
+
sideOffset: 8,
|
|
16092
|
+
...props,
|
|
16093
|
+
$unstyled: unstyled,
|
|
16094
|
+
style,
|
|
16095
|
+
children: /* @__PURE__ */ jsx313("div", { children })
|
|
16096
|
+
}
|
|
16097
|
+
) })
|
|
16098
|
+
]
|
|
16099
|
+
}
|
|
16100
|
+
);
|
|
16101
|
+
};
|
|
16102
|
+
PreviewCard.displayName = "PreviewCard_UI";
|
|
16103
|
+
|
|
16003
16104
|
// src/components/InputClickToCopy/InputClickToCopy.tsx
|
|
16004
|
-
import { styled as
|
|
16105
|
+
import { styled as styled74 } from "styled-components";
|
|
16005
16106
|
import { forwardRef as forwardRef23, useEffect as useEffect19, useState as useState22 } from "react";
|
|
16006
16107
|
import { isFunction as isFunction3 } from "@wistia/type-guards";
|
|
16007
|
-
import { jsx as
|
|
16008
|
-
var StyledIconButton =
|
|
16108
|
+
import { jsx as jsx314 } from "react/jsx-runtime";
|
|
16109
|
+
var StyledIconButton = styled74(IconButton)`
|
|
16009
16110
|
/* override size for icon button since prop gets changed by Input */
|
|
16010
16111
|
height: var(--icon-button-size-sm);
|
|
16011
16112
|
width: var(--icon-button-size-sm);
|
|
@@ -16044,7 +16145,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
16044
16145
|
return value;
|
|
16045
16146
|
});
|
|
16046
16147
|
};
|
|
16047
|
-
return /* @__PURE__ */
|
|
16148
|
+
return /* @__PURE__ */ jsx314(
|
|
16048
16149
|
Input,
|
|
16049
16150
|
{
|
|
16050
16151
|
"aria-label": "Click to Copy",
|
|
@@ -16052,7 +16153,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
16052
16153
|
ref,
|
|
16053
16154
|
disabled,
|
|
16054
16155
|
readOnly: true,
|
|
16055
|
-
rightIcon: /* @__PURE__ */
|
|
16156
|
+
rightIcon: /* @__PURE__ */ jsx314(
|
|
16056
16157
|
StyledIconButton,
|
|
16057
16158
|
{
|
|
16058
16159
|
colorScheme: isCopied ? "success" : "inherit",
|
|
@@ -16060,7 +16161,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
16060
16161
|
label: "Copy to clipboard",
|
|
16061
16162
|
onClick: handleClick,
|
|
16062
16163
|
variant: "ghost",
|
|
16063
|
-
children: isCopied ? /* @__PURE__ */
|
|
16164
|
+
children: isCopied ? /* @__PURE__ */ jsx314(Icon, { type: "checkmark-circle" }) : /* @__PURE__ */ jsx314(Icon, { type: "save-as-copy" })
|
|
16064
16165
|
}
|
|
16065
16166
|
),
|
|
16066
16167
|
value
|
|
@@ -16071,11 +16172,11 @@ var InputClickToCopy = forwardRef23(
|
|
|
16071
16172
|
InputClickToCopy.displayName = "InputClickToCopy_UI";
|
|
16072
16173
|
|
|
16073
16174
|
// src/components/InputPassword/InputPassword.tsx
|
|
16074
|
-
import { styled as
|
|
16175
|
+
import { styled as styled75 } from "styled-components";
|
|
16075
16176
|
import { forwardRef as forwardRef24, useState as useState23 } from "react";
|
|
16076
16177
|
import { isFunction as isFunction4 } from "@wistia/type-guards";
|
|
16077
|
-
import { jsx as
|
|
16078
|
-
var StyledIconButton2 =
|
|
16178
|
+
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
16179
|
+
var StyledIconButton2 = styled75(IconButton)`
|
|
16079
16180
|
/* override size for icon button since prop gets changed by Input */
|
|
16080
16181
|
height: var(--icon-button-size-sm);
|
|
16081
16182
|
width: var(--icon-button-size-sm);
|
|
@@ -16093,13 +16194,13 @@ var InputPassword = forwardRef24(
|
|
|
16093
16194
|
onVisibilityToggle(newVisibility);
|
|
16094
16195
|
}
|
|
16095
16196
|
};
|
|
16096
|
-
return /* @__PURE__ */
|
|
16197
|
+
return /* @__PURE__ */ jsx315(
|
|
16097
16198
|
Input,
|
|
16098
16199
|
{
|
|
16099
16200
|
...props,
|
|
16100
16201
|
ref,
|
|
16101
16202
|
disabled,
|
|
16102
|
-
rightIcon: /* @__PURE__ */
|
|
16203
|
+
rightIcon: /* @__PURE__ */ jsx315(
|
|
16103
16204
|
StyledIconButton2,
|
|
16104
16205
|
{
|
|
16105
16206
|
disabled,
|
|
@@ -16107,7 +16208,7 @@ var InputPassword = forwardRef24(
|
|
|
16107
16208
|
onClick: handleClick,
|
|
16108
16209
|
tabIndex: disabled ? -1 : 0,
|
|
16109
16210
|
variant: "ghost",
|
|
16110
|
-
children: /* @__PURE__ */
|
|
16211
|
+
children: /* @__PURE__ */ jsx315(Icon, { type: isVisible ? "preview" : "hide" })
|
|
16111
16212
|
}
|
|
16112
16213
|
),
|
|
16113
16214
|
type: isVisible ? "text" : "password"
|
|
@@ -16118,16 +16219,16 @@ var InputPassword = forwardRef24(
|
|
|
16118
16219
|
InputPassword.displayName = "InputPassword_UI";
|
|
16119
16220
|
|
|
16120
16221
|
// src/components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
16121
|
-
import { styled as
|
|
16222
|
+
import { styled as styled76 } from "styled-components";
|
|
16122
16223
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
16123
|
-
import { jsx as
|
|
16124
|
-
var StyledKeyboardShortcut =
|
|
16224
|
+
import { jsx as jsx316, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
16225
|
+
var StyledKeyboardShortcut = styled76.div`
|
|
16125
16226
|
align-items: center;
|
|
16126
16227
|
display: flex;
|
|
16127
16228
|
gap: var(--wui-space-02);
|
|
16128
16229
|
${({ $fullWidth }) => $fullWidth && "width: 100%; justify-content: space-between;"}
|
|
16129
16230
|
`;
|
|
16130
|
-
var StyledKey =
|
|
16231
|
+
var StyledKey = styled76.kbd`
|
|
16131
16232
|
align-items: center;
|
|
16132
16233
|
background: var(--wui-color-bg-surface-secondary);
|
|
16133
16234
|
border-bottom: 1px solid var(--wui-color-border-secondary);
|
|
@@ -16150,11 +16251,11 @@ var StyledKey = styled75.kbd`
|
|
|
16150
16251
|
min-width: 20px;
|
|
16151
16252
|
padding: 0 var(--wui-space-01);
|
|
16152
16253
|
`;
|
|
16153
|
-
var Label2 =
|
|
16254
|
+
var Label2 = styled76.span`
|
|
16154
16255
|
color: var(--wui-color-text);
|
|
16155
16256
|
font-size: 12px;
|
|
16156
16257
|
`;
|
|
16157
|
-
var KeysContainer =
|
|
16258
|
+
var KeysContainer = styled76.div`
|
|
16158
16259
|
display: flex;
|
|
16159
16260
|
gap: var(--wui-space-01);
|
|
16160
16261
|
`;
|
|
@@ -16207,14 +16308,14 @@ var KeyboardShortcut = ({
|
|
|
16207
16308
|
keyboardKeys,
|
|
16208
16309
|
fullWidth = false,
|
|
16209
16310
|
...otherProps
|
|
16210
|
-
}) => /* @__PURE__ */
|
|
16311
|
+
}) => /* @__PURE__ */ jsxs50(
|
|
16211
16312
|
StyledKeyboardShortcut,
|
|
16212
16313
|
{
|
|
16213
16314
|
$fullWidth: fullWidth,
|
|
16214
16315
|
...otherProps,
|
|
16215
16316
|
children: [
|
|
16216
|
-
isNotNil30(label) && /* @__PURE__ */
|
|
16217
|
-
/* @__PURE__ */
|
|
16317
|
+
isNotNil30(label) && /* @__PURE__ */ jsx316(Label2, { children: label }),
|
|
16318
|
+
/* @__PURE__ */ jsx316(KeysContainer, { children: (Array.isArray(keyboardKeys) ? keyboardKeys : [keyboardKeys]).map((keyboardKey, index) => /* @__PURE__ */ jsx316(
|
|
16218
16319
|
StyledKey,
|
|
16219
16320
|
{
|
|
16220
16321
|
children: keyToString(keyboardKey)
|
|
@@ -16228,26 +16329,26 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
16228
16329
|
|
|
16229
16330
|
// src/components/List/List.tsx
|
|
16230
16331
|
import { isNotNil as isNotNil31 } from "@wistia/type-guards";
|
|
16231
|
-
import { styled as
|
|
16332
|
+
import { styled as styled78, css as css39 } from "styled-components";
|
|
16232
16333
|
|
|
16233
16334
|
// src/components/List/ListItem.tsx
|
|
16234
|
-
import { styled as
|
|
16335
|
+
import { styled as styled77 } from "styled-components";
|
|
16235
16336
|
import { isNil as isNil17 } from "@wistia/type-guards";
|
|
16236
|
-
import { jsx as
|
|
16237
|
-
var ListItemComponent =
|
|
16337
|
+
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
16338
|
+
var ListItemComponent = styled77.li`
|
|
16238
16339
|
margin-bottom: var(--wui-space-02);
|
|
16239
16340
|
`;
|
|
16240
16341
|
var ListItem = ({ children }) => {
|
|
16241
16342
|
if (isNil17(children)) {
|
|
16242
16343
|
return null;
|
|
16243
16344
|
}
|
|
16244
|
-
return /* @__PURE__ */
|
|
16345
|
+
return /* @__PURE__ */ jsx317(ListItemComponent, { children });
|
|
16245
16346
|
};
|
|
16246
16347
|
ListItem.displayName = "ListItem_UI";
|
|
16247
16348
|
|
|
16248
16349
|
// src/components/List/List.tsx
|
|
16249
|
-
import { jsx as
|
|
16250
|
-
var spacesStyle =
|
|
16350
|
+
import { jsx as jsx318, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
16351
|
+
var spacesStyle = css39`
|
|
16251
16352
|
overflow: hidden;
|
|
16252
16353
|
padding-left: 0;
|
|
16253
16354
|
vertical-align: bottom;
|
|
@@ -16269,7 +16370,7 @@ var spacesStyle = css38`
|
|
|
16269
16370
|
}
|
|
16270
16371
|
}
|
|
16271
16372
|
`;
|
|
16272
|
-
var commasStyle =
|
|
16373
|
+
var commasStyle = css39`
|
|
16273
16374
|
${spacesStyle};
|
|
16274
16375
|
|
|
16275
16376
|
li {
|
|
@@ -16279,7 +16380,7 @@ var commasStyle = css38`
|
|
|
16279
16380
|
}
|
|
16280
16381
|
}
|
|
16281
16382
|
`;
|
|
16282
|
-
var slashesStyle =
|
|
16383
|
+
var slashesStyle = css39`
|
|
16283
16384
|
${spacesStyle};
|
|
16284
16385
|
|
|
16285
16386
|
li {
|
|
@@ -16290,7 +16391,7 @@ var slashesStyle = css38`
|
|
|
16290
16391
|
}
|
|
16291
16392
|
}
|
|
16292
16393
|
`;
|
|
16293
|
-
var breadcrumbsStyle =
|
|
16394
|
+
var breadcrumbsStyle = css39`
|
|
16294
16395
|
${spacesStyle};
|
|
16295
16396
|
|
|
16296
16397
|
li {
|
|
@@ -16301,11 +16402,11 @@ var breadcrumbsStyle = css38`
|
|
|
16301
16402
|
}
|
|
16302
16403
|
}
|
|
16303
16404
|
`;
|
|
16304
|
-
var unbulletedStyle =
|
|
16405
|
+
var unbulletedStyle = css39`
|
|
16305
16406
|
list-style: none;
|
|
16306
16407
|
padding-left: 0;
|
|
16307
16408
|
`;
|
|
16308
|
-
var ListComponent =
|
|
16409
|
+
var ListComponent = styled78.ul`
|
|
16309
16410
|
list-style-position: outside;
|
|
16310
16411
|
margin: 0 0 var(--wui-space-01);
|
|
16311
16412
|
padding: 0 0 0 var(--wui-space-04);
|
|
@@ -16332,7 +16433,7 @@ var ListComponent = styled77.ul`
|
|
|
16332
16433
|
`;
|
|
16333
16434
|
var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
16334
16435
|
const elementType = variant === "ordered" ? "ol" : "ul";
|
|
16335
|
-
return /* @__PURE__ */
|
|
16436
|
+
return /* @__PURE__ */ jsx318(
|
|
16336
16437
|
ListComponent,
|
|
16337
16438
|
{
|
|
16338
16439
|
as: elementType,
|
|
@@ -16349,7 +16450,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
16349
16450
|
const nextItem = listItems[i + 1];
|
|
16350
16451
|
const key = `item-${itemCount += 1}`;
|
|
16351
16452
|
if (Array.isArray(nextItem)) {
|
|
16352
|
-
return /* @__PURE__ */
|
|
16453
|
+
return /* @__PURE__ */ jsxs51(ListItem, { children: [
|
|
16353
16454
|
item,
|
|
16354
16455
|
renderListFromArray(nextItem, variant, otherProps)
|
|
16355
16456
|
] }, key);
|
|
@@ -16357,7 +16458,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
16357
16458
|
if (Array.isArray(item)) {
|
|
16358
16459
|
return null;
|
|
16359
16460
|
}
|
|
16360
|
-
return /* @__PURE__ */
|
|
16461
|
+
return /* @__PURE__ */ jsx318(ListItem, { children: item }, key);
|
|
16361
16462
|
});
|
|
16362
16463
|
return renderListComponent(items, variant, otherProps);
|
|
16363
16464
|
};
|
|
@@ -16385,9 +16486,9 @@ var List = ({
|
|
|
16385
16486
|
List.displayName = "List_UI";
|
|
16386
16487
|
|
|
16387
16488
|
// src/components/Mark/Mark.tsx
|
|
16388
|
-
import { styled as
|
|
16389
|
-
import { jsx as
|
|
16390
|
-
var StyledMark =
|
|
16489
|
+
import { styled as styled79 } from "styled-components";
|
|
16490
|
+
import { jsx as jsx319 } from "react/jsx-runtime";
|
|
16491
|
+
var StyledMark = styled79.mark`
|
|
16391
16492
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16392
16493
|
background-color: var(--wui-color-bg-surface-tertiary);
|
|
16393
16494
|
color: var(--wui-color-text);
|
|
@@ -16395,7 +16496,7 @@ var StyledMark = styled78.mark`
|
|
|
16395
16496
|
padding-inline: 0.1em;
|
|
16396
16497
|
margin-inline: -0.1em;
|
|
16397
16498
|
`;
|
|
16398
|
-
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */
|
|
16499
|
+
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */ jsx319(
|
|
16399
16500
|
StyledMark,
|
|
16400
16501
|
{
|
|
16401
16502
|
$colorScheme: colorScheme,
|
|
@@ -16406,16 +16507,16 @@ var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */
|
|
|
16406
16507
|
Mark.displayName = "Mark_UI";
|
|
16407
16508
|
|
|
16408
16509
|
// src/components/Markdown/Markdown.tsx
|
|
16409
|
-
import { styled as
|
|
16510
|
+
import { styled as styled80 } from "styled-components";
|
|
16410
16511
|
import ReactMarkdown from "react-markdown";
|
|
16411
16512
|
|
|
16412
16513
|
// src/css/baseMarkdownCss.tsx
|
|
16413
|
-
import { css as
|
|
16514
|
+
import { css as css40 } from "styled-components";
|
|
16414
16515
|
var textSizeToTokenMap = {
|
|
16415
16516
|
body2: "--wui-typography-body-2-size",
|
|
16416
16517
|
body3: "--wui-typography-body-3-size"
|
|
16417
16518
|
};
|
|
16418
|
-
var baseMarkdownCss = (textSize = "body2") =>
|
|
16519
|
+
var baseMarkdownCss = (textSize = "body2") => css40`
|
|
16419
16520
|
--wui-markdown-base-unit: var(${textSizeToTokenMap[textSize]});
|
|
16420
16521
|
|
|
16421
16522
|
font-size: var(--wui-markdown-base-unit);
|
|
@@ -16534,8 +16635,8 @@ var baseMarkdownCss = (textSize = "body2") => css39`
|
|
|
16534
16635
|
`;
|
|
16535
16636
|
|
|
16536
16637
|
// src/components/Markdown/Markdown.tsx
|
|
16537
|
-
import { jsx as
|
|
16538
|
-
var StyledMarkdownWrapper =
|
|
16638
|
+
import { jsx as jsx320 } from "react/jsx-runtime";
|
|
16639
|
+
var StyledMarkdownWrapper = styled80.div`
|
|
16539
16640
|
${({ $textSize }) => baseMarkdownCss($textSize)}
|
|
16540
16641
|
`;
|
|
16541
16642
|
var Markdown = ({
|
|
@@ -16544,47 +16645,47 @@ var Markdown = ({
|
|
|
16544
16645
|
...otherProps
|
|
16545
16646
|
}) => {
|
|
16546
16647
|
const responsiveTextSize = useResponsiveProp(textSize);
|
|
16547
|
-
return /* @__PURE__ */
|
|
16648
|
+
return /* @__PURE__ */ jsx320(
|
|
16548
16649
|
StyledMarkdownWrapper,
|
|
16549
16650
|
{
|
|
16550
16651
|
$textSize: responsiveTextSize,
|
|
16551
16652
|
...otherProps,
|
|
16552
|
-
children: /* @__PURE__ */
|
|
16653
|
+
children: /* @__PURE__ */ jsx320(ReactMarkdown, { children })
|
|
16553
16654
|
}
|
|
16554
16655
|
);
|
|
16555
16656
|
};
|
|
16556
16657
|
Markdown.displayName = "Markdown_UI";
|
|
16557
16658
|
|
|
16558
16659
|
// src/components/Meter/Meter.tsx
|
|
16559
|
-
import { styled as
|
|
16660
|
+
import { styled as styled81 } from "styled-components";
|
|
16560
16661
|
import { useId as useId5 } from "react";
|
|
16561
16662
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
16562
|
-
import { jsx as
|
|
16563
|
-
var MeterWrapper =
|
|
16663
|
+
import { jsx as jsx321, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
16664
|
+
var MeterWrapper = styled81.div`
|
|
16564
16665
|
--meter-height: 16px;
|
|
16565
16666
|
|
|
16566
16667
|
display: flex;
|
|
16567
16668
|
flex-direction: column;
|
|
16568
16669
|
gap: var(--wui-space-02);
|
|
16569
16670
|
`;
|
|
16570
|
-
var MeterLabelContainer =
|
|
16671
|
+
var MeterLabelContainer = styled81.div`
|
|
16571
16672
|
display: flex;
|
|
16572
16673
|
justify-content: space-between;
|
|
16573
16674
|
align-items: baseline;
|
|
16574
16675
|
`;
|
|
16575
|
-
var MeterLabel =
|
|
16676
|
+
var MeterLabel = styled81.div`
|
|
16576
16677
|
font-family: var(--wui-typography-heading-5-family);
|
|
16577
16678
|
line-height: var(--wui-typography-heading-5-line-height);
|
|
16578
16679
|
font-size: var(--wui-typography-heading-5-size);
|
|
16579
16680
|
font-weight: var(--wui-typography-heading-5-weight);
|
|
16580
16681
|
`;
|
|
16581
|
-
var MeterLabelMeta =
|
|
16682
|
+
var MeterLabelMeta = styled81.div`
|
|
16582
16683
|
font-family: var(--wui-typography-heading-5-family);
|
|
16583
16684
|
line-height: var(--wui-typography-heading-5-line-height);
|
|
16584
16685
|
font-size: var(--wui-typography-heading-5-size);
|
|
16585
16686
|
font-weight: var(--wui-typography-heading-5-weight);
|
|
16586
16687
|
`;
|
|
16587
|
-
var MeterBarContainer =
|
|
16688
|
+
var MeterBarContainer = styled81.div`
|
|
16588
16689
|
position: relative;
|
|
16589
16690
|
overflow: hidden;
|
|
16590
16691
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -16593,7 +16694,7 @@ var MeterBarContainer = styled80.div`
|
|
|
16593
16694
|
height: var(--meter-height);
|
|
16594
16695
|
transform: translateZ(0);
|
|
16595
16696
|
`;
|
|
16596
|
-
var MeterSegmentBar =
|
|
16697
|
+
var MeterSegmentBar = styled81.div`
|
|
16597
16698
|
position: absolute;
|
|
16598
16699
|
top: 0;
|
|
16599
16700
|
left: ${({ $offset }) => $offset}%;
|
|
@@ -16611,30 +16712,30 @@ var MeterSegmentBar = styled80.div`
|
|
|
16611
16712
|
border-bottom-right-radius: var(--wui-border-radius-rounded);
|
|
16612
16713
|
}
|
|
16613
16714
|
`;
|
|
16614
|
-
var MeterDescription =
|
|
16715
|
+
var MeterDescription = styled81.div`
|
|
16615
16716
|
line-height: var(--wui-typography-label-3-line-height);
|
|
16616
16717
|
font-size: var(--wui-typography-label-3-size);
|
|
16617
16718
|
font-weight: var(--wui-typography-label-3-weight);
|
|
16618
16719
|
color: var(--wui-color-text-secondary);
|
|
16619
16720
|
`;
|
|
16620
|
-
var MeterKey =
|
|
16721
|
+
var MeterKey = styled81.div`
|
|
16621
16722
|
display: flex;
|
|
16622
16723
|
flex-wrap: wrap;
|
|
16623
16724
|
gap: var(--wui-space-03);
|
|
16624
16725
|
`;
|
|
16625
|
-
var MeterKeyItem =
|
|
16726
|
+
var MeterKeyItem = styled81.div`
|
|
16626
16727
|
display: flex;
|
|
16627
16728
|
align-items: center;
|
|
16628
16729
|
gap: var(--wui-space-01);
|
|
16629
16730
|
`;
|
|
16630
|
-
var MeterKeyColorIndicator =
|
|
16731
|
+
var MeterKeyColorIndicator = styled81.div`
|
|
16631
16732
|
width: 8px;
|
|
16632
16733
|
height: 8px;
|
|
16633
16734
|
border-radius: 50%;
|
|
16634
16735
|
background-color: ${({ $color }) => `var(--wui-${$color})`};
|
|
16635
16736
|
flex-shrink: 0;
|
|
16636
16737
|
`;
|
|
16637
|
-
var MeterKeyLabel =
|
|
16738
|
+
var MeterKeyLabel = styled81.span`
|
|
16638
16739
|
line-height: var(--wui-typography-label-3-line-height);
|
|
16639
16740
|
font-size: var(--wui-typography-label-3-size);
|
|
16640
16741
|
font-weight: var(--wui-typography-label-3-weight);
|
|
@@ -16689,19 +16790,19 @@ var Meter = ({
|
|
|
16689
16790
|
return segmentDescriptions ? `${segmentDescriptions}. ${totalDescription}` : totalDescription;
|
|
16690
16791
|
};
|
|
16691
16792
|
const effectiveAriaLabel = ariaLabel ?? (isNotNil32(label) ? nodeToString(label) : "Data meter");
|
|
16692
|
-
return /* @__PURE__ */
|
|
16693
|
-
/* @__PURE__ */
|
|
16793
|
+
return /* @__PURE__ */ jsxs52(MeterWrapper, { ...props, children: [
|
|
16794
|
+
/* @__PURE__ */ jsx321(
|
|
16694
16795
|
ScreenReaderOnly,
|
|
16695
16796
|
{
|
|
16696
16797
|
id: descriptionId,
|
|
16697
16798
|
text: generateAriaDescription()
|
|
16698
16799
|
}
|
|
16699
16800
|
),
|
|
16700
|
-
isNotNil32(label) || isNotNil32(labelMeta) ? /* @__PURE__ */
|
|
16701
|
-
isNotNil32(label) ? /* @__PURE__ */
|
|
16702
|
-
isNotNil32(labelMeta) ? /* @__PURE__ */
|
|
16801
|
+
isNotNil32(label) || isNotNil32(labelMeta) ? /* @__PURE__ */ jsxs52(MeterLabelContainer, { id: labelId, children: [
|
|
16802
|
+
isNotNil32(label) ? /* @__PURE__ */ jsx321(MeterLabel, { children: label }) : null,
|
|
16803
|
+
isNotNil32(labelMeta) ? /* @__PURE__ */ jsx321(MeterLabelMeta, { children: labelMeta }) : null
|
|
16703
16804
|
] }) : null,
|
|
16704
|
-
/* @__PURE__ */
|
|
16805
|
+
/* @__PURE__ */ jsx321(
|
|
16705
16806
|
MeterBarContainer,
|
|
16706
16807
|
{
|
|
16707
16808
|
"aria-describedby": descriptionId,
|
|
@@ -16711,7 +16812,7 @@ var Meter = ({
|
|
|
16711
16812
|
"aria-valuemin": 0,
|
|
16712
16813
|
"aria-valuenow": totalValue,
|
|
16713
16814
|
role: "meter",
|
|
16714
|
-
children: segmentsWithOffsets.map((segment) => /* @__PURE__ */
|
|
16815
|
+
children: segmentsWithOffsets.map((segment) => /* @__PURE__ */ jsx321(
|
|
16715
16816
|
MeterSegmentBar,
|
|
16716
16817
|
{
|
|
16717
16818
|
$color: segment.color,
|
|
@@ -16723,25 +16824,25 @@ var Meter = ({
|
|
|
16723
16824
|
))
|
|
16724
16825
|
}
|
|
16725
16826
|
),
|
|
16726
|
-
isNotNil32(description) ? /* @__PURE__ */
|
|
16727
|
-
!hideKey && keySegments.length > 0 ? /* @__PURE__ */
|
|
16827
|
+
isNotNil32(description) ? /* @__PURE__ */ jsx321(MeterDescription, { children: description }) : null,
|
|
16828
|
+
!hideKey && keySegments.length > 0 ? /* @__PURE__ */ jsx321(
|
|
16728
16829
|
MeterKey,
|
|
16729
16830
|
{
|
|
16730
16831
|
"aria-label": "Meter legend",
|
|
16731
16832
|
role: "list",
|
|
16732
|
-
children: keySegments.map((segment) => /* @__PURE__ */
|
|
16833
|
+
children: keySegments.map((segment) => /* @__PURE__ */ jsxs52(
|
|
16733
16834
|
MeterKeyItem,
|
|
16734
16835
|
{
|
|
16735
16836
|
role: "listitem",
|
|
16736
16837
|
children: [
|
|
16737
|
-
/* @__PURE__ */
|
|
16838
|
+
/* @__PURE__ */ jsx321(
|
|
16738
16839
|
MeterKeyColorIndicator,
|
|
16739
16840
|
{
|
|
16740
16841
|
$color: segment.color,
|
|
16741
16842
|
"aria-hidden": "true"
|
|
16742
16843
|
}
|
|
16743
16844
|
),
|
|
16744
|
-
/* @__PURE__ */
|
|
16845
|
+
/* @__PURE__ */ jsx321(MeterKeyLabel, { children: segment.label })
|
|
16745
16846
|
]
|
|
16746
16847
|
},
|
|
16747
16848
|
`${segment.color}-${segment.value}-${segment.offset}-${nodeToString(segment.label)}`
|
|
@@ -16754,7 +16855,7 @@ Meter.displayName = "Meter_UI";
|
|
|
16754
16855
|
|
|
16755
16856
|
// src/components/Modal/Modal.tsx
|
|
16756
16857
|
import { forwardRef as forwardRef26 } from "react";
|
|
16757
|
-
import { styled as
|
|
16858
|
+
import { styled as styled86 } from "styled-components";
|
|
16758
16859
|
import {
|
|
16759
16860
|
Root as DialogRoot,
|
|
16760
16861
|
Portal as DialogPortal,
|
|
@@ -16763,31 +16864,31 @@ import {
|
|
|
16763
16864
|
import { isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
16764
16865
|
|
|
16765
16866
|
// src/components/Modal/ModalHeader.tsx
|
|
16766
|
-
import { styled as
|
|
16867
|
+
import { styled as styled83 } from "styled-components";
|
|
16767
16868
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
16768
16869
|
|
|
16769
16870
|
// src/components/Modal/ModalCloseButton.tsx
|
|
16770
|
-
import { styled as
|
|
16871
|
+
import { styled as styled82 } from "styled-components";
|
|
16771
16872
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
16772
|
-
import { jsx as
|
|
16773
|
-
var CloseButton =
|
|
16873
|
+
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
16874
|
+
var CloseButton = styled82(DialogClose)`
|
|
16774
16875
|
align-self: start;
|
|
16775
16876
|
`;
|
|
16776
16877
|
var ModalCloseButton = () => {
|
|
16777
|
-
return /* @__PURE__ */
|
|
16878
|
+
return /* @__PURE__ */ jsx322(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx322(
|
|
16778
16879
|
IconButton,
|
|
16779
16880
|
{
|
|
16780
16881
|
label: "Dismiss modal",
|
|
16781
16882
|
size: "sm",
|
|
16782
16883
|
variant: "ghost",
|
|
16783
|
-
children: /* @__PURE__ */
|
|
16884
|
+
children: /* @__PURE__ */ jsx322(Icon, { type: "close" })
|
|
16784
16885
|
}
|
|
16785
16886
|
) });
|
|
16786
16887
|
};
|
|
16787
16888
|
|
|
16788
16889
|
// src/components/Modal/ModalHeader.tsx
|
|
16789
|
-
import { jsx as
|
|
16790
|
-
var Header =
|
|
16890
|
+
import { jsx as jsx323, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16891
|
+
var Header = styled83.header`
|
|
16791
16892
|
display: flex;
|
|
16792
16893
|
order: 1;
|
|
16793
16894
|
padding: 0 var(--wui-space-05);
|
|
@@ -16807,7 +16908,7 @@ var Header = styled82.header`
|
|
|
16807
16908
|
top: var(--wui-space-03);
|
|
16808
16909
|
}
|
|
16809
16910
|
`;
|
|
16810
|
-
var Title =
|
|
16911
|
+
var Title = styled83(DialogTitle)`
|
|
16811
16912
|
font-family: var(--wui-typography-heading-2-family);
|
|
16812
16913
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
16813
16914
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -16818,15 +16919,15 @@ var ModalHeader = ({
|
|
|
16818
16919
|
hideTitle,
|
|
16819
16920
|
hideCloseButton
|
|
16820
16921
|
}) => {
|
|
16821
|
-
const TitleComponent = hideTitle ? /* @__PURE__ */
|
|
16822
|
-
return /* @__PURE__ */
|
|
16922
|
+
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx323(ScreenReaderOnly, { children: /* @__PURE__ */ jsx323(Title, { children: title }) }) : /* @__PURE__ */ jsx323(Title, { children: title });
|
|
16923
|
+
return /* @__PURE__ */ jsxs53(
|
|
16823
16924
|
Header,
|
|
16824
16925
|
{
|
|
16825
16926
|
$hideCloseButon: hideCloseButton,
|
|
16826
16927
|
$hideTitle: hideTitle,
|
|
16827
16928
|
children: [
|
|
16828
16929
|
TitleComponent,
|
|
16829
|
-
hideCloseButton ? null : /* @__PURE__ */
|
|
16930
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx323(ModalCloseButton, {})
|
|
16830
16931
|
]
|
|
16831
16932
|
}
|
|
16832
16933
|
);
|
|
@@ -16834,7 +16935,7 @@ var ModalHeader = ({
|
|
|
16834
16935
|
|
|
16835
16936
|
// src/components/Modal/ModalContent.tsx
|
|
16836
16937
|
import { forwardRef as forwardRef25 } from "react";
|
|
16837
|
-
import { styled as
|
|
16938
|
+
import { styled as styled84, css as css41, keyframes as keyframes6 } from "styled-components";
|
|
16838
16939
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
16839
16940
|
|
|
16840
16941
|
// src/components/Modal/constants.ts
|
|
@@ -16860,8 +16961,8 @@ var useFocusRestore = () => {
|
|
|
16860
16961
|
};
|
|
16861
16962
|
|
|
16862
16963
|
// src/components/Modal/ModalContent.tsx
|
|
16863
|
-
import { jsx as
|
|
16864
|
-
var modalEnter =
|
|
16964
|
+
import { jsx as jsx324 } from "react/jsx-runtime";
|
|
16965
|
+
var modalEnter = keyframes6`
|
|
16865
16966
|
from {
|
|
16866
16967
|
opacity: 0;
|
|
16867
16968
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
@@ -16872,7 +16973,7 @@ var modalEnter = keyframes5`
|
|
|
16872
16973
|
transform: translateX(-50%) translateY(var(--wui-modal-translate-y));
|
|
16873
16974
|
}
|
|
16874
16975
|
`;
|
|
16875
|
-
var modalExit =
|
|
16976
|
+
var modalExit = keyframes6`
|
|
16876
16977
|
from {
|
|
16877
16978
|
opacity: 1;
|
|
16878
16979
|
transform: translateX(-50%) translateY(var(--wui-modal-translate-y));
|
|
@@ -16883,7 +16984,7 @@ var modalExit = keyframes5`
|
|
|
16883
16984
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
16884
16985
|
}
|
|
16885
16986
|
`;
|
|
16886
|
-
var centeredModalStyles =
|
|
16987
|
+
var centeredModalStyles = css41`
|
|
16887
16988
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
16888
16989
|
--wui-modal-translate-y: -50%;
|
|
16889
16990
|
|
|
@@ -16899,7 +17000,7 @@ var centeredModalStyles = css40`
|
|
|
16899
17000
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
16900
17001
|
}
|
|
16901
17002
|
`;
|
|
16902
|
-
var fixedTopModalStyles =
|
|
17003
|
+
var fixedTopModalStyles = css41`
|
|
16903
17004
|
--wui-modal-screen-offset-top: 15vh;
|
|
16904
17005
|
--wui-modal-screen-offset-bottom: 5vh;
|
|
16905
17006
|
--wui-modal-translate-y: 0%;
|
|
@@ -16918,7 +17019,7 @@ var fixedTopModalStyles = css40`
|
|
|
16918
17019
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
16919
17020
|
}
|
|
16920
17021
|
`;
|
|
16921
|
-
var slideInRight =
|
|
17022
|
+
var slideInRight = keyframes6`
|
|
16922
17023
|
from {
|
|
16923
17024
|
opacity: 0;
|
|
16924
17025
|
transform: translateX(100%);
|
|
@@ -16929,7 +17030,7 @@ var slideInRight = keyframes5`
|
|
|
16929
17030
|
transform: translateX(0);
|
|
16930
17031
|
}
|
|
16931
17032
|
`;
|
|
16932
|
-
var slideOutRight =
|
|
17033
|
+
var slideOutRight = keyframes6`
|
|
16933
17034
|
from {
|
|
16934
17035
|
opacity: 1;
|
|
16935
17036
|
transform: translateX(0);
|
|
@@ -16940,7 +17041,7 @@ var slideOutRight = keyframes5`
|
|
|
16940
17041
|
transform: translateX(100%);
|
|
16941
17042
|
}
|
|
16942
17043
|
`;
|
|
16943
|
-
var rightSidePanelModalStyles =
|
|
17044
|
+
var rightSidePanelModalStyles = css41`
|
|
16944
17045
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
16945
17046
|
|
|
16946
17047
|
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
@@ -16958,7 +17059,7 @@ var positionStyleMap = {
|
|
|
16958
17059
|
"fixed-top": fixedTopModalStyles,
|
|
16959
17060
|
"right-side-panel": rightSidePanelModalStyles
|
|
16960
17061
|
};
|
|
16961
|
-
var StyledModalContent =
|
|
17062
|
+
var StyledModalContent = styled84(DialogContent)`
|
|
16962
17063
|
position: fixed;
|
|
16963
17064
|
display: flex;
|
|
16964
17065
|
flex-direction: column;
|
|
@@ -16988,7 +17089,7 @@ var StyledModalContent = styled83(DialogContent)`
|
|
|
16988
17089
|
var ModalContent = forwardRef25(
|
|
16989
17090
|
({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
|
|
16990
17091
|
useFocusRestore();
|
|
16991
|
-
return /* @__PURE__ */
|
|
17092
|
+
return /* @__PURE__ */ jsx324(
|
|
16992
17093
|
StyledModalContent,
|
|
16993
17094
|
{
|
|
16994
17095
|
ref,
|
|
@@ -17003,8 +17104,8 @@ var ModalContent = forwardRef25(
|
|
|
17003
17104
|
|
|
17004
17105
|
// src/components/Modal/ModalOverlay.tsx
|
|
17005
17106
|
import { DialogOverlay } from "@radix-ui/react-dialog";
|
|
17006
|
-
import { styled as
|
|
17007
|
-
var backdropShow =
|
|
17107
|
+
import { styled as styled85, keyframes as keyframes7 } from "styled-components";
|
|
17108
|
+
var backdropShow = keyframes7`
|
|
17008
17109
|
from {
|
|
17009
17110
|
opacity: 0;
|
|
17010
17111
|
}
|
|
@@ -17013,7 +17114,7 @@ var backdropShow = keyframes6`
|
|
|
17013
17114
|
opacity: 1;
|
|
17014
17115
|
}
|
|
17015
17116
|
`;
|
|
17016
|
-
var backdropHide =
|
|
17117
|
+
var backdropHide = keyframes7`
|
|
17017
17118
|
from {
|
|
17018
17119
|
opacity: 1;
|
|
17019
17120
|
}
|
|
@@ -17022,7 +17123,7 @@ var backdropHide = keyframes6`
|
|
|
17022
17123
|
opacity: 0;
|
|
17023
17124
|
}
|
|
17024
17125
|
`;
|
|
17025
|
-
var ModalOverlay =
|
|
17126
|
+
var ModalOverlay = styled85(DialogOverlay)`
|
|
17026
17127
|
animation: ${backdropShow} var(--wui-motion-duration-02);
|
|
17027
17128
|
background: var(--wui-color-backdrop);
|
|
17028
17129
|
inset: 0;
|
|
@@ -17035,20 +17136,20 @@ var ModalOverlay = styled84(DialogOverlay)`
|
|
|
17035
17136
|
`;
|
|
17036
17137
|
|
|
17037
17138
|
// src/components/Modal/Modal.tsx
|
|
17038
|
-
import { jsx as
|
|
17039
|
-
var ModalHiddenDescription =
|
|
17040
|
-
var ModalBody =
|
|
17139
|
+
import { jsx as jsx325, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
17140
|
+
var ModalHiddenDescription = styled86(DialogDescription)({ ...visuallyHiddenStyle });
|
|
17141
|
+
var ModalBody = styled86.div`
|
|
17041
17142
|
flex-direction: column;
|
|
17042
17143
|
display: flex;
|
|
17043
17144
|
flex: 1 0 0;
|
|
17044
17145
|
padding: 0 var(--wui-space-05);
|
|
17045
17146
|
`;
|
|
17046
|
-
var ModalScrollArea =
|
|
17147
|
+
var ModalScrollArea = styled86.div`
|
|
17047
17148
|
order: 2;
|
|
17048
17149
|
max-height: 90vh;
|
|
17049
17150
|
overflow-y: auto;
|
|
17050
17151
|
`;
|
|
17051
|
-
var ModalFooter =
|
|
17152
|
+
var ModalFooter = styled86.footer`
|
|
17052
17153
|
padding: 0 var(--wui-space-05);
|
|
17053
17154
|
order: 3;
|
|
17054
17155
|
`;
|
|
@@ -17066,7 +17167,7 @@ var Modal = forwardRef26(
|
|
|
17066
17167
|
width = DEFAULT_MODAL_WIDTH,
|
|
17067
17168
|
...props
|
|
17068
17169
|
}, ref) => {
|
|
17069
|
-
return /* @__PURE__ */
|
|
17170
|
+
return /* @__PURE__ */ jsx325(
|
|
17070
17171
|
DialogRoot,
|
|
17071
17172
|
{
|
|
17072
17173
|
onOpenChange: (open2) => {
|
|
@@ -17075,9 +17176,9 @@ var Modal = forwardRef26(
|
|
|
17075
17176
|
}
|
|
17076
17177
|
},
|
|
17077
17178
|
open: isOpen,
|
|
17078
|
-
children: /* @__PURE__ */
|
|
17079
|
-
/* @__PURE__ */
|
|
17080
|
-
/* @__PURE__ */
|
|
17179
|
+
children: /* @__PURE__ */ jsxs54(DialogPortal, { children: [
|
|
17180
|
+
/* @__PURE__ */ jsx325(ModalOverlay, {}),
|
|
17181
|
+
/* @__PURE__ */ jsxs54(
|
|
17081
17182
|
ModalContent,
|
|
17082
17183
|
{
|
|
17083
17184
|
ref,
|
|
@@ -17093,9 +17194,9 @@ var Modal = forwardRef26(
|
|
|
17093
17194
|
width,
|
|
17094
17195
|
...props,
|
|
17095
17196
|
children: [
|
|
17096
|
-
/* @__PURE__ */
|
|
17097
|
-
isNotNil34(footer) ? /* @__PURE__ */
|
|
17098
|
-
hideCloseButton && hideTitle ? null : /* @__PURE__ */
|
|
17197
|
+
/* @__PURE__ */ jsx325(ModalScrollArea, { children: /* @__PURE__ */ jsx325(ModalBody, { children }) }),
|
|
17198
|
+
isNotNil34(footer) ? /* @__PURE__ */ jsx325(ModalFooter, { children: footer }) : null,
|
|
17199
|
+
hideCloseButton && hideTitle ? null : /* @__PURE__ */ jsx325(
|
|
17099
17200
|
ModalHeader,
|
|
17100
17201
|
{
|
|
17101
17202
|
hideCloseButton,
|
|
@@ -17103,7 +17204,7 @@ var Modal = forwardRef26(
|
|
|
17103
17204
|
title
|
|
17104
17205
|
}
|
|
17105
17206
|
),
|
|
17106
|
-
/* @__PURE__ */
|
|
17207
|
+
/* @__PURE__ */ jsx325(ModalHiddenDescription, {})
|
|
17107
17208
|
]
|
|
17108
17209
|
}
|
|
17109
17210
|
)
|
|
@@ -17115,9 +17216,9 @@ var Modal = forwardRef26(
|
|
|
17115
17216
|
Modal.displayName = "Modal_UI";
|
|
17116
17217
|
|
|
17117
17218
|
// src/components/Modal/ModalCallouts.tsx
|
|
17118
|
-
import { jsx as
|
|
17219
|
+
import { jsx as jsx326, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
17119
17220
|
var ModalCallouts = ({ children }) => {
|
|
17120
|
-
return /* @__PURE__ */
|
|
17221
|
+
return /* @__PURE__ */ jsx326(
|
|
17121
17222
|
Stack,
|
|
17122
17223
|
{
|
|
17123
17224
|
direction: "horizontal",
|
|
@@ -17128,17 +17229,17 @@ var ModalCallouts = ({ children }) => {
|
|
|
17128
17229
|
};
|
|
17129
17230
|
ModalCallouts.displayName = "ModalCallouts_UI";
|
|
17130
17231
|
var ModalCallout = ({ title, image, children }) => {
|
|
17131
|
-
return /* @__PURE__ */
|
|
17232
|
+
return /* @__PURE__ */ jsxs55(Stack, { direction: "vertical", children: [
|
|
17132
17233
|
image,
|
|
17133
|
-
/* @__PURE__ */
|
|
17234
|
+
/* @__PURE__ */ jsx326(Heading, { variant: "heading4", children: title }),
|
|
17134
17235
|
children
|
|
17135
17236
|
] });
|
|
17136
17237
|
};
|
|
17137
17238
|
ModalCallout.displayName = "ModalCallout_UI";
|
|
17138
17239
|
|
|
17139
17240
|
// src/components/Popover/Popover.tsx
|
|
17140
|
-
import { Root as
|
|
17141
|
-
import { styled as
|
|
17241
|
+
import { Root as Root3, Trigger as Trigger3, Portal as Portal2, Content as Content3, Close } from "@radix-ui/react-popover";
|
|
17242
|
+
import { styled as styled88, css as css43 } from "styled-components";
|
|
17142
17243
|
|
|
17143
17244
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
17144
17245
|
import { isNotNil as isNotNil35 } from "@wistia/type-guards";
|
|
@@ -17148,12 +17249,12 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
17148
17249
|
|
|
17149
17250
|
// src/components/Popover/PopoverArrow.tsx
|
|
17150
17251
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
17151
|
-
import { styled as
|
|
17152
|
-
import { jsx as
|
|
17153
|
-
var StyledPath =
|
|
17252
|
+
import { styled as styled87, css as css42, keyframes as keyframes8 } from "styled-components";
|
|
17253
|
+
import { jsx as jsx327, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
17254
|
+
var StyledPath = styled87.path`
|
|
17154
17255
|
fill: var(--wui-color-border-secondary);
|
|
17155
17256
|
`;
|
|
17156
|
-
var circleAnimation =
|
|
17257
|
+
var circleAnimation = keyframes8`
|
|
17157
17258
|
0% {
|
|
17158
17259
|
opacity: var(--wui-popover-arrow-circle-starting-opacity);
|
|
17159
17260
|
}
|
|
@@ -17161,7 +17262,7 @@ var circleAnimation = keyframes7`
|
|
|
17161
17262
|
opacity: 0;
|
|
17162
17263
|
}
|
|
17163
17264
|
`;
|
|
17164
|
-
var StyledCircle =
|
|
17265
|
+
var StyledCircle = styled87.circle`
|
|
17165
17266
|
stroke: var(--wui-color-border-active);
|
|
17166
17267
|
animation-duration: 2s;
|
|
17167
17268
|
animation-iteration-count: infinite;
|
|
@@ -17182,13 +17283,13 @@ var StyledCircle = styled86.circle`
|
|
|
17182
17283
|
}
|
|
17183
17284
|
|
|
17184
17285
|
@media (prefers-reduced-motion: no-preference) {
|
|
17185
|
-
${({ $isAnimated }) => $isAnimated &&
|
|
17286
|
+
${({ $isAnimated }) => $isAnimated && css42`
|
|
17186
17287
|
animation-name: ${circleAnimation};
|
|
17187
17288
|
`}
|
|
17188
17289
|
}
|
|
17189
17290
|
`;
|
|
17190
17291
|
var PopoverArrow = ({ isAnimated }) => {
|
|
17191
|
-
return /* @__PURE__ */
|
|
17292
|
+
return /* @__PURE__ */ jsx327(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs56(
|
|
17192
17293
|
"svg",
|
|
17193
17294
|
{
|
|
17194
17295
|
fill: "none",
|
|
@@ -17197,8 +17298,8 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
17197
17298
|
width: "48",
|
|
17198
17299
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17199
17300
|
children: [
|
|
17200
|
-
/* @__PURE__ */
|
|
17201
|
-
/* @__PURE__ */
|
|
17301
|
+
/* @__PURE__ */ jsx327(StyledPath, { d: "M24 26.6667C21.0545 26.6667 18.6667 29.0545 18.6667 32C18.6667 34.9455 21.0545 37.3333 24 37.3333C26.9455 37.3333 29.3333 34.9455 29.3333 32C29.3333 29.0545 26.9455 26.6667 24 26.6667ZM23 0V32H25V0H23Z" }),
|
|
17302
|
+
/* @__PURE__ */ jsx327(
|
|
17202
17303
|
StyledCircle,
|
|
17203
17304
|
{
|
|
17204
17305
|
$isAnimated: isAnimated,
|
|
@@ -17209,7 +17310,7 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
17209
17310
|
strokeWidth: "4"
|
|
17210
17311
|
}
|
|
17211
17312
|
),
|
|
17212
|
-
/* @__PURE__ */
|
|
17313
|
+
/* @__PURE__ */ jsx327(
|
|
17213
17314
|
StyledCircle,
|
|
17214
17315
|
{
|
|
17215
17316
|
$isAnimated: isAnimated,
|
|
@@ -17227,11 +17328,11 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
17227
17328
|
PopoverArrow.displayName = "PopoverArrow_UI";
|
|
17228
17329
|
|
|
17229
17330
|
// src/components/Popover/Popover.tsx
|
|
17230
|
-
import { jsx as
|
|
17231
|
-
var
|
|
17331
|
+
import { jsx as jsx328, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
17332
|
+
var StyledContent3 = styled88(Content3)`
|
|
17232
17333
|
z-index: var(--wui-zindex-popover);
|
|
17233
17334
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
17234
|
-
${({ $unstyled }) => !$unstyled &&
|
|
17335
|
+
${({ $unstyled }) => !$unstyled && css43`
|
|
17235
17336
|
border-radius: var(--wui-border-radius-02);
|
|
17236
17337
|
padding: var(--wui-space-04);
|
|
17237
17338
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -17267,10 +17368,10 @@ var Popover = ({
|
|
|
17267
17368
|
"--wui-popover-max-width": maxWidth,
|
|
17268
17369
|
"--wui-popover-max-height": maxHeight
|
|
17269
17370
|
};
|
|
17270
|
-
return /* @__PURE__ */
|
|
17271
|
-
/* @__PURE__ */
|
|
17272
|
-
/* @__PURE__ */
|
|
17273
|
-
|
|
17371
|
+
return /* @__PURE__ */ jsxs57(Root3, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
17372
|
+
/* @__PURE__ */ jsx328(Trigger3, { asChild: true, children: trigger }),
|
|
17373
|
+
/* @__PURE__ */ jsx328(Portal2, { children: /* @__PURE__ */ jsxs57(
|
|
17374
|
+
StyledContent3,
|
|
17274
17375
|
{
|
|
17275
17376
|
$colorScheme: colorScheme,
|
|
17276
17377
|
sideOffset,
|
|
@@ -17278,17 +17379,17 @@ var Popover = ({
|
|
|
17278
17379
|
$unstyled: unstyled,
|
|
17279
17380
|
style,
|
|
17280
17381
|
children: [
|
|
17281
|
-
!hideCloseButton && /* @__PURE__ */
|
|
17382
|
+
!hideCloseButton && /* @__PURE__ */ jsx328(Close, { asChild: true, children: /* @__PURE__ */ jsx328(
|
|
17282
17383
|
IconButton,
|
|
17283
17384
|
{
|
|
17284
17385
|
"data-wui-popover-close": true,
|
|
17285
17386
|
label: "Close",
|
|
17286
17387
|
variant: "ghost",
|
|
17287
|
-
children: /* @__PURE__ */
|
|
17388
|
+
children: /* @__PURE__ */ jsx328(Icon, { type: "close" })
|
|
17288
17389
|
}
|
|
17289
17390
|
) }),
|
|
17290
|
-
withArrow ? /* @__PURE__ */
|
|
17291
|
-
/* @__PURE__ */
|
|
17391
|
+
withArrow ? /* @__PURE__ */ jsx328(PopoverArrow, { isAnimated }) : null,
|
|
17392
|
+
/* @__PURE__ */ jsx328("div", { children })
|
|
17292
17393
|
]
|
|
17293
17394
|
}
|
|
17294
17395
|
) })
|
|
@@ -17297,11 +17398,11 @@ var Popover = ({
|
|
|
17297
17398
|
Popover.displayName = "Popover_UI";
|
|
17298
17399
|
|
|
17299
17400
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
17300
|
-
import { styled as
|
|
17401
|
+
import { styled as styled89 } from "styled-components";
|
|
17301
17402
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
17302
17403
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
17303
|
-
import { jsx as
|
|
17304
|
-
var ProgressBarWrapper =
|
|
17404
|
+
import { jsx as jsx329, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
17405
|
+
var ProgressBarWrapper = styled89.div`
|
|
17305
17406
|
--progress-bar-height: 8px;
|
|
17306
17407
|
|
|
17307
17408
|
display: flex;
|
|
@@ -17315,7 +17416,7 @@ var getTranslateValue = (progress, max) => {
|
|
|
17315
17416
|
const progressPercentage = progress / max * 100;
|
|
17316
17417
|
return `translateX(-${100 - progressPercentage}%)`;
|
|
17317
17418
|
};
|
|
17318
|
-
var ProgressBarLabel =
|
|
17419
|
+
var ProgressBarLabel = styled89.div`
|
|
17319
17420
|
display: flex;
|
|
17320
17421
|
line-height: var(--wui-typography-label-3-line-height);
|
|
17321
17422
|
font-size: var(--wui-typography-label-3-size);
|
|
@@ -17323,7 +17424,7 @@ var ProgressBarLabel = styled88.div`
|
|
|
17323
17424
|
color: var(--wui-color-text-secondary);
|
|
17324
17425
|
flex-shrink: 0;
|
|
17325
17426
|
`;
|
|
17326
|
-
var StyledProgressIndicator =
|
|
17427
|
+
var StyledProgressIndicator = styled89(ProgressIndicator)`
|
|
17327
17428
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
17328
17429
|
background-color: var(--wui-color-bg-fill);
|
|
17329
17430
|
width: 100%;
|
|
@@ -17333,7 +17434,7 @@ var StyledProgressIndicator = styled88(ProgressIndicator)`
|
|
|
17333
17434
|
transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
17334
17435
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
17335
17436
|
`;
|
|
17336
|
-
var StyledProgressBar =
|
|
17437
|
+
var StyledProgressBar = styled89(ProgressRoot)`
|
|
17337
17438
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
17338
17439
|
position: relative;
|
|
17339
17440
|
overflow: hidden;
|
|
@@ -17354,16 +17455,16 @@ var ProgressBar = ({
|
|
|
17354
17455
|
colorScheme = "inherit",
|
|
17355
17456
|
...props
|
|
17356
17457
|
}) => {
|
|
17357
|
-
return /* @__PURE__ */
|
|
17358
|
-
isNotNil36(labelLeft) ? /* @__PURE__ */
|
|
17359
|
-
/* @__PURE__ */
|
|
17458
|
+
return /* @__PURE__ */ jsxs58(ProgressBarWrapper, { children: [
|
|
17459
|
+
isNotNil36(labelLeft) ? /* @__PURE__ */ jsx329(ProgressBarLabel, { children: labelLeft }) : null,
|
|
17460
|
+
/* @__PURE__ */ jsx329(
|
|
17360
17461
|
StyledProgressBar,
|
|
17361
17462
|
{
|
|
17362
17463
|
$colorScheme: colorScheme,
|
|
17363
17464
|
max,
|
|
17364
17465
|
value: progress,
|
|
17365
17466
|
...props,
|
|
17366
|
-
children: /* @__PURE__ */
|
|
17467
|
+
children: /* @__PURE__ */ jsx329(
|
|
17367
17468
|
StyledProgressIndicator,
|
|
17368
17469
|
{
|
|
17369
17470
|
$colorScheme: colorScheme,
|
|
@@ -17373,7 +17474,7 @@ var ProgressBar = ({
|
|
|
17373
17474
|
)
|
|
17374
17475
|
}
|
|
17375
17476
|
),
|
|
17376
|
-
isNotNil36(labelRight) ? /* @__PURE__ */
|
|
17477
|
+
isNotNil36(labelRight) ? /* @__PURE__ */ jsx329(ProgressBarLabel, { children: labelRight }) : null
|
|
17377
17478
|
] });
|
|
17378
17479
|
};
|
|
17379
17480
|
ProgressBar.displayName = "ProgressBar_UI";
|
|
@@ -17381,17 +17482,17 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
17381
17482
|
// src/components/Radio/Radio.tsx
|
|
17382
17483
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
17383
17484
|
import { forwardRef as forwardRef27, useId as useId6 } from "react";
|
|
17384
|
-
import { styled as
|
|
17385
|
-
import { jsx as
|
|
17386
|
-
var sizeSmall2 =
|
|
17485
|
+
import { styled as styled90, css as css44 } from "styled-components";
|
|
17486
|
+
import { jsx as jsx330, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
17487
|
+
var sizeSmall2 = css44`
|
|
17387
17488
|
--wui-radio-size: 14px;
|
|
17388
17489
|
--wui-radio-icon-size: 7px;
|
|
17389
17490
|
`;
|
|
17390
|
-
var sizeMedium2 =
|
|
17491
|
+
var sizeMedium2 = css44`
|
|
17391
17492
|
--wui-radio-size: 16px;
|
|
17392
17493
|
--wui-radio-icon-size: 8px;
|
|
17393
17494
|
`;
|
|
17394
|
-
var sizeLarge2 =
|
|
17495
|
+
var sizeLarge2 = css44`
|
|
17395
17496
|
--wui-radio-size: 20px;
|
|
17396
17497
|
--wui-radio-icon-size: 10px;
|
|
17397
17498
|
`;
|
|
@@ -17404,7 +17505,7 @@ var getSizeCss3 = (size) => {
|
|
|
17404
17505
|
}
|
|
17405
17506
|
return sizeMedium2;
|
|
17406
17507
|
};
|
|
17407
|
-
var StyledRadioWrapper =
|
|
17508
|
+
var StyledRadioWrapper = styled90.div`
|
|
17408
17509
|
--wui-radio-background-color: var(--wui-color-bg-surface);
|
|
17409
17510
|
--wui-radio-border-color: var(--wui-color-border-secondary);
|
|
17410
17511
|
--wui-radio-icon-color: transparent;
|
|
@@ -17438,7 +17539,7 @@ var StyledRadioWrapper = styled89.div`
|
|
|
17438
17539
|
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
17439
17540
|
user-select: none;
|
|
17440
17541
|
`;
|
|
17441
|
-
var StyledRadioInput =
|
|
17542
|
+
var StyledRadioInput = styled90.div`
|
|
17442
17543
|
${({ $size }) => getSizeCss3($size)}
|
|
17443
17544
|
width: var(--wui-radio-size);
|
|
17444
17545
|
height: var(--wui-radio-size);
|
|
@@ -17464,7 +17565,7 @@ var StyledRadioInput = styled89.div`
|
|
|
17464
17565
|
transform: translate(-50%, -50%);
|
|
17465
17566
|
}
|
|
17466
17567
|
`;
|
|
17467
|
-
var StyledHiddenRadioInput =
|
|
17568
|
+
var StyledHiddenRadioInput = styled90.input`
|
|
17468
17569
|
${visuallyHiddenStyle}
|
|
17469
17570
|
`;
|
|
17470
17571
|
var Radio = forwardRef27(
|
|
@@ -17491,14 +17592,14 @@ var Radio = forwardRef27(
|
|
|
17491
17592
|
const radioName = name ?? contextName;
|
|
17492
17593
|
const handleOnChange = onChange ?? contextOnChange;
|
|
17493
17594
|
const isChecked = isNotUndefined14(value) && isNotUndefined14(contextValue) ? contextValue === value : checked;
|
|
17494
|
-
return /* @__PURE__ */
|
|
17595
|
+
return /* @__PURE__ */ jsxs59(
|
|
17495
17596
|
StyledRadioWrapper,
|
|
17496
17597
|
{
|
|
17497
17598
|
$disabled: disabled,
|
|
17498
17599
|
$hideLabel: hideLabel,
|
|
17499
17600
|
"aria-invalid": props["aria-invalid"],
|
|
17500
17601
|
children: [
|
|
17501
|
-
/* @__PURE__ */
|
|
17602
|
+
/* @__PURE__ */ jsx330(
|
|
17502
17603
|
StyledHiddenRadioInput,
|
|
17503
17604
|
{
|
|
17504
17605
|
...props,
|
|
@@ -17513,10 +17614,10 @@ var Radio = forwardRef27(
|
|
|
17513
17614
|
value
|
|
17514
17615
|
}
|
|
17515
17616
|
),
|
|
17516
|
-
/* @__PURE__ */
|
|
17617
|
+
/* @__PURE__ */ jsx330(
|
|
17517
17618
|
FormControlLabel,
|
|
17518
17619
|
{
|
|
17519
|
-
controlSlot: /* @__PURE__ */
|
|
17620
|
+
controlSlot: /* @__PURE__ */ jsx330(StyledRadioInput, { $size: size }),
|
|
17520
17621
|
description,
|
|
17521
17622
|
disabled,
|
|
17522
17623
|
hideLabel,
|
|
@@ -17531,22 +17632,382 @@ var Radio = forwardRef27(
|
|
|
17531
17632
|
);
|
|
17532
17633
|
Radio.displayName = "Radio_UI";
|
|
17533
17634
|
|
|
17534
|
-
// src/components/
|
|
17635
|
+
// src/components/CheckboxCard/CheckboxCard.tsx
|
|
17535
17636
|
import { forwardRef as forwardRef29 } from "react";
|
|
17536
17637
|
|
|
17537
|
-
// src/components/
|
|
17638
|
+
// src/components/CheckboxCard/CheckboxCardRoot.tsx
|
|
17538
17639
|
import { forwardRef as forwardRef28, useId as useId7 } from "react";
|
|
17539
|
-
import { styled as
|
|
17640
|
+
import { styled as styled91, css as css45 } from "styled-components";
|
|
17540
17641
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined15 } from "@wistia/type-guards";
|
|
17541
|
-
import { jsx as
|
|
17542
|
-
var checkedStyles =
|
|
17642
|
+
import { jsx as jsx331, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
17643
|
+
var checkedStyles = css45`
|
|
17644
|
+
--wui-checkbox-card-border-color: var(--wui-color-focus-ring);
|
|
17645
|
+
--wui-color-icon: var(--wui-color-icon-selected);
|
|
17646
|
+
--wui-checkbox-card-background-color: var(--wui-color-bg-surface-info);
|
|
17647
|
+
--wui-color-text: var(--wui-color-text-info);
|
|
17648
|
+
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
17649
|
+
`;
|
|
17650
|
+
var disabledStyles = css45`
|
|
17651
|
+
--wui-checkbox-card-border-color: var(--wui-color-border-disabled);
|
|
17652
|
+
--wui-checkbox-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
17653
|
+
--wui-checkbox-card-cursor: not-allowed;
|
|
17654
|
+
--wui-color-icon: var(--wui-color-icon-disabled);
|
|
17655
|
+
--wui-color-text: var(--wui-color-text-disabled);
|
|
17656
|
+
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
17657
|
+
`;
|
|
17658
|
+
var focusStyles = css45`
|
|
17659
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
17660
|
+
`;
|
|
17661
|
+
var imageCoverStyles = css45`
|
|
17662
|
+
--wui-checkbox-card-image-inset: 0px;
|
|
17663
|
+
--wui-checkbox-card-border-width: 0px;
|
|
17664
|
+
--wui-inset-shadow-width: 1px;
|
|
17665
|
+
--wui-checkbox-card-border-color: rgb(0 0 0 / 25%);
|
|
17666
|
+
|
|
17667
|
+
overflow: hidden;
|
|
17668
|
+
|
|
17669
|
+
&:has(input:checked) {
|
|
17670
|
+
--wui-checkbox-card-border-color: var(--wui-color-focus-ring);
|
|
17671
|
+
--wui-checkbox-card-image-inset: 2px;
|
|
17672
|
+
--wui-inset-shadow-width: 2px;
|
|
17673
|
+
}
|
|
17674
|
+
|
|
17675
|
+
&:hover:not(:has(input:disabled, input:checked)) {
|
|
17676
|
+
--wui-checkbox-card-border-color: rgb(0 0 0 / 50%);
|
|
17677
|
+
}
|
|
17678
|
+
|
|
17679
|
+
&::after {
|
|
17680
|
+
content: '';
|
|
17681
|
+
position: absolute;
|
|
17682
|
+
top: 0;
|
|
17683
|
+
width: 100%;
|
|
17684
|
+
height: 100%;
|
|
17685
|
+
border-radius: var(--wui-checkbox-card-border-radius);
|
|
17686
|
+
box-shadow:
|
|
17687
|
+
inset 0 0 0 var(--wui-inset-shadow-width) var(--wui-checkbox-card-border-color),
|
|
17688
|
+
inset 0 0 0 calc(var(--wui-checkbox-card-image-inset) * 2)
|
|
17689
|
+
var(--wui-checkbox-card-background-color);
|
|
17690
|
+
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
17691
|
+
}
|
|
17692
|
+
`;
|
|
17693
|
+
var StyledCard2 = styled91.label`
|
|
17694
|
+
--wui-checkbox-card-border-color: var(--wui-color-border-secondary);
|
|
17695
|
+
--wui-checkbox-card-background-color: var(--wui-color-bg-surface);
|
|
17696
|
+
--wui-checkbox-card-cursor: pointer;
|
|
17697
|
+
--wui-checkbox-card-border-width: 1px;
|
|
17698
|
+
--wui-checkbox-card-border-radius: var(--wui-border-radius-02);
|
|
17699
|
+
|
|
17700
|
+
position: relative;
|
|
17701
|
+
display: inline-flex;
|
|
17702
|
+
padding: ${({ $padding }) => `var(--wui-${$padding})`};
|
|
17703
|
+
aspect-ratio: ${({ $aspectRatio }) => $aspectRatio};
|
|
17704
|
+
border: var(--wui-checkbox-card-border-width) solid var(--wui-checkbox-card-border-color);
|
|
17705
|
+
border-radius: var(--wui-checkbox-card-border-radius);
|
|
17706
|
+
background-color: var(--wui-checkbox-card-background-color);
|
|
17707
|
+
cursor: var(--wui-checkbox-card-cursor);
|
|
17708
|
+
overflow: hidden;
|
|
17709
|
+
transition: all var(--wui-motion-duration-03) var(--wui-motion-ease);
|
|
17710
|
+
|
|
17711
|
+
svg {
|
|
17712
|
+
transition: all var(--wui-motion-duration-03) var(--wui-motion-ease);
|
|
17713
|
+
}
|
|
17714
|
+
|
|
17715
|
+
&:hover {
|
|
17716
|
+
--wui-checkbox-card-border-color: var(--wui-color-border-secondary-hover);
|
|
17717
|
+
}
|
|
17718
|
+
|
|
17719
|
+
&:active {
|
|
17720
|
+
--wui-checkbox-card-border-color: var(--wui-color-border-secondary-active);
|
|
17721
|
+
}
|
|
17722
|
+
|
|
17723
|
+
&:has(input:checked) {
|
|
17724
|
+
${({ $isGated }) => $isGated ? getColorScheme("purple") : checkedStyles}
|
|
17725
|
+
}
|
|
17726
|
+
|
|
17727
|
+
&:has(input:disabled) {
|
|
17728
|
+
${disabledStyles}
|
|
17729
|
+
}
|
|
17730
|
+
|
|
17731
|
+
&:has(input:focus-visible) {
|
|
17732
|
+
${focusStyles}
|
|
17733
|
+
}
|
|
17734
|
+
|
|
17735
|
+
&:has([data-wui-checkbox-card-image]) {
|
|
17736
|
+
&:has(input:disabled) {
|
|
17737
|
+
[data-wui-checkbox-card-image] {
|
|
17738
|
+
filter: grayscale(100%);
|
|
17739
|
+
}
|
|
17740
|
+
}
|
|
17741
|
+
|
|
17742
|
+
&:has([data-wui-checkbox-card-image='cover']) {
|
|
17743
|
+
${imageCoverStyles}
|
|
17744
|
+
}
|
|
17745
|
+
}
|
|
17746
|
+
`;
|
|
17747
|
+
var StyledHiddenInput = styled91.input`
|
|
17748
|
+
${visuallyHiddenStyle}
|
|
17749
|
+
`;
|
|
17750
|
+
var CheckboxCardRoot = forwardRef28(
|
|
17751
|
+
({
|
|
17752
|
+
children,
|
|
17753
|
+
disabled = false,
|
|
17754
|
+
id,
|
|
17755
|
+
isGated = false,
|
|
17756
|
+
name,
|
|
17757
|
+
onChange,
|
|
17758
|
+
value,
|
|
17759
|
+
aspectRatio = "initial",
|
|
17760
|
+
padding = "space-04",
|
|
17761
|
+
checked,
|
|
17762
|
+
...props
|
|
17763
|
+
}, ref) => {
|
|
17764
|
+
const generatedId = useId7();
|
|
17765
|
+
const computedId = isNonEmptyString8(id) ? id : `wistia-ui-checkbox-card-${generatedId}`;
|
|
17766
|
+
const checkboxGroupContext = useCheckboxGroup();
|
|
17767
|
+
const contextName = checkboxGroupContext?.name;
|
|
17768
|
+
const contextOnChange = checkboxGroupContext?.onChange;
|
|
17769
|
+
const contextValue = checkboxGroupContext?.value;
|
|
17770
|
+
const checkboxName = name ?? contextName;
|
|
17771
|
+
const handleOnChange = onChange ?? contextOnChange;
|
|
17772
|
+
const isChecked = isNotUndefined15(value) && isNotUndefined15(contextValue) ? contextValue.includes(value) : checked;
|
|
17773
|
+
return /* @__PURE__ */ jsxs60(
|
|
17774
|
+
StyledCard2,
|
|
17775
|
+
{
|
|
17776
|
+
$aspectRatio: aspectRatio,
|
|
17777
|
+
$isGated: isGated,
|
|
17778
|
+
$padding: padding,
|
|
17779
|
+
htmlFor: computedId,
|
|
17780
|
+
children: [
|
|
17781
|
+
/* @__PURE__ */ jsx331(
|
|
17782
|
+
StyledHiddenInput,
|
|
17783
|
+
{
|
|
17784
|
+
...props,
|
|
17785
|
+
ref,
|
|
17786
|
+
checked: isChecked,
|
|
17787
|
+
disabled,
|
|
17788
|
+
id: computedId,
|
|
17789
|
+
name: checkboxName,
|
|
17790
|
+
onChange: handleOnChange,
|
|
17791
|
+
type: "checkbox",
|
|
17792
|
+
value
|
|
17793
|
+
}
|
|
17794
|
+
),
|
|
17795
|
+
children
|
|
17796
|
+
]
|
|
17797
|
+
}
|
|
17798
|
+
);
|
|
17799
|
+
}
|
|
17800
|
+
);
|
|
17801
|
+
CheckboxCardRoot.displayName = "CheckboxCardRoot_UI";
|
|
17802
|
+
|
|
17803
|
+
// src/components/CheckboxCard/CheckboxCardDefaultLayout.tsx
|
|
17804
|
+
import { styled as styled93 } from "styled-components";
|
|
17805
|
+
import { isNotNil as isNotNil37 } from "@wistia/type-guards";
|
|
17806
|
+
|
|
17807
|
+
// src/components/CheckboxCard/CheckboxCardIndicator.tsx
|
|
17808
|
+
import { styled as styled92 } from "styled-components";
|
|
17809
|
+
import { jsx as jsx332 } from "react/jsx-runtime";
|
|
17810
|
+
var StyledIndicatorBox = styled92.div`
|
|
17811
|
+
--wui-checkbox-card-indicator-size: 14px;
|
|
17812
|
+
--wui-checkbox-card-indicator-background-color: var(--wui-color-bg-surface);
|
|
17813
|
+
--wui-checkbox-card-indicator-border-color: var(--wui-color-border-secondary);
|
|
17814
|
+
--wui-checkbox-card-indicator-icon-color: transparent;
|
|
17815
|
+
|
|
17816
|
+
width: var(--wui-checkbox-card-indicator-size);
|
|
17817
|
+
height: var(--wui-checkbox-card-indicator-size);
|
|
17818
|
+
min-width: var(--wui-checkbox-card-indicator-size);
|
|
17819
|
+
min-height: var(--wui-checkbox-card-indicator-size);
|
|
17820
|
+
background-color: var(--wui-checkbox-card-indicator-background-color);
|
|
17821
|
+
border: 1px solid var(--wui-checkbox-card-indicator-border-color);
|
|
17822
|
+
border-radius: var(--wui-border-radius-01);
|
|
17823
|
+
display: grid;
|
|
17824
|
+
place-content: center;
|
|
17825
|
+
transition: all var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
17826
|
+
|
|
17827
|
+
svg {
|
|
17828
|
+
width: 7px;
|
|
17829
|
+
height: 7px;
|
|
17830
|
+
}
|
|
17831
|
+
|
|
17832
|
+
${StyledCard2}:hover & {
|
|
17833
|
+
--wui-checkbox-card-indicator-border-color: var(--wui-color-border-secondary-hover);
|
|
17834
|
+
}
|
|
17835
|
+
|
|
17836
|
+
${StyledCard2}:has(input:checked) & {
|
|
17837
|
+
--wui-checkbox-card-indicator-background-color: var(--wui-color-bg-fill);
|
|
17838
|
+
--wui-checkbox-card-indicator-border-color: transparent;
|
|
17839
|
+
--wui-checkbox-card-indicator-icon-color: var(--wui-color-bg-fill-white);
|
|
17840
|
+
}
|
|
17841
|
+
|
|
17842
|
+
${StyledCard2}:has(input:disabled) & {
|
|
17843
|
+
--wui-checkbox-card-indicator-background-color: var(--wui-color-bg-surface-disabled);
|
|
17844
|
+
--wui-checkbox-card-indicator-border-color: var(--wui-color-border-secondary);
|
|
17845
|
+
}
|
|
17846
|
+
|
|
17847
|
+
${StyledCard2}:has(input:disabled):has(input:checked) & {
|
|
17848
|
+
--wui-checkbox-card-indicator-icon-color: var(--wui-color-icon-disabled);
|
|
17849
|
+
}
|
|
17850
|
+
`;
|
|
17851
|
+
var CheckIcon2 = () => /* @__PURE__ */ jsx332(
|
|
17852
|
+
"svg",
|
|
17853
|
+
{
|
|
17854
|
+
fill: "inherit",
|
|
17855
|
+
height: "8",
|
|
17856
|
+
viewBox: "0 0 10 8",
|
|
17857
|
+
width: "10",
|
|
17858
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17859
|
+
children: /* @__PURE__ */ jsx332(
|
|
17860
|
+
"path",
|
|
17861
|
+
{
|
|
17862
|
+
d: "M3.47281 7.19303L0.377565 4.07999C0.191609 3.89297 0.191609 3.58973 0.377565 3.40268L1.05098 2.72537C1.23694 2.53833 1.53847 2.53833 1.72442 2.72537L3.80953 4.82245L8.27558 0.330729C8.46154 0.143704 8.76306 0.143704 8.94902 0.330729L9.62244 1.00804C9.8084 1.19506 9.8084 1.49831 9.62244 1.68535L4.14624 7.19305C3.96027 7.38008 3.65876 7.38008 3.47281 7.19303Z",
|
|
17863
|
+
fill: "var(--wui-checkbox-card-indicator-icon-color)"
|
|
17864
|
+
}
|
|
17865
|
+
)
|
|
17866
|
+
}
|
|
17867
|
+
);
|
|
17868
|
+
var CheckboxCardIndicator = ({ "data-testid": testId }) => /* @__PURE__ */ jsx332(StyledIndicatorBox, { "data-testid": testId, children: /* @__PURE__ */ jsx332(CheckIcon2, {}) });
|
|
17869
|
+
CheckboxCardIndicator.displayName = "CheckboxCardIndicator_UI";
|
|
17870
|
+
|
|
17871
|
+
// src/components/CheckboxCard/CheckboxCardDefaultLayout.tsx
|
|
17872
|
+
import { jsx as jsx333, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
17873
|
+
var StyledCardContent = styled93.div`
|
|
17874
|
+
display: grid;
|
|
17875
|
+
grid-auto-flow: column;
|
|
17876
|
+
gap: var(--wui-space-02);
|
|
17877
|
+
`;
|
|
17878
|
+
var StyledCardIcon = styled93.div`
|
|
17879
|
+
display: contents;
|
|
17880
|
+
`;
|
|
17881
|
+
var StyledGatedIcon = styled93.div`
|
|
17882
|
+
position: absolute;
|
|
17883
|
+
right: 10px;
|
|
17884
|
+
top: 10px;
|
|
17885
|
+
z-index: 1;
|
|
17886
|
+
`;
|
|
17887
|
+
var StyledIndicatorContainer = styled93.div`
|
|
17888
|
+
height: ${({ $hasIcon }) => $hasIcon ? "24px" : "16px"};
|
|
17889
|
+
display: flex;
|
|
17890
|
+
align-items: center;
|
|
17891
|
+
`;
|
|
17892
|
+
var CheckboxCardDefaultLayout = ({
|
|
17893
|
+
icon,
|
|
17894
|
+
label,
|
|
17895
|
+
description,
|
|
17896
|
+
showIndicator = true,
|
|
17897
|
+
isGated = false
|
|
17898
|
+
}) => {
|
|
17899
|
+
return /* @__PURE__ */ jsxs61(StyledCardContent, { children: [
|
|
17900
|
+
showIndicator ? /* @__PURE__ */ jsx333(StyledIndicatorContainer, { $hasIcon: isNotNil37(icon), children: /* @__PURE__ */ jsx333(CheckboxCardIndicator, { "data-testid": "wui-checkbox-card-indicator" }) }) : null,
|
|
17901
|
+
isGated ? /* @__PURE__ */ jsx333(StyledGatedIcon, { "data-testid": "wui-checkbox-gated-icon", children: /* @__PURE__ */ jsx333(
|
|
17902
|
+
Icon,
|
|
17903
|
+
{
|
|
17904
|
+
colorScheme: "purple",
|
|
17905
|
+
"data-testid": "wui-icon-sparkle",
|
|
17906
|
+
type: "sparkle"
|
|
17907
|
+
}
|
|
17908
|
+
) }) : null,
|
|
17909
|
+
/* @__PURE__ */ jsxs61(Stack, { gap: "space-02", children: [
|
|
17910
|
+
isNotNil37(icon) && /* @__PURE__ */ jsx333(StyledCardIcon, { "data-wui-checkbox-card-icon": true, children: icon }),
|
|
17911
|
+
/* @__PURE__ */ jsxs61(
|
|
17912
|
+
Stack,
|
|
17913
|
+
{
|
|
17914
|
+
gap: "space-01",
|
|
17915
|
+
style: isNotNil37(icon) ? { paddingLeft: 2 } : void 0,
|
|
17916
|
+
children: [
|
|
17917
|
+
isNotNil37(label) && /* @__PURE__ */ jsx333(Text, { variant: "label3", children: /* @__PURE__ */ jsx333("strong", { children: label }) }),
|
|
17918
|
+
isNotNil37(description) && /* @__PURE__ */ jsx333(
|
|
17919
|
+
Text,
|
|
17920
|
+
{
|
|
17921
|
+
prominence: "secondary",
|
|
17922
|
+
variant: "body3",
|
|
17923
|
+
children: description
|
|
17924
|
+
}
|
|
17925
|
+
)
|
|
17926
|
+
]
|
|
17927
|
+
}
|
|
17928
|
+
)
|
|
17929
|
+
] })
|
|
17930
|
+
] });
|
|
17931
|
+
};
|
|
17932
|
+
CheckboxCardDefaultLayout.displayName = "CheckboxCardDefaultLayout_UI";
|
|
17933
|
+
|
|
17934
|
+
// src/components/CheckboxCard/CheckboxCardChildrenContainer.tsx
|
|
17935
|
+
import { styled as styled94 } from "styled-components";
|
|
17936
|
+
var CheckboxCardChildrenContainer = styled94.div`
|
|
17937
|
+
flex: 1 1 auto;
|
|
17938
|
+
`;
|
|
17939
|
+
|
|
17940
|
+
// src/components/CheckboxCard/CheckboxCard.tsx
|
|
17941
|
+
import { jsx as jsx334 } from "react/jsx-runtime";
|
|
17942
|
+
var CheckboxCard = forwardRef29(
|
|
17943
|
+
({ icon, label, description, showIndicator, isGated, children, ...rootProps }, ref) => {
|
|
17944
|
+
return /* @__PURE__ */ jsx334(
|
|
17945
|
+
CheckboxCardRoot,
|
|
17946
|
+
{
|
|
17947
|
+
ref,
|
|
17948
|
+
isGated,
|
|
17949
|
+
padding: children != null ? "space-00" : "space-04",
|
|
17950
|
+
...rootProps,
|
|
17951
|
+
children: children != null ? /* @__PURE__ */ jsx334(CheckboxCardChildrenContainer, { "data-wui-checkbox-card-image": "cover", children }) : /* @__PURE__ */ jsx334(
|
|
17952
|
+
CheckboxCardDefaultLayout,
|
|
17953
|
+
{
|
|
17954
|
+
description,
|
|
17955
|
+
icon,
|
|
17956
|
+
isGated,
|
|
17957
|
+
label,
|
|
17958
|
+
showIndicator
|
|
17959
|
+
}
|
|
17960
|
+
)
|
|
17961
|
+
}
|
|
17962
|
+
);
|
|
17963
|
+
}
|
|
17964
|
+
);
|
|
17965
|
+
CheckboxCard.displayName = "CheckboxCard_UI";
|
|
17966
|
+
|
|
17967
|
+
// src/components/CheckboxCard/CheckboxCardImage.tsx
|
|
17968
|
+
import { forwardRef as forwardRef30 } from "react";
|
|
17969
|
+
import { jsx as jsx335 } from "react/jsx-runtime";
|
|
17970
|
+
var CheckboxCardImage = forwardRef30(
|
|
17971
|
+
({ label, imageSrc, aspectRatio, padding = "space-04", ...rootProps }, ref) => {
|
|
17972
|
+
return /* @__PURE__ */ jsx335(
|
|
17973
|
+
CheckboxCardRoot,
|
|
17974
|
+
{
|
|
17975
|
+
ref,
|
|
17976
|
+
...rootProps,
|
|
17977
|
+
aspectRatio,
|
|
17978
|
+
padding,
|
|
17979
|
+
children: /* @__PURE__ */ jsx335(
|
|
17980
|
+
Image,
|
|
17981
|
+
{
|
|
17982
|
+
alt: label,
|
|
17983
|
+
"data-wui-checkbox-card-image": padding === "space-00" ? "cover" : "contain",
|
|
17984
|
+
fill: true,
|
|
17985
|
+
fit: padding === "space-00" ? "cover" : "contain",
|
|
17986
|
+
src: imageSrc
|
|
17987
|
+
}
|
|
17988
|
+
)
|
|
17989
|
+
}
|
|
17990
|
+
);
|
|
17991
|
+
}
|
|
17992
|
+
);
|
|
17993
|
+
CheckboxCardImage.displayName = "CheckboxCardImage_UI";
|
|
17994
|
+
|
|
17995
|
+
// src/components/RadioCard/RadioCard.tsx
|
|
17996
|
+
import { forwardRef as forwardRef32 } from "react";
|
|
17997
|
+
|
|
17998
|
+
// src/components/RadioCard/RadioCardRoot.tsx
|
|
17999
|
+
import { forwardRef as forwardRef31, useId as useId8 } from "react";
|
|
18000
|
+
import { styled as styled95, css as css46 } from "styled-components";
|
|
18001
|
+
import { isNonEmptyString as isNonEmptyString9, isNotUndefined as isNotUndefined16 } from "@wistia/type-guards";
|
|
18002
|
+
import { jsx as jsx336, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
18003
|
+
var checkedStyles2 = css46`
|
|
17543
18004
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
17544
18005
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
17545
18006
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-info);
|
|
17546
18007
|
--wui-color-text: var(--wui-color-text-info);
|
|
17547
18008
|
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
17548
18009
|
`;
|
|
17549
|
-
var
|
|
18010
|
+
var disabledStyles2 = css46`
|
|
17550
18011
|
--wui-radio-card-border-color: var(--wui-color-border-disabled);
|
|
17551
18012
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
17552
18013
|
--wui-radio-card-cursor: not-allowed;
|
|
@@ -17554,10 +18015,10 @@ var disabledStyles = css44`
|
|
|
17554
18015
|
--wui-color-text: var(--wui-color-text-disabled);
|
|
17555
18016
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
17556
18017
|
`;
|
|
17557
|
-
var
|
|
18018
|
+
var focusStyles2 = css46`
|
|
17558
18019
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
17559
18020
|
`;
|
|
17560
|
-
var
|
|
18021
|
+
var imageCoverStyles2 = css46`
|
|
17561
18022
|
--wui-radio-card-image-inset: 0px;
|
|
17562
18023
|
--wui-radio-card-border-width: 0px;
|
|
17563
18024
|
--wui-inset-shadow-width: 1px;
|
|
@@ -17588,7 +18049,7 @@ var imageCoverStyles = css44`
|
|
|
17588
18049
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
17589
18050
|
}
|
|
17590
18051
|
`;
|
|
17591
|
-
var
|
|
18052
|
+
var StyledCard3 = styled95.label`
|
|
17592
18053
|
--wui-radio-card-border-color: var(--wui-color-border-secondary);
|
|
17593
18054
|
--wui-radio-card-background-color: var(--wui-color-bg-surface);
|
|
17594
18055
|
--wui-radio-card-cursor: pointer;
|
|
@@ -17619,15 +18080,15 @@ var StyledCard2 = styled90.label`
|
|
|
17619
18080
|
}
|
|
17620
18081
|
|
|
17621
18082
|
&:has(input:checked) {
|
|
17622
|
-
${({ $isGated }) => $isGated ? getColorScheme("purple") :
|
|
18083
|
+
${({ $isGated }) => $isGated ? getColorScheme("purple") : checkedStyles2}
|
|
17623
18084
|
}
|
|
17624
18085
|
|
|
17625
18086
|
&:has(input:disabled) {
|
|
17626
|
-
${
|
|
18087
|
+
${disabledStyles2}
|
|
17627
18088
|
}
|
|
17628
18089
|
|
|
17629
18090
|
&:has(input:focus-visible) {
|
|
17630
|
-
${
|
|
18091
|
+
${focusStyles2}
|
|
17631
18092
|
}
|
|
17632
18093
|
|
|
17633
18094
|
&:has([data-wui-radio-card-image]) {
|
|
@@ -17638,14 +18099,14 @@ var StyledCard2 = styled90.label`
|
|
|
17638
18099
|
}
|
|
17639
18100
|
|
|
17640
18101
|
&:has([data-wui-radio-card-image='cover']) {
|
|
17641
|
-
${
|
|
18102
|
+
${imageCoverStyles2}
|
|
17642
18103
|
}
|
|
17643
18104
|
}
|
|
17644
18105
|
`;
|
|
17645
|
-
var
|
|
18106
|
+
var StyledHiddenInput2 = styled95.input`
|
|
17646
18107
|
${visuallyHiddenStyle}
|
|
17647
18108
|
`;
|
|
17648
|
-
var RadioCardRoot =
|
|
18109
|
+
var RadioCardRoot = forwardRef31(
|
|
17649
18110
|
({
|
|
17650
18111
|
children,
|
|
17651
18112
|
disabled = false,
|
|
@@ -17659,25 +18120,25 @@ var RadioCardRoot = forwardRef28(
|
|
|
17659
18120
|
checked,
|
|
17660
18121
|
...props
|
|
17661
18122
|
}, ref) => {
|
|
17662
|
-
const generatedId =
|
|
17663
|
-
const computedId =
|
|
18123
|
+
const generatedId = useId8();
|
|
18124
|
+
const computedId = isNonEmptyString9(id) ? id : `wistia-ui-radio-${generatedId}`;
|
|
17664
18125
|
const radioGroupContext = useRadioGroup();
|
|
17665
18126
|
const contextName = radioGroupContext?.name;
|
|
17666
18127
|
const contextOnChange = radioGroupContext?.onChange;
|
|
17667
18128
|
const contextValue = radioGroupContext?.value;
|
|
17668
18129
|
const radioName = name ?? contextName;
|
|
17669
18130
|
const handleOnChange = onChange ?? contextOnChange;
|
|
17670
|
-
const isChecked =
|
|
17671
|
-
return /* @__PURE__ */
|
|
17672
|
-
|
|
18131
|
+
const isChecked = isNotUndefined16(value) && isNotUndefined16(contextValue) ? contextValue === value : checked;
|
|
18132
|
+
return /* @__PURE__ */ jsxs62(
|
|
18133
|
+
StyledCard3,
|
|
17673
18134
|
{
|
|
17674
18135
|
$aspectRatio: aspectRatio,
|
|
17675
18136
|
$isGated: isGated,
|
|
17676
18137
|
$padding: padding,
|
|
17677
18138
|
htmlFor: computedId,
|
|
17678
18139
|
children: [
|
|
17679
|
-
/* @__PURE__ */
|
|
17680
|
-
|
|
18140
|
+
/* @__PURE__ */ jsx336(
|
|
18141
|
+
StyledHiddenInput2,
|
|
17681
18142
|
{
|
|
17682
18143
|
...props,
|
|
17683
18144
|
ref,
|
|
@@ -17699,12 +18160,12 @@ var RadioCardRoot = forwardRef28(
|
|
|
17699
18160
|
RadioCardRoot.displayName = "RadioCardRoot_UI";
|
|
17700
18161
|
|
|
17701
18162
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
17702
|
-
import { styled as
|
|
17703
|
-
import { isNotNil as
|
|
18163
|
+
import { styled as styled97 } from "styled-components";
|
|
18164
|
+
import { isNotNil as isNotNil38 } from "@wistia/type-guards";
|
|
17704
18165
|
|
|
17705
18166
|
// src/components/RadioCard/RadioCardIndicator.tsx
|
|
17706
|
-
import { styled as
|
|
17707
|
-
var RadioCardIndicator =
|
|
18167
|
+
import { styled as styled96 } from "styled-components";
|
|
18168
|
+
var RadioCardIndicator = styled96.div`
|
|
17708
18169
|
--wui-radio-card-indicator-size: 14px;
|
|
17709
18170
|
--wui-radio-card-indicator-background-color: var(--wui-color-bg-surface);
|
|
17710
18171
|
--wui-radio-card-indicator-fill-color: var(--wui-color-bg-fill);
|
|
@@ -17735,7 +18196,7 @@ var RadioCardIndicator = styled91.div`
|
|
|
17735
18196
|
transform: translate(-50%, -50%);
|
|
17736
18197
|
}
|
|
17737
18198
|
|
|
17738
|
-
${
|
|
18199
|
+
${StyledCard3}:has(input:checked) & {
|
|
17739
18200
|
--wui-radio-card-indicator-border-color: var(--wui-color-focus-ring);
|
|
17740
18201
|
--wui-radio-card-indicator-fill-color: var(--wui-color-focus-ring);
|
|
17741
18202
|
|
|
@@ -17745,7 +18206,7 @@ var RadioCardIndicator = styled91.div`
|
|
|
17745
18206
|
}
|
|
17746
18207
|
}
|
|
17747
18208
|
|
|
17748
|
-
${
|
|
18209
|
+
${StyledCard3}:has(input:disabled) & {
|
|
17749
18210
|
--wui-radio-card-indicator-border-color: var(--wui-color-border-secondary);
|
|
17750
18211
|
--wui-radio-card-indicator-background-color: var(--wui-color-bg-surface-disabled);
|
|
17751
18212
|
}
|
|
@@ -17753,22 +18214,22 @@ var RadioCardIndicator = styled91.div`
|
|
|
17753
18214
|
RadioCardIndicator.displayName = "RadioCardIndicator_UI";
|
|
17754
18215
|
|
|
17755
18216
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
17756
|
-
import { jsx as
|
|
17757
|
-
var
|
|
18217
|
+
import { jsx as jsx337, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
18218
|
+
var StyledCardContent2 = styled97.div`
|
|
17758
18219
|
display: grid;
|
|
17759
18220
|
grid-auto-flow: column;
|
|
17760
18221
|
gap: var(--wui-space-02);
|
|
17761
18222
|
`;
|
|
17762
|
-
var
|
|
18223
|
+
var StyledCardIcon2 = styled97.div`
|
|
17763
18224
|
display: contents;
|
|
17764
18225
|
`;
|
|
17765
|
-
var
|
|
18226
|
+
var StyledGatedIcon2 = styled97.div`
|
|
17766
18227
|
position: absolute;
|
|
17767
18228
|
right: 10px;
|
|
17768
18229
|
top: 10px;
|
|
17769
18230
|
z-index: 1;
|
|
17770
18231
|
`;
|
|
17771
|
-
var
|
|
18232
|
+
var StyledIndicatorContainer2 = styled97.div`
|
|
17772
18233
|
height: ${({ $hasIcon }) => $hasIcon ? "24px" : "16px"};
|
|
17773
18234
|
display: flex;
|
|
17774
18235
|
align-items: center;
|
|
@@ -17780,9 +18241,9 @@ var RadioCardDefaultLayout = ({
|
|
|
17780
18241
|
showIndicator = true,
|
|
17781
18242
|
isGated = false
|
|
17782
18243
|
}) => {
|
|
17783
|
-
return /* @__PURE__ */
|
|
17784
|
-
showIndicator ? /* @__PURE__ */
|
|
17785
|
-
isGated ? /* @__PURE__ */
|
|
18244
|
+
return /* @__PURE__ */ jsxs63(StyledCardContent2, { children: [
|
|
18245
|
+
showIndicator ? /* @__PURE__ */ jsx337(StyledIndicatorContainer2, { $hasIcon: isNotNil38(icon), children: /* @__PURE__ */ jsx337(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
|
|
18246
|
+
isGated ? /* @__PURE__ */ jsx337(StyledGatedIcon2, { "data-testid": "wui-radio-gated-icon", children: /* @__PURE__ */ jsx337(
|
|
17786
18247
|
Icon,
|
|
17787
18248
|
{
|
|
17788
18249
|
colorScheme: "purple",
|
|
@@ -17790,16 +18251,16 @@ var RadioCardDefaultLayout = ({
|
|
|
17790
18251
|
type: "sparkle"
|
|
17791
18252
|
}
|
|
17792
18253
|
) }) : null,
|
|
17793
|
-
/* @__PURE__ */
|
|
17794
|
-
|
|
17795
|
-
/* @__PURE__ */
|
|
18254
|
+
/* @__PURE__ */ jsxs63(Stack, { gap: "space-02", children: [
|
|
18255
|
+
isNotNil38(icon) && /* @__PURE__ */ jsx337(StyledCardIcon2, { "data-wui-radio-card-icon": true, children: icon }),
|
|
18256
|
+
/* @__PURE__ */ jsxs63(
|
|
17796
18257
|
Stack,
|
|
17797
18258
|
{
|
|
17798
18259
|
gap: "space-01",
|
|
17799
|
-
style:
|
|
18260
|
+
style: isNotNil38(icon) ? { paddingLeft: 2 } : void 0,
|
|
17800
18261
|
children: [
|
|
17801
|
-
|
|
17802
|
-
|
|
18262
|
+
isNotNil38(label) && /* @__PURE__ */ jsx337(Text, { variant: "label3", children: /* @__PURE__ */ jsx337("strong", { children: label }) }),
|
|
18263
|
+
isNotNil38(description) && /* @__PURE__ */ jsx337(
|
|
17803
18264
|
Text,
|
|
17804
18265
|
{
|
|
17805
18266
|
prominence: "secondary",
|
|
@@ -17816,23 +18277,23 @@ var RadioCardDefaultLayout = ({
|
|
|
17816
18277
|
RadioCardDefaultLayout.displayName = "RadioCardDefaultLayout_UI";
|
|
17817
18278
|
|
|
17818
18279
|
// src/components/RadioCard/RadioCardChildrenContainer.tsx
|
|
17819
|
-
import { styled as
|
|
17820
|
-
var RadioCardChildrenContainer =
|
|
18280
|
+
import { styled as styled98 } from "styled-components";
|
|
18281
|
+
var RadioCardChildrenContainer = styled98.div`
|
|
17821
18282
|
flex: 1 1 auto;
|
|
17822
18283
|
`;
|
|
17823
18284
|
|
|
17824
18285
|
// src/components/RadioCard/RadioCard.tsx
|
|
17825
|
-
import { jsx as
|
|
17826
|
-
var RadioCard =
|
|
18286
|
+
import { jsx as jsx338 } from "react/jsx-runtime";
|
|
18287
|
+
var RadioCard = forwardRef32(
|
|
17827
18288
|
({ icon, label, description, showIndicator, isGated, children, ...rootProps }, ref) => {
|
|
17828
|
-
return /* @__PURE__ */
|
|
18289
|
+
return /* @__PURE__ */ jsx338(
|
|
17829
18290
|
RadioCardRoot,
|
|
17830
18291
|
{
|
|
17831
18292
|
ref,
|
|
17832
18293
|
isGated,
|
|
17833
18294
|
padding: children != null ? "space-00" : "space-04",
|
|
17834
18295
|
...rootProps,
|
|
17835
|
-
children: children != null ? /* @__PURE__ */
|
|
18296
|
+
children: children != null ? /* @__PURE__ */ jsx338(RadioCardChildrenContainer, { "data-wui-radio-card-image": "cover", children }) : /* @__PURE__ */ jsx338(
|
|
17836
18297
|
RadioCardDefaultLayout,
|
|
17837
18298
|
{
|
|
17838
18299
|
description,
|
|
@@ -17849,18 +18310,18 @@ var RadioCard = forwardRef29(
|
|
|
17849
18310
|
RadioCard.displayName = "RadioCard_UI";
|
|
17850
18311
|
|
|
17851
18312
|
// src/components/RadioCard/RadioCardImage.tsx
|
|
17852
|
-
import { forwardRef as
|
|
17853
|
-
import { jsx as
|
|
17854
|
-
var RadioCardImage =
|
|
18313
|
+
import { forwardRef as forwardRef33 } from "react";
|
|
18314
|
+
import { jsx as jsx339 } from "react/jsx-runtime";
|
|
18315
|
+
var RadioCardImage = forwardRef33(
|
|
17855
18316
|
({ label, imageSrc, aspectRatio, padding = "space-04", ...rootProps }, ref) => {
|
|
17856
|
-
return /* @__PURE__ */
|
|
18317
|
+
return /* @__PURE__ */ jsx339(
|
|
17857
18318
|
RadioCardRoot,
|
|
17858
18319
|
{
|
|
17859
18320
|
ref,
|
|
17860
18321
|
...rootProps,
|
|
17861
18322
|
aspectRatio,
|
|
17862
18323
|
padding,
|
|
17863
|
-
children: /* @__PURE__ */
|
|
18324
|
+
children: /* @__PURE__ */ jsx339(
|
|
17864
18325
|
Image,
|
|
17865
18326
|
{
|
|
17866
18327
|
alt: label,
|
|
@@ -17877,57 +18338,57 @@ var RadioCardImage = forwardRef30(
|
|
|
17877
18338
|
RadioCardImage.displayName = "RadioCardImage_UI";
|
|
17878
18339
|
|
|
17879
18340
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
17880
|
-
import { forwardRef as
|
|
17881
|
-
import { styled as
|
|
18341
|
+
import { forwardRef as forwardRef34, useCallback as useCallback18, useEffect as useEffect21, useMemo as useMemo15, useRef as useRef22, useState as useState24 } from "react";
|
|
18342
|
+
import { styled as styled99 } from "styled-components";
|
|
17882
18343
|
import { throttle } from "throttle-debounce";
|
|
17883
|
-
import { jsx as
|
|
18344
|
+
import { jsx as jsx340, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
17884
18345
|
var SHADOW_SIZE_PX = 8;
|
|
17885
|
-
var Container10 =
|
|
18346
|
+
var Container10 = styled99.div`
|
|
17886
18347
|
overflow: hidden;
|
|
17887
18348
|
position: relative;
|
|
17888
18349
|
flex: 1 1 auto;
|
|
17889
18350
|
`;
|
|
17890
|
-
var ScrollContainer =
|
|
18351
|
+
var ScrollContainer = styled99.div`
|
|
17891
18352
|
overflow: ${({ $locked }) => $locked ? "hidden" : "auto"};
|
|
17892
18353
|
height: 100%;
|
|
17893
18354
|
width: 100%;
|
|
17894
18355
|
`;
|
|
17895
|
-
var Shadow =
|
|
18356
|
+
var Shadow = styled99.div`
|
|
17896
18357
|
pointer-events: none;
|
|
17897
18358
|
position: absolute;
|
|
17898
18359
|
transition: box-shadow var(--wui-motion-duration-04) var(--wui-motion-ease);
|
|
17899
18360
|
box-shadow: ${({ $isVisible }) => $isVisible ? `0 0 ${SHADOW_SIZE_PX}px ${SHADOW_SIZE_PX}px var(--wui-color-drop-shadow)` : "none"};
|
|
17900
18361
|
z-index: 1;
|
|
17901
18362
|
`;
|
|
17902
|
-
var ShadowAtTop =
|
|
18363
|
+
var ShadowAtTop = styled99(Shadow)`
|
|
17903
18364
|
transform: translateY(-${SHADOW_SIZE_PX}px);
|
|
17904
18365
|
height: 0;
|
|
17905
18366
|
left: 0;
|
|
17906
18367
|
right: 0;
|
|
17907
18368
|
top: 0;
|
|
17908
18369
|
`;
|
|
17909
|
-
var ShadowAtBottom =
|
|
18370
|
+
var ShadowAtBottom = styled99(Shadow)`
|
|
17910
18371
|
transform: translateY(${SHADOW_SIZE_PX}px);
|
|
17911
18372
|
bottom: 0;
|
|
17912
18373
|
height: 0;
|
|
17913
18374
|
left: 0;
|
|
17914
18375
|
right: 0;
|
|
17915
18376
|
`;
|
|
17916
|
-
var ShadowAtLeft =
|
|
18377
|
+
var ShadowAtLeft = styled99(Shadow)`
|
|
17917
18378
|
transform: translateX(-${SHADOW_SIZE_PX}px);
|
|
17918
18379
|
bottom: 0;
|
|
17919
18380
|
left: 0;
|
|
17920
18381
|
top: 0;
|
|
17921
18382
|
width: 0;
|
|
17922
18383
|
`;
|
|
17923
|
-
var ShadowAtRight =
|
|
18384
|
+
var ShadowAtRight = styled99(Shadow)`
|
|
17924
18385
|
transform: translateX(${SHADOW_SIZE_PX}px);
|
|
17925
18386
|
bottom: 0;
|
|
17926
18387
|
right: 0;
|
|
17927
18388
|
top: 0;
|
|
17928
18389
|
width: 0;
|
|
17929
18390
|
`;
|
|
17930
|
-
var ScrollArea =
|
|
18391
|
+
var ScrollArea = forwardRef34(
|
|
17931
18392
|
({ children, onScroll, style, locked = false, ...props }, forwardedRef) => {
|
|
17932
18393
|
const scrollContainerRefInternal = useRef22(null);
|
|
17933
18394
|
const [shadowState, setShadowState] = useState24({
|
|
@@ -17960,12 +18421,12 @@ var ScrollArea = forwardRef31(
|
|
|
17960
18421
|
useEffect21(() => {
|
|
17961
18422
|
updateShadows();
|
|
17962
18423
|
}, [updateShadows]);
|
|
17963
|
-
return /* @__PURE__ */
|
|
17964
|
-
/* @__PURE__ */
|
|
17965
|
-
/* @__PURE__ */
|
|
17966
|
-
/* @__PURE__ */
|
|
17967
|
-
/* @__PURE__ */
|
|
17968
|
-
/* @__PURE__ */
|
|
18424
|
+
return /* @__PURE__ */ jsxs64(Container10, { style, children: [
|
|
18425
|
+
/* @__PURE__ */ jsx340(ShadowAtTop, { $isVisible: shadowState.canScrollUp }),
|
|
18426
|
+
/* @__PURE__ */ jsx340(ShadowAtBottom, { $isVisible: shadowState.canScrollDown }),
|
|
18427
|
+
/* @__PURE__ */ jsx340(ShadowAtLeft, { $isVisible: shadowState.canScrollLeft }),
|
|
18428
|
+
/* @__PURE__ */ jsx340(ShadowAtRight, { $isVisible: shadowState.canScrollRight }),
|
|
18429
|
+
/* @__PURE__ */ jsx340(
|
|
17969
18430
|
ScrollContainer,
|
|
17970
18431
|
{
|
|
17971
18432
|
ref: scrollContainerRef,
|
|
@@ -17981,14 +18442,14 @@ var ScrollArea = forwardRef31(
|
|
|
17981
18442
|
ScrollArea.displayName = "ScrollArea_UI";
|
|
17982
18443
|
|
|
17983
18444
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17984
|
-
import { forwardRef as
|
|
17985
|
-
import { styled as
|
|
18445
|
+
import { forwardRef as forwardRef35 } from "react";
|
|
18446
|
+
import { styled as styled101, css as css48 } from "styled-components";
|
|
17986
18447
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
17987
18448
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
17988
18449
|
|
|
17989
18450
|
// src/components/SegmentedControl/useSelectedItemStyle.tsx
|
|
17990
18451
|
import { createContext as createContext9, useContext as useContext15, useMemo as useMemo16, useState as useState25 } from "react";
|
|
17991
|
-
import { jsx as
|
|
18452
|
+
import { jsx as jsx341 } from "react/jsx-runtime";
|
|
17992
18453
|
var SelectedItemStyleContext = createContext9(null);
|
|
17993
18454
|
var SelectedItemStyleProvider = ({
|
|
17994
18455
|
children
|
|
@@ -18009,7 +18470,7 @@ var SelectedItemStyleProvider = ({
|
|
|
18009
18470
|
}),
|
|
18010
18471
|
[selectedItemIndicatorStyle]
|
|
18011
18472
|
);
|
|
18012
|
-
return /* @__PURE__ */
|
|
18473
|
+
return /* @__PURE__ */ jsx341(SelectedItemStyleContext.Provider, { value: contextValue, children });
|
|
18013
18474
|
};
|
|
18014
18475
|
var useSelectedItemStyle = () => {
|
|
18015
18476
|
const context = useContext15(SelectedItemStyleContext);
|
|
@@ -18020,7 +18481,7 @@ var useSelectedItemStyle = () => {
|
|
|
18020
18481
|
};
|
|
18021
18482
|
|
|
18022
18483
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
18023
|
-
import { styled as
|
|
18484
|
+
import { styled as styled100, css as css47 } from "styled-components";
|
|
18024
18485
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
18025
18486
|
|
|
18026
18487
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -18036,13 +18497,13 @@ var useSegmentedControlValue = () => {
|
|
|
18036
18497
|
};
|
|
18037
18498
|
|
|
18038
18499
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
18039
|
-
import { jsx as
|
|
18040
|
-
var selectedItemIndicatorStyles =
|
|
18500
|
+
import { jsx as jsx342 } from "react/jsx-runtime";
|
|
18501
|
+
var selectedItemIndicatorStyles = css47`
|
|
18041
18502
|
background-color: var(--wui-color-bg-fill-white);
|
|
18042
18503
|
border-radius: var(--wui-border-radius-rounded);
|
|
18043
18504
|
box-shadow: var(--wui-elevation-01);
|
|
18044
18505
|
`;
|
|
18045
|
-
var SelectedItemIndicatorDiv =
|
|
18506
|
+
var SelectedItemIndicatorDiv = styled100.div`
|
|
18046
18507
|
${selectedItemIndicatorStyles}
|
|
18047
18508
|
left: 0;
|
|
18048
18509
|
position: absolute;
|
|
@@ -18058,7 +18519,7 @@ var SelectedItemIndicator = () => {
|
|
|
18058
18519
|
if (!selectedValue || isUndefined5(selectedItemIndicatorStyle)) {
|
|
18059
18520
|
return null;
|
|
18060
18521
|
}
|
|
18061
|
-
return /* @__PURE__ */
|
|
18522
|
+
return /* @__PURE__ */ jsx342(
|
|
18062
18523
|
SelectedItemIndicatorDiv,
|
|
18063
18524
|
{
|
|
18064
18525
|
"data-wui-selected-item-indicator": true,
|
|
@@ -18068,8 +18529,8 @@ var SelectedItemIndicator = () => {
|
|
|
18068
18529
|
};
|
|
18069
18530
|
|
|
18070
18531
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18071
|
-
import { jsx as
|
|
18072
|
-
var segmentedControlStyles =
|
|
18532
|
+
import { jsx as jsx343, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
18533
|
+
var segmentedControlStyles = css48`
|
|
18073
18534
|
${({ $colorScheme }) => $colorScheme && getColorScheme($colorScheme)};
|
|
18074
18535
|
${({ $colorScheme }) => $colorScheme !== "nav" && `--wui-color-text-selected: var(--wui-color-text-link);`}
|
|
18075
18536
|
|
|
@@ -18083,10 +18544,10 @@ var segmentedControlStyles = css46`
|
|
|
18083
18544
|
position: relative;
|
|
18084
18545
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
18085
18546
|
`;
|
|
18086
|
-
var StyledSegmentedControl =
|
|
18547
|
+
var StyledSegmentedControl = styled101(ToggleGroupRoot2)`
|
|
18087
18548
|
${segmentedControlStyles}
|
|
18088
18549
|
`;
|
|
18089
|
-
var SegmentedControl =
|
|
18550
|
+
var SegmentedControl = forwardRef35(
|
|
18090
18551
|
({
|
|
18091
18552
|
children,
|
|
18092
18553
|
colorScheme = "inherit",
|
|
@@ -18099,7 +18560,7 @@ var SegmentedControl = forwardRef32(
|
|
|
18099
18560
|
if (isNil18(children)) {
|
|
18100
18561
|
return null;
|
|
18101
18562
|
}
|
|
18102
|
-
return /* @__PURE__ */
|
|
18563
|
+
return /* @__PURE__ */ jsx343(
|
|
18103
18564
|
StyledSegmentedControl,
|
|
18104
18565
|
{
|
|
18105
18566
|
ref,
|
|
@@ -18112,9 +18573,9 @@ var SegmentedControl = forwardRef32(
|
|
|
18112
18573
|
type: "single",
|
|
18113
18574
|
value: selectedValue,
|
|
18114
18575
|
...props,
|
|
18115
|
-
children: /* @__PURE__ */
|
|
18576
|
+
children: /* @__PURE__ */ jsx343(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs65(SelectedItemStyleProvider, { children: [
|
|
18116
18577
|
children,
|
|
18117
|
-
/* @__PURE__ */
|
|
18578
|
+
/* @__PURE__ */ jsx343(SelectedItemIndicator, {})
|
|
18118
18579
|
] }) })
|
|
18119
18580
|
}
|
|
18120
18581
|
);
|
|
@@ -18123,12 +18584,12 @@ var SegmentedControl = forwardRef32(
|
|
|
18123
18584
|
SegmentedControl.displayName = "SegmentedControl_UI";
|
|
18124
18585
|
|
|
18125
18586
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
18126
|
-
import { forwardRef as
|
|
18127
|
-
import { styled as
|
|
18587
|
+
import { forwardRef as forwardRef36, useEffect as useEffect22, useRef as useRef23 } from "react";
|
|
18588
|
+
import { styled as styled102, css as css49 } from "styled-components";
|
|
18128
18589
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
18129
|
-
import { isNotNil as
|
|
18130
|
-
import { jsxs as
|
|
18131
|
-
var segmentedControlItemStyles =
|
|
18590
|
+
import { isNotNil as isNotNil39 } from "@wistia/type-guards";
|
|
18591
|
+
import { jsxs as jsxs66 } from "react/jsx-runtime";
|
|
18592
|
+
var segmentedControlItemStyles = css49`
|
|
18132
18593
|
all: unset; /* ToggleGroupItem is a button element */
|
|
18133
18594
|
align-items: center;
|
|
18134
18595
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -18196,10 +18657,10 @@ var segmentedControlItemStyles = css47`
|
|
|
18196
18657
|
}
|
|
18197
18658
|
}
|
|
18198
18659
|
`;
|
|
18199
|
-
var StyledSegmentedControlItem =
|
|
18660
|
+
var StyledSegmentedControlItem = styled102(ToggleGroupItem2)`
|
|
18200
18661
|
${segmentedControlItemStyles}
|
|
18201
18662
|
`;
|
|
18202
|
-
var SegmentedControlItem =
|
|
18663
|
+
var SegmentedControlItem = forwardRef36(
|
|
18203
18664
|
({ disabled, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
|
|
18204
18665
|
const selectedValue = useSegmentedControlValue();
|
|
18205
18666
|
const { setSelectedItemMeasurements } = useSelectedItemStyle();
|
|
@@ -18237,13 +18698,13 @@ var SegmentedControlItem = forwardRef33(
|
|
|
18237
18698
|
resizeObserver.disconnect();
|
|
18238
18699
|
};
|
|
18239
18700
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
18240
|
-
return /* @__PURE__ */
|
|
18701
|
+
return /* @__PURE__ */ jsxs66(
|
|
18241
18702
|
StyledSegmentedControlItem,
|
|
18242
18703
|
{
|
|
18243
18704
|
ref: combinedRef,
|
|
18244
18705
|
...otherProps,
|
|
18245
|
-
$hasLabel:
|
|
18246
|
-
"aria-label":
|
|
18706
|
+
$hasLabel: isNotNil39(label),
|
|
18707
|
+
"aria-label": isNotNil39(label) ? void 0 : ariaLabel,
|
|
18247
18708
|
disabled,
|
|
18248
18709
|
onClick: handleClick,
|
|
18249
18710
|
value,
|
|
@@ -18259,19 +18720,19 @@ SegmentedControlItem.displayName = "SegmentedControlItem_UI";
|
|
|
18259
18720
|
|
|
18260
18721
|
// src/components/Select/Select.tsx
|
|
18261
18722
|
import {
|
|
18262
|
-
Root as
|
|
18263
|
-
Trigger as
|
|
18264
|
-
Portal as
|
|
18265
|
-
Content as
|
|
18723
|
+
Root as Root4,
|
|
18724
|
+
Trigger as Trigger4,
|
|
18725
|
+
Portal as Portal3,
|
|
18726
|
+
Content as Content4,
|
|
18266
18727
|
ScrollUpButton,
|
|
18267
18728
|
Viewport,
|
|
18268
18729
|
Value,
|
|
18269
18730
|
ScrollDownButton
|
|
18270
18731
|
} from "@radix-ui/react-select";
|
|
18271
|
-
import { forwardRef as
|
|
18272
|
-
import { styled as
|
|
18273
|
-
import { jsx as
|
|
18274
|
-
var StyledTrigger2 =
|
|
18732
|
+
import { forwardRef as forwardRef37 } from "react";
|
|
18733
|
+
import { styled as styled103, css as css50 } from "styled-components";
|
|
18734
|
+
import { jsx as jsx344, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
18735
|
+
var StyledTrigger2 = styled103(Trigger4)`
|
|
18275
18736
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
18276
18737
|
${inputCss};
|
|
18277
18738
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -18317,7 +18778,7 @@ var StyledTrigger2 = styled98(Trigger3)`
|
|
|
18317
18778
|
color: var(--wui-input-placeholder);
|
|
18318
18779
|
}
|
|
18319
18780
|
`;
|
|
18320
|
-
var
|
|
18781
|
+
var StyledContent4 = styled103(Content4)`
|
|
18321
18782
|
--wui-select-content-border: var(--wui-color-border);
|
|
18322
18783
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
18323
18784
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -18339,18 +18800,18 @@ var StyledContent3 = styled98(Content3)`
|
|
|
18339
18800
|
margin: var(--wui-space-02) 0;
|
|
18340
18801
|
}
|
|
18341
18802
|
`;
|
|
18342
|
-
var scrollButtonStyles =
|
|
18803
|
+
var scrollButtonStyles = css50`
|
|
18343
18804
|
align-items: center;
|
|
18344
18805
|
display: flex;
|
|
18345
18806
|
justify-content: center;
|
|
18346
18807
|
`;
|
|
18347
|
-
var StyledScrollDownButton =
|
|
18808
|
+
var StyledScrollDownButton = styled103(ScrollDownButton)`
|
|
18348
18809
|
${scrollButtonStyles}
|
|
18349
18810
|
`;
|
|
18350
|
-
var StyledScrollUpButton =
|
|
18811
|
+
var StyledScrollUpButton = styled103(ScrollUpButton)`
|
|
18351
18812
|
${scrollButtonStyles}
|
|
18352
18813
|
`;
|
|
18353
|
-
var Select =
|
|
18814
|
+
var Select = forwardRef37(
|
|
18354
18815
|
({
|
|
18355
18816
|
colorScheme = "inherit",
|
|
18356
18817
|
children,
|
|
@@ -18370,8 +18831,8 @@ var Select = forwardRef34(
|
|
|
18370
18831
|
if (forceOpen) {
|
|
18371
18832
|
rootProps["open"] = true;
|
|
18372
18833
|
}
|
|
18373
|
-
return /* @__PURE__ */
|
|
18374
|
-
/* @__PURE__ */
|
|
18834
|
+
return /* @__PURE__ */ jsxs67(Root4, { ...rootProps, children: [
|
|
18835
|
+
/* @__PURE__ */ jsxs67(
|
|
18375
18836
|
StyledTrigger2,
|
|
18376
18837
|
{
|
|
18377
18838
|
ref: forwardedRef,
|
|
@@ -18379,8 +18840,8 @@ var Select = forwardRef34(
|
|
|
18379
18840
|
$fullWidth: responsiveFullWidth,
|
|
18380
18841
|
...props,
|
|
18381
18842
|
children: [
|
|
18382
|
-
/* @__PURE__ */
|
|
18383
|
-
/* @__PURE__ */
|
|
18843
|
+
/* @__PURE__ */ jsx344(Value, { placeholder }),
|
|
18844
|
+
/* @__PURE__ */ jsx344(
|
|
18384
18845
|
Icon,
|
|
18385
18846
|
{
|
|
18386
18847
|
size: "md",
|
|
@@ -18390,21 +18851,21 @@ var Select = forwardRef34(
|
|
|
18390
18851
|
]
|
|
18391
18852
|
}
|
|
18392
18853
|
),
|
|
18393
|
-
/* @__PURE__ */
|
|
18394
|
-
|
|
18854
|
+
/* @__PURE__ */ jsx344(Portal3, { children: /* @__PURE__ */ jsxs67(
|
|
18855
|
+
StyledContent4,
|
|
18395
18856
|
{
|
|
18396
18857
|
position: "popper",
|
|
18397
18858
|
sideOffset: 8,
|
|
18398
18859
|
children: [
|
|
18399
|
-
/* @__PURE__ */
|
|
18860
|
+
/* @__PURE__ */ jsx344(StyledScrollUpButton, { children: /* @__PURE__ */ jsx344(
|
|
18400
18861
|
Icon,
|
|
18401
18862
|
{
|
|
18402
18863
|
size: "sm",
|
|
18403
18864
|
type: "caret-up"
|
|
18404
18865
|
}
|
|
18405
18866
|
) }),
|
|
18406
|
-
/* @__PURE__ */
|
|
18407
|
-
/* @__PURE__ */
|
|
18867
|
+
/* @__PURE__ */ jsx344(Viewport, { children }),
|
|
18868
|
+
/* @__PURE__ */ jsx344(StyledScrollDownButton, { children: /* @__PURE__ */ jsx344(
|
|
18408
18869
|
Icon,
|
|
18409
18870
|
{
|
|
18410
18871
|
size: "sm",
|
|
@@ -18421,11 +18882,11 @@ Select.displayName = "Select_UI";
|
|
|
18421
18882
|
|
|
18422
18883
|
// src/components/Select/SelectOption.tsx
|
|
18423
18884
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
18424
|
-
import { forwardRef as
|
|
18425
|
-
import { styled as
|
|
18426
|
-
import { isNotNil as
|
|
18427
|
-
import { jsx as
|
|
18428
|
-
var StyledItem =
|
|
18885
|
+
import { forwardRef as forwardRef38 } from "react";
|
|
18886
|
+
import { styled as styled104 } from "styled-components";
|
|
18887
|
+
import { isNotNil as isNotNil40 } from "@wistia/type-guards";
|
|
18888
|
+
import { jsx as jsx345, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
18889
|
+
var StyledItem = styled104(Item)`
|
|
18429
18890
|
${getTypographicStyles("label3")}
|
|
18430
18891
|
align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
|
|
18431
18892
|
background-color: transparent;
|
|
@@ -18451,20 +18912,20 @@ var StyledItem = styled99(Item)`
|
|
|
18451
18912
|
background-color: transparent;
|
|
18452
18913
|
}
|
|
18453
18914
|
`;
|
|
18454
|
-
var SelectOption =
|
|
18915
|
+
var SelectOption = forwardRef38(
|
|
18455
18916
|
({ children, selectedDisplayValue, checkmarkVerticalAlign = "center", ...props }, forwardedRef) => {
|
|
18456
|
-
return /* @__PURE__ */
|
|
18917
|
+
return /* @__PURE__ */ jsxs68(
|
|
18457
18918
|
StyledItem,
|
|
18458
18919
|
{
|
|
18459
18920
|
...props,
|
|
18460
18921
|
ref: forwardedRef,
|
|
18461
18922
|
$checkmarkVerticalAlign: checkmarkVerticalAlign,
|
|
18462
18923
|
children: [
|
|
18463
|
-
|
|
18924
|
+
isNotNil40(selectedDisplayValue) ? /* @__PURE__ */ jsxs68("div", { children: [
|
|
18464
18925
|
children,
|
|
18465
|
-
/* @__PURE__ */
|
|
18466
|
-
] }) : /* @__PURE__ */
|
|
18467
|
-
/* @__PURE__ */
|
|
18926
|
+
/* @__PURE__ */ jsx345("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx345(ItemText, { children: selectedDisplayValue }) })
|
|
18927
|
+
] }) : /* @__PURE__ */ jsx345(ItemText, { children }),
|
|
18928
|
+
/* @__PURE__ */ jsx345(ItemIndicator, { children: /* @__PURE__ */ jsx345(
|
|
18468
18929
|
Icon,
|
|
18469
18930
|
{
|
|
18470
18931
|
size: "md",
|
|
@@ -18480,14 +18941,14 @@ SelectOption.displayName = "SelectOption_UI";
|
|
|
18480
18941
|
|
|
18481
18942
|
// src/components/Select/SelectOptionGroup.tsx
|
|
18482
18943
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
18483
|
-
import { styled as
|
|
18484
|
-
import { jsx as
|
|
18485
|
-
var StyledLabel4 =
|
|
18944
|
+
import { styled as styled105 } from "styled-components";
|
|
18945
|
+
import { jsx as jsx346, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
18946
|
+
var StyledLabel4 = styled105(Label3)`
|
|
18486
18947
|
padding: var(--wui-select-option-padding);
|
|
18487
18948
|
`;
|
|
18488
18949
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
18489
|
-
return /* @__PURE__ */
|
|
18490
|
-
/* @__PURE__ */
|
|
18950
|
+
return /* @__PURE__ */ jsxs69(Group, { ...props, children: [
|
|
18951
|
+
/* @__PURE__ */ jsx346(StyledLabel4, { children: /* @__PURE__ */ jsx346(
|
|
18491
18952
|
Heading,
|
|
18492
18953
|
{
|
|
18493
18954
|
renderAs: "span",
|
|
@@ -18506,10 +18967,10 @@ import {
|
|
|
18506
18967
|
Range as RadixSliderRange,
|
|
18507
18968
|
Thumb as RadixSliderThumb
|
|
18508
18969
|
} from "@radix-ui/react-slider";
|
|
18509
|
-
import { styled as
|
|
18510
|
-
import { isNonEmptyString as
|
|
18511
|
-
import { jsx as
|
|
18512
|
-
var SliderContainer =
|
|
18970
|
+
import { styled as styled106 } from "styled-components";
|
|
18971
|
+
import { isNonEmptyString as isNonEmptyString10 } from "@wistia/type-guards";
|
|
18972
|
+
import { jsx as jsx347, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
18973
|
+
var SliderContainer = styled106.div`
|
|
18513
18974
|
--wui-slider-track-color: var(--wui-gray-6);
|
|
18514
18975
|
--wui-slider-track-border-radius: var(--wui-border-radius-rounded);
|
|
18515
18976
|
--wui-slider-range-color: var(--wui-color-bg-fill);
|
|
@@ -18525,7 +18986,7 @@ var SliderContainer = styled101.div`
|
|
|
18525
18986
|
pointer-events: none;
|
|
18526
18987
|
}
|
|
18527
18988
|
`;
|
|
18528
|
-
var StyledSliderRoot =
|
|
18989
|
+
var StyledSliderRoot = styled106(RadixSliderRoot)`
|
|
18529
18990
|
position: relative;
|
|
18530
18991
|
display: flex;
|
|
18531
18992
|
align-items: center;
|
|
@@ -18533,20 +18994,20 @@ var StyledSliderRoot = styled101(RadixSliderRoot)`
|
|
|
18533
18994
|
touch-action: none;
|
|
18534
18995
|
width: 100%;
|
|
18535
18996
|
`;
|
|
18536
|
-
var StyledSliderTrack =
|
|
18997
|
+
var StyledSliderTrack = styled106(RadixSliderTrack)`
|
|
18537
18998
|
background-color: var(--wui-slider-track-color);
|
|
18538
18999
|
border-radius: var(--wui-slider-track-border-radius);
|
|
18539
19000
|
flex-grow: 1;
|
|
18540
19001
|
height: 6px;
|
|
18541
19002
|
position: relative;
|
|
18542
19003
|
`;
|
|
18543
|
-
var StyledSliderRange =
|
|
19004
|
+
var StyledSliderRange = styled106(RadixSliderRange)`
|
|
18544
19005
|
background-color: var(--wui-slider-range-color);
|
|
18545
19006
|
border-radius: var(--wui-slider-track-border-radius);
|
|
18546
19007
|
height: 100%;
|
|
18547
19008
|
position: absolute;
|
|
18548
19009
|
`;
|
|
18549
|
-
var StyledSliderThumb =
|
|
19010
|
+
var StyledSliderThumb = styled106(RadixSliderThumb)`
|
|
18550
19011
|
background-color: var(--wui-slider-thumb-color);
|
|
18551
19012
|
border-radius: var(--wui-border-radius-rounded);
|
|
18552
19013
|
cursor: grab;
|
|
@@ -18586,7 +19047,7 @@ var Slider = ({
|
|
|
18586
19047
|
"data-testid": dataTestId = "ui-slider",
|
|
18587
19048
|
...otherProps
|
|
18588
19049
|
}) => {
|
|
18589
|
-
if (!(
|
|
19050
|
+
if (!(isNonEmptyString10(ariaLabel) || isNonEmptyString10(ariaLabelledby))) {
|
|
18590
19051
|
throw new Error(
|
|
18591
19052
|
"UI Slider: Sliders should have an accessible name. Add a label using the aria-label or aria-labelledby prop."
|
|
18592
19053
|
);
|
|
@@ -18597,12 +19058,12 @@ var Slider = ({
|
|
|
18597
19058
|
onChange(newValue);
|
|
18598
19059
|
}
|
|
18599
19060
|
};
|
|
18600
|
-
return /* @__PURE__ */
|
|
19061
|
+
return /* @__PURE__ */ jsx347(
|
|
18601
19062
|
SliderContainer,
|
|
18602
19063
|
{
|
|
18603
19064
|
...otherProps,
|
|
18604
19065
|
"data-testid": dataTestId,
|
|
18605
|
-
children: /* @__PURE__ */
|
|
19066
|
+
children: /* @__PURE__ */ jsxs70(
|
|
18606
19067
|
StyledSliderRoot,
|
|
18607
19068
|
{
|
|
18608
19069
|
"aria-label": ariaLabel,
|
|
@@ -18615,8 +19076,8 @@ var Slider = ({
|
|
|
18615
19076
|
step,
|
|
18616
19077
|
...value ? { value } : {},
|
|
18617
19078
|
children: [
|
|
18618
|
-
/* @__PURE__ */
|
|
18619
|
-
values.map((_, index) => /* @__PURE__ */
|
|
19079
|
+
/* @__PURE__ */ jsx347(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ jsx347(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
|
|
19080
|
+
values.map((_, index) => /* @__PURE__ */ jsx347(
|
|
18620
19081
|
StyledSliderThumb,
|
|
18621
19082
|
{
|
|
18622
19083
|
"data-testid": `${dataTestId}-thumb-${index}`
|
|
@@ -18632,11 +19093,11 @@ var Slider = ({
|
|
|
18632
19093
|
Slider.displayName = "Slider_UI";
|
|
18633
19094
|
|
|
18634
19095
|
// src/components/SplitButton/SplitButton.tsx
|
|
18635
|
-
import { styled as
|
|
18636
|
-
import { isNotNil as
|
|
19096
|
+
import { styled as styled107 } from "styled-components";
|
|
19097
|
+
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
18637
19098
|
import { cloneElement as cloneElement9 } from "react";
|
|
18638
|
-
import { jsx as
|
|
18639
|
-
var StyledSplitButton =
|
|
19099
|
+
import { jsx as jsx348, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
19100
|
+
var StyledSplitButton = styled107.span`
|
|
18640
19101
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
18641
19102
|
white-space: nowrap;
|
|
18642
19103
|
|
|
@@ -18657,7 +19118,7 @@ var StyledSplitButton = styled102.span`
|
|
|
18657
19118
|
var SplitButton = ({
|
|
18658
19119
|
children,
|
|
18659
19120
|
menuLabel = "Select an option",
|
|
18660
|
-
menuIcon = /* @__PURE__ */
|
|
19121
|
+
menuIcon = /* @__PURE__ */ jsx348(Icon, { type: "caret-down" }),
|
|
18661
19122
|
menuItems,
|
|
18662
19123
|
disabled = false,
|
|
18663
19124
|
colorScheme = "inherit",
|
|
@@ -18668,8 +19129,8 @@ var SplitButton = ({
|
|
|
18668
19129
|
menuProps = {},
|
|
18669
19130
|
...props
|
|
18670
19131
|
}) => {
|
|
18671
|
-
return /* @__PURE__ */
|
|
18672
|
-
/* @__PURE__ */
|
|
19132
|
+
return /* @__PURE__ */ jsxs71(StyledSplitButton, { $colorScheme: colorScheme, children: [
|
|
19133
|
+
/* @__PURE__ */ jsx348(
|
|
18673
19134
|
Button,
|
|
18674
19135
|
{
|
|
18675
19136
|
disabled,
|
|
@@ -18680,12 +19141,12 @@ var SplitButton = ({
|
|
|
18680
19141
|
children
|
|
18681
19142
|
}
|
|
18682
19143
|
),
|
|
18683
|
-
|
|
19144
|
+
isNotNil41(menuItems) && /* @__PURE__ */ jsx348(
|
|
18684
19145
|
Menu,
|
|
18685
19146
|
{
|
|
18686
19147
|
...menuProps,
|
|
18687
19148
|
disabled,
|
|
18688
|
-
trigger: /* @__PURE__ */
|
|
19149
|
+
trigger: /* @__PURE__ */ jsx348(
|
|
18689
19150
|
IconButton,
|
|
18690
19151
|
{
|
|
18691
19152
|
disabled,
|
|
@@ -18699,31 +19160,31 @@ var SplitButton = ({
|
|
|
18699
19160
|
children: menuItems
|
|
18700
19161
|
}
|
|
18701
19162
|
),
|
|
18702
|
-
|
|
19163
|
+
isNotNil41(secondaryAction) && cloneElement9(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
|
|
18703
19164
|
] });
|
|
18704
19165
|
};
|
|
18705
19166
|
SplitButton.displayName = "SplitButton_UI";
|
|
18706
19167
|
|
|
18707
19168
|
// src/components/Table/Table.tsx
|
|
18708
|
-
import { styled as
|
|
18709
|
-
import { jsx as
|
|
18710
|
-
var StyledTable =
|
|
19169
|
+
import { styled as styled108, css as css51 } from "styled-components";
|
|
19170
|
+
import { jsx as jsx349 } from "react/jsx-runtime";
|
|
19171
|
+
var StyledTable = styled108.table`
|
|
18711
19172
|
width: 100%;
|
|
18712
19173
|
border-collapse: collapse;
|
|
18713
19174
|
|
|
18714
|
-
${({ $divided }) => $divided &&
|
|
19175
|
+
${({ $divided }) => $divided && css51`
|
|
18715
19176
|
tr {
|
|
18716
19177
|
border-bottom: 1px solid var(--wui-color-border);
|
|
18717
19178
|
}
|
|
18718
19179
|
`}
|
|
18719
19180
|
|
|
18720
|
-
${({ $striped }) => $striped &&
|
|
19181
|
+
${({ $striped }) => $striped && css51`
|
|
18721
19182
|
tbody tr:nth-child(even) {
|
|
18722
19183
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
18723
19184
|
}
|
|
18724
19185
|
`}
|
|
18725
19186
|
|
|
18726
|
-
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader &&
|
|
19187
|
+
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css51`
|
|
18727
19188
|
thead {
|
|
18728
19189
|
${visuallyHiddenStyle}
|
|
18729
19190
|
}
|
|
@@ -18736,7 +19197,7 @@ var Table = ({
|
|
|
18736
19197
|
visuallyHiddenHeader = false,
|
|
18737
19198
|
...props
|
|
18738
19199
|
}) => {
|
|
18739
|
-
return /* @__PURE__ */
|
|
19200
|
+
return /* @__PURE__ */ jsx349(
|
|
18740
19201
|
StyledTable,
|
|
18741
19202
|
{
|
|
18742
19203
|
$divided: divided,
|
|
@@ -18749,37 +19210,37 @@ var Table = ({
|
|
|
18749
19210
|
};
|
|
18750
19211
|
|
|
18751
19212
|
// src/components/Table/TableBody.tsx
|
|
18752
|
-
import { styled as
|
|
19213
|
+
import { styled as styled109 } from "styled-components";
|
|
18753
19214
|
|
|
18754
19215
|
// src/components/Table/TableSectionContext.ts
|
|
18755
19216
|
import { createContext as createContext11 } from "react";
|
|
18756
19217
|
var TableSectionContext = createContext11(null);
|
|
18757
19218
|
|
|
18758
19219
|
// src/components/Table/TableBody.tsx
|
|
18759
|
-
import { jsx as
|
|
18760
|
-
var StyledTableBody =
|
|
19220
|
+
import { jsx as jsx350 } from "react/jsx-runtime";
|
|
19221
|
+
var StyledTableBody = styled109.tbody`
|
|
18761
19222
|
width: 100%;
|
|
18762
19223
|
`;
|
|
18763
19224
|
var TableBody = ({ children, ...props }) => {
|
|
18764
|
-
return /* @__PURE__ */
|
|
19225
|
+
return /* @__PURE__ */ jsx350(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx350(StyledTableBody, { ...props, children }) });
|
|
18765
19226
|
};
|
|
18766
19227
|
|
|
18767
19228
|
// src/components/Table/TableCell.tsx
|
|
18768
19229
|
import { useContext as useContext17 } from "react";
|
|
18769
|
-
import { styled as
|
|
18770
|
-
import { jsx as
|
|
18771
|
-
var sharedStyles =
|
|
19230
|
+
import { styled as styled110, css as css52 } from "styled-components";
|
|
19231
|
+
import { jsx as jsx351 } from "react/jsx-runtime";
|
|
19232
|
+
var sharedStyles = css52`
|
|
18772
19233
|
color: var(--wui-color-text);
|
|
18773
19234
|
padding: var(--wui-space-02);
|
|
18774
19235
|
text-align: left;
|
|
18775
19236
|
`;
|
|
18776
|
-
var StyledTh =
|
|
19237
|
+
var StyledTh = styled110.th`
|
|
18777
19238
|
${sharedStyles}
|
|
18778
19239
|
font-size: var(--wui-typography-body-4-size);
|
|
18779
19240
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
18780
19241
|
line-height: var(--wui-typography-body-4-line-height);
|
|
18781
19242
|
`;
|
|
18782
|
-
var StyledTd =
|
|
19243
|
+
var StyledTd = styled110.td`
|
|
18783
19244
|
${sharedStyles}
|
|
18784
19245
|
font-size: var(--wui-typography-body-2-size);
|
|
18785
19246
|
font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -18788,45 +19249,45 @@ var StyledTd = styled105.td`
|
|
|
18788
19249
|
var TableCell = ({ children, ...props }) => {
|
|
18789
19250
|
const section = useContext17(TableSectionContext);
|
|
18790
19251
|
if (section === "head") {
|
|
18791
|
-
return /* @__PURE__ */
|
|
19252
|
+
return /* @__PURE__ */ jsx351(StyledTh, { ...props, children });
|
|
18792
19253
|
}
|
|
18793
|
-
return /* @__PURE__ */
|
|
19254
|
+
return /* @__PURE__ */ jsx351(StyledTd, { ...props, children });
|
|
18794
19255
|
};
|
|
18795
19256
|
|
|
18796
19257
|
// src/components/Table/TableFoot.tsx
|
|
18797
|
-
import { styled as
|
|
18798
|
-
import { jsx as
|
|
18799
|
-
var StyledTableFoot =
|
|
19258
|
+
import { styled as styled111 } from "styled-components";
|
|
19259
|
+
import { jsx as jsx352 } from "react/jsx-runtime";
|
|
19260
|
+
var StyledTableFoot = styled111.tfoot`
|
|
18800
19261
|
width: 100%;
|
|
18801
19262
|
`;
|
|
18802
19263
|
var TableFoot = ({ children, ...props }) => {
|
|
18803
|
-
return /* @__PURE__ */
|
|
19264
|
+
return /* @__PURE__ */ jsx352(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx352(StyledTableFoot, { ...props, children }) });
|
|
18804
19265
|
};
|
|
18805
19266
|
|
|
18806
19267
|
// src/components/Table/TableHead.tsx
|
|
18807
|
-
import { styled as
|
|
18808
|
-
import { jsx as
|
|
18809
|
-
var StyledThead =
|
|
19268
|
+
import { styled as styled112 } from "styled-components";
|
|
19269
|
+
import { jsx as jsx353 } from "react/jsx-runtime";
|
|
19270
|
+
var StyledThead = styled112.thead`
|
|
18810
19271
|
width: 100%;
|
|
18811
19272
|
`;
|
|
18812
19273
|
var TableHead = ({ children, ...props }) => {
|
|
18813
|
-
return /* @__PURE__ */
|
|
19274
|
+
return /* @__PURE__ */ jsx353(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx353(StyledThead, { ...props, children }) });
|
|
18814
19275
|
};
|
|
18815
19276
|
|
|
18816
19277
|
// src/components/Table/TableRow.tsx
|
|
18817
|
-
import { styled as
|
|
18818
|
-
import { jsx as
|
|
18819
|
-
var StyledTableRow =
|
|
19278
|
+
import { styled as styled113 } from "styled-components";
|
|
19279
|
+
import { jsx as jsx354 } from "react/jsx-runtime";
|
|
19280
|
+
var StyledTableRow = styled113.tr`
|
|
18820
19281
|
width: 100%;
|
|
18821
19282
|
`;
|
|
18822
19283
|
var TableRow = ({ children, ...props }) => {
|
|
18823
|
-
return /* @__PURE__ */
|
|
19284
|
+
return /* @__PURE__ */ jsx354(StyledTableRow, { ...props, children });
|
|
18824
19285
|
};
|
|
18825
19286
|
|
|
18826
19287
|
// src/components/Tabs/Tabs.tsx
|
|
18827
19288
|
import { Root as RadixTabsRoot } from "@radix-ui/react-tabs";
|
|
18828
19289
|
import { useCallback as useCallback19, useState as useState26 } from "react";
|
|
18829
|
-
import { isNotNil as
|
|
19290
|
+
import { isNotNil as isNotNil42 } from "@wistia/type-guards";
|
|
18830
19291
|
|
|
18831
19292
|
// src/components/Tabs/useTabsValue.tsx
|
|
18832
19293
|
import { createContext as createContext12, useContext as useContext18 } from "react";
|
|
@@ -18841,7 +19302,7 @@ var useTabsValue = () => {
|
|
|
18841
19302
|
};
|
|
18842
19303
|
|
|
18843
19304
|
// src/components/Tabs/Tabs.tsx
|
|
18844
|
-
import { jsx as
|
|
19305
|
+
import { jsx as jsx355 } from "react/jsx-runtime";
|
|
18845
19306
|
var Tabs = ({
|
|
18846
19307
|
children,
|
|
18847
19308
|
value: valueProp,
|
|
@@ -18863,48 +19324,48 @@ var Tabs = ({
|
|
|
18863
19324
|
...props,
|
|
18864
19325
|
onValueChange
|
|
18865
19326
|
};
|
|
18866
|
-
if (
|
|
19327
|
+
if (isNotNil42(value)) {
|
|
18867
19328
|
rootProps.value = value;
|
|
18868
19329
|
}
|
|
18869
|
-
if (
|
|
19330
|
+
if (isNotNil42(defaultValue)) {
|
|
18870
19331
|
rootProps.defaultValue = defaultValue;
|
|
18871
19332
|
}
|
|
18872
|
-
return /* @__PURE__ */
|
|
19333
|
+
return /* @__PURE__ */ jsx355(RadixTabsRoot, { ...rootProps, children: /* @__PURE__ */ jsx355(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ jsx355(SelectedItemStyleProvider, { children }) }) });
|
|
18873
19334
|
};
|
|
18874
19335
|
Tabs.displayName = "Tabs_UI";
|
|
18875
19336
|
|
|
18876
19337
|
// src/components/Tabs/TabsContent.tsx
|
|
18877
19338
|
import { Content as RadixTabsContent } from "@radix-ui/react-tabs";
|
|
18878
|
-
import { jsx as
|
|
19339
|
+
import { jsx as jsx356 } from "react/jsx-runtime";
|
|
18879
19340
|
var TabsContent = ({ children, value }) => {
|
|
18880
|
-
return /* @__PURE__ */
|
|
19341
|
+
return /* @__PURE__ */ jsx356(RadixTabsContent, { value, children });
|
|
18881
19342
|
};
|
|
18882
19343
|
TabsContent.displayName = "TabsContent_UI";
|
|
18883
19344
|
|
|
18884
19345
|
// src/components/Tabs/TabsList.tsx
|
|
18885
19346
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
18886
|
-
import { styled as
|
|
19347
|
+
import { styled as styled115 } from "styled-components";
|
|
18887
19348
|
|
|
18888
19349
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
18889
19350
|
import { isUndefined as isUndefined6 } from "@wistia/type-guards";
|
|
18890
19351
|
|
|
18891
19352
|
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
18892
|
-
import { styled as
|
|
18893
|
-
var TabsSelectedItemIndicatorDiv =
|
|
19353
|
+
import { styled as styled114 } from "styled-components";
|
|
19354
|
+
var TabsSelectedItemIndicatorDiv = styled114(SelectedItemIndicatorDiv)`
|
|
18894
19355
|
:has(button[role='tab']:focus-visible) > & {
|
|
18895
19356
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
18896
19357
|
}
|
|
18897
19358
|
`;
|
|
18898
19359
|
|
|
18899
19360
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
18900
|
-
import { jsx as
|
|
19361
|
+
import { jsx as jsx357 } from "react/jsx-runtime";
|
|
18901
19362
|
var SelectedTabIndicator = () => {
|
|
18902
19363
|
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
18903
19364
|
const selectedValue = useTabsValue();
|
|
18904
19365
|
if (selectedValue == null || isUndefined6(selectedItemIndicatorStyle)) {
|
|
18905
19366
|
return null;
|
|
18906
19367
|
}
|
|
18907
|
-
return /* @__PURE__ */
|
|
19368
|
+
return /* @__PURE__ */ jsx357(
|
|
18908
19369
|
TabsSelectedItemIndicatorDiv,
|
|
18909
19370
|
{
|
|
18910
19371
|
"data-wui-selected-item-indicator": true,
|
|
@@ -18914,19 +19375,19 @@ var SelectedTabIndicator = () => {
|
|
|
18914
19375
|
};
|
|
18915
19376
|
|
|
18916
19377
|
// src/components/Tabs/TabsList.tsx
|
|
18917
|
-
import { jsx as
|
|
18918
|
-
var StyledRadixTabsList =
|
|
19378
|
+
import { jsx as jsx358, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
19379
|
+
var StyledRadixTabsList = styled115(RadixTabList)`
|
|
18919
19380
|
${segmentedControlStyles}
|
|
18920
19381
|
`;
|
|
18921
19382
|
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
18922
|
-
return /* @__PURE__ */
|
|
19383
|
+
return /* @__PURE__ */ jsxs72(
|
|
18923
19384
|
StyledRadixTabsList,
|
|
18924
19385
|
{
|
|
18925
19386
|
$fullWidth: fullWidth,
|
|
18926
19387
|
"aria-label": props["aria-label"],
|
|
18927
19388
|
children: [
|
|
18928
19389
|
children,
|
|
18929
|
-
/* @__PURE__ */
|
|
19390
|
+
/* @__PURE__ */ jsx358(SelectedTabIndicator, {})
|
|
18930
19391
|
]
|
|
18931
19392
|
}
|
|
18932
19393
|
);
|
|
@@ -18934,13 +19395,13 @@ var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
|
18934
19395
|
TabsList.displayName = "TabsList_UI";
|
|
18935
19396
|
|
|
18936
19397
|
// src/components/Tabs/TabsTrigger.tsx
|
|
18937
|
-
import { forwardRef as
|
|
18938
|
-
import { isNotNil as
|
|
19398
|
+
import { forwardRef as forwardRef39, useEffect as useEffect23, useRef as useRef24 } from "react";
|
|
19399
|
+
import { isNotNil as isNotNil43 } from "@wistia/type-guards";
|
|
18939
19400
|
|
|
18940
19401
|
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
18941
|
-
import { styled as
|
|
19402
|
+
import { styled as styled116 } from "styled-components";
|
|
18942
19403
|
import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
|
|
18943
|
-
var StyledRadixTabsTrigger =
|
|
19404
|
+
var StyledRadixTabsTrigger = styled116(RadixTabsTrigger)`
|
|
18944
19405
|
${segmentedControlItemStyles}
|
|
18945
19406
|
|
|
18946
19407
|
&:focus-visible {
|
|
@@ -18949,8 +19410,8 @@ var StyledRadixTabsTrigger = styled111(RadixTabsTrigger)`
|
|
|
18949
19410
|
`;
|
|
18950
19411
|
|
|
18951
19412
|
// src/components/Tabs/TabsTrigger.tsx
|
|
18952
|
-
import { jsxs as
|
|
18953
|
-
var TabsTrigger =
|
|
19413
|
+
import { jsxs as jsxs73 } from "react/jsx-runtime";
|
|
19414
|
+
var TabsTrigger = forwardRef39(
|
|
18954
19415
|
({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
|
|
18955
19416
|
const selectedValue = useTabsValue();
|
|
18956
19417
|
const { setSelectedItemMeasurements } = useSelectedItemStyle();
|
|
@@ -18981,13 +19442,13 @@ var TabsTrigger = forwardRef36(
|
|
|
18981
19442
|
resizeObserver.disconnect();
|
|
18982
19443
|
};
|
|
18983
19444
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
18984
|
-
return /* @__PURE__ */
|
|
19445
|
+
return /* @__PURE__ */ jsxs73(
|
|
18985
19446
|
StyledRadixTabsTrigger,
|
|
18986
19447
|
{
|
|
18987
19448
|
...otherProps,
|
|
18988
19449
|
ref: combinedRef,
|
|
18989
|
-
$hasLabel:
|
|
18990
|
-
"aria-label":
|
|
19450
|
+
$hasLabel: isNotNil43(label),
|
|
19451
|
+
"aria-label": isNotNil43(label) ? void 0 : ariaLabel,
|
|
18991
19452
|
disabled,
|
|
18992
19453
|
value,
|
|
18993
19454
|
children: [
|
|
@@ -19001,10 +19462,10 @@ var TabsTrigger = forwardRef36(
|
|
|
19001
19462
|
TabsTrigger.displayName = "TabsTrigger_UI";
|
|
19002
19463
|
|
|
19003
19464
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
19004
|
-
import { styled as
|
|
19005
|
-
import { isNotNil as
|
|
19006
|
-
import { jsx as
|
|
19007
|
-
var StyledThumbnailBadge =
|
|
19465
|
+
import { styled as styled117 } from "styled-components";
|
|
19466
|
+
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
19467
|
+
import { jsx as jsx359, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
19468
|
+
var StyledThumbnailBadge = styled117.div`
|
|
19008
19469
|
align-items: center;
|
|
19009
19470
|
background-color: rgb(0 0 0 / 50%);
|
|
19010
19471
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -19030,30 +19491,30 @@ var StyledThumbnailBadge = styled112.div`
|
|
|
19030
19491
|
}
|
|
19031
19492
|
`;
|
|
19032
19493
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
19033
|
-
return /* @__PURE__ */
|
|
19034
|
-
|
|
19035
|
-
/* @__PURE__ */
|
|
19494
|
+
return /* @__PURE__ */ jsxs74(StyledThumbnailBadge, { ...props, children: [
|
|
19495
|
+
isNotNil44(icon) && icon,
|
|
19496
|
+
/* @__PURE__ */ jsx359("span", { children: label })
|
|
19036
19497
|
] });
|
|
19037
19498
|
};
|
|
19038
19499
|
ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
19039
19500
|
|
|
19040
19501
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
19041
|
-
import { forwardRef as
|
|
19042
|
-
import { styled as
|
|
19502
|
+
import { forwardRef as forwardRef40, useState as useState27, useRef as useRef25, useCallback as useCallback20, useMemo as useMemo17 } from "react";
|
|
19503
|
+
import { styled as styled119 } from "styled-components";
|
|
19043
19504
|
import {
|
|
19044
19505
|
isNil as isNil19,
|
|
19045
|
-
isNotNil as
|
|
19506
|
+
isNotNil as isNotNil47,
|
|
19046
19507
|
isUndefined as isUndefined7,
|
|
19047
19508
|
isEmptyString as isEmptyString2,
|
|
19048
19509
|
isString as isString4,
|
|
19049
|
-
isNonEmptyString as
|
|
19510
|
+
isNonEmptyString as isNonEmptyString11
|
|
19050
19511
|
} from "@wistia/type-guards";
|
|
19051
19512
|
|
|
19052
19513
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
19053
|
-
import { isNotNil as
|
|
19054
|
-
import { css as
|
|
19514
|
+
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
19515
|
+
import { css as css53 } from "styled-components";
|
|
19055
19516
|
var gradients = {
|
|
19056
|
-
defaultDarkOne:
|
|
19517
|
+
defaultDarkOne: css53`
|
|
19057
19518
|
background-color: #222d66;
|
|
19058
19519
|
background-image:
|
|
19059
19520
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -19061,7 +19522,7 @@ var gradients = {
|
|
|
19061
19522
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
19062
19523
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
19063
19524
|
`,
|
|
19064
|
-
defaultDarkTwo:
|
|
19525
|
+
defaultDarkTwo: css53`
|
|
19065
19526
|
background-color: #222d66;
|
|
19066
19527
|
background-image:
|
|
19067
19528
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -19069,7 +19530,7 @@ var gradients = {
|
|
|
19069
19530
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
19070
19531
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
19071
19532
|
`,
|
|
19072
|
-
defaultLightOne:
|
|
19533
|
+
defaultLightOne: css53`
|
|
19073
19534
|
background-color: #ccd5ff;
|
|
19074
19535
|
background-image:
|
|
19075
19536
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -19077,13 +19538,13 @@ var gradients = {
|
|
|
19077
19538
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
19078
19539
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
19079
19540
|
`,
|
|
19080
|
-
defaultLightTwo:
|
|
19541
|
+
defaultLightTwo: css53`
|
|
19081
19542
|
background-color: #ccd5ff;
|
|
19082
19543
|
background-image:
|
|
19083
19544
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
19084
19545
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
19085
19546
|
`,
|
|
19086
|
-
defaultMidOne:
|
|
19547
|
+
defaultMidOne: css53`
|
|
19087
19548
|
background-color: #6b84ff;
|
|
19088
19549
|
background-image:
|
|
19089
19550
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -19091,13 +19552,13 @@ var gradients = {
|
|
|
19091
19552
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
19092
19553
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
19093
19554
|
`,
|
|
19094
|
-
defaultMidTwo:
|
|
19555
|
+
defaultMidTwo: css53`
|
|
19095
19556
|
background-color: #6b84ff;
|
|
19096
19557
|
background-image:
|
|
19097
19558
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
19098
19559
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
19099
19560
|
`,
|
|
19100
|
-
green:
|
|
19561
|
+
green: css53`
|
|
19101
19562
|
background-color: #fafffa;
|
|
19102
19563
|
background-image:
|
|
19103
19564
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -19105,7 +19566,7 @@ var gradients = {
|
|
|
19105
19566
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
19106
19567
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
19107
19568
|
`,
|
|
19108
|
-
greenWithPop:
|
|
19569
|
+
greenWithPop: css53`
|
|
19109
19570
|
background-color: #fafffa;
|
|
19110
19571
|
background-image:
|
|
19111
19572
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -19113,7 +19574,7 @@ var gradients = {
|
|
|
19113
19574
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
19114
19575
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
19115
19576
|
`,
|
|
19116
|
-
pink:
|
|
19577
|
+
pink: css53`
|
|
19117
19578
|
background-color: #fffff0;
|
|
19118
19579
|
background-image:
|
|
19119
19580
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -19121,7 +19582,7 @@ var gradients = {
|
|
|
19121
19582
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
19122
19583
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
19123
19584
|
`,
|
|
19124
|
-
pinkWithPop:
|
|
19585
|
+
pinkWithPop: css53`
|
|
19125
19586
|
background-color: #fffff0;
|
|
19126
19587
|
background-image:
|
|
19127
19588
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -19129,7 +19590,7 @@ var gradients = {
|
|
|
19129
19590
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
19130
19591
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
19131
19592
|
`,
|
|
19132
|
-
playfulGradientOne:
|
|
19593
|
+
playfulGradientOne: css53`
|
|
19133
19594
|
background-color: #f7f8ff;
|
|
19134
19595
|
background-image:
|
|
19135
19596
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -19137,7 +19598,7 @@ var gradients = {
|
|
|
19137
19598
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
19138
19599
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
19139
19600
|
`,
|
|
19140
|
-
playfulGradientTwo:
|
|
19601
|
+
playfulGradientTwo: css53`
|
|
19141
19602
|
background-color: #f7f8ff;
|
|
19142
19603
|
background-image:
|
|
19143
19604
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -19145,13 +19606,13 @@ var gradients = {
|
|
|
19145
19606
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
19146
19607
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
19147
19608
|
`,
|
|
19148
|
-
purple:
|
|
19609
|
+
purple: css53`
|
|
19149
19610
|
background-color: #f2caff;
|
|
19150
19611
|
background-image:
|
|
19151
19612
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
19152
19613
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
19153
19614
|
`,
|
|
19154
|
-
purpleWithPop:
|
|
19615
|
+
purpleWithPop: css53`
|
|
19155
19616
|
background-color: #f2caff;
|
|
19156
19617
|
background-image:
|
|
19157
19618
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -19159,7 +19620,7 @@ var gradients = {
|
|
|
19159
19620
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
19160
19621
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
19161
19622
|
`,
|
|
19162
|
-
yellow:
|
|
19623
|
+
yellow: css53`
|
|
19163
19624
|
background-color: #fffff0;
|
|
19164
19625
|
background-image:
|
|
19165
19626
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -19167,7 +19628,7 @@ var gradients = {
|
|
|
19167
19628
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
19168
19629
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
19169
19630
|
`,
|
|
19170
|
-
yellowWithPop:
|
|
19631
|
+
yellowWithPop: css53`
|
|
19171
19632
|
background-color: #fffff0;
|
|
19172
19633
|
background-image:
|
|
19173
19634
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -19178,14 +19639,14 @@ var gradients = {
|
|
|
19178
19639
|
};
|
|
19179
19640
|
var gradientMap = Object.keys(gradients);
|
|
19180
19641
|
var getBackgroundGradient = (gradientName = void 0) => {
|
|
19181
|
-
return
|
|
19642
|
+
return isNotNil45(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
|
|
19182
19643
|
};
|
|
19183
19644
|
|
|
19184
19645
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
19185
|
-
import { styled as
|
|
19186
|
-
import { isNotNil as
|
|
19187
|
-
import { jsx as
|
|
19188
|
-
var ScrubLine =
|
|
19646
|
+
import { styled as styled118 } from "styled-components";
|
|
19647
|
+
import { isNotNil as isNotNil46 } from "@wistia/type-guards";
|
|
19648
|
+
import { jsx as jsx360, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
19649
|
+
var ScrubLine = styled118.div`
|
|
19189
19650
|
position: absolute;
|
|
19190
19651
|
top: 0;
|
|
19191
19652
|
height: 100%;
|
|
@@ -19277,8 +19738,8 @@ var ThumbnailStoryboardViewer = ({
|
|
|
19277
19738
|
);
|
|
19278
19739
|
const backgroundSize = `${scaledStoryboardWidth}px ${scaledStoryboardHeight}px`;
|
|
19279
19740
|
const backgroundImage = `url(${storyboardUrl})`;
|
|
19280
|
-
const showScrubLine =
|
|
19281
|
-
const scrubLinePosition =
|
|
19741
|
+
const showScrubLine = isNotNil46(cursorPosition);
|
|
19742
|
+
const scrubLinePosition = isNotNil46(cursorPosition) ? `${cursorPosition - 1}px` : "0";
|
|
19282
19743
|
const viewerStyles = {
|
|
19283
19744
|
position: "relative",
|
|
19284
19745
|
overflow: "hidden",
|
|
@@ -19296,14 +19757,14 @@ var ThumbnailStoryboardViewer = ({
|
|
|
19296
19757
|
backgroundPosition,
|
|
19297
19758
|
backgroundSize
|
|
19298
19759
|
};
|
|
19299
|
-
return /* @__PURE__ */
|
|
19760
|
+
return /* @__PURE__ */ jsxs75(
|
|
19300
19761
|
"div",
|
|
19301
19762
|
{
|
|
19302
19763
|
...props,
|
|
19303
19764
|
style: viewerStyles,
|
|
19304
19765
|
children: [
|
|
19305
|
-
/* @__PURE__ */
|
|
19306
|
-
showScrubLine ? /* @__PURE__ */
|
|
19766
|
+
/* @__PURE__ */ jsx360("div", { style: storyboardStyles }),
|
|
19767
|
+
showScrubLine ? /* @__PURE__ */ jsx360(
|
|
19307
19768
|
ScrubLine,
|
|
19308
19769
|
{
|
|
19309
19770
|
style: {
|
|
@@ -19317,7 +19778,7 @@ var ThumbnailStoryboardViewer = ({
|
|
|
19317
19778
|
};
|
|
19318
19779
|
|
|
19319
19780
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
19320
|
-
import { jsx as
|
|
19781
|
+
import { jsx as jsx361, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
19321
19782
|
var WIDE_ASPECT_RATIO = 16 / 9;
|
|
19322
19783
|
var SQUARE_ASPECT_RATIO = 1;
|
|
19323
19784
|
var getAspectRatioValue = (aspectRatio) => {
|
|
@@ -19326,19 +19787,19 @@ var getAspectRatioValue = (aspectRatio) => {
|
|
|
19326
19787
|
}
|
|
19327
19788
|
return WIDE_ASPECT_RATIO;
|
|
19328
19789
|
};
|
|
19329
|
-
var WideThumbnailImage =
|
|
19790
|
+
var WideThumbnailImage = styled119.img`
|
|
19330
19791
|
height: 100%;
|
|
19331
19792
|
object-fit: cover;
|
|
19332
19793
|
width: 100%;
|
|
19333
19794
|
`;
|
|
19334
|
-
var SquareThumbnailImage =
|
|
19795
|
+
var SquareThumbnailImage = styled119.img`
|
|
19335
19796
|
backdrop-filter: blur(8px);
|
|
19336
19797
|
object-fit: contain;
|
|
19337
19798
|
width: 100%;
|
|
19338
19799
|
`;
|
|
19339
19800
|
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
19340
19801
|
if (thumbnailImageType === "wide") {
|
|
19341
|
-
return /* @__PURE__ */
|
|
19802
|
+
return /* @__PURE__ */ jsx361(
|
|
19342
19803
|
WideThumbnailImage,
|
|
19343
19804
|
{
|
|
19344
19805
|
alt: "",
|
|
@@ -19347,7 +19808,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
19347
19808
|
}
|
|
19348
19809
|
);
|
|
19349
19810
|
}
|
|
19350
|
-
return /* @__PURE__ */
|
|
19811
|
+
return /* @__PURE__ */ jsx361(
|
|
19351
19812
|
SquareThumbnailImage,
|
|
19352
19813
|
{
|
|
19353
19814
|
alt: "",
|
|
@@ -19356,7 +19817,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
19356
19817
|
}
|
|
19357
19818
|
);
|
|
19358
19819
|
};
|
|
19359
|
-
var StyledThumbnailContainer =
|
|
19820
|
+
var StyledThumbnailContainer = styled119.div`
|
|
19360
19821
|
container-type: size;
|
|
19361
19822
|
aspect-ratio: ${({ $aspectRatio }) => getAspectRatioValue($aspectRatio)};
|
|
19362
19823
|
width: ${({ $width }) => $width};
|
|
@@ -19364,10 +19825,10 @@ var StyledThumbnailContainer = styled114.div`
|
|
|
19364
19825
|
overflow: hidden;
|
|
19365
19826
|
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
19366
19827
|
`;
|
|
19367
|
-
var StyledThumbnail =
|
|
19828
|
+
var StyledThumbnail = styled119.div`
|
|
19368
19829
|
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
19369
19830
|
|
|
19370
|
-
background-image: ${({ $backgroundUrl }) =>
|
|
19831
|
+
background-image: ${({ $backgroundUrl }) => isNotNil47($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
19371
19832
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
19372
19833
|
// if we don't have $backgroundUrl show a gradient
|
|
19373
19834
|
isNil19($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
|
|
@@ -19399,7 +19860,7 @@ var StoryboardRenderer = ({
|
|
|
19399
19860
|
const { url, width: sbWidth, height: sbHeight, frameHeight, frameWidth, frameCount } = storyboard;
|
|
19400
19861
|
const targetWidth = isString4(width) ? parseInt(width, 10) : Number(width);
|
|
19401
19862
|
const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
|
|
19402
|
-
return /* @__PURE__ */
|
|
19863
|
+
return /* @__PURE__ */ jsx361(
|
|
19403
19864
|
ThumbnailStoryboardViewer,
|
|
19404
19865
|
{
|
|
19405
19866
|
cursorPosition: effectiveCursorPosition,
|
|
@@ -19425,9 +19886,9 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
|
|
|
19425
19886
|
};
|
|
19426
19887
|
};
|
|
19427
19888
|
var hasValidThumbnailUrl = (thumbnailUrl) => {
|
|
19428
|
-
return
|
|
19889
|
+
return isNotNil47(thumbnailUrl) && isNonEmptyString11(thumbnailUrl);
|
|
19429
19890
|
};
|
|
19430
|
-
var Thumbnail =
|
|
19891
|
+
var Thumbnail = forwardRef40(
|
|
19431
19892
|
({
|
|
19432
19893
|
gradientBackground = "defaultMidOne",
|
|
19433
19894
|
thumbnailImageType = "wide",
|
|
@@ -19448,7 +19909,7 @@ var Thumbnail = forwardRef37(
|
|
|
19448
19909
|
() => thumbnailImageType === "square" && hasValidThumbnailUrl(thumbnailUrl) ? thumbnailUrl : void 0,
|
|
19449
19910
|
[thumbnailImageType, thumbnailUrl]
|
|
19450
19911
|
);
|
|
19451
|
-
const isScrubbable =
|
|
19912
|
+
const isScrubbable = isNotNil47(storyboard);
|
|
19452
19913
|
const trackStoryboardLoadStatus = useCallback20(() => {
|
|
19453
19914
|
if (storyboardElementRef.current || !storyboard) {
|
|
19454
19915
|
return storyboardElementRef.current;
|
|
@@ -19489,7 +19950,7 @@ var Thumbnail = forwardRef37(
|
|
|
19489
19950
|
}, [isScrubbable, isMouseOver, isStoryboardReady, storyboard, height]);
|
|
19490
19951
|
let thumbnailContent = null;
|
|
19491
19952
|
if (storyboard && shouldRenderStoryboard) {
|
|
19492
|
-
thumbnailContent = /* @__PURE__ */
|
|
19953
|
+
thumbnailContent = /* @__PURE__ */ jsx361(
|
|
19493
19954
|
StoryboardRenderer,
|
|
19494
19955
|
{
|
|
19495
19956
|
aspectRatio,
|
|
@@ -19501,7 +19962,7 @@ var Thumbnail = forwardRef37(
|
|
|
19501
19962
|
}
|
|
19502
19963
|
);
|
|
19503
19964
|
} else if (hasValidThumbnailUrl(thumbnailUrl)) {
|
|
19504
|
-
thumbnailContent = /* @__PURE__ */
|
|
19965
|
+
thumbnailContent = /* @__PURE__ */ jsx361(
|
|
19505
19966
|
ThumbnailImage,
|
|
19506
19967
|
{
|
|
19507
19968
|
thumbnailImageType,
|
|
@@ -19511,7 +19972,7 @@ var Thumbnail = forwardRef37(
|
|
|
19511
19972
|
} else {
|
|
19512
19973
|
thumbnailContent = null;
|
|
19513
19974
|
}
|
|
19514
|
-
return /* @__PURE__ */
|
|
19975
|
+
return /* @__PURE__ */ jsx361(
|
|
19515
19976
|
StyledThumbnailContainer,
|
|
19516
19977
|
{
|
|
19517
19978
|
ref,
|
|
@@ -19524,14 +19985,14 @@ var Thumbnail = forwardRef37(
|
|
|
19524
19985
|
onMouseOut: handleMouseOut,
|
|
19525
19986
|
role: "presentation",
|
|
19526
19987
|
...props,
|
|
19527
|
-
children: /* @__PURE__ */
|
|
19988
|
+
children: /* @__PURE__ */ jsxs76(
|
|
19528
19989
|
StyledThumbnail,
|
|
19529
19990
|
{
|
|
19530
19991
|
$backgroundUrl: backgroundUrl,
|
|
19531
19992
|
$gradientBackground: gradientBackground,
|
|
19532
19993
|
"data-testid": "thumbnail-inner",
|
|
19533
19994
|
children: [
|
|
19534
|
-
|
|
19995
|
+
isNotNil47(children) ? children : null,
|
|
19535
19996
|
thumbnailContent
|
|
19536
19997
|
]
|
|
19537
19998
|
}
|
|
@@ -19544,16 +20005,16 @@ Thumbnail.displayName = "Thumbnail_UI";
|
|
|
19544
20005
|
|
|
19545
20006
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
19546
20007
|
import { cloneElement as cloneElement10, Children as Children11 } from "react";
|
|
19547
|
-
import { styled as
|
|
20008
|
+
import { styled as styled120 } from "styled-components";
|
|
19548
20009
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
19549
|
-
import { jsx as
|
|
19550
|
-
var ThumbnailCollageContainer =
|
|
20010
|
+
import { jsx as jsx362 } from "react/jsx-runtime";
|
|
20011
|
+
var ThumbnailCollageContainer = styled120.div`
|
|
19551
20012
|
container-type: size;
|
|
19552
20013
|
width: 100%;
|
|
19553
20014
|
aspect-ratio: 16 / 9;
|
|
19554
20015
|
display: flex;
|
|
19555
20016
|
`;
|
|
19556
|
-
var StyledThumbnailCollage =
|
|
20017
|
+
var StyledThumbnailCollage = styled120.div`
|
|
19557
20018
|
display: grid;
|
|
19558
20019
|
gap: var(--wui-space-01);
|
|
19559
20020
|
width: 100%;
|
|
@@ -19611,7 +20072,7 @@ var ThumbnailCollage = ({
|
|
|
19611
20072
|
});
|
|
19612
20073
|
}) : [
|
|
19613
20074
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
19614
|
-
/* @__PURE__ */
|
|
20075
|
+
/* @__PURE__ */ jsx362(
|
|
19615
20076
|
Thumbnail,
|
|
19616
20077
|
{
|
|
19617
20078
|
gradientBackground,
|
|
@@ -19620,7 +20081,7 @@ var ThumbnailCollage = ({
|
|
|
19620
20081
|
"fallback"
|
|
19621
20082
|
)
|
|
19622
20083
|
];
|
|
19623
|
-
return /* @__PURE__ */
|
|
20084
|
+
return /* @__PURE__ */ jsx362(ThumbnailCollageContainer, { children: /* @__PURE__ */ jsx362(
|
|
19624
20085
|
StyledThumbnailCollage,
|
|
19625
20086
|
{
|
|
19626
20087
|
$gradientBackground: gradientBackground,
|
|
@@ -19632,26 +20093,26 @@ var ThumbnailCollage = ({
|
|
|
19632
20093
|
};
|
|
19633
20094
|
|
|
19634
20095
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
19635
|
-
import { styled as
|
|
19636
|
-
import { isNotNil as
|
|
19637
|
-
import { jsx as
|
|
20096
|
+
import { styled as styled121, css as css54 } from "styled-components";
|
|
20097
|
+
import { isNotNil as isNotNil48 } from "@wistia/type-guards";
|
|
20098
|
+
import { jsx as jsx363, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
19638
20099
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
19639
20100
|
if (iconOnly) {
|
|
19640
|
-
return /* @__PURE__ */
|
|
20101
|
+
return /* @__PURE__ */ jsx363(
|
|
19641
20102
|
"g",
|
|
19642
20103
|
{
|
|
19643
20104
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
19644
20105
|
fill: brandmarkColor,
|
|
19645
|
-
children: /* @__PURE__ */
|
|
20106
|
+
children: /* @__PURE__ */ jsx363("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" })
|
|
19646
20107
|
}
|
|
19647
20108
|
);
|
|
19648
20109
|
}
|
|
19649
|
-
return /* @__PURE__ */
|
|
20110
|
+
return /* @__PURE__ */ jsx363(
|
|
19650
20111
|
"g",
|
|
19651
20112
|
{
|
|
19652
20113
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
19653
20114
|
fill: brandmarkColor,
|
|
19654
|
-
children: /* @__PURE__ */
|
|
20115
|
+
children: /* @__PURE__ */ jsx363("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" })
|
|
19655
20116
|
}
|
|
19656
20117
|
);
|
|
19657
20118
|
};
|
|
@@ -19659,12 +20120,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
19659
20120
|
if (iconOnly) {
|
|
19660
20121
|
return null;
|
|
19661
20122
|
}
|
|
19662
|
-
return /* @__PURE__ */
|
|
20123
|
+
return /* @__PURE__ */ jsx363(
|
|
19663
20124
|
"g",
|
|
19664
20125
|
{
|
|
19665
20126
|
"data-testid": "ui-wistia-logo-logotype",
|
|
19666
20127
|
fill: logotypeColor,
|
|
19667
|
-
children: /* @__PURE__ */
|
|
20128
|
+
children: /* @__PURE__ */ jsx363("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" })
|
|
19668
20129
|
}
|
|
19669
20130
|
);
|
|
19670
20131
|
};
|
|
@@ -19674,7 +20135,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
19674
20135
|
}
|
|
19675
20136
|
return "0 0 144 31.47";
|
|
19676
20137
|
};
|
|
19677
|
-
var WistiaLogoComponent =
|
|
20138
|
+
var WistiaLogoComponent = styled121.svg`
|
|
19678
20139
|
height: ${({ height }) => `${height}px`};
|
|
19679
20140
|
|
|
19680
20141
|
/* ensure it will always fit on mobile */
|
|
@@ -19690,12 +20151,12 @@ var WistiaLogoComponent = styled116.svg`
|
|
|
19690
20151
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
19691
20152
|
if ($opticallyCentered) {
|
|
19692
20153
|
if ($iconOnly) {
|
|
19693
|
-
return
|
|
20154
|
+
return css54`
|
|
19694
20155
|
aspect-ratio: 1;
|
|
19695
20156
|
padding: 11.85% 3.12% 13.91%;
|
|
19696
20157
|
`;
|
|
19697
20158
|
}
|
|
19698
|
-
return
|
|
20159
|
+
return css54`
|
|
19699
20160
|
aspect-ratio: 127 / 32;
|
|
19700
20161
|
`;
|
|
19701
20162
|
}
|
|
@@ -19732,7 +20193,7 @@ var WistiaLogo = ({
|
|
|
19732
20193
|
};
|
|
19733
20194
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
19734
20195
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
19735
|
-
const Logo = /* @__PURE__ */
|
|
20196
|
+
const Logo = /* @__PURE__ */ jsxs77(
|
|
19736
20197
|
WistiaLogoComponent,
|
|
19737
20198
|
{
|
|
19738
20199
|
$hoverColor: hoverColor,
|
|
@@ -19745,14 +20206,14 @@ var WistiaLogo = ({
|
|
|
19745
20206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19746
20207
|
...props,
|
|
19747
20208
|
children: [
|
|
19748
|
-
/* @__PURE__ */
|
|
19749
|
-
|
|
20209
|
+
/* @__PURE__ */ jsx363("title", { children: title }),
|
|
20210
|
+
isNotNil48(description) ? /* @__PURE__ */ jsx363("desc", { children: description }) : null,
|
|
19750
20211
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
19751
20212
|
renderLogotype(logotypeColor, iconOnly)
|
|
19752
20213
|
]
|
|
19753
20214
|
}
|
|
19754
20215
|
);
|
|
19755
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
20216
|
+
return href !== void 0 ? /* @__PURE__ */ jsx363("a", { href, children: Logo }) : Logo;
|
|
19756
20217
|
};
|
|
19757
20218
|
WistiaLogo.displayName = "WistiaLogo_UI";
|
|
19758
20219
|
export {
|
|
@@ -19768,6 +20229,8 @@ export {
|
|
|
19768
20229
|
Card,
|
|
19769
20230
|
Center,
|
|
19770
20231
|
Checkbox,
|
|
20232
|
+
CheckboxCard,
|
|
20233
|
+
CheckboxCardImage,
|
|
19771
20234
|
CheckboxGroup,
|
|
19772
20235
|
CheckboxMenuItem,
|
|
19773
20236
|
ClickRegion,
|
|
@@ -19851,6 +20314,7 @@ export {
|
|
|
19851
20314
|
ModalCallouts,
|
|
19852
20315
|
PersistentFileAmountLimitValidator,
|
|
19853
20316
|
Popover,
|
|
20317
|
+
PreviewCard,
|
|
19854
20318
|
ProgressBar,
|
|
19855
20319
|
Radio,
|
|
19856
20320
|
RadioCard,
|