@wistia/ui 0.13.9 → 0.13.10
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 +504 -475
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs +402 -374
- 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.13.
|
|
3
|
+
* @license @wistia/ui v0.13.10
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -12143,17 +12143,32 @@ import styled50, { keyframes as keyframes2 } from "styled-components";
|
|
|
12143
12143
|
import { isNotNil as isNotNil20 } from "@wistia/type-guards";
|
|
12144
12144
|
import { jsx as jsx253, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12145
12145
|
var StyledDataCard = styled50.div`
|
|
12146
|
+
--wui-data-card-text: var(--wui-color-text-button);
|
|
12147
|
+
--wui-color-text: var(--wui-data-card-text);
|
|
12148
|
+
--wui-data-card-background: var(--wui-color-bg-surface-secondary);
|
|
12149
|
+
--wui-data-card-background-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
12150
|
+
--wui-data-card-background-active: var(--wui-color-bg-surface-secondary-active);
|
|
12151
|
+
|
|
12146
12152
|
display: grid;
|
|
12147
12153
|
grid-template-areas: 'label slot' 'value value';
|
|
12148
12154
|
grid-template-rows: auto auto;
|
|
12149
12155
|
grid-template-columns: auto auto;
|
|
12150
12156
|
gap: var(--wui-space-01);
|
|
12151
12157
|
padding: var(--wui-space-03);
|
|
12152
|
-
background: var(--wui-
|
|
12158
|
+
background: var(--wui-data-card-background);
|
|
12153
12159
|
flex: 1;
|
|
12154
12160
|
border-radius: var(--wui-border-radius-02);
|
|
12155
12161
|
position: relative;
|
|
12156
|
-
transition:
|
|
12162
|
+
transition:
|
|
12163
|
+
background var(--wui-motion-duration-01) var(--wui-motion-ease),
|
|
12164
|
+
box-shadow var(--wui-motion-duration-01) var(--wui-motion-ease),
|
|
12165
|
+
color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
12166
|
+
|
|
12167
|
+
[data-wui-data-card-hover-icon] {
|
|
12168
|
+
opacity: 0;
|
|
12169
|
+
transform: translateX(-16px);
|
|
12170
|
+
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
12171
|
+
}
|
|
12157
12172
|
|
|
12158
12173
|
&:has([data-wui-data-card-subtitle]) {
|
|
12159
12174
|
grid-template-areas: 'label slot' 'value value' 'subtitle subtitle';
|
|
@@ -12161,21 +12176,12 @@ var StyledDataCard = styled50.div`
|
|
|
12161
12176
|
}
|
|
12162
12177
|
|
|
12163
12178
|
&[data-click-region] {
|
|
12164
|
-
[data-wui-data-card-hover-icon] {
|
|
12165
|
-
opacity: 0;
|
|
12166
|
-
transform: translateX(-16px);
|
|
12167
|
-
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
12168
|
-
}
|
|
12169
|
-
|
|
12170
12179
|
&:not([disabled]) {
|
|
12171
12180
|
cursor: pointer;
|
|
12172
12181
|
|
|
12173
|
-
&:hover
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
--wui-color-text: var(--wui-color-text-button);
|
|
12177
|
-
|
|
12178
|
-
background: var(--wui-color-bg-surface-secondary-hover);
|
|
12182
|
+
&:hover {
|
|
12183
|
+
--wui-data-card-text: var(--wui-color-text-button);
|
|
12184
|
+
--wui-data-card-background: var(--wui-color-bg-surface-secondary-hover);
|
|
12179
12185
|
|
|
12180
12186
|
[data-wui-data-card-hover-icon] {
|
|
12181
12187
|
opacity: 1;
|
|
@@ -12183,15 +12189,23 @@ var StyledDataCard = styled50.div`
|
|
|
12183
12189
|
}
|
|
12184
12190
|
}
|
|
12185
12191
|
|
|
12186
|
-
&:
|
|
12187
|
-
|
|
12188
|
-
background: var(--wui-color-bg-surface-secondary-active);
|
|
12192
|
+
&:active {
|
|
12193
|
+
--wui-data-card-background: var(--wui-color-bg-surface-secondary-active);
|
|
12189
12194
|
}
|
|
12190
12195
|
|
|
12191
12196
|
&:has([data-click-region-target-button]:focus-visible),
|
|
12192
12197
|
&:has([data-click-region-target-link]:focus-visible) {
|
|
12193
|
-
|
|
12194
|
-
|
|
12198
|
+
--wui-data-card-focus-ring: var(--wui-color-border);
|
|
12199
|
+
|
|
12200
|
+
box-shadow: inset 0 0 0 2px var(--wui-data-card-focus-ring);
|
|
12201
|
+
}
|
|
12202
|
+
|
|
12203
|
+
&:has([data-click-region-target-button][aria-pressed='true']) {
|
|
12204
|
+
--wui-data-card-text: var(--wui-color-text-selected);
|
|
12205
|
+
--wui-data-card-background: var(--wui-color-bg-surface-selected);
|
|
12206
|
+
--wui-data-card-background-hover: var(--wui-color-bg-surface-selected-hover);
|
|
12207
|
+
--wui-data-card-background-active: var(--wui-color-bg-surface-selected-active);
|
|
12208
|
+
--wui-data-card-focus-ring: var(--wui-color-border-selected);
|
|
12195
12209
|
}
|
|
12196
12210
|
}
|
|
12197
12211
|
|
|
@@ -12293,27 +12307,22 @@ var DataCardInner = ({
|
|
|
12293
12307
|
]
|
|
12294
12308
|
}
|
|
12295
12309
|
);
|
|
12296
|
-
var DataCardArrowIcon = /* @__PURE__ */ jsx253(
|
|
12297
|
-
Icon,
|
|
12298
|
-
{
|
|
12299
|
-
"data-wui-data-card-hover-icon": true,
|
|
12300
|
-
type: "arrow-right"
|
|
12301
|
-
}
|
|
12302
|
-
);
|
|
12303
12310
|
var DataCard = (props) => {
|
|
12304
12311
|
const ref = useRef15(null);
|
|
12305
12312
|
if (isNotNil20(props.href) || isNotNil20(props.onClick)) {
|
|
12313
|
+
const { "aria-pressed": ariaPressed, ...dataCardProps } = props;
|
|
12306
12314
|
return /* @__PURE__ */ jsx253(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ jsx253(
|
|
12307
12315
|
DataCardInner,
|
|
12308
12316
|
{
|
|
12309
|
-
upperRightSlot: props.upperRightSlot
|
|
12310
|
-
...
|
|
12317
|
+
upperRightSlot: props.upperRightSlot,
|
|
12318
|
+
...dataCardProps,
|
|
12311
12319
|
label: /* @__PURE__ */ jsx253(
|
|
12312
12320
|
Button,
|
|
12313
12321
|
{
|
|
12314
12322
|
ref,
|
|
12315
12323
|
...isNotNil20(props.beforeAction) ? { beforeAction: props.beforeAction } : {},
|
|
12316
12324
|
...isNotNil20(props.reloadDocument) ? { reloadDocument: props.reloadDocument } : {},
|
|
12325
|
+
"aria-pressed": ariaPressed,
|
|
12317
12326
|
disabled: props.disabled ?? false,
|
|
12318
12327
|
href: props.href,
|
|
12319
12328
|
onClick: props.onClick,
|
|
@@ -12401,9 +12410,27 @@ var DataCardTrend = ({
|
|
|
12401
12410
|
] });
|
|
12402
12411
|
};
|
|
12403
12412
|
|
|
12404
|
-
// src/components/
|
|
12405
|
-
import styled53
|
|
12413
|
+
// src/components/DataCards/DataCardHoverArrow.tsx
|
|
12414
|
+
import styled53 from "styled-components";
|
|
12406
12415
|
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
12416
|
+
var StyledIconContainer = styled53.div`
|
|
12417
|
+
display: flex;
|
|
12418
|
+
align-items: center;
|
|
12419
|
+
align-self: center;
|
|
12420
|
+
height: 0;
|
|
12421
|
+
`;
|
|
12422
|
+
var DataCardHoverArrow = () => /* @__PURE__ */ jsx256(StyledIconContainer, { children: /* @__PURE__ */ jsx256(
|
|
12423
|
+
Icon,
|
|
12424
|
+
{
|
|
12425
|
+
"data-wui-data-card-hover-icon": true,
|
|
12426
|
+
type: "arrow-right"
|
|
12427
|
+
}
|
|
12428
|
+
) });
|
|
12429
|
+
DataCardHoverArrow.displayName = "DataCardHoverArrow_UI";
|
|
12430
|
+
|
|
12431
|
+
// src/components/Divider/Divider.tsx
|
|
12432
|
+
import styled54, { css as css29 } from "styled-components";
|
|
12433
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
12407
12434
|
var horizontalBorderCss = css29`
|
|
12408
12435
|
border-top-color: var(--wui-color-border);
|
|
12409
12436
|
border-top-style: solid;
|
|
@@ -12417,7 +12444,7 @@ var verticalBorderCss = css29`
|
|
|
12417
12444
|
min-height: 100%;
|
|
12418
12445
|
width: 1px;
|
|
12419
12446
|
`;
|
|
12420
|
-
var DividerComponent =
|
|
12447
|
+
var DividerComponent = styled54.div`
|
|
12421
12448
|
${({ $orientation }) => {
|
|
12422
12449
|
switch ($orientation) {
|
|
12423
12450
|
case "vertical":
|
|
@@ -12429,7 +12456,7 @@ var DividerComponent = styled53.div`
|
|
|
12429
12456
|
}}
|
|
12430
12457
|
`;
|
|
12431
12458
|
var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
12432
|
-
return /* @__PURE__ */
|
|
12459
|
+
return /* @__PURE__ */ jsx257(
|
|
12433
12460
|
DividerComponent,
|
|
12434
12461
|
{
|
|
12435
12462
|
$orientation: orientation,
|
|
@@ -12442,10 +12469,10 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
|
12442
12469
|
Divider.displayName = "Divider_UI";
|
|
12443
12470
|
|
|
12444
12471
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
12445
|
-
import
|
|
12472
|
+
import styled55, { css as css30 } from "styled-components";
|
|
12446
12473
|
import { useState as useState16, useRef as useRef16 } from "react";
|
|
12447
|
-
import { Fragment as Fragment6, jsx as
|
|
12448
|
-
var StyledInput =
|
|
12474
|
+
import { Fragment as Fragment6, jsx as jsx258, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
12475
|
+
var StyledInput = styled55(Input)`
|
|
12449
12476
|
&:not([rows]) {
|
|
12450
12477
|
min-height: unset;
|
|
12451
12478
|
}
|
|
@@ -12475,7 +12502,7 @@ var editableStyles = css30`
|
|
|
12475
12502
|
cursor: pointer;
|
|
12476
12503
|
}
|
|
12477
12504
|
`;
|
|
12478
|
-
var StyledHeading2 =
|
|
12505
|
+
var StyledHeading2 = styled55(Heading)`
|
|
12479
12506
|
width: 100%;
|
|
12480
12507
|
border-radius: var(--wui-border-radius-02);
|
|
12481
12508
|
padding: var(--wui-space-02);
|
|
@@ -12530,7 +12557,7 @@ var EditableHeading = ({
|
|
|
12530
12557
|
handleSetEditing(false);
|
|
12531
12558
|
}
|
|
12532
12559
|
};
|
|
12533
|
-
const HeadingComponent2 = /* @__PURE__ */
|
|
12560
|
+
const HeadingComponent2 = /* @__PURE__ */ jsx258(
|
|
12534
12561
|
StyledHeading2,
|
|
12535
12562
|
{
|
|
12536
12563
|
ref: headingRef,
|
|
@@ -12544,7 +12571,7 @@ var EditableHeading = ({
|
|
|
12544
12571
|
return HeadingComponent2;
|
|
12545
12572
|
}
|
|
12546
12573
|
if (isEditing || __forceEditing) {
|
|
12547
|
-
return /* @__PURE__ */
|
|
12574
|
+
return /* @__PURE__ */ jsx258(
|
|
12548
12575
|
StyledInput,
|
|
12549
12576
|
{
|
|
12550
12577
|
$height: headingHeight,
|
|
@@ -12564,8 +12591,8 @@ var EditableHeading = ({
|
|
|
12564
12591
|
);
|
|
12565
12592
|
}
|
|
12566
12593
|
return /* @__PURE__ */ jsxs36(Fragment6, { children: [
|
|
12567
|
-
/* @__PURE__ */
|
|
12568
|
-
/* @__PURE__ */
|
|
12594
|
+
/* @__PURE__ */ jsx258(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
|
|
12595
|
+
/* @__PURE__ */ jsx258(ScreenReaderOnly, { children: /* @__PURE__ */ jsx258(
|
|
12569
12596
|
"button",
|
|
12570
12597
|
{
|
|
12571
12598
|
"aria-label": ariaLabel,
|
|
@@ -12615,9 +12642,9 @@ var useFormState = (action, initialData = {}) => {
|
|
|
12615
12642
|
// src/components/Form/FormErrorSummary.tsx
|
|
12616
12643
|
import { useContext as useContext5, useRef as useRef17 } from "react";
|
|
12617
12644
|
import { isArray as isArray2, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
|
|
12618
|
-
import { jsx as
|
|
12645
|
+
import { jsx as jsx259, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
12619
12646
|
var ErrorItem = ({ name, error, formId }) => {
|
|
12620
|
-
return /* @__PURE__ */
|
|
12647
|
+
return /* @__PURE__ */ jsx259("li", { children: /* @__PURE__ */ jsx259(Link, { href: `#${formId}-${name}`, children: error }) }, name);
|
|
12621
12648
|
};
|
|
12622
12649
|
var FormErrorSummary = ({ description }) => {
|
|
12623
12650
|
const ref = useRef17(null);
|
|
@@ -12627,9 +12654,9 @@ var FormErrorSummary = ({ description }) => {
|
|
|
12627
12654
|
return null;
|
|
12628
12655
|
}
|
|
12629
12656
|
return /* @__PURE__ */ jsxs37("div", { ref, children: [
|
|
12630
|
-
/* @__PURE__ */
|
|
12631
|
-
/* @__PURE__ */
|
|
12632
|
-
([name, error]) => isArray2(error) ? error.map((err) => /* @__PURE__ */
|
|
12657
|
+
/* @__PURE__ */ jsx259("p", { children: description }),
|
|
12658
|
+
/* @__PURE__ */ jsx259("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined9(error)).map(
|
|
12659
|
+
([name, error]) => isArray2(error) ? error.map((err) => /* @__PURE__ */ jsx259(
|
|
12633
12660
|
ErrorItem,
|
|
12634
12661
|
{
|
|
12635
12662
|
error: err,
|
|
@@ -12637,7 +12664,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
12637
12664
|
name
|
|
12638
12665
|
},
|
|
12639
12666
|
err
|
|
12640
|
-
)) : /* @__PURE__ */
|
|
12667
|
+
)) : /* @__PURE__ */ jsx259(
|
|
12641
12668
|
ErrorItem,
|
|
12642
12669
|
{
|
|
12643
12670
|
error: error ?? "",
|
|
@@ -12652,12 +12679,12 @@ var FormErrorSummary = ({ description }) => {
|
|
|
12652
12679
|
|
|
12653
12680
|
// src/components/FormField/FormField.tsx
|
|
12654
12681
|
import { Children as Children6, cloneElement as cloneElement5, useContext as useContext6 } from "react";
|
|
12655
|
-
import
|
|
12682
|
+
import styled57 from "styled-components";
|
|
12656
12683
|
import { isArray as isArray3, isNotNil as isNotNil21, isNotUndefined as isNotUndefined10, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
12657
12684
|
|
|
12658
12685
|
// src/components/Label/Label.tsx
|
|
12659
|
-
import
|
|
12660
|
-
import { jsx as
|
|
12686
|
+
import styled56, { css as css31 } from "styled-components";
|
|
12687
|
+
import { jsx as jsx260 } from "react/jsx-runtime";
|
|
12661
12688
|
var requiredStyle = css31`
|
|
12662
12689
|
&::after {
|
|
12663
12690
|
color: var(--wui-color-text-error);
|
|
@@ -12669,7 +12696,7 @@ var requiredStyle = css31`
|
|
|
12669
12696
|
var disabledStyle3 = css31`
|
|
12670
12697
|
color: var(--wui-color-text-disabled);
|
|
12671
12698
|
`;
|
|
12672
|
-
var StyledLabel3 =
|
|
12699
|
+
var StyledLabel3 = styled56.label`
|
|
12673
12700
|
display: block;
|
|
12674
12701
|
width: 100%;
|
|
12675
12702
|
color: var(--wui-color-text);
|
|
@@ -12701,7 +12728,7 @@ var Label = ({
|
|
|
12701
12728
|
screenReaderOnly = false,
|
|
12702
12729
|
...props
|
|
12703
12730
|
}) => {
|
|
12704
|
-
return /* @__PURE__ */
|
|
12731
|
+
return /* @__PURE__ */ jsx260(
|
|
12705
12732
|
StyledLabel3,
|
|
12706
12733
|
{
|
|
12707
12734
|
...props,
|
|
@@ -12716,8 +12743,8 @@ var Label = ({
|
|
|
12716
12743
|
Label.displayName = "Label_UI";
|
|
12717
12744
|
|
|
12718
12745
|
// src/components/FormField/FormField.tsx
|
|
12719
|
-
import { Fragment as Fragment7, jsx as
|
|
12720
|
-
var StyledFormField =
|
|
12746
|
+
import { Fragment as Fragment7, jsx as jsx261, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
12747
|
+
var StyledFormField = styled57.div`
|
|
12721
12748
|
--form-field-spacing: var(--wui-space-01);
|
|
12722
12749
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
12723
12750
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
@@ -12747,7 +12774,7 @@ var StyledFormField = styled56.div`
|
|
|
12747
12774
|
grid-template-rows: 1fr;
|
|
12748
12775
|
}
|
|
12749
12776
|
`;
|
|
12750
|
-
var StyledErrorList =
|
|
12777
|
+
var StyledErrorList = styled57.ul`
|
|
12751
12778
|
margin: 0;
|
|
12752
12779
|
padding: 0;
|
|
12753
12780
|
padding-left: var(--wui-space-04);
|
|
@@ -12759,7 +12786,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
12759
12786
|
const isErrorArray = isArray3(errors);
|
|
12760
12787
|
const isMultipleErrors = isErrorArray && errors.length > 1;
|
|
12761
12788
|
if (!isErrorArray) {
|
|
12762
|
-
return /* @__PURE__ */
|
|
12789
|
+
return /* @__PURE__ */ jsx261(
|
|
12763
12790
|
Text,
|
|
12764
12791
|
{
|
|
12765
12792
|
colorScheme: "error",
|
|
@@ -12772,7 +12799,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
12772
12799
|
);
|
|
12773
12800
|
}
|
|
12774
12801
|
if (!isMultipleErrors) {
|
|
12775
|
-
return /* @__PURE__ */
|
|
12802
|
+
return /* @__PURE__ */ jsx261(
|
|
12776
12803
|
Text,
|
|
12777
12804
|
{
|
|
12778
12805
|
colorScheme: "error",
|
|
@@ -12784,7 +12811,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
12784
12811
|
id
|
|
12785
12812
|
);
|
|
12786
12813
|
}
|
|
12787
|
-
return /* @__PURE__ */
|
|
12814
|
+
return /* @__PURE__ */ jsx261(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx261(
|
|
12788
12815
|
Text,
|
|
12789
12816
|
{
|
|
12790
12817
|
colorScheme: "error",
|
|
@@ -12854,12 +12881,12 @@ var FormField = ({
|
|
|
12854
12881
|
...props,
|
|
12855
12882
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
12856
12883
|
children: [
|
|
12857
|
-
!isIntegratedLabel && /* @__PURE__ */
|
|
12858
|
-
isNotNil21(description) ? /* @__PURE__ */
|
|
12884
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx261(Label, { htmlFor: computedId, children: label }),
|
|
12885
|
+
isNotNil21(description) ? /* @__PURE__ */ jsx261(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
12859
12886
|
cloneElement5(children, childProps),
|
|
12860
12887
|
isNotNil21(computedError) ? /* @__PURE__ */ jsxs38(Fragment7, { children: [
|
|
12861
|
-
/* @__PURE__ */
|
|
12862
|
-
/* @__PURE__ */
|
|
12888
|
+
/* @__PURE__ */ jsx261("div", {}),
|
|
12889
|
+
/* @__PURE__ */ jsx261(
|
|
12863
12890
|
ErrorMessages,
|
|
12864
12891
|
{
|
|
12865
12892
|
errors: computedError,
|
|
@@ -12875,7 +12902,7 @@ FormField.displayName = "FormField_UI";
|
|
|
12875
12902
|
|
|
12876
12903
|
// src/components/FormGroup/RadioGroup.tsx
|
|
12877
12904
|
import { createContext as createContext6, useMemo as useMemo12, useContext as useContext7 } from "react";
|
|
12878
|
-
import { jsx as
|
|
12905
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
12879
12906
|
var RadioGroupContext = createContext6(null);
|
|
12880
12907
|
var useRadioGroup = () => {
|
|
12881
12908
|
return useContext7(RadioGroupContext);
|
|
@@ -12896,15 +12923,15 @@ var RadioGroup = ({
|
|
|
12896
12923
|
value: derivedValue
|
|
12897
12924
|
};
|
|
12898
12925
|
}, [name, derivedValue, onChange]);
|
|
12899
|
-
return /* @__PURE__ */
|
|
12926
|
+
return /* @__PURE__ */ jsx262(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx262(FormGroup, { ...props, children }) });
|
|
12900
12927
|
};
|
|
12901
12928
|
RadioGroup.displayName = "RadioGroup_UI";
|
|
12902
12929
|
|
|
12903
12930
|
// src/components/Grid/Grid.tsx
|
|
12904
12931
|
import { forwardRef as forwardRef17 } from "react";
|
|
12905
|
-
import
|
|
12932
|
+
import styled58, { css as css32 } from "styled-components";
|
|
12906
12933
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
12907
|
-
import { jsx as
|
|
12934
|
+
import { jsx as jsx263 } from "react/jsx-runtime";
|
|
12908
12935
|
var DEFAULT_ELEMENT5 = "div";
|
|
12909
12936
|
var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
12910
12937
|
if (minChildWidth === "auto" && maxColumns === "auto") {
|
|
@@ -12932,7 +12959,7 @@ var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
|
12932
12959
|
);
|
|
12933
12960
|
`;
|
|
12934
12961
|
};
|
|
12935
|
-
var StyledGrid =
|
|
12962
|
+
var StyledGrid = styled58.div`
|
|
12936
12963
|
--wui-grid-column-gap: ${({ $columnGap }) => `var(--wui-${$columnGap})`};
|
|
12937
12964
|
--wui-grid-row-gap: ${({ $rowGap }) => `var(--wui-${$rowGap})`};
|
|
12938
12965
|
|
|
@@ -12956,7 +12983,7 @@ var GridComponent = forwardRef17(
|
|
|
12956
12983
|
const { column, row } = isRecord5(responsiveGap) ? responsiveGap : { column: responsiveGap, row: responsiveGap };
|
|
12957
12984
|
const responsiveColumns = useResponsiveProp(columns);
|
|
12958
12985
|
const responsiveMinChildWidth = useResponsiveProp(minChildWidth);
|
|
12959
|
-
return /* @__PURE__ */
|
|
12986
|
+
return /* @__PURE__ */ jsx263(
|
|
12960
12987
|
StyledGrid,
|
|
12961
12988
|
{
|
|
12962
12989
|
ref,
|
|
@@ -12976,11 +13003,11 @@ GridComponent.displayName = "Grid_UI";
|
|
|
12976
13003
|
var Grid = makePolymorphic(GridComponent);
|
|
12977
13004
|
|
|
12978
13005
|
// src/components/InputClickToCopy/InputClickToCopy.tsx
|
|
12979
|
-
import
|
|
13006
|
+
import styled59 from "styled-components";
|
|
12980
13007
|
import { forwardRef as forwardRef18, useEffect as useEffect16, useState as useState18 } from "react";
|
|
12981
13008
|
import { isFunction as isFunction3 } from "@wistia/type-guards";
|
|
12982
|
-
import { jsx as
|
|
12983
|
-
var StyledInput2 =
|
|
13009
|
+
import { jsx as jsx264 } from "react/jsx-runtime";
|
|
13010
|
+
var StyledInput2 = styled59(Input)`
|
|
12984
13011
|
&:not([aria-disabled='true']) {
|
|
12985
13012
|
cursor: pointer;
|
|
12986
13013
|
}
|
|
@@ -13017,7 +13044,7 @@ var InputClickToCopy = forwardRef18(
|
|
|
13017
13044
|
return value;
|
|
13018
13045
|
});
|
|
13019
13046
|
};
|
|
13020
|
-
return /* @__PURE__ */
|
|
13047
|
+
return /* @__PURE__ */ jsx264(
|
|
13021
13048
|
StyledInput2,
|
|
13022
13049
|
{
|
|
13023
13050
|
"aria-label": "Click to Copy",
|
|
@@ -13025,13 +13052,13 @@ var InputClickToCopy = forwardRef18(
|
|
|
13025
13052
|
ref,
|
|
13026
13053
|
onClick: handleClick,
|
|
13027
13054
|
readOnly: true,
|
|
13028
|
-
rightIcon: isCopied ? /* @__PURE__ */
|
|
13055
|
+
rightIcon: isCopied ? /* @__PURE__ */ jsx264(
|
|
13029
13056
|
Icon,
|
|
13030
13057
|
{
|
|
13031
13058
|
colorScheme: "success",
|
|
13032
13059
|
type: "checkmark-circle"
|
|
13033
13060
|
}
|
|
13034
|
-
) : /* @__PURE__ */
|
|
13061
|
+
) : /* @__PURE__ */ jsx264(Icon, { type: "save-as-copy" }),
|
|
13035
13062
|
value
|
|
13036
13063
|
}
|
|
13037
13064
|
);
|
|
@@ -13040,16 +13067,16 @@ var InputClickToCopy = forwardRef18(
|
|
|
13040
13067
|
InputClickToCopy.displayName = "InputClickToCopy_UI";
|
|
13041
13068
|
|
|
13042
13069
|
// src/components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
13043
|
-
import
|
|
13070
|
+
import styled60 from "styled-components";
|
|
13044
13071
|
import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
13045
|
-
import { jsx as
|
|
13046
|
-
var StyledKeyboardShortcut =
|
|
13072
|
+
import { jsx as jsx265, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
13073
|
+
var StyledKeyboardShortcut = styled60.div`
|
|
13047
13074
|
align-items: center;
|
|
13048
13075
|
display: flex;
|
|
13049
13076
|
gap: var(--wui-space-02);
|
|
13050
13077
|
${({ $fullWidth }) => $fullWidth && "width: 100%; justify-content: space-between;"}
|
|
13051
13078
|
`;
|
|
13052
|
-
var StyledKey =
|
|
13079
|
+
var StyledKey = styled60.kbd`
|
|
13053
13080
|
align-items: center;
|
|
13054
13081
|
background: var(--wui-color-bg-surface-secondary);
|
|
13055
13082
|
border-bottom: 1px solid var(--wui-color-border-secondary);
|
|
@@ -13072,11 +13099,11 @@ var StyledKey = styled59.kbd`
|
|
|
13072
13099
|
min-width: 20px;
|
|
13073
13100
|
padding: 0 var(--wui-space-01);
|
|
13074
13101
|
`;
|
|
13075
|
-
var Label2 =
|
|
13102
|
+
var Label2 = styled60.span`
|
|
13076
13103
|
color: var(--wui-color-text);
|
|
13077
13104
|
font-size: 12px;
|
|
13078
13105
|
`;
|
|
13079
|
-
var KeysContainer =
|
|
13106
|
+
var KeysContainer = styled60.div`
|
|
13080
13107
|
display: flex;
|
|
13081
13108
|
gap: var(--wui-space-01);
|
|
13082
13109
|
`;
|
|
@@ -13135,8 +13162,8 @@ var KeyboardShortcut = ({
|
|
|
13135
13162
|
$fullWidth: fullWidth,
|
|
13136
13163
|
...otherProps,
|
|
13137
13164
|
children: [
|
|
13138
|
-
isNotNil22(label) && /* @__PURE__ */
|
|
13139
|
-
/* @__PURE__ */
|
|
13165
|
+
isNotNil22(label) && /* @__PURE__ */ jsx265(Label2, { children: label }),
|
|
13166
|
+
/* @__PURE__ */ jsx265(KeysContainer, { children: (Array.isArray(keyboardKeys) ? keyboardKeys : [keyboardKeys]).map((keyboardKey, index) => /* @__PURE__ */ jsx265(
|
|
13140
13167
|
StyledKey,
|
|
13141
13168
|
{
|
|
13142
13169
|
children: keyToString(keyboardKey)
|
|
@@ -13150,25 +13177,25 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
13150
13177
|
|
|
13151
13178
|
// src/components/List/List.tsx
|
|
13152
13179
|
import { isNotNil as isNotNil23 } from "@wistia/type-guards";
|
|
13153
|
-
import
|
|
13180
|
+
import styled62, { css as css33 } from "styled-components";
|
|
13154
13181
|
|
|
13155
13182
|
// src/components/List/ListItem.tsx
|
|
13156
|
-
import
|
|
13183
|
+
import styled61 from "styled-components";
|
|
13157
13184
|
import { isNil as isNil15 } from "@wistia/type-guards";
|
|
13158
|
-
import { jsx as
|
|
13159
|
-
var ListItemComponent =
|
|
13185
|
+
import { jsx as jsx266 } from "react/jsx-runtime";
|
|
13186
|
+
var ListItemComponent = styled61.li`
|
|
13160
13187
|
margin-bottom: var(--wui-space-02);
|
|
13161
13188
|
`;
|
|
13162
13189
|
var ListItem = ({ children }) => {
|
|
13163
13190
|
if (isNil15(children)) {
|
|
13164
13191
|
return null;
|
|
13165
13192
|
}
|
|
13166
|
-
return /* @__PURE__ */
|
|
13193
|
+
return /* @__PURE__ */ jsx266(ListItemComponent, { children });
|
|
13167
13194
|
};
|
|
13168
13195
|
ListItem.displayName = "ListItem_UI";
|
|
13169
13196
|
|
|
13170
13197
|
// src/components/List/List.tsx
|
|
13171
|
-
import { jsx as
|
|
13198
|
+
import { jsx as jsx267, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
13172
13199
|
var spacesStyle = css33`
|
|
13173
13200
|
overflow: hidden;
|
|
13174
13201
|
padding-left: 0;
|
|
@@ -13227,7 +13254,7 @@ var unbulletedStyle = css33`
|
|
|
13227
13254
|
list-style: none;
|
|
13228
13255
|
padding-left: 0;
|
|
13229
13256
|
`;
|
|
13230
|
-
var ListComponent =
|
|
13257
|
+
var ListComponent = styled62.ul`
|
|
13231
13258
|
list-style-position: outside;
|
|
13232
13259
|
margin: 0 0 var(--wui-space-01);
|
|
13233
13260
|
padding: 0 0 0 var(--wui-space-04);
|
|
@@ -13254,7 +13281,7 @@ var ListComponent = styled61.ul`
|
|
|
13254
13281
|
`;
|
|
13255
13282
|
var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
13256
13283
|
const elementType = variant === "ordered" ? "ol" : "ul";
|
|
13257
|
-
return /* @__PURE__ */
|
|
13284
|
+
return /* @__PURE__ */ jsx267(
|
|
13258
13285
|
ListComponent,
|
|
13259
13286
|
{
|
|
13260
13287
|
as: elementType,
|
|
@@ -13279,7 +13306,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
13279
13306
|
if (Array.isArray(item)) {
|
|
13280
13307
|
return null;
|
|
13281
13308
|
}
|
|
13282
|
-
return /* @__PURE__ */
|
|
13309
|
+
return /* @__PURE__ */ jsx267(ListItem, { children: item }, key);
|
|
13283
13310
|
});
|
|
13284
13311
|
return renderListComponent(items, variant, otherProps);
|
|
13285
13312
|
};
|
|
@@ -13308,7 +13335,7 @@ List.displayName = "List_UI";
|
|
|
13308
13335
|
|
|
13309
13336
|
// src/components/Menu/Menu.tsx
|
|
13310
13337
|
import { forwardRef as forwardRef19, useMemo as useMemo13 } from "react";
|
|
13311
|
-
import
|
|
13338
|
+
import styled63, { css as css34, keyframes as keyframes3 } from "styled-components";
|
|
13312
13339
|
import {
|
|
13313
13340
|
DropdownMenu,
|
|
13314
13341
|
DropdownMenuTrigger,
|
|
@@ -13323,7 +13350,7 @@ var MenuContext = createContext7({ compact: false });
|
|
|
13323
13350
|
var useMenuContext = () => useContext8(MenuContext);
|
|
13324
13351
|
|
|
13325
13352
|
// src/components/Menu/Menu.tsx
|
|
13326
|
-
import { jsx as
|
|
13353
|
+
import { jsx as jsx268, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13327
13354
|
var open = keyframes3`
|
|
13328
13355
|
from {
|
|
13329
13356
|
opacity: 0;
|
|
@@ -13408,7 +13435,7 @@ var menuContentCss = css34`
|
|
|
13408
13435
|
margin: var(--menu-divider-margin) 0;
|
|
13409
13436
|
}
|
|
13410
13437
|
`;
|
|
13411
|
-
var MenuContent =
|
|
13438
|
+
var MenuContent = styled63(DropdownMenuContent)`
|
|
13412
13439
|
${menuContentCss}
|
|
13413
13440
|
min-width: var(--radix-dropdown-menu-trigger-width);
|
|
13414
13441
|
`;
|
|
@@ -13436,25 +13463,25 @@ var Menu = forwardRef19(
|
|
|
13436
13463
|
onOpenChange: () => null
|
|
13437
13464
|
};
|
|
13438
13465
|
}
|
|
13439
|
-
return /* @__PURE__ */
|
|
13466
|
+
return /* @__PURE__ */ jsx268(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs41(
|
|
13440
13467
|
DropdownMenu,
|
|
13441
13468
|
{
|
|
13442
13469
|
modal: false,
|
|
13443
13470
|
...controlProps,
|
|
13444
13471
|
children: [
|
|
13445
|
-
/* @__PURE__ */
|
|
13472
|
+
/* @__PURE__ */ jsx268(DropdownMenuTrigger, { asChild: true, children: isNotUndefined11(trigger) ? trigger : /* @__PURE__ */ jsx268(
|
|
13446
13473
|
Button,
|
|
13447
13474
|
{
|
|
13448
13475
|
ref,
|
|
13449
13476
|
"aria-expanded": isOpen,
|
|
13450
13477
|
disabled,
|
|
13451
13478
|
forceState: isOpen ? "active" : void 0,
|
|
13452
|
-
rightIcon: /* @__PURE__ */
|
|
13479
|
+
rightIcon: /* @__PURE__ */ jsx268(Icon, { type: "caret-down" }),
|
|
13453
13480
|
...triggerProps,
|
|
13454
13481
|
children: label
|
|
13455
13482
|
}
|
|
13456
13483
|
) }),
|
|
13457
|
-
/* @__PURE__ */
|
|
13484
|
+
/* @__PURE__ */ jsx268(DropdownMenuPortal, { children: /* @__PURE__ */ jsx268(
|
|
13458
13485
|
MenuContent,
|
|
13459
13486
|
{
|
|
13460
13487
|
...props,
|
|
@@ -13478,19 +13505,19 @@ Menu.displayName = "Menu_UI";
|
|
|
13478
13505
|
Menu.displayName = "Menu_UI";
|
|
13479
13506
|
|
|
13480
13507
|
// src/components/Menu/MenuLabel.tsx
|
|
13481
|
-
import
|
|
13508
|
+
import styled64 from "styled-components";
|
|
13482
13509
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
13483
|
-
import { jsx as
|
|
13484
|
-
var StyledMenuLabel =
|
|
13510
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
13511
|
+
var StyledMenuLabel = styled64(DropdownMenuLabel)`
|
|
13485
13512
|
padding: var(--wui-space-02);
|
|
13486
13513
|
`;
|
|
13487
13514
|
var MenuLabel = ({ children, ...props }) => {
|
|
13488
|
-
return /* @__PURE__ */
|
|
13515
|
+
return /* @__PURE__ */ jsx269(
|
|
13489
13516
|
StyledMenuLabel,
|
|
13490
13517
|
{
|
|
13491
13518
|
asChild: true,
|
|
13492
13519
|
...props,
|
|
13493
|
-
children: /* @__PURE__ */
|
|
13520
|
+
children: /* @__PURE__ */ jsx269(
|
|
13494
13521
|
Heading,
|
|
13495
13522
|
{
|
|
13496
13523
|
renderAs: "span",
|
|
@@ -13506,7 +13533,7 @@ MenuLabel.displayName = "MenuLabel_UI";
|
|
|
13506
13533
|
|
|
13507
13534
|
// src/components/Menu/SubMenu.tsx
|
|
13508
13535
|
import { useState as useState19 } from "react";
|
|
13509
|
-
import
|
|
13536
|
+
import styled67 from "styled-components";
|
|
13510
13537
|
import {
|
|
13511
13538
|
DropdownMenuPortal as DropdownMenuPortal2,
|
|
13512
13539
|
DropdownMenuSub,
|
|
@@ -13519,10 +13546,10 @@ import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
|
13519
13546
|
|
|
13520
13547
|
// src/components/Menu/MenuItemButton.tsx
|
|
13521
13548
|
import { forwardRef as forwardRef20 } from "react";
|
|
13522
|
-
import
|
|
13549
|
+
import styled65 from "styled-components";
|
|
13523
13550
|
import { isNotNil as isNotNil25, isNotUndefined as isNotUndefined12 } from "@wistia/type-guards";
|
|
13524
|
-
import { jsx as
|
|
13525
|
-
var StyledButton3 =
|
|
13551
|
+
import { jsx as jsx270, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
13552
|
+
var StyledButton3 = styled65(Button)`
|
|
13526
13553
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
13527
13554
|
|
|
13528
13555
|
display: flex;
|
|
@@ -13561,7 +13588,7 @@ var StyledButton3 = styled64(Button)`
|
|
|
13561
13588
|
padding-left: var(--wui-space-04);
|
|
13562
13589
|
}
|
|
13563
13590
|
`;
|
|
13564
|
-
var StyledLeftIconContainer =
|
|
13591
|
+
var StyledLeftIconContainer = styled65.div`
|
|
13565
13592
|
height: var(--menu-item-left-icon-size);
|
|
13566
13593
|
width: var(--menu-item-left-icon-size);
|
|
13567
13594
|
|
|
@@ -13572,7 +13599,7 @@ var StyledLeftIconContainer = styled64.div`
|
|
|
13572
13599
|
}
|
|
13573
13600
|
}
|
|
13574
13601
|
`;
|
|
13575
|
-
var StyledRightIconContainer =
|
|
13602
|
+
var StyledRightIconContainer = styled65.div`
|
|
13576
13603
|
height: var(--menu-item-right-icon-size);
|
|
13577
13604
|
width: var(--menu-item-right-icon-size);
|
|
13578
13605
|
|
|
@@ -13583,13 +13610,13 @@ var StyledRightIconContainer = styled64.div`
|
|
|
13583
13610
|
}
|
|
13584
13611
|
}
|
|
13585
13612
|
`;
|
|
13586
|
-
var StyledLabelAndDescriptionContainer =
|
|
13613
|
+
var StyledLabelAndDescriptionContainer = styled65.div`
|
|
13587
13614
|
display: flex;
|
|
13588
13615
|
flex-direction: column;
|
|
13589
13616
|
gap: var(--menu-label-description-gap);
|
|
13590
13617
|
flex-basis: 100%;
|
|
13591
13618
|
`;
|
|
13592
|
-
var StyledBadgeContainer =
|
|
13619
|
+
var StyledBadgeContainer = styled65.div`
|
|
13593
13620
|
align-self: start;
|
|
13594
13621
|
justify-self: end;
|
|
13595
13622
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -13604,7 +13631,7 @@ var MenuItemButton = forwardRef20(({ children, appearance, command, icon, ...pro
|
|
|
13604
13631
|
colorScheme = "error";
|
|
13605
13632
|
}
|
|
13606
13633
|
if (appearance === "gated") {
|
|
13607
|
-
badge = /* @__PURE__ */
|
|
13634
|
+
badge = /* @__PURE__ */ jsx270(
|
|
13608
13635
|
Icon,
|
|
13609
13636
|
{
|
|
13610
13637
|
colorScheme: "purple",
|
|
@@ -13626,10 +13653,10 @@ var MenuItemButton = forwardRef20(({ children, appearance, command, icon, ...pro
|
|
|
13626
13653
|
fullWidth: true,
|
|
13627
13654
|
unstyled: true,
|
|
13628
13655
|
children: [
|
|
13629
|
-
props.leftIcon ? /* @__PURE__ */
|
|
13630
|
-
/* @__PURE__ */
|
|
13631
|
-
isNotNil25(badge) || isNotNil25(command) ? /* @__PURE__ */
|
|
13632
|
-
props.rightIcon ? /* @__PURE__ */
|
|
13656
|
+
props.leftIcon ? /* @__PURE__ */ jsx270(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
13657
|
+
/* @__PURE__ */ jsx270(StyledLabelAndDescriptionContainer, { children }),
|
|
13658
|
+
isNotNil25(badge) || isNotNil25(command) ? /* @__PURE__ */ jsx270(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
13659
|
+
props.rightIcon ? /* @__PURE__ */ jsx270(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
13633
13660
|
]
|
|
13634
13661
|
}
|
|
13635
13662
|
);
|
|
@@ -13637,15 +13664,15 @@ var MenuItemButton = forwardRef20(({ children, appearance, command, icon, ...pro
|
|
|
13637
13664
|
MenuItemButton.displayName = "MenuItemButton_UI";
|
|
13638
13665
|
|
|
13639
13666
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
13640
|
-
import
|
|
13641
|
-
import { jsx as
|
|
13642
|
-
var StyledMenuItemLabel =
|
|
13643
|
-
var StyledMenuItemDescription =
|
|
13667
|
+
import styled66 from "styled-components";
|
|
13668
|
+
import { jsx as jsx271 } from "react/jsx-runtime";
|
|
13669
|
+
var StyledMenuItemLabel = styled66.span``;
|
|
13670
|
+
var StyledMenuItemDescription = styled66(Text)``;
|
|
13644
13671
|
var MenuItemLabel = ({ children }) => {
|
|
13645
|
-
return /* @__PURE__ */
|
|
13672
|
+
return /* @__PURE__ */ jsx271(StyledMenuItemLabel, { children });
|
|
13646
13673
|
};
|
|
13647
13674
|
var MenuItemDescription = ({ children }) => {
|
|
13648
|
-
return /* @__PURE__ */
|
|
13675
|
+
return /* @__PURE__ */ jsx271(
|
|
13649
13676
|
StyledMenuItemDescription,
|
|
13650
13677
|
{
|
|
13651
13678
|
prominence: "secondary",
|
|
@@ -13656,18 +13683,18 @@ var MenuItemDescription = ({ children }) => {
|
|
|
13656
13683
|
};
|
|
13657
13684
|
|
|
13658
13685
|
// src/components/Menu/SubMenu.tsx
|
|
13659
|
-
import { jsx as
|
|
13660
|
-
var SubMenuContent =
|
|
13686
|
+
import { jsx as jsx272, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
13687
|
+
var SubMenuContent = styled67(DropdownMenuSubContent)`
|
|
13661
13688
|
${menuContentCss}
|
|
13662
13689
|
|
|
13663
13690
|
${mq.smAndDown} {
|
|
13664
13691
|
transform: translateX(-100%) !important;
|
|
13665
13692
|
}
|
|
13666
13693
|
`;
|
|
13667
|
-
var StyledMobileSubMenuItems =
|
|
13694
|
+
var StyledMobileSubMenuItems = styled67.div`
|
|
13668
13695
|
margin-left: var(--wui-space-04);
|
|
13669
13696
|
`;
|
|
13670
|
-
var StyledSubTrigger =
|
|
13697
|
+
var StyledSubTrigger = styled67(DropdownMenuSubTrigger)`
|
|
13671
13698
|
outline: none;
|
|
13672
13699
|
|
|
13673
13700
|
&[data-state='open'],
|
|
@@ -13678,12 +13705,12 @@ var StyledSubTrigger = styled66(DropdownMenuSubTrigger)`
|
|
|
13678
13705
|
var SubMenuTrigger = ({ icon, ...props }) => {
|
|
13679
13706
|
const { isSmAndUp } = useMq();
|
|
13680
13707
|
const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
13681
|
-
return /* @__PURE__ */
|
|
13708
|
+
return /* @__PURE__ */ jsx272(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx272(
|
|
13682
13709
|
MenuItemButton,
|
|
13683
13710
|
{
|
|
13684
13711
|
...props,
|
|
13685
13712
|
leftIcon: icon,
|
|
13686
|
-
rightIcon: /* @__PURE__ */
|
|
13713
|
+
rightIcon: /* @__PURE__ */ jsx272(Icon, { type: "caret-right" })
|
|
13687
13714
|
}
|
|
13688
13715
|
) });
|
|
13689
13716
|
};
|
|
@@ -13699,10 +13726,10 @@ var SubMenu = ({
|
|
|
13699
13726
|
const { compact } = useMenuContext();
|
|
13700
13727
|
return isSmAndUp ? /* @__PURE__ */ jsxs43(DropdownMenuSub, { onOpenChange, children: [
|
|
13701
13728
|
/* @__PURE__ */ jsxs43(SubMenuTrigger, { ...props, children: [
|
|
13702
|
-
/* @__PURE__ */
|
|
13703
|
-
isNotNil26(description) ? /* @__PURE__ */
|
|
13729
|
+
/* @__PURE__ */ jsx272(MenuItemLabel, { children: label }),
|
|
13730
|
+
isNotNil26(description) ? /* @__PURE__ */ jsx272(MenuItemDescription, { children: description }) : null
|
|
13704
13731
|
] }),
|
|
13705
|
-
/* @__PURE__ */
|
|
13732
|
+
/* @__PURE__ */ jsx272(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx272(SubMenuContent, { $compact: compact, children }) })
|
|
13706
13733
|
] }) : /* @__PURE__ */ jsxs43(DropdownMenuGroup, { children: [
|
|
13707
13734
|
/* @__PURE__ */ jsxs43(
|
|
13708
13735
|
SubMenuTrigger,
|
|
@@ -13713,12 +13740,12 @@ var SubMenu = ({
|
|
|
13713
13740
|
setIsExpanded((prev) => !prev);
|
|
13714
13741
|
},
|
|
13715
13742
|
children: [
|
|
13716
|
-
/* @__PURE__ */
|
|
13717
|
-
/* @__PURE__ */
|
|
13743
|
+
/* @__PURE__ */ jsx272(MenuItemLabel, { children: label }),
|
|
13744
|
+
/* @__PURE__ */ jsx272(MenuItemDescription, { children: description })
|
|
13718
13745
|
]
|
|
13719
13746
|
}
|
|
13720
13747
|
),
|
|
13721
|
-
/* @__PURE__ */
|
|
13748
|
+
/* @__PURE__ */ jsx272(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
|
|
13722
13749
|
] });
|
|
13723
13750
|
};
|
|
13724
13751
|
SubMenu.displayName = "SubMenu_UI";
|
|
@@ -13726,15 +13753,15 @@ SubMenu.displayName = "SubMenu_UI";
|
|
|
13726
13753
|
// src/components/Menu/MenuItem.tsx
|
|
13727
13754
|
import { forwardRef as forwardRef21 } from "react";
|
|
13728
13755
|
import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
|
|
13729
|
-
import { jsx as
|
|
13756
|
+
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
13730
13757
|
var MenuItem = forwardRef21(
|
|
13731
13758
|
({ onSelect = () => null, ...props }, ref) => {
|
|
13732
|
-
return /* @__PURE__ */
|
|
13759
|
+
return /* @__PURE__ */ jsx273(
|
|
13733
13760
|
DropdownMenuItem2,
|
|
13734
13761
|
{
|
|
13735
13762
|
asChild: true,
|
|
13736
13763
|
onSelect,
|
|
13737
|
-
children: /* @__PURE__ */
|
|
13764
|
+
children: /* @__PURE__ */ jsx273(
|
|
13738
13765
|
MenuItemButton,
|
|
13739
13766
|
{
|
|
13740
13767
|
...props,
|
|
@@ -13752,9 +13779,9 @@ MenuItem.displayName = "MenuItem_UI";
|
|
|
13752
13779
|
import {
|
|
13753
13780
|
DropdownMenuRadioGroup
|
|
13754
13781
|
} from "@radix-ui/react-dropdown-menu";
|
|
13755
|
-
import { jsx as
|
|
13782
|
+
import { jsx as jsx274 } from "react/jsx-runtime";
|
|
13756
13783
|
var MenuRadioGroup = ({ children, ...props }) => {
|
|
13757
|
-
return /* @__PURE__ */
|
|
13784
|
+
return /* @__PURE__ */ jsx274(DropdownMenuRadioGroup, { ...props, children });
|
|
13758
13785
|
};
|
|
13759
13786
|
MenuRadioGroup.displayName = "MenuRadioGroup_UI";
|
|
13760
13787
|
|
|
@@ -13763,11 +13790,11 @@ import {
|
|
|
13763
13790
|
DropdownMenuItemIndicator,
|
|
13764
13791
|
DropdownMenuRadioItem
|
|
13765
13792
|
} from "@radix-ui/react-dropdown-menu";
|
|
13766
|
-
import { jsx as
|
|
13793
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
13767
13794
|
var RadioMenuItem = ({
|
|
13768
13795
|
onSelect,
|
|
13769
13796
|
value,
|
|
13770
|
-
indicator = /* @__PURE__ */
|
|
13797
|
+
indicator = /* @__PURE__ */ jsx275(
|
|
13771
13798
|
Icon,
|
|
13772
13799
|
{
|
|
13773
13800
|
size: "sm",
|
|
@@ -13777,17 +13804,17 @@ var RadioMenuItem = ({
|
|
|
13777
13804
|
...props
|
|
13778
13805
|
}) => {
|
|
13779
13806
|
const extraProps = onSelect ? { onSelect } : {};
|
|
13780
|
-
return /* @__PURE__ */
|
|
13807
|
+
return /* @__PURE__ */ jsx275(
|
|
13781
13808
|
DropdownMenuRadioItem,
|
|
13782
13809
|
{
|
|
13783
13810
|
...extraProps,
|
|
13784
13811
|
asChild: true,
|
|
13785
13812
|
value,
|
|
13786
|
-
children: /* @__PURE__ */
|
|
13813
|
+
children: /* @__PURE__ */ jsx275(
|
|
13787
13814
|
MenuItemButton,
|
|
13788
13815
|
{
|
|
13789
13816
|
...props,
|
|
13790
|
-
rightIcon: /* @__PURE__ */
|
|
13817
|
+
rightIcon: /* @__PURE__ */ jsx275(DropdownMenuItemIndicator, { children: indicator })
|
|
13791
13818
|
}
|
|
13792
13819
|
)
|
|
13793
13820
|
}
|
|
@@ -13801,7 +13828,7 @@ import {
|
|
|
13801
13828
|
DropdownMenuItemIndicator as DropdownMenuItemIndicator2
|
|
13802
13829
|
} from "@radix-ui/react-dropdown-menu";
|
|
13803
13830
|
import { isNotNil as isNotNil27 } from "@wistia/type-guards";
|
|
13804
|
-
import { jsx as
|
|
13831
|
+
import { jsx as jsx276, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
13805
13832
|
var CheckboxIndicator = ({ checked, ...props }) => {
|
|
13806
13833
|
return checked ? /* @__PURE__ */ jsxs44(
|
|
13807
13834
|
"svg",
|
|
@@ -13813,14 +13840,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
|
|
|
13813
13840
|
width: "24",
|
|
13814
13841
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13815
13842
|
children: [
|
|
13816
|
-
/* @__PURE__ */
|
|
13843
|
+
/* @__PURE__ */ jsx276(
|
|
13817
13844
|
"path",
|
|
13818
13845
|
{
|
|
13819
13846
|
d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
|
|
13820
13847
|
fill: "#2949e5"
|
|
13821
13848
|
}
|
|
13822
13849
|
),
|
|
13823
|
-
/* @__PURE__ */
|
|
13850
|
+
/* @__PURE__ */ jsx276(
|
|
13824
13851
|
"path",
|
|
13825
13852
|
{
|
|
13826
13853
|
d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
|
|
@@ -13839,14 +13866,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
|
|
|
13839
13866
|
width: "24",
|
|
13840
13867
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13841
13868
|
children: [
|
|
13842
|
-
/* @__PURE__ */
|
|
13869
|
+
/* @__PURE__ */ jsx276(
|
|
13843
13870
|
"path",
|
|
13844
13871
|
{
|
|
13845
13872
|
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
13846
13873
|
fill: "#fcfcfd"
|
|
13847
13874
|
}
|
|
13848
13875
|
),
|
|
13849
|
-
/* @__PURE__ */
|
|
13876
|
+
/* @__PURE__ */ jsx276(
|
|
13850
13877
|
"path",
|
|
13851
13878
|
{
|
|
13852
13879
|
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
@@ -13863,19 +13890,19 @@ var CheckboxMenuItem = ({
|
|
|
13863
13890
|
onCheckedChange,
|
|
13864
13891
|
...props
|
|
13865
13892
|
}) => {
|
|
13866
|
-
return /* @__PURE__ */
|
|
13893
|
+
return /* @__PURE__ */ jsx276(
|
|
13867
13894
|
DropdownMenuCheckboxItem,
|
|
13868
13895
|
{
|
|
13869
13896
|
asChild: true,
|
|
13870
13897
|
checked,
|
|
13871
13898
|
onCheckedChange,
|
|
13872
13899
|
onSelect,
|
|
13873
|
-
children: /* @__PURE__ */
|
|
13900
|
+
children: /* @__PURE__ */ jsx276(
|
|
13874
13901
|
MenuItemButton,
|
|
13875
13902
|
{
|
|
13876
13903
|
...props,
|
|
13877
|
-
leftIcon: isNotNil27(props.icon) ? props.icon : /* @__PURE__ */
|
|
13878
|
-
rightIcon: isNotNil27(props.icon) ? /* @__PURE__ */
|
|
13904
|
+
leftIcon: isNotNil27(props.icon) ? props.icon : /* @__PURE__ */ jsx276(CheckboxIndicator, { checked }),
|
|
13905
|
+
rightIcon: isNotNil27(props.icon) ? /* @__PURE__ */ jsx276(DropdownMenuItemIndicator2, { children: /* @__PURE__ */ jsx276(Icon, { type: "checkmark" }) }) : void 0
|
|
13879
13906
|
}
|
|
13880
13907
|
)
|
|
13881
13908
|
}
|
|
@@ -13886,7 +13913,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem_UI";
|
|
|
13886
13913
|
// src/components/Menu/FilterMenu.tsx
|
|
13887
13914
|
import { Children as Children7, forwardRef as forwardRef22 } from "react";
|
|
13888
13915
|
import { DropdownMenuItem as DropdownMenuItem3 } from "@radix-ui/react-dropdown-menu";
|
|
13889
|
-
import { jsx as
|
|
13916
|
+
import { jsx as jsx277, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
13890
13917
|
var FilterMenuItem = CheckboxMenuItem;
|
|
13891
13918
|
var FilterMenu = forwardRef22(
|
|
13892
13919
|
({ value, onChange, searchValue, onSearchValueChange, children, ...props }, ref) => {
|
|
@@ -13896,7 +13923,7 @@ var FilterMenu = forwardRef22(
|
|
|
13896
13923
|
...props,
|
|
13897
13924
|
ref,
|
|
13898
13925
|
children: [
|
|
13899
|
-
/* @__PURE__ */
|
|
13926
|
+
/* @__PURE__ */ jsx277(
|
|
13900
13927
|
Card,
|
|
13901
13928
|
{
|
|
13902
13929
|
alignItems: "flex-end",
|
|
@@ -13911,7 +13938,7 @@ var FilterMenu = forwardRef22(
|
|
|
13911
13938
|
right: 0,
|
|
13912
13939
|
margin: "1px"
|
|
13913
13940
|
},
|
|
13914
|
-
children: /* @__PURE__ */
|
|
13941
|
+
children: /* @__PURE__ */ jsx277(
|
|
13915
13942
|
Input,
|
|
13916
13943
|
{
|
|
13917
13944
|
autoFocus: true,
|
|
@@ -13937,7 +13964,7 @@ var FilterMenu = forwardRef22(
|
|
|
13937
13964
|
)
|
|
13938
13965
|
}
|
|
13939
13966
|
),
|
|
13940
|
-
/* @__PURE__ */
|
|
13967
|
+
/* @__PURE__ */ jsx277(
|
|
13941
13968
|
MenuItem,
|
|
13942
13969
|
{
|
|
13943
13970
|
disabled: true,
|
|
@@ -13945,13 +13972,13 @@ var FilterMenu = forwardRef22(
|
|
|
13945
13972
|
children: " "
|
|
13946
13973
|
}
|
|
13947
13974
|
),
|
|
13948
|
-
Children7.toArray(children).length > 0 ? children : /* @__PURE__ */
|
|
13949
|
-
value.length > 0 && /* @__PURE__ */
|
|
13975
|
+
Children7.toArray(children).length > 0 ? children : /* @__PURE__ */ jsx277(MenuItem, { disabled: true, children: "No results found" }),
|
|
13976
|
+
value.length > 0 && /* @__PURE__ */ jsx277(
|
|
13950
13977
|
DropdownMenuItem3,
|
|
13951
13978
|
{
|
|
13952
13979
|
disabled: true,
|
|
13953
13980
|
style: { marginTop: "24px" },
|
|
13954
|
-
children: /* @__PURE__ */
|
|
13981
|
+
children: /* @__PURE__ */ jsx277(
|
|
13955
13982
|
Card,
|
|
13956
13983
|
{
|
|
13957
13984
|
alignItems: "flex-end",
|
|
@@ -13966,7 +13993,7 @@ var FilterMenu = forwardRef22(
|
|
|
13966
13993
|
right: 0,
|
|
13967
13994
|
margin: "1px"
|
|
13968
13995
|
},
|
|
13969
|
-
children: /* @__PURE__ */
|
|
13996
|
+
children: /* @__PURE__ */ jsx277(
|
|
13970
13997
|
Button,
|
|
13971
13998
|
{
|
|
13972
13999
|
onClick: () => onChange([]),
|
|
@@ -13987,36 +14014,36 @@ FilterMenu.displayName = "FilterMenu_UI";
|
|
|
13987
14014
|
|
|
13988
14015
|
// src/components/Modal/Modal.tsx
|
|
13989
14016
|
import { forwardRef as forwardRef24 } from "react";
|
|
13990
|
-
import
|
|
14017
|
+
import styled72 from "styled-components";
|
|
13991
14018
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
13992
14019
|
import { isNotNil as isNotNil29 } from "@wistia/type-guards";
|
|
13993
14020
|
|
|
13994
14021
|
// src/components/Modal/ModalHeader.tsx
|
|
13995
|
-
import
|
|
14022
|
+
import styled69 from "styled-components";
|
|
13996
14023
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
13997
14024
|
|
|
13998
14025
|
// src/components/Modal/ModalCloseButton.tsx
|
|
13999
|
-
import
|
|
14026
|
+
import styled68 from "styled-components";
|
|
14000
14027
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
14001
|
-
import { jsx as
|
|
14002
|
-
var CloseButton =
|
|
14028
|
+
import { jsx as jsx278 } from "react/jsx-runtime";
|
|
14029
|
+
var CloseButton = styled68(DialogClose)`
|
|
14003
14030
|
align-self: start;
|
|
14004
14031
|
`;
|
|
14005
14032
|
var ModalCloseButton = () => {
|
|
14006
|
-
return /* @__PURE__ */
|
|
14033
|
+
return /* @__PURE__ */ jsx278(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx278(
|
|
14007
14034
|
IconButton,
|
|
14008
14035
|
{
|
|
14009
14036
|
label: "Dismiss modal",
|
|
14010
14037
|
size: "sm",
|
|
14011
14038
|
variant: "ghost",
|
|
14012
|
-
children: /* @__PURE__ */
|
|
14039
|
+
children: /* @__PURE__ */ jsx278(Icon, { type: "close" })
|
|
14013
14040
|
}
|
|
14014
14041
|
) });
|
|
14015
14042
|
};
|
|
14016
14043
|
|
|
14017
14044
|
// src/components/Modal/ModalHeader.tsx
|
|
14018
|
-
import { jsx as
|
|
14019
|
-
var Header =
|
|
14045
|
+
import { jsx as jsx279, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
14046
|
+
var Header = styled69.header`
|
|
14020
14047
|
display: flex;
|
|
14021
14048
|
order: 1;
|
|
14022
14049
|
gap: var(--wui-space-01);
|
|
@@ -14027,7 +14054,7 @@ var Header = styled68.header`
|
|
|
14027
14054
|
margin: 0 0 var(--wui-space-03);
|
|
14028
14055
|
}
|
|
14029
14056
|
`;
|
|
14030
|
-
var Title =
|
|
14057
|
+
var Title = styled69(DialogTitle)`
|
|
14031
14058
|
font-family: var(--wui-typography-heading-2-family);
|
|
14032
14059
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
14033
14060
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -14038,16 +14065,16 @@ var ModalHeader = ({
|
|
|
14038
14065
|
hideTitle,
|
|
14039
14066
|
hideCloseButton
|
|
14040
14067
|
}) => {
|
|
14041
|
-
const TitleComponent = hideTitle ? /* @__PURE__ */
|
|
14068
|
+
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx279(ScreenReaderOnly, { children: /* @__PURE__ */ jsx279(Title, { children: title }) }) : /* @__PURE__ */ jsx279(Title, { children: title });
|
|
14042
14069
|
return /* @__PURE__ */ jsxs46(Header, { $hideTitle: hideTitle, children: [
|
|
14043
14070
|
TitleComponent,
|
|
14044
|
-
hideCloseButton ? null : /* @__PURE__ */
|
|
14071
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx279(ModalCloseButton, {})
|
|
14045
14072
|
] });
|
|
14046
14073
|
};
|
|
14047
14074
|
|
|
14048
14075
|
// src/components/Modal/ModalContent.tsx
|
|
14049
14076
|
import { forwardRef as forwardRef23 } from "react";
|
|
14050
|
-
import
|
|
14077
|
+
import styled70, { css as css35, keyframes as keyframes4 } from "styled-components";
|
|
14051
14078
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
14052
14079
|
|
|
14053
14080
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -14070,7 +14097,7 @@ var useFocusRestore = () => {
|
|
|
14070
14097
|
};
|
|
14071
14098
|
|
|
14072
14099
|
// src/components/Modal/ModalContent.tsx
|
|
14073
|
-
import { jsx as
|
|
14100
|
+
import { jsx as jsx280 } from "react/jsx-runtime";
|
|
14074
14101
|
var modalEnter = keyframes4`
|
|
14075
14102
|
from {
|
|
14076
14103
|
opacity: 0;
|
|
@@ -14168,7 +14195,7 @@ var positionStyleMap = {
|
|
|
14168
14195
|
"fixed-top": fixedTopModalStyles,
|
|
14169
14196
|
"right-side-panel": rightSidePanelModalStyles
|
|
14170
14197
|
};
|
|
14171
|
-
var StyledModalContent =
|
|
14198
|
+
var StyledModalContent = styled70(DialogContent)`
|
|
14172
14199
|
position: fixed;
|
|
14173
14200
|
display: flex;
|
|
14174
14201
|
flex-direction: column;
|
|
@@ -14199,7 +14226,7 @@ var StyledModalContent = styled69(DialogContent)`
|
|
|
14199
14226
|
var ModalContent = forwardRef23(
|
|
14200
14227
|
({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
|
|
14201
14228
|
useFocusRestore();
|
|
14202
|
-
return /* @__PURE__ */
|
|
14229
|
+
return /* @__PURE__ */ jsx280(
|
|
14203
14230
|
StyledModalContent,
|
|
14204
14231
|
{
|
|
14205
14232
|
ref,
|
|
@@ -14215,7 +14242,7 @@ var ModalContent = forwardRef23(
|
|
|
14215
14242
|
|
|
14216
14243
|
// src/components/Modal/ModalOverlay.tsx
|
|
14217
14244
|
import { DialogOverlay } from "@radix-ui/react-dialog";
|
|
14218
|
-
import
|
|
14245
|
+
import styled71, { keyframes as keyframes5 } from "styled-components";
|
|
14219
14246
|
var backdropShow = keyframes5`
|
|
14220
14247
|
from {
|
|
14221
14248
|
opacity: 0;
|
|
@@ -14234,7 +14261,7 @@ var backdropHide = keyframes5`
|
|
|
14234
14261
|
opacity: 0;
|
|
14235
14262
|
}
|
|
14236
14263
|
`;
|
|
14237
|
-
var ModalOverlay =
|
|
14264
|
+
var ModalOverlay = styled71(DialogOverlay)`
|
|
14238
14265
|
animation: ${backdropShow} var(--wui-motion-duration-02);
|
|
14239
14266
|
background: var(--wui-color-backdrop);
|
|
14240
14267
|
inset: 0;
|
|
@@ -14247,9 +14274,9 @@ var ModalOverlay = styled70(DialogOverlay)`
|
|
|
14247
14274
|
`;
|
|
14248
14275
|
|
|
14249
14276
|
// src/components/Modal/Modal.tsx
|
|
14250
|
-
import { jsx as
|
|
14277
|
+
import { jsx as jsx281, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
14251
14278
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
14252
|
-
var ModalBody =
|
|
14279
|
+
var ModalBody = styled72.div`
|
|
14253
14280
|
flex-direction: column;
|
|
14254
14281
|
display: flex;
|
|
14255
14282
|
flex: 1 0 0;
|
|
@@ -14268,7 +14295,7 @@ var Modal = forwardRef24(
|
|
|
14268
14295
|
width = DEFAULT_MODAL_WIDTH,
|
|
14269
14296
|
...props
|
|
14270
14297
|
}, ref) => {
|
|
14271
|
-
return /* @__PURE__ */
|
|
14298
|
+
return /* @__PURE__ */ jsx281(
|
|
14272
14299
|
DialogRoot,
|
|
14273
14300
|
{
|
|
14274
14301
|
onOpenChange: (open2) => {
|
|
@@ -14278,7 +14305,7 @@ var Modal = forwardRef24(
|
|
|
14278
14305
|
},
|
|
14279
14306
|
open: isOpen,
|
|
14280
14307
|
children: /* @__PURE__ */ jsxs47(DialogPortal, { children: [
|
|
14281
|
-
/* @__PURE__ */
|
|
14308
|
+
/* @__PURE__ */ jsx281(ModalOverlay, {}),
|
|
14282
14309
|
/* @__PURE__ */ jsxs47(
|
|
14283
14310
|
ModalContent,
|
|
14284
14311
|
{
|
|
@@ -14295,8 +14322,8 @@ var Modal = forwardRef24(
|
|
|
14295
14322
|
width,
|
|
14296
14323
|
...props,
|
|
14297
14324
|
children: [
|
|
14298
|
-
/* @__PURE__ */
|
|
14299
|
-
/* @__PURE__ */
|
|
14325
|
+
/* @__PURE__ */ jsx281(ModalBody, { children }),
|
|
14326
|
+
/* @__PURE__ */ jsx281(
|
|
14300
14327
|
ModalHeader,
|
|
14301
14328
|
{
|
|
14302
14329
|
hideCloseButton,
|
|
@@ -14316,7 +14343,7 @@ Modal.displayName = "Modal_UI";
|
|
|
14316
14343
|
|
|
14317
14344
|
// src/components/Popover/Popover.tsx
|
|
14318
14345
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
14319
|
-
import
|
|
14346
|
+
import styled74, { css as css37 } from "styled-components";
|
|
14320
14347
|
|
|
14321
14348
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
14322
14349
|
import { isNotNil as isNotNil30 } from "@wistia/type-guards";
|
|
@@ -14326,9 +14353,9 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
14326
14353
|
|
|
14327
14354
|
// src/components/Popover/PopoverArrow.tsx
|
|
14328
14355
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
14329
|
-
import
|
|
14330
|
-
import { jsx as
|
|
14331
|
-
var StyledPath =
|
|
14356
|
+
import styled73, { css as css36, keyframes as keyframes6 } from "styled-components";
|
|
14357
|
+
import { jsx as jsx282, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
14358
|
+
var StyledPath = styled73.path`
|
|
14332
14359
|
fill: var(--wui-color-border-secondary);
|
|
14333
14360
|
`;
|
|
14334
14361
|
var circleAnimation = keyframes6`
|
|
@@ -14339,7 +14366,7 @@ var circleAnimation = keyframes6`
|
|
|
14339
14366
|
opacity: 0;
|
|
14340
14367
|
}
|
|
14341
14368
|
`;
|
|
14342
|
-
var StyledCircle =
|
|
14369
|
+
var StyledCircle = styled73.circle`
|
|
14343
14370
|
stroke: var(--wui-color-border-active);
|
|
14344
14371
|
animation-duration: 2s;
|
|
14345
14372
|
animation-iteration-count: infinite;
|
|
@@ -14366,7 +14393,7 @@ var StyledCircle = styled72.circle`
|
|
|
14366
14393
|
}
|
|
14367
14394
|
`;
|
|
14368
14395
|
var PopoverArrow = ({ isAnimated }) => {
|
|
14369
|
-
return /* @__PURE__ */
|
|
14396
|
+
return /* @__PURE__ */ jsx282(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs48(
|
|
14370
14397
|
"svg",
|
|
14371
14398
|
{
|
|
14372
14399
|
fill: "none",
|
|
@@ -14375,8 +14402,8 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
14375
14402
|
width: "48",
|
|
14376
14403
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14377
14404
|
children: [
|
|
14378
|
-
/* @__PURE__ */
|
|
14379
|
-
/* @__PURE__ */
|
|
14405
|
+
/* @__PURE__ */ jsx282(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" }),
|
|
14406
|
+
/* @__PURE__ */ jsx282(
|
|
14380
14407
|
StyledCircle,
|
|
14381
14408
|
{
|
|
14382
14409
|
$isAnimated: isAnimated,
|
|
@@ -14387,7 +14414,7 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
14387
14414
|
strokeWidth: "4"
|
|
14388
14415
|
}
|
|
14389
14416
|
),
|
|
14390
|
-
/* @__PURE__ */
|
|
14417
|
+
/* @__PURE__ */ jsx282(
|
|
14391
14418
|
StyledCircle,
|
|
14392
14419
|
{
|
|
14393
14420
|
$isAnimated: isAnimated,
|
|
@@ -14405,8 +14432,8 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
14405
14432
|
PopoverArrow.displayName = "PopoverArrow_UI";
|
|
14406
14433
|
|
|
14407
14434
|
// src/components/Popover/Popover.tsx
|
|
14408
|
-
import { jsx as
|
|
14409
|
-
var StyledContent2 =
|
|
14435
|
+
import { jsx as jsx283, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
14436
|
+
var StyledContent2 = styled74(Content2)`
|
|
14410
14437
|
z-index: var(--wui-zindex-popover);
|
|
14411
14438
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
14412
14439
|
${({ $unstyled }) => !$unstyled && css37`
|
|
@@ -14446,8 +14473,8 @@ var Popover2 = ({
|
|
|
14446
14473
|
"--wui-popover-max-height": maxHeight
|
|
14447
14474
|
};
|
|
14448
14475
|
return /* @__PURE__ */ jsxs49(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
14449
|
-
/* @__PURE__ */
|
|
14450
|
-
/* @__PURE__ */
|
|
14476
|
+
/* @__PURE__ */ jsx283(Trigger2, { asChild: true, children: trigger }),
|
|
14477
|
+
/* @__PURE__ */ jsx283(Portal, { children: /* @__PURE__ */ jsxs49(
|
|
14451
14478
|
StyledContent2,
|
|
14452
14479
|
{
|
|
14453
14480
|
$colorScheme: colorScheme,
|
|
@@ -14456,17 +14483,17 @@ var Popover2 = ({
|
|
|
14456
14483
|
$unstyled: unstyled,
|
|
14457
14484
|
style,
|
|
14458
14485
|
children: [
|
|
14459
|
-
!hideCloseButton && /* @__PURE__ */
|
|
14486
|
+
!hideCloseButton && /* @__PURE__ */ jsx283(Close, { asChild: true, children: /* @__PURE__ */ jsx283(
|
|
14460
14487
|
IconButton,
|
|
14461
14488
|
{
|
|
14462
14489
|
"data-wui-popover-close": true,
|
|
14463
14490
|
label: "Close",
|
|
14464
14491
|
variant: "ghost",
|
|
14465
|
-
children: /* @__PURE__ */
|
|
14492
|
+
children: /* @__PURE__ */ jsx283(Icon, { type: "close" })
|
|
14466
14493
|
}
|
|
14467
14494
|
) }),
|
|
14468
|
-
withArrow ? /* @__PURE__ */
|
|
14469
|
-
/* @__PURE__ */
|
|
14495
|
+
withArrow ? /* @__PURE__ */ jsx283(PopoverArrow, { isAnimated }) : null,
|
|
14496
|
+
/* @__PURE__ */ jsx283("div", { children })
|
|
14470
14497
|
]
|
|
14471
14498
|
}
|
|
14472
14499
|
) })
|
|
@@ -14475,11 +14502,11 @@ var Popover2 = ({
|
|
|
14475
14502
|
Popover2.displayName = "Popover_UI";
|
|
14476
14503
|
|
|
14477
14504
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
14478
|
-
import
|
|
14505
|
+
import styled75 from "styled-components";
|
|
14479
14506
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
14480
14507
|
import { isNotNil as isNotNil31 } from "@wistia/type-guards";
|
|
14481
|
-
import { jsx as
|
|
14482
|
-
var ProgressBarWrapper =
|
|
14508
|
+
import { jsx as jsx284, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
14509
|
+
var ProgressBarWrapper = styled75.div`
|
|
14483
14510
|
--progress-bar-height: 8px;
|
|
14484
14511
|
--progress-bar-indicator-color: var(--wui-color-bg-fill);
|
|
14485
14512
|
--progress-bar-background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -14495,7 +14522,7 @@ var getTranslateValue = (progress, max) => {
|
|
|
14495
14522
|
const progressPercentage = progress / max * 100;
|
|
14496
14523
|
return `translateX(-${100 - progressPercentage}%)`;
|
|
14497
14524
|
};
|
|
14498
|
-
var ProgressBarLabel =
|
|
14525
|
+
var ProgressBarLabel = styled75.div`
|
|
14499
14526
|
display: flex;
|
|
14500
14527
|
line-height: var(--wui-typography-label-3-line-height);
|
|
14501
14528
|
font-size: var(--wui-typography-label-3-size);
|
|
@@ -14503,7 +14530,7 @@ var ProgressBarLabel = styled74.div`
|
|
|
14503
14530
|
color: var(--wui-color-text-secondary);
|
|
14504
14531
|
flex-shrink: 0;
|
|
14505
14532
|
`;
|
|
14506
|
-
var StyledProgressIndicator =
|
|
14533
|
+
var StyledProgressIndicator = styled75(ProgressIndicator)`
|
|
14507
14534
|
background-color: var(--progress-bar-indicator-color);
|
|
14508
14535
|
width: 100%;
|
|
14509
14536
|
height: 100%;
|
|
@@ -14512,7 +14539,7 @@ var StyledProgressIndicator = styled74(ProgressIndicator)`
|
|
|
14512
14539
|
transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
14513
14540
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
14514
14541
|
`;
|
|
14515
|
-
var StyledProgressBar =
|
|
14542
|
+
var StyledProgressBar = styled75(ProgressRoot)`
|
|
14516
14543
|
position: relative;
|
|
14517
14544
|
overflow: hidden;
|
|
14518
14545
|
background: var(--progress-bar-background-color);
|
|
@@ -14532,14 +14559,14 @@ var ProgressBar = ({
|
|
|
14532
14559
|
...props
|
|
14533
14560
|
}) => {
|
|
14534
14561
|
return /* @__PURE__ */ jsxs50(ProgressBarWrapper, { children: [
|
|
14535
|
-
isNotNil31(labelLeft) ? /* @__PURE__ */
|
|
14536
|
-
/* @__PURE__ */
|
|
14562
|
+
isNotNil31(labelLeft) ? /* @__PURE__ */ jsx284(ProgressBarLabel, { children: labelLeft }) : null,
|
|
14563
|
+
/* @__PURE__ */ jsx284(
|
|
14537
14564
|
StyledProgressBar,
|
|
14538
14565
|
{
|
|
14539
14566
|
max,
|
|
14540
14567
|
value: progress,
|
|
14541
14568
|
...props,
|
|
14542
|
-
children: /* @__PURE__ */
|
|
14569
|
+
children: /* @__PURE__ */ jsx284(
|
|
14543
14570
|
StyledProgressIndicator,
|
|
14544
14571
|
{
|
|
14545
14572
|
$max: max,
|
|
@@ -14548,17 +14575,17 @@ var ProgressBar = ({
|
|
|
14548
14575
|
)
|
|
14549
14576
|
}
|
|
14550
14577
|
),
|
|
14551
|
-
isNotNil31(labelRight) ? /* @__PURE__ */
|
|
14578
|
+
isNotNil31(labelRight) ? /* @__PURE__ */ jsx284(ProgressBarLabel, { children: labelRight }) : null
|
|
14552
14579
|
] });
|
|
14553
14580
|
};
|
|
14554
14581
|
ProgressBar.displayName = "ProgressBar_UI";
|
|
14555
14582
|
|
|
14556
14583
|
// src/components/Radio/Radio.tsx
|
|
14557
14584
|
import { forwardRef as forwardRef25, useId as useId4 } from "react";
|
|
14558
|
-
import
|
|
14585
|
+
import styled76, { css as css38 } from "styled-components";
|
|
14559
14586
|
import { isNonEmptyString as isNonEmptyString6, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
14560
|
-
import { jsx as
|
|
14561
|
-
var RadioIcon = () => /* @__PURE__ */
|
|
14587
|
+
import { jsx as jsx285, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
14588
|
+
var RadioIcon = () => /* @__PURE__ */ jsx285(
|
|
14562
14589
|
"svg",
|
|
14563
14590
|
{
|
|
14564
14591
|
fill: "inherit",
|
|
@@ -14566,7 +14593,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx284(
|
|
|
14566
14593
|
viewBox: "0 0 1 1",
|
|
14567
14594
|
width: "1",
|
|
14568
14595
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14569
|
-
children: /* @__PURE__ */
|
|
14596
|
+
children: /* @__PURE__ */ jsx285(
|
|
14570
14597
|
"circle",
|
|
14571
14598
|
{
|
|
14572
14599
|
cx: "0.5",
|
|
@@ -14615,14 +14642,14 @@ var getSizeCss3 = (size) => {
|
|
|
14615
14642
|
if (size === "lg") return sizeLarge3;
|
|
14616
14643
|
return sizeMedium3;
|
|
14617
14644
|
};
|
|
14618
|
-
var StyledRadioWrapper =
|
|
14645
|
+
var StyledRadioWrapper = styled76.div`
|
|
14619
14646
|
display: flex;
|
|
14620
14647
|
margin: 0;
|
|
14621
14648
|
|
|
14622
14649
|
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
14623
14650
|
user-select: none;
|
|
14624
14651
|
`;
|
|
14625
|
-
var StyledRadioInput =
|
|
14652
|
+
var StyledRadioInput = styled76.div`
|
|
14626
14653
|
${({ $size }) => getSizeCss3($size)}
|
|
14627
14654
|
line-height: 0;
|
|
14628
14655
|
margin: 0;
|
|
@@ -14644,7 +14671,7 @@ var StyledRadioInput = styled75.div`
|
|
|
14644
14671
|
}
|
|
14645
14672
|
}
|
|
14646
14673
|
`;
|
|
14647
|
-
var StyledHiddenRadioInput =
|
|
14674
|
+
var StyledHiddenRadioInput = styled76.input`
|
|
14648
14675
|
${visuallyHiddenStyle}
|
|
14649
14676
|
|
|
14650
14677
|
/* toggles display of faux-input border-color */
|
|
@@ -14687,7 +14714,7 @@ var Radio = forwardRef25(
|
|
|
14687
14714
|
$disabled: disabled,
|
|
14688
14715
|
"aria-invalid": props["aria-invalid"],
|
|
14689
14716
|
children: [
|
|
14690
|
-
/* @__PURE__ */
|
|
14717
|
+
/* @__PURE__ */ jsx285(
|
|
14691
14718
|
StyledHiddenRadioInput,
|
|
14692
14719
|
{
|
|
14693
14720
|
...props,
|
|
@@ -14702,16 +14729,16 @@ var Radio = forwardRef25(
|
|
|
14702
14729
|
...isNotUndefined13(defaultChecked) ? { defaultChecked } : { checked }
|
|
14703
14730
|
}
|
|
14704
14731
|
),
|
|
14705
|
-
/* @__PURE__ */
|
|
14732
|
+
/* @__PURE__ */ jsx285(
|
|
14706
14733
|
FormControlLabel,
|
|
14707
14734
|
{
|
|
14708
|
-
controlSlot: /* @__PURE__ */
|
|
14735
|
+
controlSlot: /* @__PURE__ */ jsx285(
|
|
14709
14736
|
StyledRadioInput,
|
|
14710
14737
|
{
|
|
14711
14738
|
$disabled: disabled,
|
|
14712
14739
|
$size: size,
|
|
14713
14740
|
"data-wui-faux-input": "true",
|
|
14714
|
-
children: /* @__PURE__ */
|
|
14741
|
+
children: /* @__PURE__ */ jsx285(RadioIcon, {})
|
|
14715
14742
|
}
|
|
14716
14743
|
),
|
|
14717
14744
|
description,
|
|
@@ -14733,9 +14760,9 @@ import { forwardRef as forwardRef27 } from "react";
|
|
|
14733
14760
|
|
|
14734
14761
|
// src/components/RadioCard/RadioCardRoot.tsx
|
|
14735
14762
|
import { forwardRef as forwardRef26, useId as useId5 } from "react";
|
|
14736
|
-
import
|
|
14763
|
+
import styled77, { css as css39 } from "styled-components";
|
|
14737
14764
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
14738
|
-
import { jsx as
|
|
14765
|
+
import { jsx as jsx286, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
14739
14766
|
var checkedStyles = css39`
|
|
14740
14767
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
14741
14768
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
@@ -14785,7 +14812,7 @@ var imageCoverStyles = css39`
|
|
|
14785
14812
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
14786
14813
|
}
|
|
14787
14814
|
`;
|
|
14788
|
-
var StyledCard2 =
|
|
14815
|
+
var StyledCard2 = styled77.label`
|
|
14789
14816
|
--wui-radio-card-border-color: var(--wui-color-border-secondary);
|
|
14790
14817
|
--wui-radio-card-background-color: var(--wui-color-bg-surface);
|
|
14791
14818
|
--wui-radio-card-cursor: pointer;
|
|
@@ -14838,7 +14865,7 @@ var StyledCard2 = styled76.label`
|
|
|
14838
14865
|
}
|
|
14839
14866
|
}
|
|
14840
14867
|
`;
|
|
14841
|
-
var StyledHiddenInput =
|
|
14868
|
+
var StyledHiddenInput = styled77.input`
|
|
14842
14869
|
${visuallyHiddenStyle}
|
|
14843
14870
|
`;
|
|
14844
14871
|
var RadioCardRoot = forwardRef26(
|
|
@@ -14870,7 +14897,7 @@ var RadioCardRoot = forwardRef26(
|
|
|
14870
14897
|
$padding: padding,
|
|
14871
14898
|
htmlFor: computedId,
|
|
14872
14899
|
children: [
|
|
14873
|
-
/* @__PURE__ */
|
|
14900
|
+
/* @__PURE__ */ jsx286(
|
|
14874
14901
|
StyledHiddenInput,
|
|
14875
14902
|
{
|
|
14876
14903
|
...props,
|
|
@@ -14893,12 +14920,12 @@ var RadioCardRoot = forwardRef26(
|
|
|
14893
14920
|
RadioCardRoot.displayName = "RadioCardRoot_UI";
|
|
14894
14921
|
|
|
14895
14922
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
14896
|
-
import
|
|
14923
|
+
import styled79 from "styled-components";
|
|
14897
14924
|
import { isNotNil as isNotNil32 } from "@wistia/type-guards";
|
|
14898
14925
|
|
|
14899
14926
|
// src/components/RadioCard/RadioCardIndicator.tsx
|
|
14900
|
-
import
|
|
14901
|
-
var RadioCardIndicator =
|
|
14927
|
+
import styled78 from "styled-components";
|
|
14928
|
+
var RadioCardIndicator = styled78.div`
|
|
14902
14929
|
--wui-radio-card-indicator-size: 14px;
|
|
14903
14930
|
--wui-radio-card-indicator-background-color: var(--wui-color-bg-surface);
|
|
14904
14931
|
--wui-radio-card-indicator-fill-color: var(--wui-color-bg-fill);
|
|
@@ -14947,16 +14974,16 @@ var RadioCardIndicator = styled77.div`
|
|
|
14947
14974
|
RadioCardIndicator.displayName = "RadioCardIndicator_UI";
|
|
14948
14975
|
|
|
14949
14976
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
14950
|
-
import { jsx as
|
|
14951
|
-
var StyledCardContent =
|
|
14977
|
+
import { jsx as jsx287, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
14978
|
+
var StyledCardContent = styled79.div`
|
|
14952
14979
|
display: grid;
|
|
14953
14980
|
grid-auto-flow: column;
|
|
14954
14981
|
gap: var(--wui-space-02);
|
|
14955
14982
|
`;
|
|
14956
|
-
var StyledCardIcon =
|
|
14983
|
+
var StyledCardIcon = styled79.div`
|
|
14957
14984
|
display: contents;
|
|
14958
14985
|
`;
|
|
14959
|
-
var StyledIndicatorContainer =
|
|
14986
|
+
var StyledIndicatorContainer = styled79.div`
|
|
14960
14987
|
height: ${({ $hasIcon }) => $hasIcon ? "24px" : "16px"};
|
|
14961
14988
|
display: flex;
|
|
14962
14989
|
align-items: center;
|
|
@@ -14968,17 +14995,17 @@ var RadioCardDefaultLayout = ({
|
|
|
14968
14995
|
showIndicator = true
|
|
14969
14996
|
}) => {
|
|
14970
14997
|
return /* @__PURE__ */ jsxs53(StyledCardContent, { children: [
|
|
14971
|
-
showIndicator ? /* @__PURE__ */
|
|
14998
|
+
showIndicator ? /* @__PURE__ */ jsx287(StyledIndicatorContainer, { $hasIcon: isNotNil32(icon), children: /* @__PURE__ */ jsx287(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
|
|
14972
14999
|
/* @__PURE__ */ jsxs53(Stack, { gap: "space-02", children: [
|
|
14973
|
-
isNotNil32(icon) && /* @__PURE__ */
|
|
15000
|
+
isNotNil32(icon) && /* @__PURE__ */ jsx287(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
|
|
14974
15001
|
/* @__PURE__ */ jsxs53(
|
|
14975
15002
|
Stack,
|
|
14976
15003
|
{
|
|
14977
15004
|
gap: "space-01",
|
|
14978
15005
|
style: isNotNil32(icon) ? { paddingLeft: 2 } : void 0,
|
|
14979
15006
|
children: [
|
|
14980
|
-
/* @__PURE__ */
|
|
14981
|
-
isNotNil32(description) && /* @__PURE__ */
|
|
15007
|
+
/* @__PURE__ */ jsx287(Text, { variant: "label3", children: /* @__PURE__ */ jsx287("strong", { children: label }) }),
|
|
15008
|
+
isNotNil32(description) && /* @__PURE__ */ jsx287(
|
|
14982
15009
|
Text,
|
|
14983
15010
|
{
|
|
14984
15011
|
prominence: "secondary",
|
|
@@ -14995,15 +15022,15 @@ var RadioCardDefaultLayout = ({
|
|
|
14995
15022
|
RadioCardDefaultLayout.displayName = "RadioCardDefaultLayout_UI";
|
|
14996
15023
|
|
|
14997
15024
|
// src/components/RadioCard/RadioCard.tsx
|
|
14998
|
-
import { jsx as
|
|
15025
|
+
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
14999
15026
|
var RadioCard = forwardRef27(
|
|
15000
15027
|
({ icon, label, description, showIndicator, ...rootProps }, ref) => {
|
|
15001
|
-
return /* @__PURE__ */
|
|
15028
|
+
return /* @__PURE__ */ jsx288(
|
|
15002
15029
|
RadioCardRoot,
|
|
15003
15030
|
{
|
|
15004
15031
|
ref,
|
|
15005
15032
|
...rootProps,
|
|
15006
|
-
children: /* @__PURE__ */
|
|
15033
|
+
children: /* @__PURE__ */ jsx288(
|
|
15007
15034
|
RadioCardDefaultLayout,
|
|
15008
15035
|
{
|
|
15009
15036
|
description,
|
|
@@ -15020,17 +15047,17 @@ RadioCard.displayName = "RadioCard_UI";
|
|
|
15020
15047
|
|
|
15021
15048
|
// src/components/RadioCard/RadioCardImage.tsx
|
|
15022
15049
|
import { forwardRef as forwardRef28 } from "react";
|
|
15023
|
-
import { jsx as
|
|
15050
|
+
import { jsx as jsx289 } from "react/jsx-runtime";
|
|
15024
15051
|
var RadioCardImage = forwardRef28(
|
|
15025
15052
|
({ label, imageSrc, aspectRatio, padding = "space-04", ...rootProps }, ref) => {
|
|
15026
|
-
return /* @__PURE__ */
|
|
15053
|
+
return /* @__PURE__ */ jsx289(
|
|
15027
15054
|
RadioCardRoot,
|
|
15028
15055
|
{
|
|
15029
15056
|
ref,
|
|
15030
15057
|
...rootProps,
|
|
15031
15058
|
aspectRatio,
|
|
15032
15059
|
padding,
|
|
15033
|
-
children: /* @__PURE__ */
|
|
15060
|
+
children: /* @__PURE__ */ jsx289(
|
|
15034
15061
|
Image,
|
|
15035
15062
|
{
|
|
15036
15063
|
alt: label,
|
|
@@ -15048,13 +15075,13 @@ RadioCardImage.displayName = "RadioCardImage_UI";
|
|
|
15048
15075
|
|
|
15049
15076
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15050
15077
|
import { forwardRef as forwardRef29 } from "react";
|
|
15051
|
-
import
|
|
15078
|
+
import styled81, { css as css41 } from "styled-components";
|
|
15052
15079
|
import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
|
|
15053
15080
|
import { isNil as isNil16 } from "@wistia/type-guards";
|
|
15054
15081
|
|
|
15055
15082
|
// src/components/SegmentedControl/useSelectedItemStyle.tsx
|
|
15056
15083
|
import { createContext as createContext8, useContext as useContext9, useMemo as useMemo14, useState as useState20 } from "react";
|
|
15057
|
-
import { jsx as
|
|
15084
|
+
import { jsx as jsx290 } from "react/jsx-runtime";
|
|
15058
15085
|
var SelectedItemStyleContext = createContext8(null);
|
|
15059
15086
|
var SelectedItemStyleProvider = ({
|
|
15060
15087
|
children
|
|
@@ -15075,7 +15102,7 @@ var SelectedItemStyleProvider = ({
|
|
|
15075
15102
|
}),
|
|
15076
15103
|
[selectedItemIndicatorStyle]
|
|
15077
15104
|
);
|
|
15078
|
-
return /* @__PURE__ */
|
|
15105
|
+
return /* @__PURE__ */ jsx290(SelectedItemStyleContext.Provider, { value: contextValue, children });
|
|
15079
15106
|
};
|
|
15080
15107
|
var useSelectedItemStyle = () => {
|
|
15081
15108
|
const context = useContext9(SelectedItemStyleContext);
|
|
@@ -15086,7 +15113,7 @@ var useSelectedItemStyle = () => {
|
|
|
15086
15113
|
};
|
|
15087
15114
|
|
|
15088
15115
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
15089
|
-
import
|
|
15116
|
+
import styled80, { css as css40 } from "styled-components";
|
|
15090
15117
|
import { isUndefined as isUndefined5 } from "@wistia/type-guards";
|
|
15091
15118
|
|
|
15092
15119
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
@@ -15102,13 +15129,13 @@ var useSegmentedControlValue = () => {
|
|
|
15102
15129
|
};
|
|
15103
15130
|
|
|
15104
15131
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
15105
|
-
import { jsx as
|
|
15132
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
15106
15133
|
var selectedItemIndicatorStyles = css40`
|
|
15107
15134
|
background-color: var(--wui-color-bg-fill-white);
|
|
15108
15135
|
border-radius: var(--wui-border-radius-rounded);
|
|
15109
15136
|
box-shadow: var(--wui-elevation-01);
|
|
15110
15137
|
`;
|
|
15111
|
-
var SelectedItemIndicatorDiv =
|
|
15138
|
+
var SelectedItemIndicatorDiv = styled80.div`
|
|
15112
15139
|
${selectedItemIndicatorStyles}
|
|
15113
15140
|
left: 0;
|
|
15114
15141
|
position: absolute;
|
|
@@ -15124,7 +15151,7 @@ var SelectedItemIndicator = () => {
|
|
|
15124
15151
|
if (!selectedValue || isUndefined5(selectedItemIndicatorStyle)) {
|
|
15125
15152
|
return null;
|
|
15126
15153
|
}
|
|
15127
|
-
return /* @__PURE__ */
|
|
15154
|
+
return /* @__PURE__ */ jsx291(
|
|
15128
15155
|
SelectedItemIndicatorDiv,
|
|
15129
15156
|
{
|
|
15130
15157
|
"data-wui-selected-item-indicator": true,
|
|
@@ -15134,7 +15161,7 @@ var SelectedItemIndicator = () => {
|
|
|
15134
15161
|
};
|
|
15135
15162
|
|
|
15136
15163
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15137
|
-
import { jsx as
|
|
15164
|
+
import { jsx as jsx292, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
15138
15165
|
var segmentedControlStyles = css41`
|
|
15139
15166
|
display: inline-flex;
|
|
15140
15167
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -15146,7 +15173,7 @@ var segmentedControlStyles = css41`
|
|
|
15146
15173
|
position: relative;
|
|
15147
15174
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
15148
15175
|
`;
|
|
15149
|
-
var StyledSegmentedControl =
|
|
15176
|
+
var StyledSegmentedControl = styled81(ToggleGroupRoot2)`
|
|
15150
15177
|
${segmentedControlStyles}
|
|
15151
15178
|
`;
|
|
15152
15179
|
var SegmentedControl = forwardRef29(
|
|
@@ -15161,7 +15188,7 @@ var SegmentedControl = forwardRef29(
|
|
|
15161
15188
|
if (isNil16(children)) {
|
|
15162
15189
|
return null;
|
|
15163
15190
|
}
|
|
15164
|
-
return /* @__PURE__ */
|
|
15191
|
+
return /* @__PURE__ */ jsx292(
|
|
15165
15192
|
StyledSegmentedControl,
|
|
15166
15193
|
{
|
|
15167
15194
|
ref,
|
|
@@ -15173,9 +15200,9 @@ var SegmentedControl = forwardRef29(
|
|
|
15173
15200
|
type: "single",
|
|
15174
15201
|
value: selectedValue,
|
|
15175
15202
|
...props,
|
|
15176
|
-
children: /* @__PURE__ */
|
|
15203
|
+
children: /* @__PURE__ */ jsx292(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs54(SelectedItemStyleProvider, { children: [
|
|
15177
15204
|
children,
|
|
15178
|
-
/* @__PURE__ */
|
|
15205
|
+
/* @__PURE__ */ jsx292(SelectedItemIndicator, {})
|
|
15179
15206
|
] }) })
|
|
15180
15207
|
}
|
|
15181
15208
|
);
|
|
@@ -15185,7 +15212,7 @@ SegmentedControl.displayName = "SegmentedControl_UI";
|
|
|
15185
15212
|
|
|
15186
15213
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
15187
15214
|
import { forwardRef as forwardRef30, useEffect as useEffect18, useRef as useRef19 } from "react";
|
|
15188
|
-
import
|
|
15215
|
+
import styled82, { css as css42 } from "styled-components";
|
|
15189
15216
|
import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
|
|
15190
15217
|
import { isNotNil as isNotNil33 } from "@wistia/type-guards";
|
|
15191
15218
|
import { jsxs as jsxs55 } from "react/jsx-runtime";
|
|
@@ -15256,7 +15283,7 @@ var segmentedControlItemStyles = css42`
|
|
|
15256
15283
|
}
|
|
15257
15284
|
}
|
|
15258
15285
|
`;
|
|
15259
|
-
var StyledSegmentedControlItem =
|
|
15286
|
+
var StyledSegmentedControlItem = styled82(ToggleGroupItem2)`
|
|
15260
15287
|
${segmentedControlItemStyles}
|
|
15261
15288
|
`;
|
|
15262
15289
|
var SegmentedControlItem = forwardRef30(
|
|
@@ -15329,9 +15356,9 @@ import {
|
|
|
15329
15356
|
ScrollDownButton
|
|
15330
15357
|
} from "@radix-ui/react-select";
|
|
15331
15358
|
import { forwardRef as forwardRef31 } from "react";
|
|
15332
|
-
import
|
|
15333
|
-
import { jsx as
|
|
15334
|
-
var StyledTrigger2 =
|
|
15359
|
+
import styled83 from "styled-components";
|
|
15360
|
+
import { jsx as jsx293, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
15361
|
+
var StyledTrigger2 = styled83(Trigger3)`
|
|
15335
15362
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
15336
15363
|
${inputCss};
|
|
15337
15364
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -15375,7 +15402,7 @@ var StyledTrigger2 = styled82(Trigger3)`
|
|
|
15375
15402
|
color: var(--wui-input-placeholder);
|
|
15376
15403
|
}
|
|
15377
15404
|
`;
|
|
15378
|
-
var StyledContent3 =
|
|
15405
|
+
var StyledContent3 = styled83(Content3)`
|
|
15379
15406
|
--wui-select-content-border: var(--wui-color-border);
|
|
15380
15407
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
15381
15408
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -15417,8 +15444,8 @@ var Select = forwardRef31(
|
|
|
15417
15444
|
$fullWidth: responsiveFullWidth,
|
|
15418
15445
|
...props,
|
|
15419
15446
|
children: [
|
|
15420
|
-
/* @__PURE__ */
|
|
15421
|
-
/* @__PURE__ */
|
|
15447
|
+
/* @__PURE__ */ jsx293(Value, { placeholder }),
|
|
15448
|
+
/* @__PURE__ */ jsx293(
|
|
15422
15449
|
Icon,
|
|
15423
15450
|
{
|
|
15424
15451
|
size: "md",
|
|
@@ -15428,10 +15455,10 @@ var Select = forwardRef31(
|
|
|
15428
15455
|
]
|
|
15429
15456
|
}
|
|
15430
15457
|
),
|
|
15431
|
-
/* @__PURE__ */
|
|
15432
|
-
/* @__PURE__ */
|
|
15433
|
-
/* @__PURE__ */
|
|
15434
|
-
/* @__PURE__ */
|
|
15458
|
+
/* @__PURE__ */ jsx293(Portal2, { children: /* @__PURE__ */ jsxs56(StyledContent3, { position: "popper", children: [
|
|
15459
|
+
/* @__PURE__ */ jsx293(ScrollUpButton, { children: /* @__PURE__ */ jsx293(Icon, { type: "caret-up" }) }),
|
|
15460
|
+
/* @__PURE__ */ jsx293(Viewport, { children }),
|
|
15461
|
+
/* @__PURE__ */ jsx293(ScrollDownButton, { children: /* @__PURE__ */ jsx293(Icon, { type: "caret-down" }) })
|
|
15435
15462
|
] }) })
|
|
15436
15463
|
]
|
|
15437
15464
|
}
|
|
@@ -15443,10 +15470,10 @@ Select.displayName = "Select_UI";
|
|
|
15443
15470
|
// src/components/Select/SelectOption.tsx
|
|
15444
15471
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
15445
15472
|
import { forwardRef as forwardRef32 } from "react";
|
|
15446
|
-
import
|
|
15473
|
+
import styled84 from "styled-components";
|
|
15447
15474
|
import { isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
15448
|
-
import { jsx as
|
|
15449
|
-
var StyledItem =
|
|
15475
|
+
import { jsx as jsx294, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
15476
|
+
var StyledItem = styled84(Item)`
|
|
15450
15477
|
${variantStyleMap2.body3};
|
|
15451
15478
|
display: flex;
|
|
15452
15479
|
padding: var(--wui-select-option-padding);
|
|
@@ -15470,7 +15497,7 @@ var StyledItem = styled83(Item)`
|
|
|
15470
15497
|
background-color: transparent;
|
|
15471
15498
|
}
|
|
15472
15499
|
`;
|
|
15473
|
-
var
|
|
15500
|
+
var StyledIconContainer2 = styled84.span`
|
|
15474
15501
|
width: 12px;
|
|
15475
15502
|
`;
|
|
15476
15503
|
var SelectOption = forwardRef32(
|
|
@@ -15481,7 +15508,7 @@ var SelectOption = forwardRef32(
|
|
|
15481
15508
|
...props,
|
|
15482
15509
|
ref: forwardedRef,
|
|
15483
15510
|
children: [
|
|
15484
|
-
/* @__PURE__ */
|
|
15511
|
+
/* @__PURE__ */ jsx294(StyledIconContainer2, { "data-indicator": true, children: /* @__PURE__ */ jsx294(ItemIndicator, { children: /* @__PURE__ */ jsx294(
|
|
15485
15512
|
Icon,
|
|
15486
15513
|
{
|
|
15487
15514
|
size: "sm",
|
|
@@ -15490,8 +15517,8 @@ var SelectOption = forwardRef32(
|
|
|
15490
15517
|
) }) }),
|
|
15491
15518
|
isNotNil34(selectedDisplayValue) ? /* @__PURE__ */ jsxs57("div", { children: [
|
|
15492
15519
|
children,
|
|
15493
|
-
/* @__PURE__ */
|
|
15494
|
-
] }) : /* @__PURE__ */
|
|
15520
|
+
/* @__PURE__ */ jsx294("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx294(ItemText, { children: selectedDisplayValue }) })
|
|
15521
|
+
] }) : /* @__PURE__ */ jsx294(ItemText, { children })
|
|
15495
15522
|
]
|
|
15496
15523
|
}
|
|
15497
15524
|
);
|
|
@@ -15501,14 +15528,14 @@ SelectOption.displayName = "SelectOption_UI";
|
|
|
15501
15528
|
|
|
15502
15529
|
// src/components/Select/SelectOptionGroup.tsx
|
|
15503
15530
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
15504
|
-
import
|
|
15505
|
-
import { jsx as
|
|
15506
|
-
var StyledLabel4 =
|
|
15531
|
+
import styled85 from "styled-components";
|
|
15532
|
+
import { jsx as jsx295, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
15533
|
+
var StyledLabel4 = styled85(Label3)`
|
|
15507
15534
|
padding: var(--wui-select-option-padding);
|
|
15508
15535
|
`;
|
|
15509
15536
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
15510
15537
|
return /* @__PURE__ */ jsxs58(Group, { ...props, children: [
|
|
15511
|
-
/* @__PURE__ */
|
|
15538
|
+
/* @__PURE__ */ jsx295(StyledLabel4, { children: /* @__PURE__ */ jsx295(
|
|
15512
15539
|
Text,
|
|
15513
15540
|
{
|
|
15514
15541
|
prominence: "secondary",
|
|
@@ -15527,10 +15554,10 @@ import {
|
|
|
15527
15554
|
Range as RadixSliderRange,
|
|
15528
15555
|
Thumb as RadixSliderThumb
|
|
15529
15556
|
} from "@radix-ui/react-slider";
|
|
15530
|
-
import
|
|
15557
|
+
import styled86 from "styled-components";
|
|
15531
15558
|
import { isNonEmptyString as isNonEmptyString8 } from "@wistia/type-guards";
|
|
15532
|
-
import { jsx as
|
|
15533
|
-
var SliderContainer =
|
|
15559
|
+
import { jsx as jsx296, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
15560
|
+
var SliderContainer = styled86.div`
|
|
15534
15561
|
--wui-slider-track-color: var(--wui-gray-6);
|
|
15535
15562
|
--wui-slider-track-border-radius: var(--wui-border-radius-rounded);
|
|
15536
15563
|
--wui-slider-range-color: var(--wui-color-bg-fill);
|
|
@@ -15546,7 +15573,7 @@ var SliderContainer = styled85.div`
|
|
|
15546
15573
|
pointer-events: none;
|
|
15547
15574
|
}
|
|
15548
15575
|
`;
|
|
15549
|
-
var StyledSliderRoot =
|
|
15576
|
+
var StyledSliderRoot = styled86(RadixSliderRoot)`
|
|
15550
15577
|
position: relative;
|
|
15551
15578
|
display: flex;
|
|
15552
15579
|
align-items: center;
|
|
@@ -15554,20 +15581,20 @@ var StyledSliderRoot = styled85(RadixSliderRoot)`
|
|
|
15554
15581
|
touch-action: none;
|
|
15555
15582
|
width: 100%;
|
|
15556
15583
|
`;
|
|
15557
|
-
var StyledSliderTrack =
|
|
15584
|
+
var StyledSliderTrack = styled86(RadixSliderTrack)`
|
|
15558
15585
|
background-color: var(--wui-slider-track-color);
|
|
15559
15586
|
border-radius: var(--wui-slider-track-border-radius);
|
|
15560
15587
|
flex-grow: 1;
|
|
15561
15588
|
height: 6px;
|
|
15562
15589
|
position: relative;
|
|
15563
15590
|
`;
|
|
15564
|
-
var StyledSliderRange =
|
|
15591
|
+
var StyledSliderRange = styled86(RadixSliderRange)`
|
|
15565
15592
|
background-color: var(--wui-slider-range-color);
|
|
15566
15593
|
border-radius: var(--wui-slider-track-border-radius);
|
|
15567
15594
|
height: 100%;
|
|
15568
15595
|
position: absolute;
|
|
15569
15596
|
`;
|
|
15570
|
-
var StyledSliderThumb =
|
|
15597
|
+
var StyledSliderThumb = styled86(RadixSliderThumb)`
|
|
15571
15598
|
background-color: var(--wui-slider-thumb-color);
|
|
15572
15599
|
border-radius: var(--wui-border-radius-rounded);
|
|
15573
15600
|
cursor: grab;
|
|
@@ -15618,7 +15645,7 @@ var Slider = ({
|
|
|
15618
15645
|
onChange(newValue);
|
|
15619
15646
|
}
|
|
15620
15647
|
};
|
|
15621
|
-
return /* @__PURE__ */
|
|
15648
|
+
return /* @__PURE__ */ jsx296(
|
|
15622
15649
|
SliderContainer,
|
|
15623
15650
|
{
|
|
15624
15651
|
...otherProps,
|
|
@@ -15636,8 +15663,8 @@ var Slider = ({
|
|
|
15636
15663
|
step,
|
|
15637
15664
|
...value ? { value } : {},
|
|
15638
15665
|
children: [
|
|
15639
|
-
/* @__PURE__ */
|
|
15640
|
-
values.map((_, index) => /* @__PURE__ */
|
|
15666
|
+
/* @__PURE__ */ jsx296(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ jsx296(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
|
|
15667
|
+
values.map((_, index) => /* @__PURE__ */ jsx296(
|
|
15641
15668
|
StyledSliderThumb,
|
|
15642
15669
|
{
|
|
15643
15670
|
"data-testid": `${dataTestId}-thumb-${index}`
|
|
@@ -15653,9 +15680,9 @@ var Slider = ({
|
|
|
15653
15680
|
Slider.displayName = "Slider_UI";
|
|
15654
15681
|
|
|
15655
15682
|
// src/components/Table/Table.tsx
|
|
15656
|
-
import
|
|
15657
|
-
import { jsx as
|
|
15658
|
-
var StyledTable =
|
|
15683
|
+
import styled87, { css as css43 } from "styled-components";
|
|
15684
|
+
import { jsx as jsx297 } from "react/jsx-runtime";
|
|
15685
|
+
var StyledTable = styled87.table`
|
|
15659
15686
|
width: 100%;
|
|
15660
15687
|
border-collapse: collapse;
|
|
15661
15688
|
|
|
@@ -15684,7 +15711,7 @@ var Table = ({
|
|
|
15684
15711
|
visuallyHiddenHeader = false,
|
|
15685
15712
|
...props
|
|
15686
15713
|
}) => {
|
|
15687
|
-
return /* @__PURE__ */
|
|
15714
|
+
return /* @__PURE__ */ jsx297(
|
|
15688
15715
|
StyledTable,
|
|
15689
15716
|
{
|
|
15690
15717
|
$divided: divided,
|
|
@@ -15697,35 +15724,35 @@ var Table = ({
|
|
|
15697
15724
|
};
|
|
15698
15725
|
|
|
15699
15726
|
// src/components/Table/TableBody.tsx
|
|
15700
|
-
import
|
|
15727
|
+
import styled88 from "styled-components";
|
|
15701
15728
|
|
|
15702
15729
|
// src/components/Table/TableSectionContext.ts
|
|
15703
15730
|
import { createContext as createContext10 } from "react";
|
|
15704
15731
|
var TableSectionContext = createContext10(null);
|
|
15705
15732
|
|
|
15706
15733
|
// src/components/Table/TableBody.tsx
|
|
15707
|
-
import { jsx as
|
|
15708
|
-
var StyledTableBody =
|
|
15734
|
+
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
15735
|
+
var StyledTableBody = styled88.tbody``;
|
|
15709
15736
|
var TableBody = ({ children, ...props }) => {
|
|
15710
|
-
return /* @__PURE__ */
|
|
15737
|
+
return /* @__PURE__ */ jsx298(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx298(StyledTableBody, { ...props, children }) });
|
|
15711
15738
|
};
|
|
15712
15739
|
|
|
15713
15740
|
// src/components/Table/TableCell.tsx
|
|
15714
15741
|
import { useContext as useContext11 } from "react";
|
|
15715
|
-
import
|
|
15716
|
-
import { jsx as
|
|
15742
|
+
import styled89, { css as css44 } from "styled-components";
|
|
15743
|
+
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
15717
15744
|
var sharedStyles = css44`
|
|
15718
15745
|
color: var(--wui-color-text);
|
|
15719
15746
|
padding: var(--wui-space-02);
|
|
15720
15747
|
text-align: left;
|
|
15721
15748
|
`;
|
|
15722
|
-
var StyledTh =
|
|
15749
|
+
var StyledTh = styled89.th`
|
|
15723
15750
|
${sharedStyles}
|
|
15724
15751
|
font-size: var(--wui-typography-body-4-size);
|
|
15725
15752
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
15726
15753
|
line-height: var(--wui-typography-body-4-line-height);
|
|
15727
15754
|
`;
|
|
15728
|
-
var StyledTd =
|
|
15755
|
+
var StyledTd = styled89.td`
|
|
15729
15756
|
${sharedStyles}
|
|
15730
15757
|
font-size: var(--wui-typography-body-2-size);
|
|
15731
15758
|
font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -15734,33 +15761,33 @@ var StyledTd = styled88.td`
|
|
|
15734
15761
|
var TableCell = ({ children, ...props }) => {
|
|
15735
15762
|
const section = useContext11(TableSectionContext);
|
|
15736
15763
|
if (section === "head") {
|
|
15737
|
-
return /* @__PURE__ */
|
|
15764
|
+
return /* @__PURE__ */ jsx299(StyledTh, { ...props, children });
|
|
15738
15765
|
}
|
|
15739
|
-
return /* @__PURE__ */
|
|
15766
|
+
return /* @__PURE__ */ jsx299(StyledTd, { ...props, children });
|
|
15740
15767
|
};
|
|
15741
15768
|
|
|
15742
15769
|
// src/components/Table/TableFoot.tsx
|
|
15743
|
-
import
|
|
15744
|
-
import { jsx as
|
|
15745
|
-
var StyledTableFoot =
|
|
15770
|
+
import styled90 from "styled-components";
|
|
15771
|
+
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
15772
|
+
var StyledTableFoot = styled90.tfoot``;
|
|
15746
15773
|
var TableFoot = ({ children, ...props }) => {
|
|
15747
|
-
return /* @__PURE__ */
|
|
15774
|
+
return /* @__PURE__ */ jsx300(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx300(StyledTableFoot, { ...props, children }) });
|
|
15748
15775
|
};
|
|
15749
15776
|
|
|
15750
15777
|
// src/components/Table/TableHead.tsx
|
|
15751
|
-
import
|
|
15752
|
-
import { jsx as
|
|
15753
|
-
var StyledThead =
|
|
15778
|
+
import styled91 from "styled-components";
|
|
15779
|
+
import { jsx as jsx301 } from "react/jsx-runtime";
|
|
15780
|
+
var StyledThead = styled91.thead``;
|
|
15754
15781
|
var TableHead = ({ children, ...props }) => {
|
|
15755
|
-
return /* @__PURE__ */
|
|
15782
|
+
return /* @__PURE__ */ jsx301(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx301(StyledThead, { ...props, children }) });
|
|
15756
15783
|
};
|
|
15757
15784
|
|
|
15758
15785
|
// src/components/Table/TableRow.tsx
|
|
15759
|
-
import
|
|
15760
|
-
import { jsx as
|
|
15761
|
-
var StyledTableRow =
|
|
15786
|
+
import styled92 from "styled-components";
|
|
15787
|
+
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
15788
|
+
var StyledTableRow = styled92.tr``;
|
|
15762
15789
|
var TableRow = ({ children, ...props }) => {
|
|
15763
|
-
return /* @__PURE__ */
|
|
15790
|
+
return /* @__PURE__ */ jsx302(StyledTableRow, { ...props, children });
|
|
15764
15791
|
};
|
|
15765
15792
|
|
|
15766
15793
|
// src/components/Tabs/Tabs.tsx
|
|
@@ -15781,7 +15808,7 @@ var useTabsValue = () => {
|
|
|
15781
15808
|
};
|
|
15782
15809
|
|
|
15783
15810
|
// src/components/Tabs/Tabs.tsx
|
|
15784
|
-
import { jsx as
|
|
15811
|
+
import { jsx as jsx303 } from "react/jsx-runtime";
|
|
15785
15812
|
var Tabs = ({
|
|
15786
15813
|
children,
|
|
15787
15814
|
value: valueProp,
|
|
@@ -15809,42 +15836,42 @@ var Tabs = ({
|
|
|
15809
15836
|
if (isNotNil35(defaultValue)) {
|
|
15810
15837
|
rootProps.defaultValue = defaultValue;
|
|
15811
15838
|
}
|
|
15812
|
-
return /* @__PURE__ */
|
|
15839
|
+
return /* @__PURE__ */ jsx303(RadixTabsRoot, { ...rootProps, children: /* @__PURE__ */ jsx303(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ jsx303(SelectedItemStyleProvider, { children }) }) });
|
|
15813
15840
|
};
|
|
15814
15841
|
Tabs.displayName = "Tabs_UI";
|
|
15815
15842
|
|
|
15816
15843
|
// src/components/Tabs/TabsContent.tsx
|
|
15817
15844
|
import { Content as RadixTabsContent } from "@radix-ui/react-tabs";
|
|
15818
|
-
import { jsx as
|
|
15845
|
+
import { jsx as jsx304 } from "react/jsx-runtime";
|
|
15819
15846
|
var TabsContent = ({ children, value }) => {
|
|
15820
|
-
return /* @__PURE__ */
|
|
15847
|
+
return /* @__PURE__ */ jsx304(RadixTabsContent, { value, children });
|
|
15821
15848
|
};
|
|
15822
15849
|
TabsContent.displayName = "TabsContent_UI";
|
|
15823
15850
|
|
|
15824
15851
|
// src/components/Tabs/TabsList.tsx
|
|
15825
15852
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
15826
|
-
import
|
|
15853
|
+
import styled94 from "styled-components";
|
|
15827
15854
|
|
|
15828
15855
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
15829
15856
|
import { isUndefined as isUndefined6 } from "@wistia/type-guards";
|
|
15830
15857
|
|
|
15831
15858
|
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
15832
|
-
import
|
|
15833
|
-
var TabsSelectedItemIndicatorDiv =
|
|
15859
|
+
import styled93 from "styled-components";
|
|
15860
|
+
var TabsSelectedItemIndicatorDiv = styled93(SelectedItemIndicatorDiv)`
|
|
15834
15861
|
&:has(~ button[role='tab']:focus-visible) {
|
|
15835
15862
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
15836
15863
|
}
|
|
15837
15864
|
`;
|
|
15838
15865
|
|
|
15839
15866
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
15840
|
-
import { jsx as
|
|
15867
|
+
import { jsx as jsx305 } from "react/jsx-runtime";
|
|
15841
15868
|
var SelectedTabIndicator = () => {
|
|
15842
15869
|
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
15843
15870
|
const selectedValue = useTabsValue();
|
|
15844
15871
|
if (selectedValue == null || isUndefined6(selectedItemIndicatorStyle)) {
|
|
15845
15872
|
return null;
|
|
15846
15873
|
}
|
|
15847
|
-
return /* @__PURE__ */
|
|
15874
|
+
return /* @__PURE__ */ jsx305(
|
|
15848
15875
|
TabsSelectedItemIndicatorDiv,
|
|
15849
15876
|
{
|
|
15850
15877
|
"data-wui-selected-item-indicator": true,
|
|
@@ -15854,8 +15881,8 @@ var SelectedTabIndicator = () => {
|
|
|
15854
15881
|
};
|
|
15855
15882
|
|
|
15856
15883
|
// src/components/Tabs/TabsList.tsx
|
|
15857
|
-
import { jsx as
|
|
15858
|
-
var StyledRadixTabsList =
|
|
15884
|
+
import { jsx as jsx306, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
15885
|
+
var StyledRadixTabsList = styled94(RadixTabList)`
|
|
15859
15886
|
${segmentedControlStyles}
|
|
15860
15887
|
`;
|
|
15861
15888
|
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
@@ -15866,7 +15893,7 @@ var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
|
15866
15893
|
"aria-label": props["aria-label"],
|
|
15867
15894
|
children: [
|
|
15868
15895
|
children,
|
|
15869
|
-
/* @__PURE__ */
|
|
15896
|
+
/* @__PURE__ */ jsx306(SelectedTabIndicator, {})
|
|
15870
15897
|
]
|
|
15871
15898
|
}
|
|
15872
15899
|
);
|
|
@@ -15878,9 +15905,9 @@ import { forwardRef as forwardRef33, useEffect as useEffect19, useRef as useRef2
|
|
|
15878
15905
|
import { isNotNil as isNotNil36 } from "@wistia/type-guards";
|
|
15879
15906
|
|
|
15880
15907
|
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
15881
|
-
import
|
|
15908
|
+
import styled95 from "styled-components";
|
|
15882
15909
|
import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
|
|
15883
|
-
var StyledRadixTabsTrigger =
|
|
15910
|
+
var StyledRadixTabsTrigger = styled95(RadixTabsTrigger)`
|
|
15884
15911
|
${segmentedControlItemStyles}
|
|
15885
15912
|
|
|
15886
15913
|
&:focus-visible {
|
|
@@ -15941,10 +15968,10 @@ var TabsTrigger = forwardRef33(
|
|
|
15941
15968
|
TabsTrigger.displayName = "TabsTrigger_UI";
|
|
15942
15969
|
|
|
15943
15970
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
15944
|
-
import
|
|
15971
|
+
import styled96 from "styled-components";
|
|
15945
15972
|
import { isNotNil as isNotNil37 } from "@wistia/type-guards";
|
|
15946
|
-
import { jsx as
|
|
15947
|
-
var StyledThumbnailBadge =
|
|
15973
|
+
import { jsx as jsx307, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
15974
|
+
var StyledThumbnailBadge = styled96.div`
|
|
15948
15975
|
align-items: center;
|
|
15949
15976
|
background-color: rgb(0 0 0 / 50%);
|
|
15950
15977
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -15971,14 +15998,14 @@ var StyledThumbnailBadge = styled95.div`
|
|
|
15971
15998
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
15972
15999
|
return /* @__PURE__ */ jsxs62(StyledThumbnailBadge, { ...props, children: [
|
|
15973
16000
|
isNotNil37(icon) && icon,
|
|
15974
|
-
/* @__PURE__ */
|
|
16001
|
+
/* @__PURE__ */ jsx307("span", { children: label })
|
|
15975
16002
|
] });
|
|
15976
16003
|
};
|
|
15977
16004
|
ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
15978
16005
|
|
|
15979
16006
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
15980
16007
|
import { forwardRef as forwardRef34, useState as useState22, useRef as useRef21, useCallback as useCallback18, useMemo as useMemo15 } from "react";
|
|
15981
|
-
import
|
|
16008
|
+
import styled98 from "styled-components";
|
|
15982
16009
|
import { isNil as isNil17, isNotNil as isNotNil40, isUndefined as isUndefined7, isEmptyString as isEmptyString2, isString as isString2 } from "@wistia/type-guards";
|
|
15983
16010
|
|
|
15984
16011
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
@@ -16114,10 +16141,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
16114
16141
|
};
|
|
16115
16142
|
|
|
16116
16143
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
16117
|
-
import
|
|
16144
|
+
import styled97 from "styled-components";
|
|
16118
16145
|
import { isNotNil as isNotNil39 } from "@wistia/type-guards";
|
|
16119
|
-
import { jsx as
|
|
16120
|
-
var ScrubLine =
|
|
16146
|
+
import { jsx as jsx308, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
16147
|
+
var ScrubLine = styled97.div`
|
|
16121
16148
|
position: absolute;
|
|
16122
16149
|
top: 0;
|
|
16123
16150
|
height: 100%;
|
|
@@ -16226,8 +16253,8 @@ var ThumbnailStoryboardViewer = ({
|
|
|
16226
16253
|
...props,
|
|
16227
16254
|
style: viewerStyles,
|
|
16228
16255
|
children: [
|
|
16229
|
-
/* @__PURE__ */
|
|
16230
|
-
showScrubLine ? /* @__PURE__ */
|
|
16256
|
+
/* @__PURE__ */ jsx308("div", { style: storyboardStyles }),
|
|
16257
|
+
showScrubLine ? /* @__PURE__ */ jsx308(
|
|
16231
16258
|
ScrubLine,
|
|
16232
16259
|
{
|
|
16233
16260
|
style: {
|
|
@@ -16241,20 +16268,20 @@ var ThumbnailStoryboardViewer = ({
|
|
|
16241
16268
|
};
|
|
16242
16269
|
|
|
16243
16270
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
16244
|
-
import { jsx as
|
|
16245
|
-
var WideThumbnailImage =
|
|
16271
|
+
import { jsx as jsx309, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
16272
|
+
var WideThumbnailImage = styled98.img`
|
|
16246
16273
|
height: 100%;
|
|
16247
16274
|
object-fit: cover;
|
|
16248
16275
|
width: 100%;
|
|
16249
16276
|
`;
|
|
16250
|
-
var SquareThumbnailImage =
|
|
16277
|
+
var SquareThumbnailImage = styled98.img`
|
|
16251
16278
|
backdrop-filter: blur(8px);
|
|
16252
16279
|
object-fit: contain;
|
|
16253
16280
|
width: 100%;
|
|
16254
16281
|
`;
|
|
16255
16282
|
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
16256
16283
|
if (thumbnailImageType === "wide") {
|
|
16257
|
-
return /* @__PURE__ */
|
|
16284
|
+
return /* @__PURE__ */ jsx309(
|
|
16258
16285
|
WideThumbnailImage,
|
|
16259
16286
|
{
|
|
16260
16287
|
alt: "",
|
|
@@ -16263,7 +16290,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
16263
16290
|
}
|
|
16264
16291
|
);
|
|
16265
16292
|
}
|
|
16266
|
-
return /* @__PURE__ */
|
|
16293
|
+
return /* @__PURE__ */ jsx309(
|
|
16267
16294
|
SquareThumbnailImage,
|
|
16268
16295
|
{
|
|
16269
16296
|
alt: "",
|
|
@@ -16272,7 +16299,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
16272
16299
|
}
|
|
16273
16300
|
);
|
|
16274
16301
|
};
|
|
16275
|
-
var StyledThumbnail =
|
|
16302
|
+
var StyledThumbnail = styled98.div`
|
|
16276
16303
|
background-image: ${({ $backgroundUrl }) => isNotNil40($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
16277
16304
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
16278
16305
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -16366,7 +16393,7 @@ var Thumbnail = forwardRef34(
|
|
|
16366
16393
|
} = storyboard;
|
|
16367
16394
|
const targetWidth = isString2(width) ? parseInt(width, 10) : Number(width);
|
|
16368
16395
|
const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
|
|
16369
|
-
return /* @__PURE__ */
|
|
16396
|
+
return /* @__PURE__ */ jsx309(
|
|
16370
16397
|
ThumbnailStoryboardViewer,
|
|
16371
16398
|
{
|
|
16372
16399
|
cursorPosition: effectiveCursorPosition,
|
|
@@ -16386,7 +16413,7 @@ var Thumbnail = forwardRef34(
|
|
|
16386
16413
|
if (shouldRenderStoryboard) {
|
|
16387
16414
|
thumbnailContent = renderStoryboard();
|
|
16388
16415
|
} else if (isNotNil40(thumbnailUrl)) {
|
|
16389
|
-
thumbnailContent = /* @__PURE__ */
|
|
16416
|
+
thumbnailContent = /* @__PURE__ */ jsx309(
|
|
16390
16417
|
ThumbnailImage,
|
|
16391
16418
|
{
|
|
16392
16419
|
thumbnailImageType,
|
|
@@ -16421,10 +16448,10 @@ Thumbnail.displayName = "Thumbnail_UI";
|
|
|
16421
16448
|
|
|
16422
16449
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
16423
16450
|
import React2 from "react";
|
|
16424
|
-
import
|
|
16451
|
+
import styled99 from "styled-components";
|
|
16425
16452
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
16426
|
-
import { jsx as
|
|
16427
|
-
var StyledThumbnailCollage =
|
|
16453
|
+
import { jsx as jsx310 } from "react/jsx-runtime";
|
|
16454
|
+
var StyledThumbnailCollage = styled99.div`
|
|
16428
16455
|
display: grid;
|
|
16429
16456
|
gap: var(--wui-space-01);
|
|
16430
16457
|
width: 100%;
|
|
@@ -16506,7 +16533,7 @@ var ThumbnailCollage = ({
|
|
|
16506
16533
|
});
|
|
16507
16534
|
}) : [
|
|
16508
16535
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
16509
|
-
/* @__PURE__ */
|
|
16536
|
+
/* @__PURE__ */ jsx310(
|
|
16510
16537
|
Thumbnail,
|
|
16511
16538
|
{
|
|
16512
16539
|
gradientBackground,
|
|
@@ -16515,7 +16542,7 @@ var ThumbnailCollage = ({
|
|
|
16515
16542
|
"fallback"
|
|
16516
16543
|
)
|
|
16517
16544
|
];
|
|
16518
|
-
return /* @__PURE__ */
|
|
16545
|
+
return /* @__PURE__ */ jsx310(
|
|
16519
16546
|
StyledThumbnailCollage,
|
|
16520
16547
|
{
|
|
16521
16548
|
$gradientBackground: gradientBackground,
|
|
@@ -16527,26 +16554,26 @@ var ThumbnailCollage = ({
|
|
|
16527
16554
|
};
|
|
16528
16555
|
|
|
16529
16556
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
16530
|
-
import
|
|
16557
|
+
import styled100, { css as css46 } from "styled-components";
|
|
16531
16558
|
import { isNotNil as isNotNil41 } from "@wistia/type-guards";
|
|
16532
|
-
import { jsx as
|
|
16559
|
+
import { jsx as jsx311, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
16533
16560
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
16534
16561
|
if (iconOnly) {
|
|
16535
|
-
return /* @__PURE__ */
|
|
16562
|
+
return /* @__PURE__ */ jsx311(
|
|
16536
16563
|
"g",
|
|
16537
16564
|
{
|
|
16538
16565
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
16539
16566
|
fill: brandmarkColor,
|
|
16540
|
-
children: /* @__PURE__ */
|
|
16567
|
+
children: /* @__PURE__ */ jsx311("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" })
|
|
16541
16568
|
}
|
|
16542
16569
|
);
|
|
16543
16570
|
}
|
|
16544
|
-
return /* @__PURE__ */
|
|
16571
|
+
return /* @__PURE__ */ jsx311(
|
|
16545
16572
|
"g",
|
|
16546
16573
|
{
|
|
16547
16574
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
16548
16575
|
fill: brandmarkColor,
|
|
16549
|
-
children: /* @__PURE__ */
|
|
16576
|
+
children: /* @__PURE__ */ jsx311("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" })
|
|
16550
16577
|
}
|
|
16551
16578
|
);
|
|
16552
16579
|
};
|
|
@@ -16554,12 +16581,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
16554
16581
|
if (iconOnly) {
|
|
16555
16582
|
return null;
|
|
16556
16583
|
}
|
|
16557
|
-
return /* @__PURE__ */
|
|
16584
|
+
return /* @__PURE__ */ jsx311(
|
|
16558
16585
|
"g",
|
|
16559
16586
|
{
|
|
16560
16587
|
"data-testid": "ui-wistia-logo-logotype",
|
|
16561
16588
|
fill: logotypeColor,
|
|
16562
|
-
children: /* @__PURE__ */
|
|
16589
|
+
children: /* @__PURE__ */ jsx311("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" })
|
|
16563
16590
|
}
|
|
16564
16591
|
);
|
|
16565
16592
|
};
|
|
@@ -16569,7 +16596,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
16569
16596
|
}
|
|
16570
16597
|
return "0 0 144 31.47";
|
|
16571
16598
|
};
|
|
16572
|
-
var WistiaLogoComponent =
|
|
16599
|
+
var WistiaLogoComponent = styled100.svg`
|
|
16573
16600
|
height: ${({ height }) => `${height}px`};
|
|
16574
16601
|
|
|
16575
16602
|
/* ensure it will always fit on mobile */
|
|
@@ -16640,23 +16667,23 @@ var WistiaLogo = ({
|
|
|
16640
16667
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16641
16668
|
...props,
|
|
16642
16669
|
children: [
|
|
16643
|
-
/* @__PURE__ */
|
|
16644
|
-
isNotNil41(description) ? /* @__PURE__ */
|
|
16670
|
+
/* @__PURE__ */ jsx311("title", { children: title }),
|
|
16671
|
+
isNotNil41(description) ? /* @__PURE__ */ jsx311("desc", { children: description }) : null,
|
|
16645
16672
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
16646
16673
|
renderLogotype(logotypeColor, iconOnly)
|
|
16647
16674
|
]
|
|
16648
16675
|
}
|
|
16649
16676
|
);
|
|
16650
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
16677
|
+
return href !== void 0 ? /* @__PURE__ */ jsx311("a", { href, children: Logo }) : Logo;
|
|
16651
16678
|
};
|
|
16652
16679
|
WistiaLogo.displayName = "WistiaLogo_UI";
|
|
16653
16680
|
|
|
16654
16681
|
// src/components/InputPassword/InputPassword.tsx
|
|
16655
|
-
import
|
|
16682
|
+
import styled101 from "styled-components";
|
|
16656
16683
|
import { forwardRef as forwardRef35, useState as useState23 } from "react";
|
|
16657
16684
|
import { isFunction as isFunction4 } from "@wistia/type-guards";
|
|
16658
|
-
import { jsx as
|
|
16659
|
-
var StyledIconButton =
|
|
16685
|
+
import { jsx as jsx312 } from "react/jsx-runtime";
|
|
16686
|
+
var StyledIconButton = styled101(IconButton)`
|
|
16660
16687
|
/* override size for icon button since prop gets changed by Input */
|
|
16661
16688
|
height: var(--icon-button-size-sm);
|
|
16662
16689
|
width: var(--icon-button-size-sm);
|
|
@@ -16674,13 +16701,13 @@ var InputPassword = forwardRef35(
|
|
|
16674
16701
|
onVisibilityToggle(newVisibility);
|
|
16675
16702
|
}
|
|
16676
16703
|
};
|
|
16677
|
-
return /* @__PURE__ */
|
|
16704
|
+
return /* @__PURE__ */ jsx312(
|
|
16678
16705
|
Input,
|
|
16679
16706
|
{
|
|
16680
16707
|
...props,
|
|
16681
16708
|
ref,
|
|
16682
16709
|
disabled,
|
|
16683
|
-
rightIcon: /* @__PURE__ */
|
|
16710
|
+
rightIcon: /* @__PURE__ */ jsx312(
|
|
16684
16711
|
StyledIconButton,
|
|
16685
16712
|
{
|
|
16686
16713
|
disabled,
|
|
@@ -16688,7 +16715,7 @@ var InputPassword = forwardRef35(
|
|
|
16688
16715
|
onClick: handleClick,
|
|
16689
16716
|
tabIndex: disabled ? -1 : 0,
|
|
16690
16717
|
variant: "ghost",
|
|
16691
|
-
children: /* @__PURE__ */
|
|
16718
|
+
children: /* @__PURE__ */ jsx312(Icon, { type: isVisible ? "preview" : "hide" })
|
|
16692
16719
|
}
|
|
16693
16720
|
),
|
|
16694
16721
|
type: isVisible ? "text" : "password"
|
|
@@ -16701,7 +16728,7 @@ InputPassword.displayName = "InputPassword_UI";
|
|
|
16701
16728
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
16702
16729
|
import { useEffect as useEffect20, useState as useState24 } from "react";
|
|
16703
16730
|
import { isNil as isNil18, isNotNil as isNotNil42 } from "@wistia/type-guards";
|
|
16704
|
-
import { jsx as
|
|
16731
|
+
import { jsx as jsx313 } from "react/jsx-runtime";
|
|
16705
16732
|
var ContextMenu = ({
|
|
16706
16733
|
position,
|
|
16707
16734
|
triggerRef,
|
|
@@ -16726,7 +16753,7 @@ var ContextMenu = ({
|
|
|
16726
16753
|
return () => null;
|
|
16727
16754
|
}, [position, triggerRef]);
|
|
16728
16755
|
const isOpen = isNotNil42(position) || isRightClicked;
|
|
16729
|
-
return isOpen ? /* @__PURE__ */
|
|
16756
|
+
return isOpen ? /* @__PURE__ */ jsx313(
|
|
16730
16757
|
Menu,
|
|
16731
16758
|
{
|
|
16732
16759
|
avoidCollisions: false,
|
|
@@ -16737,7 +16764,7 @@ var ContextMenu = ({
|
|
|
16737
16764
|
onRequestClose();
|
|
16738
16765
|
}
|
|
16739
16766
|
},
|
|
16740
|
-
trigger: /* @__PURE__ */
|
|
16767
|
+
trigger: /* @__PURE__ */ jsx313(
|
|
16741
16768
|
"button",
|
|
16742
16769
|
{
|
|
16743
16770
|
"aria-label": "context menu",
|
|
@@ -16791,6 +16818,7 @@ export {
|
|
|
16791
16818
|
ContextMenu,
|
|
16792
16819
|
ContrastControls,
|
|
16793
16820
|
DataCard,
|
|
16821
|
+
DataCardHoverArrow,
|
|
16794
16822
|
DataCardTrend,
|
|
16795
16823
|
DataCards,
|
|
16796
16824
|
Divider,
|