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