@wistia/ui 0.21.0 → 0.21.1
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 +47 -1
- package/dist/index.js +491 -395
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
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
|
|
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,107 @@ 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
|
+
...props
|
|
16068
|
+
}) => {
|
|
16069
|
+
const style = {
|
|
16070
|
+
"--wui-preview-card-max-width": maxWidth,
|
|
16071
|
+
"--wui-preview-card-max-height": maxHeight
|
|
16072
|
+
};
|
|
16073
|
+
return /* @__PURE__ */ jsxs49(
|
|
16074
|
+
Root2,
|
|
16075
|
+
{
|
|
16076
|
+
closeDelay,
|
|
16077
|
+
openDelay,
|
|
16078
|
+
children: [
|
|
16079
|
+
/* @__PURE__ */ jsx313(Trigger2, { asChild: true, children: trigger }),
|
|
16080
|
+
/* @__PURE__ */ jsx313(Portal, { children: /* @__PURE__ */ jsx313(
|
|
16081
|
+
StyledContent2,
|
|
16082
|
+
{
|
|
16083
|
+
$colorScheme: colorScheme,
|
|
16084
|
+
$paddingSize: paddingSize,
|
|
16085
|
+
sideOffset: 8,
|
|
16086
|
+
...props,
|
|
16087
|
+
$unstyled: unstyled,
|
|
16088
|
+
style,
|
|
16089
|
+
children: /* @__PURE__ */ jsx313("div", { children })
|
|
16090
|
+
}
|
|
16091
|
+
) })
|
|
16092
|
+
]
|
|
16093
|
+
}
|
|
16094
|
+
);
|
|
16095
|
+
};
|
|
16096
|
+
PreviewCard.displayName = "PreviewCard_UI";
|
|
16097
|
+
|
|
16003
16098
|
// src/components/InputClickToCopy/InputClickToCopy.tsx
|
|
16004
|
-
import { styled as
|
|
16099
|
+
import { styled as styled74 } from "styled-components";
|
|
16005
16100
|
import { forwardRef as forwardRef23, useEffect as useEffect19, useState as useState22 } from "react";
|
|
16006
16101
|
import { isFunction as isFunction3 } from "@wistia/type-guards";
|
|
16007
|
-
import { jsx as
|
|
16008
|
-
var StyledIconButton =
|
|
16102
|
+
import { jsx as jsx314 } from "react/jsx-runtime";
|
|
16103
|
+
var StyledIconButton = styled74(IconButton)`
|
|
16009
16104
|
/* override size for icon button since prop gets changed by Input */
|
|
16010
16105
|
height: var(--icon-button-size-sm);
|
|
16011
16106
|
width: var(--icon-button-size-sm);
|
|
@@ -16044,7 +16139,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
16044
16139
|
return value;
|
|
16045
16140
|
});
|
|
16046
16141
|
};
|
|
16047
|
-
return /* @__PURE__ */
|
|
16142
|
+
return /* @__PURE__ */ jsx314(
|
|
16048
16143
|
Input,
|
|
16049
16144
|
{
|
|
16050
16145
|
"aria-label": "Click to Copy",
|
|
@@ -16052,7 +16147,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
16052
16147
|
ref,
|
|
16053
16148
|
disabled,
|
|
16054
16149
|
readOnly: true,
|
|
16055
|
-
rightIcon: /* @__PURE__ */
|
|
16150
|
+
rightIcon: /* @__PURE__ */ jsx314(
|
|
16056
16151
|
StyledIconButton,
|
|
16057
16152
|
{
|
|
16058
16153
|
colorScheme: isCopied ? "success" : "inherit",
|
|
@@ -16060,7 +16155,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
16060
16155
|
label: "Copy to clipboard",
|
|
16061
16156
|
onClick: handleClick,
|
|
16062
16157
|
variant: "ghost",
|
|
16063
|
-
children: isCopied ? /* @__PURE__ */
|
|
16158
|
+
children: isCopied ? /* @__PURE__ */ jsx314(Icon, { type: "checkmark-circle" }) : /* @__PURE__ */ jsx314(Icon, { type: "save-as-copy" })
|
|
16064
16159
|
}
|
|
16065
16160
|
),
|
|
16066
16161
|
value
|
|
@@ -16071,11 +16166,11 @@ var InputClickToCopy = forwardRef23(
|
|
|
16071
16166
|
InputClickToCopy.displayName = "InputClickToCopy_UI";
|
|
16072
16167
|
|
|
16073
16168
|
// src/components/InputPassword/InputPassword.tsx
|
|
16074
|
-
import { styled as
|
|
16169
|
+
import { styled as styled75 } from "styled-components";
|
|
16075
16170
|
import { forwardRef as forwardRef24, useState as useState23 } from "react";
|
|
16076
16171
|
import { isFunction as isFunction4 } from "@wistia/type-guards";
|
|
16077
|
-
import { jsx as
|
|
16078
|
-
var StyledIconButton2 =
|
|
16172
|
+
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
16173
|
+
var StyledIconButton2 = styled75(IconButton)`
|
|
16079
16174
|
/* override size for icon button since prop gets changed by Input */
|
|
16080
16175
|
height: var(--icon-button-size-sm);
|
|
16081
16176
|
width: var(--icon-button-size-sm);
|
|
@@ -16093,13 +16188,13 @@ var InputPassword = forwardRef24(
|
|
|
16093
16188
|
onVisibilityToggle(newVisibility);
|
|
16094
16189
|
}
|
|
16095
16190
|
};
|
|
16096
|
-
return /* @__PURE__ */
|
|
16191
|
+
return /* @__PURE__ */ jsx315(
|
|
16097
16192
|
Input,
|
|
16098
16193
|
{
|
|
16099
16194
|
...props,
|
|
16100
16195
|
ref,
|
|
16101
16196
|
disabled,
|
|
16102
|
-
rightIcon: /* @__PURE__ */
|
|
16197
|
+
rightIcon: /* @__PURE__ */ jsx315(
|
|
16103
16198
|
StyledIconButton2,
|
|
16104
16199
|
{
|
|
16105
16200
|
disabled,
|
|
@@ -16107,7 +16202,7 @@ var InputPassword = forwardRef24(
|
|
|
16107
16202
|
onClick: handleClick,
|
|
16108
16203
|
tabIndex: disabled ? -1 : 0,
|
|
16109
16204
|
variant: "ghost",
|
|
16110
|
-
children: /* @__PURE__ */
|
|
16205
|
+
children: /* @__PURE__ */ jsx315(Icon, { type: isVisible ? "preview" : "hide" })
|
|
16111
16206
|
}
|
|
16112
16207
|
),
|
|
16113
16208
|
type: isVisible ? "text" : "password"
|
|
@@ -16118,16 +16213,16 @@ var InputPassword = forwardRef24(
|
|
|
16118
16213
|
InputPassword.displayName = "InputPassword_UI";
|
|
16119
16214
|
|
|
16120
16215
|
// src/components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
16121
|
-
import { styled as
|
|
16216
|
+
import { styled as styled76 } from "styled-components";
|
|
16122
16217
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
16123
|
-
import { jsx as
|
|
16124
|
-
var StyledKeyboardShortcut =
|
|
16218
|
+
import { jsx as jsx316, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
16219
|
+
var StyledKeyboardShortcut = styled76.div`
|
|
16125
16220
|
align-items: center;
|
|
16126
16221
|
display: flex;
|
|
16127
16222
|
gap: var(--wui-space-02);
|
|
16128
16223
|
${({ $fullWidth }) => $fullWidth && "width: 100%; justify-content: space-between;"}
|
|
16129
16224
|
`;
|
|
16130
|
-
var StyledKey =
|
|
16225
|
+
var StyledKey = styled76.kbd`
|
|
16131
16226
|
align-items: center;
|
|
16132
16227
|
background: var(--wui-color-bg-surface-secondary);
|
|
16133
16228
|
border-bottom: 1px solid var(--wui-color-border-secondary);
|
|
@@ -16150,11 +16245,11 @@ var StyledKey = styled75.kbd`
|
|
|
16150
16245
|
min-width: 20px;
|
|
16151
16246
|
padding: 0 var(--wui-space-01);
|
|
16152
16247
|
`;
|
|
16153
|
-
var Label2 =
|
|
16248
|
+
var Label2 = styled76.span`
|
|
16154
16249
|
color: var(--wui-color-text);
|
|
16155
16250
|
font-size: 12px;
|
|
16156
16251
|
`;
|
|
16157
|
-
var KeysContainer =
|
|
16252
|
+
var KeysContainer = styled76.div`
|
|
16158
16253
|
display: flex;
|
|
16159
16254
|
gap: var(--wui-space-01);
|
|
16160
16255
|
`;
|
|
@@ -16207,14 +16302,14 @@ var KeyboardShortcut = ({
|
|
|
16207
16302
|
keyboardKeys,
|
|
16208
16303
|
fullWidth = false,
|
|
16209
16304
|
...otherProps
|
|
16210
|
-
}) => /* @__PURE__ */
|
|
16305
|
+
}) => /* @__PURE__ */ jsxs50(
|
|
16211
16306
|
StyledKeyboardShortcut,
|
|
16212
16307
|
{
|
|
16213
16308
|
$fullWidth: fullWidth,
|
|
16214
16309
|
...otherProps,
|
|
16215
16310
|
children: [
|
|
16216
|
-
isNotNil30(label) && /* @__PURE__ */
|
|
16217
|
-
/* @__PURE__ */
|
|
16311
|
+
isNotNil30(label) && /* @__PURE__ */ jsx316(Label2, { children: label }),
|
|
16312
|
+
/* @__PURE__ */ jsx316(KeysContainer, { children: (Array.isArray(keyboardKeys) ? keyboardKeys : [keyboardKeys]).map((keyboardKey, index) => /* @__PURE__ */ jsx316(
|
|
16218
16313
|
StyledKey,
|
|
16219
16314
|
{
|
|
16220
16315
|
children: keyToString(keyboardKey)
|
|
@@ -16228,26 +16323,26 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
16228
16323
|
|
|
16229
16324
|
// src/components/List/List.tsx
|
|
16230
16325
|
import { isNotNil as isNotNil31 } from "@wistia/type-guards";
|
|
16231
|
-
import { styled as
|
|
16326
|
+
import { styled as styled78, css as css39 } from "styled-components";
|
|
16232
16327
|
|
|
16233
16328
|
// src/components/List/ListItem.tsx
|
|
16234
|
-
import { styled as
|
|
16329
|
+
import { styled as styled77 } from "styled-components";
|
|
16235
16330
|
import { isNil as isNil17 } from "@wistia/type-guards";
|
|
16236
|
-
import { jsx as
|
|
16237
|
-
var ListItemComponent =
|
|
16331
|
+
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
16332
|
+
var ListItemComponent = styled77.li`
|
|
16238
16333
|
margin-bottom: var(--wui-space-02);
|
|
16239
16334
|
`;
|
|
16240
16335
|
var ListItem = ({ children }) => {
|
|
16241
16336
|
if (isNil17(children)) {
|
|
16242
16337
|
return null;
|
|
16243
16338
|
}
|
|
16244
|
-
return /* @__PURE__ */
|
|
16339
|
+
return /* @__PURE__ */ jsx317(ListItemComponent, { children });
|
|
16245
16340
|
};
|
|
16246
16341
|
ListItem.displayName = "ListItem_UI";
|
|
16247
16342
|
|
|
16248
16343
|
// src/components/List/List.tsx
|
|
16249
|
-
import { jsx as
|
|
16250
|
-
var spacesStyle =
|
|
16344
|
+
import { jsx as jsx318, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
16345
|
+
var spacesStyle = css39`
|
|
16251
16346
|
overflow: hidden;
|
|
16252
16347
|
padding-left: 0;
|
|
16253
16348
|
vertical-align: bottom;
|
|
@@ -16269,7 +16364,7 @@ var spacesStyle = css38`
|
|
|
16269
16364
|
}
|
|
16270
16365
|
}
|
|
16271
16366
|
`;
|
|
16272
|
-
var commasStyle =
|
|
16367
|
+
var commasStyle = css39`
|
|
16273
16368
|
${spacesStyle};
|
|
16274
16369
|
|
|
16275
16370
|
li {
|
|
@@ -16279,7 +16374,7 @@ var commasStyle = css38`
|
|
|
16279
16374
|
}
|
|
16280
16375
|
}
|
|
16281
16376
|
`;
|
|
16282
|
-
var slashesStyle =
|
|
16377
|
+
var slashesStyle = css39`
|
|
16283
16378
|
${spacesStyle};
|
|
16284
16379
|
|
|
16285
16380
|
li {
|
|
@@ -16290,7 +16385,7 @@ var slashesStyle = css38`
|
|
|
16290
16385
|
}
|
|
16291
16386
|
}
|
|
16292
16387
|
`;
|
|
16293
|
-
var breadcrumbsStyle =
|
|
16388
|
+
var breadcrumbsStyle = css39`
|
|
16294
16389
|
${spacesStyle};
|
|
16295
16390
|
|
|
16296
16391
|
li {
|
|
@@ -16301,11 +16396,11 @@ var breadcrumbsStyle = css38`
|
|
|
16301
16396
|
}
|
|
16302
16397
|
}
|
|
16303
16398
|
`;
|
|
16304
|
-
var unbulletedStyle =
|
|
16399
|
+
var unbulletedStyle = css39`
|
|
16305
16400
|
list-style: none;
|
|
16306
16401
|
padding-left: 0;
|
|
16307
16402
|
`;
|
|
16308
|
-
var ListComponent =
|
|
16403
|
+
var ListComponent = styled78.ul`
|
|
16309
16404
|
list-style-position: outside;
|
|
16310
16405
|
margin: 0 0 var(--wui-space-01);
|
|
16311
16406
|
padding: 0 0 0 var(--wui-space-04);
|
|
@@ -16332,7 +16427,7 @@ var ListComponent = styled77.ul`
|
|
|
16332
16427
|
`;
|
|
16333
16428
|
var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
16334
16429
|
const elementType = variant === "ordered" ? "ol" : "ul";
|
|
16335
|
-
return /* @__PURE__ */
|
|
16430
|
+
return /* @__PURE__ */ jsx318(
|
|
16336
16431
|
ListComponent,
|
|
16337
16432
|
{
|
|
16338
16433
|
as: elementType,
|
|
@@ -16349,7 +16444,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
16349
16444
|
const nextItem = listItems[i + 1];
|
|
16350
16445
|
const key = `item-${itemCount += 1}`;
|
|
16351
16446
|
if (Array.isArray(nextItem)) {
|
|
16352
|
-
return /* @__PURE__ */
|
|
16447
|
+
return /* @__PURE__ */ jsxs51(ListItem, { children: [
|
|
16353
16448
|
item,
|
|
16354
16449
|
renderListFromArray(nextItem, variant, otherProps)
|
|
16355
16450
|
] }, key);
|
|
@@ -16357,7 +16452,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
16357
16452
|
if (Array.isArray(item)) {
|
|
16358
16453
|
return null;
|
|
16359
16454
|
}
|
|
16360
|
-
return /* @__PURE__ */
|
|
16455
|
+
return /* @__PURE__ */ jsx318(ListItem, { children: item }, key);
|
|
16361
16456
|
});
|
|
16362
16457
|
return renderListComponent(items, variant, otherProps);
|
|
16363
16458
|
};
|
|
@@ -16385,9 +16480,9 @@ var List = ({
|
|
|
16385
16480
|
List.displayName = "List_UI";
|
|
16386
16481
|
|
|
16387
16482
|
// src/components/Mark/Mark.tsx
|
|
16388
|
-
import { styled as
|
|
16389
|
-
import { jsx as
|
|
16390
|
-
var StyledMark =
|
|
16483
|
+
import { styled as styled79 } from "styled-components";
|
|
16484
|
+
import { jsx as jsx319 } from "react/jsx-runtime";
|
|
16485
|
+
var StyledMark = styled79.mark`
|
|
16391
16486
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16392
16487
|
background-color: var(--wui-color-bg-surface-tertiary);
|
|
16393
16488
|
color: var(--wui-color-text);
|
|
@@ -16395,7 +16490,7 @@ var StyledMark = styled78.mark`
|
|
|
16395
16490
|
padding-inline: 0.1em;
|
|
16396
16491
|
margin-inline: -0.1em;
|
|
16397
16492
|
`;
|
|
16398
|
-
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */
|
|
16493
|
+
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */ jsx319(
|
|
16399
16494
|
StyledMark,
|
|
16400
16495
|
{
|
|
16401
16496
|
$colorScheme: colorScheme,
|
|
@@ -16406,16 +16501,16 @@ var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */
|
|
|
16406
16501
|
Mark.displayName = "Mark_UI";
|
|
16407
16502
|
|
|
16408
16503
|
// src/components/Markdown/Markdown.tsx
|
|
16409
|
-
import { styled as
|
|
16504
|
+
import { styled as styled80 } from "styled-components";
|
|
16410
16505
|
import ReactMarkdown from "react-markdown";
|
|
16411
16506
|
|
|
16412
16507
|
// src/css/baseMarkdownCss.tsx
|
|
16413
|
-
import { css as
|
|
16508
|
+
import { css as css40 } from "styled-components";
|
|
16414
16509
|
var textSizeToTokenMap = {
|
|
16415
16510
|
body2: "--wui-typography-body-2-size",
|
|
16416
16511
|
body3: "--wui-typography-body-3-size"
|
|
16417
16512
|
};
|
|
16418
|
-
var baseMarkdownCss = (textSize = "body2") =>
|
|
16513
|
+
var baseMarkdownCss = (textSize = "body2") => css40`
|
|
16419
16514
|
--wui-markdown-base-unit: var(${textSizeToTokenMap[textSize]});
|
|
16420
16515
|
|
|
16421
16516
|
font-size: var(--wui-markdown-base-unit);
|
|
@@ -16534,8 +16629,8 @@ var baseMarkdownCss = (textSize = "body2") => css39`
|
|
|
16534
16629
|
`;
|
|
16535
16630
|
|
|
16536
16631
|
// src/components/Markdown/Markdown.tsx
|
|
16537
|
-
import { jsx as
|
|
16538
|
-
var StyledMarkdownWrapper =
|
|
16632
|
+
import { jsx as jsx320 } from "react/jsx-runtime";
|
|
16633
|
+
var StyledMarkdownWrapper = styled80.div`
|
|
16539
16634
|
${({ $textSize }) => baseMarkdownCss($textSize)}
|
|
16540
16635
|
`;
|
|
16541
16636
|
var Markdown = ({
|
|
@@ -16544,47 +16639,47 @@ var Markdown = ({
|
|
|
16544
16639
|
...otherProps
|
|
16545
16640
|
}) => {
|
|
16546
16641
|
const responsiveTextSize = useResponsiveProp(textSize);
|
|
16547
|
-
return /* @__PURE__ */
|
|
16642
|
+
return /* @__PURE__ */ jsx320(
|
|
16548
16643
|
StyledMarkdownWrapper,
|
|
16549
16644
|
{
|
|
16550
16645
|
$textSize: responsiveTextSize,
|
|
16551
16646
|
...otherProps,
|
|
16552
|
-
children: /* @__PURE__ */
|
|
16647
|
+
children: /* @__PURE__ */ jsx320(ReactMarkdown, { children })
|
|
16553
16648
|
}
|
|
16554
16649
|
);
|
|
16555
16650
|
};
|
|
16556
16651
|
Markdown.displayName = "Markdown_UI";
|
|
16557
16652
|
|
|
16558
16653
|
// src/components/Meter/Meter.tsx
|
|
16559
|
-
import { styled as
|
|
16654
|
+
import { styled as styled81 } from "styled-components";
|
|
16560
16655
|
import { useId as useId5 } from "react";
|
|
16561
16656
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
16562
|
-
import { jsx as
|
|
16563
|
-
var MeterWrapper =
|
|
16657
|
+
import { jsx as jsx321, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
16658
|
+
var MeterWrapper = styled81.div`
|
|
16564
16659
|
--meter-height: 16px;
|
|
16565
16660
|
|
|
16566
16661
|
display: flex;
|
|
16567
16662
|
flex-direction: column;
|
|
16568
16663
|
gap: var(--wui-space-02);
|
|
16569
16664
|
`;
|
|
16570
|
-
var MeterLabelContainer =
|
|
16665
|
+
var MeterLabelContainer = styled81.div`
|
|
16571
16666
|
display: flex;
|
|
16572
16667
|
justify-content: space-between;
|
|
16573
16668
|
align-items: baseline;
|
|
16574
16669
|
`;
|
|
16575
|
-
var MeterLabel =
|
|
16670
|
+
var MeterLabel = styled81.div`
|
|
16576
16671
|
font-family: var(--wui-typography-heading-5-family);
|
|
16577
16672
|
line-height: var(--wui-typography-heading-5-line-height);
|
|
16578
16673
|
font-size: var(--wui-typography-heading-5-size);
|
|
16579
16674
|
font-weight: var(--wui-typography-heading-5-weight);
|
|
16580
16675
|
`;
|
|
16581
|
-
var MeterLabelMeta =
|
|
16676
|
+
var MeterLabelMeta = styled81.div`
|
|
16582
16677
|
font-family: var(--wui-typography-heading-5-family);
|
|
16583
16678
|
line-height: var(--wui-typography-heading-5-line-height);
|
|
16584
16679
|
font-size: var(--wui-typography-heading-5-size);
|
|
16585
16680
|
font-weight: var(--wui-typography-heading-5-weight);
|
|
16586
16681
|
`;
|
|
16587
|
-
var MeterBarContainer =
|
|
16682
|
+
var MeterBarContainer = styled81.div`
|
|
16588
16683
|
position: relative;
|
|
16589
16684
|
overflow: hidden;
|
|
16590
16685
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -16593,7 +16688,7 @@ var MeterBarContainer = styled80.div`
|
|
|
16593
16688
|
height: var(--meter-height);
|
|
16594
16689
|
transform: translateZ(0);
|
|
16595
16690
|
`;
|
|
16596
|
-
var MeterSegmentBar =
|
|
16691
|
+
var MeterSegmentBar = styled81.div`
|
|
16597
16692
|
position: absolute;
|
|
16598
16693
|
top: 0;
|
|
16599
16694
|
left: ${({ $offset }) => $offset}%;
|
|
@@ -16611,30 +16706,30 @@ var MeterSegmentBar = styled80.div`
|
|
|
16611
16706
|
border-bottom-right-radius: var(--wui-border-radius-rounded);
|
|
16612
16707
|
}
|
|
16613
16708
|
`;
|
|
16614
|
-
var MeterDescription =
|
|
16709
|
+
var MeterDescription = styled81.div`
|
|
16615
16710
|
line-height: var(--wui-typography-label-3-line-height);
|
|
16616
16711
|
font-size: var(--wui-typography-label-3-size);
|
|
16617
16712
|
font-weight: var(--wui-typography-label-3-weight);
|
|
16618
16713
|
color: var(--wui-color-text-secondary);
|
|
16619
16714
|
`;
|
|
16620
|
-
var MeterKey =
|
|
16715
|
+
var MeterKey = styled81.div`
|
|
16621
16716
|
display: flex;
|
|
16622
16717
|
flex-wrap: wrap;
|
|
16623
16718
|
gap: var(--wui-space-03);
|
|
16624
16719
|
`;
|
|
16625
|
-
var MeterKeyItem =
|
|
16720
|
+
var MeterKeyItem = styled81.div`
|
|
16626
16721
|
display: flex;
|
|
16627
16722
|
align-items: center;
|
|
16628
16723
|
gap: var(--wui-space-01);
|
|
16629
16724
|
`;
|
|
16630
|
-
var MeterKeyColorIndicator =
|
|
16725
|
+
var MeterKeyColorIndicator = styled81.div`
|
|
16631
16726
|
width: 8px;
|
|
16632
16727
|
height: 8px;
|
|
16633
16728
|
border-radius: 50%;
|
|
16634
16729
|
background-color: ${({ $color }) => `var(--wui-${$color})`};
|
|
16635
16730
|
flex-shrink: 0;
|
|
16636
16731
|
`;
|
|
16637
|
-
var MeterKeyLabel =
|
|
16732
|
+
var MeterKeyLabel = styled81.span`
|
|
16638
16733
|
line-height: var(--wui-typography-label-3-line-height);
|
|
16639
16734
|
font-size: var(--wui-typography-label-3-size);
|
|
16640
16735
|
font-weight: var(--wui-typography-label-3-weight);
|
|
@@ -16689,19 +16784,19 @@ var Meter = ({
|
|
|
16689
16784
|
return segmentDescriptions ? `${segmentDescriptions}. ${totalDescription}` : totalDescription;
|
|
16690
16785
|
};
|
|
16691
16786
|
const effectiveAriaLabel = ariaLabel ?? (isNotNil32(label) ? nodeToString(label) : "Data meter");
|
|
16692
|
-
return /* @__PURE__ */
|
|
16693
|
-
/* @__PURE__ */
|
|
16787
|
+
return /* @__PURE__ */ jsxs52(MeterWrapper, { ...props, children: [
|
|
16788
|
+
/* @__PURE__ */ jsx321(
|
|
16694
16789
|
ScreenReaderOnly,
|
|
16695
16790
|
{
|
|
16696
16791
|
id: descriptionId,
|
|
16697
16792
|
text: generateAriaDescription()
|
|
16698
16793
|
}
|
|
16699
16794
|
),
|
|
16700
|
-
isNotNil32(label) || isNotNil32(labelMeta) ? /* @__PURE__ */
|
|
16701
|
-
isNotNil32(label) ? /* @__PURE__ */
|
|
16702
|
-
isNotNil32(labelMeta) ? /* @__PURE__ */
|
|
16795
|
+
isNotNil32(label) || isNotNil32(labelMeta) ? /* @__PURE__ */ jsxs52(MeterLabelContainer, { id: labelId, children: [
|
|
16796
|
+
isNotNil32(label) ? /* @__PURE__ */ jsx321(MeterLabel, { children: label }) : null,
|
|
16797
|
+
isNotNil32(labelMeta) ? /* @__PURE__ */ jsx321(MeterLabelMeta, { children: labelMeta }) : null
|
|
16703
16798
|
] }) : null,
|
|
16704
|
-
/* @__PURE__ */
|
|
16799
|
+
/* @__PURE__ */ jsx321(
|
|
16705
16800
|
MeterBarContainer,
|
|
16706
16801
|
{
|
|
16707
16802
|
"aria-describedby": descriptionId,
|
|
@@ -16711,7 +16806,7 @@ var Meter = ({
|
|
|
16711
16806
|
"aria-valuemin": 0,
|
|
16712
16807
|
"aria-valuenow": totalValue,
|
|
16713
16808
|
role: "meter",
|
|
16714
|
-
children: segmentsWithOffsets.map((segment) => /* @__PURE__ */
|
|
16809
|
+
children: segmentsWithOffsets.map((segment) => /* @__PURE__ */ jsx321(
|
|
16715
16810
|
MeterSegmentBar,
|
|
16716
16811
|
{
|
|
16717
16812
|
$color: segment.color,
|
|
@@ -16723,25 +16818,25 @@ var Meter = ({
|
|
|
16723
16818
|
))
|
|
16724
16819
|
}
|
|
16725
16820
|
),
|
|
16726
|
-
isNotNil32(description) ? /* @__PURE__ */
|
|
16727
|
-
!hideKey && keySegments.length > 0 ? /* @__PURE__ */
|
|
16821
|
+
isNotNil32(description) ? /* @__PURE__ */ jsx321(MeterDescription, { children: description }) : null,
|
|
16822
|
+
!hideKey && keySegments.length > 0 ? /* @__PURE__ */ jsx321(
|
|
16728
16823
|
MeterKey,
|
|
16729
16824
|
{
|
|
16730
16825
|
"aria-label": "Meter legend",
|
|
16731
16826
|
role: "list",
|
|
16732
|
-
children: keySegments.map((segment) => /* @__PURE__ */
|
|
16827
|
+
children: keySegments.map((segment) => /* @__PURE__ */ jsxs52(
|
|
16733
16828
|
MeterKeyItem,
|
|
16734
16829
|
{
|
|
16735
16830
|
role: "listitem",
|
|
16736
16831
|
children: [
|
|
16737
|
-
/* @__PURE__ */
|
|
16832
|
+
/* @__PURE__ */ jsx321(
|
|
16738
16833
|
MeterKeyColorIndicator,
|
|
16739
16834
|
{
|
|
16740
16835
|
$color: segment.color,
|
|
16741
16836
|
"aria-hidden": "true"
|
|
16742
16837
|
}
|
|
16743
16838
|
),
|
|
16744
|
-
/* @__PURE__ */
|
|
16839
|
+
/* @__PURE__ */ jsx321(MeterKeyLabel, { children: segment.label })
|
|
16745
16840
|
]
|
|
16746
16841
|
},
|
|
16747
16842
|
`${segment.color}-${segment.value}-${segment.offset}-${nodeToString(segment.label)}`
|
|
@@ -16754,7 +16849,7 @@ Meter.displayName = "Meter_UI";
|
|
|
16754
16849
|
|
|
16755
16850
|
// src/components/Modal/Modal.tsx
|
|
16756
16851
|
import { forwardRef as forwardRef26 } from "react";
|
|
16757
|
-
import { styled as
|
|
16852
|
+
import { styled as styled86 } from "styled-components";
|
|
16758
16853
|
import {
|
|
16759
16854
|
Root as DialogRoot,
|
|
16760
16855
|
Portal as DialogPortal,
|
|
@@ -16763,31 +16858,31 @@ import {
|
|
|
16763
16858
|
import { isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
16764
16859
|
|
|
16765
16860
|
// src/components/Modal/ModalHeader.tsx
|
|
16766
|
-
import { styled as
|
|
16861
|
+
import { styled as styled83 } from "styled-components";
|
|
16767
16862
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
16768
16863
|
|
|
16769
16864
|
// src/components/Modal/ModalCloseButton.tsx
|
|
16770
|
-
import { styled as
|
|
16865
|
+
import { styled as styled82 } from "styled-components";
|
|
16771
16866
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
16772
|
-
import { jsx as
|
|
16773
|
-
var CloseButton =
|
|
16867
|
+
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
16868
|
+
var CloseButton = styled82(DialogClose)`
|
|
16774
16869
|
align-self: start;
|
|
16775
16870
|
`;
|
|
16776
16871
|
var ModalCloseButton = () => {
|
|
16777
|
-
return /* @__PURE__ */
|
|
16872
|
+
return /* @__PURE__ */ jsx322(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx322(
|
|
16778
16873
|
IconButton,
|
|
16779
16874
|
{
|
|
16780
16875
|
label: "Dismiss modal",
|
|
16781
16876
|
size: "sm",
|
|
16782
16877
|
variant: "ghost",
|
|
16783
|
-
children: /* @__PURE__ */
|
|
16878
|
+
children: /* @__PURE__ */ jsx322(Icon, { type: "close" })
|
|
16784
16879
|
}
|
|
16785
16880
|
) });
|
|
16786
16881
|
};
|
|
16787
16882
|
|
|
16788
16883
|
// src/components/Modal/ModalHeader.tsx
|
|
16789
|
-
import { jsx as
|
|
16790
|
-
var Header =
|
|
16884
|
+
import { jsx as jsx323, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16885
|
+
var Header = styled83.header`
|
|
16791
16886
|
display: flex;
|
|
16792
16887
|
order: 1;
|
|
16793
16888
|
padding: 0 var(--wui-space-05);
|
|
@@ -16807,7 +16902,7 @@ var Header = styled82.header`
|
|
|
16807
16902
|
top: var(--wui-space-03);
|
|
16808
16903
|
}
|
|
16809
16904
|
`;
|
|
16810
|
-
var Title =
|
|
16905
|
+
var Title = styled83(DialogTitle)`
|
|
16811
16906
|
font-family: var(--wui-typography-heading-2-family);
|
|
16812
16907
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
16813
16908
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -16818,15 +16913,15 @@ var ModalHeader = ({
|
|
|
16818
16913
|
hideTitle,
|
|
16819
16914
|
hideCloseButton
|
|
16820
16915
|
}) => {
|
|
16821
|
-
const TitleComponent = hideTitle ? /* @__PURE__ */
|
|
16822
|
-
return /* @__PURE__ */
|
|
16916
|
+
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx323(ScreenReaderOnly, { children: /* @__PURE__ */ jsx323(Title, { children: title }) }) : /* @__PURE__ */ jsx323(Title, { children: title });
|
|
16917
|
+
return /* @__PURE__ */ jsxs53(
|
|
16823
16918
|
Header,
|
|
16824
16919
|
{
|
|
16825
16920
|
$hideCloseButon: hideCloseButton,
|
|
16826
16921
|
$hideTitle: hideTitle,
|
|
16827
16922
|
children: [
|
|
16828
16923
|
TitleComponent,
|
|
16829
|
-
hideCloseButton ? null : /* @__PURE__ */
|
|
16924
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx323(ModalCloseButton, {})
|
|
16830
16925
|
]
|
|
16831
16926
|
}
|
|
16832
16927
|
);
|
|
@@ -16834,7 +16929,7 @@ var ModalHeader = ({
|
|
|
16834
16929
|
|
|
16835
16930
|
// src/components/Modal/ModalContent.tsx
|
|
16836
16931
|
import { forwardRef as forwardRef25 } from "react";
|
|
16837
|
-
import { styled as
|
|
16932
|
+
import { styled as styled84, css as css41, keyframes as keyframes6 } from "styled-components";
|
|
16838
16933
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
16839
16934
|
|
|
16840
16935
|
// src/components/Modal/constants.ts
|
|
@@ -16860,8 +16955,8 @@ var useFocusRestore = () => {
|
|
|
16860
16955
|
};
|
|
16861
16956
|
|
|
16862
16957
|
// src/components/Modal/ModalContent.tsx
|
|
16863
|
-
import { jsx as
|
|
16864
|
-
var modalEnter =
|
|
16958
|
+
import { jsx as jsx324 } from "react/jsx-runtime";
|
|
16959
|
+
var modalEnter = keyframes6`
|
|
16865
16960
|
from {
|
|
16866
16961
|
opacity: 0;
|
|
16867
16962
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
@@ -16872,7 +16967,7 @@ var modalEnter = keyframes5`
|
|
|
16872
16967
|
transform: translateX(-50%) translateY(var(--wui-modal-translate-y));
|
|
16873
16968
|
}
|
|
16874
16969
|
`;
|
|
16875
|
-
var modalExit =
|
|
16970
|
+
var modalExit = keyframes6`
|
|
16876
16971
|
from {
|
|
16877
16972
|
opacity: 1;
|
|
16878
16973
|
transform: translateX(-50%) translateY(var(--wui-modal-translate-y));
|
|
@@ -16883,7 +16978,7 @@ var modalExit = keyframes5`
|
|
|
16883
16978
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
16884
16979
|
}
|
|
16885
16980
|
`;
|
|
16886
|
-
var centeredModalStyles =
|
|
16981
|
+
var centeredModalStyles = css41`
|
|
16887
16982
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
16888
16983
|
--wui-modal-translate-y: -50%;
|
|
16889
16984
|
|
|
@@ -16899,7 +16994,7 @@ var centeredModalStyles = css40`
|
|
|
16899
16994
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
16900
16995
|
}
|
|
16901
16996
|
`;
|
|
16902
|
-
var fixedTopModalStyles =
|
|
16997
|
+
var fixedTopModalStyles = css41`
|
|
16903
16998
|
--wui-modal-screen-offset-top: 15vh;
|
|
16904
16999
|
--wui-modal-screen-offset-bottom: 5vh;
|
|
16905
17000
|
--wui-modal-translate-y: 0%;
|
|
@@ -16918,7 +17013,7 @@ var fixedTopModalStyles = css40`
|
|
|
16918
17013
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
16919
17014
|
}
|
|
16920
17015
|
`;
|
|
16921
|
-
var slideInRight =
|
|
17016
|
+
var slideInRight = keyframes6`
|
|
16922
17017
|
from {
|
|
16923
17018
|
opacity: 0;
|
|
16924
17019
|
transform: translateX(100%);
|
|
@@ -16929,7 +17024,7 @@ var slideInRight = keyframes5`
|
|
|
16929
17024
|
transform: translateX(0);
|
|
16930
17025
|
}
|
|
16931
17026
|
`;
|
|
16932
|
-
var slideOutRight =
|
|
17027
|
+
var slideOutRight = keyframes6`
|
|
16933
17028
|
from {
|
|
16934
17029
|
opacity: 1;
|
|
16935
17030
|
transform: translateX(0);
|
|
@@ -16940,7 +17035,7 @@ var slideOutRight = keyframes5`
|
|
|
16940
17035
|
transform: translateX(100%);
|
|
16941
17036
|
}
|
|
16942
17037
|
`;
|
|
16943
|
-
var rightSidePanelModalStyles =
|
|
17038
|
+
var rightSidePanelModalStyles = css41`
|
|
16944
17039
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
16945
17040
|
|
|
16946
17041
|
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
@@ -16958,7 +17053,7 @@ var positionStyleMap = {
|
|
|
16958
17053
|
"fixed-top": fixedTopModalStyles,
|
|
16959
17054
|
"right-side-panel": rightSidePanelModalStyles
|
|
16960
17055
|
};
|
|
16961
|
-
var StyledModalContent =
|
|
17056
|
+
var StyledModalContent = styled84(DialogContent)`
|
|
16962
17057
|
position: fixed;
|
|
16963
17058
|
display: flex;
|
|
16964
17059
|
flex-direction: column;
|
|
@@ -16988,7 +17083,7 @@ var StyledModalContent = styled83(DialogContent)`
|
|
|
16988
17083
|
var ModalContent = forwardRef25(
|
|
16989
17084
|
({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
|
|
16990
17085
|
useFocusRestore();
|
|
16991
|
-
return /* @__PURE__ */
|
|
17086
|
+
return /* @__PURE__ */ jsx324(
|
|
16992
17087
|
StyledModalContent,
|
|
16993
17088
|
{
|
|
16994
17089
|
ref,
|
|
@@ -17003,8 +17098,8 @@ var ModalContent = forwardRef25(
|
|
|
17003
17098
|
|
|
17004
17099
|
// src/components/Modal/ModalOverlay.tsx
|
|
17005
17100
|
import { DialogOverlay } from "@radix-ui/react-dialog";
|
|
17006
|
-
import { styled as
|
|
17007
|
-
var backdropShow =
|
|
17101
|
+
import { styled as styled85, keyframes as keyframes7 } from "styled-components";
|
|
17102
|
+
var backdropShow = keyframes7`
|
|
17008
17103
|
from {
|
|
17009
17104
|
opacity: 0;
|
|
17010
17105
|
}
|
|
@@ -17013,7 +17108,7 @@ var backdropShow = keyframes6`
|
|
|
17013
17108
|
opacity: 1;
|
|
17014
17109
|
}
|
|
17015
17110
|
`;
|
|
17016
|
-
var backdropHide =
|
|
17111
|
+
var backdropHide = keyframes7`
|
|
17017
17112
|
from {
|
|
17018
17113
|
opacity: 1;
|
|
17019
17114
|
}
|
|
@@ -17022,7 +17117,7 @@ var backdropHide = keyframes6`
|
|
|
17022
17117
|
opacity: 0;
|
|
17023
17118
|
}
|
|
17024
17119
|
`;
|
|
17025
|
-
var ModalOverlay =
|
|
17120
|
+
var ModalOverlay = styled85(DialogOverlay)`
|
|
17026
17121
|
animation: ${backdropShow} var(--wui-motion-duration-02);
|
|
17027
17122
|
background: var(--wui-color-backdrop);
|
|
17028
17123
|
inset: 0;
|
|
@@ -17035,20 +17130,20 @@ var ModalOverlay = styled84(DialogOverlay)`
|
|
|
17035
17130
|
`;
|
|
17036
17131
|
|
|
17037
17132
|
// src/components/Modal/Modal.tsx
|
|
17038
|
-
import { jsx as
|
|
17039
|
-
var ModalHiddenDescription =
|
|
17040
|
-
var ModalBody =
|
|
17133
|
+
import { jsx as jsx325, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
17134
|
+
var ModalHiddenDescription = styled86(DialogDescription)({ ...visuallyHiddenStyle });
|
|
17135
|
+
var ModalBody = styled86.div`
|
|
17041
17136
|
flex-direction: column;
|
|
17042
17137
|
display: flex;
|
|
17043
17138
|
flex: 1 0 0;
|
|
17044
17139
|
padding: 0 var(--wui-space-05);
|
|
17045
17140
|
`;
|
|
17046
|
-
var ModalScrollArea =
|
|
17141
|
+
var ModalScrollArea = styled86.div`
|
|
17047
17142
|
order: 2;
|
|
17048
17143
|
max-height: 90vh;
|
|
17049
17144
|
overflow-y: auto;
|
|
17050
17145
|
`;
|
|
17051
|
-
var ModalFooter =
|
|
17146
|
+
var ModalFooter = styled86.footer`
|
|
17052
17147
|
padding: 0 var(--wui-space-05);
|
|
17053
17148
|
order: 3;
|
|
17054
17149
|
`;
|
|
@@ -17066,7 +17161,7 @@ var Modal = forwardRef26(
|
|
|
17066
17161
|
width = DEFAULT_MODAL_WIDTH,
|
|
17067
17162
|
...props
|
|
17068
17163
|
}, ref) => {
|
|
17069
|
-
return /* @__PURE__ */
|
|
17164
|
+
return /* @__PURE__ */ jsx325(
|
|
17070
17165
|
DialogRoot,
|
|
17071
17166
|
{
|
|
17072
17167
|
onOpenChange: (open2) => {
|
|
@@ -17075,9 +17170,9 @@ var Modal = forwardRef26(
|
|
|
17075
17170
|
}
|
|
17076
17171
|
},
|
|
17077
17172
|
open: isOpen,
|
|
17078
|
-
children: /* @__PURE__ */
|
|
17079
|
-
/* @__PURE__ */
|
|
17080
|
-
/* @__PURE__ */
|
|
17173
|
+
children: /* @__PURE__ */ jsxs54(DialogPortal, { children: [
|
|
17174
|
+
/* @__PURE__ */ jsx325(ModalOverlay, {}),
|
|
17175
|
+
/* @__PURE__ */ jsxs54(
|
|
17081
17176
|
ModalContent,
|
|
17082
17177
|
{
|
|
17083
17178
|
ref,
|
|
@@ -17093,9 +17188,9 @@ var Modal = forwardRef26(
|
|
|
17093
17188
|
width,
|
|
17094
17189
|
...props,
|
|
17095
17190
|
children: [
|
|
17096
|
-
/* @__PURE__ */
|
|
17097
|
-
isNotNil34(footer) ? /* @__PURE__ */
|
|
17098
|
-
hideCloseButton && hideTitle ? null : /* @__PURE__ */
|
|
17191
|
+
/* @__PURE__ */ jsx325(ModalScrollArea, { children: /* @__PURE__ */ jsx325(ModalBody, { children }) }),
|
|
17192
|
+
isNotNil34(footer) ? /* @__PURE__ */ jsx325(ModalFooter, { children: footer }) : null,
|
|
17193
|
+
hideCloseButton && hideTitle ? null : /* @__PURE__ */ jsx325(
|
|
17099
17194
|
ModalHeader,
|
|
17100
17195
|
{
|
|
17101
17196
|
hideCloseButton,
|
|
@@ -17103,7 +17198,7 @@ var Modal = forwardRef26(
|
|
|
17103
17198
|
title
|
|
17104
17199
|
}
|
|
17105
17200
|
),
|
|
17106
|
-
/* @__PURE__ */
|
|
17201
|
+
/* @__PURE__ */ jsx325(ModalHiddenDescription, {})
|
|
17107
17202
|
]
|
|
17108
17203
|
}
|
|
17109
17204
|
)
|
|
@@ -17115,9 +17210,9 @@ var Modal = forwardRef26(
|
|
|
17115
17210
|
Modal.displayName = "Modal_UI";
|
|
17116
17211
|
|
|
17117
17212
|
// src/components/Modal/ModalCallouts.tsx
|
|
17118
|
-
import { jsx as
|
|
17213
|
+
import { jsx as jsx326, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
17119
17214
|
var ModalCallouts = ({ children }) => {
|
|
17120
|
-
return /* @__PURE__ */
|
|
17215
|
+
return /* @__PURE__ */ jsx326(
|
|
17121
17216
|
Stack,
|
|
17122
17217
|
{
|
|
17123
17218
|
direction: "horizontal",
|
|
@@ -17128,17 +17223,17 @@ var ModalCallouts = ({ children }) => {
|
|
|
17128
17223
|
};
|
|
17129
17224
|
ModalCallouts.displayName = "ModalCallouts_UI";
|
|
17130
17225
|
var ModalCallout = ({ title, image, children }) => {
|
|
17131
|
-
return /* @__PURE__ */
|
|
17226
|
+
return /* @__PURE__ */ jsxs55(Stack, { direction: "vertical", children: [
|
|
17132
17227
|
image,
|
|
17133
|
-
/* @__PURE__ */
|
|
17228
|
+
/* @__PURE__ */ jsx326(Heading, { variant: "heading4", children: title }),
|
|
17134
17229
|
children
|
|
17135
17230
|
] });
|
|
17136
17231
|
};
|
|
17137
17232
|
ModalCallout.displayName = "ModalCallout_UI";
|
|
17138
17233
|
|
|
17139
17234
|
// src/components/Popover/Popover.tsx
|
|
17140
|
-
import { Root as
|
|
17141
|
-
import { styled as
|
|
17235
|
+
import { Root as Root3, Trigger as Trigger3, Portal as Portal2, Content as Content3, Close } from "@radix-ui/react-popover";
|
|
17236
|
+
import { styled as styled88, css as css43 } from "styled-components";
|
|
17142
17237
|
|
|
17143
17238
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
17144
17239
|
import { isNotNil as isNotNil35 } from "@wistia/type-guards";
|
|
@@ -17148,12 +17243,12 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
17148
17243
|
|
|
17149
17244
|
// src/components/Popover/PopoverArrow.tsx
|
|
17150
17245
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
17151
|
-
import { styled as
|
|
17152
|
-
import { jsx as
|
|
17153
|
-
var StyledPath =
|
|
17246
|
+
import { styled as styled87, css as css42, keyframes as keyframes8 } from "styled-components";
|
|
17247
|
+
import { jsx as jsx327, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
17248
|
+
var StyledPath = styled87.path`
|
|
17154
17249
|
fill: var(--wui-color-border-secondary);
|
|
17155
17250
|
`;
|
|
17156
|
-
var circleAnimation =
|
|
17251
|
+
var circleAnimation = keyframes8`
|
|
17157
17252
|
0% {
|
|
17158
17253
|
opacity: var(--wui-popover-arrow-circle-starting-opacity);
|
|
17159
17254
|
}
|
|
@@ -17161,7 +17256,7 @@ var circleAnimation = keyframes7`
|
|
|
17161
17256
|
opacity: 0;
|
|
17162
17257
|
}
|
|
17163
17258
|
`;
|
|
17164
|
-
var StyledCircle =
|
|
17259
|
+
var StyledCircle = styled87.circle`
|
|
17165
17260
|
stroke: var(--wui-color-border-active);
|
|
17166
17261
|
animation-duration: 2s;
|
|
17167
17262
|
animation-iteration-count: infinite;
|
|
@@ -17182,13 +17277,13 @@ var StyledCircle = styled86.circle`
|
|
|
17182
17277
|
}
|
|
17183
17278
|
|
|
17184
17279
|
@media (prefers-reduced-motion: no-preference) {
|
|
17185
|
-
${({ $isAnimated }) => $isAnimated &&
|
|
17280
|
+
${({ $isAnimated }) => $isAnimated && css42`
|
|
17186
17281
|
animation-name: ${circleAnimation};
|
|
17187
17282
|
`}
|
|
17188
17283
|
}
|
|
17189
17284
|
`;
|
|
17190
17285
|
var PopoverArrow = ({ isAnimated }) => {
|
|
17191
|
-
return /* @__PURE__ */
|
|
17286
|
+
return /* @__PURE__ */ jsx327(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs56(
|
|
17192
17287
|
"svg",
|
|
17193
17288
|
{
|
|
17194
17289
|
fill: "none",
|
|
@@ -17197,8 +17292,8 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
17197
17292
|
width: "48",
|
|
17198
17293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17199
17294
|
children: [
|
|
17200
|
-
/* @__PURE__ */
|
|
17201
|
-
/* @__PURE__ */
|
|
17295
|
+
/* @__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" }),
|
|
17296
|
+
/* @__PURE__ */ jsx327(
|
|
17202
17297
|
StyledCircle,
|
|
17203
17298
|
{
|
|
17204
17299
|
$isAnimated: isAnimated,
|
|
@@ -17209,7 +17304,7 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
17209
17304
|
strokeWidth: "4"
|
|
17210
17305
|
}
|
|
17211
17306
|
),
|
|
17212
|
-
/* @__PURE__ */
|
|
17307
|
+
/* @__PURE__ */ jsx327(
|
|
17213
17308
|
StyledCircle,
|
|
17214
17309
|
{
|
|
17215
17310
|
$isAnimated: isAnimated,
|
|
@@ -17227,11 +17322,11 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
17227
17322
|
PopoverArrow.displayName = "PopoverArrow_UI";
|
|
17228
17323
|
|
|
17229
17324
|
// src/components/Popover/Popover.tsx
|
|
17230
|
-
import { jsx as
|
|
17231
|
-
var
|
|
17325
|
+
import { jsx as jsx328, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
17326
|
+
var StyledContent3 = styled88(Content3)`
|
|
17232
17327
|
z-index: var(--wui-zindex-popover);
|
|
17233
17328
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
17234
|
-
${({ $unstyled }) => !$unstyled &&
|
|
17329
|
+
${({ $unstyled }) => !$unstyled && css43`
|
|
17235
17330
|
border-radius: var(--wui-border-radius-02);
|
|
17236
17331
|
padding: var(--wui-space-04);
|
|
17237
17332
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -17267,10 +17362,10 @@ var Popover = ({
|
|
|
17267
17362
|
"--wui-popover-max-width": maxWidth,
|
|
17268
17363
|
"--wui-popover-max-height": maxHeight
|
|
17269
17364
|
};
|
|
17270
|
-
return /* @__PURE__ */
|
|
17271
|
-
/* @__PURE__ */
|
|
17272
|
-
/* @__PURE__ */
|
|
17273
|
-
|
|
17365
|
+
return /* @__PURE__ */ jsxs57(Root3, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
17366
|
+
/* @__PURE__ */ jsx328(Trigger3, { asChild: true, children: trigger }),
|
|
17367
|
+
/* @__PURE__ */ jsx328(Portal2, { children: /* @__PURE__ */ jsxs57(
|
|
17368
|
+
StyledContent3,
|
|
17274
17369
|
{
|
|
17275
17370
|
$colorScheme: colorScheme,
|
|
17276
17371
|
sideOffset,
|
|
@@ -17278,17 +17373,17 @@ var Popover = ({
|
|
|
17278
17373
|
$unstyled: unstyled,
|
|
17279
17374
|
style,
|
|
17280
17375
|
children: [
|
|
17281
|
-
!hideCloseButton && /* @__PURE__ */
|
|
17376
|
+
!hideCloseButton && /* @__PURE__ */ jsx328(Close, { asChild: true, children: /* @__PURE__ */ jsx328(
|
|
17282
17377
|
IconButton,
|
|
17283
17378
|
{
|
|
17284
17379
|
"data-wui-popover-close": true,
|
|
17285
17380
|
label: "Close",
|
|
17286
17381
|
variant: "ghost",
|
|
17287
|
-
children: /* @__PURE__ */
|
|
17382
|
+
children: /* @__PURE__ */ jsx328(Icon, { type: "close" })
|
|
17288
17383
|
}
|
|
17289
17384
|
) }),
|
|
17290
|
-
withArrow ? /* @__PURE__ */
|
|
17291
|
-
/* @__PURE__ */
|
|
17385
|
+
withArrow ? /* @__PURE__ */ jsx328(PopoverArrow, { isAnimated }) : null,
|
|
17386
|
+
/* @__PURE__ */ jsx328("div", { children })
|
|
17292
17387
|
]
|
|
17293
17388
|
}
|
|
17294
17389
|
) })
|
|
@@ -17297,11 +17392,11 @@ var Popover = ({
|
|
|
17297
17392
|
Popover.displayName = "Popover_UI";
|
|
17298
17393
|
|
|
17299
17394
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
17300
|
-
import { styled as
|
|
17395
|
+
import { styled as styled89 } from "styled-components";
|
|
17301
17396
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
17302
17397
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
17303
|
-
import { jsx as
|
|
17304
|
-
var ProgressBarWrapper =
|
|
17398
|
+
import { jsx as jsx329, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
17399
|
+
var ProgressBarWrapper = styled89.div`
|
|
17305
17400
|
--progress-bar-height: 8px;
|
|
17306
17401
|
|
|
17307
17402
|
display: flex;
|
|
@@ -17315,7 +17410,7 @@ var getTranslateValue = (progress, max) => {
|
|
|
17315
17410
|
const progressPercentage = progress / max * 100;
|
|
17316
17411
|
return `translateX(-${100 - progressPercentage}%)`;
|
|
17317
17412
|
};
|
|
17318
|
-
var ProgressBarLabel =
|
|
17413
|
+
var ProgressBarLabel = styled89.div`
|
|
17319
17414
|
display: flex;
|
|
17320
17415
|
line-height: var(--wui-typography-label-3-line-height);
|
|
17321
17416
|
font-size: var(--wui-typography-label-3-size);
|
|
@@ -17323,7 +17418,7 @@ var ProgressBarLabel = styled88.div`
|
|
|
17323
17418
|
color: var(--wui-color-text-secondary);
|
|
17324
17419
|
flex-shrink: 0;
|
|
17325
17420
|
`;
|
|
17326
|
-
var StyledProgressIndicator =
|
|
17421
|
+
var StyledProgressIndicator = styled89(ProgressIndicator)`
|
|
17327
17422
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
17328
17423
|
background-color: var(--wui-color-bg-fill);
|
|
17329
17424
|
width: 100%;
|
|
@@ -17333,7 +17428,7 @@ var StyledProgressIndicator = styled88(ProgressIndicator)`
|
|
|
17333
17428
|
transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
17334
17429
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
17335
17430
|
`;
|
|
17336
|
-
var StyledProgressBar =
|
|
17431
|
+
var StyledProgressBar = styled89(ProgressRoot)`
|
|
17337
17432
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
17338
17433
|
position: relative;
|
|
17339
17434
|
overflow: hidden;
|
|
@@ -17354,16 +17449,16 @@ var ProgressBar = ({
|
|
|
17354
17449
|
colorScheme = "inherit",
|
|
17355
17450
|
...props
|
|
17356
17451
|
}) => {
|
|
17357
|
-
return /* @__PURE__ */
|
|
17358
|
-
isNotNil36(labelLeft) ? /* @__PURE__ */
|
|
17359
|
-
/* @__PURE__ */
|
|
17452
|
+
return /* @__PURE__ */ jsxs58(ProgressBarWrapper, { children: [
|
|
17453
|
+
isNotNil36(labelLeft) ? /* @__PURE__ */ jsx329(ProgressBarLabel, { children: labelLeft }) : null,
|
|
17454
|
+
/* @__PURE__ */ jsx329(
|
|
17360
17455
|
StyledProgressBar,
|
|
17361
17456
|
{
|
|
17362
17457
|
$colorScheme: colorScheme,
|
|
17363
17458
|
max,
|
|
17364
17459
|
value: progress,
|
|
17365
17460
|
...props,
|
|
17366
|
-
children: /* @__PURE__ */
|
|
17461
|
+
children: /* @__PURE__ */ jsx329(
|
|
17367
17462
|
StyledProgressIndicator,
|
|
17368
17463
|
{
|
|
17369
17464
|
$colorScheme: colorScheme,
|
|
@@ -17373,7 +17468,7 @@ var ProgressBar = ({
|
|
|
17373
17468
|
)
|
|
17374
17469
|
}
|
|
17375
17470
|
),
|
|
17376
|
-
isNotNil36(labelRight) ? /* @__PURE__ */
|
|
17471
|
+
isNotNil36(labelRight) ? /* @__PURE__ */ jsx329(ProgressBarLabel, { children: labelRight }) : null
|
|
17377
17472
|
] });
|
|
17378
17473
|
};
|
|
17379
17474
|
ProgressBar.displayName = "ProgressBar_UI";
|
|
@@ -17381,17 +17476,17 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
17381
17476
|
// src/components/Radio/Radio.tsx
|
|
17382
17477
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
17383
17478
|
import { forwardRef as forwardRef27, useId as useId6 } from "react";
|
|
17384
|
-
import { styled as
|
|
17385
|
-
import { jsx as
|
|
17386
|
-
var sizeSmall2 =
|
|
17479
|
+
import { styled as styled90, css as css44 } from "styled-components";
|
|
17480
|
+
import { jsx as jsx330, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
17481
|
+
var sizeSmall2 = css44`
|
|
17387
17482
|
--wui-radio-size: 14px;
|
|
17388
17483
|
--wui-radio-icon-size: 7px;
|
|
17389
17484
|
`;
|
|
17390
|
-
var sizeMedium2 =
|
|
17485
|
+
var sizeMedium2 = css44`
|
|
17391
17486
|
--wui-radio-size: 16px;
|
|
17392
17487
|
--wui-radio-icon-size: 8px;
|
|
17393
17488
|
`;
|
|
17394
|
-
var sizeLarge2 =
|
|
17489
|
+
var sizeLarge2 = css44`
|
|
17395
17490
|
--wui-radio-size: 20px;
|
|
17396
17491
|
--wui-radio-icon-size: 10px;
|
|
17397
17492
|
`;
|
|
@@ -17404,7 +17499,7 @@ var getSizeCss3 = (size) => {
|
|
|
17404
17499
|
}
|
|
17405
17500
|
return sizeMedium2;
|
|
17406
17501
|
};
|
|
17407
|
-
var StyledRadioWrapper =
|
|
17502
|
+
var StyledRadioWrapper = styled90.div`
|
|
17408
17503
|
--wui-radio-background-color: var(--wui-color-bg-surface);
|
|
17409
17504
|
--wui-radio-border-color: var(--wui-color-border-secondary);
|
|
17410
17505
|
--wui-radio-icon-color: transparent;
|
|
@@ -17438,7 +17533,7 @@ var StyledRadioWrapper = styled89.div`
|
|
|
17438
17533
|
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
17439
17534
|
user-select: none;
|
|
17440
17535
|
`;
|
|
17441
|
-
var StyledRadioInput =
|
|
17536
|
+
var StyledRadioInput = styled90.div`
|
|
17442
17537
|
${({ $size }) => getSizeCss3($size)}
|
|
17443
17538
|
width: var(--wui-radio-size);
|
|
17444
17539
|
height: var(--wui-radio-size);
|
|
@@ -17464,7 +17559,7 @@ var StyledRadioInput = styled89.div`
|
|
|
17464
17559
|
transform: translate(-50%, -50%);
|
|
17465
17560
|
}
|
|
17466
17561
|
`;
|
|
17467
|
-
var StyledHiddenRadioInput =
|
|
17562
|
+
var StyledHiddenRadioInput = styled90.input`
|
|
17468
17563
|
${visuallyHiddenStyle}
|
|
17469
17564
|
`;
|
|
17470
17565
|
var Radio = forwardRef27(
|
|
@@ -17491,14 +17586,14 @@ var Radio = forwardRef27(
|
|
|
17491
17586
|
const radioName = name ?? contextName;
|
|
17492
17587
|
const handleOnChange = onChange ?? contextOnChange;
|
|
17493
17588
|
const isChecked = isNotUndefined14(value) && isNotUndefined14(contextValue) ? contextValue === value : checked;
|
|
17494
|
-
return /* @__PURE__ */
|
|
17589
|
+
return /* @__PURE__ */ jsxs59(
|
|
17495
17590
|
StyledRadioWrapper,
|
|
17496
17591
|
{
|
|
17497
17592
|
$disabled: disabled,
|
|
17498
17593
|
$hideLabel: hideLabel,
|
|
17499
17594
|
"aria-invalid": props["aria-invalid"],
|
|
17500
17595
|
children: [
|
|
17501
|
-
/* @__PURE__ */
|
|
17596
|
+
/* @__PURE__ */ jsx330(
|
|
17502
17597
|
StyledHiddenRadioInput,
|
|
17503
17598
|
{
|
|
17504
17599
|
...props,
|
|
@@ -17513,10 +17608,10 @@ var Radio = forwardRef27(
|
|
|
17513
17608
|
value
|
|
17514
17609
|
}
|
|
17515
17610
|
),
|
|
17516
|
-
/* @__PURE__ */
|
|
17611
|
+
/* @__PURE__ */ jsx330(
|
|
17517
17612
|
FormControlLabel,
|
|
17518
17613
|
{
|
|
17519
|
-
controlSlot: /* @__PURE__ */
|
|
17614
|
+
controlSlot: /* @__PURE__ */ jsx330(StyledRadioInput, { $size: size }),
|
|
17520
17615
|
description,
|
|
17521
17616
|
disabled,
|
|
17522
17617
|
hideLabel,
|
|
@@ -17536,17 +17631,17 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
17536
17631
|
|
|
17537
17632
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
17538
17633
|
import { forwardRef as forwardRef28, useId as useId7 } from "react";
|
|
17539
|
-
import { styled as
|
|
17634
|
+
import { styled as styled91, css as css45 } from "styled-components";
|
|
17540
17635
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined15 } from "@wistia/type-guards";
|
|
17541
|
-
import { jsx as
|
|
17542
|
-
var checkedStyles =
|
|
17636
|
+
import { jsx as jsx331, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
17637
|
+
var checkedStyles = css45`
|
|
17543
17638
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
17544
17639
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
17545
17640
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-info);
|
|
17546
17641
|
--wui-color-text: var(--wui-color-text-info);
|
|
17547
17642
|
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
17548
17643
|
`;
|
|
17549
|
-
var disabledStyles =
|
|
17644
|
+
var disabledStyles = css45`
|
|
17550
17645
|
--wui-radio-card-border-color: var(--wui-color-border-disabled);
|
|
17551
17646
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
17552
17647
|
--wui-radio-card-cursor: not-allowed;
|
|
@@ -17554,10 +17649,10 @@ var disabledStyles = css44`
|
|
|
17554
17649
|
--wui-color-text: var(--wui-color-text-disabled);
|
|
17555
17650
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
17556
17651
|
`;
|
|
17557
|
-
var focusStyles =
|
|
17652
|
+
var focusStyles = css45`
|
|
17558
17653
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
17559
17654
|
`;
|
|
17560
|
-
var imageCoverStyles =
|
|
17655
|
+
var imageCoverStyles = css45`
|
|
17561
17656
|
--wui-radio-card-image-inset: 0px;
|
|
17562
17657
|
--wui-radio-card-border-width: 0px;
|
|
17563
17658
|
--wui-inset-shadow-width: 1px;
|
|
@@ -17588,7 +17683,7 @@ var imageCoverStyles = css44`
|
|
|
17588
17683
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
17589
17684
|
}
|
|
17590
17685
|
`;
|
|
17591
|
-
var StyledCard2 =
|
|
17686
|
+
var StyledCard2 = styled91.label`
|
|
17592
17687
|
--wui-radio-card-border-color: var(--wui-color-border-secondary);
|
|
17593
17688
|
--wui-radio-card-background-color: var(--wui-color-bg-surface);
|
|
17594
17689
|
--wui-radio-card-cursor: pointer;
|
|
@@ -17642,7 +17737,7 @@ var StyledCard2 = styled90.label`
|
|
|
17642
17737
|
}
|
|
17643
17738
|
}
|
|
17644
17739
|
`;
|
|
17645
|
-
var StyledHiddenInput =
|
|
17740
|
+
var StyledHiddenInput = styled91.input`
|
|
17646
17741
|
${visuallyHiddenStyle}
|
|
17647
17742
|
`;
|
|
17648
17743
|
var RadioCardRoot = forwardRef28(
|
|
@@ -17668,7 +17763,7 @@ var RadioCardRoot = forwardRef28(
|
|
|
17668
17763
|
const radioName = name ?? contextName;
|
|
17669
17764
|
const handleOnChange = onChange ?? contextOnChange;
|
|
17670
17765
|
const isChecked = isNotUndefined15(value) && isNotUndefined15(contextValue) ? contextValue === value : checked;
|
|
17671
|
-
return /* @__PURE__ */
|
|
17766
|
+
return /* @__PURE__ */ jsxs60(
|
|
17672
17767
|
StyledCard2,
|
|
17673
17768
|
{
|
|
17674
17769
|
$aspectRatio: aspectRatio,
|
|
@@ -17676,7 +17771,7 @@ var RadioCardRoot = forwardRef28(
|
|
|
17676
17771
|
$padding: padding,
|
|
17677
17772
|
htmlFor: computedId,
|
|
17678
17773
|
children: [
|
|
17679
|
-
/* @__PURE__ */
|
|
17774
|
+
/* @__PURE__ */ jsx331(
|
|
17680
17775
|
StyledHiddenInput,
|
|
17681
17776
|
{
|
|
17682
17777
|
...props,
|
|
@@ -17699,12 +17794,12 @@ var RadioCardRoot = forwardRef28(
|
|
|
17699
17794
|
RadioCardRoot.displayName = "RadioCardRoot_UI";
|
|
17700
17795
|
|
|
17701
17796
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
17702
|
-
import { styled as
|
|
17797
|
+
import { styled as styled93 } from "styled-components";
|
|
17703
17798
|
import { isNotNil as isNotNil37 } from "@wistia/type-guards";
|
|
17704
17799
|
|
|
17705
17800
|
// src/components/RadioCard/RadioCardIndicator.tsx
|
|
17706
|
-
import { styled as
|
|
17707
|
-
var RadioCardIndicator =
|
|
17801
|
+
import { styled as styled92 } from "styled-components";
|
|
17802
|
+
var RadioCardIndicator = styled92.div`
|
|
17708
17803
|
--wui-radio-card-indicator-size: 14px;
|
|
17709
17804
|
--wui-radio-card-indicator-background-color: var(--wui-color-bg-surface);
|
|
17710
17805
|
--wui-radio-card-indicator-fill-color: var(--wui-color-bg-fill);
|
|
@@ -17753,22 +17848,22 @@ var RadioCardIndicator = styled91.div`
|
|
|
17753
17848
|
RadioCardIndicator.displayName = "RadioCardIndicator_UI";
|
|
17754
17849
|
|
|
17755
17850
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
17756
|
-
import { jsx as
|
|
17757
|
-
var StyledCardContent =
|
|
17851
|
+
import { jsx as jsx332, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
17852
|
+
var StyledCardContent = styled93.div`
|
|
17758
17853
|
display: grid;
|
|
17759
17854
|
grid-auto-flow: column;
|
|
17760
17855
|
gap: var(--wui-space-02);
|
|
17761
17856
|
`;
|
|
17762
|
-
var StyledCardIcon =
|
|
17857
|
+
var StyledCardIcon = styled93.div`
|
|
17763
17858
|
display: contents;
|
|
17764
17859
|
`;
|
|
17765
|
-
var StyledGatedIcon =
|
|
17860
|
+
var StyledGatedIcon = styled93.div`
|
|
17766
17861
|
position: absolute;
|
|
17767
17862
|
right: 10px;
|
|
17768
17863
|
top: 10px;
|
|
17769
17864
|
z-index: 1;
|
|
17770
17865
|
`;
|
|
17771
|
-
var StyledIndicatorContainer =
|
|
17866
|
+
var StyledIndicatorContainer = styled93.div`
|
|
17772
17867
|
height: ${({ $hasIcon }) => $hasIcon ? "24px" : "16px"};
|
|
17773
17868
|
display: flex;
|
|
17774
17869
|
align-items: center;
|
|
@@ -17780,9 +17875,9 @@ var RadioCardDefaultLayout = ({
|
|
|
17780
17875
|
showIndicator = true,
|
|
17781
17876
|
isGated = false
|
|
17782
17877
|
}) => {
|
|
17783
|
-
return /* @__PURE__ */
|
|
17784
|
-
showIndicator ? /* @__PURE__ */
|
|
17785
|
-
isGated ? /* @__PURE__ */
|
|
17878
|
+
return /* @__PURE__ */ jsxs61(StyledCardContent, { children: [
|
|
17879
|
+
showIndicator ? /* @__PURE__ */ jsx332(StyledIndicatorContainer, { $hasIcon: isNotNil37(icon), children: /* @__PURE__ */ jsx332(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
|
|
17880
|
+
isGated ? /* @__PURE__ */ jsx332(StyledGatedIcon, { "data-testid": "wui-radio-gated-icon", children: /* @__PURE__ */ jsx332(
|
|
17786
17881
|
Icon,
|
|
17787
17882
|
{
|
|
17788
17883
|
colorScheme: "purple",
|
|
@@ -17790,16 +17885,16 @@ var RadioCardDefaultLayout = ({
|
|
|
17790
17885
|
type: "sparkle"
|
|
17791
17886
|
}
|
|
17792
17887
|
) }) : null,
|
|
17793
|
-
/* @__PURE__ */
|
|
17794
|
-
isNotNil37(icon) && /* @__PURE__ */
|
|
17795
|
-
/* @__PURE__ */
|
|
17888
|
+
/* @__PURE__ */ jsxs61(Stack, { gap: "space-02", children: [
|
|
17889
|
+
isNotNil37(icon) && /* @__PURE__ */ jsx332(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
|
|
17890
|
+
/* @__PURE__ */ jsxs61(
|
|
17796
17891
|
Stack,
|
|
17797
17892
|
{
|
|
17798
17893
|
gap: "space-01",
|
|
17799
17894
|
style: isNotNil37(icon) ? { paddingLeft: 2 } : void 0,
|
|
17800
17895
|
children: [
|
|
17801
|
-
isNotNil37(label) && /* @__PURE__ */
|
|
17802
|
-
isNotNil37(description) && /* @__PURE__ */
|
|
17896
|
+
isNotNil37(label) && /* @__PURE__ */ jsx332(Text, { variant: "label3", children: /* @__PURE__ */ jsx332("strong", { children: label }) }),
|
|
17897
|
+
isNotNil37(description) && /* @__PURE__ */ jsx332(
|
|
17803
17898
|
Text,
|
|
17804
17899
|
{
|
|
17805
17900
|
prominence: "secondary",
|
|
@@ -17816,23 +17911,23 @@ var RadioCardDefaultLayout = ({
|
|
|
17816
17911
|
RadioCardDefaultLayout.displayName = "RadioCardDefaultLayout_UI";
|
|
17817
17912
|
|
|
17818
17913
|
// src/components/RadioCard/RadioCardChildrenContainer.tsx
|
|
17819
|
-
import { styled as
|
|
17820
|
-
var RadioCardChildrenContainer =
|
|
17914
|
+
import { styled as styled94 } from "styled-components";
|
|
17915
|
+
var RadioCardChildrenContainer = styled94.div`
|
|
17821
17916
|
flex: 1 1 auto;
|
|
17822
17917
|
`;
|
|
17823
17918
|
|
|
17824
17919
|
// src/components/RadioCard/RadioCard.tsx
|
|
17825
|
-
import { jsx as
|
|
17920
|
+
import { jsx as jsx333 } from "react/jsx-runtime";
|
|
17826
17921
|
var RadioCard = forwardRef29(
|
|
17827
17922
|
({ icon, label, description, showIndicator, isGated, children, ...rootProps }, ref) => {
|
|
17828
|
-
return /* @__PURE__ */
|
|
17923
|
+
return /* @__PURE__ */ jsx333(
|
|
17829
17924
|
RadioCardRoot,
|
|
17830
17925
|
{
|
|
17831
17926
|
ref,
|
|
17832
17927
|
isGated,
|
|
17833
17928
|
padding: children != null ? "space-00" : "space-04",
|
|
17834
17929
|
...rootProps,
|
|
17835
|
-
children: children != null ? /* @__PURE__ */
|
|
17930
|
+
children: children != null ? /* @__PURE__ */ jsx333(RadioCardChildrenContainer, { "data-wui-radio-card-image": "cover", children }) : /* @__PURE__ */ jsx333(
|
|
17836
17931
|
RadioCardDefaultLayout,
|
|
17837
17932
|
{
|
|
17838
17933
|
description,
|
|
@@ -17850,17 +17945,17 @@ RadioCard.displayName = "RadioCard_UI";
|
|
|
17850
17945
|
|
|
17851
17946
|
// src/components/RadioCard/RadioCardImage.tsx
|
|
17852
17947
|
import { forwardRef as forwardRef30 } from "react";
|
|
17853
|
-
import { jsx as
|
|
17948
|
+
import { jsx as jsx334 } from "react/jsx-runtime";
|
|
17854
17949
|
var RadioCardImage = forwardRef30(
|
|
17855
17950
|
({ label, imageSrc, aspectRatio, padding = "space-04", ...rootProps }, ref) => {
|
|
17856
|
-
return /* @__PURE__ */
|
|
17951
|
+
return /* @__PURE__ */ jsx334(
|
|
17857
17952
|
RadioCardRoot,
|
|
17858
17953
|
{
|
|
17859
17954
|
ref,
|
|
17860
17955
|
...rootProps,
|
|
17861
17956
|
aspectRatio,
|
|
17862
17957
|
padding,
|
|
17863
|
-
children: /* @__PURE__ */
|
|
17958
|
+
children: /* @__PURE__ */ jsx334(
|
|
17864
17959
|
Image,
|
|
17865
17960
|
{
|
|
17866
17961
|
alt: label,
|
|
@@ -17878,49 +17973,49 @@ RadioCardImage.displayName = "RadioCardImage_UI";
|
|
|
17878
17973
|
|
|
17879
17974
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
17880
17975
|
import { forwardRef as forwardRef31, useCallback as useCallback18, useEffect as useEffect21, useMemo as useMemo15, useRef as useRef22, useState as useState24 } from "react";
|
|
17881
|
-
import { styled as
|
|
17976
|
+
import { styled as styled95 } from "styled-components";
|
|
17882
17977
|
import { throttle } from "throttle-debounce";
|
|
17883
|
-
import { jsx as
|
|
17978
|
+
import { jsx as jsx335, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17884
17979
|
var SHADOW_SIZE_PX = 8;
|
|
17885
|
-
var Container10 =
|
|
17980
|
+
var Container10 = styled95.div`
|
|
17886
17981
|
overflow: hidden;
|
|
17887
17982
|
position: relative;
|
|
17888
17983
|
flex: 1 1 auto;
|
|
17889
17984
|
`;
|
|
17890
|
-
var ScrollContainer =
|
|
17985
|
+
var ScrollContainer = styled95.div`
|
|
17891
17986
|
overflow: ${({ $locked }) => $locked ? "hidden" : "auto"};
|
|
17892
17987
|
height: 100%;
|
|
17893
17988
|
width: 100%;
|
|
17894
17989
|
`;
|
|
17895
|
-
var Shadow =
|
|
17990
|
+
var Shadow = styled95.div`
|
|
17896
17991
|
pointer-events: none;
|
|
17897
17992
|
position: absolute;
|
|
17898
17993
|
transition: box-shadow var(--wui-motion-duration-04) var(--wui-motion-ease);
|
|
17899
17994
|
box-shadow: ${({ $isVisible }) => $isVisible ? `0 0 ${SHADOW_SIZE_PX}px ${SHADOW_SIZE_PX}px var(--wui-color-drop-shadow)` : "none"};
|
|
17900
17995
|
z-index: 1;
|
|
17901
17996
|
`;
|
|
17902
|
-
var ShadowAtTop =
|
|
17997
|
+
var ShadowAtTop = styled95(Shadow)`
|
|
17903
17998
|
transform: translateY(-${SHADOW_SIZE_PX}px);
|
|
17904
17999
|
height: 0;
|
|
17905
18000
|
left: 0;
|
|
17906
18001
|
right: 0;
|
|
17907
18002
|
top: 0;
|
|
17908
18003
|
`;
|
|
17909
|
-
var ShadowAtBottom =
|
|
18004
|
+
var ShadowAtBottom = styled95(Shadow)`
|
|
17910
18005
|
transform: translateY(${SHADOW_SIZE_PX}px);
|
|
17911
18006
|
bottom: 0;
|
|
17912
18007
|
height: 0;
|
|
17913
18008
|
left: 0;
|
|
17914
18009
|
right: 0;
|
|
17915
18010
|
`;
|
|
17916
|
-
var ShadowAtLeft =
|
|
18011
|
+
var ShadowAtLeft = styled95(Shadow)`
|
|
17917
18012
|
transform: translateX(-${SHADOW_SIZE_PX}px);
|
|
17918
18013
|
bottom: 0;
|
|
17919
18014
|
left: 0;
|
|
17920
18015
|
top: 0;
|
|
17921
18016
|
width: 0;
|
|
17922
18017
|
`;
|
|
17923
|
-
var ShadowAtRight =
|
|
18018
|
+
var ShadowAtRight = styled95(Shadow)`
|
|
17924
18019
|
transform: translateX(${SHADOW_SIZE_PX}px);
|
|
17925
18020
|
bottom: 0;
|
|
17926
18021
|
right: 0;
|
|
@@ -17960,12 +18055,12 @@ var ScrollArea = forwardRef31(
|
|
|
17960
18055
|
useEffect21(() => {
|
|
17961
18056
|
updateShadows();
|
|
17962
18057
|
}, [updateShadows]);
|
|
17963
|
-
return /* @__PURE__ */
|
|
17964
|
-
/* @__PURE__ */
|
|
17965
|
-
/* @__PURE__ */
|
|
17966
|
-
/* @__PURE__ */
|
|
17967
|
-
/* @__PURE__ */
|
|
17968
|
-
/* @__PURE__ */
|
|
18058
|
+
return /* @__PURE__ */ jsxs62(Container10, { style, children: [
|
|
18059
|
+
/* @__PURE__ */ jsx335(ShadowAtTop, { $isVisible: shadowState.canScrollUp }),
|
|
18060
|
+
/* @__PURE__ */ jsx335(ShadowAtBottom, { $isVisible: shadowState.canScrollDown }),
|
|
18061
|
+
/* @__PURE__ */ jsx335(ShadowAtLeft, { $isVisible: shadowState.canScrollLeft }),
|
|
18062
|
+
/* @__PURE__ */ jsx335(ShadowAtRight, { $isVisible: shadowState.canScrollRight }),
|
|
18063
|
+
/* @__PURE__ */ jsx335(
|
|
17969
18064
|
ScrollContainer,
|
|
17970
18065
|
{
|
|
17971
18066
|
ref: scrollContainerRef,
|
|
@@ -17982,13 +18077,13 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
17982
18077
|
|
|
17983
18078
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17984
18079
|
import { forwardRef as forwardRef32 } from "react";
|
|
17985
|
-
import { styled as
|
|
18080
|
+
import { styled as styled97, css as css47 } from "styled-components";
|
|
17986
18081
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
17987
18082
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
17988
18083
|
|
|
17989
18084
|
// src/components/SegmentedControl/useSelectedItemStyle.tsx
|
|
17990
18085
|
import { createContext as createContext9, useContext as useContext15, useMemo as useMemo16, useState as useState25 } from "react";
|
|
17991
|
-
import { jsx as
|
|
18086
|
+
import { jsx as jsx336 } from "react/jsx-runtime";
|
|
17992
18087
|
var SelectedItemStyleContext = createContext9(null);
|
|
17993
18088
|
var SelectedItemStyleProvider = ({
|
|
17994
18089
|
children
|
|
@@ -18009,7 +18104,7 @@ var SelectedItemStyleProvider = ({
|
|
|
18009
18104
|
}),
|
|
18010
18105
|
[selectedItemIndicatorStyle]
|
|
18011
18106
|
);
|
|
18012
|
-
return /* @__PURE__ */
|
|
18107
|
+
return /* @__PURE__ */ jsx336(SelectedItemStyleContext.Provider, { value: contextValue, children });
|
|
18013
18108
|
};
|
|
18014
18109
|
var useSelectedItemStyle = () => {
|
|
18015
18110
|
const context = useContext15(SelectedItemStyleContext);
|
|
@@ -18020,7 +18115,7 @@ var useSelectedItemStyle = () => {
|
|
|
18020
18115
|
};
|
|
18021
18116
|
|
|
18022
18117
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
18023
|
-
import { styled as
|
|
18118
|
+
import { styled as styled96, css as css46 } from "styled-components";
|
|
18024
18119
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
18025
18120
|
|
|
18026
18121
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -18036,13 +18131,13 @@ var useSegmentedControlValue = () => {
|
|
|
18036
18131
|
};
|
|
18037
18132
|
|
|
18038
18133
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
18039
|
-
import { jsx as
|
|
18040
|
-
var selectedItemIndicatorStyles =
|
|
18134
|
+
import { jsx as jsx337 } from "react/jsx-runtime";
|
|
18135
|
+
var selectedItemIndicatorStyles = css46`
|
|
18041
18136
|
background-color: var(--wui-color-bg-fill-white);
|
|
18042
18137
|
border-radius: var(--wui-border-radius-rounded);
|
|
18043
18138
|
box-shadow: var(--wui-elevation-01);
|
|
18044
18139
|
`;
|
|
18045
|
-
var SelectedItemIndicatorDiv =
|
|
18140
|
+
var SelectedItemIndicatorDiv = styled96.div`
|
|
18046
18141
|
${selectedItemIndicatorStyles}
|
|
18047
18142
|
left: 0;
|
|
18048
18143
|
position: absolute;
|
|
@@ -18058,7 +18153,7 @@ var SelectedItemIndicator = () => {
|
|
|
18058
18153
|
if (!selectedValue || isUndefined5(selectedItemIndicatorStyle)) {
|
|
18059
18154
|
return null;
|
|
18060
18155
|
}
|
|
18061
|
-
return /* @__PURE__ */
|
|
18156
|
+
return /* @__PURE__ */ jsx337(
|
|
18062
18157
|
SelectedItemIndicatorDiv,
|
|
18063
18158
|
{
|
|
18064
18159
|
"data-wui-selected-item-indicator": true,
|
|
@@ -18068,8 +18163,8 @@ var SelectedItemIndicator = () => {
|
|
|
18068
18163
|
};
|
|
18069
18164
|
|
|
18070
18165
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18071
|
-
import { jsx as
|
|
18072
|
-
var segmentedControlStyles =
|
|
18166
|
+
import { jsx as jsx338, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
18167
|
+
var segmentedControlStyles = css47`
|
|
18073
18168
|
${({ $colorScheme }) => $colorScheme && getColorScheme($colorScheme)};
|
|
18074
18169
|
${({ $colorScheme }) => $colorScheme !== "nav" && `--wui-color-text-selected: var(--wui-color-text-link);`}
|
|
18075
18170
|
|
|
@@ -18083,7 +18178,7 @@ var segmentedControlStyles = css46`
|
|
|
18083
18178
|
position: relative;
|
|
18084
18179
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
18085
18180
|
`;
|
|
18086
|
-
var StyledSegmentedControl =
|
|
18181
|
+
var StyledSegmentedControl = styled97(ToggleGroupRoot2)`
|
|
18087
18182
|
${segmentedControlStyles}
|
|
18088
18183
|
`;
|
|
18089
18184
|
var SegmentedControl = forwardRef32(
|
|
@@ -18099,7 +18194,7 @@ var SegmentedControl = forwardRef32(
|
|
|
18099
18194
|
if (isNil18(children)) {
|
|
18100
18195
|
return null;
|
|
18101
18196
|
}
|
|
18102
|
-
return /* @__PURE__ */
|
|
18197
|
+
return /* @__PURE__ */ jsx338(
|
|
18103
18198
|
StyledSegmentedControl,
|
|
18104
18199
|
{
|
|
18105
18200
|
ref,
|
|
@@ -18112,9 +18207,9 @@ var SegmentedControl = forwardRef32(
|
|
|
18112
18207
|
type: "single",
|
|
18113
18208
|
value: selectedValue,
|
|
18114
18209
|
...props,
|
|
18115
|
-
children: /* @__PURE__ */
|
|
18210
|
+
children: /* @__PURE__ */ jsx338(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs63(SelectedItemStyleProvider, { children: [
|
|
18116
18211
|
children,
|
|
18117
|
-
/* @__PURE__ */
|
|
18212
|
+
/* @__PURE__ */ jsx338(SelectedItemIndicator, {})
|
|
18118
18213
|
] }) })
|
|
18119
18214
|
}
|
|
18120
18215
|
);
|
|
@@ -18124,11 +18219,11 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
18124
18219
|
|
|
18125
18220
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
18126
18221
|
import { forwardRef as forwardRef33, useEffect as useEffect22, useRef as useRef23 } from "react";
|
|
18127
|
-
import { styled as
|
|
18222
|
+
import { styled as styled98, css as css48 } from "styled-components";
|
|
18128
18223
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
18129
18224
|
import { isNotNil as isNotNil38 } from "@wistia/type-guards";
|
|
18130
|
-
import { jsxs as
|
|
18131
|
-
var segmentedControlItemStyles =
|
|
18225
|
+
import { jsxs as jsxs64 } from "react/jsx-runtime";
|
|
18226
|
+
var segmentedControlItemStyles = css48`
|
|
18132
18227
|
all: unset; /* ToggleGroupItem is a button element */
|
|
18133
18228
|
align-items: center;
|
|
18134
18229
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -18196,7 +18291,7 @@ var segmentedControlItemStyles = css47`
|
|
|
18196
18291
|
}
|
|
18197
18292
|
}
|
|
18198
18293
|
`;
|
|
18199
|
-
var StyledSegmentedControlItem =
|
|
18294
|
+
var StyledSegmentedControlItem = styled98(ToggleGroupItem2)`
|
|
18200
18295
|
${segmentedControlItemStyles}
|
|
18201
18296
|
`;
|
|
18202
18297
|
var SegmentedControlItem = forwardRef33(
|
|
@@ -18237,7 +18332,7 @@ var SegmentedControlItem = forwardRef33(
|
|
|
18237
18332
|
resizeObserver.disconnect();
|
|
18238
18333
|
};
|
|
18239
18334
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
18240
|
-
return /* @__PURE__ */
|
|
18335
|
+
return /* @__PURE__ */ jsxs64(
|
|
18241
18336
|
StyledSegmentedControlItem,
|
|
18242
18337
|
{
|
|
18243
18338
|
ref: combinedRef,
|
|
@@ -18259,19 +18354,19 @@ SegmentedControlItem.displayName = "SegmentedControlItem_UI";
|
|
|
18259
18354
|
|
|
18260
18355
|
// src/components/Select/Select.tsx
|
|
18261
18356
|
import {
|
|
18262
|
-
Root as
|
|
18263
|
-
Trigger as
|
|
18264
|
-
Portal as
|
|
18265
|
-
Content as
|
|
18357
|
+
Root as Root4,
|
|
18358
|
+
Trigger as Trigger4,
|
|
18359
|
+
Portal as Portal3,
|
|
18360
|
+
Content as Content4,
|
|
18266
18361
|
ScrollUpButton,
|
|
18267
18362
|
Viewport,
|
|
18268
18363
|
Value,
|
|
18269
18364
|
ScrollDownButton
|
|
18270
18365
|
} from "@radix-ui/react-select";
|
|
18271
18366
|
import { forwardRef as forwardRef34 } from "react";
|
|
18272
|
-
import { styled as
|
|
18273
|
-
import { jsx as
|
|
18274
|
-
var StyledTrigger2 =
|
|
18367
|
+
import { styled as styled99, css as css49 } from "styled-components";
|
|
18368
|
+
import { jsx as jsx339, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
18369
|
+
var StyledTrigger2 = styled99(Trigger4)`
|
|
18275
18370
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
18276
18371
|
${inputCss};
|
|
18277
18372
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -18317,7 +18412,7 @@ var StyledTrigger2 = styled98(Trigger3)`
|
|
|
18317
18412
|
color: var(--wui-input-placeholder);
|
|
18318
18413
|
}
|
|
18319
18414
|
`;
|
|
18320
|
-
var
|
|
18415
|
+
var StyledContent4 = styled99(Content4)`
|
|
18321
18416
|
--wui-select-content-border: var(--wui-color-border);
|
|
18322
18417
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
18323
18418
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -18339,15 +18434,15 @@ var StyledContent3 = styled98(Content3)`
|
|
|
18339
18434
|
margin: var(--wui-space-02) 0;
|
|
18340
18435
|
}
|
|
18341
18436
|
`;
|
|
18342
|
-
var scrollButtonStyles =
|
|
18437
|
+
var scrollButtonStyles = css49`
|
|
18343
18438
|
align-items: center;
|
|
18344
18439
|
display: flex;
|
|
18345
18440
|
justify-content: center;
|
|
18346
18441
|
`;
|
|
18347
|
-
var StyledScrollDownButton =
|
|
18442
|
+
var StyledScrollDownButton = styled99(ScrollDownButton)`
|
|
18348
18443
|
${scrollButtonStyles}
|
|
18349
18444
|
`;
|
|
18350
|
-
var StyledScrollUpButton =
|
|
18445
|
+
var StyledScrollUpButton = styled99(ScrollUpButton)`
|
|
18351
18446
|
${scrollButtonStyles}
|
|
18352
18447
|
`;
|
|
18353
18448
|
var Select = forwardRef34(
|
|
@@ -18370,8 +18465,8 @@ var Select = forwardRef34(
|
|
|
18370
18465
|
if (forceOpen) {
|
|
18371
18466
|
rootProps["open"] = true;
|
|
18372
18467
|
}
|
|
18373
|
-
return /* @__PURE__ */
|
|
18374
|
-
/* @__PURE__ */
|
|
18468
|
+
return /* @__PURE__ */ jsxs65(Root4, { ...rootProps, children: [
|
|
18469
|
+
/* @__PURE__ */ jsxs65(
|
|
18375
18470
|
StyledTrigger2,
|
|
18376
18471
|
{
|
|
18377
18472
|
ref: forwardedRef,
|
|
@@ -18379,8 +18474,8 @@ var Select = forwardRef34(
|
|
|
18379
18474
|
$fullWidth: responsiveFullWidth,
|
|
18380
18475
|
...props,
|
|
18381
18476
|
children: [
|
|
18382
|
-
/* @__PURE__ */
|
|
18383
|
-
/* @__PURE__ */
|
|
18477
|
+
/* @__PURE__ */ jsx339(Value, { placeholder }),
|
|
18478
|
+
/* @__PURE__ */ jsx339(
|
|
18384
18479
|
Icon,
|
|
18385
18480
|
{
|
|
18386
18481
|
size: "md",
|
|
@@ -18390,21 +18485,21 @@ var Select = forwardRef34(
|
|
|
18390
18485
|
]
|
|
18391
18486
|
}
|
|
18392
18487
|
),
|
|
18393
|
-
/* @__PURE__ */
|
|
18394
|
-
|
|
18488
|
+
/* @__PURE__ */ jsx339(Portal3, { children: /* @__PURE__ */ jsxs65(
|
|
18489
|
+
StyledContent4,
|
|
18395
18490
|
{
|
|
18396
18491
|
position: "popper",
|
|
18397
18492
|
sideOffset: 8,
|
|
18398
18493
|
children: [
|
|
18399
|
-
/* @__PURE__ */
|
|
18494
|
+
/* @__PURE__ */ jsx339(StyledScrollUpButton, { children: /* @__PURE__ */ jsx339(
|
|
18400
18495
|
Icon,
|
|
18401
18496
|
{
|
|
18402
18497
|
size: "sm",
|
|
18403
18498
|
type: "caret-up"
|
|
18404
18499
|
}
|
|
18405
18500
|
) }),
|
|
18406
|
-
/* @__PURE__ */
|
|
18407
|
-
/* @__PURE__ */
|
|
18501
|
+
/* @__PURE__ */ jsx339(Viewport, { children }),
|
|
18502
|
+
/* @__PURE__ */ jsx339(StyledScrollDownButton, { children: /* @__PURE__ */ jsx339(
|
|
18408
18503
|
Icon,
|
|
18409
18504
|
{
|
|
18410
18505
|
size: "sm",
|
|
@@ -18422,10 +18517,10 @@ Select.displayName = "Select_UI";
|
|
|
18422
18517
|
// src/components/Select/SelectOption.tsx
|
|
18423
18518
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
18424
18519
|
import { forwardRef as forwardRef35 } from "react";
|
|
18425
|
-
import { styled as
|
|
18520
|
+
import { styled as styled100 } from "styled-components";
|
|
18426
18521
|
import { isNotNil as isNotNil39 } from "@wistia/type-guards";
|
|
18427
|
-
import { jsx as
|
|
18428
|
-
var StyledItem =
|
|
18522
|
+
import { jsx as jsx340, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
18523
|
+
var StyledItem = styled100(Item)`
|
|
18429
18524
|
${getTypographicStyles("label3")}
|
|
18430
18525
|
align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
|
|
18431
18526
|
background-color: transparent;
|
|
@@ -18453,18 +18548,18 @@ var StyledItem = styled99(Item)`
|
|
|
18453
18548
|
`;
|
|
18454
18549
|
var SelectOption = forwardRef35(
|
|
18455
18550
|
({ children, selectedDisplayValue, checkmarkVerticalAlign = "center", ...props }, forwardedRef) => {
|
|
18456
|
-
return /* @__PURE__ */
|
|
18551
|
+
return /* @__PURE__ */ jsxs66(
|
|
18457
18552
|
StyledItem,
|
|
18458
18553
|
{
|
|
18459
18554
|
...props,
|
|
18460
18555
|
ref: forwardedRef,
|
|
18461
18556
|
$checkmarkVerticalAlign: checkmarkVerticalAlign,
|
|
18462
18557
|
children: [
|
|
18463
|
-
isNotNil39(selectedDisplayValue) ? /* @__PURE__ */
|
|
18558
|
+
isNotNil39(selectedDisplayValue) ? /* @__PURE__ */ jsxs66("div", { children: [
|
|
18464
18559
|
children,
|
|
18465
|
-
/* @__PURE__ */
|
|
18466
|
-
] }) : /* @__PURE__ */
|
|
18467
|
-
/* @__PURE__ */
|
|
18560
|
+
/* @__PURE__ */ jsx340("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx340(ItemText, { children: selectedDisplayValue }) })
|
|
18561
|
+
] }) : /* @__PURE__ */ jsx340(ItemText, { children }),
|
|
18562
|
+
/* @__PURE__ */ jsx340(ItemIndicator, { children: /* @__PURE__ */ jsx340(
|
|
18468
18563
|
Icon,
|
|
18469
18564
|
{
|
|
18470
18565
|
size: "md",
|
|
@@ -18480,14 +18575,14 @@ SelectOption.displayName = "SelectOption_UI";
|
|
|
18480
18575
|
|
|
18481
18576
|
// src/components/Select/SelectOptionGroup.tsx
|
|
18482
18577
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
18483
|
-
import { styled as
|
|
18484
|
-
import { jsx as
|
|
18485
|
-
var StyledLabel4 =
|
|
18578
|
+
import { styled as styled101 } from "styled-components";
|
|
18579
|
+
import { jsx as jsx341, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
18580
|
+
var StyledLabel4 = styled101(Label3)`
|
|
18486
18581
|
padding: var(--wui-select-option-padding);
|
|
18487
18582
|
`;
|
|
18488
18583
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
18489
|
-
return /* @__PURE__ */
|
|
18490
|
-
/* @__PURE__ */
|
|
18584
|
+
return /* @__PURE__ */ jsxs67(Group, { ...props, children: [
|
|
18585
|
+
/* @__PURE__ */ jsx341(StyledLabel4, { children: /* @__PURE__ */ jsx341(
|
|
18491
18586
|
Heading,
|
|
18492
18587
|
{
|
|
18493
18588
|
renderAs: "span",
|
|
@@ -18506,10 +18601,10 @@ import {
|
|
|
18506
18601
|
Range as RadixSliderRange,
|
|
18507
18602
|
Thumb as RadixSliderThumb
|
|
18508
18603
|
} from "@radix-ui/react-slider";
|
|
18509
|
-
import { styled as
|
|
18604
|
+
import { styled as styled102 } from "styled-components";
|
|
18510
18605
|
import { isNonEmptyString as isNonEmptyString9 } from "@wistia/type-guards";
|
|
18511
|
-
import { jsx as
|
|
18512
|
-
var SliderContainer =
|
|
18606
|
+
import { jsx as jsx342, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
18607
|
+
var SliderContainer = styled102.div`
|
|
18513
18608
|
--wui-slider-track-color: var(--wui-gray-6);
|
|
18514
18609
|
--wui-slider-track-border-radius: var(--wui-border-radius-rounded);
|
|
18515
18610
|
--wui-slider-range-color: var(--wui-color-bg-fill);
|
|
@@ -18525,7 +18620,7 @@ var SliderContainer = styled101.div`
|
|
|
18525
18620
|
pointer-events: none;
|
|
18526
18621
|
}
|
|
18527
18622
|
`;
|
|
18528
|
-
var StyledSliderRoot =
|
|
18623
|
+
var StyledSliderRoot = styled102(RadixSliderRoot)`
|
|
18529
18624
|
position: relative;
|
|
18530
18625
|
display: flex;
|
|
18531
18626
|
align-items: center;
|
|
@@ -18533,20 +18628,20 @@ var StyledSliderRoot = styled101(RadixSliderRoot)`
|
|
|
18533
18628
|
touch-action: none;
|
|
18534
18629
|
width: 100%;
|
|
18535
18630
|
`;
|
|
18536
|
-
var StyledSliderTrack =
|
|
18631
|
+
var StyledSliderTrack = styled102(RadixSliderTrack)`
|
|
18537
18632
|
background-color: var(--wui-slider-track-color);
|
|
18538
18633
|
border-radius: var(--wui-slider-track-border-radius);
|
|
18539
18634
|
flex-grow: 1;
|
|
18540
18635
|
height: 6px;
|
|
18541
18636
|
position: relative;
|
|
18542
18637
|
`;
|
|
18543
|
-
var StyledSliderRange =
|
|
18638
|
+
var StyledSliderRange = styled102(RadixSliderRange)`
|
|
18544
18639
|
background-color: var(--wui-slider-range-color);
|
|
18545
18640
|
border-radius: var(--wui-slider-track-border-radius);
|
|
18546
18641
|
height: 100%;
|
|
18547
18642
|
position: absolute;
|
|
18548
18643
|
`;
|
|
18549
|
-
var StyledSliderThumb =
|
|
18644
|
+
var StyledSliderThumb = styled102(RadixSliderThumb)`
|
|
18550
18645
|
background-color: var(--wui-slider-thumb-color);
|
|
18551
18646
|
border-radius: var(--wui-border-radius-rounded);
|
|
18552
18647
|
cursor: grab;
|
|
@@ -18597,12 +18692,12 @@ var Slider = ({
|
|
|
18597
18692
|
onChange(newValue);
|
|
18598
18693
|
}
|
|
18599
18694
|
};
|
|
18600
|
-
return /* @__PURE__ */
|
|
18695
|
+
return /* @__PURE__ */ jsx342(
|
|
18601
18696
|
SliderContainer,
|
|
18602
18697
|
{
|
|
18603
18698
|
...otherProps,
|
|
18604
18699
|
"data-testid": dataTestId,
|
|
18605
|
-
children: /* @__PURE__ */
|
|
18700
|
+
children: /* @__PURE__ */ jsxs68(
|
|
18606
18701
|
StyledSliderRoot,
|
|
18607
18702
|
{
|
|
18608
18703
|
"aria-label": ariaLabel,
|
|
@@ -18615,8 +18710,8 @@ var Slider = ({
|
|
|
18615
18710
|
step,
|
|
18616
18711
|
...value ? { value } : {},
|
|
18617
18712
|
children: [
|
|
18618
|
-
/* @__PURE__ */
|
|
18619
|
-
values.map((_, index) => /* @__PURE__ */
|
|
18713
|
+
/* @__PURE__ */ jsx342(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ jsx342(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
|
|
18714
|
+
values.map((_, index) => /* @__PURE__ */ jsx342(
|
|
18620
18715
|
StyledSliderThumb,
|
|
18621
18716
|
{
|
|
18622
18717
|
"data-testid": `${dataTestId}-thumb-${index}`
|
|
@@ -18632,11 +18727,11 @@ var Slider = ({
|
|
|
18632
18727
|
Slider.displayName = "Slider_UI";
|
|
18633
18728
|
|
|
18634
18729
|
// src/components/SplitButton/SplitButton.tsx
|
|
18635
|
-
import { styled as
|
|
18730
|
+
import { styled as styled103 } from "styled-components";
|
|
18636
18731
|
import { isNotNil as isNotNil40 } from "@wistia/type-guards";
|
|
18637
18732
|
import { cloneElement as cloneElement9 } from "react";
|
|
18638
|
-
import { jsx as
|
|
18639
|
-
var StyledSplitButton =
|
|
18733
|
+
import { jsx as jsx343, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
18734
|
+
var StyledSplitButton = styled103.span`
|
|
18640
18735
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
18641
18736
|
white-space: nowrap;
|
|
18642
18737
|
|
|
@@ -18657,7 +18752,7 @@ var StyledSplitButton = styled102.span`
|
|
|
18657
18752
|
var SplitButton = ({
|
|
18658
18753
|
children,
|
|
18659
18754
|
menuLabel = "Select an option",
|
|
18660
|
-
menuIcon = /* @__PURE__ */
|
|
18755
|
+
menuIcon = /* @__PURE__ */ jsx343(Icon, { type: "caret-down" }),
|
|
18661
18756
|
menuItems,
|
|
18662
18757
|
disabled = false,
|
|
18663
18758
|
colorScheme = "inherit",
|
|
@@ -18668,8 +18763,8 @@ var SplitButton = ({
|
|
|
18668
18763
|
menuProps = {},
|
|
18669
18764
|
...props
|
|
18670
18765
|
}) => {
|
|
18671
|
-
return /* @__PURE__ */
|
|
18672
|
-
/* @__PURE__ */
|
|
18766
|
+
return /* @__PURE__ */ jsxs69(StyledSplitButton, { $colorScheme: colorScheme, children: [
|
|
18767
|
+
/* @__PURE__ */ jsx343(
|
|
18673
18768
|
Button,
|
|
18674
18769
|
{
|
|
18675
18770
|
disabled,
|
|
@@ -18680,12 +18775,12 @@ var SplitButton = ({
|
|
|
18680
18775
|
children
|
|
18681
18776
|
}
|
|
18682
18777
|
),
|
|
18683
|
-
isNotNil40(menuItems) && /* @__PURE__ */
|
|
18778
|
+
isNotNil40(menuItems) && /* @__PURE__ */ jsx343(
|
|
18684
18779
|
Menu,
|
|
18685
18780
|
{
|
|
18686
18781
|
...menuProps,
|
|
18687
18782
|
disabled,
|
|
18688
|
-
trigger: /* @__PURE__ */
|
|
18783
|
+
trigger: /* @__PURE__ */ jsx343(
|
|
18689
18784
|
IconButton,
|
|
18690
18785
|
{
|
|
18691
18786
|
disabled,
|
|
@@ -18705,25 +18800,25 @@ var SplitButton = ({
|
|
|
18705
18800
|
SplitButton.displayName = "SplitButton_UI";
|
|
18706
18801
|
|
|
18707
18802
|
// src/components/Table/Table.tsx
|
|
18708
|
-
import { styled as
|
|
18709
|
-
import { jsx as
|
|
18710
|
-
var StyledTable =
|
|
18803
|
+
import { styled as styled104, css as css50 } from "styled-components";
|
|
18804
|
+
import { jsx as jsx344 } from "react/jsx-runtime";
|
|
18805
|
+
var StyledTable = styled104.table`
|
|
18711
18806
|
width: 100%;
|
|
18712
18807
|
border-collapse: collapse;
|
|
18713
18808
|
|
|
18714
|
-
${({ $divided }) => $divided &&
|
|
18809
|
+
${({ $divided }) => $divided && css50`
|
|
18715
18810
|
tr {
|
|
18716
18811
|
border-bottom: 1px solid var(--wui-color-border);
|
|
18717
18812
|
}
|
|
18718
18813
|
`}
|
|
18719
18814
|
|
|
18720
|
-
${({ $striped }) => $striped &&
|
|
18815
|
+
${({ $striped }) => $striped && css50`
|
|
18721
18816
|
tbody tr:nth-child(even) {
|
|
18722
18817
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
18723
18818
|
}
|
|
18724
18819
|
`}
|
|
18725
18820
|
|
|
18726
|
-
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader &&
|
|
18821
|
+
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css50`
|
|
18727
18822
|
thead {
|
|
18728
18823
|
${visuallyHiddenStyle}
|
|
18729
18824
|
}
|
|
@@ -18736,7 +18831,7 @@ var Table = ({
|
|
|
18736
18831
|
visuallyHiddenHeader = false,
|
|
18737
18832
|
...props
|
|
18738
18833
|
}) => {
|
|
18739
|
-
return /* @__PURE__ */
|
|
18834
|
+
return /* @__PURE__ */ jsx344(
|
|
18740
18835
|
StyledTable,
|
|
18741
18836
|
{
|
|
18742
18837
|
$divided: divided,
|
|
@@ -18749,37 +18844,37 @@ var Table = ({
|
|
|
18749
18844
|
};
|
|
18750
18845
|
|
|
18751
18846
|
// src/components/Table/TableBody.tsx
|
|
18752
|
-
import { styled as
|
|
18847
|
+
import { styled as styled105 } from "styled-components";
|
|
18753
18848
|
|
|
18754
18849
|
// src/components/Table/TableSectionContext.ts
|
|
18755
18850
|
import { createContext as createContext11 } from "react";
|
|
18756
18851
|
var TableSectionContext = createContext11(null);
|
|
18757
18852
|
|
|
18758
18853
|
// src/components/Table/TableBody.tsx
|
|
18759
|
-
import { jsx as
|
|
18760
|
-
var StyledTableBody =
|
|
18854
|
+
import { jsx as jsx345 } from "react/jsx-runtime";
|
|
18855
|
+
var StyledTableBody = styled105.tbody`
|
|
18761
18856
|
width: 100%;
|
|
18762
18857
|
`;
|
|
18763
18858
|
var TableBody = ({ children, ...props }) => {
|
|
18764
|
-
return /* @__PURE__ */
|
|
18859
|
+
return /* @__PURE__ */ jsx345(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx345(StyledTableBody, { ...props, children }) });
|
|
18765
18860
|
};
|
|
18766
18861
|
|
|
18767
18862
|
// src/components/Table/TableCell.tsx
|
|
18768
18863
|
import { useContext as useContext17 } from "react";
|
|
18769
|
-
import { styled as
|
|
18770
|
-
import { jsx as
|
|
18771
|
-
var sharedStyles =
|
|
18864
|
+
import { styled as styled106, css as css51 } from "styled-components";
|
|
18865
|
+
import { jsx as jsx346 } from "react/jsx-runtime";
|
|
18866
|
+
var sharedStyles = css51`
|
|
18772
18867
|
color: var(--wui-color-text);
|
|
18773
18868
|
padding: var(--wui-space-02);
|
|
18774
18869
|
text-align: left;
|
|
18775
18870
|
`;
|
|
18776
|
-
var StyledTh =
|
|
18871
|
+
var StyledTh = styled106.th`
|
|
18777
18872
|
${sharedStyles}
|
|
18778
18873
|
font-size: var(--wui-typography-body-4-size);
|
|
18779
18874
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
18780
18875
|
line-height: var(--wui-typography-body-4-line-height);
|
|
18781
18876
|
`;
|
|
18782
|
-
var StyledTd =
|
|
18877
|
+
var StyledTd = styled106.td`
|
|
18783
18878
|
${sharedStyles}
|
|
18784
18879
|
font-size: var(--wui-typography-body-2-size);
|
|
18785
18880
|
font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -18788,39 +18883,39 @@ var StyledTd = styled105.td`
|
|
|
18788
18883
|
var TableCell = ({ children, ...props }) => {
|
|
18789
18884
|
const section = useContext17(TableSectionContext);
|
|
18790
18885
|
if (section === "head") {
|
|
18791
|
-
return /* @__PURE__ */
|
|
18886
|
+
return /* @__PURE__ */ jsx346(StyledTh, { ...props, children });
|
|
18792
18887
|
}
|
|
18793
|
-
return /* @__PURE__ */
|
|
18888
|
+
return /* @__PURE__ */ jsx346(StyledTd, { ...props, children });
|
|
18794
18889
|
};
|
|
18795
18890
|
|
|
18796
18891
|
// src/components/Table/TableFoot.tsx
|
|
18797
|
-
import { styled as
|
|
18798
|
-
import { jsx as
|
|
18799
|
-
var StyledTableFoot =
|
|
18892
|
+
import { styled as styled107 } from "styled-components";
|
|
18893
|
+
import { jsx as jsx347 } from "react/jsx-runtime";
|
|
18894
|
+
var StyledTableFoot = styled107.tfoot`
|
|
18800
18895
|
width: 100%;
|
|
18801
18896
|
`;
|
|
18802
18897
|
var TableFoot = ({ children, ...props }) => {
|
|
18803
|
-
return /* @__PURE__ */
|
|
18898
|
+
return /* @__PURE__ */ jsx347(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx347(StyledTableFoot, { ...props, children }) });
|
|
18804
18899
|
};
|
|
18805
18900
|
|
|
18806
18901
|
// src/components/Table/TableHead.tsx
|
|
18807
|
-
import { styled as
|
|
18808
|
-
import { jsx as
|
|
18809
|
-
var StyledThead =
|
|
18902
|
+
import { styled as styled108 } from "styled-components";
|
|
18903
|
+
import { jsx as jsx348 } from "react/jsx-runtime";
|
|
18904
|
+
var StyledThead = styled108.thead`
|
|
18810
18905
|
width: 100%;
|
|
18811
18906
|
`;
|
|
18812
18907
|
var TableHead = ({ children, ...props }) => {
|
|
18813
|
-
return /* @__PURE__ */
|
|
18908
|
+
return /* @__PURE__ */ jsx348(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx348(StyledThead, { ...props, children }) });
|
|
18814
18909
|
};
|
|
18815
18910
|
|
|
18816
18911
|
// src/components/Table/TableRow.tsx
|
|
18817
|
-
import { styled as
|
|
18818
|
-
import { jsx as
|
|
18819
|
-
var StyledTableRow =
|
|
18912
|
+
import { styled as styled109 } from "styled-components";
|
|
18913
|
+
import { jsx as jsx349 } from "react/jsx-runtime";
|
|
18914
|
+
var StyledTableRow = styled109.tr`
|
|
18820
18915
|
width: 100%;
|
|
18821
18916
|
`;
|
|
18822
18917
|
var TableRow = ({ children, ...props }) => {
|
|
18823
|
-
return /* @__PURE__ */
|
|
18918
|
+
return /* @__PURE__ */ jsx349(StyledTableRow, { ...props, children });
|
|
18824
18919
|
};
|
|
18825
18920
|
|
|
18826
18921
|
// src/components/Tabs/Tabs.tsx
|
|
@@ -18841,7 +18936,7 @@ var useTabsValue = () => {
|
|
|
18841
18936
|
};
|
|
18842
18937
|
|
|
18843
18938
|
// src/components/Tabs/Tabs.tsx
|
|
18844
|
-
import { jsx as
|
|
18939
|
+
import { jsx as jsx350 } from "react/jsx-runtime";
|
|
18845
18940
|
var Tabs = ({
|
|
18846
18941
|
children,
|
|
18847
18942
|
value: valueProp,
|
|
@@ -18869,42 +18964,42 @@ var Tabs = ({
|
|
|
18869
18964
|
if (isNotNil41(defaultValue)) {
|
|
18870
18965
|
rootProps.defaultValue = defaultValue;
|
|
18871
18966
|
}
|
|
18872
|
-
return /* @__PURE__ */
|
|
18967
|
+
return /* @__PURE__ */ jsx350(RadixTabsRoot, { ...rootProps, children: /* @__PURE__ */ jsx350(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ jsx350(SelectedItemStyleProvider, { children }) }) });
|
|
18873
18968
|
};
|
|
18874
18969
|
Tabs.displayName = "Tabs_UI";
|
|
18875
18970
|
|
|
18876
18971
|
// src/components/Tabs/TabsContent.tsx
|
|
18877
18972
|
import { Content as RadixTabsContent } from "@radix-ui/react-tabs";
|
|
18878
|
-
import { jsx as
|
|
18973
|
+
import { jsx as jsx351 } from "react/jsx-runtime";
|
|
18879
18974
|
var TabsContent = ({ children, value }) => {
|
|
18880
|
-
return /* @__PURE__ */
|
|
18975
|
+
return /* @__PURE__ */ jsx351(RadixTabsContent, { value, children });
|
|
18881
18976
|
};
|
|
18882
18977
|
TabsContent.displayName = "TabsContent_UI";
|
|
18883
18978
|
|
|
18884
18979
|
// src/components/Tabs/TabsList.tsx
|
|
18885
18980
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
18886
|
-
import { styled as
|
|
18981
|
+
import { styled as styled111 } from "styled-components";
|
|
18887
18982
|
|
|
18888
18983
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
18889
18984
|
import { isUndefined as isUndefined6 } from "@wistia/type-guards";
|
|
18890
18985
|
|
|
18891
18986
|
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
18892
|
-
import { styled as
|
|
18893
|
-
var TabsSelectedItemIndicatorDiv =
|
|
18987
|
+
import { styled as styled110 } from "styled-components";
|
|
18988
|
+
var TabsSelectedItemIndicatorDiv = styled110(SelectedItemIndicatorDiv)`
|
|
18894
18989
|
:has(button[role='tab']:focus-visible) > & {
|
|
18895
18990
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
18896
18991
|
}
|
|
18897
18992
|
`;
|
|
18898
18993
|
|
|
18899
18994
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
18900
|
-
import { jsx as
|
|
18995
|
+
import { jsx as jsx352 } from "react/jsx-runtime";
|
|
18901
18996
|
var SelectedTabIndicator = () => {
|
|
18902
18997
|
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
18903
18998
|
const selectedValue = useTabsValue();
|
|
18904
18999
|
if (selectedValue == null || isUndefined6(selectedItemIndicatorStyle)) {
|
|
18905
19000
|
return null;
|
|
18906
19001
|
}
|
|
18907
|
-
return /* @__PURE__ */
|
|
19002
|
+
return /* @__PURE__ */ jsx352(
|
|
18908
19003
|
TabsSelectedItemIndicatorDiv,
|
|
18909
19004
|
{
|
|
18910
19005
|
"data-wui-selected-item-indicator": true,
|
|
@@ -18914,19 +19009,19 @@ var SelectedTabIndicator = () => {
|
|
|
18914
19009
|
};
|
|
18915
19010
|
|
|
18916
19011
|
// src/components/Tabs/TabsList.tsx
|
|
18917
|
-
import { jsx as
|
|
18918
|
-
var StyledRadixTabsList =
|
|
19012
|
+
import { jsx as jsx353, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
19013
|
+
var StyledRadixTabsList = styled111(RadixTabList)`
|
|
18919
19014
|
${segmentedControlStyles}
|
|
18920
19015
|
`;
|
|
18921
19016
|
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
18922
|
-
return /* @__PURE__ */
|
|
19017
|
+
return /* @__PURE__ */ jsxs70(
|
|
18923
19018
|
StyledRadixTabsList,
|
|
18924
19019
|
{
|
|
18925
19020
|
$fullWidth: fullWidth,
|
|
18926
19021
|
"aria-label": props["aria-label"],
|
|
18927
19022
|
children: [
|
|
18928
19023
|
children,
|
|
18929
|
-
/* @__PURE__ */
|
|
19024
|
+
/* @__PURE__ */ jsx353(SelectedTabIndicator, {})
|
|
18930
19025
|
]
|
|
18931
19026
|
}
|
|
18932
19027
|
);
|
|
@@ -18938,9 +19033,9 @@ import { forwardRef as forwardRef36, useEffect as useEffect23, useRef as useRef2
|
|
|
18938
19033
|
import { isNotNil as isNotNil42 } from "@wistia/type-guards";
|
|
18939
19034
|
|
|
18940
19035
|
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
18941
|
-
import { styled as
|
|
19036
|
+
import { styled as styled112 } from "styled-components";
|
|
18942
19037
|
import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
|
|
18943
|
-
var StyledRadixTabsTrigger =
|
|
19038
|
+
var StyledRadixTabsTrigger = styled112(RadixTabsTrigger)`
|
|
18944
19039
|
${segmentedControlItemStyles}
|
|
18945
19040
|
|
|
18946
19041
|
&:focus-visible {
|
|
@@ -18949,7 +19044,7 @@ var StyledRadixTabsTrigger = styled111(RadixTabsTrigger)`
|
|
|
18949
19044
|
`;
|
|
18950
19045
|
|
|
18951
19046
|
// src/components/Tabs/TabsTrigger.tsx
|
|
18952
|
-
import { jsxs as
|
|
19047
|
+
import { jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18953
19048
|
var TabsTrigger = forwardRef36(
|
|
18954
19049
|
({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
|
|
18955
19050
|
const selectedValue = useTabsValue();
|
|
@@ -18981,7 +19076,7 @@ var TabsTrigger = forwardRef36(
|
|
|
18981
19076
|
resizeObserver.disconnect();
|
|
18982
19077
|
};
|
|
18983
19078
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
18984
|
-
return /* @__PURE__ */
|
|
19079
|
+
return /* @__PURE__ */ jsxs71(
|
|
18985
19080
|
StyledRadixTabsTrigger,
|
|
18986
19081
|
{
|
|
18987
19082
|
...otherProps,
|
|
@@ -19001,10 +19096,10 @@ var TabsTrigger = forwardRef36(
|
|
|
19001
19096
|
TabsTrigger.displayName = "TabsTrigger_UI";
|
|
19002
19097
|
|
|
19003
19098
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
19004
|
-
import { styled as
|
|
19099
|
+
import { styled as styled113 } from "styled-components";
|
|
19005
19100
|
import { isNotNil as isNotNil43 } from "@wistia/type-guards";
|
|
19006
|
-
import { jsx as
|
|
19007
|
-
var StyledThumbnailBadge =
|
|
19101
|
+
import { jsx as jsx354, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
19102
|
+
var StyledThumbnailBadge = styled113.div`
|
|
19008
19103
|
align-items: center;
|
|
19009
19104
|
background-color: rgb(0 0 0 / 50%);
|
|
19010
19105
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -19030,16 +19125,16 @@ var StyledThumbnailBadge = styled112.div`
|
|
|
19030
19125
|
}
|
|
19031
19126
|
`;
|
|
19032
19127
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
19033
|
-
return /* @__PURE__ */
|
|
19128
|
+
return /* @__PURE__ */ jsxs72(StyledThumbnailBadge, { ...props, children: [
|
|
19034
19129
|
isNotNil43(icon) && icon,
|
|
19035
|
-
/* @__PURE__ */
|
|
19130
|
+
/* @__PURE__ */ jsx354("span", { children: label })
|
|
19036
19131
|
] });
|
|
19037
19132
|
};
|
|
19038
19133
|
ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
19039
19134
|
|
|
19040
19135
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
19041
19136
|
import { forwardRef as forwardRef37, useState as useState27, useRef as useRef25, useCallback as useCallback20, useMemo as useMemo17 } from "react";
|
|
19042
|
-
import { styled as
|
|
19137
|
+
import { styled as styled115 } from "styled-components";
|
|
19043
19138
|
import {
|
|
19044
19139
|
isNil as isNil19,
|
|
19045
19140
|
isNotNil as isNotNil46,
|
|
@@ -19051,9 +19146,9 @@ import {
|
|
|
19051
19146
|
|
|
19052
19147
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
19053
19148
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
19054
|
-
import { css as
|
|
19149
|
+
import { css as css52 } from "styled-components";
|
|
19055
19150
|
var gradients = {
|
|
19056
|
-
defaultDarkOne:
|
|
19151
|
+
defaultDarkOne: css52`
|
|
19057
19152
|
background-color: #222d66;
|
|
19058
19153
|
background-image:
|
|
19059
19154
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -19061,7 +19156,7 @@ var gradients = {
|
|
|
19061
19156
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
19062
19157
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
19063
19158
|
`,
|
|
19064
|
-
defaultDarkTwo:
|
|
19159
|
+
defaultDarkTwo: css52`
|
|
19065
19160
|
background-color: #222d66;
|
|
19066
19161
|
background-image:
|
|
19067
19162
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -19069,7 +19164,7 @@ var gradients = {
|
|
|
19069
19164
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
19070
19165
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
19071
19166
|
`,
|
|
19072
|
-
defaultLightOne:
|
|
19167
|
+
defaultLightOne: css52`
|
|
19073
19168
|
background-color: #ccd5ff;
|
|
19074
19169
|
background-image:
|
|
19075
19170
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -19077,13 +19172,13 @@ var gradients = {
|
|
|
19077
19172
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
19078
19173
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
19079
19174
|
`,
|
|
19080
|
-
defaultLightTwo:
|
|
19175
|
+
defaultLightTwo: css52`
|
|
19081
19176
|
background-color: #ccd5ff;
|
|
19082
19177
|
background-image:
|
|
19083
19178
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
19084
19179
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
19085
19180
|
`,
|
|
19086
|
-
defaultMidOne:
|
|
19181
|
+
defaultMidOne: css52`
|
|
19087
19182
|
background-color: #6b84ff;
|
|
19088
19183
|
background-image:
|
|
19089
19184
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -19091,13 +19186,13 @@ var gradients = {
|
|
|
19091
19186
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
19092
19187
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
19093
19188
|
`,
|
|
19094
|
-
defaultMidTwo:
|
|
19189
|
+
defaultMidTwo: css52`
|
|
19095
19190
|
background-color: #6b84ff;
|
|
19096
19191
|
background-image:
|
|
19097
19192
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
19098
19193
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
19099
19194
|
`,
|
|
19100
|
-
green:
|
|
19195
|
+
green: css52`
|
|
19101
19196
|
background-color: #fafffa;
|
|
19102
19197
|
background-image:
|
|
19103
19198
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -19105,7 +19200,7 @@ var gradients = {
|
|
|
19105
19200
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
19106
19201
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
19107
19202
|
`,
|
|
19108
|
-
greenWithPop:
|
|
19203
|
+
greenWithPop: css52`
|
|
19109
19204
|
background-color: #fafffa;
|
|
19110
19205
|
background-image:
|
|
19111
19206
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -19113,7 +19208,7 @@ var gradients = {
|
|
|
19113
19208
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
19114
19209
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
19115
19210
|
`,
|
|
19116
|
-
pink:
|
|
19211
|
+
pink: css52`
|
|
19117
19212
|
background-color: #fffff0;
|
|
19118
19213
|
background-image:
|
|
19119
19214
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -19121,7 +19216,7 @@ var gradients = {
|
|
|
19121
19216
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
19122
19217
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
19123
19218
|
`,
|
|
19124
|
-
pinkWithPop:
|
|
19219
|
+
pinkWithPop: css52`
|
|
19125
19220
|
background-color: #fffff0;
|
|
19126
19221
|
background-image:
|
|
19127
19222
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -19129,7 +19224,7 @@ var gradients = {
|
|
|
19129
19224
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
19130
19225
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
19131
19226
|
`,
|
|
19132
|
-
playfulGradientOne:
|
|
19227
|
+
playfulGradientOne: css52`
|
|
19133
19228
|
background-color: #f7f8ff;
|
|
19134
19229
|
background-image:
|
|
19135
19230
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -19137,7 +19232,7 @@ var gradients = {
|
|
|
19137
19232
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
19138
19233
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
19139
19234
|
`,
|
|
19140
|
-
playfulGradientTwo:
|
|
19235
|
+
playfulGradientTwo: css52`
|
|
19141
19236
|
background-color: #f7f8ff;
|
|
19142
19237
|
background-image:
|
|
19143
19238
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -19145,13 +19240,13 @@ var gradients = {
|
|
|
19145
19240
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
19146
19241
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
19147
19242
|
`,
|
|
19148
|
-
purple:
|
|
19243
|
+
purple: css52`
|
|
19149
19244
|
background-color: #f2caff;
|
|
19150
19245
|
background-image:
|
|
19151
19246
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
19152
19247
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
19153
19248
|
`,
|
|
19154
|
-
purpleWithPop:
|
|
19249
|
+
purpleWithPop: css52`
|
|
19155
19250
|
background-color: #f2caff;
|
|
19156
19251
|
background-image:
|
|
19157
19252
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -19159,7 +19254,7 @@ var gradients = {
|
|
|
19159
19254
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
19160
19255
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
19161
19256
|
`,
|
|
19162
|
-
yellow:
|
|
19257
|
+
yellow: css52`
|
|
19163
19258
|
background-color: #fffff0;
|
|
19164
19259
|
background-image:
|
|
19165
19260
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -19167,7 +19262,7 @@ var gradients = {
|
|
|
19167
19262
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
19168
19263
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
19169
19264
|
`,
|
|
19170
|
-
yellowWithPop:
|
|
19265
|
+
yellowWithPop: css52`
|
|
19171
19266
|
background-color: #fffff0;
|
|
19172
19267
|
background-image:
|
|
19173
19268
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -19182,10 +19277,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
19182
19277
|
};
|
|
19183
19278
|
|
|
19184
19279
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
19185
|
-
import { styled as
|
|
19280
|
+
import { styled as styled114 } from "styled-components";
|
|
19186
19281
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
19187
|
-
import { jsx as
|
|
19188
|
-
var ScrubLine =
|
|
19282
|
+
import { jsx as jsx355, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
19283
|
+
var ScrubLine = styled114.div`
|
|
19189
19284
|
position: absolute;
|
|
19190
19285
|
top: 0;
|
|
19191
19286
|
height: 100%;
|
|
@@ -19296,14 +19391,14 @@ var ThumbnailStoryboardViewer = ({
|
|
|
19296
19391
|
backgroundPosition,
|
|
19297
19392
|
backgroundSize
|
|
19298
19393
|
};
|
|
19299
|
-
return /* @__PURE__ */
|
|
19394
|
+
return /* @__PURE__ */ jsxs73(
|
|
19300
19395
|
"div",
|
|
19301
19396
|
{
|
|
19302
19397
|
...props,
|
|
19303
19398
|
style: viewerStyles,
|
|
19304
19399
|
children: [
|
|
19305
|
-
/* @__PURE__ */
|
|
19306
|
-
showScrubLine ? /* @__PURE__ */
|
|
19400
|
+
/* @__PURE__ */ jsx355("div", { style: storyboardStyles }),
|
|
19401
|
+
showScrubLine ? /* @__PURE__ */ jsx355(
|
|
19307
19402
|
ScrubLine,
|
|
19308
19403
|
{
|
|
19309
19404
|
style: {
|
|
@@ -19317,7 +19412,7 @@ var ThumbnailStoryboardViewer = ({
|
|
|
19317
19412
|
};
|
|
19318
19413
|
|
|
19319
19414
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
19320
|
-
import { jsx as
|
|
19415
|
+
import { jsx as jsx356, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
19321
19416
|
var WIDE_ASPECT_RATIO = 16 / 9;
|
|
19322
19417
|
var SQUARE_ASPECT_RATIO = 1;
|
|
19323
19418
|
var getAspectRatioValue = (aspectRatio) => {
|
|
@@ -19326,19 +19421,19 @@ var getAspectRatioValue = (aspectRatio) => {
|
|
|
19326
19421
|
}
|
|
19327
19422
|
return WIDE_ASPECT_RATIO;
|
|
19328
19423
|
};
|
|
19329
|
-
var WideThumbnailImage =
|
|
19424
|
+
var WideThumbnailImage = styled115.img`
|
|
19330
19425
|
height: 100%;
|
|
19331
19426
|
object-fit: cover;
|
|
19332
19427
|
width: 100%;
|
|
19333
19428
|
`;
|
|
19334
|
-
var SquareThumbnailImage =
|
|
19429
|
+
var SquareThumbnailImage = styled115.img`
|
|
19335
19430
|
backdrop-filter: blur(8px);
|
|
19336
19431
|
object-fit: contain;
|
|
19337
19432
|
width: 100%;
|
|
19338
19433
|
`;
|
|
19339
19434
|
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
19340
19435
|
if (thumbnailImageType === "wide") {
|
|
19341
|
-
return /* @__PURE__ */
|
|
19436
|
+
return /* @__PURE__ */ jsx356(
|
|
19342
19437
|
WideThumbnailImage,
|
|
19343
19438
|
{
|
|
19344
19439
|
alt: "",
|
|
@@ -19347,7 +19442,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
19347
19442
|
}
|
|
19348
19443
|
);
|
|
19349
19444
|
}
|
|
19350
|
-
return /* @__PURE__ */
|
|
19445
|
+
return /* @__PURE__ */ jsx356(
|
|
19351
19446
|
SquareThumbnailImage,
|
|
19352
19447
|
{
|
|
19353
19448
|
alt: "",
|
|
@@ -19356,7 +19451,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
19356
19451
|
}
|
|
19357
19452
|
);
|
|
19358
19453
|
};
|
|
19359
|
-
var StyledThumbnailContainer =
|
|
19454
|
+
var StyledThumbnailContainer = styled115.div`
|
|
19360
19455
|
container-type: size;
|
|
19361
19456
|
aspect-ratio: ${({ $aspectRatio }) => getAspectRatioValue($aspectRatio)};
|
|
19362
19457
|
width: ${({ $width }) => $width};
|
|
@@ -19364,7 +19459,7 @@ var StyledThumbnailContainer = styled114.div`
|
|
|
19364
19459
|
overflow: hidden;
|
|
19365
19460
|
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
19366
19461
|
`;
|
|
19367
|
-
var StyledThumbnail =
|
|
19462
|
+
var StyledThumbnail = styled115.div`
|
|
19368
19463
|
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
19369
19464
|
|
|
19370
19465
|
background-image: ${({ $backgroundUrl }) => isNotNil46($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
@@ -19399,7 +19494,7 @@ var StoryboardRenderer = ({
|
|
|
19399
19494
|
const { url, width: sbWidth, height: sbHeight, frameHeight, frameWidth, frameCount } = storyboard;
|
|
19400
19495
|
const targetWidth = isString4(width) ? parseInt(width, 10) : Number(width);
|
|
19401
19496
|
const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
|
|
19402
|
-
return /* @__PURE__ */
|
|
19497
|
+
return /* @__PURE__ */ jsx356(
|
|
19403
19498
|
ThumbnailStoryboardViewer,
|
|
19404
19499
|
{
|
|
19405
19500
|
cursorPosition: effectiveCursorPosition,
|
|
@@ -19489,7 +19584,7 @@ var Thumbnail = forwardRef37(
|
|
|
19489
19584
|
}, [isScrubbable, isMouseOver, isStoryboardReady, storyboard, height]);
|
|
19490
19585
|
let thumbnailContent = null;
|
|
19491
19586
|
if (storyboard && shouldRenderStoryboard) {
|
|
19492
|
-
thumbnailContent = /* @__PURE__ */
|
|
19587
|
+
thumbnailContent = /* @__PURE__ */ jsx356(
|
|
19493
19588
|
StoryboardRenderer,
|
|
19494
19589
|
{
|
|
19495
19590
|
aspectRatio,
|
|
@@ -19501,7 +19596,7 @@ var Thumbnail = forwardRef37(
|
|
|
19501
19596
|
}
|
|
19502
19597
|
);
|
|
19503
19598
|
} else if (hasValidThumbnailUrl(thumbnailUrl)) {
|
|
19504
|
-
thumbnailContent = /* @__PURE__ */
|
|
19599
|
+
thumbnailContent = /* @__PURE__ */ jsx356(
|
|
19505
19600
|
ThumbnailImage,
|
|
19506
19601
|
{
|
|
19507
19602
|
thumbnailImageType,
|
|
@@ -19511,7 +19606,7 @@ var Thumbnail = forwardRef37(
|
|
|
19511
19606
|
} else {
|
|
19512
19607
|
thumbnailContent = null;
|
|
19513
19608
|
}
|
|
19514
|
-
return /* @__PURE__ */
|
|
19609
|
+
return /* @__PURE__ */ jsx356(
|
|
19515
19610
|
StyledThumbnailContainer,
|
|
19516
19611
|
{
|
|
19517
19612
|
ref,
|
|
@@ -19524,7 +19619,7 @@ var Thumbnail = forwardRef37(
|
|
|
19524
19619
|
onMouseOut: handleMouseOut,
|
|
19525
19620
|
role: "presentation",
|
|
19526
19621
|
...props,
|
|
19527
|
-
children: /* @__PURE__ */
|
|
19622
|
+
children: /* @__PURE__ */ jsxs74(
|
|
19528
19623
|
StyledThumbnail,
|
|
19529
19624
|
{
|
|
19530
19625
|
$backgroundUrl: backgroundUrl,
|
|
@@ -19544,16 +19639,16 @@ Thumbnail.displayName = "Thumbnail_UI";
|
|
|
19544
19639
|
|
|
19545
19640
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
19546
19641
|
import { cloneElement as cloneElement10, Children as Children11 } from "react";
|
|
19547
|
-
import { styled as
|
|
19642
|
+
import { styled as styled116 } from "styled-components";
|
|
19548
19643
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
19549
|
-
import { jsx as
|
|
19550
|
-
var ThumbnailCollageContainer =
|
|
19644
|
+
import { jsx as jsx357 } from "react/jsx-runtime";
|
|
19645
|
+
var ThumbnailCollageContainer = styled116.div`
|
|
19551
19646
|
container-type: size;
|
|
19552
19647
|
width: 100%;
|
|
19553
19648
|
aspect-ratio: 16 / 9;
|
|
19554
19649
|
display: flex;
|
|
19555
19650
|
`;
|
|
19556
|
-
var StyledThumbnailCollage =
|
|
19651
|
+
var StyledThumbnailCollage = styled116.div`
|
|
19557
19652
|
display: grid;
|
|
19558
19653
|
gap: var(--wui-space-01);
|
|
19559
19654
|
width: 100%;
|
|
@@ -19611,7 +19706,7 @@ var ThumbnailCollage = ({
|
|
|
19611
19706
|
});
|
|
19612
19707
|
}) : [
|
|
19613
19708
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
19614
|
-
/* @__PURE__ */
|
|
19709
|
+
/* @__PURE__ */ jsx357(
|
|
19615
19710
|
Thumbnail,
|
|
19616
19711
|
{
|
|
19617
19712
|
gradientBackground,
|
|
@@ -19620,7 +19715,7 @@ var ThumbnailCollage = ({
|
|
|
19620
19715
|
"fallback"
|
|
19621
19716
|
)
|
|
19622
19717
|
];
|
|
19623
|
-
return /* @__PURE__ */
|
|
19718
|
+
return /* @__PURE__ */ jsx357(ThumbnailCollageContainer, { children: /* @__PURE__ */ jsx357(
|
|
19624
19719
|
StyledThumbnailCollage,
|
|
19625
19720
|
{
|
|
19626
19721
|
$gradientBackground: gradientBackground,
|
|
@@ -19632,26 +19727,26 @@ var ThumbnailCollage = ({
|
|
|
19632
19727
|
};
|
|
19633
19728
|
|
|
19634
19729
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
19635
|
-
import { styled as
|
|
19730
|
+
import { styled as styled117, css as css53 } from "styled-components";
|
|
19636
19731
|
import { isNotNil as isNotNil47 } from "@wistia/type-guards";
|
|
19637
|
-
import { jsx as
|
|
19732
|
+
import { jsx as jsx358, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
19638
19733
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
19639
19734
|
if (iconOnly) {
|
|
19640
|
-
return /* @__PURE__ */
|
|
19735
|
+
return /* @__PURE__ */ jsx358(
|
|
19641
19736
|
"g",
|
|
19642
19737
|
{
|
|
19643
19738
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
19644
19739
|
fill: brandmarkColor,
|
|
19645
|
-
children: /* @__PURE__ */
|
|
19740
|
+
children: /* @__PURE__ */ jsx358("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
19741
|
}
|
|
19647
19742
|
);
|
|
19648
19743
|
}
|
|
19649
|
-
return /* @__PURE__ */
|
|
19744
|
+
return /* @__PURE__ */ jsx358(
|
|
19650
19745
|
"g",
|
|
19651
19746
|
{
|
|
19652
19747
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
19653
19748
|
fill: brandmarkColor,
|
|
19654
|
-
children: /* @__PURE__ */
|
|
19749
|
+
children: /* @__PURE__ */ jsx358("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
19750
|
}
|
|
19656
19751
|
);
|
|
19657
19752
|
};
|
|
@@ -19659,12 +19754,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
19659
19754
|
if (iconOnly) {
|
|
19660
19755
|
return null;
|
|
19661
19756
|
}
|
|
19662
|
-
return /* @__PURE__ */
|
|
19757
|
+
return /* @__PURE__ */ jsx358(
|
|
19663
19758
|
"g",
|
|
19664
19759
|
{
|
|
19665
19760
|
"data-testid": "ui-wistia-logo-logotype",
|
|
19666
19761
|
fill: logotypeColor,
|
|
19667
|
-
children: /* @__PURE__ */
|
|
19762
|
+
children: /* @__PURE__ */ jsx358("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
19763
|
}
|
|
19669
19764
|
);
|
|
19670
19765
|
};
|
|
@@ -19674,7 +19769,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
19674
19769
|
}
|
|
19675
19770
|
return "0 0 144 31.47";
|
|
19676
19771
|
};
|
|
19677
|
-
var WistiaLogoComponent =
|
|
19772
|
+
var WistiaLogoComponent = styled117.svg`
|
|
19678
19773
|
height: ${({ height }) => `${height}px`};
|
|
19679
19774
|
|
|
19680
19775
|
/* ensure it will always fit on mobile */
|
|
@@ -19690,12 +19785,12 @@ var WistiaLogoComponent = styled116.svg`
|
|
|
19690
19785
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
19691
19786
|
if ($opticallyCentered) {
|
|
19692
19787
|
if ($iconOnly) {
|
|
19693
|
-
return
|
|
19788
|
+
return css53`
|
|
19694
19789
|
aspect-ratio: 1;
|
|
19695
19790
|
padding: 11.85% 3.12% 13.91%;
|
|
19696
19791
|
`;
|
|
19697
19792
|
}
|
|
19698
|
-
return
|
|
19793
|
+
return css53`
|
|
19699
19794
|
aspect-ratio: 127 / 32;
|
|
19700
19795
|
`;
|
|
19701
19796
|
}
|
|
@@ -19732,7 +19827,7 @@ var WistiaLogo = ({
|
|
|
19732
19827
|
};
|
|
19733
19828
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
19734
19829
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
19735
|
-
const Logo = /* @__PURE__ */
|
|
19830
|
+
const Logo = /* @__PURE__ */ jsxs75(
|
|
19736
19831
|
WistiaLogoComponent,
|
|
19737
19832
|
{
|
|
19738
19833
|
$hoverColor: hoverColor,
|
|
@@ -19745,14 +19840,14 @@ var WistiaLogo = ({
|
|
|
19745
19840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19746
19841
|
...props,
|
|
19747
19842
|
children: [
|
|
19748
|
-
/* @__PURE__ */
|
|
19749
|
-
isNotNil47(description) ? /* @__PURE__ */
|
|
19843
|
+
/* @__PURE__ */ jsx358("title", { children: title }),
|
|
19844
|
+
isNotNil47(description) ? /* @__PURE__ */ jsx358("desc", { children: description }) : null,
|
|
19750
19845
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
19751
19846
|
renderLogotype(logotypeColor, iconOnly)
|
|
19752
19847
|
]
|
|
19753
19848
|
}
|
|
19754
19849
|
);
|
|
19755
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
19850
|
+
return href !== void 0 ? /* @__PURE__ */ jsx358("a", { href, children: Logo }) : Logo;
|
|
19756
19851
|
};
|
|
19757
19852
|
WistiaLogo.displayName = "WistiaLogo_UI";
|
|
19758
19853
|
export {
|
|
@@ -19851,6 +19946,7 @@ export {
|
|
|
19851
19946
|
ModalCallouts,
|
|
19852
19947
|
PersistentFileAmountLimitValidator,
|
|
19853
19948
|
Popover,
|
|
19949
|
+
PreviewCard,
|
|
19854
19950
|
ProgressBar,
|
|
19855
19951
|
Radio,
|
|
19856
19952
|
RadioCard,
|