@wistia/ui 0.6.20 → 0.6.21
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 +844 -720
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +34 -17
- package/dist/index.d.ts +34 -17
- package/dist/index.mjs +861 -737
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.21
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7413,211 +7413,104 @@ var Card = ({
|
|
|
7413
7413
|
Card.displayName = "Card";
|
|
7414
7414
|
|
|
7415
7415
|
// src/components/Checkbox/Checkbox.tsx
|
|
7416
|
-
import { forwardRef as
|
|
7417
|
-
import {
|
|
7418
|
-
import styled18 from "styled-components";
|
|
7416
|
+
import { forwardRef as forwardRef6, useId } from "react";
|
|
7417
|
+
import styled17, { css as css20 } from "styled-components";
|
|
7419
7418
|
import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
7420
7419
|
|
|
7421
|
-
// src/components/
|
|
7420
|
+
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
7422
7421
|
import styled16, { css as css19 } from "styled-components";
|
|
7422
|
+
import { isNil as isNil12, isNotNil as isNotNil8 } from "@wistia/type-guards";
|
|
7423
7423
|
|
|
7424
|
-
// src/components/
|
|
7425
|
-
import { forwardRef as forwardRef6 } from "react";
|
|
7424
|
+
// src/private/components/FormControlLabel/FormControlLabelDescription.tsx
|
|
7426
7425
|
import styled15, { css as css18 } from "styled-components";
|
|
7426
|
+
import { isNil as isNil11 } from "@wistia/type-guards";
|
|
7427
7427
|
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
7428
|
-
var
|
|
7429
|
-
|
|
7430
|
-
--font-size: var(--wui-typography-heading-hero-size);
|
|
7431
|
-
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
7432
|
-
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
7433
|
-
`;
|
|
7434
|
-
var heading1TextStyle = css18`
|
|
7435
|
-
--font-family: var(--wui-typography-heading-1-family);
|
|
7436
|
-
--font-size: var(--wui-typography-heading-1-size);
|
|
7437
|
-
--font-weight: var(--wui-typography-heading-1-weight);
|
|
7438
|
-
--line-height: var(--wui-typography-heading-1-line-height);
|
|
7439
|
-
`;
|
|
7440
|
-
var heading2TextStyle = css18`
|
|
7441
|
-
--font-family: var(--wui-typography-heading-2-family);
|
|
7442
|
-
--font-size: var(--wui-typography-heading-2-size);
|
|
7443
|
-
--font-weight: var(--wui-typography-heading-2-weight);
|
|
7444
|
-
--line-height: var(--wui-typography-heading-2-line-height);
|
|
7445
|
-
`;
|
|
7446
|
-
var heading3TextStyle = css18`
|
|
7447
|
-
--font-family: var(--wui-typography-heading-3-family);
|
|
7448
|
-
--font-size: var(--wui-typography-heading-3-size);
|
|
7449
|
-
--font-weight: var(--wui-typography-heading-3-weight);
|
|
7450
|
-
--line-height: var(--wui-typography-heading-3-line-height);
|
|
7451
|
-
`;
|
|
7452
|
-
var heading4TextStyle = css18`
|
|
7453
|
-
--font-family: var(--wui-typography-heading-4-family);
|
|
7454
|
-
--font-size: var(--wui-typography-heading-4-size);
|
|
7455
|
-
--font-weight: var(--wui-typography-heading-4-weight);
|
|
7456
|
-
--line-height: var(--wui-typography-heading-4-line-height);
|
|
7457
|
-
`;
|
|
7458
|
-
var heading5TextStyle = css18`
|
|
7459
|
-
--font-family: var(--wui-typography-heading-5-family);
|
|
7460
|
-
--font-size: var(--wui-typography-heading-5-size);
|
|
7461
|
-
--font-weight: var(--wui-typography-heading-5-weight);
|
|
7462
|
-
--line-height: var(--wui-typography-heading-5-line-height);
|
|
7463
|
-
`;
|
|
7464
|
-
var heading6TextStyle = css18`
|
|
7465
|
-
--font-family: var(--wui-typography-heading-6-family);
|
|
7466
|
-
--font-size: var(--wui-typography-heading-6-size);
|
|
7467
|
-
--font-weight: var(--wui-typography-heading-6-weight);
|
|
7468
|
-
--line-height: var(--wui-typography-heading-6-line-height);
|
|
7428
|
+
var disabledStyle = css18`
|
|
7429
|
+
color: var(--wui-color-text-disabled);
|
|
7469
7430
|
`;
|
|
7470
|
-
var
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
}
|
|
7479
|
-
var DEFAULT_ELEMENT2 = "h1";
|
|
7480
|
-
var StyledHeading = styled15.div`
|
|
7481
|
-
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7482
|
-
font-family: var(--font-family);
|
|
7483
|
-
font-size: var(--font-size);
|
|
7484
|
-
font-weight: var(--font-weight);
|
|
7485
|
-
line-height: var(--line-height);
|
|
7486
|
-
color: var(--wui-color-text);
|
|
7487
|
-
${({ $variant }) => variantStyleMap[$variant]}
|
|
7488
|
-
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7489
|
-
${({ $inline }) => $inline && css18`
|
|
7490
|
-
display: inline-block;
|
|
7491
|
-
`}
|
|
7492
|
-
${({ $disabled }) => $disabled && css18`
|
|
7493
|
-
color: var(--wui-color-text-disabled);
|
|
7494
|
-
`}
|
|
7495
|
-
${({ $preventUserSelect }) => $preventUserSelect && css18`
|
|
7496
|
-
user-select: none;
|
|
7497
|
-
`}
|
|
7498
|
-
${({ $align }) => css18`
|
|
7499
|
-
text-align: ${$align};
|
|
7500
|
-
`}
|
|
7501
|
-
margin: 0;
|
|
7431
|
+
var StyledFormControlLabelDescription = styled15.div`
|
|
7432
|
+
color: var(--wui-color-text-secondary);
|
|
7433
|
+
display: block;
|
|
7434
|
+
font-size: var(--wui-typography-body-4-size);
|
|
7435
|
+
font-weight: var(--wui-typography-body-4-weight);
|
|
7436
|
+
line-height: var(--wui-typography-body-4-line-height);
|
|
7437
|
+
margin-top: var(--wui-space-01);
|
|
7438
|
+
|
|
7439
|
+
${({ $disabled }) => $disabled && disabledStyle}
|
|
7502
7440
|
`;
|
|
7503
|
-
var
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
({
|
|
7514
|
-
align = "left",
|
|
7515
|
-
colorScheme = "inherit",
|
|
7516
|
-
disabled = false,
|
|
7517
|
-
ellipsis = false,
|
|
7518
|
-
inline = false,
|
|
7519
|
-
preventUserSelect = false,
|
|
7520
|
-
variant = "heading1",
|
|
7521
|
-
renderAs,
|
|
7522
|
-
...otherProps
|
|
7523
|
-
}, ref) => /* @__PURE__ */ jsx199(
|
|
7524
|
-
StyledHeading,
|
|
7441
|
+
var FormControlLabelDescription = ({
|
|
7442
|
+
children,
|
|
7443
|
+
disabled = false,
|
|
7444
|
+
...props
|
|
7445
|
+
}) => {
|
|
7446
|
+
if (isNil11(children)) {
|
|
7447
|
+
return null;
|
|
7448
|
+
}
|
|
7449
|
+
return /* @__PURE__ */ jsx199(
|
|
7450
|
+
StyledFormControlLabelDescription,
|
|
7525
7451
|
{
|
|
7526
|
-
|
|
7527
|
-
$align: align,
|
|
7528
|
-
$colorScheme: colorScheme,
|
|
7452
|
+
...props,
|
|
7529
7453
|
$disabled: disabled,
|
|
7530
|
-
|
|
7531
|
-
$inline: inline,
|
|
7532
|
-
$preventUserSelect: preventUserSelect,
|
|
7533
|
-
$variant: variant,
|
|
7534
|
-
as: renderAs ?? variantElementMap[variant],
|
|
7535
|
-
...otherProps
|
|
7454
|
+
children
|
|
7536
7455
|
}
|
|
7537
|
-
)
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
var Heading = makePolymorphic(HeadingComponent);
|
|
7456
|
+
);
|
|
7457
|
+
};
|
|
7458
|
+
FormControlLabelDescription.displayName = "FormControlLabelDescription";
|
|
7541
7459
|
|
|
7542
|
-
// src/components/
|
|
7543
|
-
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
7544
|
-
var
|
|
7545
|
-
&::after {
|
|
7546
|
-
color: var(--wui-color-text-error);
|
|
7547
|
-
display: inline;
|
|
7548
|
-
padding-left: var(--wui-space-01);
|
|
7549
|
-
content: '*';
|
|
7550
|
-
}
|
|
7551
|
-
`;
|
|
7552
|
-
var disabledStyle = css19`
|
|
7460
|
+
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
7461
|
+
import { jsx as jsx200, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7462
|
+
var disabledStyle2 = css19`
|
|
7553
7463
|
color: var(--wui-color-text-disabled);
|
|
7554
7464
|
`;
|
|
7555
|
-
var
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7465
|
+
var StyledLabelWrapper = styled16.div`
|
|
7466
|
+
display: flex;
|
|
7467
|
+
flex-direction: column;
|
|
7468
|
+
`;
|
|
7469
|
+
var StyledFormControlLabel = styled16.label`
|
|
7470
|
+
cursor: pointer;
|
|
7471
|
+
display: flex;
|
|
7472
|
+
align-items: center;
|
|
7473
|
+
gap: var(--wui-space-01);
|
|
7560
7474
|
width: 100%;
|
|
7475
|
+
color: var(--wui-color-tex);
|
|
7476
|
+
font-size: var(--wui-typography-label-3-size);
|
|
7477
|
+
font-weight: var(--wui-typography-label-3-weight);
|
|
7478
|
+
line-height: var(--wui-typography-label-3-line-height);
|
|
7561
7479
|
|
|
7562
|
-
|
|
7563
|
-
> input,
|
|
7564
|
-
> textarea,
|
|
7565
|
-
> select {
|
|
7566
|
-
display: block;
|
|
7567
|
-
}
|
|
7568
|
-
|
|
7569
|
-
> label {
|
|
7570
|
-
font-weight: normal;
|
|
7571
|
-
}
|
|
7572
|
-
|
|
7573
|
-
${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
|
|
7574
|
-
${({ $disabled }) => $disabled && disabledStyle}
|
|
7575
|
-
${({ $required }) => $required && requiredStyle}
|
|
7480
|
+
${({ $disabled }) => $disabled && disabledStyle2}
|
|
7576
7481
|
`;
|
|
7577
|
-
var
|
|
7578
|
-
|
|
7482
|
+
var FormControlLabel = ({
|
|
7483
|
+
label,
|
|
7484
|
+
description,
|
|
7579
7485
|
disabled = false,
|
|
7486
|
+
controlSlot,
|
|
7580
7487
|
htmlFor,
|
|
7581
|
-
required = false,
|
|
7582
|
-
screenReaderOnly = false,
|
|
7583
|
-
...otherProps
|
|
7584
|
-
}) => /* @__PURE__ */ jsx200(
|
|
7585
|
-
StyledLabel2,
|
|
7586
|
-
{
|
|
7587
|
-
...otherProps,
|
|
7588
|
-
$disabled: disabled,
|
|
7589
|
-
$required: required,
|
|
7590
|
-
$screenReaderOnly: screenReaderOnly,
|
|
7591
|
-
htmlFor,
|
|
7592
|
-
children
|
|
7593
|
-
}
|
|
7594
|
-
);
|
|
7595
|
-
Label.displayName = "Label";
|
|
7596
|
-
|
|
7597
|
-
// src/components/Label/LabelDescription.tsx
|
|
7598
|
-
import styled17 from "styled-components";
|
|
7599
|
-
import { isNil as isNil11 } from "@wistia/type-guards";
|
|
7600
|
-
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
7601
|
-
var StyledLabelDescription = styled17.div`
|
|
7602
|
-
color: var(--wui-color-text-secondary);
|
|
7603
|
-
font-size: var(--wui-typography-body-4-size);
|
|
7604
|
-
font-weight: var(--wui-typography-body-4-weight);
|
|
7605
|
-
line-height: var(--wui-typography-body-4-line-height);
|
|
7606
|
-
`;
|
|
7607
|
-
var LabelDescription = ({
|
|
7608
|
-
children,
|
|
7609
7488
|
...props
|
|
7610
7489
|
}) => {
|
|
7611
|
-
if (
|
|
7490
|
+
if (isNil12(label)) {
|
|
7612
7491
|
return null;
|
|
7613
7492
|
}
|
|
7614
|
-
return /* @__PURE__ */
|
|
7493
|
+
return /* @__PURE__ */ jsxs12(
|
|
7494
|
+
StyledFormControlLabel,
|
|
7495
|
+
{
|
|
7496
|
+
$disabled: disabled,
|
|
7497
|
+
htmlFor,
|
|
7498
|
+
...props,
|
|
7499
|
+
children: [
|
|
7500
|
+
isNotNil8(controlSlot) ? controlSlot : null,
|
|
7501
|
+
/* @__PURE__ */ jsxs12(StyledLabelWrapper, { children: [
|
|
7502
|
+
label,
|
|
7503
|
+
/* @__PURE__ */ jsx200(FormControlLabelDescription, { children: description })
|
|
7504
|
+
] })
|
|
7505
|
+
]
|
|
7506
|
+
}
|
|
7507
|
+
);
|
|
7615
7508
|
};
|
|
7616
|
-
|
|
7509
|
+
FormControlLabel.displayName = "FormControlLabel";
|
|
7617
7510
|
|
|
7618
7511
|
// src/components/Checkbox/Checkbox.tsx
|
|
7619
|
-
import { jsx as
|
|
7620
|
-
var CheckIcon = () => /* @__PURE__ */
|
|
7512
|
+
import { jsx as jsx201, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
7513
|
+
var CheckIcon = () => /* @__PURE__ */ jsx201(
|
|
7621
7514
|
"svg",
|
|
7622
7515
|
{
|
|
7623
7516
|
fill: "inherit",
|
|
@@ -7625,129 +7518,139 @@ var CheckIcon = () => /* @__PURE__ */ jsx202(
|
|
|
7625
7518
|
viewBox: "0 0 10 8",
|
|
7626
7519
|
width: "10",
|
|
7627
7520
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7628
|
-
children: /* @__PURE__ */
|
|
7521
|
+
children: /* @__PURE__ */ jsx201(
|
|
7629
7522
|
"path",
|
|
7630
7523
|
{
|
|
7631
7524
|
d: "M3.47281 7.19303L0.377565 4.07999C0.191609 3.89297 0.191609 3.58973 0.377565 3.40268L1.05098 2.72537C1.23694 2.53833 1.53847 2.53833 1.72442 2.72537L3.80953 4.82245L8.27558 0.330729C8.46154 0.143704 8.76306 0.143704 8.94902 0.330729L9.62244 1.00804C9.8084 1.19506 9.8084 1.49831 9.62244 1.68535L4.14624 7.19305C3.96027 7.38008 3.65876 7.38008 3.47281 7.19303Z",
|
|
7632
|
-
fill: "
|
|
7525
|
+
fill: "currentColor"
|
|
7633
7526
|
}
|
|
7634
7527
|
)
|
|
7635
7528
|
}
|
|
7636
7529
|
);
|
|
7637
|
-
var
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
cursor: pointer;
|
|
7641
|
-
|
|
7642
|
-
&:hover {
|
|
7643
|
-
/* TODO Lamp to design hover state */
|
|
7644
|
-
}
|
|
7645
|
-
|
|
7646
|
-
&:focus-within {
|
|
7647
|
-
/* TODO Lamp to design focus state */
|
|
7648
|
-
background-color: #efefef;
|
|
7649
|
-
}
|
|
7530
|
+
var disabledStyle3 = css20`
|
|
7531
|
+
cursor: not-allowed;
|
|
7532
|
+
opacity: 0.5;
|
|
7650
7533
|
`;
|
|
7651
|
-
var
|
|
7652
|
-
|
|
7653
|
-
|
|
7534
|
+
var inputSizeSmall = css20`
|
|
7535
|
+
width: 14px;
|
|
7536
|
+
height: 14px;
|
|
7537
|
+
min-width: 14px;
|
|
7538
|
+
min-height: 14px;
|
|
7539
|
+
`;
|
|
7540
|
+
var inputSizeMedium = css20`
|
|
7541
|
+
width: 16px;
|
|
7542
|
+
height: 16px;
|
|
7654
7543
|
min-width: 16px;
|
|
7655
7544
|
min-height: 16px;
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7545
|
+
`;
|
|
7546
|
+
var inputSizeLarge = css20`
|
|
7547
|
+
width: 20px;
|
|
7548
|
+
height: 20px;
|
|
7549
|
+
min-width: 20px;
|
|
7550
|
+
min-height: 20px;
|
|
7551
|
+
`;
|
|
7552
|
+
var StyledCheckboxWrapper = styled17.div`
|
|
7660
7553
|
display: flex;
|
|
7661
|
-
|
|
7662
|
-
justify-content: center;
|
|
7663
|
-
align-self: start; /* align to the top to handle label descriptions */
|
|
7554
|
+
margin: 0;
|
|
7664
7555
|
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
}
|
|
7556
|
+
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
7557
|
+
user-select: none;
|
|
7668
7558
|
|
|
7669
|
-
|
|
7670
|
-
|
|
7559
|
+
${({ disabled }) => disabled && disabledStyle3};
|
|
7560
|
+
`;
|
|
7561
|
+
var getSizeCss = (size) => {
|
|
7562
|
+
if (size === "sm") return inputSizeSmall;
|
|
7563
|
+
if (size === "lg") return inputSizeLarge;
|
|
7564
|
+
return inputSizeMedium;
|
|
7565
|
+
};
|
|
7566
|
+
var StyledCheckboxInput = styled17.div`
|
|
7567
|
+
${({ $size }) => getSizeCss($size)}
|
|
7568
|
+
line-height: 0;
|
|
7569
|
+
margin: 0;
|
|
7570
|
+
border: 1px solid var(--wui-color-border);
|
|
7571
|
+
border-radius: var(--wui-border-radius-01);
|
|
7572
|
+
background-color: var(--wui-color-bg-fill-white);
|
|
7573
|
+
display: grid;
|
|
7574
|
+
place-content: center;
|
|
7575
|
+
align-self: flex-start;
|
|
7671
7576
|
|
|
7672
|
-
|
|
7673
|
-
|
|
7577
|
+
svg {
|
|
7578
|
+
display: none;
|
|
7579
|
+
|
|
7580
|
+
path {
|
|
7581
|
+
fill: var(--wui-color-bg-fill-white);
|
|
7674
7582
|
}
|
|
7675
7583
|
}
|
|
7584
|
+
`;
|
|
7585
|
+
var StyledHiddenCheckboxInput = styled17.input`
|
|
7586
|
+
${visuallyHiddenStyle}
|
|
7676
7587
|
|
|
7677
|
-
|
|
7678
|
-
|
|
7588
|
+
/* toggles display of faux-input background-color */
|
|
7589
|
+
&:checked + label [data-wui-faux-input='true'] {
|
|
7590
|
+
background-color: var(--wui-color-bg-fill);
|
|
7679
7591
|
}
|
|
7680
7592
|
|
|
7681
|
-
|
|
7682
|
-
|
|
7593
|
+
/* toggles display of CheckIcon */
|
|
7594
|
+
&:checked + label svg {
|
|
7595
|
+
display: block;
|
|
7683
7596
|
}
|
|
7684
7597
|
`;
|
|
7685
|
-
var
|
|
7686
|
-
display: flex;
|
|
7687
|
-
`;
|
|
7688
|
-
var StyledLabelWrapper = styled18.div`
|
|
7689
|
-
display: flex;
|
|
7690
|
-
flex-direction: column;
|
|
7691
|
-
margin-left: var(--wui-space-02);
|
|
7692
|
-
`;
|
|
7693
|
-
var Checkbox = forwardRef7(
|
|
7598
|
+
var Checkbox = forwardRef6(
|
|
7694
7599
|
({
|
|
7695
7600
|
checked,
|
|
7696
7601
|
disabled = false,
|
|
7697
|
-
forceState,
|
|
7698
7602
|
id,
|
|
7699
7603
|
label,
|
|
7700
7604
|
description,
|
|
7701
7605
|
name,
|
|
7702
7606
|
onChange,
|
|
7607
|
+
size = "md",
|
|
7608
|
+
value,
|
|
7703
7609
|
required = false,
|
|
7704
|
-
|
|
7705
|
-
...otherProps
|
|
7610
|
+
...props
|
|
7706
7611
|
}, ref) => {
|
|
7707
7612
|
const generatedId = useId();
|
|
7708
|
-
const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox
|
|
7709
|
-
return /* @__PURE__ */
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7613
|
+
const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox-${generatedId}`;
|
|
7614
|
+
return /* @__PURE__ */ jsxs13(
|
|
7615
|
+
StyledCheckboxWrapper,
|
|
7616
|
+
{
|
|
7617
|
+
ref,
|
|
7618
|
+
disabled,
|
|
7619
|
+
children: [
|
|
7620
|
+
/* @__PURE__ */ jsx201(
|
|
7621
|
+
StyledHiddenCheckboxInput,
|
|
7622
|
+
{
|
|
7623
|
+
...props,
|
|
7624
|
+
ref,
|
|
7625
|
+
checked,
|
|
7626
|
+
disabled,
|
|
7627
|
+
id: computedId,
|
|
7628
|
+
name,
|
|
7629
|
+
onChange,
|
|
7630
|
+
required,
|
|
7631
|
+
type: "checkbox",
|
|
7632
|
+
value
|
|
7633
|
+
}
|
|
7634
|
+
),
|
|
7635
|
+
/* @__PURE__ */ jsx201(
|
|
7636
|
+
FormControlLabel,
|
|
7637
|
+
{
|
|
7638
|
+
controlSlot: /* @__PURE__ */ jsx201(
|
|
7639
|
+
StyledCheckboxInput,
|
|
7640
|
+
{
|
|
7641
|
+
$size: size,
|
|
7642
|
+
"data-wui-faux-input": "true",
|
|
7643
|
+
children: /* @__PURE__ */ jsx201(CheckIcon, {})
|
|
7727
7644
|
}
|
|
7728
|
-
|
|
7729
|
-
|
|
7645
|
+
),
|
|
7646
|
+
description,
|
|
7647
|
+
htmlFor: computedId,
|
|
7648
|
+
label
|
|
7730
7649
|
}
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
children: /* @__PURE__ */ jsx202(StyledCheckboxIndicator, { children: /* @__PURE__ */ jsx202(CheckIcon, {}) })
|
|
7736
|
-
}
|
|
7737
|
-
),
|
|
7738
|
-
/* @__PURE__ */ jsxs12(StyledLabelWrapper, { children: [
|
|
7739
|
-
/* @__PURE__ */ jsx202(
|
|
7740
|
-
Label,
|
|
7741
|
-
{
|
|
7742
|
-
disabled,
|
|
7743
|
-
htmlFor: computedId,
|
|
7744
|
-
required,
|
|
7745
|
-
children: label
|
|
7746
|
-
}
|
|
7747
|
-
),
|
|
7748
|
-
/* @__PURE__ */ jsx202(LabelDescription, { children: description })
|
|
7749
|
-
] })
|
|
7750
|
-
] });
|
|
7650
|
+
)
|
|
7651
|
+
]
|
|
7652
|
+
}
|
|
7653
|
+
);
|
|
7751
7654
|
}
|
|
7752
7655
|
);
|
|
7753
7656
|
Checkbox.displayName = "Checkbox";
|
|
@@ -7789,10 +7692,10 @@ ClickRegion.displayName = "ClickRegion";
|
|
|
7789
7692
|
|
|
7790
7693
|
// src/components/Collapsible/Collapsible.tsx
|
|
7791
7694
|
import { Root } from "@radix-ui/react-collapsible";
|
|
7792
|
-
import { isNotNil as
|
|
7793
|
-
import
|
|
7794
|
-
import { jsx as
|
|
7795
|
-
var StyledRoot =
|
|
7695
|
+
import { isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
7696
|
+
import styled18 from "styled-components";
|
|
7697
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
7698
|
+
var StyledRoot = styled18(Root)`
|
|
7796
7699
|
&[data-state='closed'] [data-wui-collapsible-content] {
|
|
7797
7700
|
display: -webkit-box;
|
|
7798
7701
|
-webkit-box-orient: vertical;
|
|
@@ -7806,43 +7709,163 @@ var Collapsible = ({
|
|
|
7806
7709
|
onOpenChange
|
|
7807
7710
|
}) => {
|
|
7808
7711
|
const controlProps = {
|
|
7809
|
-
...
|
|
7712
|
+
...isNotNil9(onOpenChange) && isNotNil9(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
7810
7713
|
};
|
|
7811
|
-
return /* @__PURE__ */
|
|
7714
|
+
return /* @__PURE__ */ jsx202(StyledRoot, { ...controlProps, children });
|
|
7812
7715
|
};
|
|
7813
7716
|
Collapsible.displayName = "Collapsible";
|
|
7814
7717
|
|
|
7815
7718
|
// src/components/Collapsible/CollapsibleTrigger.tsx
|
|
7816
7719
|
import { Children as Children4 } from "react";
|
|
7817
7720
|
import { Trigger } from "@radix-ui/react-collapsible";
|
|
7818
|
-
import { jsx as
|
|
7721
|
+
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
7819
7722
|
var CollapsibleTrigger = ({ children }) => {
|
|
7820
7723
|
Children4.only(children);
|
|
7821
|
-
return /* @__PURE__ */
|
|
7724
|
+
return /* @__PURE__ */ jsx203(Trigger, { asChild: true, children });
|
|
7822
7725
|
};
|
|
7823
7726
|
|
|
7824
7727
|
// src/components/Collapsible/CollapsibleContent.tsx
|
|
7825
|
-
import
|
|
7728
|
+
import styled19 from "styled-components";
|
|
7826
7729
|
import { Content } from "@radix-ui/react-collapsible";
|
|
7827
7730
|
import { isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
|
|
7828
|
-
import { Fragment as Fragment4, jsx as
|
|
7829
|
-
var ClampedContent =
|
|
7731
|
+
import { Fragment as Fragment4, jsx as jsx204, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
7732
|
+
var ClampedContent = styled19.div.attrs({ "data-wui-collapsible-content": true })`
|
|
7830
7733
|
--wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
|
|
7831
7734
|
`;
|
|
7832
7735
|
var CollapsibleContent = ({ clamp, children }) => {
|
|
7833
7736
|
if (isNotUndefined5(clamp)) {
|
|
7834
|
-
return /* @__PURE__ */
|
|
7737
|
+
return /* @__PURE__ */ jsx204(ClampedContent, { $clamp: clamp, children });
|
|
7835
7738
|
}
|
|
7836
|
-
return /* @__PURE__ */
|
|
7739
|
+
return /* @__PURE__ */ jsx204(Content, { asChild: true, children: /* @__PURE__ */ jsxs14(Fragment4, { children: [
|
|
7837
7740
|
children,
|
|
7838
7741
|
" "
|
|
7839
7742
|
] }) });
|
|
7840
7743
|
};
|
|
7841
7744
|
|
|
7842
7745
|
// src/components/DataCards/DataCard.tsx
|
|
7843
|
-
import styled21, { keyframes } from "styled-components";
|
|
7844
|
-
import { isNotNull } from "@wistia/type-guards";
|
|
7845
|
-
|
|
7746
|
+
import styled21, { keyframes } from "styled-components";
|
|
7747
|
+
import { isNotNull } from "@wistia/type-guards";
|
|
7748
|
+
|
|
7749
|
+
// src/components/Heading/Heading.tsx
|
|
7750
|
+
import { forwardRef as forwardRef7 } from "react";
|
|
7751
|
+
import styled20, { css as css21 } from "styled-components";
|
|
7752
|
+
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
7753
|
+
var heroStyle = css21`
|
|
7754
|
+
--font-family: var(--wui-typography-heading-hero-family);
|
|
7755
|
+
--font-size: var(--wui-typography-heading-hero-size);
|
|
7756
|
+
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
7757
|
+
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
7758
|
+
`;
|
|
7759
|
+
var heading1TextStyle = css21`
|
|
7760
|
+
--font-family: var(--wui-typography-heading-1-family);
|
|
7761
|
+
--font-size: var(--wui-typography-heading-1-size);
|
|
7762
|
+
--font-weight: var(--wui-typography-heading-1-weight);
|
|
7763
|
+
--line-height: var(--wui-typography-heading-1-line-height);
|
|
7764
|
+
`;
|
|
7765
|
+
var heading2TextStyle = css21`
|
|
7766
|
+
--font-family: var(--wui-typography-heading-2-family);
|
|
7767
|
+
--font-size: var(--wui-typography-heading-2-size);
|
|
7768
|
+
--font-weight: var(--wui-typography-heading-2-weight);
|
|
7769
|
+
--line-height: var(--wui-typography-heading-2-line-height);
|
|
7770
|
+
`;
|
|
7771
|
+
var heading3TextStyle = css21`
|
|
7772
|
+
--font-family: var(--wui-typography-heading-3-family);
|
|
7773
|
+
--font-size: var(--wui-typography-heading-3-size);
|
|
7774
|
+
--font-weight: var(--wui-typography-heading-3-weight);
|
|
7775
|
+
--line-height: var(--wui-typography-heading-3-line-height);
|
|
7776
|
+
`;
|
|
7777
|
+
var heading4TextStyle = css21`
|
|
7778
|
+
--font-family: var(--wui-typography-heading-4-family);
|
|
7779
|
+
--font-size: var(--wui-typography-heading-4-size);
|
|
7780
|
+
--font-weight: var(--wui-typography-heading-4-weight);
|
|
7781
|
+
--line-height: var(--wui-typography-heading-4-line-height);
|
|
7782
|
+
`;
|
|
7783
|
+
var heading5TextStyle = css21`
|
|
7784
|
+
--font-family: var(--wui-typography-heading-5-family);
|
|
7785
|
+
--font-size: var(--wui-typography-heading-5-size);
|
|
7786
|
+
--font-weight: var(--wui-typography-heading-5-weight);
|
|
7787
|
+
--line-height: var(--wui-typography-heading-5-line-height);
|
|
7788
|
+
`;
|
|
7789
|
+
var heading6TextStyle = css21`
|
|
7790
|
+
--font-family: var(--wui-typography-heading-6-family);
|
|
7791
|
+
--font-size: var(--wui-typography-heading-6-size);
|
|
7792
|
+
--font-weight: var(--wui-typography-heading-6-weight);
|
|
7793
|
+
--line-height: var(--wui-typography-heading-6-line-height);
|
|
7794
|
+
`;
|
|
7795
|
+
var variantStyleMap = {
|
|
7796
|
+
hero: heroStyle,
|
|
7797
|
+
heading1: heading1TextStyle,
|
|
7798
|
+
heading2: heading2TextStyle,
|
|
7799
|
+
heading3: heading3TextStyle,
|
|
7800
|
+
heading4: heading4TextStyle,
|
|
7801
|
+
heading5: heading5TextStyle,
|
|
7802
|
+
heading6: heading6TextStyle
|
|
7803
|
+
};
|
|
7804
|
+
var DEFAULT_ELEMENT2 = "h1";
|
|
7805
|
+
var StyledHeading = styled20.div`
|
|
7806
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7807
|
+
font-family: var(--font-family);
|
|
7808
|
+
font-size: var(--font-size);
|
|
7809
|
+
font-weight: var(--font-weight);
|
|
7810
|
+
line-height: var(--line-height);
|
|
7811
|
+
color: var(--wui-color-text);
|
|
7812
|
+
${({ $variant }) => variantStyleMap[$variant]}
|
|
7813
|
+
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7814
|
+
${({ $inline }) => $inline && css21`
|
|
7815
|
+
display: inline-block;
|
|
7816
|
+
`}
|
|
7817
|
+
${({ $disabled }) => $disabled && css21`
|
|
7818
|
+
color: var(--wui-color-text-disabled);
|
|
7819
|
+
`}
|
|
7820
|
+
${({ $preventUserSelect }) => $preventUserSelect && css21`
|
|
7821
|
+
user-select: none;
|
|
7822
|
+
`}
|
|
7823
|
+
${({ $align }) => css21`
|
|
7824
|
+
text-align: ${$align};
|
|
7825
|
+
`}
|
|
7826
|
+
margin: 0;
|
|
7827
|
+
`;
|
|
7828
|
+
var variantElementMap = {
|
|
7829
|
+
hero: DEFAULT_ELEMENT2,
|
|
7830
|
+
heading1: DEFAULT_ELEMENT2,
|
|
7831
|
+
heading2: "h2",
|
|
7832
|
+
heading3: "h3",
|
|
7833
|
+
heading4: "h4",
|
|
7834
|
+
heading5: "h5",
|
|
7835
|
+
heading6: "h6"
|
|
7836
|
+
};
|
|
7837
|
+
var HeadingComponent = forwardRef7(
|
|
7838
|
+
({
|
|
7839
|
+
align = "left",
|
|
7840
|
+
colorScheme = "inherit",
|
|
7841
|
+
disabled = false,
|
|
7842
|
+
ellipsis = false,
|
|
7843
|
+
inline = false,
|
|
7844
|
+
preventUserSelect = false,
|
|
7845
|
+
variant = "heading1",
|
|
7846
|
+
renderAs,
|
|
7847
|
+
...otherProps
|
|
7848
|
+
}, ref) => /* @__PURE__ */ jsx205(
|
|
7849
|
+
StyledHeading,
|
|
7850
|
+
{
|
|
7851
|
+
ref,
|
|
7852
|
+
$align: align,
|
|
7853
|
+
$colorScheme: colorScheme,
|
|
7854
|
+
$disabled: disabled,
|
|
7855
|
+
$ellipsis: ellipsis,
|
|
7856
|
+
$inline: inline,
|
|
7857
|
+
$preventUserSelect: preventUserSelect,
|
|
7858
|
+
$variant: variant,
|
|
7859
|
+
as: renderAs ?? variantElementMap[variant],
|
|
7860
|
+
...otherProps
|
|
7861
|
+
}
|
|
7862
|
+
)
|
|
7863
|
+
);
|
|
7864
|
+
HeadingComponent.displayName = "Heading";
|
|
7865
|
+
var Heading = makePolymorphic(HeadingComponent);
|
|
7866
|
+
|
|
7867
|
+
// src/components/DataCards/DataCard.tsx
|
|
7868
|
+
import { jsx as jsx206, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
7846
7869
|
var StyledDataCard = styled21.div`
|
|
7847
7870
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
7848
7871
|
display: grid;
|
|
@@ -7883,7 +7906,7 @@ var StyledLoadingValue = styled21(LoadingBackground)`
|
|
|
7883
7906
|
width: 90%;
|
|
7884
7907
|
height: var(--wui-typography-heading-3-line-height);
|
|
7885
7908
|
`;
|
|
7886
|
-
var
|
|
7909
|
+
var StyledLabel2 = styled21(Heading)`
|
|
7887
7910
|
grid-area: label;
|
|
7888
7911
|
`;
|
|
7889
7912
|
var StyledValue = styled21(Heading)`
|
|
@@ -7908,14 +7931,14 @@ var DataCard = ({
|
|
|
7908
7931
|
isLoading = false,
|
|
7909
7932
|
trend,
|
|
7910
7933
|
...props
|
|
7911
|
-
}) => /* @__PURE__ */
|
|
7934
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
7912
7935
|
StyledDataCard,
|
|
7913
7936
|
{
|
|
7914
7937
|
$colorScheme: colorScheme,
|
|
7915
7938
|
...props,
|
|
7916
7939
|
children: [
|
|
7917
7940
|
/* @__PURE__ */ jsx206(
|
|
7918
|
-
|
|
7941
|
+
StyledLabel2,
|
|
7919
7942
|
{
|
|
7920
7943
|
renderAs: "dt",
|
|
7921
7944
|
variant: "heading6",
|
|
@@ -7976,21 +7999,21 @@ import styled24 from "styled-components";
|
|
|
7976
7999
|
|
|
7977
8000
|
// src/components/Text/Text.tsx
|
|
7978
8001
|
import { forwardRef as forwardRef8 } from "react";
|
|
7979
|
-
import styled23, { css as
|
|
8002
|
+
import styled23, { css as css22 } from "styled-components";
|
|
7980
8003
|
import { jsx as jsx208 } from "react/jsx-runtime";
|
|
7981
|
-
var bodyBoldStyles =
|
|
8004
|
+
var bodyBoldStyles = css22`
|
|
7982
8005
|
> strong,
|
|
7983
8006
|
b {
|
|
7984
8007
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
7985
8008
|
}
|
|
7986
8009
|
`;
|
|
7987
|
-
var labelBoldStyles =
|
|
8010
|
+
var labelBoldStyles = css22`
|
|
7988
8011
|
> strong,
|
|
7989
8012
|
b {
|
|
7990
8013
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
7991
8014
|
}
|
|
7992
8015
|
`;
|
|
7993
|
-
var body1TextStyle =
|
|
8016
|
+
var body1TextStyle = css22`
|
|
7994
8017
|
--font-family: var(--wui-typography-body-1-family);
|
|
7995
8018
|
--font-size: var(--wui-typography-body-1-size);
|
|
7996
8019
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
@@ -7998,7 +8021,7 @@ var body1TextStyle = css20`
|
|
|
7998
8021
|
--paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
|
|
7999
8022
|
${bodyBoldStyles}
|
|
8000
8023
|
`;
|
|
8001
|
-
var body2TextStyle =
|
|
8024
|
+
var body2TextStyle = css22`
|
|
8002
8025
|
--font-family: var(--wui-typography-body-2-family);
|
|
8003
8026
|
--font-size: var(--wui-typography-body-2-size);
|
|
8004
8027
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -8006,7 +8029,7 @@ var body2TextStyle = css20`
|
|
|
8006
8029
|
--paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
|
|
8007
8030
|
${bodyBoldStyles}
|
|
8008
8031
|
`;
|
|
8009
|
-
var body3TextStyle =
|
|
8032
|
+
var body3TextStyle = css22`
|
|
8010
8033
|
--font-family: var(--wui-typography-body-3-family);
|
|
8011
8034
|
--font-size: var(--wui-typography-body-3-size);
|
|
8012
8035
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
@@ -8014,7 +8037,7 @@ var body3TextStyle = css20`
|
|
|
8014
8037
|
--paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
|
|
8015
8038
|
${bodyBoldStyles}
|
|
8016
8039
|
`;
|
|
8017
|
-
var body4TextStyle =
|
|
8040
|
+
var body4TextStyle = css22`
|
|
8018
8041
|
--font-family: var(--wui-typography-body-4-family);
|
|
8019
8042
|
--font-size: var(--wui-typography-body-4-size);
|
|
8020
8043
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -8022,47 +8045,47 @@ var body4TextStyle = css20`
|
|
|
8022
8045
|
--paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
|
|
8023
8046
|
${bodyBoldStyles}
|
|
8024
8047
|
`;
|
|
8025
|
-
var label1TextStyle =
|
|
8048
|
+
var label1TextStyle = css22`
|
|
8026
8049
|
--font-family: var(--wui-typography-label-1-family);
|
|
8027
8050
|
--font-size: var(--wui-typography-label-1-size);
|
|
8028
8051
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
8029
8052
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
8030
8053
|
${labelBoldStyles}
|
|
8031
8054
|
`;
|
|
8032
|
-
var label2TextStyle =
|
|
8055
|
+
var label2TextStyle = css22`
|
|
8033
8056
|
--font-family: var(--wui-typography-label-2-family);
|
|
8034
8057
|
--font-size: var(--wui-typography-label-2-size);
|
|
8035
8058
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
8036
8059
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
8037
8060
|
${labelBoldStyles}
|
|
8038
8061
|
`;
|
|
8039
|
-
var label3TextStyle =
|
|
8062
|
+
var label3TextStyle = css22`
|
|
8040
8063
|
--font-family: var(--wui-typography-label-3-family);
|
|
8041
8064
|
--font-size: var(--wui-typography-label-3-size);
|
|
8042
8065
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
8043
8066
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
8044
8067
|
${labelBoldStyles}
|
|
8045
8068
|
`;
|
|
8046
|
-
var label4TextStyle =
|
|
8069
|
+
var label4TextStyle = css22`
|
|
8047
8070
|
--font-family: var(--wui-typography-label-4-family);
|
|
8048
8071
|
--font-size: var(--wui-typography-label-4-size);
|
|
8049
8072
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
8050
8073
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
8051
8074
|
${labelBoldStyles}
|
|
8052
8075
|
`;
|
|
8053
|
-
var body1MonoTextStyle =
|
|
8076
|
+
var body1MonoTextStyle = css22`
|
|
8054
8077
|
${body1TextStyle};
|
|
8055
8078
|
--font-family: var(--wui-typography-family-mono);
|
|
8056
8079
|
`;
|
|
8057
|
-
var body2MonoTextStyle =
|
|
8080
|
+
var body2MonoTextStyle = css22`
|
|
8058
8081
|
${body2TextStyle};
|
|
8059
8082
|
--font-family: var(--wui-typography-family-mono);
|
|
8060
8083
|
`;
|
|
8061
|
-
var body3MonoTextStyle =
|
|
8084
|
+
var body3MonoTextStyle = css22`
|
|
8062
8085
|
${body3TextStyle};
|
|
8063
8086
|
--font-family: var(--wui-typography-family-mono);
|
|
8064
8087
|
`;
|
|
8065
|
-
var body4MonoTextStyle =
|
|
8088
|
+
var body4MonoTextStyle = css22`
|
|
8066
8089
|
${body4TextStyle};
|
|
8067
8090
|
--font-family: var(--wui-typography-family-mono);
|
|
8068
8091
|
`;
|
|
@@ -8121,19 +8144,19 @@ var StyledText = styled23.div`
|
|
|
8121
8144
|
margin: 0;
|
|
8122
8145
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
8123
8146
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
8124
|
-
${({ $inline }) => $inline &&
|
|
8147
|
+
${({ $inline }) => $inline && css22`
|
|
8125
8148
|
display: inline-block;
|
|
8126
8149
|
`}
|
|
8127
|
-
${({ $disabled }) => $disabled &&
|
|
8150
|
+
${({ $disabled }) => $disabled && css22`
|
|
8128
8151
|
--text-color: var(--wui-color-text-disabled);
|
|
8129
8152
|
`}
|
|
8130
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
8153
|
+
${({ $preventUserSelect }) => $preventUserSelect && css22`
|
|
8131
8154
|
user-select: none;
|
|
8132
8155
|
`}
|
|
8133
|
-
${({ $align }) =>
|
|
8156
|
+
${({ $align }) => css22`
|
|
8134
8157
|
text-align: ${$align};
|
|
8135
8158
|
`}
|
|
8136
|
-
${({ as }) => as === "p" &&
|
|
8159
|
+
${({ as }) => as === "p" && css22`
|
|
8137
8160
|
display: block;
|
|
8138
8161
|
|
|
8139
8162
|
+ p {
|
|
@@ -8176,7 +8199,7 @@ TextComponent.displayName = "Text";
|
|
|
8176
8199
|
var Text = makePolymorphic(TextComponent);
|
|
8177
8200
|
|
|
8178
8201
|
// src/components/DataCards/DataCardTrend.tsx
|
|
8179
|
-
import { jsx as jsx209, jsxs as
|
|
8202
|
+
import { jsx as jsx209, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
8180
8203
|
var StyledDataCardTrend = styled24.div`
|
|
8181
8204
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
8182
8205
|
background: var(--wui-color-bg-app);
|
|
@@ -8192,7 +8215,7 @@ var DataCardTrend = ({
|
|
|
8192
8215
|
children,
|
|
8193
8216
|
...props
|
|
8194
8217
|
}) => {
|
|
8195
|
-
return /* @__PURE__ */
|
|
8218
|
+
return /* @__PURE__ */ jsxs16(StyledDataCardTrend, { $outlook: outlook, children: [
|
|
8196
8219
|
/* @__PURE__ */ jsx209(
|
|
8197
8220
|
Icon,
|
|
8198
8221
|
{
|
|
@@ -8213,16 +8236,16 @@ var DataCardTrend = ({
|
|
|
8213
8236
|
};
|
|
8214
8237
|
|
|
8215
8238
|
// src/components/Divider/Divider.tsx
|
|
8216
|
-
import styled25, { css as
|
|
8239
|
+
import styled25, { css as css23 } from "styled-components";
|
|
8217
8240
|
import { jsx as jsx210 } from "react/jsx-runtime";
|
|
8218
|
-
var horizontalBorderCss =
|
|
8241
|
+
var horizontalBorderCss = css23`
|
|
8219
8242
|
border-top-color: var(--wui-color-border);
|
|
8220
8243
|
border-top-style: solid;
|
|
8221
8244
|
border-top-width: 1px;
|
|
8222
8245
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
8223
8246
|
height: 0;
|
|
8224
8247
|
`;
|
|
8225
|
-
var verticalBorderCss =
|
|
8248
|
+
var verticalBorderCss = css23`
|
|
8226
8249
|
background-color: var(--wui-color-border);
|
|
8227
8250
|
max-width: 1px;
|
|
8228
8251
|
min-height: 100%;
|
|
@@ -8256,12 +8279,12 @@ var Divider = ({
|
|
|
8256
8279
|
Divider.displayName = "Divider";
|
|
8257
8280
|
|
|
8258
8281
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
8259
|
-
import styled29, { css as
|
|
8282
|
+
import styled29, { css as css26 } from "styled-components";
|
|
8260
8283
|
import { useState as useState5, useRef as useRef4 } from "react";
|
|
8261
8284
|
|
|
8262
8285
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
8263
8286
|
import styled26 from "styled-components";
|
|
8264
|
-
import { isNotNil as
|
|
8287
|
+
import { isNotNil as isNotNil10 } from "@wistia/type-guards";
|
|
8265
8288
|
import { jsx as jsx211 } from "react/jsx-runtime";
|
|
8266
8289
|
var VisuallyHidden = styled26.div({ ...visuallyHiddenStyle });
|
|
8267
8290
|
var VisuallyHiddenButFocusable = styled26.div({
|
|
@@ -8273,7 +8296,7 @@ var ScreenReaderOnly = ({
|
|
|
8273
8296
|
focusable = false,
|
|
8274
8297
|
...otherProps
|
|
8275
8298
|
}) => {
|
|
8276
|
-
const accessibleText =
|
|
8299
|
+
const accessibleText = isNotNil10(text) ? text : children;
|
|
8277
8300
|
if (focusable) {
|
|
8278
8301
|
return /* @__PURE__ */ jsx211(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
8279
8302
|
}
|
|
@@ -8289,9 +8312,9 @@ import {
|
|
|
8289
8312
|
Portal as TooltipPortal,
|
|
8290
8313
|
Arrow as TooltipArrow
|
|
8291
8314
|
} from "@radix-ui/react-tooltip";
|
|
8292
|
-
import styled27, { css as
|
|
8293
|
-
import { jsx as jsx212, jsxs as
|
|
8294
|
-
var CompactTooltipStyles =
|
|
8315
|
+
import styled27, { css as css24 } from "styled-components";
|
|
8316
|
+
import { jsx as jsx212, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
8317
|
+
var CompactTooltipStyles = css24`
|
|
8295
8318
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8296
8319
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8297
8320
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8357,14 +8380,14 @@ var Tooltip = ({
|
|
|
8357
8380
|
if (forceOpen === true) {
|
|
8358
8381
|
rootProps.open = true;
|
|
8359
8382
|
}
|
|
8360
|
-
return /* @__PURE__ */
|
|
8383
|
+
return /* @__PURE__ */ jsxs17(
|
|
8361
8384
|
TooltipRoot,
|
|
8362
8385
|
{
|
|
8363
8386
|
delayDuration: delay,
|
|
8364
8387
|
...rootProps,
|
|
8365
8388
|
children: [
|
|
8366
8389
|
/* @__PURE__ */ jsx212(TooltipTrigger, { asChild: true, children }),
|
|
8367
|
-
/* @__PURE__ */ jsx212(TooltipPortal, { children: /* @__PURE__ */
|
|
8390
|
+
/* @__PURE__ */ jsx212(TooltipPortal, { children: /* @__PURE__ */ jsxs17(
|
|
8368
8391
|
StyledContent,
|
|
8369
8392
|
{
|
|
8370
8393
|
$compact: compact,
|
|
@@ -8395,10 +8418,10 @@ Tooltip.displayName = "Tooltip";
|
|
|
8395
8418
|
|
|
8396
8419
|
// src/components/Input/Input.tsx
|
|
8397
8420
|
import { forwardRef as forwardRef9, cloneElement as cloneElement4, useRef as useRef3 } from "react";
|
|
8398
|
-
import styled28, { css as
|
|
8399
|
-
import { isNil as
|
|
8400
|
-
import { jsx as jsx213, jsxs as
|
|
8401
|
-
var inputStyles =
|
|
8421
|
+
import styled28, { css as css25 } from "styled-components";
|
|
8422
|
+
import { isNil as isNil13, isNotNil as isNotNil11, isRecord as isRecord4 } from "@wistia/type-guards";
|
|
8423
|
+
import { jsx as jsx213, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
8424
|
+
var inputStyles = css25`
|
|
8402
8425
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
8403
8426
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
8404
8427
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -8496,27 +8519,27 @@ var Input = forwardRef9(
|
|
|
8496
8519
|
const internalRef = useRef3();
|
|
8497
8520
|
const ref = (
|
|
8498
8521
|
// eslint-disable-next-line react-compiler/react-compiler
|
|
8499
|
-
|
|
8522
|
+
isNotNil11(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef
|
|
8500
8523
|
);
|
|
8501
8524
|
let leftIconToDisplay = leftIcon;
|
|
8502
|
-
if (
|
|
8525
|
+
if (isNil13(leftIcon) && type === "search") {
|
|
8503
8526
|
leftIconToDisplay = /* @__PURE__ */ jsx213(Icon, { type: "search" });
|
|
8504
8527
|
}
|
|
8505
|
-
if (
|
|
8528
|
+
if (isNotNil11(leftIconToDisplay)) {
|
|
8506
8529
|
leftIconToDisplay = cloneElement4(leftIconToDisplay, {
|
|
8507
8530
|
size: "md",
|
|
8508
8531
|
className: "wui-input-left-icon"
|
|
8509
8532
|
});
|
|
8510
8533
|
}
|
|
8511
8534
|
let rightIconToDisplay = rightIcon;
|
|
8512
|
-
if (
|
|
8535
|
+
if (isNotNil11(rightIconToDisplay)) {
|
|
8513
8536
|
rightIconToDisplay = cloneElement4(rightIconToDisplay, {
|
|
8514
8537
|
size: "md",
|
|
8515
8538
|
className: "wui-input-right-icon"
|
|
8516
8539
|
});
|
|
8517
8540
|
}
|
|
8518
8541
|
const handleFocus = (event) => {
|
|
8519
|
-
if (
|
|
8542
|
+
if (isNotNil11(props.onFocus)) {
|
|
8520
8543
|
props.onFocus(event);
|
|
8521
8544
|
}
|
|
8522
8545
|
if (autoSelect && isValidRef(ref) && "current" in ref) {
|
|
@@ -8525,7 +8548,7 @@ var Input = forwardRef9(
|
|
|
8525
8548
|
});
|
|
8526
8549
|
}
|
|
8527
8550
|
};
|
|
8528
|
-
return /* @__PURE__ */
|
|
8551
|
+
return /* @__PURE__ */ jsxs18(
|
|
8529
8552
|
StyledInputContainer,
|
|
8530
8553
|
{
|
|
8531
8554
|
$fullWidth: fullWidth,
|
|
@@ -8557,7 +8580,7 @@ var Input = forwardRef9(
|
|
|
8557
8580
|
Input.displayName = "Input";
|
|
8558
8581
|
|
|
8559
8582
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
8560
|
-
import { Fragment as Fragment5, jsx as jsx214, jsxs as
|
|
8583
|
+
import { Fragment as Fragment5, jsx as jsx214, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
8561
8584
|
var StyledInput = styled29(Input)`
|
|
8562
8585
|
:not([rows]) {
|
|
8563
8586
|
min-height: unset;
|
|
@@ -8578,7 +8601,7 @@ var StyledInput = styled29(Input)`
|
|
|
8578
8601
|
height: ${({ $height }) => `${$height}px`};
|
|
8579
8602
|
}
|
|
8580
8603
|
`;
|
|
8581
|
-
var editableStyles =
|
|
8604
|
+
var editableStyles = css26`
|
|
8582
8605
|
&:has(+ :focus-within) {
|
|
8583
8606
|
background: var(--wui-color-bg-surface-hover);
|
|
8584
8607
|
}
|
|
@@ -8674,7 +8697,7 @@ var EditableHeading = ({
|
|
|
8674
8697
|
}
|
|
8675
8698
|
);
|
|
8676
8699
|
}
|
|
8677
|
-
return /* @__PURE__ */
|
|
8700
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
8678
8701
|
/* @__PURE__ */ jsx214(
|
|
8679
8702
|
Tooltip,
|
|
8680
8703
|
{
|
|
@@ -8871,7 +8894,7 @@ var useFormState = (action, initialData = {}) => {
|
|
|
8871
8894
|
// src/components/Form/FormErrorSummary.tsx
|
|
8872
8895
|
import { useContext as useContext2, useRef as useRef6 } from "react";
|
|
8873
8896
|
import { isArray, isNotUndefined as isNotUndefined7 } from "@wistia/type-guards";
|
|
8874
|
-
import { jsx as jsx217, jsxs as
|
|
8897
|
+
import { jsx as jsx217, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
8875
8898
|
var ErrorItem = ({ name, error, formId }) => {
|
|
8876
8899
|
return /* @__PURE__ */ jsx217("li", { children: /* @__PURE__ */ jsx217(Link, { href: `#${formId}-${name}`, children: error }) }, name);
|
|
8877
8900
|
};
|
|
@@ -8882,7 +8905,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
8882
8905
|
if (isValid || !hasSubmitted) {
|
|
8883
8906
|
return null;
|
|
8884
8907
|
}
|
|
8885
|
-
return /* @__PURE__ */
|
|
8908
|
+
return /* @__PURE__ */ jsxs20("div", { ref, children: [
|
|
8886
8909
|
/* @__PURE__ */ jsx217("p", { children: description }),
|
|
8887
8910
|
/* @__PURE__ */ jsx217("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined7(error)).map(
|
|
8888
8911
|
([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx217(
|
|
@@ -8908,32 +8931,92 @@ var FormErrorSummary = ({ description }) => {
|
|
|
8908
8931
|
|
|
8909
8932
|
// src/components/FormField/FormField.tsx
|
|
8910
8933
|
import { Children as Children5, cloneElement as cloneElement5, useContext as useContext3 } from "react";
|
|
8911
|
-
import
|
|
8912
|
-
import { isArray as isArray2, isNotNil as
|
|
8934
|
+
import styled34 from "styled-components";
|
|
8935
|
+
import { isArray as isArray2, isNotNil as isNotNil12, isNotUndefined as isNotUndefined8, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
8936
|
+
|
|
8937
|
+
// src/components/Label/Label.tsx
|
|
8938
|
+
import styled32, { css as css27 } from "styled-components";
|
|
8939
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
8940
|
+
var requiredStyle = css27`
|
|
8941
|
+
&::after {
|
|
8942
|
+
color: var(--wui-color-text-error);
|
|
8943
|
+
display: inline;
|
|
8944
|
+
padding-left: var(--wui-space-01);
|
|
8945
|
+
content: '*';
|
|
8946
|
+
}
|
|
8947
|
+
`;
|
|
8948
|
+
var disabledStyle4 = css27`
|
|
8949
|
+
color: var(--wui-color-text-disabled);
|
|
8950
|
+
`;
|
|
8951
|
+
var StyledLabel3 = styled32.label`
|
|
8952
|
+
display: block;
|
|
8953
|
+
width: 100%;
|
|
8954
|
+
color: var(--wui-color-text);
|
|
8955
|
+
font-family: var(--wui-typography-heading-6-family);
|
|
8956
|
+
line-height: var(--wui-typography-heading-6-line-height);
|
|
8957
|
+
font-size: var(--wui-typography-heading-6-size);
|
|
8958
|
+
font-weight: var(--wui-typography-heading-6-weight);
|
|
8959
|
+
|
|
8960
|
+
/* if label is wrapping an input this ensures it appears beneath the label with a nice margin */
|
|
8961
|
+
> input,
|
|
8962
|
+
> textarea,
|
|
8963
|
+
> select {
|
|
8964
|
+
display: block;
|
|
8965
|
+
}
|
|
8966
|
+
|
|
8967
|
+
> label {
|
|
8968
|
+
font-weight: normal;
|
|
8969
|
+
}
|
|
8970
|
+
|
|
8971
|
+
${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
|
|
8972
|
+
${({ $disabled }) => $disabled && disabledStyle4}
|
|
8973
|
+
${({ $required }) => $required && requiredStyle}
|
|
8974
|
+
`;
|
|
8975
|
+
var Label = ({
|
|
8976
|
+
children,
|
|
8977
|
+
disabled = false,
|
|
8978
|
+
htmlFor,
|
|
8979
|
+
required = false,
|
|
8980
|
+
screenReaderOnly = false,
|
|
8981
|
+
...otherProps
|
|
8982
|
+
}) => {
|
|
8983
|
+
return /* @__PURE__ */ jsx218(
|
|
8984
|
+
StyledLabel3,
|
|
8985
|
+
{
|
|
8986
|
+
...otherProps,
|
|
8987
|
+
$disabled: disabled,
|
|
8988
|
+
$required: required,
|
|
8989
|
+
$screenReaderOnly: screenReaderOnly,
|
|
8990
|
+
htmlFor,
|
|
8991
|
+
children
|
|
8992
|
+
}
|
|
8993
|
+
);
|
|
8994
|
+
};
|
|
8995
|
+
Label.displayName = "Label";
|
|
8913
8996
|
|
|
8914
8997
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
8915
8998
|
import { createContext as createContext3, useMemo as useMemo5 } from "react";
|
|
8916
8999
|
|
|
8917
9000
|
// src/components/FormGroup/FormGroup.tsx
|
|
8918
|
-
import
|
|
9001
|
+
import styled33 from "styled-components";
|
|
8919
9002
|
import { useRef as useRef7 } from "react";
|
|
8920
|
-
import { jsx as
|
|
8921
|
-
var StyledFieldset =
|
|
9003
|
+
import { jsx as jsx219, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
9004
|
+
var StyledFieldset = styled33.fieldset`
|
|
8922
9005
|
border: 0;
|
|
8923
9006
|
`;
|
|
8924
|
-
var StyledLegend =
|
|
9007
|
+
var StyledLegend = styled33.legend`
|
|
8925
9008
|
margin-bottom: var(--space-01);
|
|
8926
9009
|
`;
|
|
8927
9010
|
var FormGroup = ({ children, label, ...props }) => {
|
|
8928
9011
|
const ref = useRef7();
|
|
8929
|
-
return /* @__PURE__ */
|
|
9012
|
+
return /* @__PURE__ */ jsxs21(
|
|
8930
9013
|
Stack,
|
|
8931
9014
|
{
|
|
8932
9015
|
...props,
|
|
8933
9016
|
ref,
|
|
8934
9017
|
renderAs: StyledFieldset,
|
|
8935
9018
|
children: [
|
|
8936
|
-
/* @__PURE__ */
|
|
9019
|
+
/* @__PURE__ */ jsx219(
|
|
8937
9020
|
Heading,
|
|
8938
9021
|
{
|
|
8939
9022
|
renderAs: StyledLegend,
|
|
@@ -8949,7 +9032,7 @@ var FormGroup = ({ children, label, ...props }) => {
|
|
|
8949
9032
|
FormGroup.displayName = "FormGroup";
|
|
8950
9033
|
|
|
8951
9034
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
8952
|
-
import { jsx as
|
|
9035
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
8953
9036
|
var CheckboxGroupContext = createContext3(null);
|
|
8954
9037
|
var CheckboxGroup = ({
|
|
8955
9038
|
children,
|
|
@@ -8964,13 +9047,13 @@ var CheckboxGroup = ({
|
|
|
8964
9047
|
onChange
|
|
8965
9048
|
};
|
|
8966
9049
|
}, [name, onChange]);
|
|
8967
|
-
return /* @__PURE__ */
|
|
9050
|
+
return /* @__PURE__ */ jsx220(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx220(FormGroup, { ...props, children }) });
|
|
8968
9051
|
};
|
|
8969
9052
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
8970
9053
|
|
|
8971
9054
|
// src/components/FormField/FormField.tsx
|
|
8972
|
-
import { Fragment as Fragment6, jsx as
|
|
8973
|
-
var StyledFormField =
|
|
9055
|
+
import { Fragment as Fragment6, jsx as jsx221, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
9056
|
+
var StyledFormField = styled34.div`
|
|
8974
9057
|
--form-field-spacing: var(--wui-space-01);
|
|
8975
9058
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
8976
9059
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
@@ -8994,7 +9077,7 @@ var StyledFormField = styled33.div`
|
|
|
8994
9077
|
grid-template-rows: 1fr;
|
|
8995
9078
|
}
|
|
8996
9079
|
`;
|
|
8997
|
-
var StyledErrorList =
|
|
9080
|
+
var StyledErrorList = styled34.ul`
|
|
8998
9081
|
margin: 0;
|
|
8999
9082
|
padding: 0;
|
|
9000
9083
|
padding-left: var(--wui-space-04);
|
|
@@ -9004,7 +9087,7 @@ var StyledErrorList = styled33.ul`
|
|
|
9004
9087
|
`;
|
|
9005
9088
|
var ErrorMessages = ({ errors, id }) => {
|
|
9006
9089
|
const isMultipleErrors = isArray2(errors);
|
|
9007
|
-
return isMultipleErrors ? /* @__PURE__ */
|
|
9090
|
+
return isMultipleErrors ? /* @__PURE__ */ jsx221(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx221(
|
|
9008
9091
|
Text,
|
|
9009
9092
|
{
|
|
9010
9093
|
colorScheme: "error",
|
|
@@ -9014,7 +9097,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
9014
9097
|
children: error
|
|
9015
9098
|
},
|
|
9016
9099
|
`${id}-${index}`
|
|
9017
|
-
)) }) : /* @__PURE__ */
|
|
9100
|
+
)) }) : /* @__PURE__ */ jsx221(
|
|
9018
9101
|
Text,
|
|
9019
9102
|
{
|
|
9020
9103
|
colorScheme: "error",
|
|
@@ -9054,8 +9137,8 @@ var FormField = ({
|
|
|
9054
9137
|
defaultValue
|
|
9055
9138
|
};
|
|
9056
9139
|
}
|
|
9057
|
-
if (
|
|
9058
|
-
const computedName =
|
|
9140
|
+
if (isNotNil12(checkboxGroup)) {
|
|
9141
|
+
const computedName = isNotNil12(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
|
|
9059
9142
|
const handleChange = (event) => {
|
|
9060
9143
|
if (isNotUndefined8(props.onChange)) {
|
|
9061
9144
|
props.onChange(event);
|
|
@@ -9068,22 +9151,22 @@ var FormField = ({
|
|
|
9068
9151
|
...childProps,
|
|
9069
9152
|
name: computedName,
|
|
9070
9153
|
onChange: handleChange,
|
|
9071
|
-
"aria-invalid":
|
|
9072
|
-
"aria-describedby":
|
|
9154
|
+
"aria-invalid": isNotNil12(error),
|
|
9155
|
+
"aria-describedby": isNotNil12(error) ? `${computedId}-error` : void 0
|
|
9073
9156
|
};
|
|
9074
9157
|
}
|
|
9075
9158
|
Children5.only(children);
|
|
9076
|
-
return /* @__PURE__ */
|
|
9159
|
+
return /* @__PURE__ */ jsxs22(
|
|
9077
9160
|
StyledFormField,
|
|
9078
9161
|
{
|
|
9079
9162
|
...props,
|
|
9080
9163
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
9081
9164
|
children: [
|
|
9082
|
-
!isIntegratedLabel && /* @__PURE__ */
|
|
9165
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx221(Label, { htmlFor: computedId, children: label }),
|
|
9083
9166
|
cloneElement5(children, childProps),
|
|
9084
|
-
|
|
9085
|
-
/* @__PURE__ */
|
|
9086
|
-
/* @__PURE__ */
|
|
9167
|
+
isNotNil12(computedError) ? /* @__PURE__ */ jsxs22(Fragment6, { children: [
|
|
9168
|
+
/* @__PURE__ */ jsx221("div", {}),
|
|
9169
|
+
/* @__PURE__ */ jsx221(
|
|
9087
9170
|
ErrorMessages,
|
|
9088
9171
|
{
|
|
9089
9172
|
errors: computedError,
|
|
@@ -9099,7 +9182,7 @@ FormField.displayName = "FormField";
|
|
|
9099
9182
|
|
|
9100
9183
|
// src/components/FormGroup/RadioGroup.tsx
|
|
9101
9184
|
import { createContext as createContext4, useMemo as useMemo6 } from "react";
|
|
9102
|
-
import { jsx as
|
|
9185
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
9103
9186
|
var RadioGroupContext = createContext4(null);
|
|
9104
9187
|
var RadioGroup = ({
|
|
9105
9188
|
children,
|
|
@@ -9114,15 +9197,15 @@ var RadioGroup = ({
|
|
|
9114
9197
|
onChange
|
|
9115
9198
|
};
|
|
9116
9199
|
}, [name, onChange]);
|
|
9117
|
-
return /* @__PURE__ */
|
|
9200
|
+
return /* @__PURE__ */ jsx222(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx222(FormGroup, { ...props, children }) });
|
|
9118
9201
|
};
|
|
9119
9202
|
RadioGroup.displayName = "RadioGroup";
|
|
9120
9203
|
|
|
9121
9204
|
// src/components/IconButton/IconButton.tsx
|
|
9122
9205
|
import { Children as Children6, cloneElement as cloneElement6, forwardRef as forwardRef12 } from "react";
|
|
9123
|
-
import
|
|
9124
|
-
import { jsx as
|
|
9125
|
-
var StyledButton2 =
|
|
9206
|
+
import styled35 from "styled-components";
|
|
9207
|
+
import { jsx as jsx223 } from "react/jsx-runtime";
|
|
9208
|
+
var StyledButton2 = styled35(Button)`
|
|
9126
9209
|
--icon-button-size-sm: 24px;
|
|
9127
9210
|
--icon-button-size-md: 32px;
|
|
9128
9211
|
--icon-button-size-lg: 40px;
|
|
@@ -9139,7 +9222,7 @@ var StyledButton2 = styled34(Button)`
|
|
|
9139
9222
|
var IconButton = forwardRef12(
|
|
9140
9223
|
({ children, label, size = "md", ...props }, ref) => {
|
|
9141
9224
|
const responsiveSize = useResponsiveProp(size);
|
|
9142
|
-
return /* @__PURE__ */
|
|
9225
|
+
return /* @__PURE__ */ jsx223(
|
|
9143
9226
|
StyledButton2,
|
|
9144
9227
|
{
|
|
9145
9228
|
...props,
|
|
@@ -9157,9 +9240,9 @@ var IconButton = forwardRef12(
|
|
|
9157
9240
|
IconButton.displayName = "IconButton";
|
|
9158
9241
|
|
|
9159
9242
|
// src/components/Image/Image.tsx
|
|
9160
|
-
import
|
|
9161
|
-
import { isNotNil as
|
|
9162
|
-
import { jsx as
|
|
9243
|
+
import styled36 from "styled-components";
|
|
9244
|
+
import { isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
9245
|
+
import { jsx as jsx224 } from "react/jsx-runtime";
|
|
9163
9246
|
var getFillStyle2 = (fillContainer) => {
|
|
9164
9247
|
if (fillContainer === "horizontal") {
|
|
9165
9248
|
return "width: 100%;";
|
|
@@ -9175,8 +9258,8 @@ var getFillStyle2 = (fillContainer) => {
|
|
|
9175
9258
|
}
|
|
9176
9259
|
return void 0;
|
|
9177
9260
|
};
|
|
9178
|
-
var StyledImage =
|
|
9179
|
-
border-radius: ${({ $borderRadius }) =>
|
|
9261
|
+
var StyledImage = styled36.img`
|
|
9262
|
+
border-radius: ${({ $borderRadius }) => isNotNil13($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
|
|
9180
9263
|
${({ $fillContainer }) => getFillStyle2($fillContainer)};
|
|
9181
9264
|
object-fit: ${({ $objFit }) => $objFit};
|
|
9182
9265
|
object-position: ${({ $objPosition }) => $objPosition};
|
|
@@ -9190,7 +9273,7 @@ var Image = ({
|
|
|
9190
9273
|
loading = "lazy",
|
|
9191
9274
|
position: objPosition,
|
|
9192
9275
|
...otherProps
|
|
9193
|
-
}) => /* @__PURE__ */
|
|
9276
|
+
}) => /* @__PURE__ */ jsx224(
|
|
9194
9277
|
StyledImage,
|
|
9195
9278
|
{
|
|
9196
9279
|
$borderRadius: borderRadius,
|
|
@@ -9206,14 +9289,14 @@ var Image = ({
|
|
|
9206
9289
|
Image.displayName = "Image";
|
|
9207
9290
|
|
|
9208
9291
|
// src/components/Menu/Menu.tsx
|
|
9209
|
-
import
|
|
9292
|
+
import styled37, { css as css28, keyframes as keyframes2 } from "styled-components";
|
|
9210
9293
|
import {
|
|
9211
9294
|
DropdownMenu,
|
|
9212
9295
|
DropdownMenuTrigger,
|
|
9213
9296
|
DropdownMenuPortal,
|
|
9214
9297
|
DropdownMenuContent
|
|
9215
9298
|
} from "@radix-ui/react-dropdown-menu";
|
|
9216
|
-
import { isNotNil as
|
|
9299
|
+
import { isNotNil as isNotNil14, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
|
|
9217
9300
|
import { useMemo as useMemo7 } from "react";
|
|
9218
9301
|
|
|
9219
9302
|
// src/components/Menu/MenuContext.tsx
|
|
@@ -9222,7 +9305,7 @@ var MenuContext = createContext5({ compact: false });
|
|
|
9222
9305
|
var useMenuContext = () => useContext4(MenuContext);
|
|
9223
9306
|
|
|
9224
9307
|
// src/components/Menu/Menu.tsx
|
|
9225
|
-
import { jsx as
|
|
9308
|
+
import { jsx as jsx225, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
9226
9309
|
var open = keyframes2`
|
|
9227
9310
|
from {
|
|
9228
9311
|
opacity: 0;
|
|
@@ -9243,7 +9326,7 @@ var close = keyframes2`
|
|
|
9243
9326
|
transform: scale(.97) translateY(-8px);
|
|
9244
9327
|
}
|
|
9245
9328
|
`;
|
|
9246
|
-
var menuItemCss =
|
|
9329
|
+
var menuItemCss = css28`
|
|
9247
9330
|
--menu-label-description-gap: var(--wui-space-01);
|
|
9248
9331
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
9249
9332
|
--menu-item-left-icon-size: 24px;
|
|
@@ -9254,7 +9337,7 @@ var menuItemCss = css25`
|
|
|
9254
9337
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
9255
9338
|
--menu-divider-margin: var(--wui-space-02);
|
|
9256
9339
|
`;
|
|
9257
|
-
var compactMenuItemCss =
|
|
9340
|
+
var compactMenuItemCss = css28`
|
|
9258
9341
|
--menu-label-description-gap: 0;
|
|
9259
9342
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
9260
9343
|
--menu-item-left-icon-size: 16px;
|
|
@@ -9265,7 +9348,7 @@ var compactMenuItemCss = css25`
|
|
|
9265
9348
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
9266
9349
|
--menu-divider-margin: var(--wui-space-01);
|
|
9267
9350
|
`;
|
|
9268
|
-
var menuContentCss =
|
|
9351
|
+
var menuContentCss = css28`
|
|
9269
9352
|
--menu-font-family: var(--wui-typography-family-default);
|
|
9270
9353
|
--menu-bg: var(--wui-color-bg-surface);
|
|
9271
9354
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -9307,7 +9390,7 @@ var menuContentCss = css25`
|
|
|
9307
9390
|
margin: var(--menu-divider-margin) 0;
|
|
9308
9391
|
}
|
|
9309
9392
|
`;
|
|
9310
|
-
var MenuContent =
|
|
9393
|
+
var MenuContent = styled37(DropdownMenuContent)`
|
|
9311
9394
|
${menuContentCss}
|
|
9312
9395
|
`;
|
|
9313
9396
|
var Menu = ({
|
|
@@ -9325,7 +9408,7 @@ var Menu = ({
|
|
|
9325
9408
|
}) => {
|
|
9326
9409
|
const contextValue = useMemo7(() => ({ compact }), [compact]);
|
|
9327
9410
|
let controlProps = {
|
|
9328
|
-
...
|
|
9411
|
+
...isNotNil14(onOpenChange) && isNotNil14(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
9329
9412
|
};
|
|
9330
9413
|
if (disabled) {
|
|
9331
9414
|
controlProps = {
|
|
@@ -9333,24 +9416,24 @@ var Menu = ({
|
|
|
9333
9416
|
onOpenChange: () => null
|
|
9334
9417
|
};
|
|
9335
9418
|
}
|
|
9336
|
-
return /* @__PURE__ */
|
|
9419
|
+
return /* @__PURE__ */ jsx225(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs23(
|
|
9337
9420
|
DropdownMenu,
|
|
9338
9421
|
{
|
|
9339
9422
|
modal: false,
|
|
9340
9423
|
...controlProps,
|
|
9341
9424
|
children: [
|
|
9342
|
-
/* @__PURE__ */
|
|
9425
|
+
/* @__PURE__ */ jsx225(DropdownMenuTrigger, { asChild: true, children: isNotUndefined9(trigger) ? trigger : /* @__PURE__ */ jsx225(
|
|
9343
9426
|
Button,
|
|
9344
9427
|
{
|
|
9345
9428
|
"aria-expanded": isOpen,
|
|
9346
9429
|
disabled,
|
|
9347
9430
|
forceState: isOpen ? "active" : void 0,
|
|
9348
|
-
rightIcon: /* @__PURE__ */
|
|
9431
|
+
rightIcon: /* @__PURE__ */ jsx225(Icon, { type: "caret-down" }),
|
|
9349
9432
|
...triggerProps,
|
|
9350
9433
|
children: label
|
|
9351
9434
|
}
|
|
9352
9435
|
) }),
|
|
9353
|
-
/* @__PURE__ */
|
|
9436
|
+
/* @__PURE__ */ jsx225(DropdownMenuPortal, { children: /* @__PURE__ */ jsx225(
|
|
9354
9437
|
MenuContent,
|
|
9355
9438
|
{
|
|
9356
9439
|
...props,
|
|
@@ -9370,19 +9453,19 @@ var Menu = ({
|
|
|
9370
9453
|
Menu.displayName = "Menu";
|
|
9371
9454
|
|
|
9372
9455
|
// src/components/Menu/MenuLabel.tsx
|
|
9373
|
-
import
|
|
9456
|
+
import styled38 from "styled-components";
|
|
9374
9457
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
9375
|
-
import { jsx as
|
|
9376
|
-
var StyledMenuLabel =
|
|
9458
|
+
import { jsx as jsx226 } from "react/jsx-runtime";
|
|
9459
|
+
var StyledMenuLabel = styled38(DropdownMenuLabel)`
|
|
9377
9460
|
padding: var(--wui-space-02);
|
|
9378
9461
|
`;
|
|
9379
9462
|
var MenuLabel = ({ children, ...props }) => {
|
|
9380
|
-
return /* @__PURE__ */
|
|
9463
|
+
return /* @__PURE__ */ jsx226(
|
|
9381
9464
|
StyledMenuLabel,
|
|
9382
9465
|
{
|
|
9383
9466
|
asChild: true,
|
|
9384
9467
|
...props,
|
|
9385
|
-
children: /* @__PURE__ */
|
|
9468
|
+
children: /* @__PURE__ */ jsx226(
|
|
9386
9469
|
Heading,
|
|
9387
9470
|
{
|
|
9388
9471
|
renderAs: "span",
|
|
@@ -9398,7 +9481,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
9398
9481
|
|
|
9399
9482
|
// src/components/Menu/SubMenu.tsx
|
|
9400
9483
|
import { useState as useState8 } from "react";
|
|
9401
|
-
import
|
|
9484
|
+
import styled41 from "styled-components";
|
|
9402
9485
|
import {
|
|
9403
9486
|
DropdownMenuPortal as DropdownMenuPortal2,
|
|
9404
9487
|
DropdownMenuSub,
|
|
@@ -9407,14 +9490,14 @@ import {
|
|
|
9407
9490
|
DropdownMenuSubTrigger,
|
|
9408
9491
|
DropdownMenuItem
|
|
9409
9492
|
} from "@radix-ui/react-dropdown-menu";
|
|
9410
|
-
import { isNotNil as
|
|
9493
|
+
import { isNotNil as isNotNil16 } from "@wistia/type-guards";
|
|
9411
9494
|
|
|
9412
9495
|
// src/components/Menu/MenuItemButton.tsx
|
|
9413
9496
|
import { forwardRef as forwardRef13 } from "react";
|
|
9414
|
-
import
|
|
9415
|
-
import { isNotNil as
|
|
9416
|
-
import { jsx as
|
|
9417
|
-
var StyledButton3 =
|
|
9497
|
+
import styled39 from "styled-components";
|
|
9498
|
+
import { isNotNil as isNotNil15, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
|
|
9499
|
+
import { jsx as jsx227, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
9500
|
+
var StyledButton3 = styled39(Button)`
|
|
9418
9501
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
9419
9502
|
|
|
9420
9503
|
display: flex;
|
|
@@ -9453,7 +9536,7 @@ var StyledButton3 = styled38(Button)`
|
|
|
9453
9536
|
padding-left: var(--wui-space-04);
|
|
9454
9537
|
}
|
|
9455
9538
|
`;
|
|
9456
|
-
var StyledLeftIconContainer =
|
|
9539
|
+
var StyledLeftIconContainer = styled39.div`
|
|
9457
9540
|
height: var(--menu-item-left-icon-size);
|
|
9458
9541
|
width: var(--menu-item-left-icon-size);
|
|
9459
9542
|
|
|
@@ -9464,7 +9547,7 @@ var StyledLeftIconContainer = styled38.div`
|
|
|
9464
9547
|
}
|
|
9465
9548
|
}
|
|
9466
9549
|
`;
|
|
9467
|
-
var StyledRightIconContainer =
|
|
9550
|
+
var StyledRightIconContainer = styled39.div`
|
|
9468
9551
|
height: var(--menu-item-right-icon-size);
|
|
9469
9552
|
width: var(--menu-item-right-icon-size);
|
|
9470
9553
|
|
|
@@ -9475,13 +9558,13 @@ var StyledRightIconContainer = styled38.div`
|
|
|
9475
9558
|
}
|
|
9476
9559
|
}
|
|
9477
9560
|
`;
|
|
9478
|
-
var StyledLabelAndDescriptionContainer =
|
|
9561
|
+
var StyledLabelAndDescriptionContainer = styled39.div`
|
|
9479
9562
|
display: flex;
|
|
9480
9563
|
flex-direction: column;
|
|
9481
9564
|
gap: var(--menu-label-description-gap);
|
|
9482
9565
|
flex-basis: 100%;
|
|
9483
9566
|
`;
|
|
9484
|
-
var StyledBadgeContainer =
|
|
9567
|
+
var StyledBadgeContainer = styled39.div`
|
|
9485
9568
|
align-self: start;
|
|
9486
9569
|
justify-self: end;
|
|
9487
9570
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -9496,7 +9579,7 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
|
|
|
9496
9579
|
colorScheme = "error";
|
|
9497
9580
|
}
|
|
9498
9581
|
if (appearance === "gated") {
|
|
9499
|
-
badge = /* @__PURE__ */
|
|
9582
|
+
badge = /* @__PURE__ */ jsx227(
|
|
9500
9583
|
Icon,
|
|
9501
9584
|
{
|
|
9502
9585
|
colorScheme: "purple",
|
|
@@ -9508,7 +9591,7 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
|
|
|
9508
9591
|
}
|
|
9509
9592
|
);
|
|
9510
9593
|
}
|
|
9511
|
-
return /* @__PURE__ */
|
|
9594
|
+
return /* @__PURE__ */ jsxs24(
|
|
9512
9595
|
StyledButton3,
|
|
9513
9596
|
{
|
|
9514
9597
|
...props,
|
|
@@ -9518,10 +9601,10 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
|
|
|
9518
9601
|
fullWidth: true,
|
|
9519
9602
|
unstyled: true,
|
|
9520
9603
|
children: [
|
|
9521
|
-
props.leftIcon ? /* @__PURE__ */
|
|
9522
|
-
/* @__PURE__ */
|
|
9523
|
-
|
|
9524
|
-
props.rightIcon ? /* @__PURE__ */
|
|
9604
|
+
props.leftIcon ? /* @__PURE__ */ jsx227(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
9605
|
+
/* @__PURE__ */ jsx227(StyledLabelAndDescriptionContainer, { children }),
|
|
9606
|
+
isNotNil15(badge) || isNotNil15(command) ? /* @__PURE__ */ jsx227(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
9607
|
+
props.rightIcon ? /* @__PURE__ */ jsx227(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
9525
9608
|
]
|
|
9526
9609
|
}
|
|
9527
9610
|
);
|
|
@@ -9529,33 +9612,33 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
|
|
|
9529
9612
|
MenuItemButton.displayName = "MenuItemButton";
|
|
9530
9613
|
|
|
9531
9614
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
9532
|
-
import
|
|
9533
|
-
import { jsx as
|
|
9534
|
-
var StyledMenuItemLabel =
|
|
9535
|
-
var StyledMenuItemDescription =
|
|
9615
|
+
import styled40 from "styled-components";
|
|
9616
|
+
import { jsx as jsx228 } from "react/jsx-runtime";
|
|
9617
|
+
var StyledMenuItemLabel = styled40.span``;
|
|
9618
|
+
var StyledMenuItemDescription = styled40(Text).attrs({
|
|
9536
9619
|
variant: "body4",
|
|
9537
9620
|
prominence: "secondary"
|
|
9538
9621
|
})``;
|
|
9539
9622
|
var MenuItemLabel = ({ children }) => {
|
|
9540
|
-
return /* @__PURE__ */
|
|
9623
|
+
return /* @__PURE__ */ jsx228(StyledMenuItemLabel, { children });
|
|
9541
9624
|
};
|
|
9542
9625
|
var MenuItemDescription = ({ children }) => {
|
|
9543
|
-
return /* @__PURE__ */
|
|
9626
|
+
return /* @__PURE__ */ jsx228(StyledMenuItemDescription, { children });
|
|
9544
9627
|
};
|
|
9545
9628
|
|
|
9546
9629
|
// src/components/Menu/SubMenu.tsx
|
|
9547
|
-
import { jsx as
|
|
9548
|
-
var SubMenuContent =
|
|
9630
|
+
import { jsx as jsx229, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
9631
|
+
var SubMenuContent = styled41(DropdownMenuSubContent)`
|
|
9549
9632
|
${menuContentCss}
|
|
9550
9633
|
|
|
9551
9634
|
${mq.smAndDown} {
|
|
9552
9635
|
transform: translateX(-100%) !important;
|
|
9553
9636
|
}
|
|
9554
9637
|
`;
|
|
9555
|
-
var StyledMobileSubMenuItems =
|
|
9638
|
+
var StyledMobileSubMenuItems = styled41.div`
|
|
9556
9639
|
margin-left: var(--wui-space-04);
|
|
9557
9640
|
`;
|
|
9558
|
-
var StyledSubTrigger =
|
|
9641
|
+
var StyledSubTrigger = styled41(DropdownMenuSubTrigger)`
|
|
9559
9642
|
outline: none;
|
|
9560
9643
|
|
|
9561
9644
|
&[data-state='open'],
|
|
@@ -9566,12 +9649,12 @@ var StyledSubTrigger = styled40(DropdownMenuSubTrigger)`
|
|
|
9566
9649
|
var SubMenuTrigger = ({ icon, ...props }) => {
|
|
9567
9650
|
const { isSmAndUp } = useMq();
|
|
9568
9651
|
const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
9569
|
-
return /* @__PURE__ */
|
|
9652
|
+
return /* @__PURE__ */ jsx229(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx229(
|
|
9570
9653
|
MenuItemButton,
|
|
9571
9654
|
{
|
|
9572
9655
|
...props,
|
|
9573
9656
|
leftIcon: icon,
|
|
9574
|
-
rightIcon: /* @__PURE__ */
|
|
9657
|
+
rightIcon: /* @__PURE__ */ jsx229(Icon, { type: "caret-right" })
|
|
9575
9658
|
}
|
|
9576
9659
|
) });
|
|
9577
9660
|
};
|
|
@@ -9585,14 +9668,14 @@ var SubMenu = ({
|
|
|
9585
9668
|
const { isSmAndUp } = useMq();
|
|
9586
9669
|
const [isExpanded, setIsExpanded] = useState8(false);
|
|
9587
9670
|
const { compact } = useMenuContext();
|
|
9588
|
-
return isSmAndUp ? /* @__PURE__ */
|
|
9589
|
-
/* @__PURE__ */
|
|
9590
|
-
/* @__PURE__ */
|
|
9591
|
-
|
|
9671
|
+
return isSmAndUp ? /* @__PURE__ */ jsxs25(DropdownMenuSub, { onOpenChange, children: [
|
|
9672
|
+
/* @__PURE__ */ jsxs25(SubMenuTrigger, { ...props, children: [
|
|
9673
|
+
/* @__PURE__ */ jsx229(MenuItemLabel, { children: label }),
|
|
9674
|
+
isNotNil16(description) ? /* @__PURE__ */ jsx229(MenuItemDescription, { children: description }) : null
|
|
9592
9675
|
] }),
|
|
9593
|
-
/* @__PURE__ */
|
|
9594
|
-
] }) : /* @__PURE__ */
|
|
9595
|
-
/* @__PURE__ */
|
|
9676
|
+
/* @__PURE__ */ jsx229(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx229(SubMenuContent, { $compact: compact, children }) })
|
|
9677
|
+
] }) : /* @__PURE__ */ jsxs25(DropdownMenuGroup, { children: [
|
|
9678
|
+
/* @__PURE__ */ jsxs25(
|
|
9596
9679
|
SubMenuTrigger,
|
|
9597
9680
|
{
|
|
9598
9681
|
...props,
|
|
@@ -9601,12 +9684,12 @@ var SubMenu = ({
|
|
|
9601
9684
|
setIsExpanded((prev) => !prev);
|
|
9602
9685
|
},
|
|
9603
9686
|
children: [
|
|
9604
|
-
/* @__PURE__ */
|
|
9605
|
-
/* @__PURE__ */
|
|
9687
|
+
/* @__PURE__ */ jsx229(MenuItemLabel, { children: label }),
|
|
9688
|
+
/* @__PURE__ */ jsx229(MenuItemDescription, { children: description })
|
|
9606
9689
|
]
|
|
9607
9690
|
}
|
|
9608
9691
|
),
|
|
9609
|
-
/* @__PURE__ */
|
|
9692
|
+
/* @__PURE__ */ jsx229(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
|
|
9610
9693
|
] });
|
|
9611
9694
|
};
|
|
9612
9695
|
SubMenu.displayName = "SubMenu";
|
|
@@ -9614,15 +9697,15 @@ SubMenu.displayName = "SubMenu";
|
|
|
9614
9697
|
// src/components/Menu/MenuItem.tsx
|
|
9615
9698
|
import { forwardRef as forwardRef14 } from "react";
|
|
9616
9699
|
import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
|
|
9617
|
-
import { jsx as
|
|
9700
|
+
import { jsx as jsx230 } from "react/jsx-runtime";
|
|
9618
9701
|
var MenuItem = forwardRef14(
|
|
9619
9702
|
({ onSelect = () => null, ...props }, ref) => {
|
|
9620
|
-
return /* @__PURE__ */
|
|
9703
|
+
return /* @__PURE__ */ jsx230(
|
|
9621
9704
|
DropdownMenuItem2,
|
|
9622
9705
|
{
|
|
9623
9706
|
asChild: true,
|
|
9624
9707
|
onSelect,
|
|
9625
|
-
children: /* @__PURE__ */
|
|
9708
|
+
children: /* @__PURE__ */ jsx230(
|
|
9626
9709
|
MenuItemButton,
|
|
9627
9710
|
{
|
|
9628
9711
|
...props,
|
|
@@ -9640,10 +9723,10 @@ MenuItem.displayName = "MenuItem";
|
|
|
9640
9723
|
import {
|
|
9641
9724
|
DropdownMenuRadioGroup
|
|
9642
9725
|
} from "@radix-ui/react-dropdown-menu";
|
|
9643
|
-
import { jsx as
|
|
9726
|
+
import { jsx as jsx231, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
9644
9727
|
var MenuRadioGroup = ({ children, label, ...props }) => {
|
|
9645
|
-
return /* @__PURE__ */
|
|
9646
|
-
/* @__PURE__ */
|
|
9728
|
+
return /* @__PURE__ */ jsxs26(DropdownMenuRadioGroup, { ...props, children: [
|
|
9729
|
+
/* @__PURE__ */ jsx231(MenuLabel, { children: label }),
|
|
9647
9730
|
children
|
|
9648
9731
|
] });
|
|
9649
9732
|
};
|
|
@@ -9654,11 +9737,11 @@ import {
|
|
|
9654
9737
|
DropdownMenuItemIndicator,
|
|
9655
9738
|
DropdownMenuRadioItem
|
|
9656
9739
|
} from "@radix-ui/react-dropdown-menu";
|
|
9657
|
-
import { jsx as
|
|
9740
|
+
import { jsx as jsx232 } from "react/jsx-runtime";
|
|
9658
9741
|
var RadioMenuItem = ({
|
|
9659
9742
|
onSelect,
|
|
9660
9743
|
value,
|
|
9661
|
-
indicator = /* @__PURE__ */
|
|
9744
|
+
indicator = /* @__PURE__ */ jsx232(
|
|
9662
9745
|
Icon,
|
|
9663
9746
|
{
|
|
9664
9747
|
size: "sm",
|
|
@@ -9668,17 +9751,17 @@ var RadioMenuItem = ({
|
|
|
9668
9751
|
...props
|
|
9669
9752
|
}) => {
|
|
9670
9753
|
const extraProps = onSelect ? { onSelect } : {};
|
|
9671
|
-
return /* @__PURE__ */
|
|
9754
|
+
return /* @__PURE__ */ jsx232(
|
|
9672
9755
|
DropdownMenuRadioItem,
|
|
9673
9756
|
{
|
|
9674
9757
|
...extraProps,
|
|
9675
9758
|
asChild: true,
|
|
9676
9759
|
value,
|
|
9677
|
-
children: /* @__PURE__ */
|
|
9760
|
+
children: /* @__PURE__ */ jsx232(
|
|
9678
9761
|
MenuItemButton,
|
|
9679
9762
|
{
|
|
9680
9763
|
...props,
|
|
9681
|
-
rightIcon: /* @__PURE__ */
|
|
9764
|
+
rightIcon: /* @__PURE__ */ jsx232(DropdownMenuItemIndicator, { children: indicator })
|
|
9682
9765
|
}
|
|
9683
9766
|
)
|
|
9684
9767
|
}
|
|
@@ -9690,9 +9773,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
|
|
|
9690
9773
|
import {
|
|
9691
9774
|
DropdownMenuCheckboxItem
|
|
9692
9775
|
} from "@radix-ui/react-dropdown-menu";
|
|
9693
|
-
import { jsx as
|
|
9694
|
-
var
|
|
9695
|
-
return checked ? /* @__PURE__ */
|
|
9776
|
+
import { jsx as jsx233, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
9777
|
+
var CheckboxIndicator = ({ checked, ...props }) => {
|
|
9778
|
+
return checked ? /* @__PURE__ */ jsxs27(
|
|
9696
9779
|
"svg",
|
|
9697
9780
|
{
|
|
9698
9781
|
...props,
|
|
@@ -9702,14 +9785,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
9702
9785
|
width: "24",
|
|
9703
9786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9704
9787
|
children: [
|
|
9705
|
-
/* @__PURE__ */
|
|
9788
|
+
/* @__PURE__ */ jsx233(
|
|
9706
9789
|
"path",
|
|
9707
9790
|
{
|
|
9708
9791
|
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",
|
|
9709
9792
|
fill: "#2949e5"
|
|
9710
9793
|
}
|
|
9711
9794
|
),
|
|
9712
|
-
/* @__PURE__ */
|
|
9795
|
+
/* @__PURE__ */ jsx233(
|
|
9713
9796
|
"path",
|
|
9714
9797
|
{
|
|
9715
9798
|
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",
|
|
@@ -9718,7 +9801,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
9718
9801
|
)
|
|
9719
9802
|
]
|
|
9720
9803
|
}
|
|
9721
|
-
) : /* @__PURE__ */
|
|
9804
|
+
) : /* @__PURE__ */ jsxs27(
|
|
9722
9805
|
"svg",
|
|
9723
9806
|
{
|
|
9724
9807
|
...props,
|
|
@@ -9728,14 +9811,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
9728
9811
|
width: "24",
|
|
9729
9812
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9730
9813
|
children: [
|
|
9731
|
-
/* @__PURE__ */
|
|
9814
|
+
/* @__PURE__ */ jsx233(
|
|
9732
9815
|
"path",
|
|
9733
9816
|
{
|
|
9734
9817
|
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",
|
|
9735
9818
|
fill: "#fcfcfd"
|
|
9736
9819
|
}
|
|
9737
9820
|
),
|
|
9738
|
-
/* @__PURE__ */
|
|
9821
|
+
/* @__PURE__ */ jsx233(
|
|
9739
9822
|
"path",
|
|
9740
9823
|
{
|
|
9741
9824
|
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",
|
|
@@ -9752,18 +9835,18 @@ var CheckboxMenuItem = ({
|
|
|
9752
9835
|
onCheckedChange,
|
|
9753
9836
|
...props
|
|
9754
9837
|
}) => {
|
|
9755
|
-
return /* @__PURE__ */
|
|
9838
|
+
return /* @__PURE__ */ jsx233(
|
|
9756
9839
|
DropdownMenuCheckboxItem,
|
|
9757
9840
|
{
|
|
9758
9841
|
asChild: true,
|
|
9759
9842
|
checked,
|
|
9760
9843
|
onCheckedChange,
|
|
9761
9844
|
onSelect,
|
|
9762
|
-
children: /* @__PURE__ */
|
|
9845
|
+
children: /* @__PURE__ */ jsx233(
|
|
9763
9846
|
MenuItemButton,
|
|
9764
9847
|
{
|
|
9765
9848
|
...props,
|
|
9766
|
-
leftIcon: /* @__PURE__ */
|
|
9849
|
+
leftIcon: /* @__PURE__ */ jsx233(CheckboxIndicator, { checked })
|
|
9767
9850
|
}
|
|
9768
9851
|
)
|
|
9769
9852
|
}
|
|
@@ -9773,36 +9856,36 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
9773
9856
|
|
|
9774
9857
|
// src/components/Modal/Modal.tsx
|
|
9775
9858
|
import { forwardRef as forwardRef17 } from "react";
|
|
9776
|
-
import
|
|
9859
|
+
import styled46 from "styled-components";
|
|
9777
9860
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
9778
|
-
import { isNotNil as
|
|
9861
|
+
import { isNotNil as isNotNil18 } from "@wistia/type-guards";
|
|
9779
9862
|
|
|
9780
9863
|
// src/components/Modal/ModalHeader.tsx
|
|
9781
|
-
import
|
|
9864
|
+
import styled43 from "styled-components";
|
|
9782
9865
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
9783
9866
|
|
|
9784
9867
|
// src/components/Modal/ModalCloseButton.tsx
|
|
9785
|
-
import
|
|
9868
|
+
import styled42 from "styled-components";
|
|
9786
9869
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
9787
|
-
import { jsx as
|
|
9788
|
-
var CloseButton =
|
|
9870
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
9871
|
+
var CloseButton = styled42(DialogClose)`
|
|
9789
9872
|
align-self: start;
|
|
9790
9873
|
`;
|
|
9791
9874
|
var ModalCloseButton = () => {
|
|
9792
|
-
return /* @__PURE__ */
|
|
9875
|
+
return /* @__PURE__ */ jsx234(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx234(
|
|
9793
9876
|
IconButton,
|
|
9794
9877
|
{
|
|
9795
9878
|
label: "Dismiss modal",
|
|
9796
9879
|
size: "sm",
|
|
9797
9880
|
variant: "ghost",
|
|
9798
|
-
children: /* @__PURE__ */
|
|
9881
|
+
children: /* @__PURE__ */ jsx234(Icon, { type: "close" })
|
|
9799
9882
|
}
|
|
9800
9883
|
) });
|
|
9801
9884
|
};
|
|
9802
9885
|
|
|
9803
9886
|
// src/components/Modal/ModalHeader.tsx
|
|
9804
|
-
import { jsx as
|
|
9805
|
-
var Header =
|
|
9887
|
+
import { jsx as jsx235, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
9888
|
+
var Header = styled43.header`
|
|
9806
9889
|
display: flex;
|
|
9807
9890
|
order: 1;
|
|
9808
9891
|
gap: var(--wui-space-01);
|
|
@@ -9813,7 +9896,7 @@ var Header = styled42.header`
|
|
|
9813
9896
|
margin: 0 0 var(--wui-space-03);
|
|
9814
9897
|
}
|
|
9815
9898
|
`;
|
|
9816
|
-
var Title =
|
|
9899
|
+
var Title = styled43(DialogTitle)`
|
|
9817
9900
|
font-family: var(--wui-typography-heading-2-family);
|
|
9818
9901
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
9819
9902
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -9824,21 +9907,21 @@ var ModalHeader = ({
|
|
|
9824
9907
|
hideTitle,
|
|
9825
9908
|
hideCloseButton
|
|
9826
9909
|
}) => {
|
|
9827
|
-
const TitleComponent = hideTitle ? /* @__PURE__ */
|
|
9828
|
-
return /* @__PURE__ */
|
|
9910
|
+
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx235(ScreenReaderOnly, { children: /* @__PURE__ */ jsx235(Title, { children: title }) }) : /* @__PURE__ */ jsx235(Title, { children: title });
|
|
9911
|
+
return /* @__PURE__ */ jsxs28(Header, { $hideTitle: hideTitle, children: [
|
|
9829
9912
|
TitleComponent,
|
|
9830
|
-
hideCloseButton ? null : /* @__PURE__ */
|
|
9913
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx235(ModalCloseButton, {})
|
|
9831
9914
|
] });
|
|
9832
9915
|
};
|
|
9833
9916
|
|
|
9834
9917
|
// src/components/Modal/ModalContent.tsx
|
|
9835
9918
|
import { forwardRef as forwardRef15 } from "react";
|
|
9836
|
-
import
|
|
9919
|
+
import styled44 from "styled-components";
|
|
9837
9920
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
9838
9921
|
|
|
9839
9922
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
9840
9923
|
import { useRef as useRef8, useEffect as useEffect5 } from "react";
|
|
9841
|
-
import { isNotNil as
|
|
9924
|
+
import { isNotNil as isNotNil17 } from "@wistia/type-guards";
|
|
9842
9925
|
var useFocusRestore = () => {
|
|
9843
9926
|
const previouslyFocusedRef = useRef8(null);
|
|
9844
9927
|
useEffect5(() => {
|
|
@@ -9846,7 +9929,7 @@ var useFocusRestore = () => {
|
|
|
9846
9929
|
}, []);
|
|
9847
9930
|
useEffect5(() => {
|
|
9848
9931
|
return () => {
|
|
9849
|
-
if (
|
|
9932
|
+
if (isNotNil17(previouslyFocusedRef.current)) {
|
|
9850
9933
|
setTimeout(() => {
|
|
9851
9934
|
previouslyFocusedRef.current?.focus();
|
|
9852
9935
|
}, 0);
|
|
@@ -9856,8 +9939,8 @@ var useFocusRestore = () => {
|
|
|
9856
9939
|
};
|
|
9857
9940
|
|
|
9858
9941
|
// src/components/Modal/ModalContent.tsx
|
|
9859
|
-
import { jsx as
|
|
9860
|
-
var StyledModalContent =
|
|
9942
|
+
import { jsx as jsx236 } from "react/jsx-runtime";
|
|
9943
|
+
var StyledModalContent = styled44(DialogContent)`
|
|
9861
9944
|
background-color: var(--wui-color-bg-app);
|
|
9862
9945
|
box-sizing: border-box;
|
|
9863
9946
|
display: flex;
|
|
@@ -9901,7 +9984,7 @@ var StyledModalContent = styled43(DialogContent)`
|
|
|
9901
9984
|
var ModalContent = forwardRef15(
|
|
9902
9985
|
({ fullHeight, width, children, ...otherProps }, ref) => {
|
|
9903
9986
|
useFocusRestore();
|
|
9904
|
-
return /* @__PURE__ */
|
|
9987
|
+
return /* @__PURE__ */ jsx236(
|
|
9905
9988
|
StyledModalContent,
|
|
9906
9989
|
{
|
|
9907
9990
|
ref,
|
|
@@ -9917,8 +10000,8 @@ var ModalContent = forwardRef15(
|
|
|
9917
10000
|
|
|
9918
10001
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
9919
10002
|
import { forwardRef as forwardRef16 } from "react";
|
|
9920
|
-
import
|
|
9921
|
-
import { jsx as
|
|
10003
|
+
import styled45 from "styled-components";
|
|
10004
|
+
import { jsx as jsx237 } from "react/jsx-runtime";
|
|
9922
10005
|
var backdropAnimationDuration = 150;
|
|
9923
10006
|
var alignVerticalMap = {
|
|
9924
10007
|
stretch: "normal",
|
|
@@ -9931,7 +10014,7 @@ var alignHorizontalMap = {
|
|
|
9931
10014
|
center: "center",
|
|
9932
10015
|
right: "end"
|
|
9933
10016
|
};
|
|
9934
|
-
var BackdropComponent =
|
|
10017
|
+
var BackdropComponent = styled45.div`
|
|
9935
10018
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
9936
10019
|
animation-name: backdropShow;
|
|
9937
10020
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -9955,7 +10038,7 @@ var BackdropComponent = styled44.div`
|
|
|
9955
10038
|
}
|
|
9956
10039
|
`;
|
|
9957
10040
|
var Backdrop = forwardRef16(
|
|
9958
|
-
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */
|
|
10041
|
+
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx237(
|
|
9959
10042
|
BackdropComponent,
|
|
9960
10043
|
{
|
|
9961
10044
|
ref,
|
|
@@ -9969,9 +10052,9 @@ var Backdrop = forwardRef16(
|
|
|
9969
10052
|
Backdrop.displayName = "Backdrop";
|
|
9970
10053
|
|
|
9971
10054
|
// src/components/Modal/Modal.tsx
|
|
9972
|
-
import { jsx as
|
|
10055
|
+
import { jsx as jsx238, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
9973
10056
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
9974
|
-
var ModalBody =
|
|
10057
|
+
var ModalBody = styled46.div`
|
|
9975
10058
|
flex-direction: column;
|
|
9976
10059
|
display: flex;
|
|
9977
10060
|
order: 2;
|
|
@@ -9989,24 +10072,24 @@ var Modal = forwardRef17(
|
|
|
9989
10072
|
width = DEFAULT_MODAL_WIDTH,
|
|
9990
10073
|
...props
|
|
9991
10074
|
}, ref) => {
|
|
9992
|
-
return /* @__PURE__ */
|
|
10075
|
+
return /* @__PURE__ */ jsx238(
|
|
9993
10076
|
DialogRoot,
|
|
9994
10077
|
{
|
|
9995
10078
|
onOpenChange: (open2) => {
|
|
9996
|
-
if (!open2 &&
|
|
10079
|
+
if (!open2 && isNotNil18(onRequestClose)) {
|
|
9997
10080
|
onRequestClose();
|
|
9998
10081
|
}
|
|
9999
10082
|
},
|
|
10000
10083
|
open: isOpen,
|
|
10001
|
-
children: /* @__PURE__ */
|
|
10002
|
-
/* @__PURE__ */
|
|
10003
|
-
/* @__PURE__ */
|
|
10084
|
+
children: /* @__PURE__ */ jsxs29(DialogPortal, { children: [
|
|
10085
|
+
/* @__PURE__ */ jsx238(Backdrop, {}),
|
|
10086
|
+
/* @__PURE__ */ jsxs29(
|
|
10004
10087
|
ModalContent,
|
|
10005
10088
|
{
|
|
10006
10089
|
ref,
|
|
10007
10090
|
fullHeight,
|
|
10008
10091
|
onOpenAutoFocus: (event) => {
|
|
10009
|
-
if (
|
|
10092
|
+
if (isNotNil18(initialFocusRef) && initialFocusRef.current) {
|
|
10010
10093
|
event.preventDefault();
|
|
10011
10094
|
requestAnimationFrame(() => {
|
|
10012
10095
|
initialFocusRef.current?.focus();
|
|
@@ -10016,8 +10099,8 @@ var Modal = forwardRef17(
|
|
|
10016
10099
|
width,
|
|
10017
10100
|
...props,
|
|
10018
10101
|
children: [
|
|
10019
|
-
/* @__PURE__ */
|
|
10020
|
-
/* @__PURE__ */
|
|
10102
|
+
/* @__PURE__ */ jsx238(ModalBody, { children }),
|
|
10103
|
+
/* @__PURE__ */ jsx238(
|
|
10021
10104
|
ModalHeader,
|
|
10022
10105
|
{
|
|
10023
10106
|
hideCloseButton,
|
|
@@ -10037,18 +10120,18 @@ Modal.displayName = "Modal";
|
|
|
10037
10120
|
|
|
10038
10121
|
// src/components/Popover/Popover.tsx
|
|
10039
10122
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
10040
|
-
import
|
|
10123
|
+
import styled47, { css as css29 } from "styled-components";
|
|
10041
10124
|
|
|
10042
10125
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
10043
|
-
import { isNotNil as
|
|
10126
|
+
import { isNotNil as isNotNil19 } from "@wistia/type-guards";
|
|
10044
10127
|
var getControlProps = (isOpen, onOpenChange) => {
|
|
10045
|
-
return
|
|
10128
|
+
return isNotNil19(onOpenChange) && isNotNil19(isOpen) ? { open: isOpen, onOpenChange } : {};
|
|
10046
10129
|
};
|
|
10047
10130
|
|
|
10048
10131
|
// src/components/Popover/Popover.tsx
|
|
10049
|
-
import { jsx as
|
|
10050
|
-
var StyledContent2 =
|
|
10051
|
-
${({ $unstyled }) => !$unstyled &&
|
|
10132
|
+
import { jsx as jsx239, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
10133
|
+
var StyledContent2 = styled47(Content2)`
|
|
10134
|
+
${({ $unstyled }) => !$unstyled && css29`
|
|
10052
10135
|
border-radius: var(--wui-border-radius-02);
|
|
10053
10136
|
padding: var(--wui-space-04);
|
|
10054
10137
|
max-width: 320px;
|
|
@@ -10072,25 +10155,25 @@ var Popover = ({
|
|
|
10072
10155
|
unstyled = false,
|
|
10073
10156
|
...props
|
|
10074
10157
|
}) => {
|
|
10075
|
-
return /* @__PURE__ */
|
|
10076
|
-
/* @__PURE__ */
|
|
10077
|
-
/* @__PURE__ */
|
|
10158
|
+
return /* @__PURE__ */ jsxs30(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
10159
|
+
/* @__PURE__ */ jsx239(Trigger2, { asChild: true, children: trigger }),
|
|
10160
|
+
/* @__PURE__ */ jsx239(Portal, { children: /* @__PURE__ */ jsxs30(
|
|
10078
10161
|
StyledContent2,
|
|
10079
10162
|
{
|
|
10080
10163
|
sideOffset: 8,
|
|
10081
10164
|
...props,
|
|
10082
10165
|
$unstyled: unstyled,
|
|
10083
10166
|
children: [
|
|
10084
|
-
!hideCloseButton && /* @__PURE__ */
|
|
10167
|
+
!hideCloseButton && /* @__PURE__ */ jsx239(Close, { asChild: true, children: /* @__PURE__ */ jsx239(
|
|
10085
10168
|
IconButton,
|
|
10086
10169
|
{
|
|
10087
10170
|
"data-wui-popover-close": true,
|
|
10088
10171
|
label: "Close",
|
|
10089
10172
|
variant: "ghost",
|
|
10090
|
-
children: /* @__PURE__ */
|
|
10173
|
+
children: /* @__PURE__ */ jsx239(Icon, { type: "close" })
|
|
10091
10174
|
}
|
|
10092
10175
|
) }),
|
|
10093
|
-
/* @__PURE__ */
|
|
10176
|
+
/* @__PURE__ */ jsx239("div", { children })
|
|
10094
10177
|
]
|
|
10095
10178
|
}
|
|
10096
10179
|
) })
|
|
@@ -10099,11 +10182,11 @@ var Popover = ({
|
|
|
10099
10182
|
Popover.displayName = "Popover";
|
|
10100
10183
|
|
|
10101
10184
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
10102
|
-
import
|
|
10185
|
+
import styled48 from "styled-components";
|
|
10103
10186
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
10104
|
-
import { isNotNil as
|
|
10105
|
-
import { jsx as
|
|
10106
|
-
var ProgressBarWrapper =
|
|
10187
|
+
import { isNotNil as isNotNil20 } from "@wistia/type-guards";
|
|
10188
|
+
import { jsx as jsx240, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
10189
|
+
var ProgressBarWrapper = styled48.div`
|
|
10107
10190
|
--progress-bar-height: 8px;
|
|
10108
10191
|
--progress-bar-indicator-color: var(--wui-color-bg-fill);
|
|
10109
10192
|
--progress-bar-background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -10119,7 +10202,7 @@ var getTranslateValue = (progress, max) => {
|
|
|
10119
10202
|
const progressPercentage = progress / max * 100;
|
|
10120
10203
|
return `translateX(-${100 - progressPercentage}%)`;
|
|
10121
10204
|
};
|
|
10122
|
-
var ProgressBarLabel =
|
|
10205
|
+
var ProgressBarLabel = styled48.div`
|
|
10123
10206
|
display: flex;
|
|
10124
10207
|
line-height: var(--wui-typography-label-3-line-height);
|
|
10125
10208
|
font-size: var(--wui-typography-label-3-size);
|
|
@@ -10127,7 +10210,7 @@ var ProgressBarLabel = styled47.div`
|
|
|
10127
10210
|
color: var(--wui-color-text-secondary);
|
|
10128
10211
|
flex-shrink: 0;
|
|
10129
10212
|
`;
|
|
10130
|
-
var StyledProgressIndicator =
|
|
10213
|
+
var StyledProgressIndicator = styled48(ProgressIndicator)`
|
|
10131
10214
|
background-color: var(--progress-bar-indicator-color);
|
|
10132
10215
|
width: 100%;
|
|
10133
10216
|
height: 100%;
|
|
@@ -10136,7 +10219,7 @@ var StyledProgressIndicator = styled47(ProgressIndicator)`
|
|
|
10136
10219
|
transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
10137
10220
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
10138
10221
|
`;
|
|
10139
|
-
var StyledProgressBar =
|
|
10222
|
+
var StyledProgressBar = styled48(ProgressRoot)`
|
|
10140
10223
|
position: relative;
|
|
10141
10224
|
overflow: hidden;
|
|
10142
10225
|
background: var(--progress-bar-background-color);
|
|
@@ -10155,15 +10238,15 @@ var ProgressBar = ({
|
|
|
10155
10238
|
labelRight,
|
|
10156
10239
|
...props
|
|
10157
10240
|
}) => {
|
|
10158
|
-
return /* @__PURE__ */
|
|
10159
|
-
|
|
10160
|
-
/* @__PURE__ */
|
|
10241
|
+
return /* @__PURE__ */ jsxs31(ProgressBarWrapper, { children: [
|
|
10242
|
+
isNotNil20(labelLeft) ? /* @__PURE__ */ jsx240(ProgressBarLabel, { children: labelLeft }) : null,
|
|
10243
|
+
/* @__PURE__ */ jsx240(
|
|
10161
10244
|
StyledProgressBar,
|
|
10162
10245
|
{
|
|
10163
10246
|
max,
|
|
10164
10247
|
value: progress,
|
|
10165
10248
|
...props,
|
|
10166
|
-
children: /* @__PURE__ */
|
|
10249
|
+
children: /* @__PURE__ */ jsx240(
|
|
10167
10250
|
StyledProgressIndicator,
|
|
10168
10251
|
{
|
|
10169
10252
|
$max: max,
|
|
@@ -10172,85 +10255,102 @@ var ProgressBar = ({
|
|
|
10172
10255
|
)
|
|
10173
10256
|
}
|
|
10174
10257
|
),
|
|
10175
|
-
|
|
10258
|
+
isNotNil20(labelRight) ? /* @__PURE__ */ jsx240(ProgressBarLabel, { children: labelRight }) : null
|
|
10176
10259
|
] });
|
|
10177
10260
|
};
|
|
10178
10261
|
ProgressBar.displayName = "ProgressBar";
|
|
10179
10262
|
|
|
10180
10263
|
// src/components/Radio/Radio.tsx
|
|
10181
10264
|
import { forwardRef as forwardRef18, useId as useId3 } from "react";
|
|
10182
|
-
import
|
|
10265
|
+
import styled49, { css as css30 } from "styled-components";
|
|
10183
10266
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
10184
|
-
import { jsx as
|
|
10185
|
-
var
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10267
|
+
import { jsx as jsx241, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10268
|
+
var RadioIcon = () => /* @__PURE__ */ jsx241(
|
|
10269
|
+
"svg",
|
|
10270
|
+
{
|
|
10271
|
+
fill: "inherit",
|
|
10272
|
+
height: "12",
|
|
10273
|
+
viewBox: "0 0 12 12",
|
|
10274
|
+
width: "12",
|
|
10275
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10276
|
+
children: /* @__PURE__ */ jsx241(
|
|
10277
|
+
"circle",
|
|
10278
|
+
{
|
|
10279
|
+
cx: "6",
|
|
10280
|
+
cy: "6",
|
|
10281
|
+
fill: "currentColor",
|
|
10282
|
+
r: "4"
|
|
10283
|
+
}
|
|
10284
|
+
)
|
|
10285
|
+
}
|
|
10286
|
+
);
|
|
10287
|
+
var StyledHiddenRadioInput = styled49.input`
|
|
10288
|
+
${visuallyHiddenStyle}
|
|
10289
|
+
|
|
10290
|
+
/* toggles display of faux-input background-color */
|
|
10291
|
+
&:checked + label [data-wui-faux-input='true'] {
|
|
10292
|
+
border-color: var(--wui-color-bg-fill);
|
|
10293
|
+
}
|
|
10294
|
+
|
|
10295
|
+
/* toggles display of RadioIcon */
|
|
10296
|
+
&:checked + label svg {
|
|
10297
|
+
display: block;
|
|
10298
|
+
}
|
|
10189
10299
|
`;
|
|
10190
|
-
var
|
|
10191
|
-
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
10192
|
-
appearance: none;
|
|
10193
|
-
margin: 0;
|
|
10194
|
-
color: currentcolor;
|
|
10300
|
+
var inputSizeSmall2 = css30`
|
|
10195
10301
|
width: 14px;
|
|
10196
|
-
min-width: 14px;
|
|
10197
10302
|
height: 14px;
|
|
10303
|
+
min-width: 14px;
|
|
10304
|
+
min-height: 14px;
|
|
10305
|
+
`;
|
|
10306
|
+
var inputSizeMedium2 = css30`
|
|
10307
|
+
width: 16px;
|
|
10308
|
+
height: 16px;
|
|
10309
|
+
min-width: 16px;
|
|
10310
|
+
min-height: 16px;
|
|
10311
|
+
`;
|
|
10312
|
+
var inputSizeLarge2 = css30`
|
|
10313
|
+
width: 20px;
|
|
10314
|
+
height: 20px;
|
|
10315
|
+
min-width: 20px;
|
|
10316
|
+
min-height: 20px;
|
|
10317
|
+
`;
|
|
10318
|
+
var getSizeCss2 = (size) => {
|
|
10319
|
+
if (size === "sm") return inputSizeSmall2;
|
|
10320
|
+
if (size === "lg") return inputSizeLarge2;
|
|
10321
|
+
return inputSizeMedium2;
|
|
10322
|
+
};
|
|
10323
|
+
var StyledRadioInput = styled49.div`
|
|
10324
|
+
${({ $size }) => getSizeCss2($size)}
|
|
10325
|
+
line-height: 0;
|
|
10326
|
+
margin: 0;
|
|
10198
10327
|
border: 1px solid var(--wui-color-border);
|
|
10199
|
-
border-radius: 50%;
|
|
10328
|
+
border-radius: 50%; /* TODO --wui-border-radius-rounded */
|
|
10329
|
+
background-color: var(--wui-color-bg-fill-white);
|
|
10200
10330
|
display: grid;
|
|
10201
10331
|
place-content: center;
|
|
10332
|
+
align-self: flex-start;
|
|
10202
10333
|
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
width: 10px;
|
|
10206
|
-
height: 10px;
|
|
10207
|
-
border-radius: 50%;
|
|
10208
|
-
transform: scale(0);
|
|
10209
|
-
box-shadow: inset 1em 1em var(--wui-color-bg-fill);
|
|
10210
|
-
}
|
|
10334
|
+
svg {
|
|
10335
|
+
display: none;
|
|
10211
10336
|
|
|
10212
|
-
|
|
10213
|
-
|
|
10337
|
+
circle {
|
|
10338
|
+
fill: var(--wui-color-bg-fill);
|
|
10339
|
+
}
|
|
10214
10340
|
}
|
|
10215
10341
|
`;
|
|
10216
|
-
var
|
|
10342
|
+
var disabledStyle5 = css30`
|
|
10217
10343
|
cursor: not-allowed;
|
|
10218
10344
|
opacity: 0.5;
|
|
10219
10345
|
`;
|
|
10220
|
-
var
|
|
10221
|
-
/* TODO Lamp to design error state */
|
|
10222
|
-
&:hover,
|
|
10223
|
-
&:focus,
|
|
10224
|
-
&:active {
|
|
10225
|
-
border-color: transparent !important;
|
|
10226
|
-
}
|
|
10227
|
-
`;
|
|
10228
|
-
var defaultHoverStyle = css27`
|
|
10229
|
-
/* TODO Lamp to design hover state */
|
|
10230
|
-
cursor: pointer;
|
|
10231
|
-
`;
|
|
10232
|
-
var StyledRadioWrapper = styled48.div`
|
|
10233
|
-
align-items: baseline;
|
|
10234
|
-
border: 1px solid transparent;
|
|
10235
|
-
border-radius: 4px;
|
|
10346
|
+
var StyledRadioWrapper = styled49.div`
|
|
10236
10347
|
display: flex;
|
|
10237
|
-
|
|
10238
|
-
padding: var(--wui-space-02);
|
|
10239
|
-
|
|
10240
|
-
&:hover {
|
|
10241
|
-
${defaultHoverStyle}
|
|
10242
|
-
}
|
|
10243
|
-
|
|
10244
|
-
&:focus-within {
|
|
10245
|
-
/* TODO Lamp to design focus state */
|
|
10246
|
-
background-color: #efefef;
|
|
10247
|
-
}
|
|
10348
|
+
margin: 0;
|
|
10248
10349
|
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
}
|
|
10350
|
+
/* TODO this solves a problem but potentially causes and a11y issue */
|
|
10351
|
+
user-select: none;
|
|
10252
10352
|
|
|
10253
|
-
${({ disabled }) => disabled &&
|
|
10353
|
+
${({ $disabled }) => $disabled && disabledStyle5};
|
|
10254
10354
|
`;
|
|
10255
10355
|
var Radio = forwardRef18(
|
|
10256
10356
|
({
|
|
@@ -10261,45 +10361,50 @@ var Radio = forwardRef18(
|
|
|
10261
10361
|
description,
|
|
10262
10362
|
name,
|
|
10263
10363
|
onChange,
|
|
10264
|
-
|
|
10364
|
+
size = "md",
|
|
10265
10365
|
value = "false",
|
|
10266
|
-
|
|
10366
|
+
required = false,
|
|
10367
|
+
...props
|
|
10267
10368
|
}, ref) => {
|
|
10268
10369
|
const generatedId = useId3();
|
|
10269
|
-
const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
|
|
10270
|
-
return /* @__PURE__ */
|
|
10370
|
+
const computedId = isNonEmptyString3(id) ? id : `wistia-ui-radio-${generatedId}`;
|
|
10371
|
+
return /* @__PURE__ */ jsxs32(
|
|
10271
10372
|
StyledRadioWrapper,
|
|
10272
10373
|
{
|
|
10273
|
-
|
|
10274
|
-
|
|
10374
|
+
$disabled: disabled,
|
|
10375
|
+
"aria-invalid": props["aria-invalid"],
|
|
10275
10376
|
children: [
|
|
10276
|
-
/* @__PURE__ */
|
|
10277
|
-
|
|
10377
|
+
/* @__PURE__ */ jsx241(
|
|
10378
|
+
StyledHiddenRadioInput,
|
|
10278
10379
|
{
|
|
10380
|
+
...props,
|
|
10279
10381
|
ref,
|
|
10280
|
-
"aria-checked": checked,
|
|
10281
10382
|
checked,
|
|
10282
10383
|
disabled,
|
|
10283
10384
|
id: computedId,
|
|
10284
10385
|
name,
|
|
10285
10386
|
onChange,
|
|
10387
|
+
required,
|
|
10286
10388
|
type: "radio",
|
|
10287
|
-
value
|
|
10288
|
-
...otherProps
|
|
10389
|
+
value
|
|
10289
10390
|
}
|
|
10290
10391
|
),
|
|
10291
|
-
/* @__PURE__ */
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10392
|
+
/* @__PURE__ */ jsx241(
|
|
10393
|
+
FormControlLabel,
|
|
10394
|
+
{
|
|
10395
|
+
controlSlot: /* @__PURE__ */ jsx241(
|
|
10396
|
+
StyledRadioInput,
|
|
10397
|
+
{
|
|
10398
|
+
$size: size,
|
|
10399
|
+
"data-wui-faux-input": "true",
|
|
10400
|
+
children: /* @__PURE__ */ jsx241(RadioIcon, {})
|
|
10401
|
+
}
|
|
10402
|
+
),
|
|
10403
|
+
description,
|
|
10404
|
+
htmlFor: computedId,
|
|
10405
|
+
label
|
|
10406
|
+
}
|
|
10407
|
+
)
|
|
10303
10408
|
]
|
|
10304
10409
|
}
|
|
10305
10410
|
);
|
|
@@ -10309,13 +10414,13 @@ Radio.displayName = "Radio";
|
|
|
10309
10414
|
|
|
10310
10415
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
10311
10416
|
import { forwardRef as forwardRef19 } from "react";
|
|
10312
|
-
import
|
|
10417
|
+
import styled51, { css as css31 } from "styled-components";
|
|
10313
10418
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
10314
|
-
import { isNil as
|
|
10419
|
+
import { isNil as isNil14 } from "@wistia/type-guards";
|
|
10315
10420
|
|
|
10316
10421
|
// src/components/SegmentedControl/useSelectedItemMeasurements.tsx
|
|
10317
10422
|
import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState9 } from "react";
|
|
10318
|
-
import { jsx as
|
|
10423
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
10319
10424
|
var SelectedItemMeasurementsContext = createContext6(
|
|
10320
10425
|
null
|
|
10321
10426
|
);
|
|
@@ -10330,7 +10435,7 @@ var SelectedItemMeasurementsProvider = ({
|
|
|
10330
10435
|
}),
|
|
10331
10436
|
[selectedItemMeasurements]
|
|
10332
10437
|
);
|
|
10333
|
-
return /* @__PURE__ */
|
|
10438
|
+
return /* @__PURE__ */ jsx242(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
|
|
10334
10439
|
};
|
|
10335
10440
|
var useSelectedItemMeasurements = () => {
|
|
10336
10441
|
const context = useContext5(SelectedItemMeasurementsContext);
|
|
@@ -10344,7 +10449,7 @@ var useSelectedItemMeasurements = () => {
|
|
|
10344
10449
|
|
|
10345
10450
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
10346
10451
|
import { useMemo as useMemo9 } from "react";
|
|
10347
|
-
import
|
|
10452
|
+
import styled50 from "styled-components";
|
|
10348
10453
|
|
|
10349
10454
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
10350
10455
|
import { createContext as createContext7, useContext as useContext6 } from "react";
|
|
@@ -10359,8 +10464,8 @@ var useSegmentedControlValue = () => {
|
|
|
10359
10464
|
};
|
|
10360
10465
|
|
|
10361
10466
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
10362
|
-
import { jsx as
|
|
10363
|
-
var SelectedItemIndicatorDiv =
|
|
10467
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
10468
|
+
var SelectedItemIndicatorDiv = styled50.div`
|
|
10364
10469
|
background-color: var(--wui-color-bg-fill-white);
|
|
10365
10470
|
border-radius: var(--wui-border-radius-rounded);
|
|
10366
10471
|
left: 0;
|
|
@@ -10386,7 +10491,7 @@ var SelectedItemIndicator = () => {
|
|
|
10386
10491
|
if (!selectedValue) {
|
|
10387
10492
|
return null;
|
|
10388
10493
|
}
|
|
10389
|
-
return /* @__PURE__ */
|
|
10494
|
+
return /* @__PURE__ */ jsx243(
|
|
10390
10495
|
SelectedItemIndicatorDiv,
|
|
10391
10496
|
{
|
|
10392
10497
|
style: {
|
|
@@ -10399,8 +10504,8 @@ var SelectedItemIndicator = () => {
|
|
|
10399
10504
|
};
|
|
10400
10505
|
|
|
10401
10506
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
10402
|
-
import { jsx as
|
|
10403
|
-
var segmentedControlStyles =
|
|
10507
|
+
import { jsx as jsx244, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
10508
|
+
var segmentedControlStyles = css31`
|
|
10404
10509
|
display: inline-flex;
|
|
10405
10510
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
10406
10511
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -10410,7 +10515,7 @@ var segmentedControlStyles = css28`
|
|
|
10410
10515
|
position: relative;
|
|
10411
10516
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
10412
10517
|
`;
|
|
10413
|
-
var StyledSegmentedControl =
|
|
10518
|
+
var StyledSegmentedControl = styled51(ToggleGroupRoot)`
|
|
10414
10519
|
${segmentedControlStyles}
|
|
10415
10520
|
`;
|
|
10416
10521
|
var SegmentedControl = forwardRef19(
|
|
@@ -10422,10 +10527,10 @@ var SegmentedControl = forwardRef19(
|
|
|
10422
10527
|
onSelectedValueChange,
|
|
10423
10528
|
...props
|
|
10424
10529
|
}, ref) => {
|
|
10425
|
-
if (
|
|
10530
|
+
if (isNil14(children)) {
|
|
10426
10531
|
return null;
|
|
10427
10532
|
}
|
|
10428
|
-
return /* @__PURE__ */
|
|
10533
|
+
return /* @__PURE__ */ jsx244(
|
|
10429
10534
|
StyledSegmentedControl,
|
|
10430
10535
|
{
|
|
10431
10536
|
ref,
|
|
@@ -10437,8 +10542,8 @@ var SegmentedControl = forwardRef19(
|
|
|
10437
10542
|
type: "single",
|
|
10438
10543
|
value: selectedValue,
|
|
10439
10544
|
...props,
|
|
10440
|
-
children: /* @__PURE__ */
|
|
10441
|
-
/* @__PURE__ */
|
|
10545
|
+
children: /* @__PURE__ */ jsx244(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs33(SelectedItemMeasurementsProvider, { children: [
|
|
10546
|
+
/* @__PURE__ */ jsx244(SelectedItemIndicator, {}),
|
|
10442
10547
|
children
|
|
10443
10548
|
] }) })
|
|
10444
10549
|
}
|
|
@@ -10449,27 +10554,27 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
10449
10554
|
|
|
10450
10555
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
10451
10556
|
import { forwardRef as forwardRef20, useEffect as useEffect6, useRef as useRef9 } from "react";
|
|
10452
|
-
import
|
|
10557
|
+
import styled52, { css as css32 } from "styled-components";
|
|
10453
10558
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
10454
|
-
import { isNotNil as
|
|
10559
|
+
import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
10455
10560
|
|
|
10456
10561
|
// src/private/helpers/mergeRefs/mergeRefs.ts
|
|
10457
|
-
import { isNotNil as
|
|
10562
|
+
import { isNotNil as isNotNil21, isFunction as isFunction2 } from "@wistia/type-guards";
|
|
10458
10563
|
var mergeRefs = (refs) => (value) => {
|
|
10459
10564
|
refs.forEach((ref) => {
|
|
10460
10565
|
if (isFunction2(ref)) {
|
|
10461
10566
|
ref(value);
|
|
10462
10567
|
return;
|
|
10463
10568
|
}
|
|
10464
|
-
if (
|
|
10569
|
+
if (isNotNil21(ref)) {
|
|
10465
10570
|
ref.current = value;
|
|
10466
10571
|
}
|
|
10467
10572
|
});
|
|
10468
10573
|
};
|
|
10469
10574
|
|
|
10470
10575
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
10471
|
-
import { jsxs as
|
|
10472
|
-
var segmentedControlItemStyles =
|
|
10576
|
+
import { jsxs as jsxs34 } from "react/jsx-runtime";
|
|
10577
|
+
var segmentedControlItemStyles = css32`
|
|
10473
10578
|
all: unset; /* ToggleGroupItem is a button element */
|
|
10474
10579
|
align-items: center;
|
|
10475
10580
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -10528,7 +10633,7 @@ var segmentedControlItemStyles = css29`
|
|
|
10528
10633
|
}
|
|
10529
10634
|
}
|
|
10530
10635
|
`;
|
|
10531
|
-
var StyledSegmentedControlItem =
|
|
10636
|
+
var StyledSegmentedControlItem = styled52(ToggleGroupItem)`
|
|
10532
10637
|
${segmentedControlItemStyles}
|
|
10533
10638
|
`;
|
|
10534
10639
|
var SegmentedControlItem = forwardRef20(
|
|
@@ -10569,12 +10674,12 @@ var SegmentedControlItem = forwardRef20(
|
|
|
10569
10674
|
resizeObserver.disconnect();
|
|
10570
10675
|
};
|
|
10571
10676
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
10572
|
-
return /* @__PURE__ */
|
|
10677
|
+
return /* @__PURE__ */ jsxs34(
|
|
10573
10678
|
StyledSegmentedControlItem,
|
|
10574
10679
|
{
|
|
10575
10680
|
ref: combinedRef,
|
|
10576
|
-
$hasLabel:
|
|
10577
|
-
"aria-label":
|
|
10681
|
+
$hasLabel: isNotNil22(label),
|
|
10682
|
+
"aria-label": isNotNil22(label) ? void 0 : ariaLabel,
|
|
10578
10683
|
disabled,
|
|
10579
10684
|
onClick: handleClick,
|
|
10580
10685
|
value,
|
|
@@ -10600,9 +10705,9 @@ import {
|
|
|
10600
10705
|
ScrollDownButton
|
|
10601
10706
|
} from "@radix-ui/react-select";
|
|
10602
10707
|
import { forwardRef as forwardRef21 } from "react";
|
|
10603
|
-
import
|
|
10604
|
-
import { jsx as
|
|
10605
|
-
var StyledTrigger =
|
|
10708
|
+
import styled53 from "styled-components";
|
|
10709
|
+
import { jsx as jsx245, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10710
|
+
var StyledTrigger = styled53(Trigger3)`
|
|
10606
10711
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10607
10712
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
10608
10713
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -10650,7 +10755,7 @@ var StyledTrigger = styled52(Trigger3)`
|
|
|
10650
10755
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
10651
10756
|
}
|
|
10652
10757
|
`;
|
|
10653
|
-
var StyledContent3 =
|
|
10758
|
+
var StyledContent3 = styled53(Content3)`
|
|
10654
10759
|
--wui-select-content-border: var(--wui-color-border);
|
|
10655
10760
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
10656
10761
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -10678,13 +10783,13 @@ var Select = forwardRef21(
|
|
|
10678
10783
|
...props
|
|
10679
10784
|
}, forwardedRef) => {
|
|
10680
10785
|
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
10681
|
-
return /* @__PURE__ */
|
|
10786
|
+
return /* @__PURE__ */ jsxs35(
|
|
10682
10787
|
Root3,
|
|
10683
10788
|
{
|
|
10684
10789
|
...props,
|
|
10685
10790
|
onValueChange: onChange,
|
|
10686
10791
|
children: [
|
|
10687
|
-
/* @__PURE__ */
|
|
10792
|
+
/* @__PURE__ */ jsxs35(
|
|
10688
10793
|
StyledTrigger,
|
|
10689
10794
|
{
|
|
10690
10795
|
ref: forwardedRef,
|
|
@@ -10692,8 +10797,8 @@ var Select = forwardRef21(
|
|
|
10692
10797
|
$fullWidth: responsiveFullWidth,
|
|
10693
10798
|
...props,
|
|
10694
10799
|
children: [
|
|
10695
|
-
/* @__PURE__ */
|
|
10696
|
-
/* @__PURE__ */
|
|
10800
|
+
/* @__PURE__ */ jsx245(Value, { placeholder }),
|
|
10801
|
+
/* @__PURE__ */ jsx245(
|
|
10697
10802
|
Icon,
|
|
10698
10803
|
{
|
|
10699
10804
|
size: "md",
|
|
@@ -10703,10 +10808,10 @@ var Select = forwardRef21(
|
|
|
10703
10808
|
]
|
|
10704
10809
|
}
|
|
10705
10810
|
),
|
|
10706
|
-
/* @__PURE__ */
|
|
10707
|
-
/* @__PURE__ */
|
|
10708
|
-
/* @__PURE__ */
|
|
10709
|
-
/* @__PURE__ */
|
|
10811
|
+
/* @__PURE__ */ jsx245(Portal2, { children: /* @__PURE__ */ jsxs35(StyledContent3, { position: "popper", children: [
|
|
10812
|
+
/* @__PURE__ */ jsx245(ScrollUpButton, { children: /* @__PURE__ */ jsx245(Icon, { type: "caret-up" }) }),
|
|
10813
|
+
/* @__PURE__ */ jsx245(Viewport, { children }),
|
|
10814
|
+
/* @__PURE__ */ jsx245(ScrollDownButton, { children: /* @__PURE__ */ jsx245(Icon, { type: "caret-down" }) })
|
|
10710
10815
|
] }) })
|
|
10711
10816
|
]
|
|
10712
10817
|
}
|
|
@@ -10718,9 +10823,9 @@ Select.displayName = "Select";
|
|
|
10718
10823
|
// src/components/Select/SelectOption.tsx
|
|
10719
10824
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
10720
10825
|
import { forwardRef as forwardRef22 } from "react";
|
|
10721
|
-
import
|
|
10722
|
-
import { jsx as
|
|
10723
|
-
var StyledItem =
|
|
10826
|
+
import styled54 from "styled-components";
|
|
10827
|
+
import { jsx as jsx246, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
10828
|
+
var StyledItem = styled54(Item)`
|
|
10724
10829
|
${variantStyleMap2.body3};
|
|
10725
10830
|
display: flex;
|
|
10726
10831
|
padding: var(--wui-select-option-padding);
|
|
@@ -10743,25 +10848,25 @@ var StyledItem = styled53(Item)`
|
|
|
10743
10848
|
background-color: transparent;
|
|
10744
10849
|
}
|
|
10745
10850
|
`;
|
|
10746
|
-
var StyledIconContainer =
|
|
10851
|
+
var StyledIconContainer = styled54.span`
|
|
10747
10852
|
width: 12px;
|
|
10748
10853
|
`;
|
|
10749
10854
|
var SelectOption = forwardRef22(
|
|
10750
10855
|
({ children, ...props }, forwardedRef) => {
|
|
10751
|
-
return /* @__PURE__ */
|
|
10856
|
+
return /* @__PURE__ */ jsxs36(
|
|
10752
10857
|
StyledItem,
|
|
10753
10858
|
{
|
|
10754
10859
|
...props,
|
|
10755
10860
|
ref: forwardedRef,
|
|
10756
10861
|
children: [
|
|
10757
|
-
/* @__PURE__ */
|
|
10862
|
+
/* @__PURE__ */ jsx246(StyledIconContainer, { children: /* @__PURE__ */ jsx246(ItemIndicator, { children: /* @__PURE__ */ jsx246(
|
|
10758
10863
|
Icon,
|
|
10759
10864
|
{
|
|
10760
10865
|
size: "sm",
|
|
10761
10866
|
type: "checkmark"
|
|
10762
10867
|
}
|
|
10763
10868
|
) }) }),
|
|
10764
|
-
/* @__PURE__ */
|
|
10869
|
+
/* @__PURE__ */ jsx246(ItemText, { children })
|
|
10765
10870
|
]
|
|
10766
10871
|
}
|
|
10767
10872
|
);
|
|
@@ -10771,14 +10876,14 @@ SelectOption.displayName = "Option";
|
|
|
10771
10876
|
|
|
10772
10877
|
// src/components/Select/SelectOptionGroup.tsx
|
|
10773
10878
|
import { Group, Label as Label2 } from "@radix-ui/react-select";
|
|
10774
|
-
import
|
|
10775
|
-
import { jsx as
|
|
10776
|
-
var StyledLabel4 =
|
|
10879
|
+
import styled55 from "styled-components";
|
|
10880
|
+
import { jsx as jsx247, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10881
|
+
var StyledLabel4 = styled55(Label2)`
|
|
10777
10882
|
padding: var(--wui-select-option-padding);
|
|
10778
10883
|
`;
|
|
10779
10884
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
10780
|
-
return /* @__PURE__ */
|
|
10781
|
-
/* @__PURE__ */
|
|
10885
|
+
return /* @__PURE__ */ jsxs37(Group, { ...props, children: [
|
|
10886
|
+
/* @__PURE__ */ jsx247(StyledLabel4, { children: /* @__PURE__ */ jsx247(
|
|
10782
10887
|
Text,
|
|
10783
10888
|
{
|
|
10784
10889
|
prominence: "secondary",
|
|
@@ -10791,19 +10896,19 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
10791
10896
|
};
|
|
10792
10897
|
|
|
10793
10898
|
// src/components/Table/Table.tsx
|
|
10794
|
-
import
|
|
10795
|
-
import { jsx as
|
|
10796
|
-
var StyledTable =
|
|
10899
|
+
import styled56, { css as css33 } from "styled-components";
|
|
10900
|
+
import { jsx as jsx248 } from "react/jsx-runtime";
|
|
10901
|
+
var StyledTable = styled56.table`
|
|
10797
10902
|
width: 100%;
|
|
10798
10903
|
border-collapse: collapse;
|
|
10799
10904
|
|
|
10800
|
-
${({ $striped }) => $striped &&
|
|
10905
|
+
${({ $striped }) => $striped && css33`
|
|
10801
10906
|
tbody tr:nth-child(even) {
|
|
10802
10907
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
10803
10908
|
}
|
|
10804
10909
|
`}
|
|
10805
10910
|
|
|
10806
|
-
${({ $divided }) => $divided &&
|
|
10911
|
+
${({ $divided }) => $divided && css33`
|
|
10807
10912
|
tr {
|
|
10808
10913
|
border-bottom: 1px solid var(--wui-color-border);
|
|
10809
10914
|
}
|
|
@@ -10815,7 +10920,7 @@ var Table = ({
|
|
|
10815
10920
|
divided = false,
|
|
10816
10921
|
...props
|
|
10817
10922
|
}) => {
|
|
10818
|
-
return /* @__PURE__ */
|
|
10923
|
+
return /* @__PURE__ */ jsx248(
|
|
10819
10924
|
StyledTable,
|
|
10820
10925
|
{
|
|
10821
10926
|
$divided: divided,
|
|
@@ -10827,35 +10932,35 @@ var Table = ({
|
|
|
10827
10932
|
};
|
|
10828
10933
|
|
|
10829
10934
|
// src/components/Table/TableBody.tsx
|
|
10830
|
-
import
|
|
10935
|
+
import styled57 from "styled-components";
|
|
10831
10936
|
|
|
10832
10937
|
// src/components/Table/TableSectionContext.ts
|
|
10833
10938
|
import { createContext as createContext8 } from "react";
|
|
10834
10939
|
var TableSectionContext = createContext8(null);
|
|
10835
10940
|
|
|
10836
10941
|
// src/components/Table/TableBody.tsx
|
|
10837
|
-
import { jsx as
|
|
10838
|
-
var StyledTbody =
|
|
10942
|
+
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
10943
|
+
var StyledTbody = styled57.tbody``;
|
|
10839
10944
|
var TableBody = ({ children, ...props }) => {
|
|
10840
|
-
return /* @__PURE__ */
|
|
10945
|
+
return /* @__PURE__ */ jsx249(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx249(StyledTbody, { ...props, children }) });
|
|
10841
10946
|
};
|
|
10842
10947
|
|
|
10843
10948
|
// src/components/Table/TableCell.tsx
|
|
10844
10949
|
import { useContext as useContext7 } from "react";
|
|
10845
|
-
import
|
|
10846
|
-
import { jsx as
|
|
10847
|
-
var sharedStyles =
|
|
10950
|
+
import styled58, { css as css34 } from "styled-components";
|
|
10951
|
+
import { jsx as jsx250 } from "react/jsx-runtime";
|
|
10952
|
+
var sharedStyles = css34`
|
|
10848
10953
|
color: var(--wui-color-text);
|
|
10849
10954
|
padding: var(--wui-space-02);
|
|
10850
10955
|
text-align: left;
|
|
10851
10956
|
`;
|
|
10852
|
-
var StyledTh =
|
|
10957
|
+
var StyledTh = styled58.th`
|
|
10853
10958
|
${sharedStyles}
|
|
10854
10959
|
font-size: var(--wui-typography-body-4-size);
|
|
10855
10960
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
10856
10961
|
line-height: var(--wui-typography-body-4-line-height);
|
|
10857
10962
|
`;
|
|
10858
|
-
var StyledTd =
|
|
10963
|
+
var StyledTd = styled58.td`
|
|
10859
10964
|
${sharedStyles}
|
|
10860
10965
|
font-size: var(--wui-typography-body-2-size);
|
|
10861
10966
|
font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -10864,51 +10969,51 @@ var StyledTd = styled57.td`
|
|
|
10864
10969
|
var TableCell = ({ children, ...props }) => {
|
|
10865
10970
|
const section = useContext7(TableSectionContext);
|
|
10866
10971
|
if (section === "head") {
|
|
10867
|
-
return /* @__PURE__ */
|
|
10972
|
+
return /* @__PURE__ */ jsx250(StyledTh, { ...props, children });
|
|
10868
10973
|
}
|
|
10869
|
-
return /* @__PURE__ */
|
|
10974
|
+
return /* @__PURE__ */ jsx250(StyledTd, { ...props, children });
|
|
10870
10975
|
};
|
|
10871
10976
|
|
|
10872
10977
|
// src/components/Table/TableFooter.tsx
|
|
10873
|
-
import
|
|
10874
|
-
import { jsx as
|
|
10875
|
-
var StyledTfoot =
|
|
10978
|
+
import styled59 from "styled-components";
|
|
10979
|
+
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
10980
|
+
var StyledTfoot = styled59.tfoot``;
|
|
10876
10981
|
var TableFooter = ({ children, ...props }) => {
|
|
10877
|
-
return /* @__PURE__ */
|
|
10982
|
+
return /* @__PURE__ */ jsx251(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx251(StyledTfoot, { ...props, children }) });
|
|
10878
10983
|
};
|
|
10879
10984
|
|
|
10880
10985
|
// src/components/Table/TableHead.tsx
|
|
10881
|
-
import
|
|
10882
|
-
import { jsx as
|
|
10883
|
-
var StyledThead =
|
|
10986
|
+
import styled60 from "styled-components";
|
|
10987
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
10988
|
+
var StyledThead = styled60.thead``;
|
|
10884
10989
|
var TableHead = ({ children, ...props }) => {
|
|
10885
|
-
return /* @__PURE__ */
|
|
10990
|
+
return /* @__PURE__ */ jsx252(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx252(StyledThead, { ...props, children }) });
|
|
10886
10991
|
};
|
|
10887
10992
|
|
|
10888
10993
|
// src/components/Table/TableRow.tsx
|
|
10889
|
-
import
|
|
10890
|
-
import { jsx as
|
|
10891
|
-
var StyledTr =
|
|
10994
|
+
import styled61 from "styled-components";
|
|
10995
|
+
import { jsx as jsx253 } from "react/jsx-runtime";
|
|
10996
|
+
var StyledTr = styled61.tr``;
|
|
10892
10997
|
var TableRow = ({ children, ...props }) => {
|
|
10893
|
-
return /* @__PURE__ */
|
|
10998
|
+
return /* @__PURE__ */ jsx253(StyledTr, { ...props, children });
|
|
10894
10999
|
};
|
|
10895
11000
|
|
|
10896
11001
|
// src/components/Tabs/Tabs.tsx
|
|
10897
11002
|
import { forwardRef as forwardRef24, useState as useState10 } from "react";
|
|
10898
11003
|
import { Root as TabsRoot } from "@radix-ui/react-tabs";
|
|
10899
|
-
import { isNotNil as
|
|
10900
|
-
import
|
|
11004
|
+
import { isNotNil as isNotNil24, isNil as isNil15 } from "@wistia/type-guards";
|
|
11005
|
+
import styled66 from "styled-components";
|
|
10901
11006
|
|
|
10902
11007
|
// src/components/Tabs/TabPanel.tsx
|
|
10903
|
-
import
|
|
11008
|
+
import styled62 from "styled-components";
|
|
10904
11009
|
import { Content as TabsContent } from "@radix-ui/react-tabs";
|
|
10905
|
-
import { jsx as
|
|
10906
|
-
var StyledTabPanel =
|
|
11010
|
+
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
11011
|
+
var StyledTabPanel = styled62(TabsContent)`
|
|
10907
11012
|
display: flex;
|
|
10908
11013
|
flex-direction: column;
|
|
10909
11014
|
`;
|
|
10910
11015
|
var TabPanel = ({ children, value, ...props }) => {
|
|
10911
|
-
return /* @__PURE__ */
|
|
11016
|
+
return /* @__PURE__ */ jsx254(
|
|
10912
11017
|
StyledTabPanel,
|
|
10913
11018
|
{
|
|
10914
11019
|
value,
|
|
@@ -10920,10 +11025,10 @@ var TabPanel = ({ children, value, ...props }) => {
|
|
|
10920
11025
|
TabPanel.displayName = "TabPanel";
|
|
10921
11026
|
|
|
10922
11027
|
// src/components/Tabs/TabList.tsx
|
|
10923
|
-
import
|
|
11028
|
+
import styled63 from "styled-components";
|
|
10924
11029
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
10925
|
-
import { jsx as
|
|
10926
|
-
var StyledTabList =
|
|
11030
|
+
import { jsx as jsx255 } from "react/jsx-runtime";
|
|
11031
|
+
var StyledTabList = styled63(RadixTabList)`
|
|
10927
11032
|
${segmentedControlStyles}
|
|
10928
11033
|
|
|
10929
11034
|
margin-bottom: var(--wui-space-04);
|
|
@@ -10936,7 +11041,7 @@ var TabList = ({
|
|
|
10936
11041
|
ariaLabel,
|
|
10937
11042
|
...props
|
|
10938
11043
|
}) => {
|
|
10939
|
-
return /* @__PURE__ */
|
|
11044
|
+
return /* @__PURE__ */ jsx255(
|
|
10940
11045
|
StyledTabList,
|
|
10941
11046
|
{
|
|
10942
11047
|
$fullWidth: fullWidth,
|
|
@@ -10950,9 +11055,9 @@ TabList.displayName = "TabList";
|
|
|
10950
11055
|
|
|
10951
11056
|
// src/components/Tabs/TabItem.tsx
|
|
10952
11057
|
import { forwardRef as forwardRef23, useEffect as useEffect7, useRef as useRef10 } from "react";
|
|
10953
|
-
import
|
|
11058
|
+
import styled64 from "styled-components";
|
|
10954
11059
|
import { Trigger as RadixTab } from "@radix-ui/react-tabs";
|
|
10955
|
-
import { isNotNil as
|
|
11060
|
+
import { isNotNil as isNotNil23 } from "@wistia/type-guards";
|
|
10956
11061
|
|
|
10957
11062
|
// src/components/Tabs/useTabsValue.tsx
|
|
10958
11063
|
import { createContext as createContext9, useContext as useContext8 } from "react";
|
|
@@ -10967,8 +11072,8 @@ var useTabsValue = () => {
|
|
|
10967
11072
|
};
|
|
10968
11073
|
|
|
10969
11074
|
// src/components/Tabs/TabItem.tsx
|
|
10970
|
-
import { jsxs as
|
|
10971
|
-
var StyledTabItem =
|
|
11075
|
+
import { jsxs as jsxs38 } from "react/jsx-runtime";
|
|
11076
|
+
var StyledTabItem = styled64(RadixTab)`
|
|
10972
11077
|
${segmentedControlItemStyles}
|
|
10973
11078
|
|
|
10974
11079
|
&:focus-visible {
|
|
@@ -11006,12 +11111,12 @@ var TabItem = forwardRef23(
|
|
|
11006
11111
|
resizeObserver.disconnect();
|
|
11007
11112
|
};
|
|
11008
11113
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
11009
|
-
return /* @__PURE__ */
|
|
11114
|
+
return /* @__PURE__ */ jsxs38(
|
|
11010
11115
|
StyledTabItem,
|
|
11011
11116
|
{
|
|
11012
11117
|
ref: combinedRef,
|
|
11013
|
-
$hasLabel:
|
|
11014
|
-
"aria-label":
|
|
11118
|
+
$hasLabel: isNotNil23(label),
|
|
11119
|
+
"aria-label": isNotNil23(label) ? void 0 : ariaLabel,
|
|
11015
11120
|
disabled,
|
|
11016
11121
|
value,
|
|
11017
11122
|
children: [
|
|
@@ -11048,9 +11153,9 @@ var extractTabItems = (children) => {
|
|
|
11048
11153
|
|
|
11049
11154
|
// src/components/Tabs/SelectedItemIndicator.tsx
|
|
11050
11155
|
import { useMemo as useMemo10 } from "react";
|
|
11051
|
-
import
|
|
11052
|
-
import { jsx as
|
|
11053
|
-
var TabsSelectedItemIndicatorDiv =
|
|
11156
|
+
import styled65 from "styled-components";
|
|
11157
|
+
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
11158
|
+
var TabsSelectedItemIndicatorDiv = styled65(SelectedItemIndicatorDiv)`
|
|
11054
11159
|
&:has(~ ${StyledTabItem}:focus-visible) {
|
|
11055
11160
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
11056
11161
|
}
|
|
@@ -11069,7 +11174,7 @@ var SelectedItemIndicator2 = () => {
|
|
|
11069
11174
|
if (selectedValue == null) {
|
|
11070
11175
|
return null;
|
|
11071
11176
|
}
|
|
11072
|
-
return /* @__PURE__ */
|
|
11177
|
+
return /* @__PURE__ */ jsx256(
|
|
11073
11178
|
TabsSelectedItemIndicatorDiv,
|
|
11074
11179
|
{
|
|
11075
11180
|
style: {
|
|
@@ -11082,19 +11187,19 @@ var SelectedItemIndicator2 = () => {
|
|
|
11082
11187
|
};
|
|
11083
11188
|
|
|
11084
11189
|
// src/components/Tabs/Tabs.tsx
|
|
11085
|
-
import { jsx as
|
|
11086
|
-
var TabsContainer =
|
|
11190
|
+
import { jsx as jsx257, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
11191
|
+
var TabsContainer = styled66.div`
|
|
11087
11192
|
display: flex;
|
|
11088
11193
|
flex-direction: column;
|
|
11089
11194
|
height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
|
|
11090
11195
|
overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
|
|
11091
11196
|
`;
|
|
11092
|
-
var StickyTabContent =
|
|
11197
|
+
var StickyTabContent = styled66.div`
|
|
11093
11198
|
flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
|
|
11094
11199
|
overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
|
|
11095
11200
|
overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
|
|
11096
11201
|
`;
|
|
11097
|
-
var StyledTabsRoot =
|
|
11202
|
+
var StyledTabsRoot = styled66(TabsRoot)`
|
|
11098
11203
|
display: flex;
|
|
11099
11204
|
flex-direction: column;
|
|
11100
11205
|
height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
|
|
@@ -11117,7 +11222,7 @@ var Tabs = forwardRef24(
|
|
|
11117
11222
|
onValueChange: setInternalSelectedValue
|
|
11118
11223
|
} : { value: selectedValue, onValueChange: onSelectedValueChange };
|
|
11119
11224
|
const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
|
|
11120
|
-
return /* @__PURE__ */
|
|
11225
|
+
return /* @__PURE__ */ jsx257(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx257(
|
|
11121
11226
|
StyledTabsRoot,
|
|
11122
11227
|
{
|
|
11123
11228
|
ref,
|
|
@@ -11125,14 +11230,14 @@ var Tabs = forwardRef24(
|
|
|
11125
11230
|
activationMode: "automatic",
|
|
11126
11231
|
...otherProps,
|
|
11127
11232
|
...modeProps,
|
|
11128
|
-
children: /* @__PURE__ */
|
|
11129
|
-
/* @__PURE__ */
|
|
11233
|
+
children: /* @__PURE__ */ jsx257(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs39(SelectedItemMeasurementsProvider, { children: [
|
|
11234
|
+
/* @__PURE__ */ jsxs39(
|
|
11130
11235
|
TabList,
|
|
11131
11236
|
{
|
|
11132
11237
|
ariaLabel,
|
|
11133
11238
|
fullWidth,
|
|
11134
11239
|
children: [
|
|
11135
|
-
/* @__PURE__ */
|
|
11240
|
+
/* @__PURE__ */ jsx257(SelectedItemIndicator2, {}),
|
|
11136
11241
|
tabItems.map((tab) => {
|
|
11137
11242
|
const {
|
|
11138
11243
|
value,
|
|
@@ -11141,8 +11246,8 @@ var Tabs = forwardRef24(
|
|
|
11141
11246
|
label,
|
|
11142
11247
|
"aria-label": ariaLabelForTab
|
|
11143
11248
|
} = tab.props;
|
|
11144
|
-
if (
|
|
11145
|
-
return /* @__PURE__ */
|
|
11249
|
+
if (isNil15(icon)) {
|
|
11250
|
+
return /* @__PURE__ */ jsx257(
|
|
11146
11251
|
TabItem,
|
|
11147
11252
|
{
|
|
11148
11253
|
disabled,
|
|
@@ -11152,8 +11257,8 @@ var Tabs = forwardRef24(
|
|
|
11152
11257
|
value
|
|
11153
11258
|
);
|
|
11154
11259
|
}
|
|
11155
|
-
if (
|
|
11156
|
-
return /* @__PURE__ */
|
|
11260
|
+
if (isNotNil24(label)) {
|
|
11261
|
+
return /* @__PURE__ */ jsx257(
|
|
11157
11262
|
TabItem,
|
|
11158
11263
|
{
|
|
11159
11264
|
disabled,
|
|
@@ -11164,8 +11269,8 @@ var Tabs = forwardRef24(
|
|
|
11164
11269
|
value
|
|
11165
11270
|
);
|
|
11166
11271
|
}
|
|
11167
|
-
if (
|
|
11168
|
-
return /* @__PURE__ */
|
|
11272
|
+
if (isNotNil24(ariaLabelForTab)) {
|
|
11273
|
+
return /* @__PURE__ */ jsx257(
|
|
11169
11274
|
TabItem,
|
|
11170
11275
|
{
|
|
11171
11276
|
"aria-label": ariaLabelForTab,
|
|
@@ -11181,7 +11286,7 @@ var Tabs = forwardRef24(
|
|
|
11181
11286
|
]
|
|
11182
11287
|
}
|
|
11183
11288
|
),
|
|
11184
|
-
/* @__PURE__ */
|
|
11289
|
+
/* @__PURE__ */ jsx257(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx257(
|
|
11185
11290
|
TabPanel,
|
|
11186
11291
|
{
|
|
11187
11292
|
value: tab.props.value,
|
|
@@ -11198,27 +11303,34 @@ Tabs.displayName = "Tabs";
|
|
|
11198
11303
|
|
|
11199
11304
|
// src/components/Tabs/Tab.tsx
|
|
11200
11305
|
import { forwardRef as forwardRef25 } from "react";
|
|
11201
|
-
import { jsx as
|
|
11306
|
+
import { jsx as jsx258 } from "react/jsx-runtime";
|
|
11202
11307
|
var Tab = forwardRef25(({ children }, ref) => {
|
|
11203
|
-
return /* @__PURE__ */
|
|
11308
|
+
return /* @__PURE__ */ jsx258("div", { ref, children });
|
|
11204
11309
|
});
|
|
11205
11310
|
Tab.displayName = "Tab";
|
|
11206
11311
|
|
|
11207
11312
|
// src/components/Tag/Tag.tsx
|
|
11208
11313
|
import { forwardRef as forwardRef26 } from "react";
|
|
11209
|
-
import
|
|
11210
|
-
import { isNil as
|
|
11211
|
-
import { Fragment as Fragment8, jsx as
|
|
11212
|
-
var TagLabel =
|
|
11314
|
+
import styled67 from "styled-components";
|
|
11315
|
+
import { isNil as isNil16, isNotNil as isNotNil25, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
11316
|
+
import { Fragment as Fragment8, jsx as jsx259, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
11317
|
+
var TagLabel = styled67.a`
|
|
11213
11318
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11214
11319
|
font-size: var(--wui-typography-label-4-size);
|
|
11215
11320
|
font-weight: var(--wui-typography-label-4-weight);
|
|
11216
11321
|
line-height: var(--wui-typography-label-4-line-height);
|
|
11217
11322
|
border-radius: var(--wui-border-radius-01);
|
|
11323
|
+
display: flex;
|
|
11218
11324
|
align-items: center;
|
|
11219
11325
|
color: var(--wui-color-text);
|
|
11220
11326
|
text-decoration: none;
|
|
11221
11327
|
padding: var(--wui-space-01);
|
|
11328
|
+
gap: var(--wui-space-01);
|
|
11329
|
+
|
|
11330
|
+
svg {
|
|
11331
|
+
height: 12px;
|
|
11332
|
+
width: 12px;
|
|
11333
|
+
}
|
|
11222
11334
|
|
|
11223
11335
|
:not(:only-child) {
|
|
11224
11336
|
padding-right: var(--wui-space-01);
|
|
@@ -11237,14 +11349,14 @@ var TagLabel = styled66.a`
|
|
|
11237
11349
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
11238
11350
|
}
|
|
11239
11351
|
`;
|
|
11240
|
-
var TagDivider =
|
|
11352
|
+
var TagDivider = styled67.div`
|
|
11241
11353
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11242
11354
|
border-left: 1px solid var(--wui-color-border);
|
|
11243
11355
|
display: flex;
|
|
11244
11356
|
height: 14px;
|
|
11245
11357
|
width: 1px;
|
|
11246
11358
|
`;
|
|
11247
|
-
var StyledRemoveButton =
|
|
11359
|
+
var StyledRemoveButton = styled67.button`
|
|
11248
11360
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11249
11361
|
all: unset;
|
|
11250
11362
|
cursor: pointer;
|
|
@@ -11272,7 +11384,7 @@ var StyledRemoveButton = styled66.button`
|
|
|
11272
11384
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
11273
11385
|
}
|
|
11274
11386
|
`;
|
|
11275
|
-
var StyledTag =
|
|
11387
|
+
var StyledTag = styled67.div`
|
|
11276
11388
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11277
11389
|
align-items: center;
|
|
11278
11390
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -11285,55 +11397,67 @@ var StyledTag = styled66.div`
|
|
|
11285
11397
|
}
|
|
11286
11398
|
`;
|
|
11287
11399
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
11288
|
-
if (
|
|
11400
|
+
if (isNil16(onClickRemove)) {
|
|
11289
11401
|
return null;
|
|
11290
11402
|
}
|
|
11291
|
-
if (
|
|
11403
|
+
if (isNil16(onClickRemoveLabel)) {
|
|
11292
11404
|
throw new Error(
|
|
11293
11405
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
11294
11406
|
);
|
|
11295
11407
|
}
|
|
11296
|
-
return /* @__PURE__ */
|
|
11297
|
-
/* @__PURE__ */
|
|
11298
|
-
/* @__PURE__ */
|
|
11408
|
+
return /* @__PURE__ */ jsxs40(Fragment8, { children: [
|
|
11409
|
+
/* @__PURE__ */ jsx259(TagDivider, { $colorScheme: colorScheme }),
|
|
11410
|
+
/* @__PURE__ */ jsxs40(
|
|
11299
11411
|
StyledRemoveButton,
|
|
11300
11412
|
{
|
|
11301
11413
|
$colorScheme: colorScheme,
|
|
11302
11414
|
onClick: onClickRemove,
|
|
11303
11415
|
type: "button",
|
|
11304
11416
|
children: [
|
|
11305
|
-
/* @__PURE__ */
|
|
11417
|
+
/* @__PURE__ */ jsx259(
|
|
11306
11418
|
Icon,
|
|
11307
11419
|
{
|
|
11308
11420
|
size: "sm",
|
|
11309
11421
|
type: "close"
|
|
11310
11422
|
}
|
|
11311
11423
|
),
|
|
11312
|
-
/* @__PURE__ */
|
|
11424
|
+
/* @__PURE__ */ jsx259(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
11313
11425
|
]
|
|
11314
11426
|
}
|
|
11315
11427
|
)
|
|
11316
11428
|
] });
|
|
11317
11429
|
};
|
|
11318
11430
|
var Tag = forwardRef26(
|
|
11319
|
-
({
|
|
11320
|
-
|
|
11321
|
-
|
|
11431
|
+
({
|
|
11432
|
+
onClickRemove,
|
|
11433
|
+
colorScheme = "inherit",
|
|
11434
|
+
href,
|
|
11435
|
+
icon,
|
|
11436
|
+
label,
|
|
11437
|
+
onClickRemoveLabel,
|
|
11438
|
+
...otherProps
|
|
11439
|
+
}, ref) => {
|
|
11440
|
+
const hasIcon = isNotNil25(icon);
|
|
11441
|
+
const labelProps = isNotNil25(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
|
|
11442
|
+
return /* @__PURE__ */ jsxs40(
|
|
11322
11443
|
StyledTag,
|
|
11323
11444
|
{
|
|
11324
11445
|
ref,
|
|
11325
11446
|
$colorScheme: colorScheme,
|
|
11326
11447
|
...otherProps,
|
|
11327
11448
|
children: [
|
|
11328
|
-
/* @__PURE__ */
|
|
11449
|
+
/* @__PURE__ */ jsxs40(
|
|
11329
11450
|
TagLabel,
|
|
11330
11451
|
{
|
|
11331
11452
|
...labelProps,
|
|
11332
11453
|
$colorScheme: colorScheme,
|
|
11333
|
-
children:
|
|
11454
|
+
children: [
|
|
11455
|
+
hasIcon ? icon : null,
|
|
11456
|
+
label
|
|
11457
|
+
]
|
|
11334
11458
|
}
|
|
11335
11459
|
),
|
|
11336
|
-
/* @__PURE__ */
|
|
11460
|
+
/* @__PURE__ */ jsx259(
|
|
11337
11461
|
RemoveButton,
|
|
11338
11462
|
{
|
|
11339
11463
|
colorScheme,
|
|
@@ -11349,26 +11473,26 @@ var Tag = forwardRef26(
|
|
|
11349
11473
|
Tag.displayName = "Tag";
|
|
11350
11474
|
|
|
11351
11475
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
11352
|
-
import
|
|
11353
|
-
import { isNotNil as
|
|
11354
|
-
import { jsx as
|
|
11476
|
+
import styled68, { css as css35 } from "styled-components";
|
|
11477
|
+
import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
11478
|
+
import { jsx as jsx260, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
11355
11479
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
11356
11480
|
if (iconOnly) {
|
|
11357
|
-
return /* @__PURE__ */
|
|
11481
|
+
return /* @__PURE__ */ jsx260(
|
|
11358
11482
|
"g",
|
|
11359
11483
|
{
|
|
11360
11484
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
11361
11485
|
fill: brandmarkColor,
|
|
11362
|
-
children: /* @__PURE__ */
|
|
11486
|
+
children: /* @__PURE__ */ jsx260("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" })
|
|
11363
11487
|
}
|
|
11364
11488
|
);
|
|
11365
11489
|
}
|
|
11366
|
-
return /* @__PURE__ */
|
|
11490
|
+
return /* @__PURE__ */ jsx260(
|
|
11367
11491
|
"g",
|
|
11368
11492
|
{
|
|
11369
11493
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
11370
11494
|
fill: brandmarkColor,
|
|
11371
|
-
children: /* @__PURE__ */
|
|
11495
|
+
children: /* @__PURE__ */ jsx260("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" })
|
|
11372
11496
|
}
|
|
11373
11497
|
);
|
|
11374
11498
|
};
|
|
@@ -11376,12 +11500,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
11376
11500
|
if (iconOnly) {
|
|
11377
11501
|
return null;
|
|
11378
11502
|
}
|
|
11379
|
-
return /* @__PURE__ */
|
|
11503
|
+
return /* @__PURE__ */ jsx260(
|
|
11380
11504
|
"g",
|
|
11381
11505
|
{
|
|
11382
11506
|
"data-testid": "ui-wistia-logo-logotype",
|
|
11383
11507
|
fill: logotypeColor,
|
|
11384
|
-
children: /* @__PURE__ */
|
|
11508
|
+
children: /* @__PURE__ */ jsx260("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" })
|
|
11385
11509
|
}
|
|
11386
11510
|
);
|
|
11387
11511
|
};
|
|
@@ -11391,7 +11515,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
11391
11515
|
}
|
|
11392
11516
|
return "0 0 144 31.47";
|
|
11393
11517
|
};
|
|
11394
|
-
var WistiaLogoComponent =
|
|
11518
|
+
var WistiaLogoComponent = styled68.svg`
|
|
11395
11519
|
height: ${({ height }) => `${height}px`};
|
|
11396
11520
|
|
|
11397
11521
|
/* ensure it will always fit on mobile */
|
|
@@ -11407,12 +11531,12 @@ var WistiaLogoComponent = styled67.svg`
|
|
|
11407
11531
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
11408
11532
|
if ($opticallyCentered) {
|
|
11409
11533
|
if ($iconOnly) {
|
|
11410
|
-
return
|
|
11534
|
+
return css35`
|
|
11411
11535
|
aspect-ratio: 1;
|
|
11412
11536
|
padding: 11.85% 3.12% 13.91%;
|
|
11413
11537
|
`;
|
|
11414
11538
|
}
|
|
11415
|
-
return
|
|
11539
|
+
return css35`
|
|
11416
11540
|
aspect-ratio: 127 / 32;
|
|
11417
11541
|
`;
|
|
11418
11542
|
}
|
|
@@ -11449,7 +11573,7 @@ var WistiaLogo = ({
|
|
|
11449
11573
|
};
|
|
11450
11574
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
11451
11575
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
11452
|
-
const Logo = /* @__PURE__ */
|
|
11576
|
+
const Logo = /* @__PURE__ */ jsxs41(
|
|
11453
11577
|
WistiaLogoComponent,
|
|
11454
11578
|
{
|
|
11455
11579
|
$hoverColor: hoverColor,
|
|
@@ -11462,14 +11586,14 @@ var WistiaLogo = ({
|
|
|
11462
11586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11463
11587
|
...otherProps,
|
|
11464
11588
|
children: [
|
|
11465
|
-
/* @__PURE__ */
|
|
11466
|
-
|
|
11589
|
+
/* @__PURE__ */ jsx260("title", { children: title }),
|
|
11590
|
+
isNotNil26(description) ? /* @__PURE__ */ jsx260("desc", { children: description }) : null,
|
|
11467
11591
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
11468
11592
|
renderLogotype(logotypeColor, iconOnly)
|
|
11469
11593
|
]
|
|
11470
11594
|
}
|
|
11471
11595
|
);
|
|
11472
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
11596
|
+
return href !== void 0 ? /* @__PURE__ */ jsx260("a", { href, children: Logo }) : Logo;
|
|
11473
11597
|
};
|
|
11474
11598
|
WistiaLogo.displayName = "WistiaLogo";
|
|
11475
11599
|
export {
|