@wistia/ui 0.20.8 → 0.20.9-beta.bfb82177.79eb23b
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 +24 -2
- package/dist/index.js +428 -281
- package/dist/index.js.map +1 -1
- package/package.json +20 -19
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.20.
|
|
3
|
+
* @license @wistia/ui v0.20.9-beta.bfb82177.79eb23b
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -10610,7 +10610,7 @@ var convertToRgbRaw = useMode(modeRgb);
|
|
|
10610
10610
|
var convertToHsvRaw = useMode(modeHsv);
|
|
10611
10611
|
useMode(modeLrgb);
|
|
10612
10612
|
var convertToHsv = (color) => {
|
|
10613
|
-
let result;
|
|
10613
|
+
let result = void 0;
|
|
10614
10614
|
if (typeof color === "string") {
|
|
10615
10615
|
const rgb = parseHex(color);
|
|
10616
10616
|
if (rgb == null) {
|
|
@@ -10625,7 +10625,7 @@ var convertToHsv = (color) => {
|
|
|
10625
10625
|
return result;
|
|
10626
10626
|
};
|
|
10627
10627
|
var convertToRgb = (color) => {
|
|
10628
|
-
let result;
|
|
10628
|
+
let result = void 0;
|
|
10629
10629
|
if (typeof color === "string") {
|
|
10630
10630
|
const rgb = parseHex(color);
|
|
10631
10631
|
if (rgb == null) {
|
|
@@ -16109,38 +16109,184 @@ var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */
|
|
|
16109
16109
|
);
|
|
16110
16110
|
Mark.displayName = "Mark_UI";
|
|
16111
16111
|
|
|
16112
|
+
// src/components/Markdown/Markdown.tsx
|
|
16113
|
+
import { styled as styled76 } from "styled-components";
|
|
16114
|
+
import ReactMarkdown from "react-markdown";
|
|
16115
|
+
|
|
16116
|
+
// src/css/baseMarkdownCss.tsx
|
|
16117
|
+
import { css as css39 } from "styled-components";
|
|
16118
|
+
var baseMarkdownCss = (textSize = "body2") => css39`
|
|
16119
|
+
--wui-markdown-base-unit: var(--wui-typography-${textSize}-size);
|
|
16120
|
+
|
|
16121
|
+
font-size: var(--wui-markdown-base-unit);
|
|
16122
|
+
|
|
16123
|
+
& > * {
|
|
16124
|
+
margin: 0;
|
|
16125
|
+
margin-block-start: calc(var(--wui-markdown-base-unit) * 0.75);
|
|
16126
|
+
}
|
|
16127
|
+
|
|
16128
|
+
& > *:first-child {
|
|
16129
|
+
margin-block-start: 0;
|
|
16130
|
+
}
|
|
16131
|
+
|
|
16132
|
+
:is(h1, h2, h3, h4, h5, h6) {
|
|
16133
|
+
margin-block-start: calc(var(--wui-markdown-base-unit) * 1.5);
|
|
16134
|
+
}
|
|
16135
|
+
|
|
16136
|
+
h1 {
|
|
16137
|
+
font-size: calc(var(--wui-markdown-base-unit) * 2);
|
|
16138
|
+
}
|
|
16139
|
+
|
|
16140
|
+
h2 {
|
|
16141
|
+
font-size: calc(var(--wui-markdown-base-unit) * 1.5);
|
|
16142
|
+
}
|
|
16143
|
+
|
|
16144
|
+
h3 {
|
|
16145
|
+
font-size: calc(var(--wui-markdown-base-unit) * 1.25);
|
|
16146
|
+
}
|
|
16147
|
+
|
|
16148
|
+
h4 {
|
|
16149
|
+
font-size: calc(var(--wui-markdown-base-unit) * 1);
|
|
16150
|
+
}
|
|
16151
|
+
|
|
16152
|
+
h5 {
|
|
16153
|
+
font-size: calc(var(--wui-markdown-base-unit) * 0.875);
|
|
16154
|
+
}
|
|
16155
|
+
|
|
16156
|
+
h6 {
|
|
16157
|
+
font-size: calc(var(--wui-markdown-base-unit) * 0.75);
|
|
16158
|
+
}
|
|
16159
|
+
|
|
16160
|
+
p {
|
|
16161
|
+
font-size: var(--wui-markdown-base-unit);
|
|
16162
|
+
line-height: 1.5;
|
|
16163
|
+
font-weight: var(--wui-typography-weight-body);
|
|
16164
|
+
}
|
|
16165
|
+
|
|
16166
|
+
a {
|
|
16167
|
+
color: var(--wui-color-text-link);
|
|
16168
|
+
text-decoration: underline;
|
|
16169
|
+
}
|
|
16170
|
+
|
|
16171
|
+
strong {
|
|
16172
|
+
font-weight: var(--wui-typography-weight-body-bold);
|
|
16173
|
+
}
|
|
16174
|
+
|
|
16175
|
+
code {
|
|
16176
|
+
background-color: var(--wui-color-bg-surface-secondary);
|
|
16177
|
+
border-radius: var(--wui-border-radius-01);
|
|
16178
|
+
font-size: 0.9em;
|
|
16179
|
+
font-family: var(--wui-typography-family-mono);
|
|
16180
|
+
border: 1px solid var(--wui-color-border);
|
|
16181
|
+
padding: 2px 4px;
|
|
16182
|
+
margin: 0 2px;
|
|
16183
|
+
}
|
|
16184
|
+
|
|
16185
|
+
ul,
|
|
16186
|
+
ol {
|
|
16187
|
+
margin-inline-start: 1.5em;
|
|
16188
|
+
padding: 0;
|
|
16189
|
+
}
|
|
16190
|
+
|
|
16191
|
+
li {
|
|
16192
|
+
margin-block-start: 0.25em;
|
|
16193
|
+
}
|
|
16194
|
+
|
|
16195
|
+
blockquote {
|
|
16196
|
+
margin-inline: 0;
|
|
16197
|
+
border-inline-start: 3px solid var(--wui-color-border-secondary);
|
|
16198
|
+
padding-inline-start: 1em;
|
|
16199
|
+
padding-block: 0.125em;
|
|
16200
|
+
|
|
16201
|
+
& > *:first-child {
|
|
16202
|
+
margin-block-start: 0;
|
|
16203
|
+
}
|
|
16204
|
+
|
|
16205
|
+
& > *:last-child {
|
|
16206
|
+
margin-block-end: 0;
|
|
16207
|
+
}
|
|
16208
|
+
}
|
|
16209
|
+
|
|
16210
|
+
pre {
|
|
16211
|
+
background-color: var(--wui-color-bg-surface-secondary);
|
|
16212
|
+
border-radius: var(--wui-border-radius-01);
|
|
16213
|
+
padding: 00.75em;
|
|
16214
|
+
overflow-x: auto;
|
|
16215
|
+
}
|
|
16216
|
+
|
|
16217
|
+
pre code {
|
|
16218
|
+
background: none;
|
|
16219
|
+
border: none;
|
|
16220
|
+
padding: 0;
|
|
16221
|
+
margin: 0;
|
|
16222
|
+
}
|
|
16223
|
+
|
|
16224
|
+
hr {
|
|
16225
|
+
border: none;
|
|
16226
|
+
border-top: 1px solid var(--wui-color-border);
|
|
16227
|
+
margin-block: calc(var(--wui-markdown-base-unit) * 1.5);
|
|
16228
|
+
}
|
|
16229
|
+
|
|
16230
|
+
img {
|
|
16231
|
+
max-width: 100%;
|
|
16232
|
+
height: auto;
|
|
16233
|
+
}
|
|
16234
|
+
`;
|
|
16235
|
+
|
|
16236
|
+
// src/components/Markdown/Markdown.tsx
|
|
16237
|
+
import { jsx as jsx313 } from "react/jsx-runtime";
|
|
16238
|
+
var StyledMarkdownWrapper = styled76.div`
|
|
16239
|
+
${({ $textSize }) => baseMarkdownCss($textSize)}
|
|
16240
|
+
`;
|
|
16241
|
+
var Markdown = ({
|
|
16242
|
+
children,
|
|
16243
|
+
textSize = "body2",
|
|
16244
|
+
...otherProps
|
|
16245
|
+
}) => {
|
|
16246
|
+
const responsiveTextSize = useResponsiveProp(textSize);
|
|
16247
|
+
return /* @__PURE__ */ jsx313(
|
|
16248
|
+
StyledMarkdownWrapper,
|
|
16249
|
+
{
|
|
16250
|
+
$textSize: responsiveTextSize,
|
|
16251
|
+
...otherProps,
|
|
16252
|
+
children: /* @__PURE__ */ jsx313(ReactMarkdown, { children })
|
|
16253
|
+
}
|
|
16254
|
+
);
|
|
16255
|
+
};
|
|
16256
|
+
Markdown.displayName = "Markdown_UI";
|
|
16257
|
+
|
|
16112
16258
|
// src/components/Modal/Modal.tsx
|
|
16113
16259
|
import { forwardRef as forwardRef26 } from "react";
|
|
16114
|
-
import { styled as
|
|
16260
|
+
import { styled as styled81 } from "styled-components";
|
|
16115
16261
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
16116
16262
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
16117
16263
|
|
|
16118
16264
|
// src/components/Modal/ModalHeader.tsx
|
|
16119
|
-
import { styled as
|
|
16265
|
+
import { styled as styled78 } from "styled-components";
|
|
16120
16266
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
16121
16267
|
|
|
16122
16268
|
// src/components/Modal/ModalCloseButton.tsx
|
|
16123
|
-
import { styled as
|
|
16269
|
+
import { styled as styled77 } from "styled-components";
|
|
16124
16270
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
16125
|
-
import { jsx as
|
|
16126
|
-
var CloseButton =
|
|
16271
|
+
import { jsx as jsx314 } from "react/jsx-runtime";
|
|
16272
|
+
var CloseButton = styled77(DialogClose)`
|
|
16127
16273
|
align-self: start;
|
|
16128
16274
|
`;
|
|
16129
16275
|
var ModalCloseButton = () => {
|
|
16130
|
-
return /* @__PURE__ */
|
|
16276
|
+
return /* @__PURE__ */ jsx314(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx314(
|
|
16131
16277
|
IconButton,
|
|
16132
16278
|
{
|
|
16133
16279
|
label: "Dismiss modal",
|
|
16134
16280
|
size: "sm",
|
|
16135
16281
|
variant: "ghost",
|
|
16136
|
-
children: /* @__PURE__ */
|
|
16282
|
+
children: /* @__PURE__ */ jsx314(Icon, { type: "close" })
|
|
16137
16283
|
}
|
|
16138
16284
|
) });
|
|
16139
16285
|
};
|
|
16140
16286
|
|
|
16141
16287
|
// src/components/Modal/ModalHeader.tsx
|
|
16142
|
-
import { jsx as
|
|
16143
|
-
var Header =
|
|
16288
|
+
import { jsx as jsx315, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
16289
|
+
var Header = styled78.header`
|
|
16144
16290
|
display: flex;
|
|
16145
16291
|
order: 1;
|
|
16146
16292
|
padding: 0 var(--wui-space-05);
|
|
@@ -16160,7 +16306,7 @@ var Header = styled77.header`
|
|
|
16160
16306
|
top: var(--wui-space-03);
|
|
16161
16307
|
}
|
|
16162
16308
|
`;
|
|
16163
|
-
var Title =
|
|
16309
|
+
var Title = styled78(DialogTitle)`
|
|
16164
16310
|
font-family: var(--wui-typography-heading-2-family);
|
|
16165
16311
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
16166
16312
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -16171,7 +16317,7 @@ var ModalHeader = ({
|
|
|
16171
16317
|
hideTitle,
|
|
16172
16318
|
hideCloseButton
|
|
16173
16319
|
}) => {
|
|
16174
|
-
const TitleComponent = hideTitle ? /* @__PURE__ */
|
|
16320
|
+
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx315(ScreenReaderOnly, { children: /* @__PURE__ */ jsx315(Title, { children: title }) }) : /* @__PURE__ */ jsx315(Title, { children: title });
|
|
16175
16321
|
return /* @__PURE__ */ jsxs50(
|
|
16176
16322
|
Header,
|
|
16177
16323
|
{
|
|
@@ -16179,7 +16325,7 @@ var ModalHeader = ({
|
|
|
16179
16325
|
$hideTitle: hideTitle,
|
|
16180
16326
|
children: [
|
|
16181
16327
|
TitleComponent,
|
|
16182
|
-
hideCloseButton ? null : /* @__PURE__ */
|
|
16328
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx315(ModalCloseButton, {})
|
|
16183
16329
|
]
|
|
16184
16330
|
}
|
|
16185
16331
|
);
|
|
@@ -16187,7 +16333,7 @@ var ModalHeader = ({
|
|
|
16187
16333
|
|
|
16188
16334
|
// src/components/Modal/ModalContent.tsx
|
|
16189
16335
|
import { forwardRef as forwardRef25 } from "react";
|
|
16190
|
-
import { styled as
|
|
16336
|
+
import { styled as styled79, css as css40, keyframes as keyframes5 } from "styled-components";
|
|
16191
16337
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
16192
16338
|
|
|
16193
16339
|
// src/components/Modal/constants.ts
|
|
@@ -16213,7 +16359,7 @@ var useFocusRestore = () => {
|
|
|
16213
16359
|
};
|
|
16214
16360
|
|
|
16215
16361
|
// src/components/Modal/ModalContent.tsx
|
|
16216
|
-
import { jsx as
|
|
16362
|
+
import { jsx as jsx316 } from "react/jsx-runtime";
|
|
16217
16363
|
var modalEnter = keyframes5`
|
|
16218
16364
|
from {
|
|
16219
16365
|
opacity: 0;
|
|
@@ -16236,7 +16382,7 @@ var modalExit = keyframes5`
|
|
|
16236
16382
|
transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
|
|
16237
16383
|
}
|
|
16238
16384
|
`;
|
|
16239
|
-
var centeredModalStyles =
|
|
16385
|
+
var centeredModalStyles = css40`
|
|
16240
16386
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
16241
16387
|
--wui-modal-translate-y: -50%;
|
|
16242
16388
|
|
|
@@ -16252,7 +16398,7 @@ var centeredModalStyles = css39`
|
|
|
16252
16398
|
animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
16253
16399
|
}
|
|
16254
16400
|
`;
|
|
16255
|
-
var fixedTopModalStyles =
|
|
16401
|
+
var fixedTopModalStyles = css40`
|
|
16256
16402
|
--wui-modal-screen-offset-top: 15vh;
|
|
16257
16403
|
--wui-modal-screen-offset-bottom: 5vh;
|
|
16258
16404
|
--wui-modal-translate-y: 0%;
|
|
@@ -16293,7 +16439,7 @@ var slideOutRight = keyframes5`
|
|
|
16293
16439
|
transform: translateX(100%);
|
|
16294
16440
|
}
|
|
16295
16441
|
`;
|
|
16296
|
-
var rightSidePanelModalStyles =
|
|
16442
|
+
var rightSidePanelModalStyles = css40`
|
|
16297
16443
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
16298
16444
|
|
|
16299
16445
|
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
@@ -16311,7 +16457,7 @@ var positionStyleMap = {
|
|
|
16311
16457
|
"fixed-top": fixedTopModalStyles,
|
|
16312
16458
|
"right-side-panel": rightSidePanelModalStyles
|
|
16313
16459
|
};
|
|
16314
|
-
var StyledModalContent =
|
|
16460
|
+
var StyledModalContent = styled79(DialogContent)`
|
|
16315
16461
|
position: fixed;
|
|
16316
16462
|
display: flex;
|
|
16317
16463
|
flex-direction: column;
|
|
@@ -16341,7 +16487,7 @@ var StyledModalContent = styled78(DialogContent)`
|
|
|
16341
16487
|
var ModalContent = forwardRef25(
|
|
16342
16488
|
({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
|
|
16343
16489
|
useFocusRestore();
|
|
16344
|
-
return /* @__PURE__ */
|
|
16490
|
+
return /* @__PURE__ */ jsx316(
|
|
16345
16491
|
StyledModalContent,
|
|
16346
16492
|
{
|
|
16347
16493
|
ref,
|
|
@@ -16357,7 +16503,7 @@ var ModalContent = forwardRef25(
|
|
|
16357
16503
|
|
|
16358
16504
|
// src/components/Modal/ModalOverlay.tsx
|
|
16359
16505
|
import { DialogOverlay } from "@radix-ui/react-dialog";
|
|
16360
|
-
import { styled as
|
|
16506
|
+
import { styled as styled80, keyframes as keyframes6 } from "styled-components";
|
|
16361
16507
|
var backdropShow = keyframes6`
|
|
16362
16508
|
from {
|
|
16363
16509
|
opacity: 0;
|
|
@@ -16376,7 +16522,7 @@ var backdropHide = keyframes6`
|
|
|
16376
16522
|
opacity: 0;
|
|
16377
16523
|
}
|
|
16378
16524
|
`;
|
|
16379
|
-
var ModalOverlay =
|
|
16525
|
+
var ModalOverlay = styled80(DialogOverlay)`
|
|
16380
16526
|
animation: ${backdropShow} var(--wui-motion-duration-02);
|
|
16381
16527
|
background: var(--wui-color-backdrop);
|
|
16382
16528
|
inset: 0;
|
|
@@ -16389,19 +16535,19 @@ var ModalOverlay = styled79(DialogOverlay)`
|
|
|
16389
16535
|
`;
|
|
16390
16536
|
|
|
16391
16537
|
// src/components/Modal/Modal.tsx
|
|
16392
|
-
import { jsx as
|
|
16393
|
-
var ModalBody =
|
|
16538
|
+
import { jsx as jsx317, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
16539
|
+
var ModalBody = styled81.div`
|
|
16394
16540
|
flex-direction: column;
|
|
16395
16541
|
display: flex;
|
|
16396
16542
|
flex: 1 0 0;
|
|
16397
16543
|
padding: 0 var(--wui-space-05);
|
|
16398
16544
|
`;
|
|
16399
|
-
var ModalScrollArea =
|
|
16545
|
+
var ModalScrollArea = styled81.div`
|
|
16400
16546
|
order: 2;
|
|
16401
16547
|
max-height: 90vh;
|
|
16402
16548
|
overflow-y: auto;
|
|
16403
16549
|
`;
|
|
16404
|
-
var ModalFooter =
|
|
16550
|
+
var ModalFooter = styled81.footer`
|
|
16405
16551
|
padding: 0 var(--wui-space-05);
|
|
16406
16552
|
order: 3;
|
|
16407
16553
|
`;
|
|
@@ -16419,7 +16565,7 @@ var Modal = forwardRef26(
|
|
|
16419
16565
|
width = DEFAULT_MODAL_WIDTH,
|
|
16420
16566
|
...props
|
|
16421
16567
|
}, ref) => {
|
|
16422
|
-
return /* @__PURE__ */
|
|
16568
|
+
return /* @__PURE__ */ jsx317(
|
|
16423
16569
|
DialogRoot,
|
|
16424
16570
|
{
|
|
16425
16571
|
onOpenChange: (open2) => {
|
|
@@ -16429,7 +16575,7 @@ var Modal = forwardRef26(
|
|
|
16429
16575
|
},
|
|
16430
16576
|
open: isOpen,
|
|
16431
16577
|
children: /* @__PURE__ */ jsxs51(DialogPortal, { children: [
|
|
16432
|
-
/* @__PURE__ */
|
|
16578
|
+
/* @__PURE__ */ jsx317(ModalOverlay, {}),
|
|
16433
16579
|
/* @__PURE__ */ jsxs51(
|
|
16434
16580
|
ModalContent,
|
|
16435
16581
|
{
|
|
@@ -16446,9 +16592,9 @@ var Modal = forwardRef26(
|
|
|
16446
16592
|
width,
|
|
16447
16593
|
...props,
|
|
16448
16594
|
children: [
|
|
16449
|
-
/* @__PURE__ */
|
|
16450
|
-
isNotNil32(footer) ? /* @__PURE__ */
|
|
16451
|
-
hideCloseButton && hideTitle ? null : /* @__PURE__ */
|
|
16595
|
+
/* @__PURE__ */ jsx317(ModalScrollArea, { children: /* @__PURE__ */ jsx317(ModalBody, { children }) }),
|
|
16596
|
+
isNotNil32(footer) ? /* @__PURE__ */ jsx317(ModalFooter, { children: footer }) : null,
|
|
16597
|
+
hideCloseButton && hideTitle ? null : /* @__PURE__ */ jsx317(
|
|
16452
16598
|
ModalHeader,
|
|
16453
16599
|
{
|
|
16454
16600
|
hideCloseButton,
|
|
@@ -16467,9 +16613,9 @@ var Modal = forwardRef26(
|
|
|
16467
16613
|
Modal.displayName = "Modal_UI";
|
|
16468
16614
|
|
|
16469
16615
|
// src/components/Modal/ModalCallouts.tsx
|
|
16470
|
-
import { jsx as
|
|
16616
|
+
import { jsx as jsx318, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
16471
16617
|
var ModalCallouts = ({ children }) => {
|
|
16472
|
-
return /* @__PURE__ */
|
|
16618
|
+
return /* @__PURE__ */ jsx318(
|
|
16473
16619
|
Stack,
|
|
16474
16620
|
{
|
|
16475
16621
|
direction: "horizontal",
|
|
@@ -16482,7 +16628,7 @@ ModalCallouts.displayName = "ModalCallouts_UI";
|
|
|
16482
16628
|
var ModalCallout = ({ title, image, children }) => {
|
|
16483
16629
|
return /* @__PURE__ */ jsxs52(Stack, { direction: "vertical", children: [
|
|
16484
16630
|
image,
|
|
16485
|
-
/* @__PURE__ */
|
|
16631
|
+
/* @__PURE__ */ jsx318(Heading, { variant: "heading4", children: title }),
|
|
16486
16632
|
children
|
|
16487
16633
|
] });
|
|
16488
16634
|
};
|
|
@@ -16490,7 +16636,7 @@ ModalCallout.displayName = "ModalCallout_UI";
|
|
|
16490
16636
|
|
|
16491
16637
|
// src/components/Popover/Popover.tsx
|
|
16492
16638
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
16493
|
-
import { styled as
|
|
16639
|
+
import { styled as styled83, css as css42 } from "styled-components";
|
|
16494
16640
|
|
|
16495
16641
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
16496
16642
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
@@ -16500,9 +16646,9 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
16500
16646
|
|
|
16501
16647
|
// src/components/Popover/PopoverArrow.tsx
|
|
16502
16648
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
16503
|
-
import { styled as
|
|
16504
|
-
import { jsx as
|
|
16505
|
-
var StyledPath =
|
|
16649
|
+
import { styled as styled82, css as css41, keyframes as keyframes7 } from "styled-components";
|
|
16650
|
+
import { jsx as jsx319, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16651
|
+
var StyledPath = styled82.path`
|
|
16506
16652
|
fill: var(--wui-color-border-secondary);
|
|
16507
16653
|
`;
|
|
16508
16654
|
var circleAnimation = keyframes7`
|
|
@@ -16513,7 +16659,7 @@ var circleAnimation = keyframes7`
|
|
|
16513
16659
|
opacity: 0;
|
|
16514
16660
|
}
|
|
16515
16661
|
`;
|
|
16516
|
-
var StyledCircle =
|
|
16662
|
+
var StyledCircle = styled82.circle`
|
|
16517
16663
|
stroke: var(--wui-color-border-active);
|
|
16518
16664
|
animation-duration: 2s;
|
|
16519
16665
|
animation-iteration-count: infinite;
|
|
@@ -16534,13 +16680,13 @@ var StyledCircle = styled81.circle`
|
|
|
16534
16680
|
}
|
|
16535
16681
|
|
|
16536
16682
|
@media (prefers-reduced-motion: no-preference) {
|
|
16537
|
-
${({ $isAnimated }) => $isAnimated &&
|
|
16683
|
+
${({ $isAnimated }) => $isAnimated && css41`
|
|
16538
16684
|
animation-name: ${circleAnimation};
|
|
16539
16685
|
`}
|
|
16540
16686
|
}
|
|
16541
16687
|
`;
|
|
16542
16688
|
var PopoverArrow = ({ isAnimated }) => {
|
|
16543
|
-
return /* @__PURE__ */
|
|
16689
|
+
return /* @__PURE__ */ jsx319(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs53(
|
|
16544
16690
|
"svg",
|
|
16545
16691
|
{
|
|
16546
16692
|
fill: "none",
|
|
@@ -16549,8 +16695,8 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
16549
16695
|
width: "48",
|
|
16550
16696
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16551
16697
|
children: [
|
|
16552
|
-
/* @__PURE__ */
|
|
16553
|
-
/* @__PURE__ */
|
|
16698
|
+
/* @__PURE__ */ jsx319(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" }),
|
|
16699
|
+
/* @__PURE__ */ jsx319(
|
|
16554
16700
|
StyledCircle,
|
|
16555
16701
|
{
|
|
16556
16702
|
$isAnimated: isAnimated,
|
|
@@ -16561,7 +16707,7 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
16561
16707
|
strokeWidth: "4"
|
|
16562
16708
|
}
|
|
16563
16709
|
),
|
|
16564
|
-
/* @__PURE__ */
|
|
16710
|
+
/* @__PURE__ */ jsx319(
|
|
16565
16711
|
StyledCircle,
|
|
16566
16712
|
{
|
|
16567
16713
|
$isAnimated: isAnimated,
|
|
@@ -16579,11 +16725,11 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
16579
16725
|
PopoverArrow.displayName = "PopoverArrow_UI";
|
|
16580
16726
|
|
|
16581
16727
|
// src/components/Popover/Popover.tsx
|
|
16582
|
-
import { jsx as
|
|
16583
|
-
var StyledContent2 =
|
|
16728
|
+
import { jsx as jsx320, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
16729
|
+
var StyledContent2 = styled83(Content2)`
|
|
16584
16730
|
z-index: var(--wui-zindex-popover);
|
|
16585
16731
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
16586
|
-
${({ $unstyled }) => !$unstyled &&
|
|
16732
|
+
${({ $unstyled }) => !$unstyled && css42`
|
|
16587
16733
|
border-radius: var(--wui-border-radius-02);
|
|
16588
16734
|
padding: var(--wui-space-04);
|
|
16589
16735
|
max-width: var(--wui-popover-max-width, 320px);
|
|
@@ -16620,8 +16766,8 @@ var Popover = ({
|
|
|
16620
16766
|
"--wui-popover-max-height": maxHeight
|
|
16621
16767
|
};
|
|
16622
16768
|
return /* @__PURE__ */ jsxs54(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
16623
|
-
/* @__PURE__ */
|
|
16624
|
-
/* @__PURE__ */
|
|
16769
|
+
/* @__PURE__ */ jsx320(Trigger2, { asChild: true, children: trigger }),
|
|
16770
|
+
/* @__PURE__ */ jsx320(Portal, { children: /* @__PURE__ */ jsxs54(
|
|
16625
16771
|
StyledContent2,
|
|
16626
16772
|
{
|
|
16627
16773
|
$colorScheme: colorScheme,
|
|
@@ -16630,17 +16776,17 @@ var Popover = ({
|
|
|
16630
16776
|
$unstyled: unstyled,
|
|
16631
16777
|
style,
|
|
16632
16778
|
children: [
|
|
16633
|
-
!hideCloseButton && /* @__PURE__ */
|
|
16779
|
+
!hideCloseButton && /* @__PURE__ */ jsx320(Close, { asChild: true, children: /* @__PURE__ */ jsx320(
|
|
16634
16780
|
IconButton,
|
|
16635
16781
|
{
|
|
16636
16782
|
"data-wui-popover-close": true,
|
|
16637
16783
|
label: "Close",
|
|
16638
16784
|
variant: "ghost",
|
|
16639
|
-
children: /* @__PURE__ */
|
|
16785
|
+
children: /* @__PURE__ */ jsx320(Icon, { type: "close" })
|
|
16640
16786
|
}
|
|
16641
16787
|
) }),
|
|
16642
|
-
withArrow ? /* @__PURE__ */
|
|
16643
|
-
/* @__PURE__ */
|
|
16788
|
+
withArrow ? /* @__PURE__ */ jsx320(PopoverArrow, { isAnimated }) : null,
|
|
16789
|
+
/* @__PURE__ */ jsx320("div", { children })
|
|
16644
16790
|
]
|
|
16645
16791
|
}
|
|
16646
16792
|
) })
|
|
@@ -16649,11 +16795,11 @@ var Popover = ({
|
|
|
16649
16795
|
Popover.displayName = "Popover_UI";
|
|
16650
16796
|
|
|
16651
16797
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
16652
|
-
import { styled as
|
|
16798
|
+
import { styled as styled84 } from "styled-components";
|
|
16653
16799
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
16654
16800
|
import { isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
16655
|
-
import { jsx as
|
|
16656
|
-
var ProgressBarWrapper =
|
|
16801
|
+
import { jsx as jsx321, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
16802
|
+
var ProgressBarWrapper = styled84.div`
|
|
16657
16803
|
--progress-bar-height: 8px;
|
|
16658
16804
|
|
|
16659
16805
|
display: flex;
|
|
@@ -16667,7 +16813,7 @@ var getTranslateValue = (progress, max) => {
|
|
|
16667
16813
|
const progressPercentage = progress / max * 100;
|
|
16668
16814
|
return `translateX(-${100 - progressPercentage}%)`;
|
|
16669
16815
|
};
|
|
16670
|
-
var ProgressBarLabel =
|
|
16816
|
+
var ProgressBarLabel = styled84.div`
|
|
16671
16817
|
display: flex;
|
|
16672
16818
|
line-height: var(--wui-typography-label-3-line-height);
|
|
16673
16819
|
font-size: var(--wui-typography-label-3-size);
|
|
@@ -16675,7 +16821,7 @@ var ProgressBarLabel = styled83.div`
|
|
|
16675
16821
|
color: var(--wui-color-text-secondary);
|
|
16676
16822
|
flex-shrink: 0;
|
|
16677
16823
|
`;
|
|
16678
|
-
var StyledProgressIndicator =
|
|
16824
|
+
var StyledProgressIndicator = styled84(ProgressIndicator)`
|
|
16679
16825
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
16680
16826
|
background-color: var(--wui-color-bg-fill);
|
|
16681
16827
|
width: 100%;
|
|
@@ -16685,7 +16831,7 @@ var StyledProgressIndicator = styled83(ProgressIndicator)`
|
|
|
16685
16831
|
transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
16686
16832
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
16687
16833
|
`;
|
|
16688
|
-
var StyledProgressBar =
|
|
16834
|
+
var StyledProgressBar = styled84(ProgressRoot)`
|
|
16689
16835
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
16690
16836
|
position: relative;
|
|
16691
16837
|
overflow: hidden;
|
|
@@ -16707,15 +16853,15 @@ var ProgressBar = ({
|
|
|
16707
16853
|
...props
|
|
16708
16854
|
}) => {
|
|
16709
16855
|
return /* @__PURE__ */ jsxs55(ProgressBarWrapper, { children: [
|
|
16710
|
-
isNotNil34(labelLeft) ? /* @__PURE__ */
|
|
16711
|
-
/* @__PURE__ */
|
|
16856
|
+
isNotNil34(labelLeft) ? /* @__PURE__ */ jsx321(ProgressBarLabel, { children: labelLeft }) : null,
|
|
16857
|
+
/* @__PURE__ */ jsx321(
|
|
16712
16858
|
StyledProgressBar,
|
|
16713
16859
|
{
|
|
16714
16860
|
$colorScheme: colorScheme,
|
|
16715
16861
|
max,
|
|
16716
16862
|
value: progress,
|
|
16717
16863
|
...props,
|
|
16718
|
-
children: /* @__PURE__ */
|
|
16864
|
+
children: /* @__PURE__ */ jsx321(
|
|
16719
16865
|
StyledProgressIndicator,
|
|
16720
16866
|
{
|
|
16721
16867
|
$colorScheme: colorScheme,
|
|
@@ -16725,7 +16871,7 @@ var ProgressBar = ({
|
|
|
16725
16871
|
)
|
|
16726
16872
|
}
|
|
16727
16873
|
),
|
|
16728
|
-
isNotNil34(labelRight) ? /* @__PURE__ */
|
|
16874
|
+
isNotNil34(labelRight) ? /* @__PURE__ */ jsx321(ProgressBarLabel, { children: labelRight }) : null
|
|
16729
16875
|
] });
|
|
16730
16876
|
};
|
|
16731
16877
|
ProgressBar.displayName = "ProgressBar_UI";
|
|
@@ -16733,17 +16879,17 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
16733
16879
|
// src/components/Radio/Radio.tsx
|
|
16734
16880
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16735
16881
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
16736
|
-
import { styled as
|
|
16737
|
-
import { jsx as
|
|
16738
|
-
var sizeSmall2 =
|
|
16882
|
+
import { styled as styled85, css as css43 } from "styled-components";
|
|
16883
|
+
import { jsx as jsx322, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
16884
|
+
var sizeSmall2 = css43`
|
|
16739
16885
|
--wui-radio-size: 14px;
|
|
16740
16886
|
--wui-radio-icon-size: 7px;
|
|
16741
16887
|
`;
|
|
16742
|
-
var sizeMedium2 =
|
|
16888
|
+
var sizeMedium2 = css43`
|
|
16743
16889
|
--wui-radio-size: 16px;
|
|
16744
16890
|
--wui-radio-icon-size: 8px;
|
|
16745
16891
|
`;
|
|
16746
|
-
var sizeLarge2 =
|
|
16892
|
+
var sizeLarge2 = css43`
|
|
16747
16893
|
--wui-radio-size: 20px;
|
|
16748
16894
|
--wui-radio-icon-size: 10px;
|
|
16749
16895
|
`;
|
|
@@ -16756,7 +16902,7 @@ var getSizeCss3 = (size) => {
|
|
|
16756
16902
|
}
|
|
16757
16903
|
return sizeMedium2;
|
|
16758
16904
|
};
|
|
16759
|
-
var StyledRadioWrapper =
|
|
16905
|
+
var StyledRadioWrapper = styled85.div`
|
|
16760
16906
|
--wui-radio-background-color: var(--wui-color-bg-surface);
|
|
16761
16907
|
--wui-radio-border-color: var(--wui-color-border-secondary);
|
|
16762
16908
|
--wui-radio-icon-color: transparent;
|
|
@@ -16790,7 +16936,7 @@ var StyledRadioWrapper = styled84.div`
|
|
|
16790
16936
|
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
16791
16937
|
user-select: none;
|
|
16792
16938
|
`;
|
|
16793
|
-
var StyledRadioInput =
|
|
16939
|
+
var StyledRadioInput = styled85.div`
|
|
16794
16940
|
${({ $size }) => getSizeCss3($size)}
|
|
16795
16941
|
width: var(--wui-radio-size);
|
|
16796
16942
|
height: var(--wui-radio-size);
|
|
@@ -16816,7 +16962,7 @@ var StyledRadioInput = styled84.div`
|
|
|
16816
16962
|
transform: translate(-50%, -50%);
|
|
16817
16963
|
}
|
|
16818
16964
|
`;
|
|
16819
|
-
var StyledHiddenRadioInput =
|
|
16965
|
+
var StyledHiddenRadioInput = styled85.input`
|
|
16820
16966
|
${visuallyHiddenStyle}
|
|
16821
16967
|
`;
|
|
16822
16968
|
var Radio = forwardRef27(
|
|
@@ -16850,7 +16996,7 @@ var Radio = forwardRef27(
|
|
|
16850
16996
|
$hideLabel: hideLabel,
|
|
16851
16997
|
"aria-invalid": props["aria-invalid"],
|
|
16852
16998
|
children: [
|
|
16853
|
-
/* @__PURE__ */
|
|
16999
|
+
/* @__PURE__ */ jsx322(
|
|
16854
17000
|
StyledHiddenRadioInput,
|
|
16855
17001
|
{
|
|
16856
17002
|
...props,
|
|
@@ -16865,10 +17011,10 @@ var Radio = forwardRef27(
|
|
|
16865
17011
|
value
|
|
16866
17012
|
}
|
|
16867
17013
|
),
|
|
16868
|
-
/* @__PURE__ */
|
|
17014
|
+
/* @__PURE__ */ jsx322(
|
|
16869
17015
|
FormControlLabel,
|
|
16870
17016
|
{
|
|
16871
|
-
controlSlot: /* @__PURE__ */
|
|
17017
|
+
controlSlot: /* @__PURE__ */ jsx322(StyledRadioInput, { $size: size }),
|
|
16872
17018
|
description,
|
|
16873
17019
|
disabled,
|
|
16874
17020
|
hideLabel,
|
|
@@ -16888,17 +17034,17 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16888
17034
|
|
|
16889
17035
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
16890
17036
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16891
|
-
import { styled as
|
|
17037
|
+
import { styled as styled86, css as css44 } from "styled-components";
|
|
16892
17038
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined15 } from "@wistia/type-guards";
|
|
16893
|
-
import { jsx as
|
|
16894
|
-
var checkedStyles =
|
|
17039
|
+
import { jsx as jsx323, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
17040
|
+
var checkedStyles = css44`
|
|
16895
17041
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
16896
17042
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
16897
17043
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-info);
|
|
16898
17044
|
--wui-color-text: var(--wui-color-text-info);
|
|
16899
17045
|
--wui-color-text-secondary: var(--wui-color-text-info);
|
|
16900
17046
|
`;
|
|
16901
|
-
var disabledStyles =
|
|
17047
|
+
var disabledStyles = css44`
|
|
16902
17048
|
--wui-radio-card-border-color: var(--wui-color-border-disabled);
|
|
16903
17049
|
--wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
|
|
16904
17050
|
--wui-radio-card-cursor: not-allowed;
|
|
@@ -16906,10 +17052,10 @@ var disabledStyles = css43`
|
|
|
16906
17052
|
--wui-color-text: var(--wui-color-text-disabled);
|
|
16907
17053
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
16908
17054
|
`;
|
|
16909
|
-
var focusStyles =
|
|
17055
|
+
var focusStyles = css44`
|
|
16910
17056
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
16911
17057
|
`;
|
|
16912
|
-
var imageCoverStyles =
|
|
17058
|
+
var imageCoverStyles = css44`
|
|
16913
17059
|
--wui-radio-card-image-inset: 0px;
|
|
16914
17060
|
--wui-radio-card-border-width: 0px;
|
|
16915
17061
|
--wui-inset-shadow-width: 1px;
|
|
@@ -16940,7 +17086,7 @@ var imageCoverStyles = css43`
|
|
|
16940
17086
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
16941
17087
|
}
|
|
16942
17088
|
`;
|
|
16943
|
-
var StyledCard2 =
|
|
17089
|
+
var StyledCard2 = styled86.label`
|
|
16944
17090
|
--wui-radio-card-border-color: var(--wui-color-border-secondary);
|
|
16945
17091
|
--wui-radio-card-background-color: var(--wui-color-bg-surface);
|
|
16946
17092
|
--wui-radio-card-cursor: pointer;
|
|
@@ -16994,7 +17140,7 @@ var StyledCard2 = styled85.label`
|
|
|
16994
17140
|
}
|
|
16995
17141
|
}
|
|
16996
17142
|
`;
|
|
16997
|
-
var StyledHiddenInput =
|
|
17143
|
+
var StyledHiddenInput = styled86.input`
|
|
16998
17144
|
${visuallyHiddenStyle}
|
|
16999
17145
|
`;
|
|
17000
17146
|
var RadioCardRoot = forwardRef28(
|
|
@@ -17026,7 +17172,7 @@ var RadioCardRoot = forwardRef28(
|
|
|
17026
17172
|
$padding: padding,
|
|
17027
17173
|
htmlFor: computedId,
|
|
17028
17174
|
children: [
|
|
17029
|
-
/* @__PURE__ */
|
|
17175
|
+
/* @__PURE__ */ jsx323(
|
|
17030
17176
|
StyledHiddenInput,
|
|
17031
17177
|
{
|
|
17032
17178
|
...props,
|
|
@@ -17049,12 +17195,12 @@ var RadioCardRoot = forwardRef28(
|
|
|
17049
17195
|
RadioCardRoot.displayName = "RadioCardRoot_UI";
|
|
17050
17196
|
|
|
17051
17197
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
17052
|
-
import { styled as
|
|
17198
|
+
import { styled as styled88 } from "styled-components";
|
|
17053
17199
|
import { isNotNil as isNotNil35 } from "@wistia/type-guards";
|
|
17054
17200
|
|
|
17055
17201
|
// src/components/RadioCard/RadioCardIndicator.tsx
|
|
17056
|
-
import { styled as
|
|
17057
|
-
var RadioCardIndicator =
|
|
17202
|
+
import { styled as styled87 } from "styled-components";
|
|
17203
|
+
var RadioCardIndicator = styled87.div`
|
|
17058
17204
|
--wui-radio-card-indicator-size: 14px;
|
|
17059
17205
|
--wui-radio-card-indicator-background-color: var(--wui-color-bg-surface);
|
|
17060
17206
|
--wui-radio-card-indicator-fill-color: var(--wui-color-bg-fill);
|
|
@@ -17103,16 +17249,16 @@ var RadioCardIndicator = styled86.div`
|
|
|
17103
17249
|
RadioCardIndicator.displayName = "RadioCardIndicator_UI";
|
|
17104
17250
|
|
|
17105
17251
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
17106
|
-
import { jsx as
|
|
17107
|
-
var StyledCardContent =
|
|
17252
|
+
import { jsx as jsx324, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
17253
|
+
var StyledCardContent = styled88.div`
|
|
17108
17254
|
display: grid;
|
|
17109
17255
|
grid-auto-flow: column;
|
|
17110
17256
|
gap: var(--wui-space-02);
|
|
17111
17257
|
`;
|
|
17112
|
-
var StyledCardIcon =
|
|
17258
|
+
var StyledCardIcon = styled88.div`
|
|
17113
17259
|
display: contents;
|
|
17114
17260
|
`;
|
|
17115
|
-
var StyledIndicatorContainer =
|
|
17261
|
+
var StyledIndicatorContainer = styled88.div`
|
|
17116
17262
|
height: ${({ $hasIcon }) => $hasIcon ? "24px" : "16px"};
|
|
17117
17263
|
display: flex;
|
|
17118
17264
|
align-items: center;
|
|
@@ -17124,17 +17270,17 @@ var RadioCardDefaultLayout = ({
|
|
|
17124
17270
|
showIndicator = true
|
|
17125
17271
|
}) => {
|
|
17126
17272
|
return /* @__PURE__ */ jsxs58(StyledCardContent, { children: [
|
|
17127
|
-
showIndicator ? /* @__PURE__ */
|
|
17273
|
+
showIndicator ? /* @__PURE__ */ jsx324(StyledIndicatorContainer, { $hasIcon: isNotNil35(icon), children: /* @__PURE__ */ jsx324(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
|
|
17128
17274
|
/* @__PURE__ */ jsxs58(Stack, { gap: "space-02", children: [
|
|
17129
|
-
isNotNil35(icon) && /* @__PURE__ */
|
|
17275
|
+
isNotNil35(icon) && /* @__PURE__ */ jsx324(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
|
|
17130
17276
|
/* @__PURE__ */ jsxs58(
|
|
17131
17277
|
Stack,
|
|
17132
17278
|
{
|
|
17133
17279
|
gap: "space-01",
|
|
17134
17280
|
style: isNotNil35(icon) ? { paddingLeft: 2 } : void 0,
|
|
17135
17281
|
children: [
|
|
17136
|
-
isNotNil35(label) && /* @__PURE__ */
|
|
17137
|
-
isNotNil35(description) && /* @__PURE__ */
|
|
17282
|
+
isNotNil35(label) && /* @__PURE__ */ jsx324(Text, { variant: "label3", children: /* @__PURE__ */ jsx324("strong", { children: label }) }),
|
|
17283
|
+
isNotNil35(description) && /* @__PURE__ */ jsx324(
|
|
17138
17284
|
Text,
|
|
17139
17285
|
{
|
|
17140
17286
|
prominence: "secondary",
|
|
@@ -17151,22 +17297,22 @@ var RadioCardDefaultLayout = ({
|
|
|
17151
17297
|
RadioCardDefaultLayout.displayName = "RadioCardDefaultLayout_UI";
|
|
17152
17298
|
|
|
17153
17299
|
// src/components/RadioCard/RadioCardChildrenContainer.tsx
|
|
17154
|
-
import { styled as
|
|
17155
|
-
var RadioCardChildrenContainer =
|
|
17300
|
+
import { styled as styled89 } from "styled-components";
|
|
17301
|
+
var RadioCardChildrenContainer = styled89.div`
|
|
17156
17302
|
flex: 1 1 auto;
|
|
17157
17303
|
`;
|
|
17158
17304
|
|
|
17159
17305
|
// src/components/RadioCard/RadioCard.tsx
|
|
17160
|
-
import { jsx as
|
|
17306
|
+
import { jsx as jsx325 } from "react/jsx-runtime";
|
|
17161
17307
|
var RadioCard = forwardRef29(
|
|
17162
17308
|
({ icon, label, description, showIndicator, children, ...rootProps }, ref) => {
|
|
17163
|
-
return /* @__PURE__ */
|
|
17309
|
+
return /* @__PURE__ */ jsx325(
|
|
17164
17310
|
RadioCardRoot,
|
|
17165
17311
|
{
|
|
17166
17312
|
ref,
|
|
17167
17313
|
padding: children != null ? "space-00" : "space-04",
|
|
17168
17314
|
...rootProps,
|
|
17169
|
-
children: children != null ? /* @__PURE__ */
|
|
17315
|
+
children: children != null ? /* @__PURE__ */ jsx325(RadioCardChildrenContainer, { "data-wui-radio-card-image": "cover", children }) : /* @__PURE__ */ jsx325(
|
|
17170
17316
|
RadioCardDefaultLayout,
|
|
17171
17317
|
{
|
|
17172
17318
|
description,
|
|
@@ -17183,17 +17329,17 @@ RadioCard.displayName = "RadioCard_UI";
|
|
|
17183
17329
|
|
|
17184
17330
|
// src/components/RadioCard/RadioCardImage.tsx
|
|
17185
17331
|
import { forwardRef as forwardRef30 } from "react";
|
|
17186
|
-
import { jsx as
|
|
17332
|
+
import { jsx as jsx326 } from "react/jsx-runtime";
|
|
17187
17333
|
var RadioCardImage = forwardRef30(
|
|
17188
17334
|
({ label, imageSrc, aspectRatio, padding = "space-04", ...rootProps }, ref) => {
|
|
17189
|
-
return /* @__PURE__ */
|
|
17335
|
+
return /* @__PURE__ */ jsx326(
|
|
17190
17336
|
RadioCardRoot,
|
|
17191
17337
|
{
|
|
17192
17338
|
ref,
|
|
17193
17339
|
...rootProps,
|
|
17194
17340
|
aspectRatio,
|
|
17195
17341
|
padding,
|
|
17196
|
-
children: /* @__PURE__ */
|
|
17342
|
+
children: /* @__PURE__ */ jsx326(
|
|
17197
17343
|
Image,
|
|
17198
17344
|
{
|
|
17199
17345
|
alt: label,
|
|
@@ -17211,49 +17357,49 @@ RadioCardImage.displayName = "RadioCardImage_UI";
|
|
|
17211
17357
|
|
|
17212
17358
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
17213
17359
|
import { forwardRef as forwardRef31, useCallback as useCallback18, useEffect as useEffect20, useMemo as useMemo15, useRef as useRef21, useState as useState23 } from "react";
|
|
17214
|
-
import { styled as
|
|
17360
|
+
import { styled as styled90 } from "styled-components";
|
|
17215
17361
|
import { throttle } from "throttle-debounce";
|
|
17216
|
-
import { jsx as
|
|
17362
|
+
import { jsx as jsx327, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
17217
17363
|
var SHADOW_SIZE_PX = 8;
|
|
17218
|
-
var Container10 =
|
|
17364
|
+
var Container10 = styled90.div`
|
|
17219
17365
|
overflow: hidden;
|
|
17220
17366
|
position: relative;
|
|
17221
17367
|
flex: 1 1 auto;
|
|
17222
17368
|
`;
|
|
17223
|
-
var ScrollContainer =
|
|
17369
|
+
var ScrollContainer = styled90.div`
|
|
17224
17370
|
overflow: ${({ $locked }) => $locked ? "hidden" : "auto"};
|
|
17225
17371
|
height: 100%;
|
|
17226
17372
|
width: 100%;
|
|
17227
17373
|
`;
|
|
17228
|
-
var Shadow =
|
|
17374
|
+
var Shadow = styled90.div`
|
|
17229
17375
|
pointer-events: none;
|
|
17230
17376
|
position: absolute;
|
|
17231
17377
|
transition: box-shadow var(--wui-motion-duration-04) var(--wui-motion-ease);
|
|
17232
17378
|
box-shadow: ${({ $isVisible }) => $isVisible ? `0 0 ${SHADOW_SIZE_PX}px ${SHADOW_SIZE_PX}px var(--wui-color-drop-shadow)` : "none"};
|
|
17233
17379
|
z-index: 1;
|
|
17234
17380
|
`;
|
|
17235
|
-
var ShadowAtTop =
|
|
17381
|
+
var ShadowAtTop = styled90(Shadow)`
|
|
17236
17382
|
transform: translateY(-${SHADOW_SIZE_PX}px);
|
|
17237
17383
|
height: 0;
|
|
17238
17384
|
left: 0;
|
|
17239
17385
|
right: 0;
|
|
17240
17386
|
top: 0;
|
|
17241
17387
|
`;
|
|
17242
|
-
var ShadowAtBottom =
|
|
17388
|
+
var ShadowAtBottom = styled90(Shadow)`
|
|
17243
17389
|
transform: translateY(${SHADOW_SIZE_PX}px);
|
|
17244
17390
|
bottom: 0;
|
|
17245
17391
|
height: 0;
|
|
17246
17392
|
left: 0;
|
|
17247
17393
|
right: 0;
|
|
17248
17394
|
`;
|
|
17249
|
-
var ShadowAtLeft =
|
|
17395
|
+
var ShadowAtLeft = styled90(Shadow)`
|
|
17250
17396
|
transform: translateX(-${SHADOW_SIZE_PX}px);
|
|
17251
17397
|
bottom: 0;
|
|
17252
17398
|
left: 0;
|
|
17253
17399
|
top: 0;
|
|
17254
17400
|
width: 0;
|
|
17255
17401
|
`;
|
|
17256
|
-
var ShadowAtRight =
|
|
17402
|
+
var ShadowAtRight = styled90(Shadow)`
|
|
17257
17403
|
transform: translateX(${SHADOW_SIZE_PX}px);
|
|
17258
17404
|
bottom: 0;
|
|
17259
17405
|
right: 0;
|
|
@@ -17294,11 +17440,11 @@ var ScrollArea = forwardRef31(
|
|
|
17294
17440
|
updateShadows();
|
|
17295
17441
|
}, [updateShadows]);
|
|
17296
17442
|
return /* @__PURE__ */ jsxs59(Container10, { style, children: [
|
|
17297
|
-
/* @__PURE__ */
|
|
17298
|
-
/* @__PURE__ */
|
|
17299
|
-
/* @__PURE__ */
|
|
17300
|
-
/* @__PURE__ */
|
|
17301
|
-
/* @__PURE__ */
|
|
17443
|
+
/* @__PURE__ */ jsx327(ShadowAtTop, { $isVisible: shadowState.canScrollUp }),
|
|
17444
|
+
/* @__PURE__ */ jsx327(ShadowAtBottom, { $isVisible: shadowState.canScrollDown }),
|
|
17445
|
+
/* @__PURE__ */ jsx327(ShadowAtLeft, { $isVisible: shadowState.canScrollLeft }),
|
|
17446
|
+
/* @__PURE__ */ jsx327(ShadowAtRight, { $isVisible: shadowState.canScrollRight }),
|
|
17447
|
+
/* @__PURE__ */ jsx327(
|
|
17302
17448
|
ScrollContainer,
|
|
17303
17449
|
{
|
|
17304
17450
|
ref: scrollContainerRef,
|
|
@@ -17315,13 +17461,13 @@ ScrollArea.displayName = "ScrollArea_UI";
|
|
|
17315
17461
|
|
|
17316
17462
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17317
17463
|
import { forwardRef as forwardRef32 } from "react";
|
|
17318
|
-
import { styled as
|
|
17464
|
+
import { styled as styled92, css as css46 } from "styled-components";
|
|
17319
17465
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
17320
17466
|
import { isNil as isNil18 } from "@wistia/type-guards";
|
|
17321
17467
|
|
|
17322
17468
|
// src/components/SegmentedControl/useSelectedItemStyle.tsx
|
|
17323
17469
|
import { createContext as createContext9, useContext as useContext15, useMemo as useMemo16, useState as useState24 } from "react";
|
|
17324
|
-
import { jsx as
|
|
17470
|
+
import { jsx as jsx328 } from "react/jsx-runtime";
|
|
17325
17471
|
var SelectedItemStyleContext = createContext9(null);
|
|
17326
17472
|
var SelectedItemStyleProvider = ({
|
|
17327
17473
|
children
|
|
@@ -17342,7 +17488,7 @@ var SelectedItemStyleProvider = ({
|
|
|
17342
17488
|
}),
|
|
17343
17489
|
[selectedItemIndicatorStyle]
|
|
17344
17490
|
);
|
|
17345
|
-
return /* @__PURE__ */
|
|
17491
|
+
return /* @__PURE__ */ jsx328(SelectedItemStyleContext.Provider, { value: contextValue, children });
|
|
17346
17492
|
};
|
|
17347
17493
|
var useSelectedItemStyle = () => {
|
|
17348
17494
|
const context = useContext15(SelectedItemStyleContext);
|
|
@@ -17353,7 +17499,7 @@ var useSelectedItemStyle = () => {
|
|
|
17353
17499
|
};
|
|
17354
17500
|
|
|
17355
17501
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
17356
|
-
import { styled as
|
|
17502
|
+
import { styled as styled91, css as css45 } from "styled-components";
|
|
17357
17503
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
17358
17504
|
|
|
17359
17505
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -17369,13 +17515,13 @@ var useSegmentedControlValue = () => {
|
|
|
17369
17515
|
};
|
|
17370
17516
|
|
|
17371
17517
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
17372
|
-
import { jsx as
|
|
17373
|
-
var selectedItemIndicatorStyles =
|
|
17518
|
+
import { jsx as jsx329 } from "react/jsx-runtime";
|
|
17519
|
+
var selectedItemIndicatorStyles = css45`
|
|
17374
17520
|
background-color: var(--wui-color-bg-fill-white);
|
|
17375
17521
|
border-radius: var(--wui-border-radius-rounded);
|
|
17376
17522
|
box-shadow: var(--wui-elevation-01);
|
|
17377
17523
|
`;
|
|
17378
|
-
var SelectedItemIndicatorDiv =
|
|
17524
|
+
var SelectedItemIndicatorDiv = styled91.div`
|
|
17379
17525
|
${selectedItemIndicatorStyles}
|
|
17380
17526
|
left: 0;
|
|
17381
17527
|
position: absolute;
|
|
@@ -17391,7 +17537,7 @@ var SelectedItemIndicator = () => {
|
|
|
17391
17537
|
if (!selectedValue || isUndefined5(selectedItemIndicatorStyle)) {
|
|
17392
17538
|
return null;
|
|
17393
17539
|
}
|
|
17394
|
-
return /* @__PURE__ */
|
|
17540
|
+
return /* @__PURE__ */ jsx329(
|
|
17395
17541
|
SelectedItemIndicatorDiv,
|
|
17396
17542
|
{
|
|
17397
17543
|
"data-wui-selected-item-indicator": true,
|
|
@@ -17401,8 +17547,8 @@ var SelectedItemIndicator = () => {
|
|
|
17401
17547
|
};
|
|
17402
17548
|
|
|
17403
17549
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17404
|
-
import { jsx as
|
|
17405
|
-
var segmentedControlStyles =
|
|
17550
|
+
import { jsx as jsx330, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
17551
|
+
var segmentedControlStyles = css46`
|
|
17406
17552
|
display: inline-flex;
|
|
17407
17553
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17408
17554
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17413,7 +17559,7 @@ var segmentedControlStyles = css45`
|
|
|
17413
17559
|
position: relative;
|
|
17414
17560
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
17415
17561
|
`;
|
|
17416
|
-
var StyledSegmentedControl =
|
|
17562
|
+
var StyledSegmentedControl = styled92(ToggleGroupRoot2)`
|
|
17417
17563
|
${segmentedControlStyles}
|
|
17418
17564
|
`;
|
|
17419
17565
|
var SegmentedControl = forwardRef32(
|
|
@@ -17428,7 +17574,7 @@ var SegmentedControl = forwardRef32(
|
|
|
17428
17574
|
if (isNil18(children)) {
|
|
17429
17575
|
return null;
|
|
17430
17576
|
}
|
|
17431
|
-
return /* @__PURE__ */
|
|
17577
|
+
return /* @__PURE__ */ jsx330(
|
|
17432
17578
|
StyledSegmentedControl,
|
|
17433
17579
|
{
|
|
17434
17580
|
ref,
|
|
@@ -17440,9 +17586,9 @@ var SegmentedControl = forwardRef32(
|
|
|
17440
17586
|
type: "single",
|
|
17441
17587
|
value: selectedValue,
|
|
17442
17588
|
...props,
|
|
17443
|
-
children: /* @__PURE__ */
|
|
17589
|
+
children: /* @__PURE__ */ jsx330(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs60(SelectedItemStyleProvider, { children: [
|
|
17444
17590
|
children,
|
|
17445
|
-
/* @__PURE__ */
|
|
17591
|
+
/* @__PURE__ */ jsx330(SelectedItemIndicator, {})
|
|
17446
17592
|
] }) })
|
|
17447
17593
|
}
|
|
17448
17594
|
);
|
|
@@ -17452,11 +17598,11 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
17452
17598
|
|
|
17453
17599
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
17454
17600
|
import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
|
|
17455
|
-
import { styled as
|
|
17601
|
+
import { styled as styled93, css as css47 } from "styled-components";
|
|
17456
17602
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
17457
17603
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
17458
17604
|
import { jsxs as jsxs61 } from "react/jsx-runtime";
|
|
17459
|
-
var segmentedControlItemStyles =
|
|
17605
|
+
var segmentedControlItemStyles = css47`
|
|
17460
17606
|
all: unset; /* ToggleGroupItem is a button element */
|
|
17461
17607
|
align-items: center;
|
|
17462
17608
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17524,7 +17670,7 @@ var segmentedControlItemStyles = css46`
|
|
|
17524
17670
|
}
|
|
17525
17671
|
}
|
|
17526
17672
|
`;
|
|
17527
|
-
var StyledSegmentedControlItem =
|
|
17673
|
+
var StyledSegmentedControlItem = styled93(ToggleGroupItem2)`
|
|
17528
17674
|
${segmentedControlItemStyles}
|
|
17529
17675
|
`;
|
|
17530
17676
|
var SegmentedControlItem = forwardRef33(
|
|
@@ -17597,9 +17743,9 @@ import {
|
|
|
17597
17743
|
ScrollDownButton
|
|
17598
17744
|
} from "@radix-ui/react-select";
|
|
17599
17745
|
import { forwardRef as forwardRef34 } from "react";
|
|
17600
|
-
import { styled as
|
|
17601
|
-
import { jsx as
|
|
17602
|
-
var StyledTrigger2 =
|
|
17746
|
+
import { styled as styled94, css as css48 } from "styled-components";
|
|
17747
|
+
import { jsx as jsx331, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17748
|
+
var StyledTrigger2 = styled94(Trigger3)`
|
|
17603
17749
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
17604
17750
|
${inputCss};
|
|
17605
17751
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -17645,7 +17791,7 @@ var StyledTrigger2 = styled93(Trigger3)`
|
|
|
17645
17791
|
color: var(--wui-input-placeholder);
|
|
17646
17792
|
}
|
|
17647
17793
|
`;
|
|
17648
|
-
var StyledContent3 =
|
|
17794
|
+
var StyledContent3 = styled94(Content3)`
|
|
17649
17795
|
--wui-select-content-border: var(--wui-color-border);
|
|
17650
17796
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
17651
17797
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -17667,15 +17813,15 @@ var StyledContent3 = styled93(Content3)`
|
|
|
17667
17813
|
margin: var(--wui-space-02) 0;
|
|
17668
17814
|
}
|
|
17669
17815
|
`;
|
|
17670
|
-
var scrollButtonStyles =
|
|
17816
|
+
var scrollButtonStyles = css48`
|
|
17671
17817
|
align-items: center;
|
|
17672
17818
|
display: flex;
|
|
17673
17819
|
justify-content: center;
|
|
17674
17820
|
`;
|
|
17675
|
-
var StyledScrollDownButton =
|
|
17821
|
+
var StyledScrollDownButton = styled94(ScrollDownButton)`
|
|
17676
17822
|
${scrollButtonStyles}
|
|
17677
17823
|
`;
|
|
17678
|
-
var StyledScrollUpButton =
|
|
17824
|
+
var StyledScrollUpButton = styled94(ScrollUpButton)`
|
|
17679
17825
|
${scrollButtonStyles}
|
|
17680
17826
|
`;
|
|
17681
17827
|
var Select = forwardRef34(
|
|
@@ -17707,8 +17853,8 @@ var Select = forwardRef34(
|
|
|
17707
17853
|
$fullWidth: responsiveFullWidth,
|
|
17708
17854
|
...props,
|
|
17709
17855
|
children: [
|
|
17710
|
-
/* @__PURE__ */
|
|
17711
|
-
/* @__PURE__ */
|
|
17856
|
+
/* @__PURE__ */ jsx331(Value, { placeholder }),
|
|
17857
|
+
/* @__PURE__ */ jsx331(
|
|
17712
17858
|
Icon,
|
|
17713
17859
|
{
|
|
17714
17860
|
size: "md",
|
|
@@ -17718,21 +17864,21 @@ var Select = forwardRef34(
|
|
|
17718
17864
|
]
|
|
17719
17865
|
}
|
|
17720
17866
|
),
|
|
17721
|
-
/* @__PURE__ */
|
|
17867
|
+
/* @__PURE__ */ jsx331(Portal2, { children: /* @__PURE__ */ jsxs62(
|
|
17722
17868
|
StyledContent3,
|
|
17723
17869
|
{
|
|
17724
17870
|
position: "popper",
|
|
17725
17871
|
sideOffset: 8,
|
|
17726
17872
|
children: [
|
|
17727
|
-
/* @__PURE__ */
|
|
17873
|
+
/* @__PURE__ */ jsx331(StyledScrollUpButton, { children: /* @__PURE__ */ jsx331(
|
|
17728
17874
|
Icon,
|
|
17729
17875
|
{
|
|
17730
17876
|
size: "sm",
|
|
17731
17877
|
type: "caret-up"
|
|
17732
17878
|
}
|
|
17733
17879
|
) }),
|
|
17734
|
-
/* @__PURE__ */
|
|
17735
|
-
/* @__PURE__ */
|
|
17880
|
+
/* @__PURE__ */ jsx331(Viewport, { children }),
|
|
17881
|
+
/* @__PURE__ */ jsx331(StyledScrollDownButton, { children: /* @__PURE__ */ jsx331(
|
|
17736
17882
|
Icon,
|
|
17737
17883
|
{
|
|
17738
17884
|
size: "sm",
|
|
@@ -17750,10 +17896,10 @@ Select.displayName = "Select_UI";
|
|
|
17750
17896
|
// src/components/Select/SelectOption.tsx
|
|
17751
17897
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
17752
17898
|
import { forwardRef as forwardRef35 } from "react";
|
|
17753
|
-
import { styled as
|
|
17899
|
+
import { styled as styled95 } from "styled-components";
|
|
17754
17900
|
import { isNotNil as isNotNil37 } from "@wistia/type-guards";
|
|
17755
|
-
import { jsx as
|
|
17756
|
-
var StyledItem =
|
|
17901
|
+
import { jsx as jsx332, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
17902
|
+
var StyledItem = styled95(Item)`
|
|
17757
17903
|
${getTypographicStyles("label3")}
|
|
17758
17904
|
align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
|
|
17759
17905
|
background-color: transparent;
|
|
@@ -17790,9 +17936,9 @@ var SelectOption = forwardRef35(
|
|
|
17790
17936
|
children: [
|
|
17791
17937
|
isNotNil37(selectedDisplayValue) ? /* @__PURE__ */ jsxs63("div", { children: [
|
|
17792
17938
|
children,
|
|
17793
|
-
/* @__PURE__ */
|
|
17794
|
-
] }) : /* @__PURE__ */
|
|
17795
|
-
/* @__PURE__ */
|
|
17939
|
+
/* @__PURE__ */ jsx332("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx332(ItemText, { children: selectedDisplayValue }) })
|
|
17940
|
+
] }) : /* @__PURE__ */ jsx332(ItemText, { children }),
|
|
17941
|
+
/* @__PURE__ */ jsx332(ItemIndicator, { children: /* @__PURE__ */ jsx332(
|
|
17796
17942
|
Icon,
|
|
17797
17943
|
{
|
|
17798
17944
|
size: "md",
|
|
@@ -17808,14 +17954,14 @@ SelectOption.displayName = "SelectOption_UI";
|
|
|
17808
17954
|
|
|
17809
17955
|
// src/components/Select/SelectOptionGroup.tsx
|
|
17810
17956
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
17811
|
-
import { styled as
|
|
17812
|
-
import { jsx as
|
|
17813
|
-
var StyledLabel4 =
|
|
17957
|
+
import { styled as styled96 } from "styled-components";
|
|
17958
|
+
import { jsx as jsx333, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
17959
|
+
var StyledLabel4 = styled96(Label3)`
|
|
17814
17960
|
padding: var(--wui-select-option-padding);
|
|
17815
17961
|
`;
|
|
17816
17962
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
17817
17963
|
return /* @__PURE__ */ jsxs64(Group, { ...props, children: [
|
|
17818
|
-
/* @__PURE__ */
|
|
17964
|
+
/* @__PURE__ */ jsx333(StyledLabel4, { children: /* @__PURE__ */ jsx333(
|
|
17819
17965
|
Heading,
|
|
17820
17966
|
{
|
|
17821
17967
|
renderAs: "span",
|
|
@@ -17834,10 +17980,10 @@ import {
|
|
|
17834
17980
|
Range as RadixSliderRange,
|
|
17835
17981
|
Thumb as RadixSliderThumb
|
|
17836
17982
|
} from "@radix-ui/react-slider";
|
|
17837
|
-
import { styled as
|
|
17983
|
+
import { styled as styled97 } from "styled-components";
|
|
17838
17984
|
import { isNonEmptyString as isNonEmptyString9 } from "@wistia/type-guards";
|
|
17839
|
-
import { jsx as
|
|
17840
|
-
var SliderContainer =
|
|
17985
|
+
import { jsx as jsx334, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
17986
|
+
var SliderContainer = styled97.div`
|
|
17841
17987
|
--wui-slider-track-color: var(--wui-gray-6);
|
|
17842
17988
|
--wui-slider-track-border-radius: var(--wui-border-radius-rounded);
|
|
17843
17989
|
--wui-slider-range-color: var(--wui-color-bg-fill);
|
|
@@ -17853,7 +17999,7 @@ var SliderContainer = styled96.div`
|
|
|
17853
17999
|
pointer-events: none;
|
|
17854
18000
|
}
|
|
17855
18001
|
`;
|
|
17856
|
-
var StyledSliderRoot =
|
|
18002
|
+
var StyledSliderRoot = styled97(RadixSliderRoot)`
|
|
17857
18003
|
position: relative;
|
|
17858
18004
|
display: flex;
|
|
17859
18005
|
align-items: center;
|
|
@@ -17861,20 +18007,20 @@ var StyledSliderRoot = styled96(RadixSliderRoot)`
|
|
|
17861
18007
|
touch-action: none;
|
|
17862
18008
|
width: 100%;
|
|
17863
18009
|
`;
|
|
17864
|
-
var StyledSliderTrack =
|
|
18010
|
+
var StyledSliderTrack = styled97(RadixSliderTrack)`
|
|
17865
18011
|
background-color: var(--wui-slider-track-color);
|
|
17866
18012
|
border-radius: var(--wui-slider-track-border-radius);
|
|
17867
18013
|
flex-grow: 1;
|
|
17868
18014
|
height: 6px;
|
|
17869
18015
|
position: relative;
|
|
17870
18016
|
`;
|
|
17871
|
-
var StyledSliderRange =
|
|
18017
|
+
var StyledSliderRange = styled97(RadixSliderRange)`
|
|
17872
18018
|
background-color: var(--wui-slider-range-color);
|
|
17873
18019
|
border-radius: var(--wui-slider-track-border-radius);
|
|
17874
18020
|
height: 100%;
|
|
17875
18021
|
position: absolute;
|
|
17876
18022
|
`;
|
|
17877
|
-
var StyledSliderThumb =
|
|
18023
|
+
var StyledSliderThumb = styled97(RadixSliderThumb)`
|
|
17878
18024
|
background-color: var(--wui-slider-thumb-color);
|
|
17879
18025
|
border-radius: var(--wui-border-radius-rounded);
|
|
17880
18026
|
cursor: grab;
|
|
@@ -17925,7 +18071,7 @@ var Slider = ({
|
|
|
17925
18071
|
onChange(newValue);
|
|
17926
18072
|
}
|
|
17927
18073
|
};
|
|
17928
|
-
return /* @__PURE__ */
|
|
18074
|
+
return /* @__PURE__ */ jsx334(
|
|
17929
18075
|
SliderContainer,
|
|
17930
18076
|
{
|
|
17931
18077
|
...otherProps,
|
|
@@ -17943,8 +18089,8 @@ var Slider = ({
|
|
|
17943
18089
|
step,
|
|
17944
18090
|
...value ? { value } : {},
|
|
17945
18091
|
children: [
|
|
17946
|
-
/* @__PURE__ */
|
|
17947
|
-
values.map((_, index) => /* @__PURE__ */
|
|
18092
|
+
/* @__PURE__ */ jsx334(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ jsx334(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
|
|
18093
|
+
values.map((_, index) => /* @__PURE__ */ jsx334(
|
|
17948
18094
|
StyledSliderThumb,
|
|
17949
18095
|
{
|
|
17950
18096
|
"data-testid": `${dataTestId}-thumb-${index}`
|
|
@@ -17960,25 +18106,25 @@ var Slider = ({
|
|
|
17960
18106
|
Slider.displayName = "Slider_UI";
|
|
17961
18107
|
|
|
17962
18108
|
// src/components/Table/Table.tsx
|
|
17963
|
-
import { styled as
|
|
17964
|
-
import { jsx as
|
|
17965
|
-
var StyledTable =
|
|
18109
|
+
import { styled as styled98, css as css49 } from "styled-components";
|
|
18110
|
+
import { jsx as jsx335 } from "react/jsx-runtime";
|
|
18111
|
+
var StyledTable = styled98.table`
|
|
17966
18112
|
width: 100%;
|
|
17967
18113
|
border-collapse: collapse;
|
|
17968
18114
|
|
|
17969
|
-
${({ $divided }) => $divided &&
|
|
18115
|
+
${({ $divided }) => $divided && css49`
|
|
17970
18116
|
tr {
|
|
17971
18117
|
border-bottom: 1px solid var(--wui-color-border);
|
|
17972
18118
|
}
|
|
17973
18119
|
`}
|
|
17974
18120
|
|
|
17975
|
-
${({ $striped }) => $striped &&
|
|
18121
|
+
${({ $striped }) => $striped && css49`
|
|
17976
18122
|
tbody tr:nth-child(even) {
|
|
17977
18123
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
17978
18124
|
}
|
|
17979
18125
|
`}
|
|
17980
18126
|
|
|
17981
|
-
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader &&
|
|
18127
|
+
${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css49`
|
|
17982
18128
|
thead {
|
|
17983
18129
|
${visuallyHiddenStyle}
|
|
17984
18130
|
}
|
|
@@ -17991,7 +18137,7 @@ var Table = ({
|
|
|
17991
18137
|
visuallyHiddenHeader = false,
|
|
17992
18138
|
...props
|
|
17993
18139
|
}) => {
|
|
17994
|
-
return /* @__PURE__ */
|
|
18140
|
+
return /* @__PURE__ */ jsx335(
|
|
17995
18141
|
StyledTable,
|
|
17996
18142
|
{
|
|
17997
18143
|
$divided: divided,
|
|
@@ -18004,37 +18150,37 @@ var Table = ({
|
|
|
18004
18150
|
};
|
|
18005
18151
|
|
|
18006
18152
|
// src/components/Table/TableBody.tsx
|
|
18007
|
-
import { styled as
|
|
18153
|
+
import { styled as styled99 } from "styled-components";
|
|
18008
18154
|
|
|
18009
18155
|
// src/components/Table/TableSectionContext.ts
|
|
18010
18156
|
import { createContext as createContext11 } from "react";
|
|
18011
18157
|
var TableSectionContext = createContext11(null);
|
|
18012
18158
|
|
|
18013
18159
|
// src/components/Table/TableBody.tsx
|
|
18014
|
-
import { jsx as
|
|
18015
|
-
var StyledTableBody =
|
|
18160
|
+
import { jsx as jsx336 } from "react/jsx-runtime";
|
|
18161
|
+
var StyledTableBody = styled99.tbody`
|
|
18016
18162
|
width: 100%;
|
|
18017
18163
|
`;
|
|
18018
18164
|
var TableBody = ({ children, ...props }) => {
|
|
18019
|
-
return /* @__PURE__ */
|
|
18165
|
+
return /* @__PURE__ */ jsx336(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx336(StyledTableBody, { ...props, children }) });
|
|
18020
18166
|
};
|
|
18021
18167
|
|
|
18022
18168
|
// src/components/Table/TableCell.tsx
|
|
18023
18169
|
import { useContext as useContext17 } from "react";
|
|
18024
|
-
import { styled as
|
|
18025
|
-
import { jsx as
|
|
18026
|
-
var sharedStyles =
|
|
18170
|
+
import { styled as styled100, css as css50 } from "styled-components";
|
|
18171
|
+
import { jsx as jsx337 } from "react/jsx-runtime";
|
|
18172
|
+
var sharedStyles = css50`
|
|
18027
18173
|
color: var(--wui-color-text);
|
|
18028
18174
|
padding: var(--wui-space-02);
|
|
18029
18175
|
text-align: left;
|
|
18030
18176
|
`;
|
|
18031
|
-
var StyledTh =
|
|
18177
|
+
var StyledTh = styled100.th`
|
|
18032
18178
|
${sharedStyles}
|
|
18033
18179
|
font-size: var(--wui-typography-body-4-size);
|
|
18034
18180
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
18035
18181
|
line-height: var(--wui-typography-body-4-line-height);
|
|
18036
18182
|
`;
|
|
18037
|
-
var StyledTd =
|
|
18183
|
+
var StyledTd = styled100.td`
|
|
18038
18184
|
${sharedStyles}
|
|
18039
18185
|
font-size: var(--wui-typography-body-2-size);
|
|
18040
18186
|
font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -18043,39 +18189,39 @@ var StyledTd = styled99.td`
|
|
|
18043
18189
|
var TableCell = ({ children, ...props }) => {
|
|
18044
18190
|
const section = useContext17(TableSectionContext);
|
|
18045
18191
|
if (section === "head") {
|
|
18046
|
-
return /* @__PURE__ */
|
|
18192
|
+
return /* @__PURE__ */ jsx337(StyledTh, { ...props, children });
|
|
18047
18193
|
}
|
|
18048
|
-
return /* @__PURE__ */
|
|
18194
|
+
return /* @__PURE__ */ jsx337(StyledTd, { ...props, children });
|
|
18049
18195
|
};
|
|
18050
18196
|
|
|
18051
18197
|
// src/components/Table/TableFoot.tsx
|
|
18052
|
-
import { styled as
|
|
18053
|
-
import { jsx as
|
|
18054
|
-
var StyledTableFoot =
|
|
18198
|
+
import { styled as styled101 } from "styled-components";
|
|
18199
|
+
import { jsx as jsx338 } from "react/jsx-runtime";
|
|
18200
|
+
var StyledTableFoot = styled101.tfoot`
|
|
18055
18201
|
width: 100%;
|
|
18056
18202
|
`;
|
|
18057
18203
|
var TableFoot = ({ children, ...props }) => {
|
|
18058
|
-
return /* @__PURE__ */
|
|
18204
|
+
return /* @__PURE__ */ jsx338(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx338(StyledTableFoot, { ...props, children }) });
|
|
18059
18205
|
};
|
|
18060
18206
|
|
|
18061
18207
|
// src/components/Table/TableHead.tsx
|
|
18062
|
-
import { styled as
|
|
18063
|
-
import { jsx as
|
|
18064
|
-
var StyledThead =
|
|
18208
|
+
import { styled as styled102 } from "styled-components";
|
|
18209
|
+
import { jsx as jsx339 } from "react/jsx-runtime";
|
|
18210
|
+
var StyledThead = styled102.thead`
|
|
18065
18211
|
width: 100%;
|
|
18066
18212
|
`;
|
|
18067
18213
|
var TableHead = ({ children, ...props }) => {
|
|
18068
|
-
return /* @__PURE__ */
|
|
18214
|
+
return /* @__PURE__ */ jsx339(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx339(StyledThead, { ...props, children }) });
|
|
18069
18215
|
};
|
|
18070
18216
|
|
|
18071
18217
|
// src/components/Table/TableRow.tsx
|
|
18072
|
-
import { styled as
|
|
18073
|
-
import { jsx as
|
|
18074
|
-
var StyledTableRow =
|
|
18218
|
+
import { styled as styled103 } from "styled-components";
|
|
18219
|
+
import { jsx as jsx340 } from "react/jsx-runtime";
|
|
18220
|
+
var StyledTableRow = styled103.tr`
|
|
18075
18221
|
width: 100%;
|
|
18076
18222
|
`;
|
|
18077
18223
|
var TableRow = ({ children, ...props }) => {
|
|
18078
|
-
return /* @__PURE__ */
|
|
18224
|
+
return /* @__PURE__ */ jsx340(StyledTableRow, { ...props, children });
|
|
18079
18225
|
};
|
|
18080
18226
|
|
|
18081
18227
|
// src/components/Tabs/Tabs.tsx
|
|
@@ -18096,7 +18242,7 @@ var useTabsValue = () => {
|
|
|
18096
18242
|
};
|
|
18097
18243
|
|
|
18098
18244
|
// src/components/Tabs/Tabs.tsx
|
|
18099
|
-
import { jsx as
|
|
18245
|
+
import { jsx as jsx341 } from "react/jsx-runtime";
|
|
18100
18246
|
var Tabs = ({
|
|
18101
18247
|
children,
|
|
18102
18248
|
value: valueProp,
|
|
@@ -18124,42 +18270,42 @@ var Tabs = ({
|
|
|
18124
18270
|
if (isNotNil38(defaultValue)) {
|
|
18125
18271
|
rootProps.defaultValue = defaultValue;
|
|
18126
18272
|
}
|
|
18127
|
-
return /* @__PURE__ */
|
|
18273
|
+
return /* @__PURE__ */ jsx341(RadixTabsRoot, { ...rootProps, children: /* @__PURE__ */ jsx341(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ jsx341(SelectedItemStyleProvider, { children }) }) });
|
|
18128
18274
|
};
|
|
18129
18275
|
Tabs.displayName = "Tabs_UI";
|
|
18130
18276
|
|
|
18131
18277
|
// src/components/Tabs/TabsContent.tsx
|
|
18132
18278
|
import { Content as RadixTabsContent } from "@radix-ui/react-tabs";
|
|
18133
|
-
import { jsx as
|
|
18279
|
+
import { jsx as jsx342 } from "react/jsx-runtime";
|
|
18134
18280
|
var TabsContent = ({ children, value }) => {
|
|
18135
|
-
return /* @__PURE__ */
|
|
18281
|
+
return /* @__PURE__ */ jsx342(RadixTabsContent, { value, children });
|
|
18136
18282
|
};
|
|
18137
18283
|
TabsContent.displayName = "TabsContent_UI";
|
|
18138
18284
|
|
|
18139
18285
|
// src/components/Tabs/TabsList.tsx
|
|
18140
18286
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
18141
|
-
import { styled as
|
|
18287
|
+
import { styled as styled105 } from "styled-components";
|
|
18142
18288
|
|
|
18143
18289
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
18144
18290
|
import { isUndefined as isUndefined6 } from "@wistia/type-guards";
|
|
18145
18291
|
|
|
18146
18292
|
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
18147
|
-
import { styled as
|
|
18148
|
-
var TabsSelectedItemIndicatorDiv =
|
|
18293
|
+
import { styled as styled104 } from "styled-components";
|
|
18294
|
+
var TabsSelectedItemIndicatorDiv = styled104(SelectedItemIndicatorDiv)`
|
|
18149
18295
|
:has(button[role='tab']:focus-visible) > & {
|
|
18150
18296
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
18151
18297
|
}
|
|
18152
18298
|
`;
|
|
18153
18299
|
|
|
18154
18300
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
18155
|
-
import { jsx as
|
|
18301
|
+
import { jsx as jsx343 } from "react/jsx-runtime";
|
|
18156
18302
|
var SelectedTabIndicator = () => {
|
|
18157
18303
|
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
18158
18304
|
const selectedValue = useTabsValue();
|
|
18159
18305
|
if (selectedValue == null || isUndefined6(selectedItemIndicatorStyle)) {
|
|
18160
18306
|
return null;
|
|
18161
18307
|
}
|
|
18162
|
-
return /* @__PURE__ */
|
|
18308
|
+
return /* @__PURE__ */ jsx343(
|
|
18163
18309
|
TabsSelectedItemIndicatorDiv,
|
|
18164
18310
|
{
|
|
18165
18311
|
"data-wui-selected-item-indicator": true,
|
|
@@ -18169,8 +18315,8 @@ var SelectedTabIndicator = () => {
|
|
|
18169
18315
|
};
|
|
18170
18316
|
|
|
18171
18317
|
// src/components/Tabs/TabsList.tsx
|
|
18172
|
-
import { jsx as
|
|
18173
|
-
var StyledRadixTabsList =
|
|
18318
|
+
import { jsx as jsx344, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
18319
|
+
var StyledRadixTabsList = styled105(RadixTabList)`
|
|
18174
18320
|
${segmentedControlStyles}
|
|
18175
18321
|
`;
|
|
18176
18322
|
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
@@ -18181,7 +18327,7 @@ var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
|
18181
18327
|
"aria-label": props["aria-label"],
|
|
18182
18328
|
children: [
|
|
18183
18329
|
children,
|
|
18184
|
-
/* @__PURE__ */
|
|
18330
|
+
/* @__PURE__ */ jsx344(SelectedTabIndicator, {})
|
|
18185
18331
|
]
|
|
18186
18332
|
}
|
|
18187
18333
|
);
|
|
@@ -18193,9 +18339,9 @@ import { forwardRef as forwardRef36, useEffect as useEffect22, useRef as useRef2
|
|
|
18193
18339
|
import { isNotNil as isNotNil39 } from "@wistia/type-guards";
|
|
18194
18340
|
|
|
18195
18341
|
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
18196
|
-
import { styled as
|
|
18342
|
+
import { styled as styled106 } from "styled-components";
|
|
18197
18343
|
import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
|
|
18198
|
-
var StyledRadixTabsTrigger =
|
|
18344
|
+
var StyledRadixTabsTrigger = styled106(RadixTabsTrigger)`
|
|
18199
18345
|
${segmentedControlItemStyles}
|
|
18200
18346
|
|
|
18201
18347
|
&:focus-visible {
|
|
@@ -18256,10 +18402,10 @@ var TabsTrigger = forwardRef36(
|
|
|
18256
18402
|
TabsTrigger.displayName = "TabsTrigger_UI";
|
|
18257
18403
|
|
|
18258
18404
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
18259
|
-
import { styled as
|
|
18405
|
+
import { styled as styled107 } from "styled-components";
|
|
18260
18406
|
import { isNotNil as isNotNil40 } from "@wistia/type-guards";
|
|
18261
|
-
import { jsx as
|
|
18262
|
-
var StyledThumbnailBadge =
|
|
18407
|
+
import { jsx as jsx345, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
18408
|
+
var StyledThumbnailBadge = styled107.div`
|
|
18263
18409
|
align-items: center;
|
|
18264
18410
|
background-color: rgb(0 0 0 / 50%);
|
|
18265
18411
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -18287,14 +18433,14 @@ var StyledThumbnailBadge = styled106.div`
|
|
|
18287
18433
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
18288
18434
|
return /* @__PURE__ */ jsxs68(StyledThumbnailBadge, { ...props, children: [
|
|
18289
18435
|
isNotNil40(icon) && icon,
|
|
18290
|
-
/* @__PURE__ */
|
|
18436
|
+
/* @__PURE__ */ jsx345("span", { children: label })
|
|
18291
18437
|
] });
|
|
18292
18438
|
};
|
|
18293
18439
|
ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
18294
18440
|
|
|
18295
18441
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
18296
18442
|
import { forwardRef as forwardRef37, useState as useState26, useRef as useRef24, useCallback as useCallback20, useMemo as useMemo17 } from "react";
|
|
18297
|
-
import { styled as
|
|
18443
|
+
import { styled as styled109 } from "styled-components";
|
|
18298
18444
|
import {
|
|
18299
18445
|
isNil as isNil19,
|
|
18300
18446
|
isNotNil as isNotNil43,
|
|
@@ -18306,9 +18452,9 @@ import {
|
|
|
18306
18452
|
|
|
18307
18453
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
18308
18454
|
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
18309
|
-
import { css as
|
|
18455
|
+
import { css as css51 } from "styled-components";
|
|
18310
18456
|
var gradients = {
|
|
18311
|
-
defaultDarkOne:
|
|
18457
|
+
defaultDarkOne: css51`
|
|
18312
18458
|
background-color: #222d66;
|
|
18313
18459
|
background-image:
|
|
18314
18460
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -18316,7 +18462,7 @@ var gradients = {
|
|
|
18316
18462
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
18317
18463
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
18318
18464
|
`,
|
|
18319
|
-
defaultDarkTwo:
|
|
18465
|
+
defaultDarkTwo: css51`
|
|
18320
18466
|
background-color: #222d66;
|
|
18321
18467
|
background-image:
|
|
18322
18468
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -18324,7 +18470,7 @@ var gradients = {
|
|
|
18324
18470
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
18325
18471
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18326
18472
|
`,
|
|
18327
|
-
defaultLightOne:
|
|
18473
|
+
defaultLightOne: css51`
|
|
18328
18474
|
background-color: #ccd5ff;
|
|
18329
18475
|
background-image:
|
|
18330
18476
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -18332,13 +18478,13 @@ var gradients = {
|
|
|
18332
18478
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
18333
18479
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
18334
18480
|
`,
|
|
18335
|
-
defaultLightTwo:
|
|
18481
|
+
defaultLightTwo: css51`
|
|
18336
18482
|
background-color: #ccd5ff;
|
|
18337
18483
|
background-image:
|
|
18338
18484
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
18339
18485
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
18340
18486
|
`,
|
|
18341
|
-
defaultMidOne:
|
|
18487
|
+
defaultMidOne: css51`
|
|
18342
18488
|
background-color: #6b84ff;
|
|
18343
18489
|
background-image:
|
|
18344
18490
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -18346,13 +18492,13 @@ var gradients = {
|
|
|
18346
18492
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
18347
18493
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
18348
18494
|
`,
|
|
18349
|
-
defaultMidTwo:
|
|
18495
|
+
defaultMidTwo: css51`
|
|
18350
18496
|
background-color: #6b84ff;
|
|
18351
18497
|
background-image:
|
|
18352
18498
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
18353
18499
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
18354
18500
|
`,
|
|
18355
|
-
green:
|
|
18501
|
+
green: css51`
|
|
18356
18502
|
background-color: #fafffa;
|
|
18357
18503
|
background-image:
|
|
18358
18504
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -18360,7 +18506,7 @@ var gradients = {
|
|
|
18360
18506
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
18361
18507
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
18362
18508
|
`,
|
|
18363
|
-
greenWithPop:
|
|
18509
|
+
greenWithPop: css51`
|
|
18364
18510
|
background-color: #fafffa;
|
|
18365
18511
|
background-image:
|
|
18366
18512
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -18368,7 +18514,7 @@ var gradients = {
|
|
|
18368
18514
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
18369
18515
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
18370
18516
|
`,
|
|
18371
|
-
pink:
|
|
18517
|
+
pink: css51`
|
|
18372
18518
|
background-color: #fffff0;
|
|
18373
18519
|
background-image:
|
|
18374
18520
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -18376,7 +18522,7 @@ var gradients = {
|
|
|
18376
18522
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
18377
18523
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
18378
18524
|
`,
|
|
18379
|
-
pinkWithPop:
|
|
18525
|
+
pinkWithPop: css51`
|
|
18380
18526
|
background-color: #fffff0;
|
|
18381
18527
|
background-image:
|
|
18382
18528
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -18384,7 +18530,7 @@ var gradients = {
|
|
|
18384
18530
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
18385
18531
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
18386
18532
|
`,
|
|
18387
|
-
playfulGradientOne:
|
|
18533
|
+
playfulGradientOne: css51`
|
|
18388
18534
|
background-color: #f7f8ff;
|
|
18389
18535
|
background-image:
|
|
18390
18536
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -18392,7 +18538,7 @@ var gradients = {
|
|
|
18392
18538
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
18393
18539
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
18394
18540
|
`,
|
|
18395
|
-
playfulGradientTwo:
|
|
18541
|
+
playfulGradientTwo: css51`
|
|
18396
18542
|
background-color: #f7f8ff;
|
|
18397
18543
|
background-image:
|
|
18398
18544
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -18400,13 +18546,13 @@ var gradients = {
|
|
|
18400
18546
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
18401
18547
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18402
18548
|
`,
|
|
18403
|
-
purple:
|
|
18549
|
+
purple: css51`
|
|
18404
18550
|
background-color: #f2caff;
|
|
18405
18551
|
background-image:
|
|
18406
18552
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
18407
18553
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
18408
18554
|
`,
|
|
18409
|
-
purpleWithPop:
|
|
18555
|
+
purpleWithPop: css51`
|
|
18410
18556
|
background-color: #f2caff;
|
|
18411
18557
|
background-image:
|
|
18412
18558
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -18414,7 +18560,7 @@ var gradients = {
|
|
|
18414
18560
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
18415
18561
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
18416
18562
|
`,
|
|
18417
|
-
yellow:
|
|
18563
|
+
yellow: css51`
|
|
18418
18564
|
background-color: #fffff0;
|
|
18419
18565
|
background-image:
|
|
18420
18566
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18422,7 +18568,7 @@ var gradients = {
|
|
|
18422
18568
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
18423
18569
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
18424
18570
|
`,
|
|
18425
|
-
yellowWithPop:
|
|
18571
|
+
yellowWithPop: css51`
|
|
18426
18572
|
background-color: #fffff0;
|
|
18427
18573
|
background-image:
|
|
18428
18574
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -18437,10 +18583,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
18437
18583
|
};
|
|
18438
18584
|
|
|
18439
18585
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
18440
|
-
import { styled as
|
|
18586
|
+
import { styled as styled108 } from "styled-components";
|
|
18441
18587
|
import { isNotNil as isNotNil42 } from "@wistia/type-guards";
|
|
18442
|
-
import { jsx as
|
|
18443
|
-
var ScrubLine =
|
|
18588
|
+
import { jsx as jsx346, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
18589
|
+
var ScrubLine = styled108.div`
|
|
18444
18590
|
position: absolute;
|
|
18445
18591
|
top: 0;
|
|
18446
18592
|
height: 100%;
|
|
@@ -18557,8 +18703,8 @@ var ThumbnailStoryboardViewer = ({
|
|
|
18557
18703
|
...props,
|
|
18558
18704
|
style: viewerStyles,
|
|
18559
18705
|
children: [
|
|
18560
|
-
/* @__PURE__ */
|
|
18561
|
-
showScrubLine ? /* @__PURE__ */
|
|
18706
|
+
/* @__PURE__ */ jsx346("div", { style: storyboardStyles }),
|
|
18707
|
+
showScrubLine ? /* @__PURE__ */ jsx346(
|
|
18562
18708
|
ScrubLine,
|
|
18563
18709
|
{
|
|
18564
18710
|
style: {
|
|
@@ -18572,7 +18718,7 @@ var ThumbnailStoryboardViewer = ({
|
|
|
18572
18718
|
};
|
|
18573
18719
|
|
|
18574
18720
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
18575
|
-
import { jsx as
|
|
18721
|
+
import { jsx as jsx347, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
18576
18722
|
var WIDE_ASPECT_RATIO = 16 / 9;
|
|
18577
18723
|
var SQUARE_ASPECT_RATIO = 1;
|
|
18578
18724
|
var getAspectRatioValue = (aspectRatio) => {
|
|
@@ -18581,19 +18727,19 @@ var getAspectRatioValue = (aspectRatio) => {
|
|
|
18581
18727
|
}
|
|
18582
18728
|
return WIDE_ASPECT_RATIO;
|
|
18583
18729
|
};
|
|
18584
|
-
var WideThumbnailImage =
|
|
18730
|
+
var WideThumbnailImage = styled109.img`
|
|
18585
18731
|
height: 100%;
|
|
18586
18732
|
object-fit: cover;
|
|
18587
18733
|
width: 100%;
|
|
18588
18734
|
`;
|
|
18589
|
-
var SquareThumbnailImage =
|
|
18735
|
+
var SquareThumbnailImage = styled109.img`
|
|
18590
18736
|
backdrop-filter: blur(8px);
|
|
18591
18737
|
object-fit: contain;
|
|
18592
18738
|
width: 100%;
|
|
18593
18739
|
`;
|
|
18594
18740
|
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
18595
18741
|
if (thumbnailImageType === "wide") {
|
|
18596
|
-
return /* @__PURE__ */
|
|
18742
|
+
return /* @__PURE__ */ jsx347(
|
|
18597
18743
|
WideThumbnailImage,
|
|
18598
18744
|
{
|
|
18599
18745
|
alt: "",
|
|
@@ -18602,7 +18748,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
18602
18748
|
}
|
|
18603
18749
|
);
|
|
18604
18750
|
}
|
|
18605
|
-
return /* @__PURE__ */
|
|
18751
|
+
return /* @__PURE__ */ jsx347(
|
|
18606
18752
|
SquareThumbnailImage,
|
|
18607
18753
|
{
|
|
18608
18754
|
alt: "",
|
|
@@ -18611,7 +18757,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
18611
18757
|
}
|
|
18612
18758
|
);
|
|
18613
18759
|
};
|
|
18614
|
-
var StyledThumbnailContainer =
|
|
18760
|
+
var StyledThumbnailContainer = styled109.div`
|
|
18615
18761
|
container-type: size;
|
|
18616
18762
|
aspect-ratio: ${({ $aspectRatio }) => getAspectRatioValue($aspectRatio)};
|
|
18617
18763
|
width: ${({ $width }) => $width};
|
|
@@ -18619,7 +18765,7 @@ var StyledThumbnailContainer = styled108.div`
|
|
|
18619
18765
|
overflow: hidden;
|
|
18620
18766
|
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
18621
18767
|
`;
|
|
18622
|
-
var StyledThumbnail =
|
|
18768
|
+
var StyledThumbnail = styled109.div`
|
|
18623
18769
|
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
18624
18770
|
|
|
18625
18771
|
background-image: ${({ $backgroundUrl }) => isNotNil43($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
@@ -18654,7 +18800,7 @@ var StoryboardRenderer = ({
|
|
|
18654
18800
|
const { url, width: sbWidth, height: sbHeight, frameHeight, frameWidth, frameCount } = storyboard;
|
|
18655
18801
|
const targetWidth = isString4(width) ? parseInt(width, 10) : Number(width);
|
|
18656
18802
|
const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
|
|
18657
|
-
return /* @__PURE__ */
|
|
18803
|
+
return /* @__PURE__ */ jsx347(
|
|
18658
18804
|
ThumbnailStoryboardViewer,
|
|
18659
18805
|
{
|
|
18660
18806
|
cursorPosition: effectiveCursorPosition,
|
|
@@ -18744,7 +18890,7 @@ var Thumbnail = forwardRef37(
|
|
|
18744
18890
|
}, [isScrubbable, isMouseOver, isStoryboardReady, storyboard, height]);
|
|
18745
18891
|
let thumbnailContent = null;
|
|
18746
18892
|
if (storyboard && shouldRenderStoryboard) {
|
|
18747
|
-
thumbnailContent = /* @__PURE__ */
|
|
18893
|
+
thumbnailContent = /* @__PURE__ */ jsx347(
|
|
18748
18894
|
StoryboardRenderer,
|
|
18749
18895
|
{
|
|
18750
18896
|
aspectRatio,
|
|
@@ -18756,7 +18902,7 @@ var Thumbnail = forwardRef37(
|
|
|
18756
18902
|
}
|
|
18757
18903
|
);
|
|
18758
18904
|
} else if (hasValidThumbnailUrl(thumbnailUrl)) {
|
|
18759
|
-
thumbnailContent = /* @__PURE__ */
|
|
18905
|
+
thumbnailContent = /* @__PURE__ */ jsx347(
|
|
18760
18906
|
ThumbnailImage,
|
|
18761
18907
|
{
|
|
18762
18908
|
thumbnailImageType,
|
|
@@ -18766,7 +18912,7 @@ var Thumbnail = forwardRef37(
|
|
|
18766
18912
|
} else {
|
|
18767
18913
|
thumbnailContent = null;
|
|
18768
18914
|
}
|
|
18769
|
-
return /* @__PURE__ */
|
|
18915
|
+
return /* @__PURE__ */ jsx347(
|
|
18770
18916
|
StyledThumbnailContainer,
|
|
18771
18917
|
{
|
|
18772
18918
|
ref,
|
|
@@ -18799,16 +18945,16 @@ Thumbnail.displayName = "Thumbnail_UI";
|
|
|
18799
18945
|
|
|
18800
18946
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
18801
18947
|
import { cloneElement as cloneElement9, Children as Children11 } from "react";
|
|
18802
|
-
import { styled as
|
|
18948
|
+
import { styled as styled110 } from "styled-components";
|
|
18803
18949
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
18804
|
-
import { jsx as
|
|
18805
|
-
var ThumbnailCollageContainer =
|
|
18950
|
+
import { jsx as jsx348 } from "react/jsx-runtime";
|
|
18951
|
+
var ThumbnailCollageContainer = styled110.div`
|
|
18806
18952
|
container-type: size;
|
|
18807
18953
|
width: 100%;
|
|
18808
18954
|
aspect-ratio: 16 / 9;
|
|
18809
18955
|
display: flex;
|
|
18810
18956
|
`;
|
|
18811
|
-
var StyledThumbnailCollage =
|
|
18957
|
+
var StyledThumbnailCollage = styled110.div`
|
|
18812
18958
|
display: grid;
|
|
18813
18959
|
gap: var(--wui-space-01);
|
|
18814
18960
|
width: 100%;
|
|
@@ -18866,7 +19012,7 @@ var ThumbnailCollage = ({
|
|
|
18866
19012
|
});
|
|
18867
19013
|
}) : [
|
|
18868
19014
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
18869
|
-
/* @__PURE__ */
|
|
19015
|
+
/* @__PURE__ */ jsx348(
|
|
18870
19016
|
Thumbnail,
|
|
18871
19017
|
{
|
|
18872
19018
|
gradientBackground,
|
|
@@ -18875,7 +19021,7 @@ var ThumbnailCollage = ({
|
|
|
18875
19021
|
"fallback"
|
|
18876
19022
|
)
|
|
18877
19023
|
];
|
|
18878
|
-
return /* @__PURE__ */
|
|
19024
|
+
return /* @__PURE__ */ jsx348(ThumbnailCollageContainer, { children: /* @__PURE__ */ jsx348(
|
|
18879
19025
|
StyledThumbnailCollage,
|
|
18880
19026
|
{
|
|
18881
19027
|
$gradientBackground: gradientBackground,
|
|
@@ -18887,26 +19033,26 @@ var ThumbnailCollage = ({
|
|
|
18887
19033
|
};
|
|
18888
19034
|
|
|
18889
19035
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18890
|
-
import { styled as
|
|
19036
|
+
import { styled as styled111, css as css52 } from "styled-components";
|
|
18891
19037
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18892
|
-
import { jsx as
|
|
19038
|
+
import { jsx as jsx349, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18893
19039
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
18894
19040
|
if (iconOnly) {
|
|
18895
|
-
return /* @__PURE__ */
|
|
19041
|
+
return /* @__PURE__ */ jsx349(
|
|
18896
19042
|
"g",
|
|
18897
19043
|
{
|
|
18898
19044
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
18899
19045
|
fill: brandmarkColor,
|
|
18900
|
-
children: /* @__PURE__ */
|
|
19046
|
+
children: /* @__PURE__ */ jsx349("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" })
|
|
18901
19047
|
}
|
|
18902
19048
|
);
|
|
18903
19049
|
}
|
|
18904
|
-
return /* @__PURE__ */
|
|
19050
|
+
return /* @__PURE__ */ jsx349(
|
|
18905
19051
|
"g",
|
|
18906
19052
|
{
|
|
18907
19053
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
18908
19054
|
fill: brandmarkColor,
|
|
18909
|
-
children: /* @__PURE__ */
|
|
19055
|
+
children: /* @__PURE__ */ jsx349("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" })
|
|
18910
19056
|
}
|
|
18911
19057
|
);
|
|
18912
19058
|
};
|
|
@@ -18914,12 +19060,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
18914
19060
|
if (iconOnly) {
|
|
18915
19061
|
return null;
|
|
18916
19062
|
}
|
|
18917
|
-
return /* @__PURE__ */
|
|
19063
|
+
return /* @__PURE__ */ jsx349(
|
|
18918
19064
|
"g",
|
|
18919
19065
|
{
|
|
18920
19066
|
"data-testid": "ui-wistia-logo-logotype",
|
|
18921
19067
|
fill: logotypeColor,
|
|
18922
|
-
children: /* @__PURE__ */
|
|
19068
|
+
children: /* @__PURE__ */ jsx349("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" })
|
|
18923
19069
|
}
|
|
18924
19070
|
);
|
|
18925
19071
|
};
|
|
@@ -18929,7 +19075,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
18929
19075
|
}
|
|
18930
19076
|
return "0 0 144 31.47";
|
|
18931
19077
|
};
|
|
18932
|
-
var WistiaLogoComponent =
|
|
19078
|
+
var WistiaLogoComponent = styled111.svg`
|
|
18933
19079
|
height: ${({ height }) => `${height}px`};
|
|
18934
19080
|
|
|
18935
19081
|
/* ensure it will always fit on mobile */
|
|
@@ -18945,12 +19091,12 @@ var WistiaLogoComponent = styled110.svg`
|
|
|
18945
19091
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
18946
19092
|
if ($opticallyCentered) {
|
|
18947
19093
|
if ($iconOnly) {
|
|
18948
|
-
return
|
|
19094
|
+
return css52`
|
|
18949
19095
|
aspect-ratio: 1;
|
|
18950
19096
|
padding: 11.85% 3.12% 13.91%;
|
|
18951
19097
|
`;
|
|
18952
19098
|
}
|
|
18953
|
-
return
|
|
19099
|
+
return css52`
|
|
18954
19100
|
aspect-ratio: 127 / 32;
|
|
18955
19101
|
`;
|
|
18956
19102
|
}
|
|
@@ -19000,23 +19146,23 @@ var WistiaLogo = ({
|
|
|
19000
19146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19001
19147
|
...props,
|
|
19002
19148
|
children: [
|
|
19003
|
-
/* @__PURE__ */
|
|
19004
|
-
isNotNil44(description) ? /* @__PURE__ */
|
|
19149
|
+
/* @__PURE__ */ jsx349("title", { children: title }),
|
|
19150
|
+
isNotNil44(description) ? /* @__PURE__ */ jsx349("desc", { children: description }) : null,
|
|
19005
19151
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
19006
19152
|
renderLogotype(logotypeColor, iconOnly)
|
|
19007
19153
|
]
|
|
19008
19154
|
}
|
|
19009
19155
|
);
|
|
19010
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
19156
|
+
return href !== void 0 ? /* @__PURE__ */ jsx349("a", { href, children: Logo }) : Logo;
|
|
19011
19157
|
};
|
|
19012
19158
|
WistiaLogo.displayName = "WistiaLogo_UI";
|
|
19013
19159
|
|
|
19014
19160
|
// src/components/SplitButton/SplitButton.tsx
|
|
19015
|
-
import { styled as
|
|
19161
|
+
import { styled as styled112 } from "styled-components";
|
|
19016
19162
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
19017
19163
|
import { cloneElement as cloneElement10 } from "react";
|
|
19018
|
-
import { jsx as
|
|
19019
|
-
var StyledSplitButton =
|
|
19164
|
+
import { jsx as jsx350, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
19165
|
+
var StyledSplitButton = styled112.span`
|
|
19020
19166
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
19021
19167
|
white-space: nowrap;
|
|
19022
19168
|
|
|
@@ -19037,7 +19183,7 @@ var StyledSplitButton = styled111.span`
|
|
|
19037
19183
|
var SplitButton = ({
|
|
19038
19184
|
children,
|
|
19039
19185
|
menuLabel = "Select an option",
|
|
19040
|
-
menuIcon = /* @__PURE__ */
|
|
19186
|
+
menuIcon = /* @__PURE__ */ jsx350(Icon, { type: "caret-down" }),
|
|
19041
19187
|
menuItems,
|
|
19042
19188
|
disabled = false,
|
|
19043
19189
|
colorScheme = "inherit",
|
|
@@ -19049,7 +19195,7 @@ var SplitButton = ({
|
|
|
19049
19195
|
...props
|
|
19050
19196
|
}) => {
|
|
19051
19197
|
return /* @__PURE__ */ jsxs72(StyledSplitButton, { $colorScheme: colorScheme, children: [
|
|
19052
|
-
/* @__PURE__ */
|
|
19198
|
+
/* @__PURE__ */ jsx350(
|
|
19053
19199
|
Button,
|
|
19054
19200
|
{
|
|
19055
19201
|
disabled,
|
|
@@ -19060,12 +19206,12 @@ var SplitButton = ({
|
|
|
19060
19206
|
children
|
|
19061
19207
|
}
|
|
19062
19208
|
),
|
|
19063
|
-
isNotNil45(menuItems) && /* @__PURE__ */
|
|
19209
|
+
isNotNil45(menuItems) && /* @__PURE__ */ jsx350(
|
|
19064
19210
|
Menu,
|
|
19065
19211
|
{
|
|
19066
19212
|
...menuProps,
|
|
19067
19213
|
disabled,
|
|
19068
|
-
trigger: /* @__PURE__ */
|
|
19214
|
+
trigger: /* @__PURE__ */ jsx350(
|
|
19069
19215
|
IconButton,
|
|
19070
19216
|
{
|
|
19071
19217
|
disabled,
|
|
@@ -19085,16 +19231,16 @@ var SplitButton = ({
|
|
|
19085
19231
|
SplitButton.displayName = "SplitButton_UI";
|
|
19086
19232
|
|
|
19087
19233
|
// src/components/CustomizableThemeWrapper/CustomizableThemeWrapper.tsx
|
|
19088
|
-
import { styled as
|
|
19089
|
-
import { jsx as
|
|
19090
|
-
var StyledCustomizableThemeWrapper =
|
|
19234
|
+
import { styled as styled113 } from "styled-components";
|
|
19235
|
+
import { jsx as jsx351 } from "react/jsx-runtime";
|
|
19236
|
+
var StyledCustomizableThemeWrapper = styled113.div(
|
|
19091
19237
|
(props) => props.$overrides
|
|
19092
19238
|
);
|
|
19093
19239
|
var CustomizableThemeWrapper = ({
|
|
19094
19240
|
children,
|
|
19095
19241
|
overrides,
|
|
19096
19242
|
...props
|
|
19097
|
-
}) => /* @__PURE__ */
|
|
19243
|
+
}) => /* @__PURE__ */ jsx351(
|
|
19098
19244
|
StyledCustomizableThemeWrapper,
|
|
19099
19245
|
{
|
|
19100
19246
|
...props,
|
|
@@ -19186,6 +19332,7 @@ export {
|
|
|
19186
19332
|
List,
|
|
19187
19333
|
ListItem,
|
|
19188
19334
|
Mark,
|
|
19335
|
+
Markdown,
|
|
19189
19336
|
Menu,
|
|
19190
19337
|
MenuItem,
|
|
19191
19338
|
MenuItemDescription,
|