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