@wistia/ui 0.14.25 → 0.14.26-beta.29ade2e4.44a552b
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.cjs +260 -266
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -27
- package/dist/index.d.ts +8 -27
- package/dist/index.mjs +206 -213
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.14.
|
|
3
|
+
* @license @wistia/ui v0.14.26-beta.29ade2e4.44a552b
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7589,21 +7589,24 @@ var Image = ({
|
|
|
7589
7589
|
onLoad,
|
|
7590
7590
|
onError,
|
|
7591
7591
|
...props
|
|
7592
|
-
}) =>
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7592
|
+
}) => {
|
|
7593
|
+
return /* @__PURE__ */ jsx200(
|
|
7594
|
+
StyledImage,
|
|
7595
|
+
{
|
|
7596
|
+
$borderRadius: borderRadius,
|
|
7597
|
+
$fillContainer: fillContainer,
|
|
7598
|
+
$objFit: objFit,
|
|
7599
|
+
$objPosition: objPosition,
|
|
7600
|
+
alt,
|
|
7601
|
+
"data-wui-image": true,
|
|
7602
|
+
loading,
|
|
7603
|
+
onError,
|
|
7604
|
+
onLoad,
|
|
7605
|
+
src,
|
|
7606
|
+
...props
|
|
7607
|
+
}
|
|
7608
|
+
);
|
|
7609
|
+
};
|
|
7607
7610
|
Image.displayName = "Image_UI";
|
|
7608
7611
|
|
|
7609
7612
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
@@ -12068,7 +12071,7 @@ Tag.displayName = "Tag_UI";
|
|
|
12068
12071
|
|
|
12069
12072
|
// src/components/Combobox/Combobox.tsx
|
|
12070
12073
|
import { jsx as jsx254, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12071
|
-
var
|
|
12074
|
+
var ComboboxWrapper = styled50.div`
|
|
12072
12075
|
${inputCss};
|
|
12073
12076
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
12074
12077
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -12132,7 +12135,7 @@ var ComboboxInput = styled50(Ariakit.Combobox)`
|
|
|
12132
12135
|
outline-width: 2px;
|
|
12133
12136
|
}
|
|
12134
12137
|
`;
|
|
12135
|
-
var
|
|
12138
|
+
var ComboboxPopover2 = styled50(Ariakit.ComboboxPopover)`
|
|
12136
12139
|
--wui-combobox-content-border: var(--wui-color-border);
|
|
12137
12140
|
--wui-combobox-content-bg: var(--wui-color-bg-surface);
|
|
12138
12141
|
--wui-combobox-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -12169,7 +12172,9 @@ var ComboboxItem2 = styled50(Ariakit.ComboboxItem)`
|
|
|
12169
12172
|
cursor: pointer;
|
|
12170
12173
|
|
|
12171
12174
|
&:hover,
|
|
12172
|
-
&:focus-visible
|
|
12175
|
+
&:focus-visible,
|
|
12176
|
+
&[data-focus-visible='true'],
|
|
12177
|
+
&[data-active-item='true'] {
|
|
12173
12178
|
background-color: var(--wui-combobox-option-bg-hover);
|
|
12174
12179
|
outline: none;
|
|
12175
12180
|
}
|
|
@@ -12252,7 +12257,7 @@ var Combobox2 = ({
|
|
|
12252
12257
|
},
|
|
12253
12258
|
children: [
|
|
12254
12259
|
/* @__PURE__ */ jsxs34(
|
|
12255
|
-
|
|
12260
|
+
ComboboxWrapper,
|
|
12256
12261
|
{
|
|
12257
12262
|
ref: comboboxWrapperRef,
|
|
12258
12263
|
$fullWidth: fullWidth,
|
|
@@ -12272,7 +12277,7 @@ var Combobox2 = ({
|
|
|
12272
12277
|
}
|
|
12273
12278
|
),
|
|
12274
12279
|
/* @__PURE__ */ jsxs34(
|
|
12275
|
-
|
|
12280
|
+
ComboboxPopover2,
|
|
12276
12281
|
{
|
|
12277
12282
|
"aria-busy": isPending,
|
|
12278
12283
|
gutter: 8,
|
|
@@ -12285,7 +12290,6 @@ var Combobox2 = ({
|
|
|
12285
12290
|
ComboboxItem2,
|
|
12286
12291
|
{
|
|
12287
12292
|
className: "combobox-item",
|
|
12288
|
-
focusOnHover: true,
|
|
12289
12293
|
value: match,
|
|
12290
12294
|
children: [
|
|
12291
12295
|
/* @__PURE__ */ jsx254(
|
|
@@ -14133,81 +14137,12 @@ FilterMenu.displayName = "FilterMenu_UI";
|
|
|
14133
14137
|
|
|
14134
14138
|
// src/components/Modal/Modal.tsx
|
|
14135
14139
|
import { forwardRef as forwardRef24 } from "react";
|
|
14136
|
-
import styled72 from "styled-components";
|
|
14137
14140
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
14138
14141
|
import { isNotNil as isNotNil29 } from "@wistia/type-guards";
|
|
14139
14142
|
|
|
14140
|
-
// src/components/Modal/ModalHeader.tsx
|
|
14141
|
-
import styled69 from "styled-components";
|
|
14142
|
-
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
14143
|
-
|
|
14144
|
-
// src/components/Modal/ModalCloseButton.tsx
|
|
14145
|
-
import styled68 from "styled-components";
|
|
14146
|
-
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
14147
|
-
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
14148
|
-
var CloseButton = styled68(DialogClose)`
|
|
14149
|
-
align-self: start;
|
|
14150
|
-
`;
|
|
14151
|
-
var ModalCloseButton = () => {
|
|
14152
|
-
return /* @__PURE__ */ jsx279(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx279(
|
|
14153
|
-
IconButton,
|
|
14154
|
-
{
|
|
14155
|
-
label: "Dismiss modal",
|
|
14156
|
-
size: "sm",
|
|
14157
|
-
variant: "ghost",
|
|
14158
|
-
children: /* @__PURE__ */ jsx279(Icon, { type: "close" })
|
|
14159
|
-
}
|
|
14160
|
-
) });
|
|
14161
|
-
};
|
|
14162
|
-
|
|
14163
|
-
// src/components/Modal/ModalHeader.tsx
|
|
14164
|
-
import { jsx as jsx280, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
14165
|
-
var Header = styled69.header`
|
|
14166
|
-
display: flex;
|
|
14167
|
-
order: 1;
|
|
14168
|
-
gap: var(--wui-space-01);
|
|
14169
|
-
justify-content: ${({ $hideTitle }) => $hideTitle ? "flex-end" : "space-between"}; /* ensure ModalCloseButton is right-aligned */
|
|
14170
|
-
|
|
14171
|
-
/* DialogTitle creates an h2 element which inherits some margin */
|
|
14172
|
-
h2 {
|
|
14173
|
-
margin: 0 0 var(--wui-space-03);
|
|
14174
|
-
padding-right: ${({ $hideCloseButon }) => $hideCloseButon ? "0" : "var(--wui-space-03)"};
|
|
14175
|
-
}
|
|
14176
|
-
|
|
14177
|
-
button {
|
|
14178
|
-
position: absolute;
|
|
14179
|
-
right: var(--wui-space-03);
|
|
14180
|
-
top: var(--wui-space-03);
|
|
14181
|
-
}
|
|
14182
|
-
`;
|
|
14183
|
-
var Title = styled69(DialogTitle)`
|
|
14184
|
-
font-family: var(--wui-typography-heading-2-family);
|
|
14185
|
-
line-height: var(--wui-typography-heading-2-line-height);
|
|
14186
|
-
font-size: var(--wui-typography-heading-2-size);
|
|
14187
|
-
font-weight: var(--wui-typography-heading-2-weight);
|
|
14188
|
-
`;
|
|
14189
|
-
var ModalHeader = ({
|
|
14190
|
-
title,
|
|
14191
|
-
hideTitle,
|
|
14192
|
-
hideCloseButton
|
|
14193
|
-
}) => {
|
|
14194
|
-
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx280(ScreenReaderOnly, { children: /* @__PURE__ */ jsx280(Title, { children: title }) }) : /* @__PURE__ */ jsx280(Title, { children: title });
|
|
14195
|
-
return /* @__PURE__ */ jsxs47(
|
|
14196
|
-
Header,
|
|
14197
|
-
{
|
|
14198
|
-
$hideCloseButon: hideCloseButton,
|
|
14199
|
-
$hideTitle: hideTitle,
|
|
14200
|
-
children: [
|
|
14201
|
-
TitleComponent,
|
|
14202
|
-
hideCloseButton ? null : /* @__PURE__ */ jsx280(ModalCloseButton, {})
|
|
14203
|
-
]
|
|
14204
|
-
}
|
|
14205
|
-
);
|
|
14206
|
-
};
|
|
14207
|
-
|
|
14208
14143
|
// src/components/Modal/ModalContent.tsx
|
|
14209
14144
|
import { forwardRef as forwardRef23 } from "react";
|
|
14210
|
-
import
|
|
14145
|
+
import styled68, { css as css35, keyframes as keyframes4 } from "styled-components";
|
|
14211
14146
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
14212
14147
|
|
|
14213
14148
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -14230,7 +14165,7 @@ var useFocusRestore = () => {
|
|
|
14230
14165
|
};
|
|
14231
14166
|
|
|
14232
14167
|
// src/components/Modal/ModalContent.tsx
|
|
14233
|
-
import { jsx as
|
|
14168
|
+
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
14234
14169
|
var modalEnter = keyframes4`
|
|
14235
14170
|
from {
|
|
14236
14171
|
opacity: 0;
|
|
@@ -14328,7 +14263,7 @@ var positionStyleMap = {
|
|
|
14328
14263
|
"fixed-top": fixedTopModalStyles,
|
|
14329
14264
|
"right-side-panel": rightSidePanelModalStyles
|
|
14330
14265
|
};
|
|
14331
|
-
var StyledModalContent =
|
|
14266
|
+
var StyledModalContent = styled68(DialogContent)`
|
|
14332
14267
|
position: fixed;
|
|
14333
14268
|
display: flex;
|
|
14334
14269
|
flex-direction: column;
|
|
@@ -14338,7 +14273,6 @@ var StyledModalContent = styled70(DialogContent)`
|
|
|
14338
14273
|
height: 100vh;
|
|
14339
14274
|
z-index: var(--wui-zindex-modal);
|
|
14340
14275
|
box-sizing: border-box;
|
|
14341
|
-
padding: var(--wui-space-05);
|
|
14342
14276
|
background-color: var(--wui-color-bg-app);
|
|
14343
14277
|
overflow: auto;
|
|
14344
14278
|
|
|
@@ -14359,7 +14293,7 @@ var StyledModalContent = styled70(DialogContent)`
|
|
|
14359
14293
|
var ModalContent = forwardRef23(
|
|
14360
14294
|
({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
|
|
14361
14295
|
useFocusRestore();
|
|
14362
|
-
return /* @__PURE__ */
|
|
14296
|
+
return /* @__PURE__ */ jsx279(
|
|
14363
14297
|
StyledModalContent,
|
|
14364
14298
|
{
|
|
14365
14299
|
ref,
|
|
@@ -14375,7 +14309,7 @@ var ModalContent = forwardRef23(
|
|
|
14375
14309
|
|
|
14376
14310
|
// src/components/Modal/ModalOverlay.tsx
|
|
14377
14311
|
import { DialogOverlay } from "@radix-ui/react-dialog";
|
|
14378
|
-
import
|
|
14312
|
+
import styled69, { keyframes as keyframes5 } from "styled-components";
|
|
14379
14313
|
var backdropShow = keyframes5`
|
|
14380
14314
|
from {
|
|
14381
14315
|
opacity: 0;
|
|
@@ -14394,7 +14328,7 @@ var backdropHide = keyframes5`
|
|
|
14394
14328
|
opacity: 0;
|
|
14395
14329
|
}
|
|
14396
14330
|
`;
|
|
14397
|
-
var ModalOverlay =
|
|
14331
|
+
var ModalOverlay = styled69(DialogOverlay)`
|
|
14398
14332
|
animation: ${backdropShow} var(--wui-motion-duration-02);
|
|
14399
14333
|
background: var(--wui-color-backdrop);
|
|
14400
14334
|
inset: 0;
|
|
@@ -14407,19 +14341,11 @@ var ModalOverlay = styled71(DialogOverlay)`
|
|
|
14407
14341
|
`;
|
|
14408
14342
|
|
|
14409
14343
|
// src/components/Modal/Modal.tsx
|
|
14410
|
-
import { jsx as
|
|
14344
|
+
import { jsx as jsx280, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
14411
14345
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
14412
|
-
var ModalBody = styled72.div`
|
|
14413
|
-
flex-direction: column;
|
|
14414
|
-
display: flex;
|
|
14415
|
-
flex: 1 0 0;
|
|
14416
|
-
order: 2;
|
|
14417
|
-
`;
|
|
14418
14346
|
var Modal = forwardRef24(
|
|
14419
14347
|
({
|
|
14420
14348
|
children,
|
|
14421
|
-
hideCloseButton = false,
|
|
14422
|
-
hideTitle = false,
|
|
14423
14349
|
initialFocusRef,
|
|
14424
14350
|
isOpen,
|
|
14425
14351
|
onRequestClose,
|
|
@@ -14428,7 +14354,7 @@ var Modal = forwardRef24(
|
|
|
14428
14354
|
width = DEFAULT_MODAL_WIDTH,
|
|
14429
14355
|
...props
|
|
14430
14356
|
}, ref) => {
|
|
14431
|
-
return /* @__PURE__ */
|
|
14357
|
+
return /* @__PURE__ */ jsx280(
|
|
14432
14358
|
DialogRoot,
|
|
14433
14359
|
{
|
|
14434
14360
|
onOpenChange: (open2) => {
|
|
@@ -14437,9 +14363,9 @@ var Modal = forwardRef24(
|
|
|
14437
14363
|
}
|
|
14438
14364
|
},
|
|
14439
14365
|
open: isOpen,
|
|
14440
|
-
children: /* @__PURE__ */
|
|
14441
|
-
/* @__PURE__ */
|
|
14442
|
-
/* @__PURE__ */
|
|
14366
|
+
children: /* @__PURE__ */ jsxs47(DialogPortal, { children: [
|
|
14367
|
+
/* @__PURE__ */ jsx280(ModalOverlay, {}),
|
|
14368
|
+
/* @__PURE__ */ jsx280(
|
|
14443
14369
|
ModalContent,
|
|
14444
14370
|
{
|
|
14445
14371
|
ref,
|
|
@@ -14454,17 +14380,7 @@ var Modal = forwardRef24(
|
|
|
14454
14380
|
positionVariant,
|
|
14455
14381
|
width,
|
|
14456
14382
|
...props,
|
|
14457
|
-
children
|
|
14458
|
-
/* @__PURE__ */ jsx282(ModalBody, { children }),
|
|
14459
|
-
hideCloseButton && hideTitle ? null : /* @__PURE__ */ jsx282(
|
|
14460
|
-
ModalHeader,
|
|
14461
|
-
{
|
|
14462
|
-
hideCloseButton,
|
|
14463
|
-
hideTitle,
|
|
14464
|
-
title
|
|
14465
|
-
}
|
|
14466
|
-
)
|
|
14467
|
-
]
|
|
14383
|
+
children
|
|
14468
14384
|
}
|
|
14469
14385
|
)
|
|
14470
14386
|
] })
|
|
@@ -14474,9 +14390,85 @@ var Modal = forwardRef24(
|
|
|
14474
14390
|
);
|
|
14475
14391
|
Modal.displayName = "Modal_UI";
|
|
14476
14392
|
|
|
14393
|
+
// src/components/Modal/ModalHeader.tsx
|
|
14394
|
+
import styled71 from "styled-components";
|
|
14395
|
+
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
14396
|
+
|
|
14397
|
+
// src/components/Modal/ModalCloseButton.tsx
|
|
14398
|
+
import styled70 from "styled-components";
|
|
14399
|
+
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
14400
|
+
import { jsx as jsx281 } from "react/jsx-runtime";
|
|
14401
|
+
var CloseButton = styled70(DialogClose)`
|
|
14402
|
+
align-self: start;
|
|
14403
|
+
`;
|
|
14404
|
+
var ModalCloseButton = () => {
|
|
14405
|
+
return /* @__PURE__ */ jsx281(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx281(
|
|
14406
|
+
IconButton,
|
|
14407
|
+
{
|
|
14408
|
+
label: "Dismiss modal",
|
|
14409
|
+
size: "sm",
|
|
14410
|
+
variant: "ghost",
|
|
14411
|
+
children: /* @__PURE__ */ jsx281(Icon, { type: "close" })
|
|
14412
|
+
}
|
|
14413
|
+
) });
|
|
14414
|
+
};
|
|
14415
|
+
|
|
14416
|
+
// src/components/Modal/ModalHeader.tsx
|
|
14417
|
+
import { jsx as jsx282, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
14418
|
+
var Header = styled71.header`
|
|
14419
|
+
display: flex;
|
|
14420
|
+
padding: var(--wui-space-05);
|
|
14421
|
+
gap: var(--wui-space-01);
|
|
14422
|
+
justify-content: ${({ $hideTitle }) => $hideTitle ? "flex-end" : "space-between"}; /* ensure ModalCloseButton is right-aligned */
|
|
14423
|
+
|
|
14424
|
+
/* DialogTitle creates an h2 element which inherits some margin */
|
|
14425
|
+
h2 {
|
|
14426
|
+
margin: 0;
|
|
14427
|
+
padding-right: ${({ $hideCloseButon }) => $hideCloseButon ? "0" : "var(--wui-space-03)"};
|
|
14428
|
+
}
|
|
14429
|
+
|
|
14430
|
+
button {
|
|
14431
|
+
position: absolute;
|
|
14432
|
+
right: var(--wui-space-03);
|
|
14433
|
+
top: var(--wui-space-03);
|
|
14434
|
+
}
|
|
14435
|
+
`;
|
|
14436
|
+
var Title = styled71(DialogTitle)`
|
|
14437
|
+
font-family: var(--wui-typography-heading-2-family);
|
|
14438
|
+
line-height: var(--wui-typography-heading-2-line-height);
|
|
14439
|
+
font-size: var(--wui-typography-heading-2-size);
|
|
14440
|
+
font-weight: var(--wui-typography-heading-2-weight);
|
|
14441
|
+
`;
|
|
14442
|
+
var ModalTitle = ({ hideTitle, title }) => {
|
|
14443
|
+
return hideTitle ? /* @__PURE__ */ jsx282(ScreenReaderOnly, { children: /* @__PURE__ */ jsx282(Title, { children: title }) }) : /* @__PURE__ */ jsx282(Title, { children: title });
|
|
14444
|
+
};
|
|
14445
|
+
var ModalHeader = ({
|
|
14446
|
+
title,
|
|
14447
|
+
hideTitle = false,
|
|
14448
|
+
hideCloseButton = false
|
|
14449
|
+
}) => {
|
|
14450
|
+
return /* @__PURE__ */ jsxs48(
|
|
14451
|
+
Header,
|
|
14452
|
+
{
|
|
14453
|
+
$hideCloseButon: hideCloseButton,
|
|
14454
|
+
$hideTitle: hideTitle,
|
|
14455
|
+
children: [
|
|
14456
|
+
/* @__PURE__ */ jsx282(
|
|
14457
|
+
ModalTitle,
|
|
14458
|
+
{
|
|
14459
|
+
hideTitle,
|
|
14460
|
+
title
|
|
14461
|
+
}
|
|
14462
|
+
),
|
|
14463
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx282(ModalCloseButton, {})
|
|
14464
|
+
]
|
|
14465
|
+
}
|
|
14466
|
+
);
|
|
14467
|
+
};
|
|
14468
|
+
|
|
14477
14469
|
// src/components/Popover/Popover.tsx
|
|
14478
14470
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
14479
|
-
import
|
|
14471
|
+
import styled73, { css as css37 } from "styled-components";
|
|
14480
14472
|
|
|
14481
14473
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
14482
14474
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
@@ -14486,9 +14478,9 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
14486
14478
|
|
|
14487
14479
|
// src/components/Popover/PopoverArrow.tsx
|
|
14488
14480
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
14489
|
-
import
|
|
14481
|
+
import styled72, { css as css36, keyframes as keyframes6 } from "styled-components";
|
|
14490
14482
|
import { jsx as jsx283, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
14491
|
-
var StyledPath =
|
|
14483
|
+
var StyledPath = styled72.path`
|
|
14492
14484
|
fill: var(--wui-color-border-secondary);
|
|
14493
14485
|
`;
|
|
14494
14486
|
var circleAnimation = keyframes6`
|
|
@@ -14499,7 +14491,7 @@ var circleAnimation = keyframes6`
|
|
|
14499
14491
|
opacity: 0;
|
|
14500
14492
|
}
|
|
14501
14493
|
`;
|
|
14502
|
-
var StyledCircle =
|
|
14494
|
+
var StyledCircle = styled72.circle`
|
|
14503
14495
|
stroke: var(--wui-color-border-active);
|
|
14504
14496
|
animation-duration: 2s;
|
|
14505
14497
|
animation-iteration-count: infinite;
|
|
@@ -14566,7 +14558,7 @@ PopoverArrow.displayName = "PopoverArrow_UI";
|
|
|
14566
14558
|
|
|
14567
14559
|
// src/components/Popover/Popover.tsx
|
|
14568
14560
|
import { jsx as jsx284, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
14569
|
-
var StyledContent2 =
|
|
14561
|
+
var StyledContent2 = styled73(Content2)`
|
|
14570
14562
|
z-index: var(--wui-zindex-popover);
|
|
14571
14563
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
14572
14564
|
${({ $unstyled }) => !$unstyled && css37`
|
|
@@ -14586,7 +14578,7 @@ var StyledContent2 = styled74(Content2)`
|
|
|
14586
14578
|
right: var(--wui-space-02);
|
|
14587
14579
|
}
|
|
14588
14580
|
`;
|
|
14589
|
-
var
|
|
14581
|
+
var Popover = ({
|
|
14590
14582
|
children,
|
|
14591
14583
|
trigger,
|
|
14592
14584
|
isOpen = false,
|
|
@@ -14632,14 +14624,14 @@ var Popover2 = ({
|
|
|
14632
14624
|
) })
|
|
14633
14625
|
] });
|
|
14634
14626
|
};
|
|
14635
|
-
|
|
14627
|
+
Popover.displayName = "Popover_UI";
|
|
14636
14628
|
|
|
14637
14629
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
14638
|
-
import
|
|
14630
|
+
import styled74 from "styled-components";
|
|
14639
14631
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
14640
14632
|
import { isNotNil as isNotNil31 } from "@wistia/type-guards";
|
|
14641
14633
|
import { jsx as jsx285, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
14642
|
-
var ProgressBarWrapper =
|
|
14634
|
+
var ProgressBarWrapper = styled74.div`
|
|
14643
14635
|
--progress-bar-height: 8px;
|
|
14644
14636
|
|
|
14645
14637
|
display: flex;
|
|
@@ -14653,7 +14645,7 @@ var getTranslateValue = (progress, max) => {
|
|
|
14653
14645
|
const progressPercentage = progress / max * 100;
|
|
14654
14646
|
return `translateX(-${100 - progressPercentage}%)`;
|
|
14655
14647
|
};
|
|
14656
|
-
var ProgressBarLabel =
|
|
14648
|
+
var ProgressBarLabel = styled74.div`
|
|
14657
14649
|
display: flex;
|
|
14658
14650
|
line-height: var(--wui-typography-label-3-line-height);
|
|
14659
14651
|
font-size: var(--wui-typography-label-3-size);
|
|
@@ -14661,7 +14653,7 @@ var ProgressBarLabel = styled75.div`
|
|
|
14661
14653
|
color: var(--wui-color-text-secondary);
|
|
14662
14654
|
flex-shrink: 0;
|
|
14663
14655
|
`;
|
|
14664
|
-
var StyledProgressIndicator =
|
|
14656
|
+
var StyledProgressIndicator = styled74(ProgressIndicator)`
|
|
14665
14657
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14666
14658
|
background-color: var(--wui-color-bg-fill);
|
|
14667
14659
|
width: 100%;
|
|
@@ -14671,7 +14663,7 @@ var StyledProgressIndicator = styled75(ProgressIndicator)`
|
|
|
14671
14663
|
transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
14672
14664
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
14673
14665
|
`;
|
|
14674
|
-
var StyledProgressBar =
|
|
14666
|
+
var StyledProgressBar = styled74(ProgressRoot)`
|
|
14675
14667
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14676
14668
|
position: relative;
|
|
14677
14669
|
overflow: hidden;
|
|
@@ -14718,7 +14710,7 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
14718
14710
|
|
|
14719
14711
|
// src/components/Radio/Radio.tsx
|
|
14720
14712
|
import { forwardRef as forwardRef25, useId as useId4 } from "react";
|
|
14721
|
-
import
|
|
14713
|
+
import styled75, { css as css38 } from "styled-components";
|
|
14722
14714
|
import { isNonEmptyString as isNonEmptyString6, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
14723
14715
|
import { jsx as jsx286, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
14724
14716
|
var sizeSmall2 = css38`
|
|
@@ -14738,7 +14730,7 @@ var getSizeCss3 = (size) => {
|
|
|
14738
14730
|
if (size === "lg") return sizeLarge2;
|
|
14739
14731
|
return sizeMedium2;
|
|
14740
14732
|
};
|
|
14741
|
-
var StyledRadioWrapper =
|
|
14733
|
+
var StyledRadioWrapper = styled75.div`
|
|
14742
14734
|
--wui-radio-background-color: var(--wui-color-bg-surface);
|
|
14743
14735
|
--wui-radio-border-color: var(--wui-color-border-secondary);
|
|
14744
14736
|
--wui-radio-icon-color: transparent;
|
|
@@ -14772,7 +14764,7 @@ var StyledRadioWrapper = styled76.div`
|
|
|
14772
14764
|
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
14773
14765
|
user-select: none;
|
|
14774
14766
|
`;
|
|
14775
|
-
var StyledRadioInput =
|
|
14767
|
+
var StyledRadioInput = styled75.div`
|
|
14776
14768
|
${({ $size }) => getSizeCss3($size)}
|
|
14777
14769
|
align-self: flex-start;
|
|
14778
14770
|
width: var(--wui-radio-size);
|
|
@@ -14799,7 +14791,7 @@ var StyledRadioInput = styled76.div`
|
|
|
14799
14791
|
transform: translate(-50%, -50%);
|
|
14800
14792
|
}
|
|
14801
14793
|
`;
|
|
14802
|
-
var StyledHiddenRadioInput =
|
|
14794
|
+
var StyledHiddenRadioInput = styled75.input`
|
|
14803
14795
|
${visuallyHiddenStyle}
|
|
14804
14796
|
`;
|
|
14805
14797
|
var Radio = forwardRef25(
|
|
@@ -14871,7 +14863,7 @@ import { forwardRef as forwardRef27 } from "react";
|
|
|
14871
14863
|
|
|
14872
14864
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
14873
14865
|
import { forwardRef as forwardRef26, useId as useId5 } from "react";
|
|
14874
|
-
import
|
|
14866
|
+
import styled76, { css as css39 } from "styled-components";
|
|
14875
14867
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
14876
14868
|
import { jsx as jsx287, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
14877
14869
|
var checkedStyles = css39`
|
|
@@ -14923,7 +14915,7 @@ var imageCoverStyles = css39`
|
|
|
14923
14915
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
14924
14916
|
}
|
|
14925
14917
|
`;
|
|
14926
|
-
var StyledCard2 =
|
|
14918
|
+
var StyledCard2 = styled76.label`
|
|
14927
14919
|
--wui-radio-card-border-color: var(--wui-color-border-secondary);
|
|
14928
14920
|
--wui-radio-card-background-color: var(--wui-color-bg-surface);
|
|
14929
14921
|
--wui-radio-card-cursor: pointer;
|
|
@@ -14977,7 +14969,7 @@ var StyledCard2 = styled77.label`
|
|
|
14977
14969
|
}
|
|
14978
14970
|
}
|
|
14979
14971
|
`;
|
|
14980
|
-
var StyledHiddenInput =
|
|
14972
|
+
var StyledHiddenInput = styled76.input`
|
|
14981
14973
|
${visuallyHiddenStyle}
|
|
14982
14974
|
`;
|
|
14983
14975
|
var RadioCardRoot = forwardRef26(
|
|
@@ -15032,12 +15024,12 @@ var RadioCardRoot = forwardRef26(
|
|
|
15032
15024
|
RadioCardRoot.displayName = "RadioCardRoot_UI";
|
|
15033
15025
|
|
|
15034
15026
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
15035
|
-
import
|
|
15027
|
+
import styled78 from "styled-components";
|
|
15036
15028
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
15037
15029
|
|
|
15038
15030
|
// src/components/RadioCard/RadioCardIndicator.tsx
|
|
15039
|
-
import
|
|
15040
|
-
var RadioCardIndicator =
|
|
15031
|
+
import styled77 from "styled-components";
|
|
15032
|
+
var RadioCardIndicator = styled77.div`
|
|
15041
15033
|
--wui-radio-card-indicator-size: 14px;
|
|
15042
15034
|
--wui-radio-card-indicator-background-color: var(--wui-color-bg-surface);
|
|
15043
15035
|
--wui-radio-card-indicator-fill-color: var(--wui-color-bg-fill);
|
|
@@ -15087,15 +15079,15 @@ RadioCardIndicator.displayName = "RadioCardIndicator_UI";
|
|
|
15087
15079
|
|
|
15088
15080
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
15089
15081
|
import { jsx as jsx288, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
15090
|
-
var StyledCardContent =
|
|
15082
|
+
var StyledCardContent = styled78.div`
|
|
15091
15083
|
display: grid;
|
|
15092
15084
|
grid-auto-flow: column;
|
|
15093
15085
|
gap: var(--wui-space-02);
|
|
15094
15086
|
`;
|
|
15095
|
-
var StyledCardIcon =
|
|
15087
|
+
var StyledCardIcon = styled78.div`
|
|
15096
15088
|
display: contents;
|
|
15097
15089
|
`;
|
|
15098
|
-
var StyledIndicatorContainer =
|
|
15090
|
+
var StyledIndicatorContainer = styled78.div`
|
|
15099
15091
|
height: ${({ $hasIcon }) => $hasIcon ? "24px" : "16px"};
|
|
15100
15092
|
display: flex;
|
|
15101
15093
|
align-items: center;
|
|
@@ -15134,8 +15126,8 @@ var RadioCardDefaultLayout = ({
|
|
|
15134
15126
|
RadioCardDefaultLayout.displayName = "RadioCardDefaultLayout_UI";
|
|
15135
15127
|
|
|
15136
15128
|
// src/components/RadioCard/RadioCardChildrenContainer.tsx
|
|
15137
|
-
import
|
|
15138
|
-
var RadioCardChildrenContainer =
|
|
15129
|
+
import styled79 from "styled-components";
|
|
15130
|
+
var RadioCardChildrenContainer = styled79.div`
|
|
15139
15131
|
flex: 1 1 auto;
|
|
15140
15132
|
`;
|
|
15141
15133
|
|
|
@@ -15194,7 +15186,7 @@ RadioCardImage.displayName = "RadioCardImage_UI";
|
|
|
15194
15186
|
|
|
15195
15187
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15196
15188
|
import { forwardRef as forwardRef29 } from "react";
|
|
15197
|
-
import
|
|
15189
|
+
import styled81, { css as css41 } from "styled-components";
|
|
15198
15190
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
15199
15191
|
import { isNil as isNil16 } from "@wistia/type-guards";
|
|
15200
15192
|
|
|
@@ -15232,7 +15224,7 @@ var useSelectedItemStyle = () => {
|
|
|
15232
15224
|
};
|
|
15233
15225
|
|
|
15234
15226
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
15235
|
-
import
|
|
15227
|
+
import styled80, { css as css40 } from "styled-components";
|
|
15236
15228
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
15237
15229
|
|
|
15238
15230
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -15254,7 +15246,7 @@ var selectedItemIndicatorStyles = css40`
|
|
|
15254
15246
|
border-radius: var(--wui-border-radius-rounded);
|
|
15255
15247
|
box-shadow: var(--wui-elevation-01);
|
|
15256
15248
|
`;
|
|
15257
|
-
var SelectedItemIndicatorDiv =
|
|
15249
|
+
var SelectedItemIndicatorDiv = styled80.div`
|
|
15258
15250
|
${selectedItemIndicatorStyles}
|
|
15259
15251
|
left: 0;
|
|
15260
15252
|
position: absolute;
|
|
@@ -15292,7 +15284,7 @@ var segmentedControlStyles = css41`
|
|
|
15292
15284
|
position: relative;
|
|
15293
15285
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
15294
15286
|
`;
|
|
15295
|
-
var StyledSegmentedControl =
|
|
15287
|
+
var StyledSegmentedControl = styled81(ToggleGroupRoot2)`
|
|
15296
15288
|
${segmentedControlStyles}
|
|
15297
15289
|
`;
|
|
15298
15290
|
var SegmentedControl = forwardRef29(
|
|
@@ -15331,7 +15323,7 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
15331
15323
|
|
|
15332
15324
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
15333
15325
|
import { forwardRef as forwardRef30, useEffect as useEffect18, useRef as useRef19 } from "react";
|
|
15334
|
-
import
|
|
15326
|
+
import styled82, { css as css42 } from "styled-components";
|
|
15335
15327
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
15336
15328
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
15337
15329
|
import { jsxs as jsxs56 } from "react/jsx-runtime";
|
|
@@ -15402,7 +15394,7 @@ var segmentedControlItemStyles = css42`
|
|
|
15402
15394
|
}
|
|
15403
15395
|
}
|
|
15404
15396
|
`;
|
|
15405
|
-
var StyledSegmentedControlItem =
|
|
15397
|
+
var StyledSegmentedControlItem = styled82(ToggleGroupItem2)`
|
|
15406
15398
|
${segmentedControlItemStyles}
|
|
15407
15399
|
`;
|
|
15408
15400
|
var SegmentedControlItem = forwardRef30(
|
|
@@ -15475,9 +15467,9 @@ import {
|
|
|
15475
15467
|
ScrollDownButton
|
|
15476
15468
|
} from "@radix-ui/react-select";
|
|
15477
15469
|
import { forwardRef as forwardRef31 } from "react";
|
|
15478
|
-
import
|
|
15470
|
+
import styled83 from "styled-components";
|
|
15479
15471
|
import { jsx as jsx294, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
15480
|
-
var StyledTrigger2 =
|
|
15472
|
+
var StyledTrigger2 = styled83(Trigger3)`
|
|
15481
15473
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
15482
15474
|
${inputCss};
|
|
15483
15475
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -15521,7 +15513,7 @@ var StyledTrigger2 = styled84(Trigger3)`
|
|
|
15521
15513
|
color: var(--wui-input-placeholder);
|
|
15522
15514
|
}
|
|
15523
15515
|
`;
|
|
15524
|
-
var StyledContent3 =
|
|
15516
|
+
var StyledContent3 = styled83(Content3)`
|
|
15525
15517
|
--wui-select-content-border: var(--wui-color-border);
|
|
15526
15518
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
15527
15519
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -15589,10 +15581,10 @@ Select.displayName = "Select_UI";
|
|
|
15589
15581
|
// src/components/Select/SelectOption.tsx
|
|
15590
15582
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
15591
15583
|
import { forwardRef as forwardRef32 } from "react";
|
|
15592
|
-
import
|
|
15584
|
+
import styled84 from "styled-components";
|
|
15593
15585
|
import { isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
15594
15586
|
import { jsx as jsx295, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
15595
|
-
var StyledItem =
|
|
15587
|
+
var StyledItem = styled84(Item)`
|
|
15596
15588
|
${variantStyleMap2.body3};
|
|
15597
15589
|
display: flex;
|
|
15598
15590
|
padding: var(--wui-select-option-padding);
|
|
@@ -15616,7 +15608,7 @@ var StyledItem = styled85(Item)`
|
|
|
15616
15608
|
background-color: transparent;
|
|
15617
15609
|
}
|
|
15618
15610
|
`;
|
|
15619
|
-
var StyledIconContainer2 =
|
|
15611
|
+
var StyledIconContainer2 = styled84.span`
|
|
15620
15612
|
width: 12px;
|
|
15621
15613
|
`;
|
|
15622
15614
|
var SelectOption = forwardRef32(
|
|
@@ -15647,9 +15639,9 @@ SelectOption.displayName = "SelectOption_UI";
|
|
|
15647
15639
|
|
|
15648
15640
|
// src/components/Select/SelectOptionGroup.tsx
|
|
15649
15641
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
15650
|
-
import
|
|
15642
|
+
import styled85 from "styled-components";
|
|
15651
15643
|
import { jsx as jsx296, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
15652
|
-
var StyledLabel4 =
|
|
15644
|
+
var StyledLabel4 = styled85(Label3)`
|
|
15653
15645
|
padding: var(--wui-select-option-padding);
|
|
15654
15646
|
`;
|
|
15655
15647
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
@@ -15673,10 +15665,10 @@ import {
|
|
|
15673
15665
|
Range as RadixSliderRange,
|
|
15674
15666
|
Thumb as RadixSliderThumb
|
|
15675
15667
|
} from "@radix-ui/react-slider";
|
|
15676
|
-
import
|
|
15668
|
+
import styled86 from "styled-components";
|
|
15677
15669
|
import { isNonEmptyString as isNonEmptyString8 } from "@wistia/type-guards";
|
|
15678
15670
|
import { jsx as jsx297, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
15679
|
-
var SliderContainer =
|
|
15671
|
+
var SliderContainer = styled86.div`
|
|
15680
15672
|
--wui-slider-track-color: var(--wui-gray-6);
|
|
15681
15673
|
--wui-slider-track-border-radius: var(--wui-border-radius-rounded);
|
|
15682
15674
|
--wui-slider-range-color: var(--wui-color-bg-fill);
|
|
@@ -15692,7 +15684,7 @@ var SliderContainer = styled87.div`
|
|
|
15692
15684
|
pointer-events: none;
|
|
15693
15685
|
}
|
|
15694
15686
|
`;
|
|
15695
|
-
var StyledSliderRoot =
|
|
15687
|
+
var StyledSliderRoot = styled86(RadixSliderRoot)`
|
|
15696
15688
|
position: relative;
|
|
15697
15689
|
display: flex;
|
|
15698
15690
|
align-items: center;
|
|
@@ -15700,20 +15692,20 @@ var StyledSliderRoot = styled87(RadixSliderRoot)`
|
|
|
15700
15692
|
touch-action: none;
|
|
15701
15693
|
width: 100%;
|
|
15702
15694
|
`;
|
|
15703
|
-
var StyledSliderTrack =
|
|
15695
|
+
var StyledSliderTrack = styled86(RadixSliderTrack)`
|
|
15704
15696
|
background-color: var(--wui-slider-track-color);
|
|
15705
15697
|
border-radius: var(--wui-slider-track-border-radius);
|
|
15706
15698
|
flex-grow: 1;
|
|
15707
15699
|
height: 6px;
|
|
15708
15700
|
position: relative;
|
|
15709
15701
|
`;
|
|
15710
|
-
var StyledSliderRange =
|
|
15702
|
+
var StyledSliderRange = styled86(RadixSliderRange)`
|
|
15711
15703
|
background-color: var(--wui-slider-range-color);
|
|
15712
15704
|
border-radius: var(--wui-slider-track-border-radius);
|
|
15713
15705
|
height: 100%;
|
|
15714
15706
|
position: absolute;
|
|
15715
15707
|
`;
|
|
15716
|
-
var StyledSliderThumb =
|
|
15708
|
+
var StyledSliderThumb = styled86(RadixSliderThumb)`
|
|
15717
15709
|
background-color: var(--wui-slider-thumb-color);
|
|
15718
15710
|
border-radius: var(--wui-border-radius-rounded);
|
|
15719
15711
|
cursor: grab;
|
|
@@ -15799,9 +15791,9 @@ var Slider = ({
|
|
|
15799
15791
|
Slider.displayName = "Slider_UI";
|
|
15800
15792
|
|
|
15801
15793
|
// src/components/Table/Table.tsx
|
|
15802
|
-
import
|
|
15794
|
+
import styled87, { css as css43 } from "styled-components";
|
|
15803
15795
|
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
15804
|
-
var StyledTable =
|
|
15796
|
+
var StyledTable = styled87.table`
|
|
15805
15797
|
width: 100%;
|
|
15806
15798
|
border-collapse: collapse;
|
|
15807
15799
|
|
|
@@ -15844,7 +15836,7 @@ var Table = ({
|
|
|
15844
15836
|
|
|
15845
15837
|
// src/components/Table/TableBody.tsx
|
|
15846
15838
|
import "react";
|
|
15847
|
-
import
|
|
15839
|
+
import styled88 from "styled-components";
|
|
15848
15840
|
|
|
15849
15841
|
// src/components/Table/TableSectionContext.ts
|
|
15850
15842
|
import { createContext as createContext10 } from "react";
|
|
@@ -15852,27 +15844,27 @@ var TableSectionContext = createContext10(null);
|
|
|
15852
15844
|
|
|
15853
15845
|
// src/components/Table/TableBody.tsx
|
|
15854
15846
|
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
15855
|
-
var StyledTableBody =
|
|
15847
|
+
var StyledTableBody = styled88.tbody``;
|
|
15856
15848
|
var TableBody = ({ children, ...props }) => {
|
|
15857
15849
|
return /* @__PURE__ */ jsx299(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx299(StyledTableBody, { ...props, children }) });
|
|
15858
15850
|
};
|
|
15859
15851
|
|
|
15860
15852
|
// src/components/Table/TableCell.tsx
|
|
15861
15853
|
import { useContext as useContext11 } from "react";
|
|
15862
|
-
import
|
|
15854
|
+
import styled89, { css as css44 } from "styled-components";
|
|
15863
15855
|
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
15864
15856
|
var sharedStyles = css44`
|
|
15865
15857
|
color: var(--wui-color-text);
|
|
15866
15858
|
padding: var(--wui-space-02);
|
|
15867
15859
|
text-align: left;
|
|
15868
15860
|
`;
|
|
15869
|
-
var StyledTh =
|
|
15861
|
+
var StyledTh = styled89.th`
|
|
15870
15862
|
${sharedStyles}
|
|
15871
15863
|
font-size: var(--wui-typography-body-4-size);
|
|
15872
15864
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
15873
15865
|
line-height: var(--wui-typography-body-4-line-height);
|
|
15874
15866
|
`;
|
|
15875
|
-
var StyledTd =
|
|
15867
|
+
var StyledTd = styled89.td`
|
|
15876
15868
|
${sharedStyles}
|
|
15877
15869
|
font-size: var(--wui-typography-body-2-size);
|
|
15878
15870
|
font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -15888,26 +15880,26 @@ var TableCell = ({ children, ...props }) => {
|
|
|
15888
15880
|
|
|
15889
15881
|
// src/components/Table/TableFoot.tsx
|
|
15890
15882
|
import "react";
|
|
15891
|
-
import
|
|
15883
|
+
import styled90 from "styled-components";
|
|
15892
15884
|
import { jsx as jsx301 } from "react/jsx-runtime";
|
|
15893
|
-
var StyledTableFoot =
|
|
15885
|
+
var StyledTableFoot = styled90.tfoot``;
|
|
15894
15886
|
var TableFoot = ({ children, ...props }) => {
|
|
15895
15887
|
return /* @__PURE__ */ jsx301(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx301(StyledTableFoot, { ...props, children }) });
|
|
15896
15888
|
};
|
|
15897
15889
|
|
|
15898
15890
|
// src/components/Table/TableHead.tsx
|
|
15899
15891
|
import "react";
|
|
15900
|
-
import
|
|
15892
|
+
import styled91 from "styled-components";
|
|
15901
15893
|
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
15902
|
-
var StyledThead =
|
|
15894
|
+
var StyledThead = styled91.thead``;
|
|
15903
15895
|
var TableHead = ({ children, ...props }) => {
|
|
15904
15896
|
return /* @__PURE__ */ jsx302(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx302(StyledThead, { ...props, children }) });
|
|
15905
15897
|
};
|
|
15906
15898
|
|
|
15907
15899
|
// src/components/Table/TableRow.tsx
|
|
15908
|
-
import
|
|
15900
|
+
import styled92 from "styled-components";
|
|
15909
15901
|
import { jsx as jsx303 } from "react/jsx-runtime";
|
|
15910
|
-
var StyledTableRow =
|
|
15902
|
+
var StyledTableRow = styled92.tr``;
|
|
15911
15903
|
var TableRow = ({ children, ...props }) => {
|
|
15912
15904
|
return /* @__PURE__ */ jsx303(StyledTableRow, { ...props, children });
|
|
15913
15905
|
};
|
|
@@ -15972,14 +15964,14 @@ TabsContent.displayName = "TabsContent_UI";
|
|
|
15972
15964
|
|
|
15973
15965
|
// src/components/Tabs/TabsList.tsx
|
|
15974
15966
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
15975
|
-
import
|
|
15967
|
+
import styled94 from "styled-components";
|
|
15976
15968
|
|
|
15977
15969
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
15978
15970
|
import { isUndefined as isUndefined6 } from "@wistia/type-guards";
|
|
15979
15971
|
|
|
15980
15972
|
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
15981
|
-
import
|
|
15982
|
-
var TabsSelectedItemIndicatorDiv =
|
|
15973
|
+
import styled93 from "styled-components";
|
|
15974
|
+
var TabsSelectedItemIndicatorDiv = styled93(SelectedItemIndicatorDiv)`
|
|
15983
15975
|
&:has(~ button[role='tab']:focus-visible) {
|
|
15984
15976
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
15985
15977
|
}
|
|
@@ -16004,7 +15996,7 @@ var SelectedTabIndicator = () => {
|
|
|
16004
15996
|
|
|
16005
15997
|
// src/components/Tabs/TabsList.tsx
|
|
16006
15998
|
import { jsx as jsx307, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
16007
|
-
var StyledRadixTabsList =
|
|
15999
|
+
var StyledRadixTabsList = styled94(RadixTabList)`
|
|
16008
16000
|
${segmentedControlStyles}
|
|
16009
16001
|
`;
|
|
16010
16002
|
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
@@ -16027,9 +16019,9 @@ import { forwardRef as forwardRef33, useEffect as useEffect19, useRef as useRef2
|
|
|
16027
16019
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
16028
16020
|
|
|
16029
16021
|
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
16030
|
-
import
|
|
16022
|
+
import styled95 from "styled-components";
|
|
16031
16023
|
import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
|
|
16032
|
-
var StyledRadixTabsTrigger =
|
|
16024
|
+
var StyledRadixTabsTrigger = styled95(RadixTabsTrigger)`
|
|
16033
16025
|
${segmentedControlItemStyles}
|
|
16034
16026
|
|
|
16035
16027
|
&:focus-visible {
|
|
@@ -16090,10 +16082,10 @@ var TabsTrigger = forwardRef33(
|
|
|
16090
16082
|
TabsTrigger.displayName = "TabsTrigger_UI";
|
|
16091
16083
|
|
|
16092
16084
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
16093
|
-
import
|
|
16085
|
+
import styled96 from "styled-components";
|
|
16094
16086
|
import { isNotNil as isNotNil37 } from "@wistia/type-guards";
|
|
16095
16087
|
import { jsx as jsx308, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
16096
|
-
var StyledThumbnailBadge =
|
|
16088
|
+
var StyledThumbnailBadge = styled96.div`
|
|
16097
16089
|
align-items: center;
|
|
16098
16090
|
background-color: rgb(0 0 0 / 50%);
|
|
16099
16091
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -16127,7 +16119,7 @@ ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
|
16127
16119
|
|
|
16128
16120
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
16129
16121
|
import { forwardRef as forwardRef34, useState as useState22, useRef as useRef21, useCallback as useCallback18, useMemo as useMemo15 } from "react";
|
|
16130
|
-
import
|
|
16122
|
+
import styled98 from "styled-components";
|
|
16131
16123
|
import { isNil as isNil17, isNotNil as isNotNil40, isUndefined as isUndefined7, isEmptyString as isEmptyString2, isString as isString2 } from "@wistia/type-guards";
|
|
16132
16124
|
|
|
16133
16125
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
@@ -16263,10 +16255,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
16263
16255
|
};
|
|
16264
16256
|
|
|
16265
16257
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
16266
|
-
import
|
|
16258
|
+
import styled97 from "styled-components";
|
|
16267
16259
|
import { isNotNil as isNotNil39 } from "@wistia/type-guards";
|
|
16268
16260
|
import { jsx as jsx309, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
16269
|
-
var ScrubLine =
|
|
16261
|
+
var ScrubLine = styled97.div`
|
|
16270
16262
|
position: absolute;
|
|
16271
16263
|
top: 0;
|
|
16272
16264
|
height: 100%;
|
|
@@ -16399,12 +16391,12 @@ var ThumbnailStoryboardViewer = ({
|
|
|
16399
16391
|
|
|
16400
16392
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
16401
16393
|
import { jsx as jsx310, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
16402
|
-
var WideThumbnailImage =
|
|
16394
|
+
var WideThumbnailImage = styled98.img`
|
|
16403
16395
|
height: 100%;
|
|
16404
16396
|
object-fit: cover;
|
|
16405
16397
|
width: 100%;
|
|
16406
16398
|
`;
|
|
16407
|
-
var SquareThumbnailImage =
|
|
16399
|
+
var SquareThumbnailImage = styled98.img`
|
|
16408
16400
|
backdrop-filter: blur(8px);
|
|
16409
16401
|
object-fit: contain;
|
|
16410
16402
|
width: 100%;
|
|
@@ -16429,7 +16421,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
16429
16421
|
}
|
|
16430
16422
|
);
|
|
16431
16423
|
};
|
|
16432
|
-
var StyledThumbnail =
|
|
16424
|
+
var StyledThumbnail = styled98.div`
|
|
16433
16425
|
background-image: ${({ $backgroundUrl }) => isNotNil40($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
16434
16426
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
16435
16427
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -16578,10 +16570,10 @@ Thumbnail.displayName = "Thumbnail_UI";
|
|
|
16578
16570
|
|
|
16579
16571
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
16580
16572
|
import React5 from "react";
|
|
16581
|
-
import
|
|
16573
|
+
import styled99 from "styled-components";
|
|
16582
16574
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
16583
16575
|
import { jsx as jsx311 } from "react/jsx-runtime";
|
|
16584
|
-
var StyledThumbnailCollage =
|
|
16576
|
+
var StyledThumbnailCollage = styled99.div`
|
|
16585
16577
|
display: grid;
|
|
16586
16578
|
gap: var(--wui-space-01);
|
|
16587
16579
|
width: 100%;
|
|
@@ -16684,7 +16676,7 @@ var ThumbnailCollage = ({
|
|
|
16684
16676
|
};
|
|
16685
16677
|
|
|
16686
16678
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
16687
|
-
import
|
|
16679
|
+
import styled100, { css as css46 } from "styled-components";
|
|
16688
16680
|
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
16689
16681
|
import { jsx as jsx312, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
16690
16682
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -16726,7 +16718,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
16726
16718
|
}
|
|
16727
16719
|
return "0 0 144 31.47";
|
|
16728
16720
|
};
|
|
16729
|
-
var WistiaLogoComponent =
|
|
16721
|
+
var WistiaLogoComponent = styled100.svg`
|
|
16730
16722
|
height: ${({ height }) => `${height}px`};
|
|
16731
16723
|
|
|
16732
16724
|
/* ensure it will always fit on mobile */
|
|
@@ -16809,11 +16801,11 @@ var WistiaLogo = ({
|
|
|
16809
16801
|
WistiaLogo.displayName = "WistiaLogo_UI";
|
|
16810
16802
|
|
|
16811
16803
|
// src/components/InputPassword/InputPassword.tsx
|
|
16812
|
-
import
|
|
16804
|
+
import styled101 from "styled-components";
|
|
16813
16805
|
import { forwardRef as forwardRef35, useState as useState23 } from "react";
|
|
16814
16806
|
import { isFunction as isFunction4 } from "@wistia/type-guards";
|
|
16815
16807
|
import { jsx as jsx313 } from "react/jsx-runtime";
|
|
16816
|
-
var StyledIconButton2 =
|
|
16808
|
+
var StyledIconButton2 = styled101(IconButton)`
|
|
16817
16809
|
/* override size for icon button since prop gets changed by Input */
|
|
16818
16810
|
height: var(--icon-button-size-sm);
|
|
16819
16811
|
width: var(--icon-button-size-sm);
|
|
@@ -16916,7 +16908,7 @@ var ContextMenu = ({
|
|
|
16916
16908
|
|
|
16917
16909
|
// src/components/EditableText/EditableTextDisplay.tsx
|
|
16918
16910
|
import { useContext as useContext13, useRef as useRef22, forwardRef as forwardRef36 } from "react";
|
|
16919
|
-
import
|
|
16911
|
+
import styled103, { css as css48 } from "styled-components";
|
|
16920
16912
|
import { isNotNil as isNotNil43 } from "@wistia/type-guards";
|
|
16921
16913
|
|
|
16922
16914
|
// src/components/EditableText/EditableTextRoot.tsx
|
|
@@ -16928,9 +16920,9 @@ import {
|
|
|
16928
16920
|
useId as useId6
|
|
16929
16921
|
} from "react";
|
|
16930
16922
|
import { isNonEmptyString as isNonEmptyString9 } from "@wistia/type-guards";
|
|
16931
|
-
import
|
|
16923
|
+
import styled102 from "styled-components";
|
|
16932
16924
|
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
16933
|
-
var StyledEditableTextRoot =
|
|
16925
|
+
var StyledEditableTextRoot = styled102.div`
|
|
16934
16926
|
display: contents;
|
|
16935
16927
|
|
|
16936
16928
|
--wui-editable-text-padding: var(--wui-space-01);
|
|
@@ -17059,7 +17051,7 @@ var getDefaultTypographicElement = (variant) => {
|
|
|
17059
17051
|
|
|
17060
17052
|
// src/components/EditableText/EditableTextDisplay.tsx
|
|
17061
17053
|
import { jsx as jsx316, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
17062
|
-
var StyledEditableTextDisplay =
|
|
17054
|
+
var StyledEditableTextDisplay = styled103.div`
|
|
17063
17055
|
${({ $typographicVariant }) => getTypographicStyles($typographicVariant)}
|
|
17064
17056
|
padding: var(--wui-editable-text-padding);
|
|
17065
17057
|
border-radius: var(--wui-editable-text-border-radius);
|
|
@@ -17160,10 +17152,10 @@ var EditableTextDisplay = makePolymorphic(
|
|
|
17160
17152
|
|
|
17161
17153
|
// src/components/EditableText/EditableTextInput.tsx
|
|
17162
17154
|
import { useContext as useContext14, useEffect as useEffect21, useRef as useRef23 } from "react";
|
|
17163
|
-
import
|
|
17155
|
+
import styled104 from "styled-components";
|
|
17164
17156
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
17165
17157
|
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
17166
|
-
var StyledInput2 =
|
|
17158
|
+
var StyledInput2 = styled104(Input)`
|
|
17167
17159
|
&& {
|
|
17168
17160
|
${({ $minLines }) => isNotNil44($minLines) && `min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
|
|
17169
17161
|
${({ $maxLines }) => isNotNil44($maxLines) && `max-height: calc(${$maxLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
|
|
@@ -17385,9 +17377,9 @@ var EditableTextTrigger = ({
|
|
|
17385
17377
|
};
|
|
17386
17378
|
|
|
17387
17379
|
// src/components/DataList/DataList.tsx
|
|
17388
|
-
import
|
|
17380
|
+
import styled105 from "styled-components";
|
|
17389
17381
|
import { jsx as jsx320 } from "react/jsx-runtime";
|
|
17390
|
-
var StyledDataList =
|
|
17382
|
+
var StyledDataList = styled105.dl`
|
|
17391
17383
|
display: grid;
|
|
17392
17384
|
grid-template-columns: auto 1fr;
|
|
17393
17385
|
column-gap: var(--wui-space-02);
|
|
@@ -17466,9 +17458,9 @@ var DataListItemValue = (props) => {
|
|
|
17466
17458
|
DataListItemValue.displayName = "DataListItemValue_UI";
|
|
17467
17459
|
|
|
17468
17460
|
// src/components/Mark/Mark.tsx
|
|
17469
|
-
import
|
|
17461
|
+
import styled106 from "styled-components";
|
|
17470
17462
|
import { jsx as jsx323 } from "react/jsx-runtime";
|
|
17471
|
-
var StyledMark =
|
|
17463
|
+
var StyledMark = styled106.mark`
|
|
17472
17464
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
17473
17465
|
background-color: var(--wui-color-bg-surface-tertiary);
|
|
17474
17466
|
color: var(--wui-color-text);
|
|
@@ -17571,8 +17563,9 @@ export {
|
|
|
17571
17563
|
MenuLabel,
|
|
17572
17564
|
MenuRadioGroup,
|
|
17573
17565
|
Modal,
|
|
17566
|
+
ModalHeader,
|
|
17574
17567
|
PersistentFileAmountLimitValidator,
|
|
17575
|
-
|
|
17568
|
+
Popover,
|
|
17576
17569
|
ProgressBar,
|
|
17577
17570
|
Radio,
|
|
17578
17571
|
RadioCard,
|